/* Officea site design, 2026: "Editorial Ivory".
   Shared by every page; loaded after the page's own <style>. Edit here, not in each page. */
/* ---- Type, rhythm and motion upgrade. Loaded after each page's own <style>, so it overrides it. ---- */
:root { --ease-out: cubic-bezier(.23, 1, .32, 1); --ease-in-out: cubic-bezier(.77, 0, .175, 1); }

/* type: bigger, tighter headlines; balanced line breaks; readable measure */
h1, h2, h3 { text-wrap: balance; }
p, .lede, summary { text-wrap: pretty; }
.card h1 { font-size: clamp(2.5rem, 4.2vw, 3.9rem); line-height: 1.04; letter-spacing: -0.04em; }
/* desktop: a soft wash behind the story text so it stays readable over the 3D model */
@media (min-width: 900px) {
  .panel { background: linear-gradient(90deg, rgba(240,237,229,.92) 0%, rgba(240,237,229,.78) 26%, rgba(240,237,229,0) 46%); }
  .card { max-width: 30rem; }
}
.card h2 { font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.08; letter-spacing: -0.035em; }
section.block h2 { font-size: clamp(2rem, 3.3vw, 2.9rem); line-height: 1.08; letter-spacing: -0.035em; max-width: 18ch; }
.lede, .about p { font-size: 18px; line-height: 1.6; max-width: 58ch; }
.about p { font-size: 20px; }
.lede { margin-top: 18px; }
.stat b, .kpi b, .calc-out .figure, .calc table, .stat span { font-variant-numeric: tabular-nums; }
.stat b { font-size: clamp(2.6rem, 4.4vw, 3.5rem); letter-spacing: -0.04em; }

/* rhythm: more air between sections and under each heading */
section.block { padding: clamp(72px, 8.5vw, 120px) 0 clamp(80px, 9.5vw, 132px); }
.rows, .points, .pgrid, .faq, .svc, .steps2, .stats, .citylist, .offices, .magnet, .calc, .wiz, .gal, .cbar, .railwrap, .team { margin-top: 40px; }

/* FAQ: question list beside a sticky heading on desktop (text unchanged, so FAQ JSON-LD still matches) */
@media (min-width: 900px) {
  #faq .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr); column-gap: 64px; align-items: start; }
  #faq h2 { position: sticky; top: 104px; }
  #faq .faq { display: block; margin-top: 0; }
}
details summary { transition: color 160ms var(--ease-out); }
summary::after { transition: transform 200ms var(--ease-out); }

/* buttons and controls: instant press feedback, hover only on real pointers */
.btn, .wiz-opts button, .filters button, .zoomctl button, .svcacc-h, .wafloat { transition: transform 160ms var(--ease-out), background-color 160ms var(--ease-out), border-color 160ms var(--ease-out), color 160ms var(--ease-out); }
.btn:active, .wiz-opts button:active, .filters button:active, .zoomctl button:active, .wafloat:active { transform: scale(.97); }
.svcacc-h:active { transform: scale(.995); }

/* chips and tags: squared corners to match the 4px buttons */
.chips li, .svc li, .cities li, .tag { border-radius: 4px; }

/* cards: quiet lift on hover with one easing curve */
.pcard, .citycard, .office { transition: border-color 200ms var(--ease-out), transform 240ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .citycard:hover, .office:hover { transform: translateY(-2px); border-color: var(--accent); }
  .gal .ph:hover img { transform: scale(1.025); }
}
.gal img { transition: transform 600ms var(--ease-out); }

/* scroll reveals: shorter travel, ease-out, no scale */
.reveal { transform: translateY(12px); transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); }
.kreveal { transform: translateY(16px); transition: opacity 560ms var(--ease-out), transform 560ms var(--ease-out); }
.kreveal.in, .reveal.in { transform: none; }

/* 3D story text: the leaving step fades out fast, the next one fades in after it, so they never overlap */
.panel { transition: opacity 140ms ease-out, transform 140ms ease-out; }
.panel.on { transition: opacity 420ms var(--ease-out) 120ms, transform 420ms var(--ease-out) 120ms; }

/* service accordion: open with the same curve */
.svcacc-panel { transition: max-height 420ms var(--ease-in-out); }
.svcacc-bar { transition: width 500ms var(--ease-out) 80ms; }

@media (max-width: 640px) {
  .card h1 { font-size: 34px; }
  section.block h2 { font-size: 27px; }
  .lede, .about p { font-size: 16px; }
  .about p { font-size: 17px; }
  section.block { padding: 56px 0 64px; }
  .rows, .points, .pgrid, .faq, .svc, .steps2, .stats, .citylist, .offices, .magnet, .calc, .wiz, .gal, .cbar, .railwrap, .team { margin-top: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .wiz-opts button, .filters button, .zoomctl button, .svcacc-h, .wafloat, .pcard, .citycard, .office, .gal img, .panel, .panel.on, .svcacc-panel, .svcacc-bar { transition: none; }
  .btn:active, .wiz-opts button:active, .filters button:active, .zoomctl button:active, .wafloat:active, .svcacc-h:active { transform: none; }
  .kreveal, .reveal { transition: none; opacity: 1; transform: none; }
}
/* ---- Option A, "Editorial Ivory": serif display, one warm paper tone, asymmetric section heads ---- */
:root { --serif: "Fraunces", Georgia, "Times New Roman", serif; }
:root:not([data-theme="dark"]) { --bg: #F7F4EE; --paper: #EFEADF; --line: #DDD6C8; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg: #111214; --paper: #1B1D1F; --line: #33363A; } }
h1, h2, h3, .card h1, .card h2, section.block h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; }
.card h1 { font-size: clamp(2.7rem, 4.5vw, 4.2rem); line-height: 1.02; }
.card h2 .n { flex-shrink: 0; white-space: nowrap; font-family: var(--body); font-size: 13px; letter-spacing: .08em; }
.card h2 { line-height: 1.06; }
section.block h2 { font-size: clamp(2.2rem, 3.6vw, 3.2rem); line-height: 1.05; }
h3, .row h3, .points h3, .svc h3, .steps2 h3, .pcard h3, .office h3, .citycard h3, .person h3, .magnet-card h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; }
.stat b, .calc-out .figure, .steps2 li::before { font-family: var(--serif); font-weight: 400; }
section.block { border-top: 0; }
section.block > .wrap { border-top: 1px solid var(--ink); padding-top: 28px; }
/* the mid-page dark bands become a paper tone so the page reads as one surface; the price box stays dark */
.band { background: var(--paper); color: var(--ink); }
.band h2 { color: var(--ink); }
.band .lede, .band .row p, .band .points p, .band details p { color: var(--muted); }
/* point lists were coloured for dark bands; on the paper tone they need the normal muted text */
.points p { color: var(--muted); }
/* any text the pages coloured for the old dark bands: back to normal colours on paper */
.band p, .band li, .band span { color: var(--muted); }
.band .wrap p, .band .wrap li { color: var(--muted); }
/* studio map buttons on city service pages carried light text meant for a dark box (they sit on the page background) */
:not(.cta-box) > a.btn.ghost[style*="deep-ink"] { color: var(--ink) !important; }
.band .btn.ghost, .band a.btn:not(.primary) { color: var(--ink); }
.band h3, .band h4, .band strong, .band b, .band label { color: var(--ink); }
/* the calculator's price box stays dark */
.band .calc-out, .band .calc-out .figure { color: var(--brass); }
.band .calc-out p, .band .calc-out .range, .band .calc-out span, .band .calc-out label { color: #CFC8BA; }
.band .calc-out .btn.primary, .band .btn.primary { color: #fff; }
.calc-out { background: #16181A; color: #EDEBE4; }
@media (min-width: 900px) {
  #top > section.block:not(#faq) > .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); column-gap: 64px; align-items: start; }
  #top > section.block:not(#faq) > .wrap > h2 { grid-column: 1; grid-row: 1 / span 3; }
  #top > section.block:not(#faq) > .wrap > .lede, #top > section.block:not(#faq) > .wrap > p { grid-column: 2; margin-top: 6px; }
  #top > section.block:not(#faq) > .wrap > :not(h2):not(.lede):not(p) { grid-column: 1 / -1; }
  /* inner pages: only a section that opens with one heading and its intro, and has no other heading */
  main:not(#top) section.block > .wrap:has(> h2:first-child + .lede):not(:has(> h2 ~ h2)) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); column-gap: 64px; align-items: start; }
  main:not(#top) section.block > .wrap:has(> h2:first-child + .lede):not(:has(> h2 ~ h2)) > h2 { grid-column: 1; grid-row: 1; }
  main:not(#top) section.block > .wrap:has(> h2:first-child + .lede):not(:has(> h2 ~ h2)) > .lede { grid-column: 2; grid-row: 1; margin-top: 6px; }
  main:not(#top) section.block > .wrap:has(> h2:first-child + .lede):not(:has(> h2 ~ h2)) > :not(h2):not(.lede) { grid-column: 1 / -1; }
}
/* inner page headers */
.pagetop h1 { font-size: clamp(2.4rem, 4.4vw, 3.8rem); line-height: 1.04; letter-spacing: -0.025em; max-width: 18ch; }
.pagetop .lede { font-size: 18px; }
.article h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1.06; }
.article h2 { font-size: clamp(1.6rem, 2.4vw, 2rem); line-height: 1.12; }
@media (max-width: 640px) { .pagetop h1 { font-size: 32px; } .article h1 { font-size: 30px; } .article h2 { font-size: 23px; } .pagetop .lede { font-size: 16px; } }
.pcard, .citycard, .office, .magnet-card { background: transparent; border-color: var(--line); border-radius: 2px; }
.btn, .gal .ph, .gal img { border-radius: 2px; }

/* ---- Motion (only active when js/officea-fx.js can run and motion is not reduced: html.fx) ---- */
/* 1. headline: words rise from behind a mask */
.fx h1.wsplit .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.fx h1.wsplit .w > span { display: inline-block; transform: translateY(105%); transition: transform 800ms var(--ease-out); }
.fx h1.wsplit.go .w > span { transform: none; }
.fx .panel[data-step="0"] .card .t, .fx .panel[data-step="0"] .card .actions { opacity: 0; transform: translateY(10px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
.fx .panel[data-step="0"] .card.go2 .t, .fx .panel[data-step="0"] .card.go2 .actions { opacity: 1; transform: none; }
.fx .panel[data-step="0"] .card.go2 .actions { transition-delay: 120ms; }

/* 2. editorial gallery: lead photo plus mixed sizes, curtain reveal */
@media (min-width: 900px) {
  .gal { columns: auto; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 18px; }
  .gal figure { margin: 0; display: flex; flex-direction: column; min-height: 0; }
  .gal figure:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  /* 7 photos fill a 4 x 3 grid with no gaps */
  .gal figure:nth-child(4) { grid-column: 3; grid-row: 2 / span 2; }
  .gal figure:nth-child(5) { grid-column: 4; grid-row: 2; }
  .gal figure:nth-child(6) { grid-column: 4; grid-row: 3; }
  .gal figure:nth-child(7) { grid-column: 1 / span 2; grid-row: 3; }
  .gal .ph { flex: 1; min-height: 0; }
  .gal img, .gal .ph img { width: 100%; height: 100%; max-height: none; object-fit: cover; }
}
.gal figcaption { position: relative; }
.gal figcaption::after { content: ""; position: absolute; left: 2px; bottom: -3px; height: 1px; width: 0; background: var(--brass); transition: width 400ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .gal figure:hover figcaption::after { width: 48px; } .gal .ph:hover img { transform: scale(1.04); transition-duration: 1200ms; } }
.fx .gal .ph { clip-path: inset(100% 0 0 0); transition: clip-path 1000ms var(--ease-in-out); }
.fx .gal .ph img { transform: scale(1.12); transition: transform 1400ms var(--ease-out); }
.fx .gal figure.in .ph { clip-path: inset(0 0 0 0); }
.fx .gal figure.in .ph img { transform: none; }

/* 3. closing line */
.bigcta { overflow: hidden; padding: clamp(64px, 9vw, 120px) 0 clamp(56px, 8vw, 104px); background: var(--bg); border-top: 1px solid var(--line); }
.bigcta-line { margin: 0; white-space: nowrap; font: 400 clamp(3.4rem, 11.5vw, 11rem)/0.95 var(--serif, Georgia, serif); letter-spacing: -0.045em; color: var(--ink); will-change: transform; }
.bigcta-line em { font-style: italic; color: var(--accent); }
.bigcta .actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 640px) { .bigcta-line { white-space: normal; font-size: 3.5rem; line-height: 1; } .bigcta .actions { margin-top: 26px; } }

/* 5. process: a brass timeline that draws as you scroll */
.fx .steps2 { position: relative; display: block; border-top: 0; margin-left: 4px; }
.fx .steps2::before, .fx .steps2::after { content: ""; position: absolute; left: 21px; top: 26px; bottom: 26px; width: 2px; background: var(--line); }
.fx .steps2::after { background: var(--brass); transform-origin: top; transform: scaleY(var(--prog, 0)); }
.fx .steps2 li { grid-template-columns: 44px 1fr; column-gap: 26px; border-bottom: 0; padding: 18px 0; position: relative; z-index: 1; }
@media (min-width: 900px) { .fx .steps2 li { grid-template-columns: 44px minmax(0, 18rem) minmax(0, 1fr); column-gap: 32px; } .fx .steps2 li p { grid-column: 3; grid-row: 1; } }
.fx .steps2 li::before { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 1.1rem; background: var(--bg); border: 2px solid var(--line); color: var(--muted); grid-row: span 2; transition: background-color 300ms var(--ease-out), border-color 300ms var(--ease-out), color 300ms var(--ease-out); }
.fx .steps2 li.lit::before { background: var(--brass); border-color: var(--brass); color: #fff; }

/* 6. calculator: highlighted rate-card cell */
#calculator tbody tr, #calculator tbody td, #calculator tbody th { transition: background-color 250ms var(--ease-out), color 250ms var(--ease-out); }
#calculator tbody tr.hl { background: rgba(176,138,78,.14); }
#calculator tbody td.hl { color: var(--accent); font-weight: 700; }

/* 7. cities ribbon */
.ribbon { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); padding: 22px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ribbon-track { display: flex; width: max-content; animation: ribbon 60s linear infinite; }
.ribbon:hover .ribbon-track { animation-play-state: paused; }
.ribbon span { font: 400 clamp(1.6rem, 3vw, 2.4rem)/1 var(--serif, Georgia, serif); letter-spacing: -0.02em; color: var(--ink); padding: 0 28px; white-space: nowrap; display: inline-flex; align-items: center; gap: 14px; }
.ribbon span::after { content: "\00B7"; color: var(--line); padding-left: 28px; }
.ribbon span.studio::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--brass); }
@keyframes ribbon { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ribbon-track { animation: none; } .ribbon { overflow-x: auto; } }

/* 8. icons draw, heading rules extend */
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes draw2 { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.fx .svc .svcicon svg [pathLength] { stroke-dasharray: 1; stroke-dashoffset: 1; }
.fx .svcacc.in .svcicon svg [pathLength] { animation: draw 900ms var(--ease-out) 150ms both; }
.fx .svcacc.open .svcicon svg [pathLength] { animation: draw2 700ms var(--ease-out) both; }
.fx section.block > .wrap { position: relative; }
.fx section.block > .wrap::before { content: ""; position: absolute; left: 22px; top: -1px; width: 96px; height: 2px; background: var(--brass); transform: scaleX(0); transform-origin: left; transition: transform 1000ms var(--ease-out) 150ms; }
@media (max-width: 640px) { .fx section.block > .wrap::before { left: 16px; } }
.fx section.block.seen > .wrap::before { transform: scaleX(1); }

/* ---- GCC page: step timings and checklist ---- */
.steps2 h3 .when { display: block; margin-bottom: 4px; font: 600 12px/1.3 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.checks { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--ink); }
@media (min-width: 900px) { .checks { grid-template-columns: 1fr 1fr; column-gap: 48px; } }
.checks li { position: relative; padding: 18px 0 18px 34px; border-bottom: 1px solid var(--line); color: var(--muted); }
.checks li b { color: var(--ink); font-weight: 700; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 25px; width: 14px; height: 8px; border-left: 2px solid var(--brass); border-bottom: 2px solid var(--brass); transform: rotate(-45deg); }

/* ---- 404 page ---- */
.nf { min-height: 72vh; display: grid; align-content: center; padding-top: 120px; padding-bottom: 80px; }
.nf .code { margin: 0; font: 400 clamp(6rem, 22vw, 15rem)/0.9 var(--serif, Georgia, serif); letter-spacing: -0.05em; color: var(--accent); }
.nf h1 { margin-top: 18px; font-size: clamp(2.2rem, 4vw, 3.4rem); }
.nf .lede { max-width: 46ch; }
.nf .links { margin: 34px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.nf .links a { display: inline-block; padding: 10px 16px; border: 1px solid var(--line); border-radius: 2px; text-decoration: none; color: var(--ink); transition: border-color 160ms var(--ease-out), color 160ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .nf .links a:hover { border-color: var(--brass); color: var(--accent); } }
