/* Page layout: header, hero, sections. */

/* === Site header === */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 20;
  display: flex;
  align-items: center;
  opacity: 0;
  transform: translateY(-12px);
  animation: header-in 0.7s var(--ease-out) 0.1s forwards;
}

.site-header__inner {
  max-width: var(--container-max);
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
}

@keyframes header-in {
  to { opacity: 1; transform: translateY(0); }
}

/* === Hero (v2: split with portal) === */
.hero {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--header-height) + var(--space-xl)) var(--space-xl) var(--space-3xl);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero--split { padding-top: calc(var(--header-height) + var(--space-2xl)); }

.hero-split {
  max-width: var(--container-max);
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.hero-split__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-lg);
  position: relative;
  z-index: 2;
}

.hero-split__eyebrow { opacity: 0; animation: rise 0.9s var(--ease-out) 0.5s forwards; }

.hero-split__headline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(48px, 6.4vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.028em;
  color: var(--brand-navy);
  opacity: 0;
  animation: rise 1s var(--ease-out) 0.7s forwards;
}

.hero-split__headline em {
  font-style: italic;
  font-weight: 400;
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
  color: var(--brand-terra);
}

.hero-split__sub {
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 42ch;
  opacity: 0;
  animation: rise 1s var(--ease-out) 0.9s forwards;
}

.hero-split__actions {
  margin-top: var(--space-sm);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  opacity: 0;
  animation: rise 1s var(--ease-out) 1.1s forwards;
}

.hero-split__signals {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
  font-size: 13px;
  color: var(--text-secondary);
  opacity: 0;
  animation: fade-in 1.2s var(--ease-out) 1.4s forwards;
}

.hero-split__signal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-split__signal::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-terra);
  flex-shrink: 0;
}

/* === The Portal (right side of hero) === */
.hero-split__portal {
  position: relative;
  opacity: 0;
  animation: rise 1.2s var(--ease-out) 0.8s forwards;
}

.portal {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin-left: auto;
}

.portal__window {
  position: relative;
  aspect-ratio: 4 / 5.4;
  background: var(--surface-sunken);
  /* Arch shape: vertical sides + semicircular top */
  clip-path: path('M 0 100% L 0 35% C 0 0 100% 0 100% 35% L 100% 100% Z');
  overflow: hidden;
  box-shadow: 0 24px 56px -28px rgba(21, 49, 90, 0.35);
}

.portal__store {
  position: absolute;
  top: 0;
  left: 0;
  /* oversized box zoom-crops the AI watermark zone off-frame
     without transform:scale rasterization blur */
  width: 116%;
  height: 116%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s var(--ease-out), transform 8s linear;
  transform-origin: top left;
}

.portal__store--active {
  opacity: 1;
  transform: scale(1.05);
}

/* Corner scrim + plate inside the portal window — covers AI
   watermarks on the rotating screenshots */
.portal__window::before {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 1;
  width: 46%;
  height: 22%;
  min-width: 150px;
  min-height: 70px;
  background: linear-gradient(315deg, rgba(21, 49, 90, 0.92) 0%, rgba(21, 49, 90, 0.55) 40%, transparent 72%);
  pointer-events: none;
}

.portal__window::after {
  content: 'Concept build';
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 2;
  background: rgba(21, 49, 90, 0.88);
  color: var(--surface-base);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1;
  padding: 8px 14px 9px 16px;
  border-radius: 10px 0 0 0;
  border-top: 1px solid rgba(200, 85, 46, 0.5);
  border-left: 1px solid rgba(200, 85, 46, 0.5);
  backdrop-filter: blur(4px);
  pointer-events: none;
}

.portal__frame {
  position: absolute;
  inset: -10px;
  pointer-events: none;
}

.portal__frame svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.portal__frame path {
  fill: none;
  stroke: var(--brand-terra);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  animation: arch-draw 2.2s var(--ease-out) 0.9s forwards;
}

.portal__frame .portal__frame-outer {
  stroke-width: 0.8;
  opacity: 0.32;
  animation-delay: 1.2s;
}

.portal__caption {
  margin-top: var(--space-lg);
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px 16px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 13px;
  color: var(--text-secondary);
  box-shadow: 0 4px 14px -8px rgba(21, 49, 90, 0.18);
}

.portal__live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-terra);
  position: relative;
  flex-shrink: 0;
}

.portal__live-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--brand-terra);
  opacity: 0.35;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.35; }
  50%      { transform: scale(1.6); opacity: 0; }
}

.portal__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  font-size: 15px;
  color: var(--brand-navy);
  transition: opacity 0.4s var(--ease-out);
}

@media (max-width: 920px) {
  .hero-split { grid-template-columns: 1fr; gap: var(--space-2xl); }
  .hero-split__portal { order: -1; max-width: 380px; }
  .portal { max-width: 380px; margin: 0 auto; }
}

/* Decorative side rules — subtle architectural columns hugging the page edge. */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  top: calc(var(--header-height) + var(--space-xl));
  bottom: var(--space-3xl);
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--border) 15%, var(--border) 85%, transparent);
  opacity: 0;
  animation: fade-in 1.2s var(--ease-out) 1.4s forwards;
}

.hero::before { left: var(--space-xl); }
.hero::after  { right: var(--space-xl); }

/* === Arch frame: the centerpiece === */
.arch-frame {
  position: relative;
  width: min(720px, 90vw);
  aspect-ratio: 720 / 880;
  display: flex;
  align-items: center;
  justify-content: center;
}

.arch-frame__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
}

.arch-frame__svg path {
  fill: none;
  stroke: var(--brand-terra);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 2200;
  stroke-dashoffset: 2200;
  animation: arch-draw 2.2s var(--ease-out) 0.3s forwards;
}

.arch-frame__svg .arch-inner {
  stroke-width: 0.75;
  opacity: 0.35;
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  animation: arch-draw 2.4s var(--ease-out) 0.6s forwards;
}

@keyframes arch-draw {
  to { stroke-dashoffset: 0; }
}

/* === Hero content stacked inside the doorway === */
.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-lg);
  padding: var(--space-3xl) var(--space-xl) var(--space-2xl);
  max-width: 560px;
}

.hero__eyebrow { opacity: 0; animation: rise 0.9s var(--ease-out) 0.7s forwards; }

.hero__headline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(40px, 5.8vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--brand-navy);
  max-width: 14ch;
  opacity: 0;
  animation: rise 1s var(--ease-out) 0.9s forwards;
}

.hero__headline em {
  font-style: italic;
  font-weight: 400;
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
  color: var(--brand-terra);
}

.hero__sub {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 36ch;
  opacity: 0;
  animation: rise 1s var(--ease-out) 1.1s forwards;
}

.hero__actions {
  margin-top: var(--space-sm);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
  opacity: 0;
  animation: rise 1s var(--ease-out) 1.3s forwards;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  to { opacity: 1; }
}

/* === Floor line === */
.hero__floor {
  position: absolute;
  left: 50%;
  bottom: var(--space-2xl);
  transform: translateX(-50%);
  width: min(820px, 92vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong) 25%, var(--border-strong) 75%, transparent);
  opacity: 0;
  animation: fade-in 1.2s var(--ease-out) 1.6s forwards;
}

.hero__floor-label {
  position: absolute;
  left: 50%;
  bottom: calc(var(--space-2xl) - 32px);
  transform: translateX(-50%);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-secondary);
  opacity: 0;
  animation: fade-in 1s var(--ease-out) 1.9s forwards;
}

/* === Responsive === */
@media (max-width: 720px) {
  .site-header__inner {
    padding: 0 var(--space-md);
  }
  .nav { gap: 18px; }
  .nav__link { font-size: 13px; }
  .brand__descriptor { font-size: 19px; }

  .hero {
    padding: var(--header-height) var(--space-md) var(--space-3xl);
  }
  .hero::before { left: var(--space-md); }
  .hero::after  { right: var(--space-md); }

  .hero__content {
    padding: var(--space-2xl) var(--space-md) var(--space-xl);
  }
  .eyebrow::before, .eyebrow::after { width: 18px; }
  .eyebrow { font-size: 11px; letter-spacing: 0.20em; }
}

/* === Mobile nav overlay === */
@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }

  .nav {
    position: fixed;
    inset: 0;
    background: var(--surface-base);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: calc(var(--header-height) + var(--space-md)) var(--space-lg) var(--space-2xl);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s var(--ease-out),
                visibility 0.35s var(--ease-out);
    z-index: 30;
    overflow-y: auto;
  }

  /* Subtle architectural detail: an arch curve at the top */
  .nav::before {
    content: '';
    position: absolute;
    top: calc(var(--header-height) + var(--space-md));
    left: 50%;
    transform: translateX(-50%);
    width: 42px;
    height: 20px;
    border: 1px solid var(--brand-terra);
    border-bottom: none;
    border-radius: 21px 21px 0 0;
    opacity: 0;
    transition: opacity 0.4s var(--ease-out) 0.15s;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav.is-open::before { opacity: 0.55; }

  .nav__link {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 40px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--brand-navy);
    padding: 8px 0;
    text-align: center;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s var(--ease-out),
                transform 0.5s var(--ease-out),
                color var(--dur-fast) var(--ease-out);
  }

  .nav__link::after { display: none; } /* remove desktop underline behavior */

  .nav.is-open .nav__link {
    opacity: 1;
    transform: translateY(0);
  }

  /* Staggered entry: each link animates in ~60ms after the previous */
  .nav.is-open .nav__link:nth-child(1) { transition-delay: 0.15s; }
  .nav.is-open .nav__link:nth-child(2) { transition-delay: 0.21s; }
  .nav.is-open .nav__link:nth-child(3) { transition-delay: 0.27s; }
  .nav.is-open .nav__link:nth-child(4) { transition-delay: 0.33s; }
  .nav.is-open .nav__link:nth-child(5) { transition-delay: 0.39s; }

  .nav__link:hover,
  .nav__link:active { color: var(--brand-terra); }

  /* CTA link (Contact) gets special treatment on mobile */
  .nav__link--cta {
    margin-top: var(--space-lg);
    font-size: 22px;
    padding: 16px 40px;
    background: var(--brand-terra);
    color: var(--surface-base);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 0;
  }

  .nav__link--cta:hover,
  .nav__link--cta:active {
    color: var(--surface-base);
    background: var(--brand-terra-soft);
  }

  /* Prevent page scroll when overlay is open */
  body.nav-open { overflow: hidden; }
}

@media (max-width: 480px) {
  .nav__link { font-size: 32px; }
  .nav__link--cta { font-size: 18px; }
}


/* ============ Section base ============ */
.section {
  position: relative;
  padding: var(--space-4xl) var(--space-xl);
  border-top: 1px solid var(--border);
}

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

.section__inner--narrow {
  max-width: 820px;
}

.section__header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-md);
  max-width: 720px;
  margin-bottom: var(--space-3xl);
}

.section__heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.022em;
  color: var(--brand-navy);
}

.section__heading em {
  font-style: italic;
  font-weight: 400;
  color: var(--brand-terra);
}

.section__lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 56ch;
}

.section__footer {
  margin-top: var(--space-2xl);
  display: flex;
  justify-content: center;
}


/* ============ Services ============ */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

@media (max-width: 760px) {
  .services-grid { grid-template-columns: 1fr; gap: var(--space-lg); }
}


/* ============ Featured Work ============ */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

@media (max-width: 960px) { .work-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .work-grid { grid-template-columns: 1fr; } }


/* ============ Process ============ */
.process-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: var(--space-2xl);
  max-width: 820px;
  margin: 0 auto;
}

.process-list::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: var(--border-strong);
}

.process-step {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: start;
  gap: var(--space-lg);
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.process-step:last-child { border-bottom: none; }

.process-step__num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 18px;
  color: var(--brand-terra);
  background: var(--surface-base);
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--brand-terra);
  border-radius: var(--radius-pill);
  margin-left: -24px;
  position: relative;
  z-index: 1;
}

.process-step__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: -0.015em;
  color: var(--brand-navy);
  margin-bottom: var(--space-xs);
}

.process-step__desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 60ch;
}

@media (max-width: 600px) {
  .process-list { padding-left: var(--space-xl); }
  .process-list::before { left: 16px; }
  .process-step { grid-template-columns: 48px 1fr; gap: var(--space-md); }
  .process-step__num { width: 40px; height: 40px; font-size: 15px; margin-left: -20px; }
  .process-step__title { font-size: 22px; }
}


/* ============ Why us ============ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

@media (max-width: 880px) { .why-grid { grid-template-columns: 1fr; gap: var(--space-lg); } }


/* ============ FAQ ============ */
.faq-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}


/* ============ Contact ============ */
.contact-layout {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: var(--space-4xl);
  align-items: start;
}

.contact-intro .section__heading { margin-bottom: var(--space-md); }

.contact-direct {
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border);
}

.contact-direct__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.contact-direct__email {
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  font-size: 24px;
  color: var(--brand-terra);
  transition: color var(--dur-fast) var(--ease-out);
}

.contact-direct__email:hover { color: var(--brand-terra-soft); }

@media (max-width: 880px) {
  .contact-layout { grid-template-columns: 1fr; gap: var(--space-2xl); }
}


/* ============ Footer ============ */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface-sunken);
  padding: var(--space-2xl) var(--space-xl);
}

.site-footer__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-xl);
}

.brand--footer .brand__descriptor { color: var(--brand-navy); }

.site-footer__tag {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 15px;
  color: var(--text-secondary);
  text-align: center;
  max-width: 56ch;
  margin: 0 auto;
}

.site-footer__meta {
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
}

@media (max-width: 760px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-md);
  }
  .site-footer__tag { font-size: 14px; }
}


/* ============ Section-level small screens ============ */
@media (max-width: 760px) {
  .section { padding: var(--space-3xl) var(--space-md); }
  .section__header { margin-bottom: var(--space-2xl); }
}


/* ============ Manifesto (right after hero) ============ */
.manifesto {
  padding: var(--space-3xl) var(--space-xl);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface-base) 0%, var(--surface-sunken) 100%);
  text-align: center;
}

.manifesto__inner {
  max-width: 980px;
  margin: 0 auto;
}

.manifesto__quote {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.18;
  letter-spacing: -0.012em;
  color: var(--brand-navy);
}

.manifesto__quote::before { content: '“'; color: var(--brand-terra); margin-right: 4px; }
.manifesto__quote::after  { content: '”'; color: var(--brand-terra); margin-left: 4px; }

.manifesto__attribution {
  margin-top: var(--space-lg);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brand-terra);
}

.manifesto__attribution::before,
.manifesto__attribution::after {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--brand-terra);
  vertical-align: middle;
  margin: 0 14px;
  opacity: 0.55;
}


/* ============ Process preview (compact 4-pill version on landing) ============ */
.process-preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

@media (max-width: 880px) { .process-preview { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .process-preview { grid-template-columns: 1fr; } }

.process-pill {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  transition: border-color var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}

.process-pill:hover { border-color: var(--brand-terra); transform: translateY(-2px); }

.process-pill__num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 14px;
  color: var(--brand-terra);
  letter-spacing: 0.06em;
}

.process-pill__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.015em;
  color: var(--brand-navy);
}

.process-pill__desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
}


/* ============ Big Contact CTA section (landing) ============ */
.contact-cta {
  padding: var(--space-4xl) var(--space-xl);
  background: var(--brand-navy);
  color: var(--surface-base);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(200, 85, 46, 0.16) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(123, 184, 224, 0.10) 0%, transparent 50%);
  pointer-events: none;
}

.contact-cta__inner {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

.contact-cta__eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brand-terra);
}

.contact-cta__headline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.022em;
  color: var(--surface-base);
}

.contact-cta__headline em { font-style: italic; font-weight: 400; color: var(--brand-terra); }

.contact-cta__sub {
  font-size: 17px;
  line-height: 1.5;
  color: rgba(250, 250, 247, 0.78);
  max-width: 52ch;
}

.contact-cta .btn--primary {
  margin-top: var(--space-md);
  background: var(--brand-terra);
  box-shadow: 0 4px 0 rgba(0,0,0,0.25);
}


/* ============ Page hero (used by services/process/faq/contact) ============ */
.page-hero {
  padding: calc(var(--header-height) + var(--space-3xl)) var(--space-xl) var(--space-3xl);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.page-hero__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-3xl);
  align-items: end;
}

.page-hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(48px, 6.2vw, 84px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  color: var(--brand-navy);
  margin-top: var(--space-md);
}

.page-hero__title em {
  font-style: italic;
  font-weight: 400;
  color: var(--brand-terra);
}

.page-hero__lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 48ch;
}

.page-hero__crumbs {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.page-hero__crumbs a { color: var(--text-secondary); transition: color var(--dur-fast); }
.page-hero__crumbs a:hover { color: var(--brand-terra); }
.page-hero__crumbs .sep { margin: 0 8px; opacity: 0.5; }

@media (max-width: 880px) {
  .page-hero__inner { grid-template-columns: 1fr; gap: var(--space-lg); align-items: start; }
}


/* ============ Service detail (services.html) ============ */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-3xl);
  padding: var(--space-3xl) 0;
  border-bottom: 1px solid var(--border);
}

.service-detail:last-child { border-bottom: none; }

.service-detail__sticky {
  position: sticky;
  top: calc(var(--header-height) + var(--space-lg));
  align-self: start;
}

.service-detail__num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  color: var(--brand-terra);
  margin-bottom: var(--space-sm);
  display: block;
}

.service-detail__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--brand-navy);
  margin-bottom: var(--space-md);
}

.service-detail__title em { font-style: italic; font-weight: 400; color: var(--brand-terra); }

.service-detail__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand-terra);
  padding: 6px 12px;
  background: rgba(200, 85, 46, 0.08);
  border-radius: var(--radius-pill);
}

.service-detail__body { display: flex; flex-direction: column; gap: var(--space-xl); }

.service-detail__intro {
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-primary);
  max-width: 56ch;
}

.service-detail__block h4 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brand-terra);
  margin-bottom: var(--space-md);
}

.service-detail__list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

@media (max-width: 720px) { .service-detail__list { grid-template-columns: 1fr; } }

.service-detail__list li {
  padding-left: var(--space-md);
  position: relative;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-primary);
}

.service-detail__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 1px;
  background: var(--brand-terra);
}

.service-detail__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  padding: var(--space-lg);
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

@media (max-width: 560px) { .service-detail__row { grid-template-columns: 1fr; } }

.service-detail__row dt {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.service-detail__row dd {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  color: var(--brand-navy);
  line-height: 1.2;
}

@media (max-width: 880px) {
  .service-detail { grid-template-columns: 1fr; gap: var(--space-xl); }
  .service-detail__sticky { position: static; }
}


/* ============ Process detail (process.html) ============ */
.process-detail {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--space-2xl);
  padding: var(--space-3xl) 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.process-detail:last-child { border-bottom: none; }

.process-detail__rail {
  position: relative;
}

.process-detail__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 1px solid var(--brand-terra);
  border-radius: 50%;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  color: var(--brand-terra);
  background: var(--surface-base);
}

.process-detail__duration {
  display: block;
  margin-top: var(--space-sm);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.process-detail__body { display: flex; flex-direction: column; gap: var(--space-md); }

.process-detail__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: -0.018em;
  color: var(--brand-navy);
  line-height: 1.1;
}

.process-detail__title em { font-style: italic; font-weight: 400; color: var(--brand-terra); }

.process-detail__intro {
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-primary);
}

.process-detail__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-md);
}

@media (max-width: 720px) { .process-detail__split { grid-template-columns: 1fr; } }

.process-detail__col h5 {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brand-terra);
  margin-bottom: var(--space-sm);
}

.process-detail__col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.process-detail__col li {
  padding-left: var(--space-md);
  position: relative;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.process-detail__col li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--brand-terra);
  font-weight: 700;
}

@media (max-width: 720px) {
  .process-detail { grid-template-columns: 1fr; gap: var(--space-lg); }
}


/* ============ FAQ grouped (faq.html) ============ */
.faq-group { padding: var(--space-3xl) 0; border-bottom: 1px solid var(--border); }
.faq-group:last-child { border-bottom: none; }

.faq-group__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.015em;
  color: var(--brand-navy);
  margin-bottom: var(--space-md);
}

.faq-group__title em { font-style: italic; font-weight: 400; color: var(--brand-terra); }


/* ============ Contact page split layout ============ */
.contact-page {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-3xl);
  padding: var(--space-2xl) 0 var(--space-4xl);
}

@media (max-width: 880px) {
  .contact-page { grid-template-columns: 1fr; gap: var(--space-2xl); }
}

.contact-info { display: flex; flex-direction: column; gap: var(--space-xl); }

.contact-info__block {
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--border);
}

.contact-info__block:last-child { border-bottom: none; }

.contact-info__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brand-terra);
  margin-bottom: var(--space-sm);
}

.contact-info__value {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  color: var(--brand-navy);
  line-height: 1.3;
}

.contact-info__value a { color: inherit; transition: color var(--dur-fast); }
.contact-info__value a:hover { color: var(--brand-terra); }

.contact-info__note {
  margin-top: var(--space-xs);
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
}


/* ============ Section CTA links (preview sections) ============ */
.section__cta {
  margin-top: var(--space-xl);
  display: flex;
  justify-content: flex-start;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
}
