/* ==========================================================================
   samhessler.com — site.css
   Design system: ink ground, teal accent, Fraunces display + Inter body.
   Motion is class-driven (.in) so the page renders complete with no JS
   (html.static) and honours prefers-reduced-motion.
   ========================================================================== */

:root {
  --ink: #0b0f17;
  --ink-2: #0f1420;
  --ink-3: #151c2b;
  --ink-4: #1b2436;
  --teal: #2cb8b8;
  --teal-bright: #3fd4d0;
  --teal-deep: #178a8a;
  --teal-glow: rgba(44, 184, 184, 0.16);
  --steel: #93a1b5;
  --text: #eef1f5;
  --text-2: #a7b1c2;
  --text-3: #66707f;
  --line: rgba(148, 163, 184, 0.14);
  --line-2: rgba(148, 163, 184, 0.28);
  --serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --wrap: 1200px;
  --gutter: 40px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }

body {
  font-family: var(--sans);
  background: var(--ink);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; }

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: rgba(44, 184, 184, 0.35); color: #fff; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* grain */
body::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 2000;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.6 0 0 0 0 0.63 0 0 0 0 0.7 0 0 0 0.35 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- type ---------- */

h1, h2, h3, .serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em; line-height: 1.05; }
h1 { font-size: clamp(44px, 5.2vw, 76px); font-variation-settings: 'opsz' 144; }
h1 strong { font-weight: 600; }
h2 { font-size: clamp(38px, 4.8vw, 64px); font-variation-settings: 'opsz' 96; max-width: 16ch; }
h2 em, h1 em { font-style: italic; color: var(--teal-bright); font-weight: 400; }
h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.25; }

.kicker {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--mono);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 26px;
}
.kicker .num { color: var(--text-3); }
.kicker::after { content: ''; width: 56px; height: 1px; background: var(--line-2); }

.lede { color: var(--text-2); font-size: 18px; line-height: 1.7; max-width: 620px; margin: 22px 0 0; }

/* ---------- buttons ---------- */

.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px;
  border-radius: 100px;
  font-weight: 600; font-size: 15px;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.35s var(--ease), background 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.btn svg { width: 16px; height: 16px; flex: none; transition: transform 0.35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-primary { background: var(--teal); color: var(--ink); }
.btn-primary:hover { background: var(--teal-bright); box-shadow: 0 10px 40px -8px rgba(63, 212, 208, 0.55); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--text); background: rgba(15, 20, 32, 0.6); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-bright); }
.btn-ghost svg { fill: currentColor; }

/* ---------- reveal ---------- */

[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0ms); }
[data-reveal].in, html.static [data-reveal] { opacity: 1; transform: none; }

.split .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.split .w > span { display: inline-block; transform: translateY(115%); transition: transform 1.1s var(--ease); transition-delay: var(--d, 0ms); }
.split.in .w > span, html.static .split .w > span { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal], .split .w > span { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
}

/* ---------- cursor + progress ---------- */

.cur { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 3000; border-radius: 50%; transform: translate(-50%, -50%); }
.cur-dot { width: 7px; height: 7px; background: var(--teal-bright); }
.cur-ring { width: 36px; height: 36px; border: 1px solid rgba(63, 212, 208, 0.7); transition: width 0.3s var(--ease), height 0.3s var(--ease), border-color 0.3s, background 0.3s; }
.cur-ring.hot { width: 64px; height: 64px; border-color: rgba(63, 212, 208, 0.35); background: rgba(63, 212, 208, 0.08); }
.cur-ring.hide, .cur-dot.hide { opacity: 0; }
@media (pointer: coarse), (max-width: 1023px) { .cur { display: none; } }

.progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; background: linear-gradient(90deg, var(--teal), var(--teal-bright)); transform-origin: left; transform: scaleX(0); z-index: 1100; pointer-events: none; }

/* ---------- nav ---------- */

nav.top {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 40px;
  background: rgba(11, 15, 23, 0.6);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: padding 0.4s var(--ease), background 0.4s, border-color 0.4s;
}
nav.top.scrolled { padding: 11px 40px; background: rgba(11, 15, 23, 0.84); border-bottom-color: var(--line); }

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 36px; width: auto; transition: height 0.4s var(--ease); }
nav.top.scrolled .brand img { height: 30px; }
.brand-name { font-family: var(--serif); font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.brand-name em { font-style: italic; font-weight: 400; color: var(--text-2); }

.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { position: relative; font-size: 14px; font-weight: 500; color: var(--text-2); padding: 6px 0; transition: color 0.25s; }
.nav-links a::after { content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: var(--teal-bright); transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease); }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); transform-origin: left; }

.nav-cta { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border: 1px solid var(--teal); border-radius: 100px; color: var(--teal-bright); font-size: 14px; font-weight: 600; transition: background 0.3s, color 0.3s, box-shadow 0.3s; }
.nav-cta:hover { background: var(--teal); color: var(--ink); box-shadow: 0 0 30px -6px rgba(63, 212, 208, 0.6); }

.burger { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; flex-direction: column; gap: 6px; }
.burger span { width: 22px; height: 1.5px; background: var(--text); transition: transform 0.4s var(--ease), opacity 0.3s; }
.burger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.menu { position: fixed; inset: 0; z-index: 990; background: rgba(11, 15, 23, 0.97); backdrop-filter: blur(20px); display: flex; flex-direction: column; justify-content: center; padding: 100px 28px 40px; transform: translateY(-102%); transition: transform 0.7s var(--ease); }
.menu.open { transform: none; }
.menu a { font-family: var(--serif); font-size: clamp(34px, 9vw, 52px); line-height: 1.2; color: var(--text); padding: 6px 0; border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(20px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.menu.open a { opacity: 1; transform: none; }
.menu a:nth-child(1) { transition-delay: 0.15s; } .menu a:nth-child(2) { transition-delay: 0.2s; } .menu a:nth-child(3) { transition-delay: 0.25s; } .menu a:nth-child(4) { transition-delay: 0.3s; } .menu a:nth-child(5) { transition-delay: 0.35s; } .menu a:nth-child(6) { transition-delay: 0.4s; }
.menu .menu-foot { margin-top: 28px; color: var(--text-3); font-size: 14px; }
.menu .menu-foot a { font: inherit; color: var(--teal-bright); border: 0; padding: 0; display: inline; opacity: 1; transform: none; }

/* ---------- hero ---------- */

.hero { position: relative; min-height: 100svh; display: grid; align-items: center; padding: calc(var(--nav-h) + 60px) 0 90px; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; background:
  radial-gradient(ellipse 60% 55% at 78% 40%, rgba(44, 184, 184, 0.16) 0%, transparent 60%),
  radial-gradient(ellipse 50% 40% at 10% 90%, rgba(147, 161, 181, 0.08) 0%, transparent 60%),
  var(--ink); }
.hero-grid { position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 72px 72px; mask-image: radial-gradient(ellipse 70% 70% at 50% 45%, #000 20%, transparent 75%); opacity: 0.5; }
#field { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; opacity: 0; transition: opacity 1.4s ease; }
#field.on { opacity: 1; }

.hero-inner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 50px; align-items: center; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 14px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal); margin-bottom: 30px; }
.hero-eyebrow::before { content: ''; width: 40px; height: 1px; background: var(--teal); }
.hero h1 { margin-bottom: 30px; }
.hero-sub { font-size: 18px; line-height: 1.7; color: var(--text-2); max-width: 540px; margin-bottom: 40px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual { position: relative; display: grid; place-items: center; aspect-ratio: 1; max-width: 520px; margin-left: auto; transform-style: preserve-3d; }
.hero-visual .rings { position: absolute; inset: 0; }
.hero-visual .rings span { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(44, 184, 184, 0.22); animation: ring 12s linear infinite; }
.hero-visual .rings span:nth-child(2) { inset: 12%; border-color: rgba(44, 184, 184, 0.16); animation-duration: 18s; animation-direction: reverse; }
.hero-visual .rings span:nth-child(3) { inset: 24%; border-color: rgba(147, 161, 181, 0.16); animation-duration: 26s; }
.hero-visual .rings span::after { content: ''; position: absolute; top: -3px; left: 50%; width: 5px; height: 5px; border-radius: 50%; background: var(--teal-bright); box-shadow: 0 0 12px var(--teal-bright); }
@keyframes ring { to { transform: rotate(360deg); } }
.hero-visual img { position: relative; width: 44%; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.55)); transform: translateZ(40px); }
.hero-visual .glow { position: absolute; inset: 18%; border-radius: 50%; background: radial-gradient(circle, rgba(44, 184, 184, 0.22), transparent 62%); }

.scroll-hint { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--text-3); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.scroll-hint i { width: 1px; height: 44px; background: linear-gradient(var(--teal), transparent); animation: drop 2.2s var(--ease-io) infinite; transform-origin: top; }
@keyframes drop { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- stats ---------- */

.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--ink-2); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 46px 32px; border-left: 1px solid var(--line); position: relative; }
.stat:first-child { border-left: 0; }
.stat h3 { font-family: var(--serif); font-size: 52px; font-weight: 300; line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; }
.stat h3 sup { font-size: 0.45em; color: var(--teal-bright); vertical-align: top; margin-left: 2px; }
.stat p { margin-top: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }

/* ---------- sections ---------- */

.section { padding: 130px 0; border-top: 1px solid var(--line); position: relative; }
.section-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 40px; align-items: end; }
.section-head .lede { margin-top: 0; }

/* ---------- about ---------- */

.about-grid { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 80px; align-items: start; margin-top: 30px; }
.portrait { position: relative; border-radius: 22px; overflow: hidden; background: var(--ink-3); }
.portrait::before { content: ''; position: absolute; inset: 0; border: 1px solid var(--line-2); border-radius: 22px; z-index: 2; pointer-events: none; }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--ease); transform: scale(1.06); }
.portrait.in img, html.static .portrait img { clip-path: inset(0 0 0 0); }
.portrait .caption { position: absolute; left: 20px; right: 20px; bottom: 20px; z-index: 3; padding: 16px 20px; background: rgba(11, 15, 23, 0.88); border: 1px solid var(--line); border-radius: 14px; font-size: 13px; color: var(--text-2); }
.portrait .caption strong { display: block; color: var(--text); font-family: var(--serif); font-size: 17px; font-weight: 500; }
.about-text h3 { font-size: clamp(26px, 2.6vw, 34px); margin-bottom: 26px; }
.about-text h3 em { font-style: italic; color: var(--teal-bright); }
.about-text p { color: var(--text-2); font-size: 16.5px; line-height: 1.8; margin-bottom: 18px; }
.pull { margin: 30px 0; padding: 4px 0 4px 26px; border-left: 2px solid var(--teal); font-family: var(--serif); font-style: italic; font-size: 21px; line-height: 1.5; color: var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 30px; }
.chip { padding: 8px 16px; border: 1px solid var(--line-2); border-radius: 100px; font-size: 13px; font-weight: 500; color: var(--text-2); transition: border-color 0.3s, color 0.3s, background 0.3s; }
.chip:hover, .chip.hot { border-color: var(--teal); color: var(--teal-bright); background: rgba(44, 184, 184, 0.07); }

/* ---------- cards (services) ---------- */

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; margin-top: 56px; }
.card { position: relative; background: var(--ink-2); padding: 42px 34px 46px; overflow: hidden; transition: background 0.4s; }
.card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), var(--teal-glow), transparent 60%); opacity: 0; transition: opacity 0.4s; pointer-events: none; }
.card:hover::before { opacity: 1; }
.card:hover { background: var(--ink-3); }
.card .idx { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--text-3); display: block; margin-bottom: 28px; transition: color 0.3s; }
.card:hover .idx { color: var(--teal-bright); }
.card .ico { width: 44px; height: 44px; color: var(--teal); margin-bottom: 24px; transition: transform 0.5s var(--ease); }
.card:hover .ico { transform: translateY(-4px) rotate(-4deg); }
.card .ico svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 22px; font-weight: 500; margin-bottom: 12px; position: relative; }
.card p { color: var(--text-2); font-size: 14.5px; line-height: 1.75; position: relative; }
.card.link { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 38px 40px; background: linear-gradient(120deg, rgba(44, 184, 184, 0.16), var(--ink-2) 55%); }
.card.link > div { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 28px; min-width: 0; }
.card.link .lt { min-width: 0; }
.card.link .idx { margin: 0; }
.card.link .ico { margin: 0; }
.card.link h3 { margin: 0 0 6px; }
.card.link p { max-width: 62ch; }
.card.link .arrow { display: inline-flex; align-items: center; gap: 10px; color: var(--teal-bright); font-weight: 600; font-size: 15px; white-space: nowrap; }
.card.link .arrow svg { width: 18px; height: 18px; transition: transform 0.4s var(--ease); }
.card.link:hover .arrow svg { transform: translateX(6px); }

/* ---------- websites ---------- */

.websites { background: var(--ink-2); border-top: 1px solid var(--line); position: relative; overflow: hidden; }
.websites::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--teal), transparent); opacity: 0.6; }
.websites::after { content: ''; position: absolute; width: 1100px; height: 1100px; right: -400px; top: -400px; border-radius: 50%; background: radial-gradient(circle, rgba(44, 184, 184, 0.12), transparent 62%); pointer-events: none; }
@keyframes drift { to { transform: translate(-120px, 140px); } }
.websites .wrap { position: relative; z-index: 1; }
.badge-new { display: flex; width: max-content; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 100px; background: rgba(63, 212, 208, 0.12); border: 1px solid rgba(63, 212, 208, 0.35); color: var(--teal-bright); font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 22px; }
.badge-new i { width: 6px; height: 6px; border-radius: 50%; background: var(--teal-bright); box-shadow: 0 0 0 0 rgba(63, 212, 208, 0.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(63, 212, 208, 0); } 100% { box-shadow: 0 0 0 0 rgba(63, 212, 208, 0); } }

.web-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 70px; align-items: start; margin-top: 20px; }
.web-copy p { color: var(--text-2); font-size: 17px; line-height: 1.8; margin-bottom: 18px; }
.web-copy p strong { color: var(--text); font-weight: 600; }
.web-fast { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; margin: 34px 0; padding: 26px 28px; border: 1px solid var(--line-2); border-radius: 18px; background: rgba(11, 15, 23, 0.5); }
.web-fast b { font-family: var(--serif); font-size: clamp(44px, 5vw, 64px); font-weight: 300; line-height: 1; color: var(--teal-bright); letter-spacing: -0.03em; }
.web-fast b small { font-size: 0.42em; color: var(--text-3); letter-spacing: 0; font-family: var(--mono); font-weight: 500; text-transform: uppercase; }
.web-fast span { font-size: 15px; color: var(--text-2); line-height: 1.6; }
.web-fast span strong { color: var(--text); display: block; font-family: var(--serif); font-size: 20px; font-weight: 500; margin-bottom: 2px; }

.includes { list-style: none; display: grid; gap: 14px; }
.includes li { display: grid; grid-template-columns: 26px 1fr; gap: 14px; align-items: start; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: rgba(11, 15, 23, 0.45); transition: border-color 0.3s, transform 0.4s var(--ease); }
.includes li:hover { border-color: var(--line-2); transform: translateX(6px); }
.includes .ck { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--teal); display: grid; place-items: center; color: var(--teal-bright); }
.includes .ck svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 20; stroke-dashoffset: 20; transition: stroke-dashoffset 0.6s var(--ease); transition-delay: var(--d, 0ms); }
.includes li.in .ck svg, html.static .includes .ck svg { stroke-dashoffset: 0; }
.includes strong { display: block; color: var(--text); font-weight: 600; font-size: 15px; margin-bottom: 3px; }
.includes span { color: var(--text-2); font-size: 14px; line-height: 1.6; }

.process { margin-top: 90px; }
.process-head { display: flex; align-items: baseline; justify-content: space-between; gap: 30px; flex-wrap: wrap; margin-bottom: 44px; }
.process-head h3 { font-size: clamp(26px, 2.8vw, 36px); }
.process-head p { color: var(--text-3); font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.steps { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.steps .track { position: absolute; left: 22px; right: 22px; top: 22px; height: 1px; background: var(--line-2); }
.steps .track i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--teal), var(--teal-bright)); transform-origin: left; transform: scaleX(0); box-shadow: 0 0 14px rgba(63, 212, 208, 0.5); }
html.static .steps .track i { transform: scaleX(1); }
.step { position: relative; padding-top: 0; }
.step .n { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--ink-2); display: grid; place-items: center; font-family: var(--mono); font-size: 13px; color: var(--text-3); transition: background 0.4s, color 0.4s, border-color 0.4s, box-shadow 0.4s; position: relative; z-index: 1; }
.step.done .n, html.static .step .n { background: var(--teal); border-color: var(--teal); color: var(--ink); box-shadow: 0 0 24px -4px rgba(63, 212, 208, 0.7); }
.step h4 { font-family: var(--serif); font-size: 21px; font-weight: 500; margin: 22px 0 8px; }
.step p { color: var(--text-2); font-size: 14px; line-height: 1.65; }

.web-cta { margin-top: 70px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.web-cta span { color: var(--text-3); font-size: 14px; }

/* ---------- work / portfolio ---------- */

.work-intro { margin-bottom: 70px; }
.work-stack { display: grid; gap: 40px; }
.work { position: relative; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: 56px; align-items: center; padding: 40px; border: 1px solid var(--line-2); border-radius: 26px; background: linear-gradient(180deg, var(--ink-3), var(--ink-2)); box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.8); overflow: visible; }
.work.spacer { height: 0; padding: 0; border: 0; position: static; }
.work-media { position: relative; perspective: 1400px; }
.browser { position: relative; border-radius: 14px; border: 1px solid var(--line-2); background: var(--ink); overflow: hidden; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.9); transform-style: preserve-3d; transition: transform 0.6s var(--ease); }
.browser .bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--ink-3); border-bottom: 1px solid var(--line); }
.browser .bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.browser .bar .url { margin-left: 8px; flex: 1; padding: 5px 12px; border-radius: 6px; background: var(--ink); font-family: var(--mono); font-size: 11px; color: var(--text-3); }
.browser .shot { position: relative; height: 400px; overflow: hidden; background: var(--ink-2); }
.browser .shot img { width: 100%; height: auto; transform: translateY(0); transition: transform var(--scroll-t, 6s) linear; }
.browser:hover .shot img, .browser.play .shot img { transform: translateY(var(--scroll-y, 0)); }
.browser .shot::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(transparent, rgba(11, 15, 23, 0.75)); pointer-events: none; }
.phone { position: absolute; right: -22px; bottom: -34px; width: 168px; aspect-ratio: 9 / 19; border-radius: 26px; border: 6px solid #1c2433; background: var(--ink); overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.9), inset 0 0 0 1px rgba(148, 163, 184, 0.2); transform: translateZ(60px); }
.phone::before { content: ''; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 46px; height: 6px; border-radius: 6px; background: #1c2433; z-index: 2; }
.phone img { width: 100%; height: auto; }

.work-body .idx { font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--text-3); margin-bottom: 18px; display: block; }
.work-body h3 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 8px; }
.work-body .site-url { font-family: var(--mono); font-size: 12px; color: var(--teal); letter-spacing: 0.06em; margin-bottom: 22px; display: inline-block; }
.work-body .one { color: var(--text-2); font-size: 16px; line-height: 1.7; margin-bottom: 22px; }
.swatches { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.swatches .sw { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4); }
.swatches .type { font-family: var(--mono); font-size: 11px; color: var(--text-3); letter-spacing: 0.06em; margin-left: 6px; }
.built { list-style: none; display: grid; gap: 9px; margin-bottom: 24px; }
.built li { position: relative; padding-left: 22px; color: var(--text-2); font-size: 14.5px; line-height: 1.6; }
.built li::before { content: ''; position: absolute; left: 0; top: 10px; width: 10px; height: 1px; background: var(--teal); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tag { padding: 6px 12px; border-radius: 100px; background: rgba(148, 163, 184, 0.08); border: 1px solid var(--line); font-family: var(--mono); font-size: 11px; color: var(--text-2); letter-spacing: 0.04em; }
.work-link { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--teal-bright); font-size: 15px; }
.work-link svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.4s var(--ease); }
.work-link:hover svg { transform: translate(3px, -3px); }
.work-more { margin-top: 60px; padding: 30px 34px; border: 1px dashed var(--line-2); border-radius: 18px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; color: var(--text-2); }
.work-more strong { color: var(--text); font-family: var(--serif); font-size: 22px; font-weight: 500; display: block; margin-bottom: 4px; }

/* ---------- career ---------- */

.xp-list { position: relative; margin-top: 56px; padding-left: 60px; }
.xp-line { position: absolute; left: 21px; top: 0; bottom: 0; width: 1px; background: var(--line-2); }
.xp-line i { position: absolute; inset: 0; background: linear-gradient(var(--teal), var(--teal-bright)); transform-origin: top; transform: scaleY(0); box-shadow: 0 0 12px rgba(63, 212, 208, 0.5); }
html.static .xp-line i { transform: scaleY(1); }
.xp-row { position: relative; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 40px; padding: 36px 20px 36px 24px; border-top: 1px solid var(--line); transition: background 0.3s; border-radius: 0 16px 16px 0; }
.xp-row:last-child { border-bottom: 1px solid var(--line); }
.xp-row:hover { background: rgba(44, 184, 184, 0.035); }
.xp-row::before { content: ''; position: absolute; left: -44px; top: 46px; width: 11px; height: 11px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--ink); transition: background 0.4s, border-color 0.4s, box-shadow 0.4s; }
.xp-row.lit::before, html.static .xp-row::before { background: var(--teal); border-color: var(--teal); box-shadow: 0 0 0 5px rgba(44, 184, 184, 0.18), 0 0 18px rgba(63, 212, 208, 0.6); }
.xp-date { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); padding-top: 6px; }
.xp-body h4 { font-family: var(--serif); font-size: 23px; font-weight: 500; margin-bottom: 4px; }
.xp-body .company { color: var(--teal-bright); font-size: 13px; font-weight: 600; letter-spacing: 0.06em; margin-bottom: 12px; }
.xp-body p { color: var(--text-2); font-size: 15px; line-height: 1.75; max-width: 640px; }

/* ---------- tools ---------- */

.marquees { margin: 56px calc(-1 * var(--gutter)) 40px; display: grid; gap: 12px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee .track { display: flex; gap: 12px; width: max-content; animation: marquee 55s linear infinite; }
.marquee.rev .track { animation-direction: reverse; animation-duration: 65s; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.mtag { flex: none; padding: 12px 20px; border: 1px solid var(--line); border-radius: 100px; font-size: 14px; font-weight: 500; color: var(--text-2); background: var(--ink-2); transition: border-color 0.3s, color 0.3s; }
.mtag:hover { border-color: var(--teal); color: var(--teal-bright); }
.mtag.hi { border-color: rgba(44, 184, 184, 0.4); color: var(--text); }

.ledger { border-top: 1px solid var(--line); }
.ledger-row { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: start; padding: 24px 8px; border-bottom: 1px solid var(--line); }
.ledger-row h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); padding-top: 8px; font-weight: 500; }
.ledger-row.hi h4 { color: var(--teal); }
.ledger-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.ledger-tags span { padding: 7px 14px; border-radius: 100px; border: 1px solid var(--line); background: var(--ink-2); font-size: 13px; color: var(--text-2); transition: border-color 0.25s, color 0.25s; }
.ledger-tags span:hover { border-color: var(--teal); color: var(--teal-bright); }
.ledger-row.hi .ledger-tags span { border-color: rgba(44, 184, 184, 0.35); color: var(--text); }

/* ---------- contact ---------- */

.contact { position: relative; overflow: hidden; }
.contact::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 900px 480px at 20% 110%, rgba(44, 184, 184, 0.14), transparent 65%); pointer-events: none; }
.contact::after { content: ''; position: absolute; width: 900px; height: 900px; right: -300px; bottom: -400px; border-radius: 50%; background: radial-gradient(circle, rgba(147, 161, 181, 0.08), transparent 62%); pointer-events: none; }
.contact .wrap { position: relative; z-index: 1; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 80px; align-items: start; }
.contact h2 { margin-bottom: 20px; }
.contact-copy .lede { margin-bottom: 36px; }
.contact-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.contact-meta { display: grid; gap: 14px; color: var(--text-3); font-size: 14px; }
.contact-meta .mi { display: inline-flex; align-items: center; gap: 10px; }
.contact-meta svg { width: 16px; height: 16px; fill: var(--teal); opacity: 0.85; flex: none; }
.contact-meta a { color: var(--text-2); transition: color 0.25s; }
.contact-meta a:hover { color: var(--teal-bright); }

.form-card { position: relative; padding: 38px; border: 1px solid var(--line-2); border-radius: 22px; background: rgba(15, 20, 32, 0.92); }
.form-card h3 { font-size: 24px; margin-bottom: 6px; }
.form-card .sub { color: var(--text-3); font-size: 14px; margin-bottom: 26px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.field input, .field select, .field textarea { width: 100%; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--ink); color: var(--text); font: inherit; font-size: 15px; transition: border-color 0.3s, box-shadow 0.3s; appearance: none; -webkit-appearance: none; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2393a1b5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(44, 184, 184, 0.14); }
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.form-foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.form-foot small { color: var(--text-3); font-size: 12.5px; }
.btn.busy { opacity: 0.7; pointer-events: none; }
.form-ok { display: none; position: absolute; inset: 0; border-radius: 22px; background: var(--ink-2); padding: 40px; flex-direction: column; justify-content: center; align-items: flex-start; gap: 14px; }
.form-card.sent .form-ok { display: flex; }
.form-ok .ck { width: 56px; height: 56px; border-radius: 50%; background: var(--teal); display: grid; place-items: center; color: var(--ink); }
.form-ok .ck svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.form-ok h3 { font-size: 28px; }
.form-ok p { color: var(--text-2); max-width: 36ch; }
.form-err { display: none; color: #ff9a9a; font-size: 13px; }
.form-card.error .form-err { display: block; }

/* ---------- footer ---------- */

footer { border-top: 1px solid var(--line); padding: 90px 0 40px; overflow: hidden; position: relative; }
.foot-word { font-family: var(--serif); font-size: clamp(56px, 11vw, 168px); line-height: 0.9; letter-spacing: -0.035em; color: transparent; -webkit-text-stroke: 1px rgba(148, 163, 184, 0.28); white-space: nowrap; user-select: none; margin-bottom: 50px; }
.foot-word em { font-style: italic; -webkit-text-stroke: 0; color: rgba(63, 212, 208, 0.35); }
.foot-grid { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; }
.foot-brand { display: flex; align-items: center; gap: 12px; color: var(--text-2); font-family: var(--serif); font-size: 15px; }
.foot-brand img { height: 30px; width: auto; }
.foot-links { display: flex; gap: 26px; flex-wrap: wrap; }
.foot-links a { font-size: 13.5px; color: var(--text-3); transition: color 0.25s; }
.foot-links a:hover { color: var(--teal-bright); }
.foot-copy { width: 100%; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--text-3); font-size: 12.5px; }

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
  .about-grid { grid-template-columns: 340px 1fr; gap: 50px; }
  .work { grid-template-columns: 1fr; gap: 40px; }
  .phone { right: 10px; bottom: -24px; width: 140px; }
}

@media (max-width: 1023px) {
  .hero-inner { grid-template-columns: 1fr; gap: 30px; }
  .hero-visual { max-width: 320px; margin: 0 auto; order: -1; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .web-grid { grid-template-columns: 1fr; gap: 44px; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps .track { left: 22px; right: auto; top: 22px; bottom: 110px; width: 1px; height: auto; }
  .steps .track i { transform-origin: top; transform: scaleY(0); }
  html.static .steps .track i { transform: scaleY(1); }
  .step { display: grid; grid-template-columns: 44px 1fr; gap: 22px; padding-bottom: 34px; }
  .step h4 { margin-top: 8px; }
  .step p { grid-column: 2; }
  .contact-grid { grid-template-columns: 1fr; gap: 50px; }
}

@media (max-width: 768px) {
  :root { --gutter: 22px; --nav-h: 66px; }
  nav.top, nav.top.scrolled { padding: 12px 20px; }
  .nav-links, .nav-cta { display: none; }
  .burger { display: flex; }
  .brand-name { font-size: 15px; }
  .hero { padding: calc(var(--nav-h) + 36px) 0 70px; min-height: auto; }
  .hero-visual { max-width: 220px; }
  .hero-sub { font-size: 16px; }
  .scroll-hint { display: none; }
  .section { padding: 84px 0; }
  .section-head { grid-template-columns: 1fr; gap: 10px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 30px 20px; }
  .stat:nth-child(odd) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stat h3 { font-size: 40px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .portrait { max-width: 360px; }
  .cards { grid-template-columns: 1fr; }
  .card { padding: 32px 26px 36px; }
  .card.link { flex-direction: column; align-items: flex-start; padding: 30px 26px; }
  .card.link > div { grid-template-columns: 1fr; gap: 14px; }
  .web-fast { grid-template-columns: 1fr; gap: 10px; }
  .work { padding: 22px; border-radius: 20px; }
  .browser .shot { height: 300px; }
  .phone { display: none; }
  .xp-list { padding-left: 34px; }
  .xp-line { left: 8px; }
  .xp-row { grid-template-columns: 1fr; gap: 8px; padding: 26px 12px 26px 16px; }
  .xp-row::before { left: -31px; top: 34px; }
  .ledger-row { grid-template-columns: 1fr; gap: 12px; padding: 20px 4px; }
  .ledger-row h4 { padding-top: 0; }
  .form-card { padding: 26px 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; justify-content: center; }
  .hero-actions, .contact-actions, .web-cta { flex-direction: column; align-items: stretch; }
  .foot-word { font-size: 17vw; }
}

@supports (padding: max(0px)) {
  footer { padding-bottom: max(40px, calc(40px + env(safe-area-inset-bottom))); }
}
