@import "tailwindcss";
@import "tw-animate-css";

/* ------------------------------------------------------------------
   shadcn tokens + the two tokens hero-burin-hatch needs (ns-muted, ns-accent)
   ------------------------------------------------------------------ */
:root {
  --background: #ffffff;
  --foreground: #0a0a0a;
  --border: #e5e5e5;
  --ns-muted: #4d4d4d;
  --ns-accent: #006bff;
}
.dark {
  --background: #0a0a0a;
  --foreground: #fafafa;
  --border: #262626;
  --ns-muted: #8f8f8f;
}
@theme inline {
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --color-border: var(--border);
  --color-ns-muted: var(--ns-muted);
  --color-ns-accent: var(--ns-accent);
}

/* ------------------------------------------------------------------
   ThinkAxis site. Each design sets its palette and fonts on its wrapper
   (.d-ink, .d-plate, .d-orbit, .d-statement); the sections below share them.
   Brand: ink #1E1E1E, red #C72A09, paper #F4F1EC.
   ------------------------------------------------------------------ */
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; overflow-x: clip; }

.site {
  --background: var(--bg);
  --foreground: var(--ink);
  --border: var(--line);
  --ns-muted: var(--mute);
  --ns-accent: var(--red);
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font: 16.5px/1.6 var(--fb);
}
.site *, .site *::before, .site *::after { min-width: 0; }
.site h1, .site h2, .site h3 { font-family: var(--fd); margin: 0; text-wrap: balance; }
.site h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.08; font-weight: var(--wd); }
.site h3 { font-size: 20px; line-height: 1.25; font-weight: 600; }
.site a { color: inherit; }
.site :focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.site .wrap { max-width: 1200px; margin: 0 auto; }
.site .band { padding: clamp(56px, 8vw, 112px) max(5vw, 20px); }
.site .alt { background: var(--alt); }

/* nav */
.site .top { position: absolute; inset: 0 0 auto; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px max(5vw, 20px); }
.site .top-flow { position: relative; border-bottom: 1px solid var(--line); }
.site .brand { display: inline-flex; align-items: center; gap: 10px; font: 600 19px var(--fd); text-decoration: none; letter-spacing: -0.01em; }
.site .mk { width: 34px; height: 28px; display: inline-block; }
.site .links { display: flex; gap: 6px 22px; align-items: center; flex-wrap: wrap; }
.site .links a { text-decoration: none; font-size: 15px; color: var(--mute); }
.site .links a:hover { color: var(--ink); }
.site .links .cta-s { color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; }

/* buttons */
.site .btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.site .btn { display: inline-flex; align-items: center; min-height: 46px; padding: 0 22px; border-radius: var(--r); text-decoration: none; font-weight: 500; font-size: 15px; transition: background 0.2s, border-color 0.2s, color 0.2s; }
.site .btn.p { background: var(--red); color: #fff; }
.site .btn.p:hover { background: var(--red2); }
.site .btn.s { border: 1px solid var(--line); color: var(--ink); }
.site .btn.s:hover { border-color: var(--ink); }

/* shared sections */
.site .head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 56px; align-items: end; margin-bottom: 48px; }
.site .lede { color: var(--mute); margin: 0; max-width: 56ch; font-size: 17px; }
.site .svcs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.site .svc { padding: 28px 28px 8px 0; }
.site .svc + .svc { padding-left: 28px; border-left: 1px solid var(--line); }
.site .svc p { color: var(--mute); margin: 10px 0 18px; }
.site .svc ul { list-style: none; padding: 0; margin: 0; }
.site .svc li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 15.5px; }
.site .svc li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--red); margin-right: 12px; vertical-align: middle; }
.site .steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; counter-reset: s; }
.site .steps li { counter-increment: s; border-top: 2px solid var(--ink); padding-top: 18px; }
.site .steps li::before { content: counter(s); display: block; font: 600 13px var(--fm); color: var(--red); margin-bottom: 10px; }
.site .steps p { color: var(--mute); margin: 8px 0 0; font-size: 15.5px; }
.site .about { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px 72px; align-items: start; }
.site .about .lede { margin-top: 18px; }
.site .facts { margin: 0; display: grid; border-top: 1px solid var(--ink); }
.site .facts div { display: grid; grid-template-columns: 9em 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.site .facts dt { color: var(--mute); font-size: 14.5px; }
.site .facts dd { margin: 0; font-weight: 500; }
.site .contact { background: var(--cbg); color: var(--cink); }
.site .contact .lede, .site .contact .note { color: var(--cmute); }
.site .cgrid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px 72px; align-items: end; }
.site .contact h2 { font-size: clamp(34px, 5vw, 60px); }
.site .contact .lede { margin-top: 18px; }
.site .addr h3 { font-size: 14px; font-weight: 500; color: var(--cmute); margin-bottom: 10px; font-family: var(--fb); }
.site address { font-style: normal; font-size: 18px; line-height: 1.6; }
.site .note { font-size: 14px; margin: 16px 0 0; }
.site .reach { display: grid; gap: 4px; margin: 16px 0 0; font-size: 17px; }
.site .foot { padding: 28px max(5vw, 20px) 88px; border-top: 1px solid var(--line); color: var(--mute); font-size: 14px; }
.site .frow { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.site .foot .brand { font-size: 15px; color: var(--ink); }
.site .foot .mk { width: 26px; height: 22px; }

@media (max-width: 900px) {
  .site .head, .site .about, .site .cgrid { grid-template-columns: minmax(0, 1fr); }
  .site .svcs { grid-template-columns: minmax(0, 1fr); }
  .site .svc, .site .svc + .svc { padding: 24px 0 8px; border-left: 0; }
  .site .svc + .svc { border-top: 1px solid var(--line); }
  .site .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .site .steps { grid-template-columns: minmax(0, 1fr); }
  .site .links a:not(.cta-s) { display: none; }
  .site .facts div { grid-template-columns: 7.5em 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* review bar (for partners) */
.review-bar { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 50; display: flex; align-items: center; gap: 4px; padding: 6px; border-radius: 999px; background: #1e1e1e; color: #f4f1ec; font: 500 14px system-ui, sans-serif; box-shadow: 0 8px 30px rgb(0 0 0 / 0.25); white-space: nowrap; }
.review-bar a { color: inherit; text-decoration: none; }
.review-bar .rb-all { padding: 8px 14px; border-radius: 999px; background: #c72a09; }
.review-bar .rb-now { padding: 0 10px; color: #c9c1b6; }
.review-bar .rb-step { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; }
.review-bar .rb-step:hover { background: #333; }
.review-bar :focus-visible { outline: 2px solid #f4f1ec; outline-offset: 2px; }

/* ==================================================================
   Design 1 — Ink (ASCII fluid)
   ================================================================== */
.d-ink {
  color-scheme: light dark;
  --bg: light-dark(#f4f1ec, #151311); --alt: light-dark(#ece7df, #1c1a17); --ink: light-dark(#1e1e1e, #eee9e1); --mute: light-dark(#57524c, #a9a197);
  --line: light-dark(#d8d1c6, #34302b); --red: light-dark(#c72a09, #e5502f); --red2: light-dark(#a82207, #f06a4b);
  --cbg: light-dark(#1e1e1e, #0e0d0c); --cink: #f4f1ec; --cmute: #b4aca2;
  --fd: "IBM Plex Sans", system-ui, sans-serif; --fb: "IBM Plex Sans", system-ui, sans-serif; --fm: "IBM Plex Mono", ui-monospace, monospace; --wd: 600; --r: 2px;
}
.d-ink .hero { position: relative; min-height: max(640px, 100vh); display: flex; align-items: flex-end; overflow: hidden; border-bottom: 1px solid var(--line); }
.d-ink .hcopy { position: relative; z-index: 2; width: 100%; max-width: 1200px; margin: 0 auto; padding: 140px max(5vw, 20px) clamp(48px, 8vh, 96px); display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; }
.d-ink .hcopy h1 { font-size: clamp(44px, 7.4vw, 104px); line-height: 0.98; letter-spacing: -0.035em; font-weight: 600; }
.d-ink .hcopy h1 em { font-style: normal; color: var(--red); }
.d-ink .hside { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(4px); padding: 20px 22px; border-left: 2px solid var(--red); }
.d-ink .hside p { margin: 0; font-size: 17px; }
.d-ink .hint { font: 500 13px var(--fm); color: var(--mute); margin-top: 18px; }
@media (max-width: 900px) { .d-ink .hcopy { grid-template-columns: minmax(0, 1fr); } }

/* ==================================================================
   Design 2 — Plate (burin hatch)
   ================================================================== */
.d-plate {
  color-scheme: light dark;
  --bg: light-dark(#ffffff, #111110); --alt: light-dark(#f4f1ec, #1a1917); --ink: light-dark(#1e1e1e, #edeae4); --mute: light-dark(#55524e, #a39e96);
  --line: light-dark(#e2ddd5, #2f2d2a); --red: light-dark(#c72a09, #e5502f); --red2: light-dark(#a82207, #f06a4b);
  --cbg: light-dark(#f4f1ec, #1a1917); --cink: var(--ink); --cmute: var(--mute);
  --fd: "Newsreader", Georgia, serif; --fb: "Public Sans", system-ui, sans-serif; --fm: "Public Sans", system-ui, sans-serif; --wd: 500; --r: 3px;
}
.d-plate [data-hero="burin"] { min-height: calc(100vh - 70px); }
.d-plate [data-hero="burin"] h1 { font-family: var(--fd); font-weight: 500 !important; font-size: clamp(44px, 6.2vw, 84px) !important; line-height: 1 !important; letter-spacing: -0.025em !important; }
.d-plate [data-hero="burin"] h1 span:last-child { color: var(--red); font-style: italic; }
.d-plate [data-hero="burin"] p { font-size: 18px; }
.d-plate [data-hero="burin"] [data-cta] { min-height: 46px; display: inline-flex; align-items: center; font-size: 15px; }
.d-plate [data-hero="burin"] [data-cta="primary"] { background: var(--red); color: #fff; }
.d-plate .contact h2 { font-weight: 500; }

/* ==================================================================
   Design 3 — Orbit (both effects, fixed night palette)
   ================================================================== */
.d-orbit {
  color-scheme: dark;
  --bg: #1e1e1e; --alt: #232221; --ink: #f4f1ec; --mute: #aba49a; --line: #3a3734; --red: #e0401d; --red2: #f05a38;
  --cbg: #f4f1ec; --cink: #1e1e1e; --cmute: #57524c;
  --fd: "Archivo", system-ui, sans-serif; --fb: "Archivo", system-ui, sans-serif; --fm: "Archivo", system-ui, sans-serif; --wd: 600; --r: 999px;
}
.d-orbit .hero { position: relative; min-height: max(680px, 100vh); overflow: hidden; display: grid; grid-template-rows: 1fr auto; border-bottom: 1px solid var(--line); }
.d-orbit .orb { position: relative; z-index: 2; min-height: max(360px, 46vh); margin-top: 64px; }
.d-orbit .orb canvas { position: absolute; inset: 0; color: var(--ink); }
.d-orbit .hcopy { position: relative; z-index: 3; max-width: 1200px; width: 100%; margin: 0 auto; padding: 0 max(5vw, 20px) clamp(40px, 7vh, 80px); display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px 56px; align-items: end; }
.d-orbit .hcopy h1 { font-size: clamp(40px, 5.6vw, 80px); line-height: 0.98; letter-spacing: -0.03em; font-weight: 700; font-stretch: 112%; }
.d-orbit .hcopy p { margin: 0; color: var(--mute); font-size: 17px; }
@media (max-width: 900px) { .d-orbit .hcopy { grid-template-columns: minmax(0, 1fr); } .d-orbit .orb { min-height: 340px; } }

/* ==================================================================
   Design 4 — Statement (italic sweep scroll text)
   ================================================================== */
.d-statement {
  color-scheme: light dark;
  --bg: light-dark(#f4f1ec, #141311); --alt: light-dark(#ece7df, #1b1a17); --ink: light-dark(#1e1e1e, #eee9e1); --mute: light-dark(#57524c, #a9a197);
  --line: light-dark(#d8d1c6, #34302b); --red: light-dark(#c72a09, #e5502f); --red2: light-dark(#a82207, #f06a4b);
  --cbg: light-dark(#1e1e1e, #0d0c0b); --cink: #f4f1ec; --cmute: #b4aca2;
  --fd: "Newsreader", Georgia, serif; --fb: "Instrument Sans", system-ui, sans-serif; --fm: "Instrument Sans", system-ui, sans-serif; --wd: 450; --r: 999px;
}
.d-statement .ist-p { font-size: clamp(42px, 6.2vw, 112px); line-height: 0.98; color: var(--ink); }
.d-statement .ist-i { color: var(--red); }
.d-statement .ist-pc { background: var(--red); }
.d-statement .caption { position: fixed; left: 0; right: 0; bottom: 60px; z-index: 4; display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; padding: 22px max(5vw, 20px); font-size: 14px; color: var(--mute); pointer-events: none; transition: opacity 0.3s; }
.d-statement .caption[data-hidden="true"] { opacity: 0; }
.d-statement .prog { display: flex; align-items: center; gap: 12px; }
.d-statement .prog i { display: block; width: 120px; height: 2px; background: var(--line); position: relative; overflow: hidden; }
.d-statement .prog b { position: absolute; inset: 0; background: var(--red); transform-origin: left; transform: scaleX(0); }
.d-statement .intro { padding-top: clamp(40px, 6vw, 80px); }
.d-statement .intro .big { font: 400 clamp(24px, 2.8vw, 36px)/1.3 var(--fd); max-width: 30ch; margin: 0; letter-spacing: -0.01em; }
.d-statement .intro .big em { color: var(--red); }
@media (prefers-reduced-motion: reduce) { .d-statement .prog { display: none; } }

/* ==================================================================
   Index — the four designs side by side for review
   ================================================================== */
.hub {
  color-scheme: light dark;
  --bg: light-dark(#f4f1ec, #151311); --alt: light-dark(#ece7df, #1c1a17); --ink: light-dark(#1e1e1e, #eee9e1); --mute: light-dark(#57524c, #a9a197);
  --line: light-dark(#d8d1c6, #34302b); --red: light-dark(#c72a09, #e5502f); --red2: light-dark(#a82207, #f06a4b);
  --fd: "IBM Plex Sans", system-ui, sans-serif; --fb: "IBM Plex Sans", system-ui, sans-serif; --fm: "IBM Plex Mono", monospace; --wd: 600; --r: 2px;
}
.hub .hub-head { padding: 120px max(5vw, 20px) 40px; }
.hub .hub-head h1 { font-size: clamp(36px, 5vw, 64px); line-height: 1.02; letter-spacing: -0.03em; font-weight: 600; }
.hub .hub-head p { color: var(--mute); max-width: 60ch; margin: 18px 0 0; font-size: 17px; }
.hub .grid4 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.hub .card { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line); background: var(--bg); text-decoration: none; transition: border-color 0.2s, transform 0.2s; }
.hub .card:hover { border-color: var(--ink); transform: translateY(-2px); }
.hub .swatch { height: 160px; display: grid; place-items: center; border-bottom: 1px solid var(--line); font: 600 44px/1 var(--fd); letter-spacing: -0.02em; }
.hub .card .body { padding: 20px 22px 24px; }
.hub .card .k { font: 500 13px var(--fm); color: var(--red); }
.hub .card h2 { font-size: 26px; margin: 6px 0 8px; }
.hub .card p { margin: 0; color: var(--mute); font-size: 15.5px; }
.hub .how { margin-top: 40px; border-top: 1px solid var(--ink); padding-top: 22px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px 48px; }
.hub .how ol { margin: 0; padding-left: 1.2em; color: var(--mute); }
.hub .how li + li { margin-top: 6px; }
@media (max-width: 760px) { .hub .grid4, .hub .how { grid-template-columns: minmax(0, 1fr); } }
