/* css/attorneys-nyc.css — "Manhattan after hours": the attorney home (prototype /attorneys-next)
 * and the Pro Workspace features page (/pro-workspace). Loaded after css/skins.css and read on
 * top of the attorney skin ([data-audience="attorney"]): navy surfaces, cream text, one orange.
 *
 * The world is the cover's: photoreal Manhattan at blue hour, limestone and glass, warm amber
 * against the attorney door's electric blue. The product (real Command Deck recordings) sits in
 * lit glass "windows" over that world.
 *
 * Motion rules (scratchpad RESEARCH.md): nothing moves unless html.nyc-motion is set by
 * js/attorneys-nyc.js (no reduced motion, no Save-Data, not paused). Every animated thing has a
 * still state that is the default, so a failed script leaves a finished, readable page.
 */

[data-audience="attorney"] {
  --nyc-blue: #3A7BFF;          /* the attorney door's light */
  --nyc-blue-soft: rgba(58,123,255,0.28);
  --nyc-amber: #F2A65A;         /* window light, fog */
  --nyc-ink: #0B1426;
  --nyc-glass: rgba(22,36,63,0.62);
  --nyc-line: rgba(240,235,224,0.14);
  --nyc-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
}

body.nyc { background: var(--nyc-ink); overflow-x: hidden; }
body.nyc main { position: relative; z-index: 1; }

/* ── Accent words: Fraunces italic bridges the cover's serif wordmark and the attorney Geist ── */
.nyc .serif { font-family: var(--nyc-serif); font-style: italic; font-weight: 600; letter-spacing: -0.01em; }
.nyc .accent { color: var(--skin-accent); }

/* ── Motion toggle (WCAG 2.2.2: anything that moves can be paused) ───────────────────────── */
.nyc-motion-btn {
  display: none;
  align-items: center; gap: 8px;
  font: 700 12px/1 var(--font-body); letter-spacing: 0.04em;
  color: var(--skin-text-soft);
  background: transparent; border: 1px solid var(--nyc-line); border-radius: 999px;
  padding: 8px 12px; cursor: pointer;
}
.nyc-motion-btn:hover { color: var(--skin-text); border-color: var(--skin-text-muted); }
.nyc-motion-btn:focus-visible { outline: 2px solid var(--skin-accent); outline-offset: 2px; }
.nyc-motion-btn .ico { width: 10px; height: 10px; display: inline-block; position: relative; }
.nyc-motion-btn .ico::before, .nyc-motion-btn .ico::after {
  content: ""; position: absolute; top: 0; width: 3px; height: 10px; background: currentColor; border-radius: 1px;
}
.nyc-motion-btn .ico::before { left: 1px; } .nyc-motion-btn .ico::after { right: 1px; }
html.nyc-can-move .nyc-motion-btn { display: inline-flex; }
html.nyc-paused .nyc-motion-btn .ico::before { left: 2px; width: 0; height: 0; background: none;
  border-left: 8px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-radius: 0; }
html.nyc-paused .nyc-motion-btn .ico::after { display: none; }

.nyc-motion-fab { position: fixed; left: 16px; bottom: 16px; z-index: 50; background: rgba(11,20,38,0.82); backdrop-filter: blur(8px); }

/* Attorney Advertising label + legal disclaimer: the same rules attorneys.html carries inline
   (SILENT_OWNER_POLICY.md carve-out 10). The label stays above the nav, legible, never decorative. */
.attorney-advertising{
  background:var(--skin-surface-elev);
  border-bottom:1px solid var(--skin-divider);
  color:var(--skin-text-muted);
  font-size:11px;
  font-weight:700;
  letter-spacing:.14em;
  text-transform:uppercase;
  text-align:center;
  padding:7px 16px;
  line-height:1.4;
}
.tcd-legal-disclaimer{
  max-width:78ch;
  margin:0 auto 14px;
  font-size:12px;
  line-height:1.75;
  color:var(--skin-text-muted);
  text-wrap:pretty;
}
.tcd-legal-disclaimer a{ color:var(--skin-text-muted); text-decoration:underline; text-underline-offset:2px; }
.tcd-legal-disclaimer a:hover{ color:var(--skin-accent); }
.tcd-legal-disclaimer a:focus-visible{ outline:2px solid var(--skin-accent); outline-offset:2px; }

/* ── Full-bleed world layers ─────────────────────────────────────────────────────────────── */
.world {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0;
  background: var(--nyc-ink) var(--still-wide) center / cover no-repeat;
}
@media (max-width: 760px) { .world { background-image: var(--still-tall, var(--still-wide)); } }
.world > .film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.world > .film.on { opacity: 1; }
/* Stand-in for the Higgsfield film until it exists: the still drifts slowly (a push-in). */
html.nyc-motion .world.drift { animation: nyc-drift 38s ease-in-out infinite alternate; }
@keyframes nyc-drift { from { background-size: 100% auto; background-position: 60% 50%; } to { background-size: 108% auto; background-position: 56% 46%; } }
@media (max-width: 760px) { html.nyc-motion .world.drift { animation: none; } }
/* Fog: two soft amber/blue glows that breathe; pure CSS, composited (opacity/transform only). */
.world .fog { position: absolute; inset: -10%; opacity: 0.55; mix-blend-mode: screen;
  background:
    radial-gradient(40% 22% at 62% 52%, rgba(242,166,90,0.20), transparent 70%),
    radial-gradient(30% 18% at 82% 70%, rgba(58,123,255,0.16), transparent 70%); }
html.nyc-motion .world .fog { animation: nyc-fog 16s ease-in-out infinite alternate; }
@keyframes nyc-fog { from { transform: translate3d(-2%,0,0) scale(1); opacity: .45; } to { transform: translate3d(2%,-1%,0) scale(1.06); opacity: .7; } }
/* Readability wash: dark on the copy side, open on the city side. Contrast is designed against
   the STILL, so it holds whether or not the film plays. */
.world .wash { position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(11,20,38,0.94) 0%, rgba(11,20,38,0.80) 34%, rgba(11,20,38,0.22) 62%, rgba(11,20,38,0.10) 100%),
    linear-gradient(180deg, rgba(11,20,38,0) 55%, rgba(11,20,38,1) 100%); }
@media (max-width: 980px) {
  .world .wash { background: linear-gradient(180deg, rgba(11,20,38,0.55) 0%, rgba(11,20,38,0.82) 42%, rgba(11,20,38,0.96) 70%, var(--nyc-ink) 100%); }
}

/* ── Hero ───────────────────────────────────────────────────────────────────────────────── */
.nyc-hero { position: relative; isolation: isolate; min-height: min(92vh, 940px); display: flex; align-items: center; padding: clamp(40px, 7vh, 88px) 0 clamp(56px, 9vh, 110px); }
.nyc-hero > .wrap { position: relative; z-index: 1; width: 100%; }
body.tcd-skinned .nyc-hero > .wrap { max-width: 1320px; }
.nyc-hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
@media (max-width: 980px) { .nyc-hero-grid { grid-template-columns: 1fr; } }
.nyc-hero h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(40px, 5.6vw, 76px); line-height: 1.0; letter-spacing: -0.035em;
  margin: 14px 0 26px; color: var(--skin-text); text-wrap: balance;
}
.nyc-hero h1 .serif { font-size: 1.04em; color: var(--nyc-amber); }
.nyc-hero .lede { font-size: clamp(16px, 1.5vw, 19px); line-height: 1.6; color: var(--skin-text-soft); max-width: 50ch; margin: 0 0 28px; }
.nyc-hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.nyc-hero .fineprint { margin-top: 18px; font-size: 13px; color: var(--skin-text-muted); }
.nyc-hero .fineprint a { color: var(--skin-text-soft); }

.btn-tour { display: inline-flex; align-items: center; gap: 10px; }
.btn-tour .play { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center;
  background: rgba(240,235,224,0.12); box-shadow: inset 0 0 0 1px rgba(240,235,224,0.25); }
.btn-tour .play::before { content: ""; margin-left: 2px; border-left: 8px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }

/* ── The glass window: how a real recording is framed ───────────────────────────────────── */
.win {
  position: relative; border-radius: 14px; overflow: hidden;
  background: #0B1426;
  border: 1px solid var(--nyc-line);
  box-shadow:
    0 50px 120px -20px rgba(0,0,0,0.75),
    0 0 0 1px rgba(232,119,34,0.16),
    0 0 90px -20px var(--nyc-blue-soft);
  transform-origin: 50% 60%;
}
.win-bar { display: flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px;
  background: linear-gradient(180deg, #1A2947, #142139); border-bottom: 1px solid rgba(240,235,224,0.08);
  font: 700 11px/1 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--skin-text-muted); }
.win-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(240,235,224,0.18); }
.win-bar i:first-child { background: var(--skin-accent); }
.win-bar span { margin-left: 8px; }
.win-bar .tag { margin-left: auto; color: var(--nyc-amber); letter-spacing: 0.06em; }
.win-media { position: relative; aspect-ratio: 1440 / 900; background: #0F1B33 center / cover no-repeat; }
.win-media video, .win-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.win-media video { opacity: 0; transition: opacity .5s ease; }
.win-media video.on { opacity: 1; }
/* Sheen: a soft diagonal reflection across the glass. */
.win::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(115deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0) 28%, rgba(255,255,255,0) 72%, rgba(58,123,255,0.06) 100%); }
/* Tap-to-play on phones (no autoplay below 760 px: the clips stay off the phone budget). */
.win-play { position: absolute; inset: 0; display: none; place-items: center; background: rgba(11,20,38,0.25); border: 0; cursor: pointer; color: var(--skin-text); }
.win-play span { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px;
  background: rgba(11,20,38,0.78); box-shadow: inset 0 0 0 1px rgba(240,235,224,0.22); font: 800 13px/1 var(--font-body); }
.win-play span::before { content: ""; border-left: 9px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.win[data-tap] .win-play { display: grid; }
.win-play:focus-visible { outline: 2px solid var(--skin-accent); outline-offset: -4px; }

/* 3D: the hero window floats tilted and settles flat as you scroll (scroll-driven, guarded). */
.win.tilt { transform: perspective(1800px) rotateY(-9deg) rotateX(3deg) translateZ(0); }
@media (max-width: 980px) { .win.tilt { transform: none; } }
@supports (animation-timeline: view()) {
  html.nyc-motion .win.tilt { animation: nyc-settle linear both; animation-timeline: view(); animation-range: entry 0% cover 55%; }
  @keyframes nyc-settle { from { transform: perspective(1800px) rotateY(-14deg) rotateX(6deg) translateY(30px); }
                          to   { transform: perspective(1800px) rotateY(-2deg) rotateX(0deg) translateY(0); } }
}
@media (max-width: 980px) { html.nyc-motion .win.tilt { animation: none; } }
html.nyc-motion .hero-float { animation: nyc-float 9s ease-in-out infinite alternate; }
@keyframes nyc-float { from { translate: 0 0; } to { translate: 0 -10px; } }

.win-cap { margin-top: 14px; font-size: 12.5px; color: var(--skin-text-muted); display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; }
.win-cap b { color: var(--skin-text-soft); font-weight: 700; }
.win-cap details summary { cursor: pointer; color: var(--skin-text-soft); text-decoration: underline; text-underline-offset: 3px; }
.win-cap details ol { margin: 8px 0 0; padding-left: 18px; color: var(--skin-text-soft); line-height: 1.6; }

/* ── Proof chips (no numbers, no stats: things that are true of the product) ──────────────── */
.nyc-proof { display: flex; flex-wrap: wrap; gap: 10px 12px; justify-content: center; padding: 22px 0 0; }
.nyc-proof span { font: 700 12.5px/1 var(--font-body); color: var(--skin-text-soft); padding: 10px 14px; border-radius: 999px;
  background: rgba(22,36,63,0.7); box-shadow: inset 0 0 0 1px var(--nyc-line); }
.nyc-proof span b { color: var(--skin-accent); font-weight: 800; margin-right: 6px; }

/* ── Feature chapters ───────────────────────────────────────────────────────────────────── */
.nyc-chapter { position: relative; isolation: isolate; padding: clamp(56px, 9vh, 112px) 0; }
.nyc-chapter .wrap { position: relative; z-index: 1; }
body.tcd-skinned .nyc-chapter .wrap { max-width: 1240px; }
.chap-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4.5vw, 72px); align-items: center; }
.chap-grid.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.chap-grid.flip > .chap-copy { order: 2; }
@media (max-width: 980px) { .chap-grid, .chap-grid.flip { grid-template-columns: 1fr; } .chap-grid.flip > .chap-copy { order: 0; } }
.chap-copy .num { font: 800 12px/1 var(--font-numeric); letter-spacing: 0.12em; color: var(--skin-accent); }
.chap-copy h2, .chap-copy h3.h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.06; letter-spacing: -0.03em; margin: 12px 0 14px; color: var(--skin-text); text-wrap: balance; }
.chap-copy p { color: var(--skin-text-soft); line-height: 1.65; max-width: 52ch; }
.chap-copy ul.ticks { list-style: none; padding: 0; margin: 16px 0 0; }
.chap-copy ul.ticks li { display: flex; gap: 10px; padding: 6px 0; color: var(--skin-text-soft); font-size: 14.5px; line-height: 1.5; }
.chap-copy ul.ticks li::before { content: ""; flex: 0 0 auto; width: 6px; height: 6px; margin-top: 8px; border-radius: 50%; background: var(--skin-accent); box-shadow: 0 0 10px rgba(232,119,34,0.8); }

/* The sample figure card: the verified demo numbers, labelled as a sample. */
.sample { margin-top: 20px; border-radius: 12px; padding: 14px 16px; background: rgba(11,20,38,0.66);
  box-shadow: inset 0 0 0 1px var(--nyc-line); font-family: var(--font-numeric); font-size: 13.5px; color: var(--skin-text-soft); }
.sample .lbl { font: 800 10.5px/1 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--nyc-amber); margin-bottom: 10px; display: block; }
.sample .row { display: flex; justify-content: space-between; gap: 16px; padding: 4px 0; border-bottom: 1px dashed rgba(240,235,224,0.08); }
.sample .row:last-of-type { border-bottom: 0; }
.sample .row b { color: var(--skin-text); font-weight: 700; white-space: nowrap; }
.sample .row.total b { color: var(--skin-accent); }
.sample .note { display: block; margin: 10px 0 0; font: 600 11.5px/1.45 var(--font-body); color: var(--skin-text-muted); }
.sample .note.prior { margin-top: 4px; color: var(--skin-text-soft); }

/* A still of the world beside a text chapter (features page). */
.photo { margin: 0; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 9; background: #0F1B33;
  box-shadow: 0 40px 100px -30px rgba(0,0,0,0.8), inset 0 0 0 1px var(--nyc-line); }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Section backdrops: a still of the world behind a chapter, with depth parallax. */
.chap-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.chap-bg::before { content: ""; position: absolute; inset: -12% 0; background: var(--bg) center / cover no-repeat; opacity: 0.42; }
.chap-bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--nyc-ink) 0%, rgba(11,20,38,0.55) 22%, rgba(11,20,38,0.55) 78%, var(--nyc-ink) 100%); }
@supports (animation-timeline: view()) {
  html.nyc-motion .chap-bg::before { animation: nyc-parallax linear both; animation-timeline: view(); }
  @keyframes nyc-parallax { from { transform: translate3d(0,-6%,0) scale(1.04); } to { transform: translate3d(0,6%,0) scale(1.04); } }
}

/* Reveal on scroll: visible by default; only hidden when the script has armed it. */
html.nyc-reveal .rv { opacity: 0; transform: translate3d(0, 22px, 0); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
html.nyc-reveal .rv.in { opacity: 1; transform: none; }

/* ── Section heads & grids ──────────────────────────────────────────────────────────────── */
.nyc-head { max-width: 760px; margin: 0 auto 36px; text-align: center; }
.nyc-head h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 3.8vw, 50px); line-height: 1.04; letter-spacing: -0.035em; margin: 12px 0; text-wrap: balance; }
.nyc-head p { color: var(--skin-text-soft); font-size: 16.5px; line-height: 1.6; }
.tile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.tile-card { display: block; text-decoration: none; color: inherit; border-radius: 14px; padding: 18px 18px 20px;
  background: linear-gradient(160deg, rgba(31,47,77,0.85), rgba(22,36,63,0.85));
  box-shadow: inset 0 0 0 1px var(--nyc-line), 0 20px 50px -30px rgba(0,0,0,0.8);
  transition: transform var(--rhythm-fast) var(--ease-out), box-shadow var(--rhythm-fast) var(--ease-out); }
a.tile-card:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px rgba(232,119,34,0.55), 0 24px 60px -30px rgba(232,119,34,0.4); }
.tile-card .k { font: 800 12px/1 var(--font-numeric); color: var(--skin-accent); letter-spacing: 0.06em; }
.tile-card h3 { font-size: 16px !important; margin: 10px 0 6px !important; color: var(--skin-text); font-weight: 800; letter-spacing: -0.01em; }
.tile-card p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--skin-text-muted); }
.tile-card .beta { font: 800 10px/1 var(--font-body); letter-spacing: 0.1em; color: var(--nyc-amber); margin-left: 6px; }

/* ── Tour dialog ────────────────────────────────────────────────────────────────────────── */
dialog.nyc-tour { width: min(1200px, 94vw); padding: 0; border: 0; border-radius: 16px; background: #0B1426; color: var(--skin-text);
  box-shadow: 0 60px 160px rgba(0,0,0,0.8), 0 0 0 1px rgba(240,235,224,0.12); }
dialog.nyc-tour::backdrop { background: rgba(5,10,20,0.82); backdrop-filter: blur(6px); }
dialog.nyc-tour .bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; font: 700 13px/1.2 var(--font-body); }
dialog.nyc-tour .bar button { background: transparent; border: 1px solid var(--nyc-line); color: var(--skin-text); border-radius: 999px; padding: 7px 12px; font: 700 12px/1 var(--font-body); cursor: pointer; }
dialog.nyc-tour video { display: block; width: 100%; aspect-ratio: 1440 / 900; background: #0F1B33; }
dialog.nyc-tour .desc { padding: 12px 16px 16px; font-size: 13px; color: var(--skin-text-muted); line-height: 1.55; }

/* ── Chapter rail on the features page ──────────────────────────────────────────────────── */
.nyc-rail { position: sticky; top: 0; z-index: 5; background: rgba(11,20,38,0.86); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--nyc-line); }
.nyc-rail .wrap { display: flex; gap: 6px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; scrollbar-width: none; }
.nyc-rail a { flex: 0 0 auto; font: 700 12.5px/1 var(--font-body); color: var(--skin-text-muted); text-decoration: none; padding: 8px 12px; border-radius: 999px; }
.nyc-rail a:hover, .nyc-rail a.on { color: var(--skin-text); background: rgba(240,235,224,0.08); }

/* ── Closing CTA over the bridge ───────────────────────────────────────────────────────── */
.nyc-cta { position: relative; isolation: isolate; overflow: hidden; border-radius: 24px; padding: clamp(48px, 8vw, 96px) clamp(20px, 5vw, 64px); text-align: center;
  box-shadow: inset 0 0 0 1px var(--nyc-line); }
.nyc-cta .world .wash { background: linear-gradient(180deg, rgba(11,20,38,0.72), rgba(11,20,38,0.86)); }
.nyc-cta > *:not(.world) { position: relative; z-index: 1; }
.nyc-cta h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 4vw, 54px); letter-spacing: -0.035em; line-height: 1.04; margin: 10px 0 14px; }
.nyc-cta p { color: var(--skin-text-soft); max-width: 56ch; margin: 0 auto 24px; }
.nyc-cta .ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* Phones: 16 px gutters, nothing wider than the screen. */
@media (max-width: 560px) {
  body.tcd-skinned.nyc .wrap { padding-left: 16px; padding-right: 16px; }
  .nyc-hero { min-height: 0; }
  .nyc-hero h1 { font-size: clamp(36px, 10.5vw, 46px); }
  .win-bar .tag { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1 !important; transform: none !important; }
  .win.tilt { animation: none !important; }
}

/* Nav: "Pro Workspace" stays on one line. */
body.nyc .tcd-nav-links a { white-space: nowrap; }

/* Caption line as its own paragraph (so the i18n extractor sees it as one unit). */
.win-cap .cap-t { margin: 0; }

/* Locale copies: longer words than English, so the hero headline steps down a size. */
html:not([lang="en"]) .nyc-hero h1 { font-size: clamp(34px, 4.4vw, 60px); overflow-wrap: break-word; hyphens: auto; }

/* The machine-translation notice build-locales.mjs puts on locale copies (css/app.css styles it
   for light pages; this page does not load app.css). Room on the right for the language button. */
.nyc .i18n-translation-notice { margin: 0; padding: 10px 150px 10px 16px; font-size: 13px; line-height: 1.45; text-align: center;
  color: #f3e6c4; background: #2a2212; border-bottom: 1px solid #5d4d20; }
@media (max-width: 560px) { .nyc .i18n-translation-notice { padding: 52px 16px 10px; } }
