/* ==========================================================================
   My Econics — Studio theme
   Warm white, near-black and one orange. Large wordmark, editorial photography.
   Orange is used for primary actions and the closing call to action only.
   ========================================================================== */

@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-latin-wdth-normal.woff2') format('woff2-variations'), url('../fonts/archivo-latin-wdth-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
/* Metric-matched fallback so text barely reflows when Archivo arrives (limits layout shift). */
@font-face {
  font-family: 'Archivo Fallback';
  src: local('Arial'), local('ArialMT'), local('Liberation Sans'), local('Helvetica Neue'), local('Helvetica');
  size-adjust: 101%;
  ascent-override: 87%;
  descent-override: 21%;
  line-gap-override: 0%;
}

:root {
  --paper: #F3F0EA;
  --paper-2: #EAE5DC;
  --ink: #15120F;
  --ink-2: #221D19;
  --mute: #5F5850;      /* 6.2:1 on paper, 5.6:1 on paper-2 */
  --mute-d: #A79F95;    /* 7.1:1 on ink */
  --line: rgba(21, 18, 15, .16);
  --line-d: rgba(243, 240, 234, .16);
  --orange: #FF6701;    /* logo orange; fills only, ink text on it is 6.6:1 */
  --orange-text: #B33A0B; /* orange as text on paper, 5.2:1 */
  --pad: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --gap: 24px;
  --f: 'Archivo', 'Archivo Fallback', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.2, .75, .1, 1);
  --header-h: 72px;
}

/* ---------- reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--f); font-size: 18px; line-height: 1.55; font-stretch: 100%; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--orange-text); }
h1, h2, h3, h4, p, ol, ul, figure, blockquote, fieldset { margin: 0; }
ol, ul { padding: 0; list-style: none; }
fieldset { padding: 0; border: 0; min-width: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
main:focus { outline: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 200; background: var(--ink); color: var(--paper); padding: 12px 16px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 16px; color: var(--paper); }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.dark :focus-visible, .site-footer :focus-visible { outline-color: var(--orange); }
.cta-band :focus-visible { outline-color: var(--ink); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- type ---------- */
.h2 { font-size: clamp(34px, 4.4vw, 68px); line-height: 1.02; letter-spacing: -.035em; font-weight: 620; font-stretch: 104%; max-width: 16ch; text-wrap: balance; }
.h2--narrow { max-width: 10ch; }
.h3 { display: block; font-size: clamp(22px, 1.9vw, 28px); line-height: 1.18; letter-spacing: -.02em; font-weight: 580; text-wrap: balance; }
.h4 { display: block; font-size: 20px; line-height: 1.3; letter-spacing: -.012em; font-weight: 600; }
.lead { font-size: clamp(19px, 1.5vw, 22px); line-height: 1.5; color: var(--mute); max-width: 52ch; }
.muted { color: var(--mute); }
.small { font-size: 15px; }
.kicker { font-size: 16px; font-weight: 600; line-height: 1.4; }
.kicker span { color: var(--mute); font-weight: 500; }
.kicker--stack { margin-bottom: 20px; }
.prose { color: var(--mute); max-width: 60ch; }
.prose + .prose { margin-top: 16px; }

/* ---------- spacing utilities ---------- */
.mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-40 { margin-top: 40px; }
.mt-48 { margin-top: 48px; } .mt-64 { margin-top: clamp(40px, 5vw, 64px); } .mt-88 { margin-top: clamp(48px, 6vw, 88px); } .mt-104 { margin-top: clamp(56px, 7vw, 104px); }

/* ---------- buttons & links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border: 0; border-radius: 2px; font: 600 16px/1.1 var(--f); letter-spacing: -.005em; text-align: center; text-decoration: none; cursor: pointer; transition: background-color .18s ease-out, color .18s ease-out; }
.btn--primary { background: var(--orange); color: var(--ink); }
.btn--primary:hover { background: var(--ink); color: var(--orange); }
.dark .btn--primary:hover, .site-footer .btn--primary:hover { background: var(--paper); color: var(--ink); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--paper); color: var(--ink); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 17px; }
.btn--block { display: flex; width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.link { display: inline-flex; align-items: center; gap: .45em; min-height: 44px; font-weight: 600; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 calc(100% - 10px) / 0 1.5px no-repeat; transition: background-size .25s var(--ease), color .2s ease-out; }
.link:hover { background-size: 100% 1.5px; color: inherit; }
.link--sm { font-size: 15px; }
.ar { display: inline-block; transition: transform .2s var(--ease); }
.link:hover .ar { transform: translateX(4px); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); transition: box-shadow .2s ease-out; }
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 32px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__name { font-weight: 800; font-size: 20px; letter-spacing: -.02em; font-stretch: 115%; white-space: nowrap; }
.brand__logo { display: block; height: 44px; width: auto; }
.brand--footer { margin-bottom: 28px; }
.brand--footer .brand__logo { height: 48px; }
@media (max-width: 760px) { .site-header .brand__logo, .mobile-nav .brand__logo { height: 38px; } }
.site-header .brand { transition: opacity .2s ease-out, transform .2s ease-out; }
html.wm-ready .site-header--home:not(.show-brand) .brand { opacity: 0; transform: translateY(-6px); visibility: hidden; }
.primary-nav { margin-left: auto; }
.primary-nav__list { display: flex; align-items: center; gap: 4px 28px; }
.primary-nav__item { position: relative; display: flex; align-items: center; }
.primary-nav__link { display: flex; align-items: center; min-height: 44px; font-size: 16px; font-weight: 500; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 calc(100% - 10px) / 0 1.5px no-repeat; transition: background-size .25s var(--ease); }
.primary-nav__link:hover, .primary-nav__link.is-current, .primary-nav__link[aria-current] { background-size: 100% 1.5px; color: var(--ink); }
.menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 44px; margin-left: 2px; padding: 0; border: 0; background: none; cursor: pointer; }
.menu-toggle__chev { width: 9px; height: 9px; border-right: 1.75px solid currentColor; border-bottom: 1.75px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s var(--ease); }
.menu-toggle[aria-expanded="true"] .menu-toggle__chev, .mobile-nav__expand[aria-expanded="true"] .menu-toggle__chev { transform: translateY(2px) rotate(-135deg); }
/* The services panel hangs from the header row and lines up with its right edge, so it always stays on screen. */
.site-header__inner { position: relative; }
.primary-nav__item.has-menu { position: static; }
.mega-menu { position: absolute; top: calc(100% - 4px); right: var(--pad); width: min(860px, calc(100vw - 2 * var(--pad))); padding: 28px; background: var(--paper); box-shadow: 0 0 0 1px var(--line), 0 24px 48px -24px rgba(21, 18, 15, .28); }
.mega-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -28px; height: 28px; }
.mega-menu__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mega-menu__label { font-size: 14px; font-weight: 600; color: var(--mute); padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.mega-menu__link { display: block; padding: 9px 0; font-size: 16px; font-weight: 500; line-height: 1.3; text-decoration: none; }
.mega-menu__link:hover, .mega-menu__link[aria-current] { color: var(--orange-text); }
.mega-menu__all { margin-top: 16px; }
.nav-toggle { display: none; align-items: center; min-height: 44px; min-width: 44px; margin-left: auto; padding: 0 4px; border: 0; background: none; font-weight: 600; font-size: 16px; cursor: pointer; }
@media (max-width: 1079px) {
  .primary-nav, .site-header__cta { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* mobile navigation (modal; behaviour in main.js) */
.mobile-nav { position: fixed; inset: 0; z-index: 100; background: var(--paper); overflow-y: auto; overscroll-behavior: contain; }
.mobile-nav__bar { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); border-bottom: 1px solid var(--line); }
.mobile-nav__bar .nav-toggle { display: inline-flex; margin-left: 0; }
.mobile-nav__body { padding-top: 8px; padding-bottom: 40px; }
.mobile-nav__list { margin-bottom: 28px; }
.mobile-nav__item { border-bottom: 1px solid var(--line); }
.mobile-nav__row { display: flex; align-items: center; justify-content: space-between; }
.mobile-nav__link { display: flex; align-items: center; min-height: 60px; font-size: 24px; font-weight: 560; letter-spacing: -.015em; text-decoration: none; }
.mobile-nav__link[aria-current] { color: var(--orange-text); }
.mobile-nav__expand { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 0; background: none; cursor: pointer; }
.mobile-nav__sub { padding: 0 0 16px; }
.mobile-nav__sub a { display: block; padding: 10px 0; font-size: 17px; text-decoration: none; color: var(--mute); }
.mobile-nav__sub a[aria-current] { color: var(--orange-text); }
body.nav-open { overflow: hidden; }

/* ---------- breadcrumbs ---------- */
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 15px; color: var(--mute); }
.breadcrumbs li { display: flex; align-items: center; }
.breadcrumbs li + li::before { content: "/"; margin: 0 10px; color: var(--mute); }
.breadcrumbs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--mute); text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--ink); }

/* ---------- homepage hero & wordmark ---------- */
.hero { padding-top: 8px; }
.wm { display: block; overflow: hidden; padding-bottom: .02em; line-height: .82; }
.wm__in { display: inline-flex; white-space: nowrap; font-weight: 820; font-stretch: 125%; letter-spacing: -.045em; line-height: .82; font-size: calc((min(100vw, var(--max)) - 2 * var(--pad)) / 8.02); padding-top: .06em; }
.wm__l { display: inline-block; }
.wm__sp { width: .24em; }
html.wm-ready .wm__l { transform: translateY(105%); }
html.wm-ready.wm-go .wm__l { transform: none; transition: transform 1s var(--ease); } /* delays below apply to transform only */
html.wm-ready.wm-go .wm__l:nth-child(2) { transition-delay: .04s; } html.wm-ready.wm-go .wm__l:nth-child(4) { transition-delay: .1s; } html.wm-ready.wm-go .wm__l:nth-child(5) { transition-delay: .13s; }
html.wm-ready.wm-go .wm__l:nth-child(6) { transition-delay: .16s; } html.wm-ready.wm-go .wm__l:nth-child(7) { transition-delay: .19s; } html.wm-ready.wm-go .wm__l:nth-child(8) { transition-delay: .22s; }
html.wm-ready.wm-go .wm__l:nth-child(9) { transition-delay: .25s; } html.wm-ready.wm-go .wm__l:nth-child(10) { transition-delay: .28s; }
.hero__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; padding: clamp(32px, 5vw, 64px) 0 clamp(48px, 6vw, 88px); }
.statement { grid-column: 1 / 9; font-size: clamp(28px, 3.1vw, 46px); line-height: 1.12; letter-spacing: -.025em; font-weight: 560; text-wrap: pretty; }
.statement h1, .statement p { display: inline; font: inherit; letter-spacing: inherit; }
.statement p { color: var(--mute); }
.hero__side { grid-column: 10 / 13; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.hero__tag { font-size: 15px; line-height: 1.4; color: var(--mute); max-width: 24ch; }

/* ---------- photographs & placeholders ---------- */
.photo { display: block; width: 100%; height: 100%; object-fit: cover; }
.ph { position: relative; background: var(--paper-2); }
.ph__label { position: absolute; left: 16px; bottom: 16px; right: 16px; width: max-content; max-width: calc(100% - 32px); padding: 6px 10px; background: var(--ink); color: var(--paper); font-size: 13px; line-height: 1.35; }
.ph--tunnel { background: #C25F1E; }
.ph--laptop { background: #3A1A0E; }
.ph--laptop .ph__label, .dark .ph--ceiling .ph__label { background: var(--paper); color: var(--ink); }
.ph--whiteboard { background: #D9D5CD; }
.ph--ceiling { background: #6E665D; }
.ph--beams { background: #DD6428; }
.bleed { position: relative; height: clamp(360px, 60vw, 900px); max-height: 88vh; overflow: hidden; background: var(--ink); }
.bleed .photo { object-position: 50% 60%; }
.bleed .ph__label { left: calc(var(--pad) + 16px); }
.bleed--page { height: clamp(300px, 46vw, 680px); }
.credit { position: absolute; left: var(--pad); bottom: 16px; padding: 4px 9px; border-radius: 4px; font-size: 13px; line-height: 1.4; color: #FFFFFF; background: rgba(23, 18, 15, .78); }
.credit--in { position: static; margin-top: 10px; padding: 0; color: var(--mute); background: none; }
.dark .credit--in { color: var(--mute-d); }

/* ---------- sections & layout ---------- */
.sec { padding: clamp(72px, 9vw, 144px) 0; }
.sec--flush { padding-top: 0; }
.tint { background: var(--paper-2); }
.dark { background: var(--ink); color: var(--paper); }
.dark a:hover { color: var(--orange); }
.dark .lead, .dark .muted, .dark .kicker span { color: var(--mute-d); }
.section-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 20px; }
.section-head > .kicker { grid-column: 1 / 4; padding-top: .6em; }
.section-head__body { grid-column: 4 / 13; }
.section-head__body .lead { margin-top: 28px; }
.section-head--stack { display: block; }
.section-head--stack > .kicker { padding-top: 0; margin-bottom: 20px; }
.section-head--stack .section-head__body .lead { margin-top: 24px; }
.indent { margin-left: calc((100% + var(--gap)) * 3 / 12); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px var(--gap); }
.two--top { align-items: start; }
.cols { display: grid; gap: 48px var(--gap); }
.cols--2 { grid-template-columns: repeat(2, 1fr); row-gap: 56px; }
.cols--3 { grid-template-columns: repeat(3, 1fr); }
.cols--4 { grid-template-columns: repeat(4, 1fr); }
.col-item { border-top: 1px solid var(--ink); padding-top: 18px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.dark .col-item { border-top-color: var(--paper); }
.col-item .h4 { max-width: 22ch; }
.col-item .h3 { max-width: 24ch; }
.col-item .muted { font-size: 17px; max-width: 42ch; }
.col-item--link .muted { flex: 1; }
.col-item--link .link { margin-top: 6px; }
.col-item__img { width: 100%; aspect-ratio: 1; object-fit: cover; margin-bottom: 8px; }
.rows { border-top: 1px solid var(--ink); }
.rows__item { display: flex; flex-direction: column; gap: 6px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.rows__item .muted { font-size: 17px; }
.rows--wide .rows__item { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: 8px var(--gap); padding: 28px 0; }
.rows--tight .rows__item { padding: 14px 0; font-size: 17px; }
.dark .rows { border-top-color: var(--paper); }
.dark .rows__item { border-bottom-color: var(--line-d); }
.dash-list li { position: relative; padding: 5px 0 5px 22px; font-size: 16px; }
.dash-list li::before { content: ""; position: absolute; left: 0; top: 1em; width: 12px; height: 2px; background: currentColor; }
.panel { background: var(--paper-2); padding: 28px; }
.tint .panel { background: var(--paper); }
.practices { margin-top: 28px; font-size: 17px; color: var(--mute); }
.practices b { color: var(--ink); font-weight: 600; }
.pull blockquote p { font-size: clamp(32px, 4vw, 60px); line-height: 1.05; letter-spacing: -.035em; font-weight: 700; font-stretch: 112%; max-width: 18ch; text-wrap: balance; }
.pull figcaption { margin-top: 16px; font-size: 15px; }
.jump { display: flex; flex-wrap: wrap; gap: 4px 32px; }

/* split with a photograph */
.media-split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 48px; align-items: start; }
.media-split__media { grid-column: 1 / 6; }
.media-split__media .photo { aspect-ratio: 4 / 5; height: auto; }
.media-split__body { grid-column: 7 / 13; min-width: 0; }
.media-split--top .media-split__media { position: sticky; top: calc(var(--header-h) + 32px); }

/* ---------- services ---------- */
.svc-wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; margin-top: clamp(48px, 6vw, 96px); }
.svc-media { grid-column: 1 / 6; position: sticky; top: calc(var(--header-h) + 32px); aspect-ratio: 4 / 5; overflow: hidden; background: var(--ink-2); }
.svc-media__item { position: absolute; inset: 0; opacity: 0; transform: scale(1.04); transition: opacity .45s ease-out, transform .9s var(--ease); }
.svc-media__item.is-on { opacity: 1; transform: none; }
.svc-list { grid-column: 7 / 13; min-width: 0; }
.svc-group + .svc-group { margin-top: 56px; }
.svc-group__label { font-size: 16px; font-weight: 600; color: var(--mute-d); padding-bottom: 14px; border-bottom: 1px solid var(--line-d); }
.svc { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 24px; padding: 22px 0; border-bottom: 1px solid var(--line-d); text-decoration: none; color: inherit; }
.svc:hover { color: inherit; }
.svc__body { min-width: 0; }
.svc__t { font-size: clamp(22px, 2vw, 30px); line-height: 1.15; letter-spacing: -.02em; font-weight: 560; transition: transform .25s var(--ease); }
.svc__d { margin-top: 6px; color: var(--mute-d); font-size: 16px; max-width: 52ch; }
.svc__a { font-size: 24px; transition: transform .25s var(--ease), color .2s ease-out; }
.svc:hover .svc__t, .svc:focus-visible .svc__t { transform: translateX(6px); }
.svc:hover .svc__a, .svc:focus-visible .svc__a { transform: translateX(6px); color: var(--orange); }
.svc-list--light { border-top: 1px solid var(--ink); }
.svc-list--light .svc { border-bottom-color: var(--line); }
.svc-list--light .svc__d { color: var(--mute); }
.svc-list--light .svc:hover .svc__a, .svc-list--light .svc:focus-visible .svc__a { color: var(--orange-text); }
.svc-stack { border-top: 1px solid var(--ink); }
.svc-entry { display: flex; flex-direction: column; gap: 12px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.svc-entry__link { text-decoration: none; }
.svc-entry__link:hover { text-decoration: underline; color: inherit; }
.svc-entry .muted { font-size: 17px; max-width: 56ch; }
.svc-entry .dash-list { color: var(--ink); }

/* ---------- process: steps strip ---------- */
.steps { --fill: 1; position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 40px var(--gap); padding-top: 28px; }
.steps::before, .steps::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--line); }
.steps::after { background: var(--ink); transform-origin: 0 50%; transform: scaleX(var(--fill)); }
.step { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.step__n { font-size: 15px; font-weight: 600; color: var(--mute); font-variant-numeric: tabular-nums; }
.step__t { font-size: 19px; line-height: 1.2; letter-spacing: -.01em; font-weight: 620; }
.step__d { font-size: 15.5px; line-height: 1.5; color: var(--mute); }
.dark .steps::before { background: var(--line-d); }
.dark .steps::after { display: none; }
.dark .step__n { color: var(--mute-d); }
.steps--key .step { padding-top: 0; }
.steps--key .step.is-key::before { content: ""; display: block; height: 4px; margin: -31px 0 17px; background: var(--orange); } /* 17px + the 10px flex gap keeps numbers level with the other stages */
.step__flag { align-self: flex-start; padding: 4px 8px; background: var(--orange); color: var(--ink); font-size: 13px; font-weight: 600; line-height: 1.2; }
.steps--key .step:not(.is-key) .step__t { color: var(--mute-d); font-weight: 500; }

/* ---------- process page timeline ---------- */
.timeline { border-top: 1px solid var(--ink); }
.timeline__item { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 16px; padding: clamp(28px, 3vw, 44px) 0; border-bottom: 1px solid var(--line); }
.timeline__n { grid-column: 1 / 3; font-size: clamp(48px, 6vw, 96px); line-height: .85; letter-spacing: -.05em; font-weight: 760; font-stretch: 112%; font-variant-numeric: tabular-nums; }
.timeline__head { grid-column: 3 / 7; }
.timeline__sum { margin-top: 10px; font-size: 17px; color: var(--ink); max-width: 36ch; }
.timeline__body { grid-column: 8 / 13; }
.timeline__body .muted { font-size: 17px; }
.timeline__out { margin-top: 16px; font-size: 16px; font-weight: 600; }
.timeline__out span { display: block; font-size: 14px; font-weight: 500; color: var(--mute); margin-bottom: 2px; }
.cycle { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; font-size: clamp(28px, 3.4vw, 52px); line-height: 1.1; letter-spacing: -.03em; font-weight: 700; font-stretch: 110%; }
.cycle span[aria-hidden] { color: var(--mute); font-weight: 400; }

/* ---------- FAQ accordion ---------- */
.faq-split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 32px; }
.faq-split__head { grid-column: 1 / 5; }
.faq-split__head .kicker { margin-bottom: 20px; }
.faq-split__body { grid-column: 5 / 13; min-width: 0; }
.accordion { border-top: 1px solid var(--ink); }
.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__heading { font: inherit; }
.accordion__trigger { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 24px; min-height: 64px; padding: 20px 0; border: 0; background: none; text-align: left; cursor: pointer; font-size: clamp(19px, 1.5vw, 22px); font-weight: 560; letter-spacing: -.012em; line-height: 1.3; }
.accordion__trigger:hover .accordion__q { text-decoration: underline; text-decoration-thickness: 1.5px; }
.accordion__icon { position: relative; flex: none; width: 16px; height: 16px; transition: transform .25s var(--ease); }
.accordion__icon::before, .accordion__icon::after { content: ""; position: absolute; left: 50%; top: 50%; background: currentColor; transform: translate(-50%, -50%); }
.accordion__icon::before { width: 16px; height: 2px; }
.accordion__icon::after { width: 2px; height: 16px; }
.accordion__trigger[aria-expanded="true"] .accordion__icon { transform: rotate(45deg); }
.accordion__panel { padding: 0 0 24px; }
.accordion__panel p { color: var(--mute); max-width: 62ch; }

/* ---------- closing call to action ---------- */
.cta-band { background: var(--orange); color: var(--ink); padding: clamp(72px, 9vw, 144px) 0; }
.cta-band a:not(.btn):hover { color: var(--ink); }
.cta-band__title { font-size: clamp(44px, 7.4vw, 124px); line-height: .94; letter-spacing: -.045em; font-weight: 760; font-stretch: 112%; max-width: 14ch; text-wrap: balance; }
.cta-band__text { margin-top: 32px; font-size: clamp(19px, 1.6vw, 24px); max-width: 40ch; color: #2B241F; }
.cta-band .btn { margin-top: 40px; }

/* ---------- page hero (inner pages) ---------- */
.page-hero { padding: 8px 0 clamp(48px, 6vw, 96px); }
.page-hero__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 20px; margin-top: clamp(24px, 4vw, 56px); }
.page-hero__kicker { grid-column: 1 / 4; padding-top: .9em; }
.page-hero__body { grid-column: 4 / 13; min-width: 0; }
.page-hero__title { font-size: clamp(40px, 6vw, 96px); line-height: .98; letter-spacing: -.04em; font-weight: 700; font-stretch: 108%; max-width: 15ch; text-wrap: balance; }
.page-hero__lead { margin-top: 32px; font-size: clamp(19px, 1.6vw, 24px); line-height: 1.45; color: var(--mute); max-width: 54ch; }
.page-hero .btn-row { margin-top: 36px; }
.page-hero + .bleed { margin-bottom: clamp(72px, 9vw, 144px); }
.page-hero + .sec--flush, .page-hero + .sec.sec--flush { padding-top: 0; }

/* ---------- contact page ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 56px; align-items: start; padding-bottom: clamp(72px, 9vw, 144px); }
.contact-aside { grid-column: 1 / 5; }
.contact-aside__title { font-size: 20px; font-weight: 620; letter-spacing: -.01em; padding-top: 18px; border-top: 1px solid var(--ink); margin-bottom: 12px; }
.contact-aside .prose { font-size: 17px; }
.contact-aside .prose + .contact-aside__title, .contact-aside .contact-methods + .contact-aside__title { margin-top: 40px; }
.contact-methods li { padding: 8px 0; font-size: 17px; }
.contact-methods__label { display: block; font-size: 14px; color: var(--mute); }
.next-steps { counter-reset: step; margin-bottom: 20px; }
.next-steps li { counter-increment: step; position: relative; padding: 8px 0 8px 32px; font-size: 17px; color: var(--mute); }
.next-steps li::before { content: counter(step); position: absolute; left: 0; top: 8px; font-weight: 700; color: var(--ink); }
.next-steps strong { color: var(--ink); font-weight: 600; }
.small-print { font-size: 15px; color: var(--mute); }
.form-card { grid-column: 6 / 13; background: var(--paper-2); padding: clamp(24px, 3.5vw, 48px); scroll-margin-top: calc(var(--header-h) + 16px); }
.form-card__title { font-size: clamp(26px, 2.4vw, 36px); line-height: 1.1; letter-spacing: -.025em; font-weight: 640; }
.form-card__intro { margin-top: 8px; font-size: 16px; color: var(--mute); }
.notice { margin-top: 24px; padding: 16px 18px; border-left: 0; background: var(--paper); font-size: 16px; }
.notice:focus { outline: 3px solid var(--ink); outline-offset: 2px; }
.notice__title { font-weight: 600; }
.notice p + p { margin-top: 6px; }
.notice--info { box-shadow: inset 0 0 0 1px var(--line); }
.notice--error { background: #FBE7DF; box-shadow: inset 0 0 0 2px #A3330A; }
.notice--warning { background: #FFF3D6; box-shadow: inset 0 0 0 1px #8A6100; margin-bottom: 32px; }
.notice__list { margin-top: 8px; padding-left: 18px; list-style: disc; }
.notice__list a { color: #8A2A07; }
.form-result { padding: 8px 0; }
.form-result:focus { outline: 3px solid var(--ink); outline-offset: 6px; }
.form-result__title { font-size: clamp(26px, 2.4vw, 36px); line-height: 1.12; letter-spacing: -.025em; font-weight: 640; margin-bottom: 16px; }
.form-result p { color: var(--mute); }
.form-result p + p { margin-top: 12px; }
.enquiry-form { margin-top: 28px; }
.enquiry-form__fields { display: flex; flex-direction: column; gap: 24px; }
.enquiry-form__fields[disabled] { opacity: .62; }
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field { display: flex; flex-direction: column; min-width: 0; }
.field__label { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.field__optional { font-weight: 400; color: var(--mute); }
.field__hint { margin: -2px 0 8px; font-size: 15px; color: var(--mute); }
.field__input { width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid #8C847A; border-radius: 2px; background: var(--paper); font-size: 17px; line-height: 1.4; transition: border-color .15s ease-out, box-shadow .15s ease-out; }
.field__input:hover { border-color: var(--ink); }
.field__input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
.field__input::placeholder { color: #7A7268; }
.field__select { appearance: none; padding-right: 44px; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; }
.field__textarea { min-height: 180px; resize: vertical; }
.field__count { margin-top: 6px; font-size: 14px; color: var(--mute); text-align: right; font-variant-numeric: tabular-nums; }
.field__count.is-over { color: #A3330A; font-weight: 600; }
.field__error { display: flex; align-items: flex-start; gap: 8px; margin-top: 8px; font-size: 15px; font-weight: 600; color: #A3330A; }
.field__error .icon { flex: none; width: 16px; height: 16px; margin-top: 2px; }
.has-error .field__input { border-color: #A3330A; box-shadow: 0 0 0 1px #A3330A; }
.field--check { display: grid; grid-template-columns: 24px 1fr; gap: 6px 12px; align-items: start; }
.field__checkbox { width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--ink); }
.field--check label { font-size: 16px; line-height: 1.5; }
.field--check .field__error { grid-column: 1 / -1; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 4px; }
.form-actions__note { font-size: 15px; color: var(--mute); }
.btn__spinner { display: none; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; }
.is-submitting .btn__spinner { display: inline-block; animation: spin .8s linear infinite; }
.btn[disabled], fieldset[disabled] .btn { cursor: not-allowed; }
fieldset[disabled] .btn--primary:hover { background: var(--orange); color: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- legal ---------- */
.legal { max-width: 760px; margin-left: calc((100% + var(--gap)) * 3 / 12); }
.legal__updated { font-size: 15px; color: var(--mute); margin-bottom: 24px; }
.legal__section { padding: 28px 0; border-top: 1px solid var(--line); }
.legal__section h2 { font-size: 24px; line-height: 1.2; letter-spacing: -.015em; font-weight: 620; margin-bottom: 12px; }
.legal__section p, .legal__section li { color: var(--mute); font-size: 17px; }
.legal__section p + p, .legal__section ul, .legal__section ul + p { margin-top: 12px; }
.legal__section ul { list-style: disc; padding-left: 20px; }
.legal__section li + li { margin-top: 6px; }
.review-note { margin-top: 12px; padding: 12px 14px; background: #FFF3D6; color: var(--ink) !important; font-size: 15px !important; }
.legal__contact { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--ink); }

/* quotes (optional testimonials) */
.quote blockquote p { font-size: 20px; line-height: 1.4; }
.quote figcaption { margin-top: 12px; font-size: 15px; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding-top: clamp(64px, 7vw, 104px); overflow: hidden; }
.site-footer a { text-decoration: none; }
.site-footer a:not(.btn):hover { color: var(--orange); }
.site-footer__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 48px; }
.site-footer__lead { grid-column: 1 / 5; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.site-footer__statement { font-size: clamp(24px, 2.2vw, 32px); line-height: 1.2; letter-spacing: -.02em; font-weight: 560; max-width: 20ch; }
.site-footer__statement span { color: var(--mute-d); }
.site-footer__blurb { font-size: 16px; color: var(--mute-d); max-width: 46ch; }
.site-footer__col { grid-column: span 2; }
.site-footer__col--services { grid-column: 5 / 9; }
.site-footer__col--company { grid-column: 9 / 11; }
.site-footer__col--touch { grid-column: 11 / 13; }
.site-footer__heading { font-size: 15px; font-weight: 600; color: var(--mute-d); margin-bottom: 12px; }
.site-footer__split { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--gap); }
.site-footer__col li a { display: inline-flex; align-items: center; min-height: 36px; font-size: 16px; }
.site-footer__text { font-size: 15px; color: var(--mute-d); padding: 6px 0; }
.site-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; margin-top: 72px; padding: 20px 0; border-top: 1px solid var(--line-d); font-size: 14px; color: var(--mute-d); }
.site-footer__legal { display: flex; gap: 20px; }
.site-footer__legal a { display: inline-flex; align-items: center; min-height: 44px; color: var(--mute-d); }
.site-footer__credits { width: 100%; }
.site-footer__wm::before { content: "MY ECONICS"; }
.site-footer__wm { margin-top: 16px; font-weight: 820; font-stretch: 125%; letter-spacing: -.045em; line-height: .78; font-size: calc((min(100vw, var(--max)) - 2 * var(--pad)) / 8.02); color: var(--ink-2); white-space: nowrap; user-select: none; overflow: hidden; }

/* ---------- motion (Studio) ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.rv-on [data-rv] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease-out, transform .8s var(--ease); }
  html.rv-on [data-rv].is-in { opacity: 1; transform: none; }
  @supports (animation-timeline: view()) {
    .bleed[data-bleed] { animation: bleed-open linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
    .bleed[data-bleed] .photo { animation: bleed-drift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    @keyframes bleed-open { from { clip-path: inset(0 var(--pad)); } to { clip-path: inset(0 0); } }
    @keyframes bleed-drift { from { transform: scale(1.14) translateY(-4%); } to { transform: scale(1.02) translateY(3%); } }
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  html.wm-ready .wm__l { transform: none !important; }
  .steps { --fill: 1 !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .statement { grid-column: 1 / 13; }
  .hero__side { grid-column: 1 / 13; margin-top: 32px; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
  .section-head > .kicker, .page-hero__kicker { grid-column: 1 / 13; padding-top: 0; }
  .section-head__body, .page-hero__body { grid-column: 1 / 13; }
  .indent, .legal { margin-left: 0; }
  .faq-split__head, .faq-split__body { grid-column: 1 / 13; }
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 40px; padding-top: 0; }
  .steps::before, .steps::after { display: none; }
  .step { border-top: 2px solid var(--ink); padding-top: 16px; }
  .dark .step { border-top-color: var(--line-d); }
  .steps--key .step.is-key { border-top: 4px solid var(--orange); padding-top: 14px; }
  .steps--key .step.is-key::before { display: none; }
  .cols--4 { grid-template-columns: repeat(2, 1fr); }
  .svc-media { grid-column: 1 / 6; }
  .svc-list { grid-column: 6 / 13; }
  .timeline__n { grid-column: 1 / 3; }
  .timeline__head { grid-column: 3 / 13; }
  .timeline__body { grid-column: 3 / 13; }
  .contact-aside { grid-column: 1 / 13; order: 2; }
  .form-card { grid-column: 1 / 13; order: 1; }
  .contact-aside { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--gap); }
  .contact-aside > * { grid-column: auto; }
  .site-footer__lead { grid-column: 1 / 13; }
  .site-footer__col--services { grid-column: 1 / 7; }
  .site-footer__col--company { grid-column: 7 / 10; }
  .site-footer__col--touch { grid-column: 10 / 13; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .statement { font-size: clamp(26px, 6.6vw, 30px); }
  .hero__side { flex-direction: column; align-items: flex-start; }
  .bleed { height: 62vh; max-height: 560px; }
  .bleed--page { height: 52vh; max-height: 460px; }
  .two, .cols--2, .cols--3, .cols--4 { grid-template-columns: 1fr; }
  .two { row-gap: 20px; }
  .cols { row-gap: 40px; }
  .rows--wide .rows__item { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .svc-media { display: none; }
  .svc-list { grid-column: 1 / 13; }
  .svc { gap: 6px 16px; }
  .media-split__media, .media-split__body { grid-column: 1 / 13; }
  .media-split--top .media-split__media { position: static; }
  .media-split__media .photo { aspect-ratio: 4 / 3; }
  .timeline__n { grid-column: 1 / 13; font-size: 48px; }
  .timeline__head, .timeline__body { grid-column: 1 / 13; }
  .field-row { grid-template-columns: 1fr; }
  .contact-aside { display: block; }
  .contact-aside .contact-aside__title + * { margin-bottom: 0; }
  .contact-aside .prose + .contact-aside__title, .contact-aside .contact-methods + .contact-aside__title, .contact-aside .next-steps { margin-top: 0; }
  .contact-aside > * + .contact-aside__title { margin-top: 40px; }
  .site-footer__col--services, .site-footer__col--company, .site-footer__col--touch { grid-column: 1 / 13; }
  .page-hero__title { font-size: clamp(36px, 10vw, 52px); }
  .cta-band__title { font-size: clamp(40px, 11vw, 60px); }
}

/* ---------- print ---------- */
@media print {
  .site-header, .mobile-nav, .cta-band .btn, .site-footer__wm, .ph { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .dark, .tint, .cta-band, .site-footer { background: #fff !important; color: #000 !important; }
  [data-rv] { opacity: 1 !important; transform: none !important; }
}

/* ---------- Device QA fixes ---------- */
/* Long words (implementation, ecommerce) never push past narrow screens */
h1, h2, h3, h4, .h2, .h3, .h4 { overflow-wrap: break-word; }
@media (max-width: 480px) {
  h1, h2, h3, .h2, .h3 { hyphens: manual; -webkit-hyphens: manual; overflow-wrap: break-word; }
}
/* Very narrow phones: process stages stack in one readable column */
@media (max-width: 400px) {
  .steps { grid-template-columns: 1fr; row-gap: 32px; }
}
/* Phones held sideways: the header scrolls away instead of covering a fifth of the screen */
@media (orientation: landscape) and (max-height: 500px) {
  .site-header { position: relative; }
}

/* ---------- Illustration animations (inline SVG art from app/content/art) ----------
   Each picture plays once: on the homepage when its service group first becomes active, on
   other pages when it scrolls into view (assets/js/art.js), or straight away for the
   page-hero picture (.art--onload). Pacing follows chart-reveal practice: about 1 s per
   growing element with an ease-out-cubic curve, 0.24–0.3 s between items, finished within
   about 3.5 s. Without JavaScript, or with reduced motion, the finished picture shows. */
.art g { transform-box: fill-box; }
.art .a-glow { opacity: 0; }
/* Build rests with the last module hovering just above its slot (the slot outline and guide stay) */
.art--build .a-drop { transform: translateY(-96px); }
.art--build :is(.a-ghost, .a-guide) { opacity: .8; }
.art .a-path polyline { stroke-dasharray: 1; stroke-dashoffset: 0; }
.a-n0 { --n: 0; } .a-n1 { --n: 1; } .a-n2 { --n: 2; } .a-n3 { --n: 3; } .a-n4 { --n: 4; } .a-n5 { --n: 5; } .a-n6 { --n: 6; }
.a-d73 { --d: 73; } .a-d110 { --d: 110; } .a-d130 { --d: 130; } .a-d137 { --d: 137; } .a-d198 { --d: 198; } .a-d286 { --d: 286; }
@media (prefers-reduced-motion: no-preference) {
  .art.art-armed:not(.art-play) * { animation-play-state: paused !important; }
  /* Build: the last module drops towards its slot and settles just above it */
  :is(.art-armed, .art--onload).art--build .a-drop { animation: art-drop 1.2s .3s both; }
  /* Partner: the blue cap lowers onto the orange base and locks with a small settle */
  :is(.art-armed, .art--onload).art--partner .a-lock { animation: art-lock 1.4s .3s both; }
  /* Innovate: the path draws node to node; each node lights as the line reaches it; the last one rises */
  :is(.art-armed, .art--onload).art--innovate .a-path polyline { animation: art-draw 2s .3s cubic-bezier(.45, 0, .55, 1) both; }
  :is(.art-armed, .art--onload).art--innovate .a-node { animation: art-fade .6s ease-out both; animation-delay: calc(.3s + var(--n) * .3s); }
  :is(.art-armed, .art--onload).art--innovate .a-grow { animation: art-extrude 1s cubic-bezier(.33, 1, .68, 1) both; animation-delay: 2.1s; }
  /* Grow & support: columns grow one after another, then the trend */
  :is(.art-armed, .art--onload).art--support .a-grow { animation: art-extrude 1s cubic-bezier(.33, 1, .68, 1) both; animation-delay: calc(.3s + var(--n) * .24s); }
  :is(.art-armed, .art--onload).art--support .a-dot { animation: art-pop .4s cubic-bezier(.33, 1, .68, 1) both; animation-delay: calc(1s + var(--n) * .24s); }
  :is(.art-armed, .art--onload).art--support .a-trend { animation: art-fade .7s ease-out 1.92s both; }
  /* How We Work: a glow travels tile to tile, then the final block grows */
  :is(.art-armed, .art--onload).art--process .a-glow { animation: art-glow 1s ease-in-out both; animation-delay: calc(.6s + var(--n) * .3s); }
  :is(.art-armed, .art--onload).art--process .a-dot { animation: art-pop .5s cubic-bezier(.33, 1, .68, 1) both; animation-delay: calc(.8s + var(--n) * .3s); }
  :is(.art-armed, .art--onload).art--process .a-trend { animation: art-fade 1s ease-out .6s both; }
  :is(.art-armed, .art--onload).art--process .a-grow { animation: art-extrude 1.1s cubic-bezier(.33, 1, .68, 1) both; animation-delay: 2.5s; }
}
@keyframes art-drop {
  0%   { transform: translateY(-230px); opacity: 0; animation-timing-function: cubic-bezier(.55, 0, .85, .35); }
  12%  { opacity: 1; }
  68%  { transform: translateY(-96px); animation-timing-function: cubic-bezier(.2, .7, .3, 1); }
  80%  { transform: translateY(-106px); animation-timing-function: cubic-bezier(.5, 0, .7, .4); }
  100% { transform: translateY(-96px); opacity: 1; }
}
@keyframes art-lock {
  0%   { transform: translateY(-180px); opacity: 0; animation-timing-function: cubic-bezier(.33, 0, .67, 1); }
  15%  { opacity: 1; }
  72%  { transform: translateY(0); animation-timing-function: cubic-bezier(.33, 1, .68, 1); }
  84%  { transform: translateY(-8px); animation-timing-function: cubic-bezier(.32, 0, .67, 0); }
  100% { transform: translateY(0); opacity: 1; }
}
@keyframes art-draw { from { stroke-dashoffset: 1; } }
@keyframes art-fade { from { opacity: 0; } }
@keyframes art-pop { from { opacity: 0; transform: scale(.2); } }
@keyframes art-extrude { from { transform: translateY(calc(var(--d) * 1px)); } }
@keyframes art-glow { 0% { opacity: 0; } 40% { opacity: .55; } 100% { opacity: 0; } }
