/* Site styles: home (Paper "B — full home - Isaac's Pass" + mobile 390), services and contact (Paper "Services + Contact (Nov 10)").
   Spec: Shared/design/projects/msd/2026-11-10-site-plan/BUILD-SPEC-landing.md */
@font-face { font-family: "Libre Franklin"; font-weight: 400; font-display: swap; src: url(fonts/libre-franklin-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Libre Franklin"; font-weight: 500; font-display: swap; src: url(fonts/libre-franklin-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Libre Franklin"; font-weight: 600; font-display: swap; src: url(fonts/libre-franklin-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Libre Franklin"; font-weight: 700; font-display: swap; src: url(fonts/libre-franklin-latin-700-normal.woff2) format("woff2"); }

:root {
  --canvas: #F2EBDD;
  --night: #241A17;
  --ink: #2D1919;
  --ink-muted: #5D4F4B;
  --on-night: #F2EBDD;
  --on-night-muted: #C9BFB2;
  --accent: #9C1B1D;
  --hairline: rgba(45, 25, 25, 0.18);
  --hairline-night: rgba(242, 235, 221, 0.16);
  --wordmark: #3B2C27;
  --font: "Libre Franklin", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);      /* entrances */
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);  /* the shade only */
  --pad: max(40px, calc((100vw - 1920px) / 2 + 40px)); /* 40px up to 1920 wide; above that, content stays in a centred 1920 column */
  --label: 340px;
  --indent: calc(var(--label) + 40px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { min-height: 100%; background: var(--canvas) linear-gradient(var(--night), var(--night)) no-repeat; -webkit-text-size-adjust: 100%; }
body { background: var(--canvas); color: var(--ink); font: 400 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ol, ul { list-style: none; }
h1, h2, h3 { font: inherit; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.hero :focus-visible, .closing :focus-visible { outline-color: var(--on-night); }
.skip { position: absolute; left: 8px; top: -60px; z-index: 50; background: var(--ink); color: var(--canvas); padding: 10px 14px; }
.skip:focus { top: 8px; }
/* About lands on Who we are: leave room above it; the heading takes focus for screen readers but is not a control. */
#wwa { scroll-margin-top: 72px; }
#wwa:focus { outline: none; }
/* Placeholders (one convention, Crity W1): "[…]" in warm grey with a dashed underline, never brand red. Launch check: no "[" left in dist/. */
.ph { color: #6E5F5A; text-decoration: underline dashed 1px #8A7B76; text-underline-offset: 3px; }
.closing .ph { color: var(--on-night-muted); text-decoration-color: rgba(242, 235, 221, 0.55); }
.narrow { display: none; }

/* labels, numbers, statements */
.label { flex: 0 0 var(--label); width: var(--label); color: var(--ink-muted); font-size: 13px; line-height: 18px; }
.num { color: var(--ink-muted); font-size: 12px; line-height: 16px; font-variant-numeric: tabular-nums; }
.statement { flex: 1 1 0; min-width: 0; font-size: 44px; font-weight: 500; line-height: 52px; letter-spacing: -0.025em; }
.row-head { display: flex; gap: 40px; }
.sec { padding-inline: var(--pad); }
.ph-frame { display: block; overflow: hidden; background: rgba(45, 25, 25, 0.06); }
.ph-frame img { width: 100%; height: 100%; object-fit: cover; }

/* primary button */
.btn { position: relative; display: inline-flex; align-items: center; gap: 16px; height: 60px; padding: 0 26px 0 30px; background: var(--accent); color: var(--on-night); border-radius: 2px; overflow: hidden; isolation: isolate; flex-shrink: 0; transition: transform 160ms var(--ease-out); }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--canvas); transform: scaleY(0); transform-origin: bottom; }
.btn-label { font-size: 16px; font-weight: 500; line-height: 20px; white-space: nowrap; }
.btn-div { width: 1px; height: 20px; background: rgba(242, 235, 221, 0.35); flex-shrink: 0; }
.btn-arrow { font-size: 18px; font-weight: 500; line-height: 20px; }
.btn:active { transform: scale(0.97); }
.btn:focus-visible { outline: 2px solid var(--on-night); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .btn::before { transition: transform 260ms var(--ease-out); }
  .btn-label, .btn-arrow { transition: color 260ms var(--ease-out); }
  .btn-div { transition: background-color 260ms var(--ease-out); }
  .btn:hover::before { transform: scaleY(1); }
  .btn:hover .btn-label, .btn:hover .btn-arrow { color: var(--ink); }
  .btn:hover .btn-div { background: rgba(45, 25, 25, 0.35); }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .btn::before, .btn-label, .btn-arrow, .btn-div { transition: none !important; }
  .btn:active { transform: none; }
}

/* hero */
.hero { position: relative; height: clamp(640px, 100svh, 900px); display: flex; flex-direction: column; justify-content: space-between; padding: 28px var(--pad) 40px; color: var(--on-night); background: var(--night); overflow: clip; }
.hero-photo, .hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-photo img { object-fit: cover; object-position: 50% 40%; max-width: none; }
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(36,26,23,.78) 0, rgba(36,26,23,0) 180px, transparent 420px, rgba(36,26,23,.15) 500px, rgba(36,26,23,.82) 100%); }
.bar { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; }
.bar-left, .bar-right { display: flex; gap: 28px; width: 300px; flex-shrink: 0; }
.bar-right { justify-content: flex-end; align-items: center; }
.bar a.wide-link, .bar-left a { font-size: 15px; line-height: 20px; padding-block: 12px; }
.logo img { width: 146px; height: 62px; }
.pill, .menu-btn { display: none; }
.menu { position: absolute; z-index: 3; top: 76px; left: 20px; right: 20px; background: var(--canvas); color: var(--ink); padding: 8px 20px; display: flex; flex-direction: column; }
.menu a { min-height: 48px; display: flex; align-items: center; font-size: 17px; font-weight: 500; border-bottom: 1px solid var(--hairline); }
.menu a:last-child { border-bottom: 0; }
.hero-foot { position: relative; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.hero-title { flex: 0 1 1109px; min-width: 0; font-size: 100px; font-weight: 700; line-height: 93px; letter-spacing: -0.045em; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: 6px; margin-bottom: -6px; }
.hero-title .line > span { display: block; }

/* what we do */
.services { display: flex; flex-direction: column; gap: 96px; padding-block: 140px; }
.cores { display: contents; }
.core { display: flex; align-items: flex-start; gap: 40px; }
.core .ph-frame { flex: 0 0 300px; width: 300px; height: 225px; }
.core-text { display: flex; flex-direction: column; gap: 10px; width: 300px; flex-shrink: 0; }
.core h3 { font-size: 30px; font-weight: 500; line-height: 34px; letter-spacing: -0.02em; }
.core p { color: var(--ink-muted); font-size: 14px; line-height: 21px; }
.core-1 { padding-left: var(--indent); }
.core-2 { flex-direction: row-reverse; }
.core-2 .core-text { padding-top: 80px; }
.core-3 { padding-left: 120px; }
.core-3 .core-text { width: 380px; }
.core h3 a:hover, .also-name:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.row-head.also { padding-top: 24px; }
.also-list { flex: 1 1 0; display: flex; gap: 24px; min-width: 0; }
.also-list li { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--ink); padding-top: 16px; }
.also-name { font-size: 20px; font-weight: 500; line-height: 24px; letter-spacing: -0.01em; }
.also-note { color: var(--ink-muted); font-size: 13px; line-height: 19px; }

/* marquee: service names only, decorative (aria-hidden) */
.marquee { overflow: clip; padding: 20px 0 120px; }
.marquee-track { display: flex; gap: 80px; width: max-content; margin-left: -260px; }
.marquee-track span { color: var(--accent); font-size: 140px; font-weight: 700; line-height: 130px; letter-spacing: -0.045em; white-space: nowrap; }

/* who we are */
.who { display: flex; gap: 40px; padding-block: 140px 120px; }
.who-body { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 64px; }
.statement.indent { text-indent: 200px; }
.who-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.caption { display: flex; align-items: center; gap: 12px; color: var(--ink-muted); font-size: 13px; font-weight: 500; line-height: 13px; }
.rule { width: 24px; height: 1px; background: var(--ink-muted); flex-shrink: 0; }
.who-foot .ph-frame { flex: 0 0 280px; width: 280px; height: 210px; }

/* who we work with */
.markets { display: flex; flex-direction: column; gap: 72px; padding-block: 140px 120px; }
.mk-list { padding-left: var(--indent); }
.mk-list li { display: flex; align-items: center; gap: 24px; padding-block: 26px; border-top: 1px solid var(--hairline); }
.mk-list li:last-child { border-bottom: 1px solid var(--hairline); }
.mk-list .num { flex: 0 0 40px; font-size: 13px; line-height: 18px; }
.mk-name { flex: 0 0 440px; font-size: 30px; font-weight: 500; line-height: 36px; letter-spacing: -0.02em; }
.mk-note { flex: 1 1 0; min-width: 0; color: var(--ink-muted); font-size: 15px; line-height: 23px; }

/* recent projects */
.projects { display: flex; flex-direction: column; gap: 88px; padding-block: 60px 140px; }
.proj-grid { display: flex; flex-direction: column; gap: 88px; }
.proj-row { display: flex; align-items: flex-start; }
.proj-row-a { justify-content: space-between; padding-left: var(--indent); }
.proj-row-b { gap: 120px; padding-left: 120px; }
.proj { display: flex; flex-direction: column; gap: 12px; flex-shrink: 0; }
.proj .ph-frame { aspect-ratio: 4 / 3; width: 100%; }
.proj-1 { width: 420px; }
.proj-2 { width: 300px; padding-top: 180px; }
.proj-3 { width: 300px; }
.proj-4 { width: 360px; padding-top: 120px; }
.proj-5 { width: 300px; padding-top: 40px; }
.proj figcaption { display: grid; grid-template-columns: 1fr auto; gap: 12px 16px; }
.proj-name { font-size: 14px; font-weight: 600; line-height: 20px; }
.proj-city { color: var(--ink-muted); font-size: 14px; line-height: 20px; }
.proj-svc { grid-column: 1 / -1; color: var(--ink-muted); font-size: 13px; line-height: 18px; }

/* how it works */
.how { display: flex; flex-direction: column; gap: 72px; padding-block: 120px 140px; border-top: 1px solid var(--hairline); }
.steps { display: flex; gap: 32px; padding-left: var(--indent); }
.steps li { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--ink); padding-top: 20px; }
.steps li > div { display: flex; flex-direction: column; gap: 12px; }
.steps h3 { font-size: 22px; font-weight: 500; line-height: 28px; letter-spacing: -0.01em; }
.steps p { color: var(--ink-muted); font-size: 14px; line-height: 21px; }

/* closing: CTA, footer columns, legal row, wordmark */
.closing { background: var(--night); color: var(--on-night); display: flex; flex-direction: column; align-items: center; overflow: clip; }
.cta { display: flex; flex-direction: column; align-items: center; gap: 28px; padding: 180px var(--pad) 160px; text-align: center; }
.cta-title { width: min(960px, 100%); font-size: 88px; font-weight: 700; line-height: 88px; letter-spacing: -0.045em; text-wrap: balance; }
.cta-line { width: min(560px, 100%); color: var(--on-night-muted); font-size: 18px; line-height: 28px; }
.cta-btn { margin-top: 12px; }
.foot-cols { width: calc(100% - 2 * var(--pad)); display: flex; gap: 24px; padding-top: 40px; border-top: 1px solid var(--hairline-night); }
.fc { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.fc h2 { color: var(--on-night-muted); font-size: 13px; line-height: 18px; padding-bottom: 8px; }
.fc a { font-size: 15px; line-height: 24px; }
.fc a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.legal { width: calc(100% - 2 * var(--pad)); display: flex; justify-content: space-between; gap: 24px; padding: 72px 0 8px; color: var(--on-night-muted); font-size: 13px; line-height: 18px; }
.wordmark { width: 100%; height: min(16.667vw, 320px); margin-top: 32px; display: flex; justify-content: center; overflow: clip; user-select: none; -webkit-user-select: none; pointer-events: none; }
.wordmark span { color: var(--wordmark); font-size: min(25.14vw, 483px); font-weight: 700; line-height: 0.856em; letter-spacing: -0.055em; white-space: nowrap; }
.wordmark-lockup { padding: 56px 0 64px; }
.wordmark-lockup img { width: 340px; height: auto; }

/* 721–1279: same structure, narrower label column and type */
@media (max-width: 1279px) {
  :root { --label: 220px; }
  .statement { font-size: 36px; line-height: 44px; }
  .hero-title { font-size: clamp(58px, 7vw, 100px); line-height: 0.93; }
  .hero-foot { flex-wrap: wrap; gap: 32px; }
  .hero-title { flex-basis: 100%; }
  .hero-cta { margin-left: auto; }
  .core-3 { padding-left: 60px; }
  .core-3 .core-text { width: 300px; }
  .mk-name { flex-basis: 280px; font-size: 26px; line-height: 32px; }
  .proj-1 { width: 380px; }
  .proj-row-b { gap: 32px; padding-left: 0; }
  .proj-row-b .proj { flex: 1 1 0; width: auto; }
  .cta-title { font-size: clamp(64px, 6.1vw, 88px); line-height: 1; }
  .marquee-track span { font-size: 112px; line-height: 104px; }
}
@media (max-width: 1023px) {
  .also-list { flex-wrap: wrap; row-gap: 24px; }
  .also-list li { flex: 1 1 140px; }
  .steps { flex-wrap: wrap; row-gap: 32px; }
  .steps li { flex: 1 1 200px; }
  .bar-left, .bar-right { width: auto; }
}

/* phone: "B — Isaac's Pass, mobile 390" */
@media (max-width: 720px) {
  :root { --pad: 20px; }
  .wide { display: none; }
  .narrow { display: inline; }
  .row-head { flex-direction: column; gap: 28px; }
  .label { flex: none; width: auto; }

  .hero { height: 100svh; min-height: 600px; max-height: 820px; padding: 16px 20px 28px; }
  .hero-photo img { object-position: 50% 50%; }
  .hero-scrim { background: linear-gradient(180deg, rgba(36,26,23,.75) 0%, rgba(36,26,23,0) 18%, rgba(36,26,23,0) 40%, rgba(36,26,23,.88) 100%); }
  .bar-left, .wide-link { display: none !important; }
  .logo img { width: 108px; height: 46px; }
  .bar-right { gap: 8px; }
  .pill, .menu-btn { display: inline-flex; align-items: center; height: 44px; padding: 0 14px; font: 500 15px/20px var(--font); }
  .pill-line { border: 1px solid rgba(242, 235, 221, 0.5); color: var(--on-night); }
  .pill-solid { background: var(--canvas); color: var(--ink); border: 0; cursor: pointer; }
  .hero-foot { flex-direction: column; align-items: stretch; gap: 22px; }
  .hero-title { flex: none; font-size: 44px; line-height: 44px; text-wrap: pretty; }
  .btn { height: 56px; padding: 0 22px 0 24px; }
  .hero-cta, .cta-btn { width: 100%; }
  .btn-label { margin-right: auto; }

  .services { gap: 28px; padding-block: 64px 56px; }
  .statement { font-size: 28px; line-height: 34px; letter-spacing: -0.02em; }
  .cores { display: flex; flex-direction: column; gap: 40px; padding-top: 8px; }
  .core, .core-2 { flex-direction: column; gap: 12px; padding: 0; width: min(300px, 100%); }
  .core-2 { align-self: flex-end; }
  .core .ph-frame { flex: none; width: 100%; height: auto; aspect-ratio: 4 / 3; }
  .core-text, .core-3 .core-text { width: auto; gap: 12px; padding-top: 0 !important; }
  .core h3 { font-size: 24px; line-height: 28px; }
  .row-head.also { padding-top: 16px; gap: 12px; }
  .also-list { flex-direction: column; flex-wrap: nowrap; gap: 0; }
  .also-list li { flex: none; flex-direction: row; align-items: center; gap: 14px; min-height: 56px; padding-top: 0; border-top-color: var(--hairline); }
  .also-list li:first-child { border-top-color: var(--ink); }
  .also-list li:last-child { border-bottom: 1px solid var(--hairline); }
  .also-list .num { flex: 0 0 24px; }
  .also-name { flex: 1 1 0; min-height: 44px; display: flex; align-items: center; font-size: 18px; line-height: 22px; letter-spacing: 0; }
  .also-note { font-size: 13px; line-height: 18px; text-align: right; }

  .marquee { padding: 8px 0 48px; }
  .marquee-track { gap: 32px; margin-left: -40px; }
  .marquee-track span { font-size: 52px; line-height: 56px; letter-spacing: -0.05em; }

  .who { flex-direction: column; gap: 20px; padding-block: 24px 64px; }
  .who-body { gap: 20px; }
  .who .statement, .markets .statement, .projects .statement, .how .statement { font-size: 26px; line-height: 33px; }
  .statement.indent { text-indent: 0; }
  .who-foot { flex-direction: column-reverse; align-items: stretch; gap: 20px; }
  .who-foot .ph-frame { flex: none; width: 100%; height: 200px; }
  .caption { line-height: 18px; }

  .markets { gap: 24px; padding-block: 72px 56px; }
  .mk-list { padding-left: 0; }
  .mk-list li { display: grid; grid-template-columns: 24px 1fr; gap: 4px 14px; align-items: start; padding-block: 16px; }
  .mk-list .num { grid-row: 1 / 3; font-size: 12px; line-height: 24px; }
  .mk-name { font-size: 20px; line-height: 24px; letter-spacing: 0; }
  .mk-note { font-size: 14px; line-height: 20px; }

  .projects { gap: 36px; padding-block: 32px 72px; }
  .projects .row-head { gap: 20px; }
  .proj-grid, .proj-row { display: flex; flex-direction: column; gap: 36px; padding: 0; }
  .proj { gap: 8px; padding-top: 0 !important; }
  .proj-1 { width: min(350px, 100%); }
  .proj-2, .proj-3, .proj-5 { width: min(250px, 72%); }
  .proj-4 { width: min(290px, 83%); }
  .proj-2, .proj-4 { align-self: flex-end; }
  .proj-row-b .proj { flex: none; }
  .proj figcaption { display: flex; flex-direction: column; gap: 8px; }

  .how { gap: 28px; padding-block: 64px 72px; }
  .steps { flex-direction: column; gap: 20px; padding-left: 0; }
  .steps li { flex: none; flex-direction: row; gap: 14px; padding-top: 14px; }
  .steps .num { flex: 0 0 30px; line-height: 24px; }
  .steps li > div { gap: 4px; }
  .steps h3 { font-size: 19px; line-height: 24px; letter-spacing: 0; }
  .steps p { font-size: 14px; line-height: 20px; }

  .closing { align-items: stretch; }
  .cta { gap: 22px; padding: 96px 20px 80px; }
  .cta-title { font-size: 44px; line-height: 44px; letter-spacing: -0.04em; }
  .cta-line { font-size: 16px; line-height: 24px; }
  .cta-btn { margin-top: 8px; }
  .foot-cols { width: auto; margin: 0 20px; flex-wrap: wrap; gap: 32px 0; padding-top: 32px; }
  .fc { flex: 0 0 50%; gap: 0; }
  .fc-pages { order: 1; } .fc-contact { order: 2; } .fc-services { order: 3; } .fc-visit { order: 4; }
  .fc h2 { padding-bottom: 4px; }
  .fc a { min-height: 44px; display: flex; align-items: center; line-height: 20px; }
  .fc a.addr { display: block; min-height: 0; padding-top: 10px; line-height: 24px; }
  .legal { width: auto; flex-direction: column; gap: 4px; padding: 48px 20px 4px; }
  .legal p:first-child { display: flex; flex-direction: column; gap: 4px; }
  .legal .sep { display: none; }
  .legal-right { font-size: 0; }
  .wordmark { width: auto; height: calc((100vw - 40px) * 0.2114); margin: 20px 20px 0; justify-content: flex-start; }
  .wordmark span { font-size: calc((100vw - 40px) * 0.2686); line-height: 0.8723em; }
}

/* ---------- Motion (spec "Motion", final numbers; curves and timings from motion-prototype/index.html) ----------
   Only transform, opacity and clip-path animate. With JS off nothing below applies (all under .js / .intro). */
.shade { position: absolute; inset: 0; z-index: 4; background: var(--canvas); pointer-events: none; transform: translateY(-101%); }
.shade::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: var(--ink); }
.marquee-track { will-change: transform; }
@media (hover: hover) and (pointer: fine) {
  .bar-left a, .bar a.wide-link { position: relative; }
  .bar-left a::after, .bar a.wide-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 10px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 200ms var(--ease-out); }
  .bar-left a:hover::after, .bar a.wide-link:hover::after { transform: scaleX(1); }
}

/* intro: once per session; the shade lifts, the photo settles, lines rise, nav and CTA fade up. Set by ~1.3s */
.intro .shade { transform: none; animation: shade-up 850ms var(--ease-in-out) 100ms forwards; }
.intro .hero-photo { animation: photo-settle 1300ms var(--ease-out) both; }
.intro .hero-title .line > span { transform: translateY(105%); animation: rise 800ms var(--ease-out) forwards; }
.intro .hero-title .line:nth-child(1) > span { animation-delay: 450ms; }
.intro .hero-title .line:nth-child(2) > span { animation-delay: 520ms; }
.intro .fade-in { opacity: 0; animation: fade-up 500ms var(--ease-out) forwards; }
.intro .bar-left.fade-in { animation-delay: 700ms; }
.intro .logo.fade-in { animation-delay: 740ms; }
.intro .bar-right.fade-in { animation-delay: 780ms; }
.intro .hero-cta.fade-in { animation-delay: 800ms; }
/* a wheel, key or touch during the intro jumps straight to the end state */
.intro-done .shade { display: none; }
.intro-done .hero-photo, .intro-done .hero-title .line > span, .intro-done .fade-in { animation: none !important; transform: none !important; opacity: 1 !important; }
@keyframes shade-up { from { transform: translateY(0); } to { transform: translateY(-101%); } }
@keyframes photo-settle { from { transform: scale(1.06); } to { transform: none; } }
@keyframes rise { to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* scroll reveals, once each */
.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out); transition-delay: calc(min(var(--i, 0), 3) * 40ms); }
.js [data-reveal].in { opacity: 1; transform: none; }
/* photos open bottom-up, like a shade being raised */
.js [data-shade] { clip-path: inset(100% 0 0 0); transition: clip-path 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
.js [data-shade] img { transform: scale(1.06); transition: transform 1200ms var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
.js [data-shade].in { clip-path: inset(0 0 0 0); }
.js [data-shade].in img { transform: none; }
.js .wordmark span { transform: translateY(40%); opacity: 0; transition: transform 1000ms var(--ease-out), opacity 1000ms var(--ease-out); }
.js .wordmark.in span { transform: none; opacity: 1; }

/* reduced motion: no shade and no movement; short opacity fades only */
@media (prefers-reduced-motion: reduce) {
  .shade { display: none; }
  .intro .hero-photo, .intro .hero-title .line > span { animation: none; transform: none; }
  .intro .fade-in { animation: fade 300ms ease forwards; transform: none; }
  /* Nothing waits on a scroll observer: content is visible even if it never fires. */
  .js [data-reveal], .js [data-shade], .js .wordmark span { opacity: 1; transform: none; clip-path: none; transition: none; }
  .js [data-shade] img, .js .wordmark span { transform: none; transition: opacity 300ms ease; }
  .bar-left a::after, .bar a.wide-link::after { transition: none; }
  @keyframes fade { to { opacity: 1; } }
}

/* ======================= Inner pages: Services, Contact (BUILD-SPEC-services-contact.md) ======================= */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.narrow-block { display: none; }
.inner .label { flex: 0 0 var(--label); }

/* header on cream; the active page carries a 1px ink underline, every link a transparent one so the groups share a baseline */
.ihead { position: relative; padding: 28px var(--pad) 20px; color: var(--ink); }
.ihead .bar-left a, .ihead .bar a.wide-link { padding: 0 0 4px; border-bottom: 1px solid transparent; }
.ihead .bar-left a::after, .ihead .bar a.wide-link::after { display: none; }
.ihead .bar a[aria-current="page"] { border-bottom-color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .ihead .bar-left a:not([aria-current]):hover, .ihead .bar a.wide-link:not([aria-current]):hover { border-bottom-color: rgba(45, 25, 25, 0.35); }
}
.ihead .menu { top: 76px; border: 1px solid var(--hairline); }

/* page head */
.phead { display: flex; flex-direction: column; gap: 56px; padding: 120px var(--pad) 96px; }
.phead h1 { font-size: 160px; font-weight: 700; line-height: 140px; letter-spacing: -0.05em; }
.contact-page .phead { gap: 40px; padding-bottom: 80px; }
@media (prefers-reduced-motion: no-preference) { html:has(.services-page) { scroll-behavior: smooth; } }

/* services sections */
.svc { display: flex; gap: 40px; padding: 72px var(--pad) 96px; border-top: 1px solid var(--hairline); scroll-margin-top: 16px; }
.svc:has(.svc-plain) { padding-block: 64px 72px; }
.svc.svc-last { padding-bottom: 120px; }
.svc-name { flex: 0 0 var(--label); width: var(--label); display: flex; flex-direction: column; gap: 10px; }
.svc-name .num { font-size: 13px; line-height: 18px; }
#cubicle h2 { max-width: 300px; }
.svc-name h2 { font-size: 40px; font-weight: 700; line-height: 44px; letter-spacing: -0.03em; }
.svc-body { flex: 1 1 0; min-width: 0; display: flex; gap: 56px; }
.svc-text { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.svc-lead { font-size: 24px; font-weight: 500; line-height: 32px; letter-spacing: -0.015em; }
.svc-plain .svc-lead { flex: 0 0 420px; width: 420px; }
.svc-plain .spec { flex: 1 1 0; min-width: 0; }
.svc-core .ph-frame { flex: 0 0 380px; width: 380px; height: 285px; }
.spec-row { display: flex; gap: 24px; padding-block: 14px; border-top: 1px solid var(--hairline); }
.spec-row:last-child { border-bottom: 1px solid var(--hairline); }
.spec dt { flex: 0 0 120px; color: var(--ink-muted); font-size: 13px; line-height: 22px; }
.spec dd { min-width: 0; font-size: 15px; line-height: 22px; }
.svc-note { color: var(--ink-muted); font-size: 14px; line-height: 20px; }
.svc-detail { color: var(--ink-muted); font-size: 14px; line-height: 21px; }

/* contact: details panel + form */
.split { display: flex; align-items: flex-start; margin: 0 var(--pad) 140px; }
.details { flex: 0 0 560px; width: 560px; display: flex; flex-direction: column; gap: 40px; padding: 56px 48px 48px; background: var(--night); color: var(--on-night); }
.call { display: flex; flex-direction: column; gap: 8px; }
.call h2 { color: var(--on-night-muted); font-size: 13px; line-height: 18px; }
.call-num { font-size: 48px; font-weight: 700; line-height: 52px; letter-spacing: -0.035em; }
.drow { display: flex; gap: 24px; padding-block: 16px; border-top: 1px solid var(--hairline-night); }
.drow:last-child { border-bottom: 1px solid var(--hairline-night); }
.drow dt { flex: 0 0 100px; color: var(--on-night-muted); font-size: 13px; line-height: 24px; }
.drow dd { font-size: 16px; line-height: 24px; }
.details a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.note { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 36px; padding: 56px 0 48px 80px; }
.note-head { display: flex; flex-direction: column; gap: 8px; }
.note-head h2 { font-size: 32px; font-weight: 700; line-height: 36px; letter-spacing: -0.025em; }
.note-head p { color: var(--ink-muted); font-size: 16px; line-height: 24px; }
.req { color: var(--accent); }
.note-form { display: flex; flex-direction: column; gap: 36px; }
.seg { border: 0; padding: 0; min-width: 0; }
.seg legend { padding: 0; margin-bottom: 10px; color: var(--ink-muted); font-size: 13px; line-height: 18px; }
.seg-opts { display: flex; }
.seg-opts input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.seg-opts label { display: flex; align-items: center; justify-content: center; height: 48px; padding: 0 22px; border: 1px solid var(--ink); font-size: 15px; font-weight: 500; line-height: 20px; cursor: pointer; }
.seg-opts label:first-of-type { border-radius: 2px 0 0 2px; }
.seg-opts label:last-of-type { border-left: 0; border-radius: 0 2px 2px 0; }
.seg-opts input:checked + label { background: var(--ink); color: var(--canvas); }
.seg-opts input:focus-visible + label { outline: 2px solid var(--ink); outline-offset: 2px; position: relative; z-index: 1; }
@media (hover: hover) and (pointer: fine) { .seg-opts input:not(:checked) + label:hover { background: rgba(45, 25, 25, 0.06); } }
.field-row { display: flex; gap: 32px; }
.field-row .field { flex: 1 1 0; min-width: 0; }
.field { display: flex; flex-direction: column; gap: 10px; }
.field label { color: var(--ink-muted); font-size: 13px; line-height: 18px; }
.field input, .field textarea { width: 100%; padding: 0 0 12px; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; background: transparent; color: var(--ink); font: 400 20px/26px var(--font); }
.field textarea { min-height: 112px; line-height: 28px; resize: vertical; }
.field textarea::placeholder { color: #6B5D57; opacity: 1; }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.field [aria-invalid="true"] { border-bottom: 2px solid var(--accent); padding-bottom: 11px; }
.err { margin-top: -2px; color: var(--accent); font-size: 13px; line-height: 18px; }
.send-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.privacy { color: var(--ink-muted); font-size: 13px; line-height: 18px; }
.send { border: 0; cursor: pointer; font: inherit; }
.sent { display: flex; flex-direction: column; gap: 12px; padding: 32px 0; border-top: 1px solid var(--ink); }
.sent-title { font-size: 32px; font-weight: 700; line-height: 36px; letter-spacing: -0.025em; }
.sent-note { color: var(--ink-muted); font-size: 13px; line-height: 18px; }
.sent:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

/* contact footer: no CTA block, so no rule above the columns */
.closing.no-cta { padding-top: 72px; }
.closing.no-cta .foot-cols { border-top: 0; padding-top: 0; }

@media (max-width: 1279px) {
  .phead h1 { font-size: clamp(96px, 11vw, 160px); line-height: 0.875; }
  .svc-name h2 { font-size: 34px; line-height: 38px; }
  .svc-core .ph-frame { flex-basis: 300px; width: 300px; height: 225px; }
  .svc-plain { flex-direction: column; gap: 24px; }
  .svc-plain .svc-lead { flex: none; width: auto; }
  .details { flex-basis: 440px; width: 440px; padding: 48px 36px 40px; }
  .call-num { font-size: 40px; line-height: 44px; }
  .note { padding-left: 48px; }
}
@media (max-width: 1023px) {
  .svc-core { flex-direction: column; gap: 24px; }
  .svc-core .ph-frame { flex: none; width: min(380px, 100%); height: auto; aspect-ratio: 4 / 3; }
  .split { flex-direction: column; align-items: stretch; }
  .details { flex: none; width: auto; }
  .note { padding: 56px 0 0; }
}

@media (max-width: 720px) {
  .wide-block { display: none; }
  .narrow-block { display: block; }
  .ihead { padding: 16px 20px; }
  .ihead .pill-line { border: 1px solid var(--ink); border-radius: 2px; color: var(--ink); }
  .ihead .pill-solid { background: var(--ink); color: var(--canvas); border-radius: 2px; }

  .phead { gap: 24px; padding: 56px 20px 48px; }
  .phead h1 { font-size: 76px; line-height: 70px; letter-spacing: -0.05em; }
  .phead .statement { font-size: 24px; line-height: 31px; letter-spacing: -0.02em; }
  .contact-page .phead { gap: 20px; padding-bottom: 40px; }

  .svc { flex-direction: column; gap: 16px; padding: 40px 20px 48px; }
  .svc:has(.svc-plain) { gap: 14px; padding-block: 36px 40px; }
  .svc.svc-last { padding-bottom: 64px; }
  .svc-name { flex: none; width: auto; gap: 16px; }
  .svc:has(.svc-plain) .svc-name { gap: 14px; }
  .svc-name .num { font-size: 12px; line-height: 16px; }
  .svc-name h2, #cubicle h2 { max-width: none; font-size: 30px; line-height: 32px; }
  .svc-core { flex-direction: column-reverse; gap: 16px; }
  .svc-core .ph-frame { width: 100%; }
  .svc-text { gap: 16px; }
  .svc-plain { gap: 14px; }
  .svc-lead { font-size: 19px; line-height: 26px; letter-spacing: -0.01em; }
  .spec-row { gap: 16px; padding-block: 12px; }
  .spec dt { flex-basis: 84px; font-size: 12px; line-height: 21px; }
  .spec dd { font-size: 14px; line-height: 21px; }

  .split { margin: 0 0 0; }
  .details { margin: 0 20px; gap: 28px; padding: 32px 24px 24px; }
  .call { gap: 6px; }
  .call-num { font-size: clamp(24px, 8.6vw, 34px); line-height: 38px; letter-spacing: -0.03em; white-space: nowrap; }
  .drow { align-items: center; gap: 16px; min-height: 52px; padding-block: 0; }
  .drow-tall { min-height: 64px; }
  .drow dt { flex-basis: 64px; font-size: 12px; line-height: 22px; }
  .drow dd { font-size: 15px; line-height: 22px; }
  .drow dd a { display: inline-flex; align-items: center; min-height: 44px; }
  .note { gap: 28px; padding: 48px 20px 72px; }
  .note-head h2 { font-size: 26px; line-height: 30px; letter-spacing: -0.02em; }
  .note-head p { font-size: 14px; line-height: 21px; }
  .note-form { gap: 28px; }
  .seg-opts label { padding: 0 12px; }
  .seg-opts label:first-of-type { flex: 1 1 0; }
  .seg-opts label:last-of-type { flex: 1.6 1 0; }
  .field-row { flex-direction: column; gap: 28px; }
  .field input, .field textarea { font-size: 17px; line-height: 24px; }
  .field textarea { min-height: 88px; }
  .send-row { flex-direction: column-reverse; align-items: stretch; gap: 14px; }
  .send { width: 100%; }
  .sent-title { font-size: 26px; line-height: 30px; }
  .closing.no-cta { padding-top: 48px; }
}

/* Form honeypot: off-screen for people, still in the DOM for bots. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ======================= Privacy, Terms, 404 (Paper "Privacy, Terms, 404 (Nov 18)") ======================= */
.legal-right { display: flex; gap: 24px; }
.legal-right a { color: var(--on-night); text-decoration: underline 1px rgba(242, 235, 221, 0.4); text-underline-offset: 4px; }
.legal-page .phead { gap: 44px; padding-top: 110px; }
.legal-page .label { display: flex; flex-direction: column; gap: 6px; padding-top: 10px; }
.policy { padding: 0 var(--pad) 120px; }
.policy-row { display: flex; gap: 40px; padding: 28px 0 32px; border-top: 1px solid var(--hairline); }
.policy-row:last-child { border-bottom: 1px solid var(--hairline); }
.policy-row h2 { flex: 0 0 var(--label); width: var(--label); font-size: 20px; font-weight: 600; line-height: 28px; letter-spacing: -0.01em; }
.policy-row p { max-width: 620px; font-size: 18px; line-height: 30px; }
.policy-row a, .nf-link { color: inherit; text-decoration: underline 1px rgba(45, 25, 25, 0.45); text-underline-offset: 4px; }
.notfound { display: flex; flex-direction: column; gap: 20px; padding: 120px var(--pad) 120px; max-width: 760px; }
.nf-label { color: var(--ink-muted); font-size: 13px; line-height: 18px; }
.notfound h1 { font-size: 96px; font-weight: 700; line-height: 0.95; letter-spacing: -0.045em; }
.nf-line { font-size: 18px; line-height: 28px; }
.nf-actions { display: flex; align-items: center; gap: 24px; padding-top: 20px; }
.nf-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; font-weight: 500; text-underline-offset: 5px; }
@media (max-width: 720px) {
  .legal .legal-right { order: -1; font-size: 15px; line-height: 44px; padding-bottom: 12px; }
  .legal-right .city { display: none; }
  .legal-page .phead { gap: 20px; padding: 44px 20px 40px; }
  .legal-page .label { flex: none; gap: 2px; padding-top: 0; }
  .legal-page .row-head { gap: 20px; }
  .policy { padding: 0 20px 64px; }
  .policy-row { flex-direction: column; gap: 8px; padding: 20px 0 24px; }
  .policy-row h2 { flex: none; width: auto; font-size: 18px; line-height: 24px; letter-spacing: 0; }
  .policy-row p { font-size: 16px; line-height: 26px; }
  .notfound { padding: 72px 20px 96px; }
  .notfound h1 { font-size: 56px; line-height: 54px; }
  .nf-actions { flex-direction: column; align-items: stretch; gap: 8px; }
}
