/* ==========================================================================
   TaxSimple — Tax Consultancy
   1. Tokens  2. Base  3. Layout & type  4. Components  5. Sections
   6. Motion  7. Responsive
   ========================================================================== */

/* 1. Design tokens
   ========================================================================== */
:root {
  /* Brand palette */
  --teal-900: #153F3B;   /* Deep Teal — primary */
  --teal-950: #0E2E2B;   /* Footer / deepest surface */
  --teal-600: #386B63;   /* Muted Teal — secondary */
  --ivory: #F7F5EF;      /* Warm Ivory — page background */
  --ivory-200: #EFEBE1;  /* Slightly deeper ivory for alternating surfaces */
  --champagne: #B89A6A;  /* Accent — rules, borders, small details only */
  --champagne-light: #D6C29E; /* Champagne for text on dark teal (AA contrast) */
  --charcoal: #222D2B;   /* Body text */
  --white: #FFFFFF;

  /* Derived */
  --text: var(--charcoal);
  --text-muted: #56635F;
  --line: rgba(21, 63, 59, 0.14);
  --line-strong: rgba(21, 63, 59, 0.28);
  --line-light: rgba(247, 245, 239, 0.16);
  --error: #A23B2C;
  --success: #2F6B4F;

  /* Typography */
  --font-head: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.0625rem;
  --fs-lg: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  --fs-h3: clamp(1.125rem, 1.05rem + 0.3vw, 1.3125rem);
  --fs-h2: clamp(2rem, 1.45rem + 2.2vw, 3.25rem);
  --fs-h1: clamp(2.75rem, 1.7rem + 4.4vw, 5.5rem);

  /* Spacing (8pt rhythm) */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;
  --section-y: clamp(4.5rem, 3rem + 6vw, 8.5rem);

  /* Layout */
  --container: 1320px;
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 3rem);
  --header-h: 76px;

  /* Shape & depth */
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(21, 63, 59, 0.06);
  --shadow: 0 1px 2px rgba(21, 63, 59, 0.05), 0 12px 32px -12px rgba(21, 63, 59, 0.16);
  --shadow-lg: 0 30px 60px -30px rgba(14, 46, 43, 0.35);

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 160ms;
  --t: 280ms;
  --t-slow: 700ms;
}

/* 2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul[role="list"], ol { list-style: none; padding: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

::selection { background: var(--teal-900); color: var(--ivory); }

:focus-visible {
  outline: 2px solid var(--teal-600);
  outline-offset: 3px;
  border-radius: 2px;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--sm { width: 16px; height: 16px; stroke-width: 1.75; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  top: -100px; left: var(--sp-4);
  z-index: 200;
  padding: var(--sp-3) var(--sp-4);
  background: var(--teal-900);
  color: var(--ivory);
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip-link:focus { top: var(--sp-3); }

/* 3. Layout & typography
   ========================================================================== */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); position: relative; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
  font-family: var(--font-head);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-600);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--champagne);
}
.eyebrow--light { color: var(--champagne-light); }
.eyebrow--center { justify-content: center; }
.eyebrow-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--champagne);
}

.h2 {
  font-family: var(--font-head);
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--teal-900);
  text-wrap: balance;
}
.h2--light { color: var(--ivory); }

.section-head { margin-bottom: clamp(2.5rem, 2rem + 2.5vw, 4.5rem); }
.section-head--split {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--sp-6);
  align-items: end;
}
.section-head--split > div { grid-column: 1 / span 7; }
.section-head--split .section-intro { grid-column: 9 / span 4; }
.section-head--center { text-align: center; max-width: 720px; margin-inline: auto; }
.section-head--center .eyebrow { display: flex; }

.section-intro {
  color: var(--text-muted);
  font-size: var(--fs-md);
  max-width: 44ch;
}

/* 4. Components
   ========================================================================== */

/* Buttons */
.btn {
  --btn-bg: var(--teal-900);
  --btn-fg: var(--ivory);
  --btn-border: var(--teal-900);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  min-height: 52px;
  padding: 0 var(--sp-6);
  border: 1px solid var(--btn-border);
  border-radius: var(--radius-sm);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-head);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: background-color var(--t) var(--ease), color var(--t) var(--ease),
              border-color var(--t) var(--ease), box-shadow var(--t) var(--ease),
              transform var(--t-fast) var(--ease);
}
.btn .icon { transition: transform var(--t) var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }

.btn--primary:hover {
  --btn-bg: var(--teal-950);
  box-shadow: inset 0 -2px 0 var(--champagne);
}
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--teal-900);
  --btn-border: var(--line-strong);
}
.btn--ghost:hover { --btn-border: var(--teal-900); --btn-bg: rgba(21, 63, 59, 0.04); }
.btn--light {
  --btn-bg: var(--ivory);
  --btn-fg: var(--teal-900);
  --btn-border: var(--ivory);
}
.btn--light:hover { --btn-bg: var(--white); box-shadow: inset 0 -2px 0 var(--champagne); }
.btn--light:focus-visible { outline-color: var(--champagne-light); }
.btn--sm { min-height: 44px; padding: 0 var(--sp-5); font-size: var(--fs-sm); }
.btn--block { width: 100%; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--font-head);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--teal-900);
  background-image: linear-gradient(var(--champagne), var(--champagne));
  background-size: 100% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 4px;
  transition: background-size var(--t) var(--ease);
}
.text-link .icon { transition: transform var(--t) var(--ease); }
.text-link:hover .icon { transform: translateX(3px); }

/* 5. Sections
   ========================================================================== */

/* ---- 01 Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 239, 0.82);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease), background-color var(--t) var(--ease);
}
.site-header.is-scrolled {
  background: rgba(247, 245, 239, 0.94);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px -18px rgba(21, 63, 59, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  margin-right: auto;
  min-width: 0;
}
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--teal-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-sub {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav-list { display: flex; gap: clamp(1rem, 0.2rem + 1.6vw, 2.25rem); padding: 0; list-style: none; }
.nav-link {
  position: relative;
  display: inline-block;
  padding: var(--sp-2) 0;
  font-family: var(--font-head);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--charcoal);
  transition: color var(--t-fast) var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--champagne);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--t) var(--ease);
}
.nav-link:hover { color: var(--teal-900); }
.nav-link:hover::after,
.nav-link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-link.is-active { color: var(--teal-900); }
.nav-link.is-active::after { height: 2px; background: var(--teal-900); }

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--teal-900);
}

/* Drawer */
.drawer-backdrop {
  position: fixed; inset: 0;
  z-index: 140;
  background: rgba(14, 46, 43, 0.45);
  opacity: 0;
  transition: opacity var(--t) var(--ease);
}
.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 150;
  display: flex;
  flex-direction: column;
  width: min(420px, 100%);
  padding: var(--sp-4) var(--sp-5) var(--sp-6);
  background: var(--ivory);
  transform: translateX(100%);
  transition: transform 420ms var(--ease-out);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.drawer.is-open { transform: translateX(0); }
.drawer-backdrop.is-open { opacity: 1; }

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(var(--header-h) - var(--sp-4));
  border-bottom: 1px solid var(--line);
}
.drawer-label {
  font-family: var(--font-head);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.drawer-close {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--teal-900);
}
.drawer-list { margin-top: var(--sp-4); }
.drawer-list a {
  display: flex;
  align-items: baseline;
  gap: var(--sp-4);
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-head);
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--teal-900);
  transition: padding-left var(--t) var(--ease);
}
.drawer-list a span {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--champagne);
  min-width: 1.5rem;
}
.drawer-list a:hover { padding-left: var(--sp-2); }
.drawer-foot { margin-top: auto; padding-top: var(--sp-7); display: grid; gap: var(--sp-4); text-align: center; }
.drawer-mail { font-size: var(--fs-sm); color: var(--text-muted); }

/* ---- 02 Hero ---- */
.hero {
  position: relative;
  padding-block: clamp(3rem, 1.5rem + 5vw, 6.5rem) clamp(4rem, 2rem + 6vw, 8rem);
  overflow: hidden;
}
.hero::before { /* faint ruled background */
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, var(--line) 1px, transparent 1px);
  background-size: calc((min(100vw, var(--container) + var(--gutter) * 2) - var(--gutter) * 2) / 12) 100%;
  background-position: center top;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent 75%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent 75%);
  opacity: 0.5;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--sp-6);
  align-items: center;
}
.hero-copy { grid-column: 1 / span 7; padding-right: var(--sp-5); }

.hero-title {
  font-family: var(--font-head);
  font-size: var(--fs-h1);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: var(--teal-900);
}
.hero-title-accent {
  display: inline-block;
  position: relative;
  color: var(--teal-600);
}
.hero-title-accent::after {
  content: "";
  position: absolute;
  left: 0.04em; right: 0.1em;
  bottom: 0.02em;
  height: 0.06em;
  min-height: 3px;
  background: var(--champagne);
  transform-origin: left;
}

.hero-lede {
  margin-top: var(--sp-6);
  max-width: 34rem;
  font-size: var(--fs-lg);
  line-height: 1.6;
  color: var(--text-muted);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-7); }

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: var(--sp-6);
  margin-top: var(--sp-8);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
}
.hero-meta dt {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.hero-meta dd {
  margin-top: var(--sp-1);
  font-family: var(--font-head);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--teal-900);
}

/* Hero visual */
.hero-visual {
  grid-column: 8 / span 5;
  position: relative;
  padding: var(--sp-6) 0 var(--sp-8) var(--sp-6);
}
.hv-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 200px 200px var(--radius) var(--radius);
  background: var(--teal-900);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hv-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.hv-frame::before { /* soft shade at the base keeps the caption legible */
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(14, 46, 43, 0) 55%, rgba(14, 46, 43, 0.7) 100%);
}
.hv-frame > .hv-inset { /* champagne hairline echoing the arch */
  position: absolute;
  inset: var(--sp-4);
  z-index: 2;
  border: 1px solid rgba(214, 194, 158, 0.6);
  border-radius: 184px 184px var(--radius-sm) var(--radius-sm);
  pointer-events: none;
}
.hv-caption {
  position: absolute;
  right: var(--sp-5); bottom: var(--sp-5);
  z-index: 3;
  white-space: nowrap;
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--champagne-light);
}

.hv-card {
  position: absolute;
  z-index: 2;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hv-card--outline {
  left: 0;
  bottom: 0;
  width: min(300px, 78%);
  padding: var(--sp-5);
}
.hv-card--outline::before { /* champagne accent rule */
  content: "";
  position: absolute;
  top: -1px; left: var(--sp-5);
  width: 40px; height: 2px;
  background: var(--champagne);
}
.hv-card-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--sp-3);
}
.hv-steps li {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  border-top: 1px solid var(--line);
  font-family: var(--font-head);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--teal-900);
}
.hv-steps li span { color: var(--champagne); font-weight: 700; font-size: var(--fs-xs); padding-top: 2px; }

.hv-card--tag {
  top: var(--sp-8);
  right: calc(var(--sp-5) * -1);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  font-family: var(--font-head);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--teal-900);
}
.hv-card--tag .icon { color: var(--champagne); }

/* ---- 03 About ---- */
.about { background: var(--white); border-block: 1px solid var(--line); }
.about-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--sp-6);
  align-items: start;
}
.about-media { grid-column: 1 / span 5; position: sticky; top: calc(var(--header-h) + var(--sp-6)); }
.about-copy { grid-column: 7 / span 6; }

.portrait { position: relative; }
.portrait-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ivory-200);
}
.portrait-frame::after { /* inset champagne hairline over the photo */
  content: "";
  position: absolute;
  inset: var(--sp-4);
  border: 1px solid rgba(247, 245, 239, 0.55);
  border-radius: var(--radius-sm);
  pointer-events: none;
}
.portrait img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }

.portrait-caption {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.portrait-name { font-family: var(--font-head); font-weight: 700; color: var(--teal-900); }

.about-text { margin-top: var(--sp-6); display: grid; gap: var(--sp-4); font-size: var(--fs-md); max-width: 60ch; }
.about-text p:first-child { color: var(--charcoal); }
.about-text p + p { color: var(--text-muted); }

.about-statement {
  margin-top: var(--sp-7);
  padding: var(--sp-5) 0 var(--sp-5) var(--sp-5);
  border-left: 2px solid var(--champagne);
}
.about-statement p {
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.625rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--teal-900);
  max-width: 30ch;
}

.credentials {
  margin-top: var(--sp-7);
  padding: var(--sp-5);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--ivory);
}
.credentials-title {
  font-family: var(--font-head);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-900);
  margin-bottom: var(--sp-3);
}
.credentials-list { padding: 0; list-style: none; display: grid; gap: var(--sp-2); }
.credentials-list li {
  position: relative;
  padding-left: var(--sp-5);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.credentials-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.75em;
  width: 10px; height: 1px;
  background: var(--champagne);
}
.is-placeholder { font-style: italic; }

/* ---- 04 Services ---- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line);
}
.service {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 1rem + 1.5vw, 2.5rem);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
  transition: background-color var(--t) var(--ease);
}
.service::before { /* top accent that draws in on hover */
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 100%; height: 2px;
  background: var(--teal-900);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 450ms var(--ease-out);
}
.service:hover { background: var(--white); }
.service:hover::before,
.service:focus-within::before { transform: scaleX(1); }

.service-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--sp-7);
}
.service-num {
  font-family: var(--font-head);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--champagne);
}
.service-icon { width: 26px; height: 26px; stroke-width: 1.25; color: var(--teal-600); transition: color var(--t) var(--ease), transform var(--t) var(--ease); }
.service:hover .service-icon { color: var(--teal-900); transform: translateY(-2px); }

.service-title {
  font-family: var(--font-head);
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--teal-900);
  max-width: 22ch;
}
.service-text {
  margin-top: var(--sp-3);
  color: var(--text-muted);
  font-size: 0.9375rem;
  max-width: 38ch;
}
.service-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  align-self: flex-start;
  margin-top: auto;
  padding-top: var(--sp-6);
  min-height: 44px;
  font-family: var(--font-head);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--teal-600);
  transition: color var(--t) var(--ease);
}
.service-link .icon { transition: transform var(--t) var(--ease); }
.service-link:hover { color: var(--teal-900); }
.service-link:hover .icon { transform: translate(2px, -2px); }

/* ---- 05 Why ---- */
.why {
  background: var(--teal-900);
  color: rgba(247, 245, 239, 0.78);
  overflow: hidden;
}
.why::before { /* fine architectural arcs, bottom-left */
  content: "";
  position: absolute;
  left: -220px; bottom: -320px;
  width: 640px; height: 640px;
  background: radial-gradient(circle closest-side,
    transparent 0 calc(100% - 121px), rgba(184, 154, 106, 0.08) calc(100% - 121px) calc(100% - 120px),
    transparent calc(100% - 120px) calc(100% - 61px), rgba(184, 154, 106, 0.13) calc(100% - 61px) calc(100% - 60px),
    transparent calc(100% - 60px) calc(100% - 1px), rgba(184, 154, 106, 0.22) calc(100% - 1px) 100%,
    transparent 100%);
  pointer-events: none;
}
.why-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--sp-6);
}
.why-head { grid-column: 1 / span 5; align-self: start; position: sticky; top: calc(var(--header-h) + var(--sp-6)); }
.why-intro { margin-top: var(--sp-6); font-size: var(--fs-md); max-width: 40ch; }
.why-media {
  margin-top: var(--sp-7);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-light);
}
.why-media img {
  width: 100%; height: auto;
  aspect-ratio: 9 / 6.4;
  object-fit: cover;
  filter: saturate(0.85);
  transition: transform 1200ms var(--ease-out);
}
.why-media:hover img { transform: scale(1.03); }
.why-list {
  grid-column: 7 / span 6;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line-light);
}
.why-item {
  padding: var(--sp-6) var(--sp-5) var(--sp-7) 0;
  border-bottom: 1px solid var(--line-light);
}
.why-item:nth-child(odd) { padding-right: var(--sp-6); border-right: 1px solid var(--line-light); }
.why-item:nth-child(even) { padding-left: var(--sp-6); }
.why-num {
  display: block;
  margin-bottom: var(--sp-7);
  font-family: var(--font-head);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--champagne-light);
}
.why-title {
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--ivory);
  margin-bottom: var(--sp-3);
}
.why-item p { font-size: 0.9375rem; max-width: 34ch; }

/* ---- 06 Process ---- */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-6);
}
.steps::before { /* connecting rule through the markers */
  content: "";
  position: absolute;
  top: calc(clamp(3.5rem, 2.5rem + 3vw, 5.5rem) + var(--sp-5) + 5px);
  left: 0; right: 0;
  height: 1px;
  background: var(--line-strong);
}
.step { position: relative; padding-right: var(--sp-5); }
.step-num {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(3.5rem, 2.5rem + 3vw, 5.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1px var(--teal-600);
}
.step-marker {
  position: relative;
  display: block;
  width: 11px; height: 11px;
  margin-block: var(--sp-5) var(--sp-6);
  border-radius: 50%;
  background: var(--ivory);
  border: 1px solid var(--teal-900);
  box-shadow: 0 0 0 5px var(--ivory);
}
.step:first-child .step-marker { background: var(--teal-900); }
.step-title {
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--teal-900);
  margin-bottom: var(--sp-3);
}
.step p { color: var(--text-muted); max-width: 32ch; }
.process-foot { margin-top: var(--sp-8); text-align: center; }

/* ---- 07 CTA ---- */
.cta { padding-bottom: var(--section-y); }
.cta-panel {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--sp-6);
  align-items: end;
  padding: clamp(2.5rem, 1.5rem + 5vw, 6rem) clamp(1.5rem, 0.5rem + 5vw, 6rem);
  border-radius: var(--radius-lg);
  background: var(--teal-900);
  color: rgba(247, 245, 239, 0.8);
  overflow: hidden;
}
.cta-panel::before { /* faint vertical rules */
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(to right, rgba(247, 245, 239, 0.05) 1px, transparent 1px);
  background-size: calc(100% / 12) 100%;
  pointer-events: none;
}
.cta-corner {
  position: absolute;
  width: 48px; height: 48px;
  border-color: var(--champagne);
  border-style: solid;
  border-width: 0;
}
.cta-corner--tl { top: var(--sp-5); left: var(--sp-5); border-top-width: 1px; border-left-width: 1px; }
.cta-corner--br { bottom: var(--sp-5); right: var(--sp-5); border-bottom-width: 1px; border-right-width: 1px; }
.cta-copy { position: relative; grid-column: 1 / span 8; }
.cta-title {
  font-family: var(--font-head);
  font-size: clamp(2.125rem, 1.4rem + 3vw, 4.25rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--ivory);
  max-width: 14ch;
  text-wrap: balance;
}
.cta-copy p { margin-top: var(--sp-5); font-size: var(--fs-md); max-width: 46ch; }
.cta-actions {
  position: relative;
  grid-column: 9 / span 4;
  display: grid;
  justify-items: end;
  gap: var(--sp-4);
}
.cta-mail {
  font-size: var(--fs-sm);
  color: var(--champagne-light);
  border-bottom: 1px solid rgba(214, 194, 158, 0.4);
  padding-bottom: 2px;
  transition: border-color var(--t) var(--ease);
}
.cta-mail:hover { border-color: var(--champagne-light); }
.cta-mail:focus-visible { outline-color: var(--champagne-light); }

/* ---- 08 FAQ ---- */
.faq { background: var(--white); border-top: 1px solid var(--line); }
.faq-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--sp-6);
}
.faq-head { grid-column: 1 / span 4; align-self: start; position: sticky; top: calc(var(--header-h) + var(--sp-6)); }
.faq-note { margin-block: var(--sp-5) var(--sp-6); color: var(--text-muted); font-size: 0.9375rem; max-width: 36ch; }
.accordion { grid-column: 6 / span 7; border-top: 1px solid var(--line-strong); }

.acc-item { border-bottom: 1px solid var(--line); }
.acc-heading { font: inherit; }
.acc-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-5);
  width: 100%;
  padding: var(--sp-5) 0;
  border: 0;
  background: none;
  text-align: left;
  font-family: var(--font-head);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--teal-900);
  transition: color var(--t-fast) var(--ease);
}
.acc-trigger:hover { color: var(--teal-600); }
.acc-icon {
  width: 34px; height: 34px;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  stroke-width: 1.5;
  transition: transform var(--t) var(--ease), background-color var(--t) var(--ease), color var(--t) var(--ease), border-color var(--t) var(--ease);
}
.acc-trigger[aria-expanded="true"] .acc-icon {
  transform: rotate(45deg);
  background: var(--teal-900);
  border-color: var(--teal-900);
  color: var(--ivory);
}
.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows var(--t) var(--ease), visibility 0s linear var(--t);
}
.acc-panel.is-open {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows var(--t) var(--ease), visibility 0s;
}
.acc-inner { overflow: hidden; }
.acc-inner p { padding: 0 var(--sp-8) var(--sp-5) 0; color: var(--text-muted); max-width: 64ch; }
.acc-inner a { color: var(--teal-900); font-weight: 600; text-decoration: underline; text-decoration-color: var(--champagne); text-underline-offset: 3px; }

/* ---- 09 Contact ---- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--sp-6);
  align-items: start;
}
.contact-info { grid-column: 1 / span 5; }
.contact-intro { margin-top: var(--sp-5); font-size: var(--fs-md); color: var(--text-muted); max-width: 42ch; }

.contact-list {
  margin-top: var(--sp-7);
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.contact-list li {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--line);
}
.contact-list .icon { width: 20px; height: 20px; margin-top: 2px; color: var(--champagne); }
.contact-list div { display: flex; flex-direction: column; }
.contact-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.contact-value { font-family: var(--font-head); font-weight: 600; color: var(--teal-900); }
a.contact-value { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: text-decoration-color var(--t) var(--ease); }
a.contact-value:hover { text-decoration-color: var(--champagne); }
.contact-flag { font-size: var(--fs-xs); color: var(--text-muted); font-style: italic; }

.form-card {
  grid-column: 7 / span 6;
  position: relative;
  padding: clamp(1.5rem, 1rem + 2.5vw, 3rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.form-card::before {
  content: "";
  position: absolute;
  top: -1px; left: clamp(1.5rem, 1rem + 2.5vw, 3rem);
  width: 56px; height: 2px;
  background: var(--champagne);
}

.contact-form { display: grid; gap: var(--sp-5); }
.form-row { display: grid; gap: var(--sp-5); }
.form-row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.field { display: grid; gap: var(--sp-2); align-content: start; }
.field label {
  font-family: var(--font-head);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--teal-900);
}
.req { color: var(--error); }
.opt { font-weight: 500; color: var(--text-muted); }

.field input:not([type="checkbox"]),
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--ivory);
  font-size: 1rem; /* prevents iOS zoom */
  color: var(--charcoal);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.55; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--teal-600); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--teal-900);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(56, 107, 99, 0.18);
}
.field [aria-invalid="true"] { border-color: var(--error) !important; background: #FCF6F4; }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(162, 59, 44, 0.15); }

.select-wrap { position: relative; }
.select-wrap::after {
  content: "";
  position: absolute;
  right: 1rem; top: 50%;
  width: 7px; height: 7px;
  border-right: 1.5px solid var(--teal-900);
  border-bottom: 1.5px solid var(--teal-900);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.field select { appearance: none; -webkit-appearance: none; padding-right: 2.5rem; cursor: pointer; }
.field select.is-highlighted { animation: highlight 1.6s var(--ease); }
@keyframes highlight {
  0%, 100% { box-shadow: 0 0 0 0 rgba(184, 154, 106, 0); }
  30% { box-shadow: 0 0 0 4px rgba(184, 154, 106, 0.45); border-color: var(--champagne); }
}

.field-hint { font-size: var(--fs-xs); color: var(--text-muted); }
.field-error {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--error);
}
.field-error:empty { display: none; }

.check { display: flex; gap: var(--sp-3); align-items: flex-start; }
.check input {
  flex: none;
  width: 20px; height: 20px;
  margin: 2px 0 0;
  accent-color: var(--teal-900);
  cursor: pointer;
}
.check label { font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 400; color: var(--charcoal); cursor: pointer; }
.check input[aria-invalid="true"] { outline: 2px solid var(--error); outline-offset: 2px; }

.privacy-notice { margin-left: calc(20px + var(--sp-3)); font-size: var(--fs-xs); color: var(--text-muted); }
.privacy-notice summary {
  display: inline-block;
  cursor: pointer;
  font-weight: 600;
  color: var(--teal-600);
  text-decoration: underline;
  text-decoration-color: var(--champagne);
  text-underline-offset: 3px;
  padding-block: var(--sp-2);
}
.privacy-notice summary::-webkit-details-marker { display: none; }
.privacy-notice p {
  margin-top: var(--sp-2);
  padding: var(--sp-3);
  background: var(--ivory);
  border-radius: var(--radius-sm);
  line-height: 1.55;
}

.honeypot { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4) var(--sp-5); }
.form-small { font-size: var(--fs-xs); color: var(--text-muted); }

.btn--submit { min-width: 180px; }
.spinner {
  display: none;
  width: 16px; height: 16px;
  border: 2px solid rgba(247, 245, 239, 0.35);
  border-top-color: var(--ivory);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.btn--submit.is-loading { pointer-events: none; opacity: 0.85; }
.btn--submit.is-loading .spinner { display: inline-block; }
.btn--submit[disabled] { cursor: not-allowed; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-status:empty { display: none; }
.form-status {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-4);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  line-height: 1.5;
}
.form-status.is-error { background: #FBF1EE; color: #7E2C20; border: 1px solid rgba(162, 59, 44, 0.25); }
.form-status.is-info { background: var(--ivory); color: var(--teal-900); border: 1px solid var(--line); }
.form-status a { font-weight: 600; text-decoration: underline; }

.form-notice {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-4);
  background: #FBF6EC;
  border: 1px solid rgba(184, 154, 106, 0.5);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  color: #5A4626;
}
.form-notice .icon { color: #8A6A3A; margin-top: 3px; }
.form-notice a { font-weight: 600; text-decoration: underline; }

.form-success { text-align: center; padding: var(--sp-7) var(--sp-4); outline: none; }
.success-icon {
  display: inline-grid;
  place-items: center;
  width: 64px; height: 64px;
  margin-bottom: var(--sp-5);
  border-radius: 50%;
  border: 1px solid var(--champagne);
  color: var(--teal-900);
}
.form-success h3 {
  font-family: var(--font-head);
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--teal-900);
}
.form-success p { margin: var(--sp-3) auto var(--sp-6); color: var(--text-muted); max-width: 38ch; }

/* ---- 10 Footer ---- */
.site-footer {
  background: var(--teal-950);
  color: rgba(247, 245, 239, 0.72);
  padding-top: clamp(4rem, 3rem + 4vw, 7rem);
  font-size: 0.9375rem;
}
.site-footer a { transition: color var(--t-fast) var(--ease); }
.site-footer a:not(.btn):hover { color: var(--ivory); }
.site-footer :focus-visible { outline-color: var(--champagne-light); }

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--sp-6);
  flex-wrap: wrap;
  padding-bottom: clamp(3rem, 2rem + 3vw, 5rem);
  border-bottom: 1px solid var(--line-light);
}
.footer-statement {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 1.4rem + 4.8vw, 6rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.045em;
  color: var(--ivory);
}
.footer-statement span {
  position: relative;
  display: inline-block;
  color: var(--champagne-light);
}
.footer-statement span::after { /* echoes the hero "Made Clear." underline */
  content: "";
  position: absolute;
  left: 0.04em; right: 0.12em;
  bottom: -0.04em;
  height: 0.05em;
  min-height: 2px;
  background: var(--champagne);
  opacity: 0.6;
}
.footer-top-cta { display: grid; gap: var(--sp-4); justify-items: end; }
.footer-mail { color: var(--champagne-light); font-family: var(--font-head); font-weight: 600; }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--sp-6);
  row-gap: var(--sp-7);
  padding-block: clamp(3rem, 2rem + 3vw, 4.5rem);
}
.footer-brand { grid-column: 1 / span 4; }
.footer-brand p:last-child { margin-top: var(--sp-4); max-width: 36ch; }
.footer-name { font-family: var(--font-head); font-size: 1.125rem; font-weight: 800; color: var(--ivory); }
.footer-col { grid-column: span 2; }
.footer-col--nav { grid-column: 6 / span 2; }
.footer-col--contact { grid-column: span 3; }
.footer-heading {
  margin-bottom: var(--sp-4);
  font-family: var(--font-head);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--champagne-light);
}
.footer-col ul { padding: 0; list-style: none; display: grid; gap: var(--sp-2); }
.footer-col a { display: inline-block; padding-block: 2px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-3) var(--sp-6);
  padding-block: var(--sp-5);
  border-top: 1px solid var(--line-light);
  font-size: var(--fs-xs);
  color: rgba(247, 245, 239, 0.6);
}
.footer-credit a {
  font-weight: 600;
  color: var(--champagne-light);
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 350ms var(--ease-out);
}
.footer-credit a:hover { background-size: 100% 1px; }
.to-top { display: inline-flex; align-items: center; gap: var(--sp-2); font-weight: 600; color: var(--champagne-light); }

/* 6. Motion
   ========================================================================== */

/* Hero entrance */
.js .hero-anim {
  opacity: 0;
  transform: translateY(16px);
  animation: rise 900ms var(--ease-out) forwards;
  animation-delay: calc(var(--d, 0) * 110ms + 100ms);
}
.js .hero-visual.hero-anim { transform: translateY(24px) scale(0.985); animation-duration: 1200ms; }
.js .hero-title-accent::after { transform: scaleX(0); animation: draw 900ms var(--ease-out) 900ms forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes draw { to { transform: scaleX(1); } }

/* Scroll progress line along the bottom of the header */
.scroll-progress {
  position: absolute;
  left: 0; bottom: -1px;
  width: 100%; height: 2px;
  background: var(--champagne);
  transform: scaleX(var(--progress, 0));
  transform-origin: left;
  pointer-events: none;
}

/* Scroll reveal — base: fade and rise */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out),
              filter 900ms var(--ease-out), clip-path 1200ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* Headings: soft-focus settle */
.js .h2[data-reveal] { filter: blur(8px); transform: translateY(28px); }
.js .h2[data-reveal].is-visible { filter: blur(0); transform: none; }

/* Eyebrow rule draws in after the label appears */
.js .eyebrow[data-reveal]::before {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 900ms var(--ease-out) 250ms;
}
.js .eyebrow[data-reveal].is-visible::before { transform: scaleX(1); }

/* Portrait: curtain wipe upward with a slow settle inside */
/* (clip the inner figure, not the observed element — a fully clipped target never intersects) */
.js [data-reveal="curtain"] { opacity: 1; transform: none; }
.js [data-reveal="curtain"] .portrait {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1200ms var(--ease-out);
}
.js [data-reveal="curtain"].is-visible .portrait { clip-path: inset(0 0 0 0); }
.js [data-reveal="curtain"] .portrait img {
  transform: scale(1.08);
  transition: transform 1600ms var(--ease-out);
}
.js [data-reveal="curtain"].is-visible .portrait img { transform: none; }

/* Process: timeline rule draws across, markers fill in sequence */
.js [data-reveal="draw"] { opacity: 1; transform: none; }
.js [data-reveal="draw"]::before {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1400ms var(--ease-out) 200ms;
}
.js [data-reveal="draw"].is-visible::before { transform: scaleX(1); }
.js .steps .step-marker { transition: background-color 400ms var(--ease), transform 300ms var(--ease); }
.js .steps:not(.is-visible) .step-marker { background: var(--ivory); }
.js .steps.is-visible .step-marker { background: var(--teal-900); }
.js .steps.is-visible .step:nth-child(1) .step-marker { transition-delay: 300ms, 0ms; }
.js .steps.is-visible .step:nth-child(2) .step-marker { transition-delay: 800ms, 0ms; }
.js .steps.is-visible .step:nth-child(3) .step-marker { transition-delay: 1300ms, 0ms; }

/* CTA: gentle scale-up, corner brackets slide into place */
.js [data-reveal="scale"] { transform: translateY(24px) scale(0.97); }
.js [data-reveal="scale"].is-visible { transform: none; }
.js [data-reveal="scale"] .cta-corner {
  opacity: 0;
  transition: opacity 600ms var(--ease-out) 500ms, transform 900ms var(--ease-out) 500ms;
}
.js [data-reveal="scale"] .cta-corner--tl { transform: translate(14px, 14px); }
.js [data-reveal="scale"] .cta-corner--br { transform: translate(-14px, -14px); }
.js [data-reveal="scale"].is-visible .cta-corner { opacity: 1; transform: none; }

/* ---------- Hover refinements ---------- */

/* Buttons: colour sweeps in from the left */
.btn { isolation: isolate; overflow: hidden; }
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--btn-sweep, var(--teal-950));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 450ms var(--ease-out);
}
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn--primary { --btn-sweep: var(--teal-950); }
.btn--primary:hover { --btn-bg: var(--teal-900); }
.btn--ghost { --btn-sweep: var(--teal-900); }
.btn--ghost:hover { --btn-fg: var(--ivory); --btn-border: var(--teal-900); }
.btn--light { --btn-sweep: var(--white); }
.btn--light:hover { --btn-bg: var(--ivory); }

/* Hero cards lift slightly */
.hv-card { transition: transform 400ms var(--ease-out), box-shadow 400ms var(--ease-out); }
.hv-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.hv-steps li { transition: padding-left var(--t) var(--ease); }
.hv-steps li:hover { padding-left: var(--sp-1); }

/* Service panels: soft spotlight that follows the pointer */
.service > * { position: relative; z-index: 1; }
.service::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 40%), rgba(184, 154, 106, 0.12), transparent 65%);
  opacity: 0;
  transition: opacity 400ms var(--ease);
  pointer-events: none;
}
.service:hover::after { opacity: 1; }
.service-num { transition: color var(--t) var(--ease), letter-spacing var(--t) var(--ease); }
.service:hover .service-num { color: var(--teal-900); letter-spacing: 0.14em; }

/* Why: champagne rule draws under the hovered item */
.why-item { position: relative; }
.why-item::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 100%; height: 1px;
  background: var(--champagne);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 600ms var(--ease-out);
}
.why-item:hover::after { transform: scaleX(1); }
.why-title, .why-num { transition: transform var(--t) var(--ease), color var(--t) var(--ease); }
.why-item:hover .why-title { transform: translateX(4px); }
.why-item:hover .why-num { color: var(--ivory); }

/* Process steps */
.step-num { transition: color 400ms var(--ease), -webkit-text-stroke-color 400ms var(--ease); }
.step:hover .step-num { color: var(--teal-900); -webkit-text-stroke-color: var(--teal-900); }
.step:hover .step-marker { transform: scale(1.35); }

/* FAQ */
.acc-trigger > span { transition: transform var(--t) var(--ease); }
.acc-trigger:hover > span { transform: translateX(6px); }
.acc-trigger:hover .acc-icon { border-color: var(--teal-900); }

/* Contact details */
.contact-list li { transition: padding-left var(--t) var(--ease); }
.contact-list li:hover { padding-left: var(--sp-2); }
.contact-list .icon { transition: color var(--t) var(--ease); }
.contact-list li:hover .icon { color: var(--teal-900); }

/* Footer links: underline slides in */
.footer-col a,
.footer-mail {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 350ms var(--ease-out), color var(--t-fast) var(--ease);
}
.footer-col a:hover,
.footer-mail:hover { background-size: 100% 1px; }
.to-top .icon { transition: transform var(--t) var(--ease); }
.to-top:hover .icon { transform: translateY(-3px); }

/* Hero parallax uses the independent `translate` property so it never fights hover transforms */
[data-parallax] { will-change: translate; }

@media (max-width: 860px) {
  .js [data-reveal="draw"]::before { transform: scaleY(0); transform-origin: top; }
  .js [data-reveal="draw"].is-visible::before { transform: scaleY(1); }
}

@media (hover: none) {
  .service::after, .why-item::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal], .js .h2[data-reveal] { filter: none; clip-path: none; }
  .js .eyebrow[data-reveal]::before,
  .js [data-reveal="draw"]::before,
  .js [data-reveal="curtain"] .portrait img,
  .js [data-reveal="scale"] .cta-corner { transform: none; opacity: 1; }
  .js [data-reveal="curtain"] .portrait { clip-path: none; }
  [data-parallax] { translate: none !important; }
  .btn::before { display: none; }
}

@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;
    transition-delay: 0ms !important;
  }
  .js .hero-anim, .js [data-reveal] { opacity: 1; transform: none; animation: none; }
  .js .hero-title-accent::after { transform: none; animation: none; }
}

/* 7. Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .header-cta { display: none; }
}

@media (max-width: 1024px) {
  .primary-nav { display: none; }
  .header-cta { display: inline-flex; }
  .menu-toggle { display: inline-flex; }
  .header-inner { gap: var(--sp-3); }

  .hero-copy { grid-column: 1 / span 7; padding-right: 0; }
  .hero-visual { grid-column: 8 / span 5; padding-left: 0; }
  .hv-card--tag { right: 0; }
  .hero-meta { grid-template-columns: repeat(2, auto); }

  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .why-head { grid-column: 1 / -1; position: static; margin-bottom: var(--sp-8); }
  .why-list { grid-column: 1 / -1; }

  .faq-head { grid-column: 1 / -1; position: static; margin-bottom: var(--sp-6); }
  .accordion { grid-column: 1 / -1; }

  .contact-info { grid-column: 1 / -1; margin-bottom: var(--sp-7); }
  .contact-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--sp-6); }
  .form-card { grid-column: 1 / -1; }

  .footer-brand { grid-column: 1 / -1; }
  .footer-col, .footer-col--nav, .footer-col--contact { grid-column: span 4; }
}

@media (max-width: 860px) {
  /* 11 gutters of 2rem would overflow a 360px screen */
  .hero-grid, .about-grid, .why-grid, .faq-grid, .contact-grid,
  .cta-panel, .footer-grid, .section-head--split { column-gap: var(--sp-4); }

  .hero-copy { grid-column: 1 / -1; }
  .hero-visual {
    grid-column: 1 / -1;
    margin-top: var(--sp-8);
    max-width: 520px;
    width: 100%;
    justify-self: center;
    padding: 0 0 var(--sp-8) var(--sp-6);
  }
  .hv-frame { aspect-ratio: 5 / 5; border-radius: 160px 160px var(--radius) var(--radius); }

  .section-head--split > div,
  .section-head--split .section-intro { grid-column: 1 / -1; }
  .section-head--split .section-intro { margin-top: var(--sp-5); }

  .about-media { grid-column: 1 / -1; position: static; max-width: 460px; margin-bottom: var(--sp-8); }
  .about-copy { grid-column: 1 / -1; }

  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before {
    top: 0; bottom: 0;
    left: 5px; right: auto;
    width: 1px; height: auto;
  }
  .step {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: var(--sp-5);
    padding: 0 0 var(--sp-7) 0;
  }
  .step-marker { grid-row: 1 / span 3; margin: 6px 0 0; }
  .step-num { font-size: 2.5rem; margin-bottom: var(--sp-3); }
  .process-foot { text-align: left; padding-left: calc(11px + var(--sp-5)); margin-top: 0; }

  .cta-copy, .cta-actions { grid-column: 1 / -1; }
  .cta-actions { justify-items: start; margin-top: var(--sp-6); }

  .footer-top-cta { justify-items: start; }
}

@media (max-width: 640px) {
  :root { --header-h: 68px; }

  .header-cta { display: none; }
  .brand-sub { display: none; }
  .brand-name { font-size: 0.9375rem; }

  .hero-actions .btn { flex: 1 1 100%; }
  .hero-meta { grid-template-columns: 1fr 1fr; gap: var(--sp-5); }
  .hero-meta > div:last-child { grid-column: 1 / -1; }

  .hero-visual { padding: 0 0 var(--sp-2); }
  .hv-frame { aspect-ratio: 4 / 4.4; }
  .hv-caption { display: none; }
  .hv-card--outline {
    position: relative;
    width: auto;
    margin: -72px var(--sp-4) 0;
    padding: var(--sp-4);
  }
  .hv-card--tag { top: var(--sp-5); right: var(--sp-3); }

  .service-grid { grid-template-columns: 1fr; border-left: 0; }
  .service { border-right: 0; padding-inline: 0; }
  .service:hover { background: transparent; }
  .service-top { margin-bottom: var(--sp-5); }
  .service-link { padding-top: var(--sp-4); }

  .why-list { grid-template-columns: 1fr; }
  .why-item,
  .why-item:nth-child(odd),
  .why-item:nth-child(even) { padding: var(--sp-6) 0; border-right: 0; }
  .why-num { margin-bottom: var(--sp-4); }

  .cta-panel { border-radius: var(--radius); }
  .cta-actions .btn { width: 100%; }
  .cta-corner { width: 28px; height: 28px; }
  .cta-corner--tl { top: var(--sp-3); left: var(--sp-3); }
  .cta-corner--br { bottom: var(--sp-3); right: var(--sp-3); }

  .acc-inner p { padding-right: 0; }

  .contact-list { grid-template-columns: 1fr; }
  .form-row--2 { grid-template-columns: 1fr; }
  .form-actions .btn { width: 100%; }
  .privacy-notice { margin-left: 0; }

  .footer-col, .footer-col--nav { grid-column: span 6; }
  .footer-col--contact { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: var(--sp-3); padding-block: var(--sp-5) var(--sp-6); }
}

@media (max-width: 380px) {
  .brand-mark { width: 34px; height: 34px; }
  .hero-meta { grid-template-columns: 1fr; }
}
