/* sandboxplatforms.dev: the company's résumé page, built from blocks. Dark base, lime (the cursor
   block) for what's done and signal orange for what's next. Inter Tight for words, IBM Plex Mono
   for meta, Plus Jakarta Sans only for the Shoulder Tap wordmark.
   Spacing sits on a 4px grid. Motion lives in site.js and switches off under reduced motion. */

@font-face { font-family: 'Inter Tight'; font-weight: 400; font-display: swap; src: url(/fonts/inter-tight-400.woff2) format('woff2'); }
@font-face { font-family: 'Inter Tight'; font-weight: 600; font-display: swap; src: url(/fonts/inter-tight-600.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 400; font-display: swap; src: url(/fonts/ibm-plex-mono-400.woff2) format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 800; font-display: swap; src: url(/fonts/plus-jakarta-sans-800.woff2) format('woff2'); }

:root {
  color-scheme: dark;
  --bg: #0b0c0e;
  --raised: #121317;
  --card: #15161a;
  --text: #ecedee;
  --muted: #8b9098;
  --faint: #4a4e55;
  --line: rgba(236, 237, 238, 0.10);
  --accent: #c8f051;
  --orange: #ff7a3d;
  --st-blue: #3d84ff;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --edge: 20px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
@media (min-width: 760px) { :root { --edge: 40px; } }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
ol { list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--edge); top: 12px; z-index: 30; background: var(--text); color: var(--bg); padding: 8px 12px; }

.cursor { display: inline-block; width: 0.42em; height: 0.84em; margin-left: 0.08em; background: var(--accent); vertical-align: -0.04em; animation: blink 1.2s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cursor { animation: none; } }

.kicker, .meta, .card-top, .tag, .rail, .num, .pstat, .legal, .foot { font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* Header: the name and the menu stay put the whole way down */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 20px var(--edge); pointer-events: none;
}
.top a { pointer-events: auto; text-decoration: none; }
.mark { display: flex; flex-direction: column; font-weight: 600; text-transform: uppercase; font-size: clamp(28px, 4.4vw, 56px); line-height: 0.92; letter-spacing: -0.02em; }
.top nav { display: flex; flex-direction: column; align-items: flex-end; font-weight: 600; text-transform: uppercase; font-size: clamp(16px, 2.2vw, 28px); line-height: 1.12; }
.top nav a { color: var(--text); transition: color 160ms var(--ease); }
.top nav a:hover { color: var(--orange); }
.top::before { content: ''; position: absolute; inset: 0 0 -24px 0; background: linear-gradient(var(--bg) 40%, transparent); opacity: 0; transition: opacity 240ms var(--ease); z-index: -1; }
.top.scrolled::before { opacity: 1; }

/* Hero: raked sand that parts under the cursor */
.hero { position: relative; height: 100vh; min-height: 560px; overflow: hidden; }
.blocks { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }
.hero-copy { position: absolute; left: var(--edge); bottom: 96px; max-width: 560px; pointer-events: none; }
.hero h1 { font-size: clamp(24px, 3vw, 36px); font-weight: 600; line-height: 1.12; letter-spacing: -0.02em; }
.hero-copy p { color: var(--muted); font-size: 17px; margin-top: 12px; max-width: 44ch; }
/* The blocks spell the name, so the small header name waits until you scroll past them */
.top .mark { opacity: 0; transition: opacity 240ms var(--ease); }
.top.past-hero .mark { opacity: 1; }
.meta { position: absolute; bottom: 24px; line-height: 1.6; pointer-events: none; }
.meta-l { left: var(--edge); }
.meta-r { right: var(--edge); text-align: right; }
@media (max-width: 600px) { .meta-r { display: none; } } /* phones: one line only, so they can't overlap */

/* Story: a sideways timeline (vertical stack on small screens) */
.story { position: relative; border-top: 1px solid var(--line); }
.story-pin { position: relative; padding: 144px var(--edge) 64px; overflow: hidden; }
.ghost { position: absolute; left: var(--edge); top: 152px; font-size: clamp(64px, 12vw, 168px); line-height: 0.9; font-weight: 600; text-transform: uppercase; letter-spacing: -0.03em; color: transparent; -webkit-text-stroke: 1px var(--faint); pointer-events: none; }
.ghost span { display: block; padding-left: 0.6em; }
.track { position: relative; display: grid; gap: 48px; }
.card { max-width: 400px; }
.card-top { display: flex; justify-content: space-between; padding: 12px 16px; background: var(--card); border: 1px solid var(--line); border-bottom: 0; border-radius: 12px 12px 0 0; }
.art { position: relative; height: 220px; background: var(--card); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 12px 12px; overflow: hidden; }
.when { display: flex; align-items: baseline; gap: 12px; margin-top: 20px; }
.year { font-size: 32px; font-weight: 600; letter-spacing: -0.02em; color: var(--bg); background: var(--accent); padding: 0 6px; line-height: 1.1; }
.card h3 { font-size: 24px; font-weight: 600; text-transform: uppercase; letter-spacing: -0.01em; margin-top: 8px; }
.card p:last-child { color: var(--muted); font-size: 16px; margin-top: 4px; max-width: 34ch; }
.card-next .year { background: var(--orange); }
.card-next .tag { color: var(--orange); }
/* Each milestone adds a block to the stack */
.stack { display: flex; flex-direction: column-reverse; gap: 2px; align-self: center; }
.stack i { display: block; width: 18px; height: 6px; border-radius: 2px; background: var(--accent); }
.stack i:nth-child(even) { margin-left: 6px; }
.stack i.next { background: transparent; box-shadow: inset 0 0 0 1px var(--orange); }
.card-top { align-items: center; min-height: 48px; }

.art-phone { display: grid; place-items: center; }
.phone { width: 112px; height: 188px; margin-top: 48px; border: 1px solid var(--faint); border-radius: 20px; display: flex; align-items: center; justify-content: center; gap: 2px; font-size: 14px; background: var(--bg); }
.st-word, .pname { font-family: 'Plus Jakarta Sans', 'Inter Tight', sans-serif; font-weight: 800; letter-spacing: -0.02em; }
.st-word b, .pname b { color: var(--st-blue); font-weight: 800; }
.art-dots { background-image: radial-gradient(circle, var(--faint) 1.5px, transparent 2px); background-size: 20px 20px; background-position: 10px 10px; }
.art-dots::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle, var(--accent) 2.5px, transparent 3px); background-size: 20px 20px; background-position: 10px 10px;
  -webkit-mask: radial-gradient(circle at 62% 46%, #000 0 64px, transparent 66px); mask: radial-gradient(circle at 62% 46%, #000 0 64px, transparent 66px); }
.art-seal { display: grid; place-items: center; }
.seal { width: 148px; height: 148px; border-radius: 50%; border: 1px solid var(--faint); box-shadow: inset 0 0 0 8px var(--card), inset 0 0 0 9px var(--faint);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-family: var(--mono); font-size: 10px; color: var(--muted); text-align: center; }
.seal b { font-family: 'Inter Tight', sans-serif; font-size: 44px; line-height: 1; color: var(--text); font-weight: 600; letter-spacing: -0.03em; }
.art-horizon::before { content: ''; position: absolute; left: 0; right: 0; top: 140px; border-top: 1px solid var(--faint); }
.art-horizon .sun { position: absolute; left: 50%; top: 140px; width: 64px; height: 64px; margin-left: -32px; border-radius: 50%; background: var(--orange); clip-path: inset(0 0 50% 0); transform: translateY(-50%); }
.art-horizon span { position: absolute; left: 16px; bottom: 16px; font-family: var(--mono); font-size: 11px; color: var(--muted); }

.rail { display: none; }

@media (min-width: 900px) {
  .story { height: var(--story-h, 300vh); }
  .story-pin { position: sticky; top: 0; height: 100vh; padding: 0; }
  .ghost { top: 23vh; }
  .track { position: absolute; left: 0; top: 18vh; display: flex; gap: 64px; padding: 0 var(--edge) 0 46vw; will-change: transform; }
  .card { flex: none; width: 360px; }
  .card:nth-child(even) { margin-top: 64px; }
  .rail { display: block; position: absolute; left: var(--edge); right: var(--edge); bottom: 32px; }
  .rail ol { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px dashed var(--faint); padding-top: 12px; }
  .rail li { position: relative; color: var(--muted); transition: color 200ms var(--ease); }
  .rail li::before { content: ''; position: absolute; left: 0; top: -17px; width: 1px; height: 10px; background: var(--faint); }
  .rail b { display: block; font-family: 'Inter Tight', sans-serif; font-size: 16px; font-weight: 600; color: var(--text); }
  .rail li.next b { color: var(--orange); }
  .rail li.dim { opacity: 0.4; }
  .phase { position: absolute; top: -32px; }
  .phase-build { left: 0; }
  .phase-live { left: 75%; color: var(--orange); }
}

/* Work: one product, set large */
.work { background: var(--raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 96px var(--edge); }
.product { display: grid; gap: 12px 40px; margin-top: 32px; padding: 32px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; }
.pname { font-size: clamp(48px, 9vw, 128px); line-height: 0.95; }
.pname sup { font-size: 0.24em; vertical-align: 2.4em; margin-left: 4px; color: var(--muted); }
.pdesc { font-size: 20px; color: var(--muted); }
.pstat { color: var(--orange); }
.product:hover .pname { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--accent); text-underline-offset: 12px; }
@media (min-width: 900px) { .product { grid-template-columns: 1fr minmax(240px, 360px); align-items: end; } .pname { grid-row: span 2; } }

/* What we do: numbered rows */
.do { padding: 112px var(--edge) 96px; }
.rows { margin-top: 32px; }
.rows li { display: grid; gap: 8px 40px; padding: 28px 0; border-top: 1px solid var(--line); }
.rows li:last-child { border-bottom: 1px solid var(--line); }
.rows h3 { font-size: clamp(36px, 6vw, 80px); line-height: 0.95; font-weight: 600; text-transform: uppercase; letter-spacing: -0.03em; }
.rows p { color: var(--muted); font-size: 17px; max-width: 44ch; }
@media (min-width: 900px) { .rows li { grid-template-columns: 1fr minmax(280px, 400px); align-items: end; } .num { grid-column: 1 / -1; } }

/* Contact */
.contact { padding: 96px var(--edge) 128px; border-top: 1px solid var(--line); }
.email { display: inline-block; margin-top: 16px; font-size: clamp(28px, 5.6vw, 72px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; text-decoration: none; }
.email:hover { color: var(--orange); }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-top: 28px; }
.copy { font: 600 15px 'Inter Tight', sans-serif; color: var(--bg); background: var(--text); border: 0; border-radius: 8px; padding: 12px 20px; cursor: pointer; transition: background-color 160ms var(--ease), transform 120ms var(--ease); }
.copy:hover { background: var(--accent); }
.copy:active { transform: scale(0.98); }
.legal a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line); margin-left: 8px; }
.legal a:hover { border-color: var(--accent); }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 32px var(--edge) 48px; border-top: 1px solid var(--line); }

/* 404 page (kept on the older single-column layout) */
.wrap { max-width: 1120px; min-height: 100vh; margin: 0 auto; padding: 0 var(--edge); display: flex; flex-direction: column; }
.wrap header { display: flex; align-items: center; justify-content: space-between; padding: 24px 0; border-bottom: 1px solid var(--line); }
.wrap main { flex: 1; }
.brand { display: flex; align-items: center; gap: 4px; text-decoration: none; }
.word { font-weight: 600; font-size: 17px; }
.brand .cursor { font-size: 22px; }
.label { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.wrap .hero { height: auto; min-height: 0; padding: 120px 0; overflow: visible; }
.wrap h1 { font-size: clamp(40px, 8vw, 88px); font-weight: 600; line-height: 0.98; letter-spacing: -0.04em; max-width: 13ch; margin-top: 24px; }
.wrap h1 span { color: var(--accent); }
.lede { font-size: 18px; color: var(--muted); max-width: 48ch; margin-top: 28px; }
.home { display: inline-block; margin-top: 36px; font-family: var(--mono); font-size: 12px; text-decoration: none; border-bottom: 1px solid var(--accent); padding-bottom: 4px; }
.wrap footer { padding: 32px 0 48px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.wrap footer span { font-family: var(--mono); font-size: 12px; color: var(--muted); }
