/* ==========================================================================
   NyxWorks — animated homepage layer. Loads AFTER home-v5.css and only adds
   things: every class here is prefixed an-, so nothing in the design system is
   overridden. The header, rate card, free tools, contact band, colophon and
   CTA dock are still home-v5's.

   Without JavaScript, or with prefers-reduced-motion, none of the hidden
   start states below apply (they hang off html.an-anim / html.an-intro, which
   an inline script in <head> only sets when motion is wanted), so the page is
   simply a static, fully visible page.
   ========================================================================== */

.an-wrap { width: var(--page); margin-inline: auto; }
.an-mono { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; }
.an-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.24em; margin-bottom: -0.24em; padding-right: 0.06em; margin-right: -0.06em; }  /* room for italic descenders (the g of "big") */
.an-w.an-open { overflow: visible; }  /* set by home-animated.js once the word has slid in */
.an-wi { display: inline-block; will-change: transform; }

/* ---------- intro loader (first visit of a session only) ---------- */
.an-loader { position: fixed; inset: 0; z-index: 300; background: var(--stock); display: none; flex-direction: column; justify-content: space-between; padding: var(--gutter); }
html.an-intro .an-loader { display: flex; }
.an-loader-top, .an-loader-bot { display: flex; justify-content: space-between; color: var(--ink-2); }
.an-loader-logo { display: flex; justify-content: center; overflow: hidden; padding-block: 0.4rem; }
.an-loader-logo img { width: clamp(240px, 42vw, 640px); height: auto; }
.an-loader-count { font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2.4rem); color: var(--gold); }

/* ---------- chrome ---------- */
.an-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; } /* architectural + marks; see home-animated.js */
.an-progress { position: fixed; left: 0; top: 0; height: 2px; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: 0 50%; z-index: 200; pointer-events: none; }
.an-cursor, .an-ring { position: fixed; left: 0; top: 0; pointer-events: none; z-index: 310; display: none; }
html.an-fine .an-cursor, html.an-fine .an-ring { display: block; }
.an-cursor { width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--gold-bright); }
.an-ring { width: 44px; height: 44px; margin: -22px 0 0 -22px; border: 1px solid rgba(242,239,231,0.5); border-radius: 50%; align-items: center; justify-content: center; font-family: var(--mono); font-size: 0.55rem; letter-spacing: 0.14em; text-transform: uppercase; color: #17140A; transition: background 0.25s, border-color 0.25s; }
html.an-fine .an-ring { display: flex; }
.an-ring.on { background: var(--gold); border-color: var(--gold); }
html.an-fine a, html.an-fine button { cursor: none; }

.an-pill { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 1.5rem; border-radius: 100px; background: var(--gold); color: #17140A; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.an-pill:hover { background: var(--gold-bright); color: #17140A; }
.an-pill.ghost { background: transparent; color: var(--ink); border: 1px solid rgba(242,239,231,0.4); }
.an-pill.ghost:hover { background: var(--ink); color: #17140A; }

/* ---------- hero ---------- */
.an-hero { min-height: calc(100svh - 275px); display: flex; flex-direction: column; justify-content: space-between; position: relative; padding-block: 2rem 1.2rem; }
.an-hero-grid { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) clamp(150px, 20vw, 300px); gap: clamp(1.2rem, 3vw, 3rem); align-items: center; }
.an-eyebrow { color: var(--red); margin-bottom: 1.6rem; display: block; }
.an-h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(2.5rem, 7.6vw, 6.8rem); line-height: 0.94; letter-spacing: -0.045em; text-wrap: balance; }
/* laptops: the X takes a real column now, so the headline steps down a little to stay on three lines */
@media (min-width: 821px) and (max-width: 1280px) { html:not([lang="de"]):not([lang="es"]) .an-h1 { font-size: 6.8vw; } }
/* German and Spanish say the same thing in more letters; a smaller size keeps it to two lines so the buttons stay on the first screen. */
html[lang="de"] .an-h1, html[lang="es"] .an-h1 { font-size: clamp(2.2rem, 4.7vw, 4.4rem); }
.an-h1 .an-nb { white-space: nowrap; }  /* keeps the full stop with its word */
.an-h1 em { font-style: italic; font-weight: 500; color: var(--gold-bright); }
.an-h1 .strike { position: relative; display: inline-block; white-space: nowrap; }
.an-h1 .strike::after { content: ""; position: absolute; left: -2%; right: -2%; top: 54%; height: 0.07em; background: var(--red); transform: scaleX(var(--s, 1)); transform-origin: 0 50%; }
.an-stand { max-width: 46ch; margin-top: clamp(1.2rem, 2.4vw, 1.9rem); font-size: clamp(1.02rem, 1.6vw, 1.3rem); line-height: 1.5; color: var(--ink-2); }
.an-stand b { color: var(--ink); font-weight: 500; }
.an-hero-cta { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: clamp(1.4rem, 2.6vw, 2rem); }

.an-stage { perspective: 900px; display: flex; justify-content: center; }
.an-mark3d { cursor: pointer; pointer-events: auto; -webkit-tap-highlight-color: transparent; position: relative; width: 100%; max-height: min(28svh, 250px); height: auto; aspect-ratio: 328/260; transform-style: preserve-3d; will-change: transform; }
.an-mark3d svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.an-mark3d path { fill: #F2EFE7; opacity: 0.94; }
.an-mark3d .l2 { opacity: 0.55; }
.an-mark3d .l3 { opacity: 0.22; }
.an-mark3d .gold line { stroke: var(--gold); stroke-width: 2; }
.an-hero-foot { width: var(--page); margin: 2rem auto 0; display: flex; justify-content: space-between; color: var(--ink-2); gap: 1rem; }
.an-scroll-hint { display: flex; align-items: center; gap: 0.7rem; }
.an-scroll-hint i { display: block; width: 1px; height: 38px; background: linear-gradient(var(--gold), transparent); transform-origin: top; animation: an-drip 1.8s ease-in-out infinite; }
@keyframes an-drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (max-width: 820px) {
  .an-hero-grid { grid-template-columns: 1fr; }
  .an-stage { order: -1; justify-content: flex-start; margin-bottom: 0.5rem; }
  .an-mark3d { width: auto; height: 84px; max-height: none; }
  .an-hero-foot .an-hide-m { display: none; }
}
/* hidden start states — only when motion is wanted and the script is coming */
html.an-anim .an-h1 { visibility: hidden; }
html.an-anim .an-eyebrow, html.an-anim .an-stand, html.an-anim .an-hero-cta > *, html.an-anim .an-mark3d, html.an-anim .an-hero-foot { opacity: 0; }

/* ---------- marquee ---------- */
.an-marquee { border-block: 1px solid var(--rule); overflow: hidden; padding-block: 1.1rem; background: rgba(11,11,14,0.7); backdrop-filter: blur(6px); }
.an-m-row { display: flex; width: max-content; animation: an-mq 42s linear infinite; }
.an-m-row span { font-family: var(--serif); font-weight: 600; font-size: clamp(2.2rem, 6vw, 5.5rem); letter-spacing: -0.02em; padding-right: 2.4rem; white-space: nowrap; line-height: 1.15; }
.an-m-row .o { color: transparent; -webkit-text-stroke: 1px rgba(242,239,231,0.55); }
.an-m-row .g { color: var(--gold); }
@keyframes an-mq { to { transform: translateX(-50%); } }

/* ---------- manifesto + method ---------- */
.an-mani { padding-block: clamp(6rem, 15vw, 13rem) clamp(3rem, 8vw, 6rem); }
.an-mani .an-k { color: var(--red); display: block; margin-bottom: 2rem; }
.an-mani-text { font-family: var(--serif); font-weight: 500; font-size: clamp(1.5rem, 3.7vw, 3.3rem); line-height: 1.2; letter-spacing: -0.015em; max-width: 28em; }
.an-method { padding-block: clamp(4rem, 9vw, 8rem); }
.an-method-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.an-method .an-k { color: #8A6A21; display: block; }
.an-method h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(2.6rem, 6.8vw, 6.4rem); line-height: 0.98; letter-spacing: -0.03em; word-spacing: 0.08em; margin-top: 1.2rem; text-wrap: balance; }
.an-method p { color: var(--ink-2); font-size: clamp(1rem, 1.3vw, 1.18rem); max-width: 46ch; margin-top: 1.2rem; }
.an-method h2 + p { margin-top: clamp(1.6rem, 3vw, 2.4rem); }
.an-method .an-link { display: inline-block; margin-top: 2rem; color: var(--ink); border-bottom: 1px solid currentColor; padding-bottom: 2px; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; }
@media (max-width: 820px) { .an-method-grid { grid-template-columns: 1fr; } }
/* the scope sheet: a real package, switchable between the three web builds */
.an-sheet-wrap { display: grid; justify-items: center; gap: 1.6rem; }
.an-sheet-tabs { display: flex; gap: 0.3rem; margin-bottom: 1.2rem; }
.an-sheet-tabs button { flex: 1; padding: 0.55rem 0.4rem; border: 1px solid rgba(19, 18, 23, 0.28); background: transparent; color: #56535C; font: inherit; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; transition: background 0.2s, color 0.2s; }
.an-sheet-tabs button:hover { color: #131217; border-color: #131217; }
.an-sheet-tabs button[aria-pressed="true"] { background: #131217; border-color: #131217; color: #FBF9F3; }
.an-sheet-tabs button:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.an-sheet-cta { color: #131217; border-bottom: 1px solid currentColor; padding-bottom: 2px; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.74rem; }
.an-sheet-cta:hover { color: var(--red); }
/* the scope sheet: a real package, written the way we write every one of them */
.an-sheet { position: relative; max-width: 460px; margin-inline: auto; background: #FBF9F3; border: 1px solid rgba(19, 18, 23, 0.28); padding: 1.7rem 1.8rem 1.6rem; transform: rotate(-1.4deg); box-shadow: 0 28px 60px rgba(19, 18, 23, 0.16); color: #131217; }
.an-sheet-head { display: flex; align-items: center; gap: 0.6rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(19, 18, 23, 0.25); color: #56535C; }
.an-sheet-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); flex: none; }
.an-sheet-row { display: flex; align-items: baseline; gap: 0.7rem; padding-top: 1.1rem; font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; color: #56535C; }
.an-sheet-row i { flex: 1; border-bottom: 1px dotted rgba(19, 18, 23, 0.45); transform: translateY(-3px); }
.an-sheet-row b { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; letter-spacing: -0.01em; text-transform: none; color: #131217; }
.an-sheet-total { display: flex; align-items: baseline; justify-content: space-between; margin-top: 1.5rem; padding-top: 1.1rem; border-top: 2px solid #131217; }
.an-sheet-total .an-mono { color: #56535C; }
.an-sheet-total b { font-family: var(--serif); font-weight: 600; font-size: clamp(2.6rem, 5vw, 3.8rem); line-height: 1; letter-spacing: -0.03em; }
.an-sheet-tag { margin-top: 0.7rem; color: #8A6A21; }
.an-sheet-stamp { position: absolute; right: -1.2rem; bottom: 2.4rem; width: 6.4rem; aspect-ratio: 1; border: 3px solid var(--red); border-radius: 50%; display: grid; place-items: center; color: var(--red); transform: rotate(-14deg); mix-blend-mode: multiply; background: rgba(251, 249, 243, 0.55); }
.an-sheet-stamp::before { content: ""; position: absolute; inset: 5px; border: 1px solid var(--red); border-radius: 50%; }
.an-sheet-stamp span { font-family: var(--mono); font-weight: 500; font-size: 0.95rem; letter-spacing: 0.18em; text-transform: uppercase; padding-left: 0.18em; }

/* ---------- live X-ray tool ---------- */
.an-diag { padding-block: clamp(2rem, 5vw, 4rem) clamp(4.5rem, 10vw, 8.5rem); text-align: center; }
.an-diag .an-sec-top { justify-content: center; }
.an-diag-grid { display: block; padding-top: clamp(1.2rem, 3vw, 2.4rem); }
.an-diag-grid h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(2.2rem, 5.6vw, 5rem); line-height: 1; letter-spacing: -0.03em; word-spacing: 0.08em; text-wrap: balance; max-width: 14em; margin-inline: auto; }
.an-diag-body { max-width: 860px; margin-inline: auto; }
.an-diag-body p:first-child { color: var(--ink-2); font-size: clamp(1rem, 1.3vw, 1.18rem); max-width: 52ch; margin: 1.4rem auto 0; padding-top: 0; }
.an-xform { margin-top: 2rem; gap: 0; align-items: stretch; text-align: left; }
.an-xform input { height: 68px; padding: 0 1.4rem; font-size: 1rem; background: transparent; border: 1px solid var(--rule-2); border-right: 0; transition: border-color 0.2s, box-shadow 0.2s; }
.an-xform input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.28); position: relative; z-index: 1; }
.an-xbtn { flex: none; height: 68px; padding: 0 2.2rem; background: #C9A227; color: #17140A; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500; border: 1px solid #C9A227; transition: background 0.2s; }
.an-xbtn:hover { background: #E0BC4A; }
.an-xbtn[disabled] { opacity: 0.6; pointer-events: none; }
.an-diag .xnote { margin: 1rem auto 0; font-size: 0.7rem; color: var(--ink-2); max-width: 60ch; }
.an-diag .xerr { margin-top: 0.9rem; font-size: 0.78rem; }
@media (max-width: 480px) { .an-xform { flex-direction: column; gap: 0.5rem; } .an-xform input { border-right: 1px solid var(--rule-2); } }
/* results open under the form, left-aligned, checks in two columns */
.an-findings { margin-top: clamp(2rem, 4vw, 3.4rem); padding-top: 1.6rem; border-top: 1px solid var(--rule-2); text-align: left; }
.an-findings .findings-host { font-size: 0.8rem; }
.an-findings .findings-score { font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1; }
.an-findings .findings-verdict { font-size: clamp(1.2rem, 2.2vw, 1.8rem); margin-top: 0.8rem; max-width: 34ch; }
.an-findings ul { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(1.5rem, 5vw, 5rem); margin-top: 1.6rem; }
.an-findings li { padding: 0.8rem 0; font-size: 0.92rem; }
.an-findings li span { font-size: 0.72rem; color: var(--ink-2); }
.an-findings .findings-next { max-width: 62ch; font-size: 0.95rem; }
@media (max-width: 720px) { .an-findings ul { grid-template-columns: 1fr; } }
/* the gold band: the X-ray is its own moment, dark ink on gold */
.an-gold { background: var(--gold); color: #17140A; --ink: #17140A; --ink-2: rgba(23, 20, 10, 0.74); --ink-3: rgba(23, 20, 10, 0.6); --rule: rgba(23, 20, 10, 0.22); --rule-2: rgba(23, 20, 10, 0.55); }
.an-gold .an-diag { padding-block: clamp(4rem, 8vw, 7rem); }
.an-gold .an-xbtn { background: #17140A; border-color: #17140A; color: #F2EFE7; }
.an-gold .an-xbtn:hover { background: #000; }
.an-gold .an-xform input { border-color: #17140A; }
.an-gold .an-xform input:focus { border-color: #17140A; box-shadow: 0 0 0 3px rgba(23, 20, 10, 0.25); }
.an-gold .an-xform input::placeholder { color: rgba(23, 20, 10, 0.55); }
.an-gold .findings-host { color: #17140A; }
.an-gold .findings li.pass i { color: #14532D; }
.an-gold .findings li.warn i { color: #5A3B00; }
.an-gold .findings li.fail i { color: #7F1D1D; }
.an-gold .findings-act .act-gold { background: #17140A; border-color: #17140A; color: #F2EFE7; }
.an-gold .findings-act .act-ghost { border-color: #17140A; color: #17140A; }
.an-gold .an-sec-top { border-top-color: rgba(23, 20, 10, 0.4); }
/* the cream stock: darker golds and result colours that hold up on light paper */
.an-paper { --gold-bright: #8A6A21; }
.an-paper .an-k, .an-paper .findings-host { color: #8A6A21; }
.an-paper .findings li.pass i { color: #2F7D45; }
.an-paper .findings li.warn i { color: #8A6A21; }
.an-paper .findings li.fail i { color: #B3263F; }
.an-paper .an-xform input::placeholder { color: var(--ink-3); }

/* ---------- disciplines ---------- */
.an-disc { background: var(--stock); box-shadow: 0 0 0 100vmax var(--stock); clip-path: inset(0 -100vmax); padding-block: clamp(1rem, 3vw, 2rem) 8rem; }
.an-sec-top { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--rule); padding-top: 1rem; margin-bottom: 1.6rem; color: var(--ink-2); gap: 1rem; }
/* The disciplines intro shares the row grid's column tracks, so the intro paragraph starts on the
   same vertical line as the description text in every row below it (rows: 1.4rem padding + a
   4.5rem number column = 5.9rem; the price column plus that padding = 15.4rem). */
.an-sec-head { display: grid; grid-template-columns: 5.9rem minmax(0, 1fr) minmax(0, 22ch) 15.4rem; column-gap: 1.6rem; align-items: start; margin-bottom: clamp(2rem, 4vw, 3.4rem); }
.an-sec-head h2 { grid-column: 1 / 3; font-family: var(--serif); font-weight: 600; font-size: clamp(2.4rem, 7vw, 6.2rem); line-height: 0.98; letter-spacing: -0.035em; }
.an-sec-head p { grid-column: 3 / 5; color: var(--ink-2); max-width: 46ch; font-size: clamp(1rem, 1.25vw, 1.12rem); padding-top: 0.9rem; }
@media (max-width: 860px) { .an-sec-head { grid-template-columns: 1fr; row-gap: 1.2rem; } .an-sec-head h2, .an-sec-head p { grid-column: auto; } }
.an-row { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) minmax(0, 22ch) 14rem; gap: 1.6rem; align-items: center; padding: 2.2rem 1.4rem; border-bottom: 1px solid var(--rule); position: relative; overflow: hidden; }
.an-row::before { content: ""; position: absolute; inset: 0; background: var(--gold); transform: scaleY(0); transform-origin: 50% 100%; transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1); z-index: 0; }
.an-row > * { position: relative; z-index: 1; transition: color 0.35s, transform 0.55s cubic-bezier(0.16, 1, 0.3, 1); }
.an-row .n { color: var(--ink-2); }
.an-row h3 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.9rem, 4.4vw, 4rem); letter-spacing: -0.025em; line-height: 1; }
.an-row p { color: var(--ink-2); font-size: 0.92rem; }
.an-row .pr { display: flex; flex-direction: column; align-items: flex-end; gap: 0.5rem; }
.an-row .pr-old { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; color: var(--ink-2); text-decoration: line-through; }
.an-row .pr-now { display: flex; align-items: baseline; gap: 0.6rem; }
.an-row .pr-now i { font-family: var(--mono); font-style: normal; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); }
.an-row .pr-now b { font-family: var(--serif); font-size: 2.3rem; line-height: 1; font-weight: 600; color: var(--ink); }
.an-row .pr-now small { font-family: var(--mono); font-size: 0.7rem; color: var(--ink-2); }
.an-row .pr-tag { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-bright); border: 1px solid currentColor; padding: 0.28rem 0.6rem; border-radius: 100px; white-space: nowrap; }
@media (hover: hover) {
  .an-row:hover::before { transform: scaleY(1); }
  .an-row:hover, .an-row:hover .n, .an-row:hover p, .an-row:hover .pr-old, .an-row:hover .pr-now i, .an-row:hover .pr-now b, .an-row:hover .pr-now small, .an-row:hover .pr-tag { color: #17140A; }
  .an-row:hover h3 { transform: translateX(1.2rem); }
}
@media (max-width: 860px) {
  .an-row { grid-template-columns: 2.6rem 1fr; gap: 0.6rem 1rem; padding: 1.6rem 0.6rem; }
  .an-row p { grid-column: 2; }
  .an-row .pr { grid-column: 2; align-items: flex-start; }
}
.an-foot-note { margin-top: 1.6rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: var(--ink-2); }
.an-foot-note a { color: var(--gold-bright); border-bottom: 1px solid currentColor; }

/* ---------- work: pinned horizontal scroll ---------- */
.an-work { position: relative; z-index: 2; padding-block: 5rem 0; overflow: hidden; background: var(--bg, #0B0B0E); }
.an-work-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: start; margin-bottom: 2.4rem; }
.an-work-head h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(2.4rem, 7vw, 6.2rem); line-height: 0.98; letter-spacing: -0.035em; }
.an-work-head p { max-width: 46ch; color: var(--ink-2); font-size: clamp(1rem, 1.25vw, 1.12rem); padding-top: 0.9rem; }
@media (max-width: 820px) { .an-work-head { grid-template-columns: 1fr; } }
.an-track { display: flex; gap: 1.6rem; padding-inline: var(--gutter); width: max-content; padding-bottom: 3rem; perspective: 1400px; }
.an-card { width: min(64vw, 760px); flex: none; display: block; transform-style: preserve-3d; will-change: transform; }
.an-card figure { aspect-ratio: 2/1; background: var(--stock-3); border: 1px solid var(--rule); position: relative; }
.an-card img { width: 100%; height: 100%; object-fit: contain; }
.an-card figcaption { display: flex; justify-content: space-between; gap: 1rem; margin-top: 0.9rem; align-items: baseline; }
.an-card h3 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.4rem, 2.4vw, 2.2rem); letter-spacing: -0.02em; }
.an-card .tag { color: var(--ink-2); text-align: right; }
.an-card .bl { color: var(--ink-2); font-size: 0.9rem; max-width: 52ch; margin-top: 0.3rem; }
.an-card .go { display: inline-block; margin-top: 0.7rem; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-bright); border-bottom: 1px solid currentColor; }
.an-wbar { height: 2px; background: var(--rule); margin: 0 var(--gutter) 1.4rem; position: relative; }
.an-wbar i { position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: 0 50%; }
.an-work-foot { padding-bottom: 4rem; display: flex; justify-content: flex-end; }

/* last card of the row: the way to everything else */
.an-card-all { width: min(30vw, 400px); height: calc(min(64vw, 760px) / 2); display: flex; flex-direction: column; justify-content: space-between; padding: 1.6rem; border: 1px solid var(--gold); color: var(--ink); transition: background 0.35s, color 0.35s; }
.an-card-all .an-mono { color: var(--gold-bright); }
.an-card-all b { font-family: var(--serif); font-weight: 600; font-size: clamp(1.8rem, 3.2vw, 3rem); line-height: 1; letter-spacing: -0.03em; }
.an-card-all i { font-style: normal; font-size: 2.4rem; line-height: 1; color: var(--gold-bright); align-self: flex-end; transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1); }
@media (hover: hover) { .an-card-all:hover { background: var(--gold); color: #17140A; } .an-card-all:hover .an-mono, .an-card-all:hover i { color: #17140A; } .an-card-all:hover i { transform: translateX(0.5rem); } }
@media (max-width: 860px) { .an-track { flex-direction: column; width: auto; gap: 2.4rem; } .an-card { width: 100%; } .an-card-all { height: auto; min-height: 9rem; gap: 2rem; } .an-work-foot { justify-content: flex-start; } .an-wbar { display: none; } .an-card figcaption { flex-direction: column; } .an-card .tag { text-align: left; } }

/* ---------- the X ---------- */
.an-x { padding-block: clamp(3rem, 7vw, 6rem) clamp(4rem, 10vw, 9rem); }
.an-x-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: center; padding-top: 1.4rem; }
.an-x-h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(2.4rem, 6.4vw, 6rem); line-height: 0.98; letter-spacing: -0.04em; text-wrap: balance; }
.an-x-h2 em { font-style: italic; font-weight: 500; color: var(--gold-bright); }
.an-x-list { list-style: none; margin-top: clamp(1.6rem, 3vw, 2.6rem); display: grid; gap: 0.7rem; }
.an-x-item { position: relative; display: inline-block; font-family: var(--serif); font-weight: 500; font-size: clamp(1.4rem, 2.6vw, 2.3rem); letter-spacing: -0.02em; line-height: 1.15; color: var(--ink-2); }
.an-x-item::after { content: ""; position: absolute; left: -1.5%; right: -1.5%; top: 55%; height: 3px; background: var(--red); transform: scaleX(var(--s, 1)); transform-origin: 0 50%; }
.an-x-close { margin-top: clamp(1.6rem, 3vw, 2.6rem); color: var(--ink-2); font-size: clamp(1rem, 1.3vw, 1.15rem); max-width: 46ch; }
.an-x-mark { order: -1; display: grid; place-items: center; }
.an-x-mark svg { width: min(100%, 520px); aspect-ratio: 328 / 260; overflow: visible; }
.an-x-mark path { fill: var(--red); }
@media (max-width: 820px) { .an-x-grid { grid-template-columns: 1fr; } .an-x-mark { justify-items: start; } .an-x-mark svg { width: 150px; } }

/* ---------- back to top: sits just above the CTA dock, with a ring that fills as you scroll ---------- */
.an-top { position: fixed; right: clamp(0.9rem, 2vw, 1.5rem); bottom: calc(clamp(0.9rem, 2vw, 1.5rem) + 112px); z-index: 155; width: 52px; height: 52px; border-radius: 50%; background: var(--stock); color: var(--ink); display: grid; place-items: center; opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity 0.4s, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s, color 0.25s; }
.an-top.in { opacity: 1; transform: none; pointer-events: auto; }
.an-top svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.an-top circle { fill: none; stroke-width: 2; }
.an-top-track { stroke: var(--rule-2); }
.an-top-ring { stroke: var(--gold); stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--p, 0)); stroke-linecap: round; }
.an-top i { font-style: normal; font-size: 1.25rem; line-height: 1; transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.an-top:hover { background: var(--gold); color: #17140A; }
.an-top:hover i { transform: translateY(-3px); }
@media (max-width: 680px) { .an-top { bottom: calc(5.4rem + env(safe-area-inset-bottom, 0px) + var(--nx-notice, 0px)); right: 0.9rem; width: 46px; height: 46px; } }

/* ---------- contact ---------- */
.an-contact { padding-block: clamp(4rem, 9vw, 8rem) 2.4rem; }
.an-c-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(1.5rem, 5vw, 5rem); align-items: center; padding-top: 2rem; }
.an-c-h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(3.2rem, 10vw, 9.5rem); line-height: 0.92; letter-spacing: -0.045em; }
.an-c-h2 em { font-style: italic; font-weight: 500; color: var(--gold-bright); }
.an-c-dek { margin-top: 1.8rem; color: var(--ink-2); font-size: clamp(1rem, 1.35vw, 1.2rem); max-width: 46ch; }
/* round call-to-action with text running around it */
.an-spin { position: relative; width: clamp(150px, 16vw, 230px); aspect-ratio: 1; border-radius: 50%; background: var(--gold); color: #17140A; display: grid; place-items: center; flex: none; transition: background 0.3s; }
.an-spin svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: an-rot 22s linear infinite; }
.an-spin text { font-family: var(--mono); font-size: 13.5px; letter-spacing: 0.04em; text-transform: uppercase; fill: currentColor; font-weight: 500; }
.an-spin i { font-style: normal; font-size: clamp(2rem, 3.4vw, 3.2rem); line-height: 1; transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.an-spin:hover { background: var(--gold-bright); }
.an-spin:hover i { transform: translateX(0.35em) rotate(-45deg); }
.an-spin:hover svg { animation-duration: 8s; }
@keyframes an-rot { to { transform: rotate(360deg); } }
/* the address, as big as the headline */
.an-mail { display: block; margin-top: clamp(2.4rem, 5vw, 4.4rem); padding-block: 1.4rem 1.6rem; border-block: 1px solid var(--rule-2); position: relative; overflow: hidden; }
.an-mail .an-mono { display: block; color: var(--ink-2); margin-bottom: 0.7rem; }
.an-mail b { display: block; font-family: var(--serif); font-weight: 600; font-size: clamp(1.7rem, 6.6vw, 6.6rem); line-height: 1; letter-spacing: -0.035em; position: relative; z-index: 1; transition: color 0.35s, transform 0.55s cubic-bezier(0.16, 1, 0.3, 1); word-break: break-word; }
.an-mail i { position: absolute; right: 0; top: 50%; font-style: normal; font-size: clamp(1.6rem, 4vw, 3.4rem); color: var(--gold-bright); transform: translateY(-50%); z-index: 1; transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), color 0.35s; }
.an-mail::before { content: ""; position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
@media (hover: hover) {
  .an-mail:hover::before { transform: scaleX(1); }
  .an-mail:hover b, .an-mail:hover .an-mono, .an-mail:hover i { color: #17140A; }
  .an-mail:hover b { transform: translateX(1rem); }
  .an-mail:hover i { transform: translateY(-50%) translate(0.4rem, -0.4rem); }
}
.an-mail > .an-mono, .an-mail b, .an-mail i { pointer-events: none; }
.an-mail .an-mono { position: relative; z-index: 1; transition: color 0.35s; }
.an-world { margin-top: clamp(2rem, 4vw, 3.4rem); }
.an-world-title { font-family: var(--serif); font-weight: 500; font-size: clamp(1.4rem, 2.6vw, 2.2rem); letter-spacing: -0.02em; line-height: 1.15; max-width: 26ch; }
.an-world-title em { font-style: italic; color: var(--gold-bright); }
.an-world-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 1.4rem; border-top: 1px solid var(--rule-2); }
.an-city { display: grid; gap: 0.15rem; padding: 1rem 1rem 0.2rem 0; border-right: 1px solid var(--rule); }
.an-city + .an-city { padding-left: 1.2rem; }
.an-city:last-child { border-right: 0; }
.an-cstate { color: var(--ink-2); }
.an-city.is-studio .an-cstate { color: var(--gold-bright); }
.an-city[data-state="night"] .an-ctime, .an-city[data-state="closed"] .an-ctime { color: var(--ink-2); }
.an-ctime { font-family: var(--serif); font-weight: 600; font-size: clamp(1.5rem, 3vw, 2.6rem); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.an-cname { color: var(--ink-2); font-size: 0.9rem; }
@media (max-width: 820px) { .an-world-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .an-city { border-right: 0; border-bottom: 1px solid var(--rule); padding-left: 0 !important; } }
.an-c-row { display: flex; justify-content: space-between; align-items: center; gap: 1.6rem; flex-wrap: wrap; margin-top: clamp(1.6rem, 3vw, 2.6rem); }
.an-status { max-width: 46ch; }
.an-status .status-kicker { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.35rem; }
.an-status .status-line { color: var(--ink-2); font-size: 0.95rem; line-height: 1.5; }
.an-c-folio { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.6rem; padding-top: 0.9rem; border-top: 1px solid var(--rule); color: var(--ink-2); }
@media (max-width: 820px) {
  .an-c-grid { grid-template-columns: 1fr; }
  .an-spin { order: -1; width: 150px; }
  .an-mail i { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .an-m-row, .an-scroll-hint i, .an-spin svg { animation: none; }
}

/* Fraunces at display sizes packs its word spaces too tight with the negative tracking; give them a little back. */
.an-h1, .an-sec-head h2, .an-diag-grid h2, .an-x-h2, .an-work-head h2, .an-c-h2, .an-mani-text { word-spacing: 0.07em; }

/* Cross-page transitions: a project card's image grows into the project page's cover. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-group(*) { animation-duration: 0.55s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
}

/* availability line in the hero foot (only when set in the dashboard) */
.an-avail { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--ink); }
.an-avail-dot { width: 7px; height: 7px; border-radius: 50%; background: #5FD08A; box-shadow: 0 0 0 0 rgba(95, 208, 138, 0.6); animation: an-avail 2.4s ease-out infinite; }
.an-avail-dot.full { background: var(--red); animation: none; }
@keyframes an-avail { 0% { box-shadow: 0 0 0 0 rgba(95, 208, 138, 0.55); } 100% { box-shadow: 0 0 0 9px rgba(95, 208, 138, 0); } }

/* GSAP ScrollTrigger measures the page by setting the scroll position directly; CSS smooth scrolling turns those
   jumps into animations and throws the pinned sections off. Anchor links are smoothed in home-animated.js instead. */
html { scroll-behavior: auto !important; }

/* the newest free tool leads the row */
#free .ad-new .ad-flag { color: var(--red); }
#free .ad-new h3::after { content: " ✕"; color: var(--red); font-style: normal; }
