/* ★ New Night studio (Tika's pick, 17 Nov 2026).
   Night studio's warm dark room and gold light, with Field manual details: a drafting grid that shows only in patches,
   mono labels, outlined numbers, blueprint drawings. Sections step between deep and slightly brighter dark.
   Rhythm: deep hero · lifted try · deep library · lifted steps · deep videos · lifted emails · deep about · lifted community · deep FAQ · lifted close. */

:root {
  --gold: #E2C25A; --gold-2: #F0D57A; --gold-ink: #15120A;
  --ns-deep: #0B0A08; --ns-lift: #1A1713;
  --bg: var(--ns-deep); --surface: #15130F; --surface-2: #1F1C17; --text: #F4F0E6; --text-2: #BFB8A8; --text-3: #918A7C;
  --line: rgba(244,240,230,.09); --line-2: rgba(244,240,230,.19);
  --accent: var(--gold); --accent-2: var(--gold-2); --accent-ink: var(--gold-ink);
  --radius: 18px; --radius-sm: 12px; --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 30px 60px -30px rgba(0,0,0,.85);
  --grid: rgba(244,240,230,.075);
}
body { background: var(--ns-deep); }
.sec, .hero, .site-foot { background: var(--bg); color: var(--text); }
.try, .steps, .letter, .community, .close { --bg: var(--ns-lift); --surface: #221F19; --surface-2: #2A261F; --line: rgba(244,240,230,.11); --line-2: rgba(244,240,230,.22); box-shadow: inset 0 1px 0 rgba(244,240,230,.06); }

/* ---------- voice from the manual ---------- */
.kicker { font-family: var(--mono); font-weight: 500; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); display: flex; align-items: center; gap: 12px; }
.kicker::before { content: ''; width: 26px; height: 1.5px; background: currentColor; }

/* ---------- nav ---------- */
.site-nav { background: rgba(11,10,8,.78); border-bottom-color: var(--line); }
.logo-white { display: block; } .logo-ink { display: none; }

/* ---------- the primary button ---------- */
.btn-primary { position: relative; isolation: isolate; overflow: hidden; gap: 14px; padding: 0 8px 0 24px; border-radius: 999px;
  background: var(--gold); color: var(--gold-ink); font-weight: 600;
  transform: translate(var(--mx, 0), var(--my, 0)); box-shadow: 0 10px 28px -14px rgba(226,194,90,.75), inset 0 1px 0 rgba(255,255,255,.35);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .25s; }
.btn-primary::before { /* light under the cursor */
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s;
  background: radial-gradient(120px circle at var(--x, 50%) var(--y, 50%), rgba(255,250,230,.55), transparent 70%); }
.btn-primary::after { /* sheen that sweeps across on hover */
  content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; z-index: -1; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); opacity: 0; }
.btn-primary:hover { background: var(--gold-2); box-shadow: 0 16px 36px -14px rgba(226,194,90,.9), inset 0 1px 0 rgba(255,255,255,.4); }
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover::after { animation: sheen .9s var(--ease); }
@keyframes sheen { 0% { left: -60%; opacity: 1; } 100% { left: 130%; opacity: 0; } }
.btn-primary:active { transform: translate(var(--mx, 0), var(--my, 0)) scale(.97); }
.btn-ico { width: 36px; height: 36px; border-radius: 50%; background: var(--gold-ink); color: var(--gold); overflow: hidden; position: relative; transition: transform .35s var(--ease); }
.btn-sm .btn-ico { width: 28px; height: 28px; }
.btn-ico svg { transition: transform .45s var(--ease); }
.btn-primary:hover .btn-ico { transform: scale(1.06); }
.btn-primary:hover .btn-ico svg { animation: arrow .6s var(--ease); }
@keyframes arrow { 0% { transform: none; } 45% { transform: translateX(160%); } 46% { transform: translateX(-160%); } 100% { transform: none; } }
.btn-primary.is-loading .btn-ico svg { opacity: 0; }
.btn-primary.is-loading .btn-ico::after { content: ''; position: absolute; inset: 9px; border-radius: 50%; border: 2px solid rgba(226,194,90,.3); border-top-color: var(--gold); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-primary.is-done .btn-ico svg { opacity: 0; }
.btn-primary.is-done .btn-ico::after { content: ''; position: absolute; left: 13px; top: 10px; width: 7px; height: 13px; border: solid var(--gold); border-width: 0 2.4px 2.4px 0; transform: rotate(45deg); }
.btn-primary:not(:has(.btn-ico)) { padding: 0 24px; }
.btn-ghost { border-radius: 999px; }
.signup { position: relative; isolation: isolate; grid-template-columns: 1fr auto; padding: 6px; max-width: 560px; }
/* the pill outline sits behind the input row only, so a message or bot check below it never stretches the pill */
.signup::before { content: ''; position: absolute; z-index: -1; left: 0; right: 0; top: 0; height: 62px; border-radius: 999px; pointer-events: none;
  background: rgba(244,240,230,.05); border: 1px solid var(--line-2); transition: border-color .3s, box-shadow .3s; }
.signup:focus-within::before { border-color: rgba(226,194,90,.6); box-shadow: 0 0 0 4px rgba(226,194,90,.12); }
.signup input { height: 50px; border: 0; background: transparent; border-radius: 999px; padding-left: 18px; }
.signup input:focus-visible { box-shadow: none; }
.signup .btn-primary { height: 50px; min-height: 50px; }
.signup .form-msg { padding: 10px 18px 0; }
@media (max-width: 480px) { .signup { grid-template-columns: 1fr; gap: 6px; } .signup::before { height: 118px; border-radius: 28px; } .signup .btn-primary { width: 100%; justify-content: space-between; } }
.signup.is-error::before { border-color: #D64545; }
@media (max-width: 560px) { .signup .btn-primary { justify-content: space-between; } }

/* ---------- hero: gold light + drafting grid in patches ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; padding-top: clamp(56px, 8vw, 120px); }
.hero::before { content: ''; position: absolute; right: -12%; top: -35%; width: 78vw; height: 135%; pointer-events: none; z-index: -1;
  background: radial-gradient(closest-side, rgba(226,194,90,.18), rgba(226,194,90,.06) 45%, transparent 75%); transform: rotate(-12deg); }
.hero::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 44px 44px; background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(38% 46% at 8% 18%, #000, transparent), radial-gradient(34% 44% at 82% 74%, #000 10%, transparent), radial-gradient(22% 30% at 52% 104%, #000, transparent);
          mask-image: radial-gradient(38% 46% at 8% 18%, #000, transparent), radial-gradient(34% 44% at 82% 74%, #000 10%, transparent), radial-gradient(22% 30% at 52% 104%, #000, transparent); }
.hero-title span:last-child { color: var(--gold); }
.hero-sub { font-family: var(--mono); font-size: clamp(.92rem, 1.3vw, 1.04rem); font-weight: 400; color: var(--text-2); letter-spacing: 0; display: flex; align-items: center; gap: 12px; }
.hero-sub::before { content: ''; height: 1.5px; flex: 0 0 34px; background: var(--gold); }
.assurances li::before { background-color: rgba(226,194,90,.9); }
.pack-card { display: none; }

/* ---------- skills deck ---------- */
.deck { display: block; position: relative; max-width: 470px; margin-left: auto; width: 100%; }
.deck-head { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; font-size: .95rem; }
.deck-free { height: 26px; padding: 0 11px; display: inline-flex; align-items: center; border-radius: 99px; background: var(--gold); color: var(--gold-ink); font-weight: 700; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; }
.deck-name { font-family: var(--display); font-weight: 700; font-size: 1.15rem; }
.deck-count { margin-left: auto; font-family: var(--mono); font-size: .8rem; color: var(--text-3); }
/* Flat stacking: each card is its own layer and z-index decides the order, so a tilted front card can never
   dip behind the cards stacked behind it (that happened with preserve-3d when the cursor was near a corner). */
.deck-stage { position: relative; height: 410px; cursor: pointer; transform-style: flat; isolation: isolate; }
.deck-card { position: absolute; inset: 0; padding: 26px 26px 22px; border-radius: 20px; display: flex; flex-direction: column;
  background: linear-gradient(170deg, #24201A 0%, #15130F 60%); border: 1px solid rgba(226,194,90,.24);
  box-shadow: 0 1px 0 rgba(255,255,255,.05) inset, 0 40px 60px -30px rgba(0,0,0,.9);
  transform-origin: 50% 100%; transition: transform .8s var(--ease), opacity .6s var(--ease), filter .6s; will-change: transform; }
.deck-card[data-pos="0"] { z-index: 4; transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.deck-card[data-pos="1"] { z-index: 3; transform: translate(16px, -18px) rotate(3.5deg) scale(.955); opacity: .75; filter: brightness(.8); }
.deck-card[data-pos="2"] { z-index: 2; transform: translate(30px, -34px) rotate(7deg) scale(.91); opacity: .5; filter: brightness(.65); }
.deck-card[data-pos="3"] { z-index: 1; transform: translate(42px, -48px) rotate(10.5deg) scale(.87); opacity: .3; filter: brightness(.5); }
.deck-card:not([data-pos="0"]) > * { opacity: 0; transition: opacity .3s; }
.deck-card > * { transition: opacity .5s .15s; }
.deck-card[data-pos="0"]::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(260px circle at var(--x, 70%) var(--y, 20%), rgba(240,213,122,.13), transparent 70%); }
.dc-top { display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: .74rem; letter-spacing: .04em; }
.dc-kind { color: var(--gold); text-transform: uppercase; }
.dc-time { color: var(--text-3); }
.dc-art { width: 100%; height: 132px; margin: 14px 0 8px; color: rgba(244,240,230,.5);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 22px 22px; border-radius: 12px;
  -webkit-mask-image: radial-gradient(70% 90% at 50% 50%, #000 55%, transparent); mask-image: radial-gradient(70% 90% at 50% 50%, #000 55%, transparent); }
.dc-art .hl { stroke: var(--gold); }
.deck-card h3 { font-family: var(--display); font-weight: 700; font-size: 1.75rem; letter-spacing: -0.02em; line-height: 1.05; }
.deck-card p { color: var(--text-2); font-size: .97rem; margin-top: 8px; }
.dc-out { margin-top: auto; display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding-top: 14px; border-top: 1px dashed rgba(226,194,90,.35); }
.dc-out span { font-family: var(--mono); font-size: .74rem; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; }
.dc-out b { font-family: var(--display); font-weight: 700; font-size: 1.2rem; color: var(--gold); text-align: right; }
.deck-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 22px; }
.deck-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(244,240,230,.03); color: var(--text); display: grid; place-items: center; cursor: pointer; transition: all .25s; }
.deck-btn svg { width: 18px; height: 18px; }
.deck-btn:hover { border-color: var(--gold); color: var(--gold); }
.deck-dots { display: flex; gap: 6px; }
/* Each dot is a fixed 26px slot; the visible bar grows with transform only (no layout change). */
.deck-dot { position: relative; width: 26px; height: 14px; border: 0; background: none; cursor: pointer; }
.deck-dot::before { content: ''; position: absolute; left: 0; right: 0; top: 3px; height: 8px; border-radius: 99px; background: rgba(244,240,230,.25);
  transform: scaleX(.31); transition: transform .45s var(--ease), background .3s; }
.deck-dot:hover::before { background: rgba(244,240,230,.5); }
.deck-dot[aria-current="true"]::before { transform: none; background: var(--gold); }
.deck-foot { text-align: center; font-size: .86rem; color: var(--text-3); margin-top: 14px; }
@media (max-width: 980px) { .deck { margin: 30px auto 0; } }
@media (max-width: 520px) { .deck-stage { height: 400px; } .deck-card[data-pos="1"] { transform: translate(8px, -12px) rotate(2.5deg) scale(.96); } .deck-card[data-pos="2"] { transform: translate(14px, -22px) rotate(5deg) scale(.92); } .deck-card[data-pos="3"] { transform: translate(18px, -30px) rotate(7deg) scale(.88); } }

/* ---------- try a skill (lifted) ---------- */
.demo { background: #100F0C; border-color: rgba(244,240,230,.12); }
.demo-tabs { border-bottom-color: rgba(244,240,230,.08); }
.demo-tabs [role=tab] { border-radius: 999px; }
.demo-tabs [role=tab][aria-selected=true] { background: var(--gold); color: var(--gold-ink); }
.demo-input { background: #1A1814; border-style: dashed; border-color: rgba(244,240,230,.18); }
.demo-out { background-image: linear-gradient(var(--grid) 1px, transparent 1px); background-size: 100% 28px; }
.demo-output { color: #EFE8D6; }
.demo-cta a { color: var(--gold); }

/* ---------- library: segmented pills with a gliding marker ---------- */
.chips { position: relative; flex-wrap: nowrap; gap: 2px; padding: 5px; border-radius: 999px; background: rgba(244,240,230,.04); border: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.chips::-webkit-scrollbar { display: none; }
/* The marker is a full-size gold layer revealed with clip-path, so moving it never changes layout. */
.chip-glider { display: block; position: absolute; left: 0; top: 0; z-index: 0; background: var(--gold); pointer-events: none;
  transition: clip-path .5s var(--ease); }
.chip { position: relative; z-index: 1; flex: none; height: 40px; border: 0; background: transparent; border-radius: 999px; gap: 8px; color: var(--text-2); padding: 0 16px; }
.chip svg { width: 16px; height: 16px; opacity: .8; }
.chip span { font-family: var(--mono); font-size: .7rem; min-width: 20px; height: 20px; display: inline-grid; place-items: center; border-radius: 99px; background: rgba(244,240,230,.08); color: var(--text-3); }
.chip:hover { color: var(--text); background: rgba(244,240,230,.04); }
.chip[aria-pressed=true] { color: var(--gold-ink); background: transparent; border: 0; }
.chip[aria-pressed=true] span { background: rgba(21,18,10,.14); color: var(--gold-ink); }
.lib-search input { border-radius: 999px; background-color: rgba(244,240,230,.04); border-color: var(--line); }

/* ---------- library: illustrated cards ---------- */
.lib-grid { gap: 20px; }
.res { padding: 0 0 24px; gap: 12px; overflow: hidden; border-radius: 20px; background: #13110E; border: 1px solid var(--line); isolation: isolate; }
.res > :not(.res-art) { margin-inline: 24px; }
.res::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(300px circle at var(--x, 50%) var(--y, 0%), rgba(226,194,90,.11), transparent 70%); }
.res:hover::before { opacity: 1; }
.res:not(.is-coming):hover { transform: translateY(-4px); border-color: rgba(226,194,90,.4); box-shadow: 0 30px 50px -30px rgba(0,0,0,.9); }
.res-art { display: grid; place-items: center; position: relative; height: 158px; margin-bottom: 8px; color: rgba(244,240,230,.55); border-bottom: 1px solid var(--line);
  background: radial-gradient(60% 90% at 50% 100%, rgba(226,194,90,.10), transparent 70%), linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: auto, 20px 20px, 20px 20px; }
.res-art svg { height: 120px; width: auto; overflow: visible; }
.res-art .a-hl { stroke: var(--gold); }
.res-art .a-fill { fill: rgba(226,194,90,.07); }
.res-art g { transition: transform .7s var(--ease); transform-box: fill-box; }
.a-c1, .a-c2, .a-c3 { transform-origin: 50% 100%; }
.res:hover .a-c3 { transform: translate(-18px, 4px) rotate(-9deg); }
.res:hover .a-c2 { transform: translate(-7px, 2px) rotate(-4deg); }
.res:hover .a-c1 { transform: translate(12px, -5px) rotate(5deg); }
.a-needle { transform-box: view-box !important; transform-origin: 120px 100px; transform: rotate(-58deg); transition: transform 1.2s cubic-bezier(.16, 1, .3, 1) !important; }
.res:hover .a-needle { transform: rotate(40deg); }
.res:hover .a-plug { transform: translateX(32px); }
.a-page { transform-origin: 0% 50%; }
.res:hover .a-page { transform: skewY(-7deg) translateY(-3px); }
.res:hover .a-dots circle { animation: typing 1s infinite; }
.res:hover .a-dots circle:nth-child(2) { animation-delay: .15s; }
.res:hover .a-dots circle:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.res-icon { display: none; }
.res-type { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; color: var(--gold); }
.res-new { background: var(--gold); color: var(--gold-ink); }
.res-meta li { background: rgba(244,240,230,.06); border-radius: 99px; padding: 4px 10px; }
.res .res-cta.btn-primary { padding: 0 22px; }
/* coming soon: drawn as a blueprint */
.res.is-coming { background: transparent; border: 1px dashed rgba(244,240,230,.22); }
.res.is-coming .res-art { color: rgba(244,240,230,.4); background-size: auto, 14px 14px, 14px 14px; }
.res.is-coming .res-art svg { stroke-dasharray: 3 5; }
.res.is-coming .res-art .a-hl { stroke: rgba(226,194,90,.7); }
.res.is-coming .res-art .a-fill { fill: none; }
.res-blueprint { position: absolute; left: 14px; bottom: 10px; font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.res.is-coming .res-type { color: var(--text-3); }
.res-soon { border-style: dashed; }

/* ---------- steps (lifted): outlined numbers from the manual ---------- */
.step { border-top: 1px solid var(--line-2); }
.step-n { width: auto; height: auto; background: none; border-radius: 0; color: transparent; -webkit-text-stroke: 1.4px var(--gold); font-size: clamp(3.4rem, 5.5vw, 4.8rem); line-height: 1; margin-bottom: 12px; transition: color .4s; }
.step:hover .step-n { color: rgba(226,194,90,.18); }

/* ---------- videos (deep) ---------- */
.vid-list a:hover { background: rgba(244,240,230,.05); }
.vid-play { box-shadow: 0 40px 70px -40px rgba(0,0,0,.95); }
.play-icon { box-shadow: 0 10px 30px -8px rgba(226,194,90,.6); }
.short img { border: 1px solid var(--line); }

/* ---------- emails (lifted) ---------- */
.letter-list h3::before { content: '→ '; color: var(--gold); }

/* ---------- about (deep) ---------- */
.about-photo { position: relative; }
.about-photo img { filter: grayscale(.3) contrast(1.05); border: 1px solid var(--line-2); }
.about-photo::after { content: ''; position: absolute; inset: -12px; pointer-events: none;
  background: linear-gradient(var(--gold), var(--gold)) 0 0/18px 1.5px, linear-gradient(var(--gold), var(--gold)) 0 0/1.5px 18px,
              linear-gradient(var(--gold), var(--gold)) 100% calc(100% - 30px)/18px 1.5px, linear-gradient(var(--gold), var(--gold)) 100% calc(100% - 30px)/1.5px 18px; background-repeat: no-repeat; }
.about-photo figcaption { font-family: var(--mono); font-size: .76rem; color: var(--gold); }
.about-copy .about-aside a { color: var(--gold); }

/* ---------- community (lifted) ---------- */
.com-box { padding: clamp(32px, 5vw, 64px); border-radius: 26px; border: 1px solid rgba(226,194,90,.28); position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 140% at 100% 0%, rgba(226,194,90,.16), transparent 55%), #14120F; }
.com-box::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(50% 80% at 100% 0%, #000, transparent); mask-image: radial-gradient(50% 80% at 100% 0%, #000, transparent); }

/* ---------- FAQ (deep) ---------- */
.faq-list summary { transition: color .2s; }
.faq-list summary:hover { color: var(--gold); }
.faq-list summary::after { color: var(--gold); }

/* ---------- close (lifted, the light returns) ---------- */
.close { position: relative; overflow: hidden; text-align: center; isolation: isolate; }
.close::before { content: ''; position: absolute; left: 50%; top: -60%; width: 90vw; height: 160%; transform: translateX(-50%); pointer-events: none; z-index: -1;
  background: radial-gradient(closest-side, rgba(226,194,90,.17), transparent 70%); }
.close-box { justify-items: center; }
.close-box .signup { margin: 0 auto; }
.close .sec-title { font-size: clamp(2.4rem, 5.5vw, 4.6rem); }
.site-foot { border-top-color: var(--line); }
.signup-dialog { background: #16140F; border-color: rgba(226,194,90,.3); }

/* film grain over everything, very light */
body::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 90; opacity: .04; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@media (prefers-reduced-motion: reduce) { .btn-primary { transform: none; } .deck-card[data-pos="0"] { transform: none; } }
@media (max-width: 700px) { .chips { -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); padding-right: 40px; } }

/* =====================================================================================================
   HEADER AND FOOTER
   Every label size, weight and spacing lives in these tokens: change a number here, nothing else.
   JetBrains Mono, regular, uppercase, .1em (as lunarc.ai); menu 12px, footer 11.5px. Picked by Tika 20 Nov 2026.
   ===================================================================================================== */
:root {
  --label-font: var(--mono);
  --label-size-nav: 12px;      /* menu links, header button, back link */
  --label-size-foot: 11.5px;   /* the whole footer */
  --label-weight: 400;         /* footer */
  --label-weight-nav: 500;     /* menu links and back link (medium) */
  --label-button-weight: 500;  /* a touch firmer on the gold button */
  --label-track: .1em;
  --label-size-menu: 13px;     /* phone menu rows */
  --nav-item-h: 36px;          /* links and button share one height, so one centre line */
  --logo-h: 22px;              /* TR icon height; the lettering is sized from it */
}
.nav-links ul a, .site-nav .btn-sm, .nav-back, .site-foot nav a, .foot-brand > span:last-child, .site-foot .legal {
  font-family: var(--label-font); font-weight: var(--label-weight);
  letter-spacing: var(--label-track); text-transform: uppercase; font-stretch: normal; }
.nav-links ul a, .site-nav .btn-sm, .nav-back { font-size: var(--label-size-nav); }
.nav-links ul a, .nav-back { font-weight: var(--label-weight-nav); }
.site-foot nav a, .foot-brand > span:last-child, .site-foot .legal, .foot-h { font-size: var(--label-size-foot); }

/* ---------- header ---------- */
.site-nav { transition: background .35s, border-color .35s, box-shadow .35s; }
.site-nav.is-scrolled { background: rgba(11,10,8,.92); box-shadow: 0 12px 30px -20px rgba(0,0,0,.9); }
.nav-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 1.5px; background: linear-gradient(90deg, var(--gold), var(--gold-2)); transform-origin: 0 50%; transform: scaleX(var(--progress, 0)); opacity: .85; }

/* logo: TR icon + RIJALT lettering (option 2, picked 20 Nov 2026). The lettering image's letters fill rows 38-89 of
   its 103px height, so at 1.4636 x the icon height they reach 3/4 of the icon and sit on its base line; the
   negative margins keep the row as tall as the icon. The lettering folds away on scroll and returns on hover. */
.brand { gap: 0; position: relative; }
.brand img, .foot-brand .foot-mark { height: var(--logo-h); width: auto; }
.site-nav .logo-word, .foot-brand .foot-word { height: calc(var(--logo-h) * 1.4636); width: auto; margin: -6.2px 0 -4px 7px; }
.logo-word { transition: opacity .45s var(--ease), transform .45s var(--ease), clip-path .45s var(--ease); clip-path: inset(0 0 0 0); }
.site-nav.is-scrolled .logo-word { opacity: 0; transform: translateX(-10px); clip-path: inset(0 100% 0 0); }
.site-nav.is-scrolled .brand:hover .logo-word, .site-nav.is-scrolled .brand:focus-visible .logo-word { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }
.logo-mark { transition: transform .45s var(--ease); }
.brand:hover .logo-mark { transform: rotate(-4deg) scale(1.06); }

/* links: plain text, colour change on hover; the section in view is brighter */
.nav-links { position: relative; }
.nav-links ul { gap: 4px; }
.nav-links ul a { display: inline-flex; align-items: center; height: var(--nav-item-h); padding: 0 12px; color: var(--text-3); transition: color .2s; }
.nav-links ul a:hover, .nav-links ul a:focus-visible, .nav-links ul a[aria-current="true"]:hover { color: var(--gold-2); }
.nav-links ul a[aria-current="true"] { color: var(--text); }

/* the gold button: same height as the links */
.nav-actions { display: flex; align-items: center; gap: 20px; }
.site-nav .btn-sm { min-height: var(--nav-item-h); height: var(--nav-item-h); gap: 10px; padding: 0 4px 0 16px; font-weight: var(--label-button-weight); }
.site-nav .btn-sm .btn-ico { width: 28px; height: 28px; }
.site-nav .btn-sm .btn-ico svg { width: 13px; height: 13px; }
.cta-short { display: none; }

/* phones and small tablets: the same links open from a menu button */
.nav-toggle { display: none; }
@media (max-width: 900px) {
  .nav-actions { gap: 10px; }
  .nav-toggle { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--text); cursor: pointer; transition: border-color .2s; }
  .nav-toggle:hover { border-color: var(--gold); }
  .nav-toggle span { grid-area: 1 / 1; width: 14px; height: 1.5px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease); }
  .nav-toggle span:first-child { transform: translateY(-3px); }
  .nav-toggle span:last-child { transform: translateY(3px); }
  .menu-open .nav-toggle span:first-child { transform: rotate(45deg); }
  .menu-open .nav-toggle span:last-child { transform: rotate(-45deg); }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 6px var(--gutter) 18px; background: var(--ns-deep); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(0,0,0,.9); }
  .menu-open .nav-links { display: block; animation: menu-in .3s var(--ease); }
  .site-nav .nav-links ul { display: flex; flex-direction: column; gap: 0; }
  .nav-links ul a { width: 100%; height: 54px; padding: 0; font-size: var(--label-size-menu); border-bottom: 1px solid var(--line); }
  .nav-links li:last-child a { border-bottom: 0; }
}
@keyframes menu-in { from { transform: translateY(-6px); } to { transform: none; } }
/* narrow phones: short button label, no arrow disc, so it fits beside the logo */
@media (max-width: 420px) {
  .cta-long { display: none; } .cta-short { display: inline; }
  .site-nav .btn-sm { padding: 0 14px; gap: 0; letter-spacing: .04em; }
  .site-nav .btn-sm .btn-ico { display: none; }
  .nav-actions { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { .logo-word { transition: none; } .menu-open .nav-links { animation: none; } }

/* ---------- footer: logo and name on the left, two stacked link columns on the right, a hairline, then the legal line
   with Privacy and LUNARC AI ---------- */
.site-foot { padding: 64px 0 40px; }
.foot-row { grid-template-columns: 1fr auto; align-items: start; gap: 40px 48px; }
.foot-brand { flex-direction: column; align-items: flex-start; gap: 14px; }
.foot-logo { display: inline-flex; align-items: center; }
.foot-brand .foot-logo, .foot-brand > span:last-child { padding-left: 0; border-left: 0; }
.foot-brand > span:last-child { white-space: nowrap; color: var(--text-3); }
.foot-cols { display: flex; gap: 72px; }
.site-foot .foot-col { display: flex; flex-direction: column; flex-wrap: nowrap; justify-content: flex-start; align-items: flex-start; gap: 12px; }
.foot-h { font-family: var(--label-font); font-weight: 500; letter-spacing: var(--label-track); text-transform: uppercase; color: var(--text); margin: 0 0 4px; }
.site-foot nav a, .site-foot .legal { color: var(--text-3); }
.site-foot nav a { transition: color .2s; }
.site-foot nav a:hover, .site-foot nav a:focus-visible { color: var(--gold-2); }
.foot-base { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 28px;
  margin-top: 16px; padding-top: 22px; border-top: 1px solid var(--line); }
.foot-base nav { flex-direction: row; justify-content: flex-end; gap: 8px 22px; }
.foot-base .legal { grid-column: auto; margin: 0; }
@media (max-width: 700px) {
  .site-foot { padding: 48px 0 32px; }
  .foot-row { grid-template-columns: 1fr; }
  .foot-cols { gap: 56px; }
  .foot-base { justify-content: flex-start; } .foot-base nav { justify-content: flex-start; }
}

/* ---------- phones and touch screens: every control at least 44px to tap ---------- */
@media (max-width: 900px), (pointer: coarse) {
  .nav-toggle { width: 44px; height: 44px; }
  .site-nav .btn-sm { height: 44px; min-height: 44px; }
  .chip { height: 44px; }
  .dlg-close { width: 44px; height: 44px; }
  .site-foot .foot-col { gap: 0; }
  .foot-h { margin-bottom: 6px; }
  .foot-base nav { gap: 0 22px; }
  .site-foot nav a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* About photo: Tika's crop, arm straightened, cut below the chest pockets at 9:10 (Tika's pick, 17 Nov). */
.about-photo img { aspect-ratio: 9 / 10; filter: none; object-fit: cover; }
.about-grid { grid-template-columns: 420px 1fr; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } .about-photo { max-width: 360px; } }

/* ---------- per-freebie card drawings: hover movements ---------- */
.a-tilt { transform-origin: 50% 100%; }
.res:hover .a-tilt { transform: rotate(-4deg) translate(-4px, 0); }
.res:hover .a-rise { transform: translate(4px, -12px); }
.a-shackle { transform: translateY(-5px); }
.res:hover .a-shackle { transform: none; }
.a-draw { stroke-dasharray: 140; stroke-dashoffset: 0; }
.res:hover .a-draw { animation: draw-in .9s var(--ease) both; }
@keyframes draw-in { from { stroke-dashoffset: 140; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .res:hover .a-draw { animation: none; } }

/* small pages on narrow phones: the back link shortens ("Back", "Resources") so it stays on one line */
.nav-back { white-space: nowrap; }
@media (max-width: 420px) { .nb-long { display: none; } }
