:root {
  --bg: #f5f4ef;
  --bg-soft: #f1f0eb;
  --paper-line: rgba(255, 255, 255, 0.42);
  --surface: rgba(255, 255, 255, 0.5);
  --surface-strong: rgba(255, 255, 255, 0.7);
  --line: rgba(70, 71, 74, 0.12);
  --line-strong: rgba(70, 71, 74, 0.22);
  --text: #3f4144;
  --muted: #6f7276;
  --heading: #404143;
  --accent: #f4831f;
  --accent-soft: rgba(244, 131, 31, 0.14);
  --shadow: 0 18px 42px rgba(34, 34, 34, 0.06);
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: min(1160px, calc(100% - 2rem));
  --nav-height: 86px;
  --font: "Manrope", "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.7), transparent 26%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.08) 0,
      rgba(255, 255, 255, 0.08) 1px,
      transparent 1px,
      transparent 7px
    );
  opacity: 0.28;
  pointer-events: none;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

main,
section {
  scroll-margin-top: calc(var(--nav-height) + 1rem);
}

.page-shell {
  position: relative;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(245, 244, 239, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(70, 71, 74, 0.06);
}

.header-inner {
  min-height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.header-controls {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand img {
  width: min(270px, 100%);
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 600;
  transition: color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--heading);
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.34rem;
}

.nav-toggle span {
  width: 1.15rem;
  height: 2px;
  border-radius: 999px;
  background: var(--heading);
  transition: transform 180ms ease;
}

.nav-open .nav-toggle span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-open .nav-toggle span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.hero {
  padding: 5.9rem 0 5rem;
}

.hero-inner {
  max-width: 860px;
  display: grid;
  justify-items: center;
  margin: 0 auto;
  text-align: center;
}

.section-label {
  display: inline-flex;
  color: var(--accent);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: none;
}

.hero h1,
.section h2,
.service-card h3,
.approach-item h3 {
  margin: 0;
  font-family: var(--font);
  font-weight: 700;
  color: var(--heading);
  letter-spacing: -0.04em;
}

.hero h1 {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(3rem, 6.8vw, 5.2rem);
  line-height: 0.94;
  text-wrap: balance;
}

.accent-rule {
  width: 70px;
  height: 5px;
  margin: 1.7rem auto 0;
  border-radius: 999px;
  background: var(--accent);
}

.hero-lead,
.section-copy p,
.bullet-list li,
.service-card p,
.approach-item p,
.contact-shell p,
.footer-note {
  color: var(--muted);
  line-height: 1.78;
}

.hero-lead {
  max-width: 56ch;
  margin: 1.35rem auto 0;
  font-size: 1.04rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 14px 28px rgba(244, 131, 31, 0.18);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(244, 131, 31, 0.22);
}

.text-link {
  display: inline-flex;
  align-items: center;
  color: var(--heading);
  font-weight: 600;
}

.section {
  position: relative;
  padding: 5rem 0;
}

main > section + section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(1160px, calc(100% - 2rem));
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(
    90deg,
    rgba(70, 71, 74, 0),
    rgba(70, 71, 74, 0.16) 12%,
    rgba(70, 71, 74, 0.16) 88%,
    rgba(70, 71, 74, 0)
  );
}

.profile-layout,
.approach-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 2rem;
  align-items: start;
}

.section-intro h2 {
  margin-top: 0.8rem;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.06;
}

.section-copy {
  max-width: 60ch;
}

.section-copy p {
  margin: 0 0 1rem;
}

.services-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) 60px minmax(0, 1.08fr);
  gap: 1.5rem;
  align-items: start;
}

.services-copy h2 {
  margin-top: 0.8rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  color: var(--heading);
  letter-spacing: -0.04em;
}

.bullet-list {
  margin: 1.8rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1rem;
}

.bullet-list li {
  position: relative;
  padding-left: 2rem;
  font-size: 1rem;
}

.bullet-list li::before {
  content: "";
  position: absolute;
  top: 0.58rem;
  left: 0;
  width: 0.82rem;
  height: 0.82rem;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(244, 131, 31, 0.2);
}

.section-divider {
  width: 4px;
  min-height: 340px;
  margin: 7.2rem auto 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #f0b37d 0%, var(--accent) 100%);
}

.service-stack {
  display: grid;
  gap: 1rem;
}

.service-card {
  padding: 1.45rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.service-index {
  display: inline-flex;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.service-card h3 {
  margin-top: 0.8rem;
  font-size: 1.5rem;
  line-height: 1.08;
}

.service-card p {
  margin-top: 0.8rem;
}

.approach-list {
  display: grid;
  gap: 1.2rem;
}

.approach-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
}

.approach-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.approach-item h3 {
  font-size: 1.35rem;
  line-height: 1.12;
}

.approach-item p {
  margin: 0.45rem 0 0;
}

.contact-section {
  padding-bottom: 5.5rem;
}

.contact-shell {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.contact-shell h2 {
  margin-top: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.02;
}

.contact-shell p {
  max-width: 54ch;
  margin: 1.5rem auto 0;
}

.contact-button {
  margin-top: 2rem;
}

.contact-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem 1.3rem;
  margin-top: 1.3rem;
  color: var(--muted);
  font-weight: 500;
}

.site-footer {
  padding: 0 0 2.8rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.footer-logo {
  width: min(220px, 46vw);
  height: auto;
}

.footer-note {
  max-width: 34rem;
  margin: 0;
  text-align: right;
}

.site-legal {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(70, 71, 74, 0.08);
}

.copyright {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.button:focus-visible,
.site-nav a:focus-visible,
.text-link:focus-visible,
.nav-toggle:focus-visible {
  outline: 3px solid rgba(244, 131, 31, 0.28);
  outline-offset: 4px;
}

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 1rem;
    min-width: min(18rem, calc(100vw - 2rem));
    padding: 1rem;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: rgba(245, 244, 239, 0.96);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .nav-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .profile-layout,
  .services-layout,
  .approach-layout {
    grid-template-columns: 1fr;
  }

  .section-divider {
    width: 100%;
    min-height: 4px;
    margin: 0.5rem 0 0;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-note {
    text-align: left;
  }
}

@media (max-width: 640px) {
  :root {
    --container: min(100% - 1.25rem, 1160px);
    --nav-height: 78px;
  }

  .hero {
    padding: 4.8rem 0 4rem;
  }

  .brand img {
    width: min(220px, 100%);
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button,
  .contact-button {
    width: 100%;
  }

  .section {
    padding: 4.2rem 0;
  }

  .services-copy h2,
  .section-intro h2,
  .contact-shell h2 {
    line-height: 1.08;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
