/* ==========================================================================
   Kumar Niranjan & Associates — Chartered Accountants
   Brand: #3A3A39 charcoal · #878484 grey · #F5F3EF ivory · #0E2039 navy
   Type:  Karoll (display) · The Youngest Serif (text)
   Motif: the thin vertical rule from the wordmark, used as the left rule on
          eyebrows, section heads, quotes, the hero frame and the footer.
   ========================================================================== */

/* ---------- Fonts ---------------------------------------------------------
   Drop the licensed font files into /assets/fonts/ with these exact names.
   Until then the site falls back to Cormorant Garamond / EB Garamond.       */
@font-face {
  font-family: "Karoll";
  src: url("../fonts/Karoll-Regular.woff2") format("woff2"),
       url("../fonts/Karoll-Regular.otf") format("opentype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "The Youngest Serif";
  src: url("../fonts/TheYoungestSerif-Regular.woff2") format("woff2"),
       url("../fonts/TheYoungestSerif-Regular.otf") format("opentype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "The Youngest Serif";
  src: url("../fonts/TheYoungestSerif-Italic.woff2") format("woff2"),
       url("../fonts/TheYoungestSerif-Italic.otf") format("opentype");
  font-weight: 400; font-style: italic; font-display: swap;
}

/* ---------- Tokens ------------------------------------------------------- */
:root {
  --charcoal: #3A3A39;
  --grey: #878484;
  --ivory: #F5F3EF;
  --navy: #0E2039;
  --white: #FFFFFF;

  --ivory-deep: #ECE9E2;
  --line: rgba(58, 58, 57, 0.14);
  --line-strong: rgba(58, 58, 57, 0.32);
  --line-light: rgba(245, 243, 239, 0.16);
  --navy-soft: #16294a;

  --display: "Karoll", "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --text: "The Youngest Serif", "EB Garamond", Garamond, Georgia, "Times New Roman", serif;

  --max: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --section: clamp(56px, 7vw, 88px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --rule-gap: 22px;              /* space between the wordmark rule and text */
}

/* ---------- Base --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.menu-open, body.modal-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
::selection { background: var(--navy); color: var(--ivory); }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }

.container { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- Typography --------------------------------------------------- */
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.08;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 5.6vw, 4.8rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
h3 { font-size: clamp(1.35rem, 1.9vw, 1.65rem); line-height: 1.18; }
.lede { font-size: clamp(1.12rem, 1.4vw, 1.3rem); line-height: 1.55; }
.muted { color: var(--grey); }
.num { font-family: var(--display); font-variant-numeric: oldstyle-nums; font-feature-settings: "onum" 1; }

/* Eyebrow: small caps label, carries the wordmark's vertical rule */
.eyebrow {
  display: inline-flex; align-items: center;
  font-size: 0.76rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--grey);
  border-left: 1px solid currentColor; padding-left: 14px; line-height: 1.3;
}

/* Section head: the rule runs the full height of eyebrow + title, like the mark */
.section-head {
  display: grid; gap: 12px;
  padding-bottom: 18px; margin-bottom: clamp(22px, 3vw, 34px);
  border-bottom: 1px solid var(--line);
}
.section-head > div { display: grid; gap: 12px; border-left: 1px solid var(--line-strong); padding-left: var(--rule-gap); }
.section-head > div .eyebrow { border-left: 0; padding-left: 0; }
.section-head p { max-width: 58ch; color: var(--grey); }
.section-head h2.light { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.section-head.center { text-align: center; justify-items: center; border-bottom: 0; padding-bottom: 0; }
.section-head.center > div { justify-items: center; border-left: 0; padding-left: 0; }
.dark .section-head { border-color: var(--line-light); }
.dark .section-head > div { border-left-color: rgba(245, 243, 239, 0.4); }
.dark .section-head p, .dark .eyebrow { color: rgba(245, 243, 239, 0.62); }

/* ---------- Buttons ------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 15px 26px;
  font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; line-height: 1;
  border: 1px solid var(--charcoal); border-radius: 999px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--charcoal); color: var(--ivory); }
.btn-primary:hover { background: var(--navy); border-color: var(--navy); }
.btn-outline { background: transparent; color: var(--charcoal); }
.btn-outline:hover { background: var(--charcoal); color: var(--ivory); }
.btn-light { background: var(--ivory); color: var(--navy); border-color: var(--ivory); }
.btn-light:hover { background: var(--white); border-color: var(--white); }
.btn-ghost-light { background: transparent; color: var(--ivory); border-color: rgba(245, 243, 239, 0.4); }
.btn-ghost-light:hover { border-color: var(--ivory); background: rgba(245, 243, 239, 0.08); }
.btn-wa svg { width: 18px; height: 18px; }
.btn-sm { padding: 11px 18px; font-size: 0.72rem; }

/* Plus / "open" glyph used on every clickable card */
.plus {
  display: inline-grid; place-items: center; position: relative; flex: none;
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  transition: background 0.3s, border-color 0.3s, transform 0.5s var(--ease);
}
.plus::before, .plus::after { content: ""; position: absolute; background: currentColor; transition: transform 0.4s var(--ease); }
.plus::before { width: 11px; height: 1px; }
.plus::after { width: 1px; height: 11px; }
.dark .plus { border-color: rgba(245, 243, 239, 0.4); }

.more {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  cursor: pointer; transition: color 0.3s;
}
.more:hover { color: var(--navy); }
.more:hover .plus { background: var(--charcoal); border-color: var(--charcoal); color: var(--ivory); transform: rotate(90deg); }
.dark .more:hover { color: var(--white); }
.dark .more:hover .plus { background: var(--ivory); border-color: var(--ivory); color: var(--navy); }

/* ---------- Header ------------------------------------------------------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding-block: 20px;
  color: var(--charcoal);
  transition: padding 0.4s var(--ease), top 0.4s var(--ease), color 0.5s var(--ease);
}
/* The blurred bar lives on a pseudo-element so the header itself never becomes a
   containing block for the fixed mobile menu (backdrop-filter and transform both do). */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(245, 243, 239, 0); box-shadow: none;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  opacity: 0; transition: opacity 0.4s var(--ease), background 0.5s var(--ease);
}
.site-header.scrolled { padding-block: 12px; }
.site-header.scrolled::before { opacity: 1; background: rgba(245, 243, 239, 0.9); box-shadow: 0 1px 0 var(--line); }
/* Over a navy section the header turns navy too, so it reads as part of the page */
.site-header.on-dark { color: var(--ivory); }
.site-header.on-dark.scrolled::before { background: rgba(14, 32, 57, 0.9); box-shadow: 0 1px 0 var(--line-light); }
.site-header.hidden { top: -120px; }
body.menu-open .site-header { top: 0; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 32px; }

.brand { display: block; line-height: 0; position: relative; z-index: 120; }
.brand img { height: 58px; width: auto; transition: height 0.4s var(--ease), opacity 0.4s var(--ease); }
.brand .logo-light { position: absolute; inset: 0; opacity: 0; }
.site-header.on-dark .brand .logo-dark { opacity: 0; }
.site-header.on-dark .brand .logo-light { opacity: 1; }
.site-header.scrolled .brand img { height: 46px; }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
.nav a { position: relative; font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; padding-block: 6px; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease);
}
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); transform-origin: left; }
.nav .btn { padding: 12px 20px; font-size: 0.72rem; }
.nav .btn::after { display: none; }
.site-header.on-dark .nav .btn-primary { background: var(--ivory); color: var(--navy); border-color: var(--ivory); }
.site-header.on-dark .nav .btn-primary:hover { background: var(--white); }

.menu-toggle { display: none; width: 44px; height: 44px; position: relative; z-index: 120; }
.menu-toggle span {
  position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor;
  transition: transform 0.4s var(--ease), opacity 0.3s, top 0.4s var(--ease);
}
.menu-toggle span:nth-child(1) { top: 16px; }
.menu-toggle span:nth-child(2) { top: 22px; }
.menu-toggle span:nth-child(3) { top: 28px; }
body.menu-open .menu-toggle { color: var(--charcoal); }
body.menu-open .menu-toggle span:nth-child(1) { top: 22px; transform: rotate(45deg); }
body.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .menu-toggle span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* ---------- Hero --------------------------------------------------------- */
.hero { padding-top: clamp(110px, 13vw, 150px); padding-bottom: clamp(40px, 5vw, 64px); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(36px, 6vw, 90px); align-items: center;
}
.hero-copy { display: grid; gap: 26px; }
.hero-title { display: grid; gap: 22px; border-left: 1px solid var(--line-strong); padding-left: var(--rule-gap); }
.hero-title .eyebrow { border-left: 0; padding-left: 0; }
.hero h1 { max-width: 14ch; }
.hero h1 em { color: var(--navy); }
.hero .lede { max-width: 50ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 4px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 10px; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey); }
.hero-facts li { display: inline-flex; align-items: center; gap: 10px; }
.hero-facts li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--navy); opacity: 0.6; }

/* Hero image: no frame, just the wordmark's vertical rule standing beside it */
.hero-media { position: relative; padding-left: 26px; }
.hero-media::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px;
  background: var(--line-strong); pointer-events: none;
}
.hero-frame { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--ivory-deep); }
.hero-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-caption {
  position: absolute; left: 0; bottom: 0; background: var(--ivory);
  padding: 16px 22px 0 0; max-width: 80%;
  font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey); line-height: 1.6;
}
.hero-caption strong { display: block; color: var(--charcoal); font-weight: 400; letter-spacing: 0.02em; text-transform: none; font-family: var(--display); font-size: 1.15rem; }

/* ---------- Sections ----------------------------------------------------- */
.section { padding-block: var(--section); }
.section.dark { background: var(--navy); color: var(--ivory); }
.section.deep { background: var(--ivory-deep); }
.section.white { background: var(--white); }

/* ---------- Clickable cards (shared) ------------------------------------- */
.card {
  position: relative; isolation: isolate; display: flex; flex-direction: column; gap: 12px;
  padding: clamp(20px, 2.2vw, 26px);
  background: var(--white); border: 1px solid var(--line);
  cursor: pointer; text-align: left; overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.3s;
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--navy);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.5s var(--ease);
}
.card > * { transition: color 0.35s var(--ease); }
.card:hover, .card:focus-visible { transform: translateY(-4px); box-shadow: 0 22px 44px rgba(14, 32, 57, 0.16); border-color: var(--navy); }
.card:hover::before, .card:focus-visible::before { transform: scaleY(1); }
.card:hover > *, .card:focus-visible > * { color: var(--ivory); }
.card:hover p, .card:focus-visible p { color: rgba(245, 243, 239, 0.78); }
.card h3 { padding-right: 40px; }
.card p { font-size: 1rem; color: var(--grey); max-width: 36ch; }
.card .plus { position: absolute; top: clamp(20px, 2.2vw, 26px); right: clamp(20px, 2.2vw, 26px); }
.card:hover .plus, .card:focus-visible .plus { border-color: var(--ivory); color: var(--ivory); transform: rotate(90deg); }
.card-cta {
  display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 10px;
  font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--charcoal);
}
.card-cta::after { content: "\2192"; transition: transform 0.35s var(--ease); }
.card:hover .card-cta::after, .card:focus-visible .card-cta::after { transform: translateX(6px); }
.card template { display: none; }

/* ---------- Services ----------------------------------------------------- */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.services-grid .card h3, .clients-grid .card h3 { min-height: 2.36em; }
.service-card.ask {
  background: var(--navy); color: var(--ivory); border-color: var(--navy); cursor: default;
  justify-content: space-between;
}
.service-card.ask::before { display: none; }
.service-card.ask:hover { transform: none; box-shadow: none; }
.service-card.ask:hover > * { color: var(--ivory); }
.service-card.ask p, .service-card.ask:hover p { color: rgba(245, 243, 239, 0.7); }
.service-card.ask .btn, .service-card.ask:hover .btn { align-self: flex-start; margin-top: 10px; color: var(--navy); }

/* ---------- Who we work with -------------------------------------------- */
.clients-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.client-card {
  background: var(--navy-soft); color: var(--ivory); border-color: rgba(245, 243, 239, 0.14);
  gap: 14px;
}
.client-card::before { background: var(--ivory); }
.client-card:hover, .client-card:focus-visible { border-color: var(--ivory); box-shadow: 0 22px 44px rgba(0, 0, 0, 0.3); }
.client-card:hover > *, .client-card:focus-visible > * { color: var(--navy); }
.client-card:hover p, .client-card:focus-visible p { color: var(--grey); }
.client-card .glyph { width: 40px; height: 40px; opacity: 0.85; }
.client-card .glyph svg { width: 100%; height: 100%; }
.client-card h3 { margin-top: 6px; }
.client-card p { color: rgba(245, 243, 239, 0.7); }
.client-card .card-cta { color: var(--ivory); padding-top: 12px; border-top: 1px solid rgba(245, 243, 239, 0.16); }
.client-card:hover .card-cta, .client-card:focus-visible .card-cta { border-top-color: var(--line); color: var(--navy); }
.client-card .plus { color: var(--ivory); border-color: rgba(245, 243, 239, 0.4); }
.client-card:hover .plus, .client-card:focus-visible .plus { border-color: var(--navy); color: var(--navy); }

/* Industries: a quiet line of words, deliberately open-ended */
.industries {
  margin-top: clamp(28px, 4vw, 44px); padding-top: 22px; border-top: 1px solid var(--line-light);
  display: grid; grid-template-columns: auto 1fr; gap: 12px 32px; align-items: baseline;
}
.industries .k { font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(245, 243, 239, 0.55); white-space: nowrap; }
.industries ul { display: flex; flex-wrap: wrap; gap: 8px 0; }
.industries li { font-family: var(--display); font-size: clamp(1.15rem, 1.6vw, 1.45rem); color: var(--ivory); }
.industries li + li::before { content: ""; display: inline-block; width: 1px; height: 0.9em; background: rgba(245, 243, 239, 0.35); margin: 0 18px; vertical-align: -0.1em; }
.industries li.open { color: rgba(245, 243, 239, 0.6); font-style: italic; }

/* ---------- Key dates (a light reference strip, not a dashboard) ----------- */
.cal-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 20px 40px; }
.cal-head .btn { margin-bottom: 18px; }
.cal-strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 0;
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px;
  border-top: 1px solid var(--line);
  scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
}
.cal-strip::-webkit-scrollbar { height: 6px; }
.cal-strip::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 3px; }
.cal-month { scroll-snap-align: start; padding: 18px 20px 12px 0; margin-right: 20px; border-right: 1px solid var(--line); display: grid; align-content: start; gap: 10px; }
.cal-month:last-child { border-right: 0; }
.cal-month h3 { font-size: 1.2rem; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; color: var(--charcoal); }
.cal-month h3 small { font-family: var(--text); font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--grey); }
.cal-month.routine h3 small { color: var(--grey); }
.cal-month ul { display: grid; gap: 7px; }
.cal-item { display: grid; grid-template-columns: 34px 1fr; gap: 0 8px; align-items: baseline; }
.cal-item .day { font-family: var(--display); font-size: 1.35rem; line-height: 1; color: var(--grey); font-variant-numeric: oldstyle-nums; font-feature-settings: "onum" 1; }
.cal-item .t { font-size: 0.92rem; line-height: 1.35; color: var(--charcoal); }
.cal-lead { margin-top: 12px; font-size: 0.98rem; color: var(--charcoal); max-width: 70ch; }
.cal-note { margin-top: 6px; font-size: 0.8rem; color: var(--grey); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-note span { color: var(--charcoal); }

/* ---------- The firm (about + partners) ---------------------------------- */
.firm-grid {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
  gap: clamp(36px, 6vw, 90px); align-items: start;
}
.firm-copy { display: grid; gap: 22px; }
.firm-copy p { max-width: 48ch; }
.firm-copy .more { margin-top: 4px; }
/* Editorial numeral: the founding year as a typographic object */
.big-year { display: grid; gap: 14px; border-left: 1px solid var(--line-strong); padding-left: var(--rule-gap); }
.big-year .num { font-size: clamp(5rem, 9vw, 8rem); line-height: 1; color: var(--navy); letter-spacing: -0.02em; }
.big-year span:last-child { font-size: 0.76rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--grey); }
.firm-facts { display: grid; gap: 0; border-top: 1px solid var(--line); margin-top: 6px; }
.firm-facts li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 0.98rem; }
.firm-facts li span:first-child { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--grey); padding-top: 4px; }

.partners { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.partner-card { padding: 0; gap: 0; }
.partner-card::before { display: none; }
.partner-card .photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--ivory-deep); }
.partner-card .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.partner-card .photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(14, 32, 57, 0.55), rgba(14, 32, 57, 0) 55%);
  opacity: 0; transition: opacity 0.5s var(--ease);
}
.partner-card:hover .photo img, .partner-card:focus-visible .photo img { transform: scale(1.05); }
.partner-card:hover .photo::after, .partner-card:focus-visible .photo::after { opacity: 1; }
.partner-card .meta {
  position: relative; flex: 1; display: grid; gap: 6px; align-content: start; padding: 20px clamp(18px, 2vw, 24px) 22px;
  background: var(--white); transition: background 0.45s var(--ease);
}
.partner-card:hover .meta, .partner-card:focus-visible .meta { background: var(--navy); }
.partner-card .meta > * { transition: color 0.35s var(--ease); }
.partner-card:hover .meta > *, .partner-card:focus-visible .meta > * { color: var(--ivory); }
.partner-card:hover .meta p, .partner-card:focus-visible .meta p { color: rgba(245, 243, 239, 0.78); }
.partner-card .meta h3 { padding-right: 36px; font-size: clamp(1.3rem, 1.8vw, 1.55rem); }
.partner-card .meta .role { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--navy); }
.partner-card:hover .meta .role, .partner-card:focus-visible .meta .role { color: rgba(245, 243, 239, 0.7); }
.partner-card .meta p { max-width: none; font-size: 0.95rem; margin-top: 4px; }
.partner-card .meta .card-cta { margin-top: 10px; padding-top: 0; }
.partner-card .plus { top: auto; bottom: 22px; right: clamp(18px, 2vw, 24px); }

/* Office strip (placeholder photos until the office shoot) */
.office-strip { margin-top: clamp(28px, 4vw, 44px); display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 10px; }
.office-strip figure { position: relative; overflow: hidden; height: clamp(180px, 22vw, 280px); background: var(--ivory-deep); }
.office-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.office-strip figure:hover img { transform: scale(1.04); }
.office-strip figcaption {
  position: absolute; left: 0; bottom: 0; background: var(--ivory); padding: 10px 16px 0 0;
  font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--grey);
}

/* ---------- Testimonials ------------------------------------------------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.quote { display: grid; gap: 18px; align-content: start; border-left: 1px solid var(--line-strong); padding-left: var(--rule-gap); }
.quote p { font-family: var(--display); font-size: clamp(1.25rem, 1.7vw, 1.5rem); line-height: 1.32; }
.quote p::before { content: "\201C"; color: var(--navy); }
.quote p::after { content: "\201D"; color: var(--navy); }
.quote cite { font-style: normal; display: grid; gap: 2px; }
.quote cite span:first-child { font-size: 0.95rem; }
.quote cite span:last-child { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--grey); }

/* ---------- Workshops ---------------------------------------------------- */
.workshop-band {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.workshop-copy { display: grid; gap: 20px; }
.workshop-copy .lede { max-width: 46ch; }
.workshop-next {
  display: grid; grid-template-columns: 1fr; gap: 6px; align-items: center;
  padding: 16px 20px; background: rgba(245, 243, 239, 0.06); border: 1px solid var(--line-light);
}
.workshop-next .day { font-family: var(--display); font-size: 3rem; line-height: 0.9; font-variant-numeric: oldstyle-nums; font-feature-settings: "onum" 1; grid-row: 1 / span 2; }
.workshop-next .k { font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(245, 243, 239, 0.55); }
.workshop-next .v { font-family: var(--display); font-size: 1.35rem; line-height: 1.15; }
.workshop-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line-light); border: 1px solid var(--line-light); }
.workshop-meta li { background: var(--navy); padding: 14px 18px; display: grid; gap: 4px; }
.workshop-meta .k { font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(245, 243, 239, 0.55); }
.workshop-meta .v { font-family: var(--display); font-size: 1.25rem; line-height: 1.1; }
.workshop-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 4px; }
.workshop-collage { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.workshop-collage figure { overflow: hidden; background: var(--navy-soft); }
.workshop-collage img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.workshop-collage figure:hover img { transform: scale(1.04); }
.workshop-collage .w1 { grid-column: 1 / -1; aspect-ratio: 16 / 8; }
.workshop-collage .w2, .workshop-collage .w3, .workshop-collage .w4 { aspect-ratio: 1 / 1; }

/* ---------- FAQ ---------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 980px; margin: 0 auto clamp(32px, 4vw, 48px); }
.step { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: start; padding: 20px 22px; background: var(--white); border: 1px solid var(--line-strong); border-radius: 2px; }
.step .num { grid-row: 1 / span 2; font-size: 3rem; line-height: 0.9; color: var(--navy); }
.step h3 { font-size: 1.3rem; }
.step p { font-size: 0.95rem; color: var(--grey); }
.faq-list { display: grid; gap: 12px; max-width: 780px; margin-inline: auto; }
.faq {
  background: var(--white); border: 1px solid var(--line-strong); border-radius: 2px; overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.faq:hover, .faq:focus-within { transform: scale(1.015); border-color: var(--navy); box-shadow: 0 12px 28px rgba(14, 32, 57, 0.10); }
.faq.open { border-color: var(--navy); }
.faq-q {
  width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 15px 20px; font-family: var(--text); font-size: 1.06rem; line-height: 1.4; letter-spacing: 0.01em;
  transition: background 0.25s;
}
.faq-q:hover { background: var(--ivory); }
.faq-q .chev { width: 20px; height: 20px; flex: none; color: var(--navy); transition: transform 0.3s var(--ease); }
.faq.open .chev { transform: rotate(180deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s var(--ease); }
.faq-a > div { overflow: hidden; }
.faq.open .faq-a { grid-template-rows: 1fr; }
.faq-a p { padding: 18px 20px 20px; border-top: 1px solid var(--line); color: var(--charcoal); max-width: none; }

/* ---------- Contact ------------------------------------------------------ */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 90px); align-items: stretch; }
.contact-copy { display: grid; gap: 26px; align-content: start; }
.contact-copy .lede { max-width: 44ch; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.contact-details { display: grid; border-top: 1px solid var(--line-light); margin-top: 4px; }
.contact-details li { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line-light); }
.contact-details .k { font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(245, 243, 239, 0.55); padding-top: 5px; }
.contact-details .v { font-size: 1.02rem; line-height: 1.55; }
.contact-details a { display: inline-block; padding-block: 4px; border-bottom: 1px solid rgba(245, 243, 239, 0.3); transition: border-color 0.3s; }
.contact-details a:hover { border-color: var(--ivory); }

.contact-map { position: relative; min-height: 380px; background: var(--navy-soft); overflow: hidden; }
.contact-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0;  }
.contact-map .map-pin { position: absolute; left: 20px; bottom: 20px; z-index: 2; background: var(--ivory); color: var(--charcoal); padding: 16px 20px; max-width: 280px; font-size: 0.9rem; line-height: 1.5; }
.contact-map .map-pin strong { font-family: var(--display); font-weight: 400; font-size: 1.15rem; display: block; margin-bottom: 4px; }
.contact-map .map-pin a { display: inline-block; margin-top: 8px; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; border-bottom: 1px solid var(--charcoal); }
.contact-map.static {
  display: grid; place-items: center; background-color: var(--navy-soft);
  background-image: linear-gradient(rgba(245, 243, 239, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(245, 243, 239, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
}
.contact-map.static .map-pin { position: static; max-width: 320px; }
.contact-map.static .map-mark { position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--ivory); box-shadow: 0 0 0 10px rgba(245, 243, 239, 0.12), 0 0 0 22px rgba(245, 243, 239, 0.05); }

/* ---------- Footer ------------------------------------------------------- */
.site-footer { background: var(--charcoal); color: var(--ivory); padding-block: clamp(48px, 6vw, 72px) 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: clamp(28px, 5vw, 60px); padding-bottom: clamp(32px, 4vw, 48px); border-bottom: 1px solid rgba(245, 243, 239, 0.14); }
.footer-brand { display: grid; gap: 18px; align-content: start; }
.footer-brand img { height: 56px; width: auto; }
.footer-brand p { max-width: 34ch; color: rgba(245, 243, 239, 0.66); font-size: 0.98rem; border-left: 1px solid rgba(245, 243, 239, 0.3); padding-left: 16px; }
.footer-col h4 { font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(245, 243, 239, 0.5); margin-bottom: 18px; font-weight: 400; }
.footer-col ul { display: grid; gap: 9px; }
.footer-col a { display: inline-block; padding-block: 4px; font-size: 0.98rem; color: rgba(245, 243, 239, 0.85); transition: color 0.3s; }
.footer-col a:hover { color: var(--white); }
.footer-col address { font-style: normal; font-size: 0.98rem; line-height: 1.6; color: rgba(245, 243, 239, 0.85); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; font-size: 0.78rem; color: rgba(245, 243, 239, 0.5); letter-spacing: 0.04em; }

/* ---------- Modal -------------------------------------------------------- */
.modal {
  border: 0; padding: 0; margin: auto; background: transparent; color: var(--charcoal);
  max-width: min(760px, 100% - 32px); width: 100%; max-height: min(86vh, 100% - 32px);
  overflow: visible;
}
.modal::backdrop { background: rgba(14, 32, 57, 0.62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal[open] { animation: modal-in 0.45s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.modal-card { position: relative; background: var(--ivory); display: grid; grid-template-rows: auto 1fr; max-height: min(86vh, 100vh - 32px); }
.modal-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px 14px 26px; border-bottom: 1px solid var(--line); }
.modal-back { display: inline-flex; align-items: center; gap: 8px; font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--grey); }
.modal-back:hover { color: var(--charcoal); }
.modal-back[hidden] { display: none; }
.modal-close { margin-left: auto; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); transition: background 0.3s, color 0.3s; }
.modal-close:hover { background: var(--charcoal); color: var(--ivory); }
.modal-close svg { width: 16px; height: 16px; }
.modal-body { overflow-y: auto; padding: clamp(26px, 4vw, 44px) clamp(22px, 4vw, 44px) clamp(32px, 4vw, 48px); display: grid; gap: 18px; align-content: start; }
.modal-body h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); outline: none; }
.modal-body h3 { font-size: 1.3rem; }
.modal-body p { max-width: 62ch; }
.modal-body .modal-eyebrow { font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--grey); border-left: 1px solid currentColor; padding-left: 12px; line-height: 1.3; justify-self: start; }
.modal-body .modal-sub { margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--line); }
.modal-body ul.bullets { display: grid; gap: 8px; }
.modal-body ul.bullets li { padding-left: 18px; position: relative; }
.modal-body ul.bullets li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 8px; height: 1px; background: var(--charcoal); }
.modal-body .modal-list { display: grid; gap: 8px; }
.modal-service {
  width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center; text-align: left;
  padding: 14px 18px; background: var(--white); border: 1px solid var(--line); transition: border-color 0.3s, transform 0.3s var(--ease);
}
.modal-service:hover { border-color: var(--line-strong); transform: translateX(3px); }
.modal-service .t { font-family: var(--display); font-size: 1.25rem; }
.modal-service .d { grid-column: 1; font-size: 0.92rem; color: var(--grey); }
.modal-service .arrow { grid-column: 2; grid-row: 1 / span 2; color: var(--grey); }
.modal-body .modal-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; padding-top: 22px; border-top: 1px solid var(--line); }
.modal-body .facts { display: grid; gap: 8px; margin-top: 4px; padding-top: 16px; border-top: 1px solid var(--line); }
.modal-body .facts li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; font-size: 0.95rem; }
.modal-body .facts li span:first-child { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--grey); padding-top: 4px; }
.modal-body .photo-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.modal-body .photo-row img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.modal-body .values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.modal-body .values li { display: grid; gap: 6px; padding: 16px; background: var(--white); border: 1px solid var(--line); }
.modal-body .values strong { font-family: var(--display); font-weight: 400; font-size: 1.2rem; }
.modal-body .values span { font-size: 0.92rem; color: var(--grey); }

/* ---------- Floating WhatsApp ------------------------------------------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  display: flex; align-items: center; gap: 12px;
  background: var(--navy); color: var(--ivory); padding: 12px 18px 12px 12px; border-radius: 999px;
  box-shadow: 0 12px 30px rgba(14, 32, 57, 0.28);
  transform: translateY(20px); opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.5s var(--ease), background 0.3s;
}
.wa-float.show { transform: none; opacity: 1; }
.wa-float:hover { background: #25D366; }
.wa-float svg { width: 26px; height: 26px; }
.wa-float span { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; }

/* ---------- Reveal ------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .modal[open] { animation: none; }
  * { transition-duration: 0.01ms !important; }
}

/* ---------- Responsive --------------------------------------------------- */
@media (max-width: 1100px) {
  .services-grid, .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .quotes { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  body { font-size: 1.06rem; }
  .nav {
    position: fixed; inset: 0; z-index: 110; background: var(--ivory); color: var(--charcoal);
    flex-direction: column; justify-content: center; align-items: flex-start;
    padding: 100px var(--gutter) 40px; gap: 20px; overflow-y: auto;
    transform: translateY(-100%); opacity: 0; visibility: hidden;
    transition: transform 0.55s var(--ease), opacity 0.4s, visibility 0s 0.55s;
  }
  body.menu-open .nav { transform: none; opacity: 1; visibility: visible; transition: transform 0.55s var(--ease), opacity 0.4s, visibility 0s; }
  .nav a { font-family: var(--display); font-size: 2.1rem; letter-spacing: 0; text-transform: none; }
  .nav .btn { font-family: var(--text); font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; margin-top: 12px; padding: 16px 26px; }
  .site-header.on-dark .nav .btn-primary { background: var(--charcoal); color: var(--ivory); border-color: var(--charcoal); }
  .menu-toggle { display: block; }
  .brand img { height: 46px; }

  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-media { max-width: 520px; }
  .firm-grid, .workshop-band, .contact-layout { grid-template-columns: 1fr; }
  .cal-head { grid-template-columns: 1fr; }
  .cal-head .btn { margin-bottom: 0; justify-self: start; margin-top: -10px; margin-bottom: 18px; white-space: normal; text-align: center; }
  .cal-note { white-space: normal; }
  .office-strip { grid-template-columns: 1fr 1fr; }
  .office-strip figure:first-child { grid-column: 1 / -1; }
  .industries { grid-template-columns: 1fr; }
  .contact-map { min-height: 360px; }
  .modal-body .values, .modal-body .photo-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .hero-actions .btn, .workshop-actions .btn, .contact-actions .btn { width: 100%; }
  .services-grid, .clients-grid { grid-template-columns: 1fr; }
  .services-grid .card h3, .clients-grid .card h3 { min-height: 0; }
  .card { padding: 18px 18px 16px; gap: 8px; }
  .card .plus { top: 16px; right: 16px; }
  .partners { grid-template-columns: 1fr 1fr; gap: 10px; }
  .partner-card .photo { aspect-ratio: 4 / 5; }
  .partner-card .meta { padding: 14px 14px 16px; }
  .partner-card .meta h3 { font-size: 1.15rem; padding-right: 0; }
  .partner-card .meta p { display: none; }
  .partner-card .plus { display: none; }
  .partner-card .meta .card-cta { margin-top: 6px; }
  .office-strip figure:not(:first-child) { display: none; }
  .big-year .num { font-size: 4.2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand, .footer-grid .footer-col:last-child { grid-column: 1 / -1; }
  .steps { gap: 10px; }
  .step { padding: 16px 18px; }
  .firm-facts li, .contact-details li, .modal-body .facts li { grid-template-columns: 1fr; gap: 4px; }
  .hero-caption { max-width: 92%; }
  .hero-media { padding-left: 18px; }
  .wa-float span { display: none; }
  .wa-float { padding: 12px; }
  .contact-map .map-pin { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  .modal { max-width: 100%; max-height: 100%; }
  .modal-card { max-height: 100vh; }
  .modal-body .values { grid-template-columns: 1fr; }
  .modal-service { grid-template-columns: 1fr; }
  .modal-service .arrow { display: none; }
  .workshop-meta { grid-template-columns: 1fr 1fr; }
  .office-strip { grid-template-columns: 1fr; margin-top: 20px; }
  .office-strip figure { height: auto; aspect-ratio: 16 / 10; }
  .cal-strip { grid-auto-columns: 86%; }
}
