/* amyaaz.com — shared styles for home, article and 404 pages */

/* ---------- Tokens ---------- */
:root {
  --bg: #0a0a0f;
  --surface: #111118;
  --surface2: #18181f;
  --border: #2a2a38;
  --accent: #4ade80;
  --accent2: #818cf8;
  --accent3: #f472b6;
  --yellow: #fbbf24;
  --text: #e8e8f0;
  --muted: #8a8aa0;
  --dim: #3a3a4a;
  --nav-bg: rgba(10,10,15,0.72);
  --on-accent: #0a0a0f;
  --input-bg: #0a0a0f;
  --card-glow: rgba(74,222,128,0.10);
  --shadow: 0 30px 60px -30px rgba(0,0,0,0.8);
  --ease: cubic-bezier(.2,.7,.2,1);
  --radius: 14px;
  --maxw: 1200px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --serif: 'DM Serif Display', Georgia, serif;
  --mono: 'Space Mono', ui-monospace, monospace;
  --sans: 'Syne', system-ui, sans-serif;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f6f6f9;
  --surface: #ffffff;
  --surface2: #eeeef4;
  --border: #dadae4;
  --accent: #15803d;
  --accent2: #4f46e5;
  --accent3: #db2777;
  --yellow: #b45309;
  --text: #14141c;
  --muted: #55556a;
  --dim: #b8b8c8;
  --nav-bg: rgba(246,246,249,0.78);
  --on-accent: #ffffff;
  --input-bg: #ffffff;
  --card-glow: rgba(79,70,229,0.08);
  --shadow: 0 30px 60px -34px rgba(20,20,40,0.35);
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  transition: background-color .4s var(--ease), color .4s var(--ease);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 1000;
  background: var(--accent); color: var(--on-accent);
  padding: .6rem 1rem; font-family: var(--mono); font-size: .8rem; text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }

.noise::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .025;
}
.grid-bg {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: .22;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 80%);
}

main, footer { position: relative; z-index: 1; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
section { scroll-margin-top: 80px; }
.section { padding: clamp(4.5rem, 10vw, 8rem) 0; position: relative; }
.section + .section { border-top: 1px solid var(--border); }

.label {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent); display: inline-flex; align-items: center; gap: .75rem; margin-bottom: 1.25rem;
}
.label::before { content: ''; width: 1.75rem; height: 1px; background: currentColor; }
.title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1.05; letter-spacing: -.01em;
  margin-bottom: 1.25rem;
}
.title em { font-style: italic; color: var(--accent2); }
.lead { color: var(--muted); font-size: 1.08rem; max-width: 620px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; margin-bottom: clamp(2.5rem, 5vw, 4rem); }

/* ---------- Buttons ---------- */
.btn {
  --bx: 0px; --by: 0px;
  position: relative; display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase;
  padding: .95rem 1.6rem; border-radius: 999px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; overflow: hidden; isolation: isolate;
  transform: translate(var(--bx), var(--by));
  transition: transform .35s var(--ease), color .3s, border-color .3s, background-color .3s, box-shadow .3s;
}
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: var(--accent); color: var(--on-accent); font-weight: 700; }
.btn-primary::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.35) 50%, transparent 80%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn-primary:hover::before { transform: translateX(120%); }
.btn-primary:hover { box-shadow: 0 10px 30px -10px var(--accent); }
.btn-ghost { color: var(--text); border-color: var(--border); background: transparent; }
.btn-ghost:hover { border-color: var(--accent2); color: var(--accent2); }
button.btn { font: inherit; font-family: var(--mono); font-size: .76rem; }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: transform .45s var(--ease), background-color .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: var(--nav-bg); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border-bottom-color: var(--border); }
.nav.hidden { transform: translateY(-100%); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--text); }
.brand svg { width: 30px; height: 30px; transition: transform .6s var(--ease); }
.brand:hover svg { transform: rotate(-8deg) scale(1.06); }
.brand-name { font-family: var(--mono); font-size: .85rem; letter-spacing: .04em; }
.brand-name b { color: var(--accent); font-weight: 400; }
.mark-stroke { stroke: var(--text); }
.mark-node { fill: var(--accent); }

.nav-links { display: flex; gap: .35rem; list-style: none; }
.nav-links a {
  position: relative; display: block; padding: .5rem .85rem;
  font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; transition: color .25s;
}
.nav-links a::after {
  content: ''; position: absolute; left: .85rem; right: .85rem; bottom: .25rem; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .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-actions { display: flex; align-items: center; gap: .6rem; }
.nav-cta { padding: .6rem 1.1rem; font-size: .68rem; }

.icon-btn {
  width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--border);
  background: transparent; color: var(--muted); display: inline-grid; place-items: center; cursor: pointer;
  transition: color .25s, border-color .25s, transform .4s var(--ease);
}
.icon-btn:hover { color: var(--accent); border-color: var(--accent); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-toggle .sun { display: none; }
:root[data-theme="light"] .theme-toggle .sun { display: block; }
:root[data-theme="light"] .theme-toggle .moon { display: none; }
.theme-toggle:active { transform: rotate(40deg); }

.menu-btn { display: none; }

.menu-btn .menu-btn-inner span { display: block; width: 16px; height: 1.5px; background: currentColor; transition: transform .35s var(--ease), opacity .2s; }
.menu-btn .menu-btn-inner span + span { margin-top: 4px; }
.menu-btn[aria-expanded="true"] .menu-btn-inner span:first-child { transform: translateY(2.75px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn-inner span:last-child { transform: translateY(-2.75px) rotate(-45deg); }
.menu-btn-inner { display: block; }

/* Scroll progress: a ball rolling along the pitch line under the nav */
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; pointer-events: none; }
.progress-line { position: absolute; inset: 0; background: linear-gradient(90deg, var(--accent), var(--accent2)); transform-origin: left; transform: scaleX(var(--p, 0)); }
.progress-ball {
  position: absolute; top: -5px; left: 0; width: 11px; height: 11px;
  transform: translateX(calc(var(--p, 0) * (100vw - 11px))) rotate(calc(var(--p, 0) * 1440deg));
  opacity: var(--po, 0); transition: opacity .3s;
}
.progress-ball svg { width: 100%; height: 100%; display: block; }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99; background: var(--bg);
  padding: 96px var(--gutter) 2rem; display: flex; flex-direction: column; gap: 2rem;
  clip-path: circle(0% at calc(100% - 40px) 34px);
  transition: clip-path .6s var(--ease), visibility 0s .6s; visibility: hidden;
}
.mobile-menu.open { clip-path: circle(150% at calc(100% - 40px) 34px); visibility: visible; transition: clip-path .6s var(--ease); }
.mobile-menu ul { list-style: none; }
.mobile-menu li { border-bottom: 1px solid var(--border); overflow: hidden; }
.mobile-menu li a {
  display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 0;
  font-family: var(--serif); font-size: 2rem; color: var(--text); text-decoration: none;
  transform: translateY(100%); transition: transform .6s var(--ease), color .2s;
}
.mobile-menu li a span { font-family: var(--mono); font-size: .7rem; color: var(--muted); }
.mobile-menu.open li a { transform: none; }
.mobile-menu.open li:nth-child(2) a { transition-delay: .05s; }
.mobile-menu.open li:nth-child(3) a { transition-delay: .1s; }
.mobile-menu.open li:nth-child(4) a { transition-delay: .15s; }
.mobile-menu.open li:nth-child(5) a { transition-delay: .2s; }
.mobile-menu.open li:nth-child(6) a { transition-delay: .25s; }
.mobile-menu li a:hover { color: var(--accent); }
.mobile-menu .meta { font-family: var(--mono); font-size: .72rem; color: var(--muted); margin-top: auto; display: grid; gap: .4rem; }
.mobile-menu .meta a { color: var(--accent); text-decoration: none; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 120px 0 4rem; overflow: hidden; }
.hero-blobs { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .16; will-change: transform; }
.blob-1 { width: 620px; height: 620px; top: -18%; left: -12%; background: radial-gradient(circle, var(--accent) 0%, transparent 65%); animation: drift1 18s ease-in-out infinite; }
.blob-2 { width: 560px; height: 560px; top: 0; right: -14%; background: radial-gradient(circle, var(--accent2) 0%, transparent 65%); animation: drift2 22s ease-in-out infinite; }
.blob-3 { width: 520px; height: 520px; bottom: -25%; left: 30%; background: radial-gradient(circle, var(--accent3) 0%, transparent 65%); opacity: .1; animation: drift3 26s ease-in-out infinite; }
:root[data-theme="light"] .blob { opacity: .12; }
@keyframes drift1 { 50% { transform: translate(80px, 60px) scale(1.1); } }
@keyframes drift2 { 50% { transform: translate(-90px, 80px) scale(.92); } }
@keyframes drift3 { 50% { transform: translate(60px, -70px) scale(1.08); } }

.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; width: 100%; }
.eyebrow { font-family: var(--mono); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.5rem; display: flex; align-items: center; gap: .75rem; }
.eyebrow .dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); } 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.hero h1 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(2.5rem, 4.5vw, 4.6rem);
  line-height: 1.02; letter-spacing: -.02em; margin-bottom: 1.5rem;
}
.hero h1 em { font-style: italic; color: var(--accent2); }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .line > span { display: inline-block; transform: translateY(105%); animation: rise 1s var(--ease) forwards; }
.hero h1 .line:nth-child(2) > span { animation-delay: .1s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .2s; }
@keyframes rise { to { transform: none; } }
.hero-sub { font-size: clamp(1rem, 1.6vw, 1.18rem); color: var(--muted); max-width: 560px; margin-bottom: 2.25rem; }
.hero-sub strong { color: var(--text); font-weight: 600; }
.hero-ctas { display: flex; gap: .9rem; flex-wrap: wrap; margin-bottom: 2.75rem; }
.fade-up { opacity: 0; transform: translateY(18px); animation: fadeUp .9s var(--ease) forwards; }
.d1 { animation-delay: .35s; } .d2 { animation-delay: .5s; } .d3 { animation-delay: .65s; } .d4 { animation-delay: .8s; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

.trust { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip {
  display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .8rem; border-radius: 999px;
  border: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 70%, transparent);
  font-family: var(--mono); font-size: .66rem; letter-spacing: .06em; color: var(--muted); text-decoration: none;
  transition: border-color .25s, color .25s, transform .35s var(--ease);
}
.chip:hover { border-color: var(--accent); color: var(--text); transform: translateY(-2px); }
.chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: inline-block; }
.chip i.p { background: var(--accent2); } .chip i.k { background: var(--accent3); }

.portrait { position: relative; perspective: 1000px; justify-self: end; width: min(420px, 100%); }
.portrait-card {
  position: relative; border-radius: 22px; overflow: hidden; border: 1px solid var(--border);
  background: var(--surface); box-shadow: var(--shadow);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d;
  transition: transform .5s var(--ease);
}
.portrait-card img { width: 100%; aspect-ratio: 4/5; object-fit: cover; filter: grayscale(.35) contrast(1.05); transition: filter .6s var(--ease), transform 1.2s var(--ease); }
.portrait:hover .portrait-card img { filter: none; transform: scale(1.03); }
.portrait-card::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(400px circle at var(--gx, 50%) var(--gy, 30%), rgba(255,255,255,.14), transparent 45%),
              linear-gradient(180deg, transparent 55%, rgba(10,10,15,.75));
}
.portrait-caption { position: absolute; left: 1.1rem; right: 1.1rem; bottom: 1rem; z-index: 2; display: flex; justify-content: space-between; align-items: end; color: #f0f0f6; }
.portrait-caption b { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; display: block; line-height: 1.1; }
.portrait-caption small { font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.status { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--mono); font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; padding: .35rem .6rem; border-radius: 999px; background: rgba(10,10,15,.6); border: 1px solid rgba(255,255,255,.15); backdrop-filter: blur(6px); }
.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #4ade80; }

.float-tag {
  position: absolute; z-index: 3; font-family: var(--mono); font-size: .66rem; letter-spacing: .08em;
  padding: .5rem .75rem; border-radius: 10px; background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow); color: var(--text); white-space: nowrap; animation: bob 6s ease-in-out infinite;
}
.float-tag b { color: var(--accent); font-weight: 400; }
.float-tag.t1 { top: 9%; left: -14%; }
.float-tag.t2 { top: 42%; right: -10%; animation-delay: -2s; }
.float-tag.t2 b { color: var(--accent2); }
.float-tag.t3 { bottom: 20%; left: -18%; animation-delay: -4s; }
.float-tag.t3 b { color: var(--accent3); }
@keyframes bob { 50% { transform: translateY(-10px); } }

.stats { display: grid; grid-template-columns: repeat(3, auto); gap: 2.5rem; margin-top: .5rem; }
.stat-num { font-family: var(--serif); font-size: 2.4rem; line-height: 1; }
.stat-num sup { color: var(--accent); font-size: .55em; }
.stat-label { font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: .4rem; }

.scroll-cue { position: absolute; left: 50%; bottom: 1.5rem; transform: translateX(-50%); z-index: 1; font-family: var(--mono); font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); display: grid; justify-items: center; gap: .5rem; text-decoration: none; }
.scroll-cue::after { content: ''; width: 1px; height: 36px; background: linear-gradient(var(--accent), transparent); animation: cue 2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Ticker ---------- */
.ticker-wrap { position: relative; z-index: 1; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); overflow: hidden; padding: 1rem 0;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.ticker { display: flex; gap: 3rem; width: max-content; animation: ticker 40s linear infinite; font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.ticker-wrap:hover .ticker { animation-play-state: paused; }
.ticker .a { color: var(--accent); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Cards (shared spotlight hover) ---------- */
.card {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem; overflow: hidden; isolation: isolate;
  transition: transform .5s var(--ease), border-color .4s, box-shadow .5s var(--ease);
}
.card::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), var(--card-glow), transparent 55%);
}
.card::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), var(--accent), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card:hover::before, .card:hover::after { opacity: 1; }

/* Services */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.service .num { font-family: var(--mono); font-size: .66rem; color: var(--muted); letter-spacing: .14em; }
.service .ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin: 1.1rem 0 1.25rem; border: 1px solid var(--border); color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); transition: transform .6s var(--ease); }
.service:hover .ico { transform: rotate(-8deg) scale(1.08); }
.service .ico svg { width: 22px; height: 22px; }
.service.c2 .ico { color: var(--accent2); background: color-mix(in srgb, var(--accent2) 8%, transparent); }
.service.c3 .ico { color: var(--accent3); background: color-mix(in srgb, var(--accent3) 8%, transparent); }
.service.c4 .ico { color: var(--yellow); background: color-mix(in srgb, var(--yellow) 8%, transparent); }
.service h3 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; line-height: 1.15; margin-bottom: .6rem; }
.service p { color: var(--muted); font-size: .95rem; margin-bottom: 1.25rem; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.tag { font-family: var(--mono); font-size: .62rem; letter-spacing: .05em; padding: .25rem .55rem; border: 1px solid var(--border); border-radius: 6px; color: var(--muted); transition: border-color .3s, color .3s; }
.card:hover .tag { border-color: var(--dim); color: var(--text); }

/* Game plan (process) */
.plan { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; counter-reset: step; }
.plan::before { content: ''; position: absolute; left: 0; right: 0; top: 23px; height: 1px; background: var(--border); }
.plan-line { position: absolute; left: 0; top: 23px; height: 1px; width: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2)); transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease); }
.plan.in .plan-line { transform: scaleX(1); }
.step { position: relative; padding-right: 1.5rem; }
.step .node { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg); display: grid; place-items: center; font-family: var(--mono); font-size: .72rem; color: var(--accent); position: relative; z-index: 1; margin-bottom: 1.4rem; transition: border-color .3s, background-color .3s, color .3s, transform .5s var(--ease); }
.step:hover .node { background: var(--accent); color: var(--on-accent); border-color: var(--accent); transform: scale(1.08); }
.step .k { font-family: var(--mono); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.step h3 { font-family: var(--serif); font-weight: 400; font-size: 1.45rem; margin: .2rem 0 .5rem; }
.step p { color: var(--muted); font-size: .92rem; }

/* Stack */
.stack { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.stack .card { padding: 1.75rem; }
.stack-ico { font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; color: var(--accent); border: 1px solid currentColor; display: inline-block; padding: .2rem .5rem; border-radius: 5px; margin-bottom: 1rem; }
.stack-ico.purple { color: var(--accent2); } .stack-ico.pink { color: var(--accent3); } .stack-ico.yellow { color: var(--yellow); }
.stack h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .5rem; }
.stack p { color: var(--muted); font-size: .9rem; margin-bottom: 1.1rem; }

/* Solutions / work patterns */
.work { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.work .card { display: flex; flex-direction: column; text-decoration: none; color: inherit; min-height: 260px; }
.work .k { font-family: var(--mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.work h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 2.5vw, 2rem); line-height: 1.12; margin-bottom: .8rem; }
.work p { color: var(--muted); font-size: .95rem; }
.work .more { margin-top: auto; padding-top: 1.5rem; font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: .5rem; transition: color .3s, gap .4s var(--ease); }
.work .card:hover .more { color: var(--accent); gap: .9rem; }
.work .flow { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; margin-top: 1.25rem; font-family: var(--mono); font-size: .62rem; color: var(--muted); }
.work .flow span { border: 1px solid var(--border); padding: .2rem .5rem; border-radius: 6px; }
.work .flow i { width: 14px; height: 1px; background: var(--dim); position: relative; overflow: hidden; }
.work .flow i::after { content: ''; position: absolute; inset: 0; background: var(--accent); transform: translateX(-100%); }
.work .card:hover .flow i::after { animation: signal 1.2s var(--ease) infinite; }
@keyframes signal { to { transform: translateX(100%); } }

/* Recognition */
.recog { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.25rem; }
.press { display: flex; flex-direction: column; gap: 1rem; text-decoration: none; color: inherit; }
.press .src { display: flex; align-items: center; justify-content: space-between; font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.press blockquote { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.15; }
.press blockquote em { color: var(--accent2); }
.press p { color: var(--muted); font-size: .95rem; }
.press .more { margin-top: auto; font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.cert-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; }
.cert-logo { font-family: var(--mono); font-size: .75rem; font-weight: 700; letter-spacing: .1em; color: var(--accent); border: 1px solid var(--accent); padding: .3rem .6rem; border-radius: 6px; }
.cert-id { font-family: var(--mono); font-size: .66rem; color: var(--muted); }
.cert-name { font-family: var(--serif); font-size: 1.6rem; line-height: 1.1; }
.cert-title { color: var(--accent); font-family: var(--mono); font-size: .75rem; margin: .4rem 0 1.25rem; }
.cert-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 1.25rem; }
.cert-meta span { display: block; font-family: var(--mono); font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.cert-meta b { font-weight: 600; font-size: .85rem; }
.text-link { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease); padding-bottom: 2px; }
.text-link:hover { background-size: 100% 1px; }

/* Articles */
.articles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.article-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; padding: 1.75rem; }
.article-meta { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: .64rem; color: var(--muted); margin-bottom: 1rem; }
.pill { font-family: var(--mono); font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; padding: .2rem .5rem; border-radius: 5px; border: 1px solid currentColor; color: var(--accent); }
.pill.purple { color: var(--accent2); } .pill.pink { color: var(--accent3); } .pill.yellow { color: var(--yellow); }
.article-card h3 { font-size: 1.12rem; line-height: 1.35; font-weight: 700; margin-bottom: .6rem; transition: color .3s; }
.article-card:hover h3 { color: var(--accent); }
.article-card p { color: var(--muted); font-size: .9rem; margin-bottom: 1.25rem; }
.article-card .foot { margin-top: auto; display: flex; justify-content: space-between; font-family: var(--mono); font-size: .64rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.article-card .foot b { font-weight: 400; color: var(--accent); transition: transform .4s var(--ease); }
.article-card:hover .foot b { transform: translateX(4px); }
.articles .article-card.hide { display: none; }
.center { text-align: center; margin-top: 2.5rem; }

/* About */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.about-photo { position: sticky; top: 100px; }
.about-photo .frame { border-radius: 20px; overflow: hidden; border: 1px solid var(--border); position: relative; }
.about-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; filter: grayscale(.4); transition: filter .6s var(--ease), transform 1.2s var(--ease); }
.about-photo:hover img { filter: none; transform: scale(1.04); }
.about-photo .facts { display: grid; gap: .5rem; margin-top: 1.25rem; font-family: var(--mono); font-size: .7rem; color: var(--muted); }
.about-photo .facts div { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--border); padding-bottom: .5rem; }
.about-photo .facts b { color: var(--text); font-weight: 400; text-align: right; }
.about-text p { color: var(--muted); margin-bottom: 1.15rem; font-size: 1.02rem; }
.about-text p strong { color: var(--text); font-weight: 600; }

/* Coach / penalty game */
.coach { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.coach-copy p { color: var(--muted); margin-bottom: 1rem; }
.parallels { display: grid; gap: .6rem; margin-top: 1.5rem; }
.parallels div { display: grid; grid-template-columns: 1fr auto 1fr; gap: .75rem; align-items: center; font-family: var(--mono); font-size: .7rem; color: var(--muted); padding: .7rem .9rem; border: 1px solid var(--border); border-radius: 10px; transition: border-color .3s, color .3s; }
.parallels div:hover { border-color: var(--accent); color: var(--text); }
.parallels i { width: 22px; height: 1px; background: var(--accent); }
.parallels span:last-child { text-align: right; }
.game { padding: 0; }
.game-head { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.game-head b { color: var(--text); font-weight: 400; }
.game canvas { display: block; width: 100%; height: 340px; touch-action: none; cursor: crosshair; }
.game canvas:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.game-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .9rem 1.25rem; border-top: 1px solid var(--border); font-family: var(--mono); font-size: .64rem; color: var(--muted); }
.game-foot button { padding: .55rem 1rem; font-size: .64rem; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); }
.contact h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1; margin-bottom: 1.25rem; }
.contact h2 em { color: var(--accent); font-style: italic; }
.links { display: grid; gap: .7rem; margin-top: 2rem; }
.link-row { display: flex; align-items: center; gap: 1rem; padding: .95rem 1.1rem; border: 1px solid var(--border); border-radius: 12px; text-decoration: none; color: var(--text); font-family: var(--mono); font-size: .76rem; transition: border-color .3s, color .3s, transform .4s var(--ease), background-color .3s; }
.link-row .li { width: 1.6rem; color: var(--muted); }
.link-row .go { margin-left: auto; color: var(--muted); transition: transform .4s var(--ease), color .3s; }
.link-row:hover { border-color: var(--accent); transform: translateX(4px); }
.link-row:hover .go { transform: translate(3px, -3px); color: var(--accent); }
.form { display: grid; gap: 1rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: var(--input-bg);
  border: 1px solid var(--border); border-radius: 12px; padding: 1.35rem 1rem .55rem; transition: border-color .3s, box-shadow .3s;
}
.field textarea { min-height: 160px; resize: vertical; }
.field label { position: absolute; left: 1rem; top: 1rem; font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; color: var(--muted); pointer-events: none; transition: transform .25s var(--ease), font-size .25s, color .25s; transform-origin: left top; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-.6rem) scale(.82); color: var(--accent); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-family: var(--mono); font-size: .75rem; min-height: 1.2em; }
.form-status.ok { color: var(--accent); } .form-status.err { color: var(--accent3); }
.form small { font-family: var(--mono); font-size: .64rem; color: var(--muted); }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 3rem 0 2rem; }
.foot-grid { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; align-items: flex-start; }
.foot-grid p { color: var(--muted); font-size: .85rem; max-width: 340px; margin-top: .8rem; }
.foot-links { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.foot-links div { display: grid; gap: .45rem; align-content: start; }
.foot-links span { font-family: var(--mono); font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); margin-bottom: .2rem; }
.foot-links a { font-size: .88rem; color: var(--muted); text-decoration: none; transition: color .25s; }
.foot-links a:hover { color: var(--accent); }
.foot-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); font-family: var(--mono); font-size: .64rem; color: var(--muted); letter-spacing: .06em; }
.foot-bottom .avail { display: inline-flex; align-items: center; gap: .5rem; }
.foot-bottom .avail::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 2.4s infinite; }

/* ---------- Article pages ---------- */
.article-page { padding: 130px 0 5rem; }
.article-page .wrap { max-width: 780px; }
.crumbs { font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 2rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.crumbs a { color: var(--muted); text-decoration: none; } .crumbs a:hover { color: var(--accent); }
.article-page h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 5.5vw, 3.6rem); line-height: 1.08; margin: 1rem 0 1.25rem; }
.byline { display: flex; align-items: center; gap: .9rem; font-family: var(--mono); font-size: .7rem; color: var(--muted); padding-bottom: 2rem; margin-bottom: 2.5rem; border-bottom: 1px solid var(--border); }
.byline img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.byline b { color: var(--text); font-weight: 400; display: block; }
.prose { font-size: 1.08rem; line-height: 1.85; }
.prose p { color: color-mix(in srgb, var(--text) 82%, var(--muted)); margin-bottom: 1.35rem; }
.prose h2 { font-family: var(--serif); font-weight: 400; font-size: 1.85rem; margin: 2.75rem 0 1rem; line-height: 1.2; }
.prose ul { margin: 0 0 1.5rem 1.25rem; color: color-mix(in srgb, var(--text) 82%, var(--muted)); }
.prose li { margin-bottom: .5rem; padding-left: .25rem; }
.prose li::marker { color: var(--accent); }
.prose code { font-family: var(--mono); font-size: .85em; background: var(--surface2); border: 1px solid var(--border); padding: .1em .4em; border-radius: 5px; color: var(--accent); }
.prose blockquote { border-left: 2px solid var(--accent2); padding: .5rem 0 .5rem 1.5rem; margin: 2rem 0; font-family: var(--serif); font-size: 1.4rem; line-height: 1.4; color: var(--text); }
.article-cta { margin-top: 3.5rem; padding: 2rem; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.article-cta h2 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; line-height: 1.2; }
.article-cta p { color: var(--muted); font-size: .92rem; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.pager a { padding: 1.25rem 1.4rem; text-decoration: none; color: inherit; }
.pager span { font-family: var(--mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: .35rem; }
.pager b { font-weight: 600; font-size: .95rem; line-height: 1.35; display: block; }
.pager .next { text-align: right; }

/* 404 */
.notfound { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 120px var(--gutter) 4rem; }
.notfound h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(5rem, 18vw, 12rem); line-height: 1; }
.notfound h1 em { color: var(--accent2); }
.notfound p { color: var(--muted); margin: 1rem 0 2rem; }

/* ---------- Reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- Custom cursor (fine pointers only) ---------- */
#cursor, #cursor-ring { display: none; }
@media (hover: hover) and (pointer: fine) {
  .has-cursor, .has-cursor a, .has-cursor button, .has-cursor .card { cursor: none; }
  .has-cursor input, .has-cursor textarea { cursor: text; }
  .has-cursor #cursor, .has-cursor #cursor-ring { display: block; position: fixed; top: 0; left: 0; pointer-events: none; z-index: 10000; border-radius: 50%; }
  #cursor { width: 8px; height: 8px; background: var(--accent); margin: -4px 0 0 -4px; box-shadow: 0 0 10px 2px color-mix(in srgb, var(--accent) 60%, transparent); transition: width .25s var(--ease), height .25s var(--ease), margin .25s var(--ease), background-color .25s; }
  #cursor-ring { width: 36px; height: 36px; margin: -18px 0 0 -18px; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), border-color .3s, opacity .3s; }
  body.cursor-hover #cursor { width: 4px; height: 4px; margin: -2px 0 0 -2px; background: var(--accent2); }
  body.cursor-hover #cursor-ring { width: 56px; height: 56px; margin: -28px 0 0 -28px; border-color: color-mix(in srgb, var(--accent2) 60%, transparent); }
  body.cursor-text #cursor-ring { opacity: 0; }
  body.cursor-game #cursor, body.cursor-game #cursor-ring { opacity: 0; }
}

/* ---------- Page transitions (supported browsers) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-grid; }
  .stack, .articles { grid-template-columns: repeat(2, 1fr); }
  .plan { grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; }
  .plan::before, .plan-line { display: none; }
  .float-tag.t1 { left: -6%; } .float-tag.t3 { left: -8%; } .float-tag.t2 { right: -4%; }
}
@media (max-width: 860px) {
  .hero { padding-top: 100px; min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; }
  .portrait { justify-self: center; width: min(380px, 88%); margin-top: 1rem; }
  .services, .work, .recog, .about, .coach, .contact { grid-template-columns: 1fr; }
  .about-photo { position: static; max-width: 360px; }
  .scroll-cue { display: none; }
}
@media (max-width: 600px) {
  .nav-cta { display: none; }
  .stack, .articles, .plan { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .stat-num { font-size: 1.9rem; }
  .card { padding: 1.5rem; }
  .form .row { grid-template-columns: 1fr; }
  .float-tag { font-size: .58rem; padding: .4rem .6rem; }
  .float-tag.t1 { left: -4%; } .float-tag.t3 { left: -4%; } .float-tag.t2 { right: -4%; }
  .game canvas { height: 300px; }
  .pager { grid-template-columns: 1fr; }
  .pager .next { text-align: left; }
  .cert-meta { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .ticker { animation: none; }
}

@media print {
  .nav, .mobile-menu, .grid-bg, .hero-blobs, #cursor, #cursor-ring, .game, footer { display: none !important; }
  body { background: #fff; color: #000; }
}
