/* ─────────────────────────────────────────────
   harshsec.in — shared design system
   Change --accent below to re-colour the whole site
   (try #C6F432 for the old lime).
   ───────────────────────────────────────────── */
/* Self-hosted fonts (latin subset) */
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/geist-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/geist-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/geist-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/geist-mono-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/geist-mono-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/instrument-serif-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url('/assets/fonts/instrument-serif-latin-400-italic.woff2') format('woff2'); }

:root {
  --bg: #0D0D0C;
  --surface: #151514;
  --surface-2: #1C1C1A;
  --line: #262622;
  --line-2: #3A3934;
  --text: #EDEAE2;
  --text-2: #C9C5BB;
  --muted: #A29E94;
  --accent: #E8A33D;
  --accent-on-dark: #E8A33D; /* used inside always-dark panels like the terminal */
  --accent-soft: rgba(232, 163, 61, 0.12);
  --on-accent: #0D0D0C;
  --term-bg: #0A0A09;
  --glow: rgba(232, 163, 61, 0.10);
  --ok: #6FCF8E;
  --warn: #E8C547;
  --err: #F07A6A;
  --info: #7FB2F0;

  --sans: 'Geist', ui-sans-serif, system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', monospace;
  --serif: 'Instrument Serif', Georgia, serif;
  --radius: 14px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: dark;
}

html[data-theme="light"] {
  --bg: #F4F2EC;
  --surface: #FFFFFF;
  --surface-2: #ECE9E1;
  --line: #DDD9CF;
  --line-2: #C6C1B4;
  --text: #161513;
  --text-2: #3C3A35;
  --muted: #66625A;
  --accent: #A8670F;
  --accent-soft: rgba(168, 103, 15, 0.10);
  --on-accent: #FFFFFF;
  --glow: rgba(168, 103, 15, 0.08);
  color-scheme: light;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .35s ease, color .35s ease, opacity .3s ease;
}
body.page-out { opacity: 0; }

::selection { background: var(--accent); color: var(--on-accent); }

a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; color: inherit; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); }
.serif-i { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.accent { color: var(--accent); }
.muted { color: var(--muted); }

/* ── Nav ─────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.logo { font-family: var(--mono); font-size: 14px; text-decoration: none; letter-spacing: .3px; white-space: nowrap; flex-shrink: 0; }
.logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 6px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
  font-size: 14px; color: var(--muted); text-decoration: none;
  padding: 10px 12px; border-radius: 8px; white-space: nowrap;
  transition: color .2s ease, background .2s ease;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::before { content: '●'; color: var(--accent); font-size: 9px; margin-right: 7px; vertical-align: 2px; }
.theme-btn {
  width: 40px; height: 40px; flex-shrink: 0; margin-left: 4px;
  display: grid; place-items: center;
  background: transparent; border: 1px solid var(--line-2); border-radius: 10px;
  color: var(--muted); cursor: pointer; transition: all .2s ease;
}
.theme-btn:hover { color: var(--text); border-color: var(--muted); }
.theme-btn svg { width: 16px; height: 16px; }
.theme-btn .i-sun { display: none; }
html[data-theme="light"] .theme-btn .i-sun { display: block; }
html[data-theme="light"] .theme-btn .i-moon { display: none; }

/* ── Type ────────────────────────────────── */
.eyebrow {
  font-family: var(--mono); font-size: 13px; color: var(--muted);
  display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 0;
}
.eyebrow .dot { color: var(--accent); }
.label {
  font-family: var(--mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--muted); margin: 0;
}
.display {
  margin: 0; font-weight: 500;
  font-size: clamp(46px, 8vw, 112px);
  line-height: .98; letter-spacing: -0.045em;
}
.h2 {
  margin: 0; font-weight: 500;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.02; letter-spacing: -0.035em;
}
.h3 { margin: 0; font-weight: 500; font-size: 24px; letter-spacing: -0.02em; line-height: 1.15; }
.lead { font-size: 18px; color: var(--text-2); max-width: 520px; margin: 0; }
.body-2 { color: var(--text-2); margin: 0; }

/* ── Layout helpers ──────────────────────── */
.section { padding: clamp(72px, 9vw, 112px) 0; }
.section-sm { padding: 56px 0; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 40px; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 48px; }

/* ── Buttons ─────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 46px; padding: 0 24px; border-radius: 999px;
  font-size: 15px; font-weight: 500; text-decoration: none; cursor: pointer;
  background: var(--text); color: var(--bg); border: 1px solid var(--text);
  transition: transform .2s var(--ease), background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); font-family: var(--mono); font-size: 14px; }
.btn-ghost:hover { border-color: var(--muted); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.link-u { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.link-u:hover { color: var(--accent); }

/* ── Cards ───────────────────────────────── */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: border-color .3s ease, transform .4s var(--ease);
}
a.card { display: block; text-decoration: none; }
.card.hover:hover, a.card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.card-pad { padding: 24px 26px 28px; }
.card-meta {
  display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px;
  font-family: var(--mono); font-size: 12px; color: var(--muted);
}
.card-visual {
  aspect-ratio: 16 / 10; background: var(--surface-2); border-bottom: 1px solid var(--line);
  display: grid; place-items: center; overflow: hidden; position: relative;
}
.card-visual img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  transition: filter .6s ease, transform .8s var(--ease);
}
.card:hover .card-visual img { filter: grayscale(0); transform: scale(1.03); }

/* ── Tags ────────────────────────────────── */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-family: var(--mono); font-size: 12px; color: var(--text-2);
  padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px;
  transition: border-color .2s ease, color .2s ease;
}
.tag:hover { border-color: var(--accent); color: var(--text); }
.tag.hl { border-color: color-mix(in srgb, var(--accent) 50%, transparent); color: var(--accent); }

/* ── Strip ───────────────────────────────── */
.strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.strip > div { padding: 20px 0; display: flex; gap: 14px; align-items: center; min-width: 0; }
.strip p { margin: 0; }
.strip .val { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Rows (ruled list) ───────────────────── */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rows > li { border-bottom: 1px solid var(--line); }
.row-link { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; text-decoration: none; padding: 20px 0; }
.row-link:hover .row-title { color: var(--accent); }
.row-title { font-size: 17px; transition: color .2s ease; }

/* ── Status dot ──────────────────────────── */
.sdot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; background: var(--line-2); }
.sdot.online { background: var(--ok); }
.sdot.idle { background: var(--warn); }
.sdot.dnd { background: var(--err); }
.sdot.live { background: var(--accent); }

/* ── Forms ───────────────────────────────── */
.field {
  width: 100%; padding: 14px 16px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--line-2);
  color: var(--text); font-size: 15px; outline: none; resize: vertical;
  transition: border-color .2s ease;
}
.field::placeholder { color: var(--muted); }
.field:focus { border-color: var(--accent); }
.field-label { display: block; font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 8px; }

/* ── Footer ──────────────────────────────── */
.footer { border-top: 1px solid var(--line); padding: 36px 0 44px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.socials { display: flex; flex-wrap: wrap; gap: 6px 26px; }
.socials a { font-size: 14px; text-decoration: none; padding: 10px 0; color: var(--text-2); transition: color .2s ease; }
.socials a:hover { color: var(--accent); }
.fine { font-family: var(--mono); font-size: 12px; color: var(--muted); margin: 0; }

/* ── Toast ───────────────────────────────── */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 999;
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  background: var(--text); color: var(--bg);
  font-family: var(--mono); font-size: 13px;
  padding: 12px 20px; border-radius: 999px;
  transition: opacity .3s ease, transform .3s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: var(--err); color: #1A0A07; }

/* ── Reveal ──────────────────────────────── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.d1 { transition-delay: .08s; } .d2 { transition-delay: .16s; } .d3 { transition-delay: .24s; }
@keyframes riseIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.rise { animation: riseIn .8s var(--ease) both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 640px) {
  .nav-links { gap: 0; }
  .nav-links a { padding: 10px 7px; font-size: 13px; }
  .nav-links a.active::before { margin-right: 5px; }
  .nav-contact, .nav-home { display: none; }
  .logo { font-size: 13px; }
}

/* ═════════════════════════════════════════════
   MOTION & TEXTURE LAYER
   ═════════════════════════════════════════════ */

/* Smooth scroll (Lenis) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* Aurora — slow drifting light behind everything */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora i {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55;
  will-change: transform;
}
.aurora .a1 { width: 52vw; height: 52vw; top: -22vw; right: -12vw; background: radial-gradient(circle, rgba(232,163,61,.30), transparent 65%); animation: drift1 38s ease-in-out infinite alternate; }
.aurora .a2 { width: 40vw; height: 40vw; top: 30vh; left: -18vw; background: radial-gradient(circle, rgba(64,110,140,.22), transparent 65%); animation: drift2 46s ease-in-out infinite alternate; }
.aurora .a3 { width: 30vw; height: 30vw; bottom: -14vw; right: 18vw; background: radial-gradient(circle, rgba(170,90,60,.16), transparent 65%); animation: drift3 52s ease-in-out infinite alternate; }
html[data-theme="light"] .aurora i { opacity: .35; }
@keyframes drift1 { to { transform: translate(-8vw, 10vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(10vw, -8vh) scale(.9); } }
@keyframes drift3 { to { transform: translate(-6vw, -12vh) scale(1.1); } }
.aurora-inner { position: absolute; inset: 0; transition: transform 1.2s var(--ease); }

/* Film grain */
body::after {
  content: ''; position: fixed; inset: -50%; z-index: 200; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .07; mix-blend-mode: overlay;
  animation: grain 1.2s steps(6) infinite;
}
html[data-theme="light"] body::after { opacity: .12; mix-blend-mode: multiply; }
@keyframes grain {
  0% { transform: translate(0,0); } 20% { transform: translate(-3%,2%); } 40% { transform: translate(2%,-3%); }
  60% { transform: translate(-2%,-1%); } 80% { transform: translate(3%,3%); } 100% { transform: translate(0,0); }
}

/* Scroll progress */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; transform-origin: 0 50%; transform: scaleX(0); background: var(--accent); }

/* Word-by-word headline reveal */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .04em .12em 0; margin: 0 -.04em -.12em 0; }
.wi { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 55ms); }
.split-in .wi, .visible .wi { transform: none; }

/* Marker stroke that draws itself BEHIND the italic accent words
   (sits under the letters, so descenders like g / p / y pass over it cleanly) */
.draw { position: relative; display: inline-block; z-index: 0; }
.draw::after {
  content: ''; position: absolute; z-index: -1; left: -1%; right: 1%; bottom: .16em; height: .2em; border-radius: .2em .5em .3em .6em;
  background: currentColor; opacity: .2; transform: scaleX(0) skewX(-12deg); transform-origin: 0 50%;
  transition: transform 1.2s var(--ease) .9s;
}
.split-in .draw::after { transform: scaleX(1) skewX(-12deg); }

/* Spotlight cards */
.card, .vcard { position: relative; isolation: isolate; }
.card::before, .vcard::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; z-index: 2; pointer-events: none;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 75%, transparent), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .4s ease;
}
.card::after, .vcard::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: 1; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 7%, transparent), transparent 55%);
  opacity: 0; transition: opacity .4s ease;
}
.card:hover::before, .card:hover::after, .vcard:hover::before, .vcard:hover::after { opacity: 1; }

/* Image / panel reveal */
.clip { clip-path: inset(100% 0 0 0 round var(--radius)); transition: clip-path 1.4s var(--ease); }
.clip.visible, .split-in .clip, .clip.in { clip-path: inset(0 0 0 0 round var(--radius)); }

/* Magnetic buttons */
.btn { will-change: transform; }

/* Marquee */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(18px, 3vw, 30px) 0; user-select: none; }
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-size: clamp(40px, 7vw, 96px); font-weight: 500; letter-spacing: -0.04em; line-height: 1;
  white-space: nowrap; padding-right: .5em; color: transparent; -webkit-text-stroke: 1px var(--line-2);
  transition: -webkit-text-stroke-color .3s ease;
}
.marquee-track span.f { color: var(--text); -webkit-text-stroke: 0; font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.marquee-track span.s { color: var(--accent); -webkit-text-stroke: 0; padding-right: .5em; }
@keyframes marquee { to { transform: translateX(-50%); } }

.bleed { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }

/* Giant footer wordmark */
.footer-mark {
  font-size: clamp(64px, 17.5vw, 260px); font-weight: 500; letter-spacing: -0.06em; line-height: .8;
  margin: 0 0 28px; color: transparent; -webkit-text-stroke: 1px var(--line-2);
  white-space: nowrap; overflow: hidden; text-align: center;
}
.footer-mark em { font-family: var(--serif); font-weight: 400; font-style: italic; color: var(--accent); -webkit-text-stroke: 0; letter-spacing: -0.02em; }

/* Live pulse dot (only on live things) */
.sdot.live, .sdot.online { position: relative; }
.sdot.live::after, .sdot.online::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid currentColor;
  color: inherit; opacity: 0; animation: ping 2.4s var(--ease) infinite;
}
.sdot.live { color: var(--accent); } .sdot.online { color: var(--ok); }
@keyframes ping { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(1.8); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .wi { transform: none !important; }
  .clip { clip-path: none !important; }
  .marquee-track, .aurora i, body::after { animation: none !important; }
  .draw::after { transform: scaleX(1) skewX(-12deg); }
}
@media (hover: none) { .card::before, .card::after, .vcard::before, .vcard::after { display: none; } }

/* ═════════════════════════════════════════════
   COMMAND PALETTE
   ═════════════════════════════════════════════ */
.k-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px 0 12px; margin-left: 4px; flex-shrink: 0;
  background: transparent; border: 1px solid var(--line-2); border-radius: 10px; color: var(--muted); cursor: pointer; font-size: 13px;
  transition: color .2s ease, border-color .2s ease;
}
.k-btn:hover { color: var(--text); border-color: var(--muted); }
.k-btn svg { width: 15px; height: 15px; }
kbd { font-family: var(--mono); font-size: 11px; padding: 2px 6px; border: 1px solid var(--line-2); border-radius: 5px; color: var(--muted); background: var(--surface-2); }
.palette { position: fixed; inset: 0; z-index: 300; display: none; align-items: flex-start; justify-content: center; padding: 12vh 16px 16px; background: rgba(0,0,0,.5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.palette.open { display: flex; }
.palette-box { width: 100%; max-width: 620px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden; box-shadow: 0 40px 100px rgba(0,0,0,.45); animation: riseIn .3s var(--ease) both; }
.palette-in { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.palette-in svg { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; }
.palette-in input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; font-size: 16px; color: var(--text); }
.palette-in input::placeholder { color: var(--muted); }
.palette-list { list-style: none; margin: 0; padding: 8px; max-height: min(52vh, 420px); overflow-y: auto; }
.palette-group { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); padding: 12px 12px 6px; }
.palette-item { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 11px 12px; border-radius: 10px; cursor: pointer; font-size: 15px; }
.palette-item small { font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.palette-item span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.palette-item.sel { background: var(--surface-2); box-shadow: inset 2px 0 0 var(--accent); }
.palette-empty { padding: 20px 12px; color: var(--muted); font-family: var(--mono); font-size: 13px; }
.palette-foot { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 12px 18px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 11px; color: var(--muted); }
.palette-foot kbd { margin-right: 4px; }
@media (max-width: 640px) {
  .k-btn { padding: 0; width: 40px; justify-content: center; }
  .k-btn kbd, .palette-foot { display: none; }
  .nav-hide-sm { display: none; }
}
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; }
.footer-links a { font-family: var(--mono); font-size: 12px; color: var(--muted); text-decoration: none; padding: 8px 0; }
.footer-links a:hover { color: var(--accent); }

.b64 { font-size: 10px !important; opacity: .45; word-break: break-all; max-width: 240px; user-select: all; }

/* Footer social links with icons */
.socials { gap: 8px 10px; }
.socials a.soc { display: inline-flex; align-items: center; gap: 9px; padding: 9px 14px 9px 12px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 14px; color: var(--text-2); transition: color .2s ease, border-color .2s ease, background .2s ease, transform .3s var(--ease); }
.socials a.soc svg { width: 16px; height: 16px; flex-shrink: 0; }
.socials a.soc:hover { color: var(--text); border-color: var(--accent); background: var(--accent-soft); transform: translateY(-2px); }
.socials a.soc:hover svg { color: var(--accent); }

/* ═════════════════════════════════════════════
   FOOTER (studio style)
   ═════════════════════════════════════════════ */
.footer { position: relative; border-top: 1px solid var(--line); padding: 0; margin-top: 24px; overflow: hidden; }
.footer::before { content: ''; position: absolute; inset: auto -10% -40% -10%; height: 70%; background: radial-gradient(ellipse at 50% 100%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 65%); pointer-events: none; }
.f-top { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding: clamp(56px, 8vw, 96px) 0 48px; position: relative; }
@media (max-width: 900px) { .f-top { grid-template-columns: repeat(3, minmax(0, 1fr)); } .f-intro { grid-column: 1 / -1; } }
@media (max-width: 560px) { .f-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; } }

.f-status { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-family: var(--mono); font-size: 12px; color: var(--text-2); padding: 7px 14px 7px 12px; border: 1px solid var(--line-2); border-radius: 999px; background: color-mix(in srgb, var(--surface) 60%, transparent); }
.f-cta { margin: 22px 0 0; font-size: clamp(28px, 3.2vw, 40px); font-weight: 500; letter-spacing: -0.035em; line-height: 1.08; }
.f-mail { display: inline-flex; align-items: baseline; gap: 14px; margin-top: 22px; padding: 6px 0; background: none; border: 0; cursor: pointer; color: var(--text); font-size: 17px; text-align: left; }
.f-mail-text { background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 1px no-repeat, linear-gradient(var(--line-2), var(--line-2)) 0 100% / 100% 1px no-repeat; padding-bottom: 4px; transition: background-size .5s var(--ease); }
.f-mail:hover .f-mail-text, .f-mail:focus-visible .f-mail-text { background-size: 100% 1px, 100% 1px; }
.f-mail-hint { font-family: var(--mono); font-size: 11px; color: var(--muted); border: 1px solid var(--line-2); border-radius: 6px; padding: 2px 7px; transition: color .2s ease, border-color .2s ease; }
.f-mail:hover .f-mail-hint { color: var(--accent); border-color: var(--accent); }
.f-mail.copied .f-mail-hint { color: var(--bg); background: var(--accent); border-color: var(--accent); }

.f-col { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.f-col .label { margin-bottom: 12px; }
.f-col a, .f-k { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 15px; color: var(--text-2); text-decoration: none; background: none; border: 0; cursor: pointer; transition: color .25s ease, transform .35s var(--ease); }
.f-col a:hover, .f-k:hover { color: var(--text); transform: translateX(4px); }
.f-col a::before { content: ''; position: absolute; left: -14px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--accent); opacity: 0; transform: scale(.4); transition: opacity .25s ease, transform .35s var(--ease); }
.f-col a:hover::before { opacity: 1; transform: none; }
.f-soc svg { width: 15px; height: 15px; color: var(--muted); transition: color .25s ease; }
.f-soc:hover svg { color: var(--accent); }
.f-soc i { font-style: normal; font-size: 12px; color: var(--muted); opacity: 0; transform: translate(-4px, 4px); transition: all .3s var(--ease); }
.f-soc:hover i { opacity: 1; transform: none; color: var(--accent); }
.f-tag { font-family: var(--mono); font-size: 10px; line-height: 1; padding: 3px 6px; border-radius: 999px; background: var(--accent); color: var(--on-accent); }
.f-k { color: var(--muted); font-size: 13px; gap: 5px; }

/* Wordmark that sinks off the bottom edge */
.f-mark { position: relative; height: clamp(70px, 13vw, 190px); overflow: hidden; user-select: none; -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent); }
.f-mark span { display: block; text-align: center; white-space: nowrap; font-size: clamp(92px, 19vw, 290px); font-weight: 500; letter-spacing: -0.065em; line-height: .78; color: transparent; -webkit-text-stroke: 1px var(--line-2); transform: translateY(18%); transition: transform 1.4s var(--ease), -webkit-text-stroke-color .6s ease; }
.f-mark em { font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: -0.02em; color: var(--accent); -webkit-text-stroke: 0; }
.f-mark.visible span { transform: translateY(0); }
.footer:hover .f-mark span { -webkit-text-stroke-color: var(--muted); }

.f-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-top: 20px; padding-bottom: 28px; border-top: 1px solid var(--line); position: relative; }
.f-bar p { margin: 0; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.f-clock { color: var(--text-2); font-variant-numeric: tabular-nums; }
.f-bar .stamp { padding: 6px 0; }
.f-top-btn { display: inline-flex; align-items: center; gap: 8px; background: none; border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 14px; font-family: var(--mono); font-size: 12px; color: var(--text-2); cursor: pointer; transition: all .25s ease; }
.f-top-btn:hover { color: var(--bg); background: var(--text); border-color: var(--text); }
.f-top-btn span { transition: transform .3s var(--ease); }
.f-top-btn:hover span { transform: translateY(-2px); }
@media (max-width: 640px) { .f-built { display: none; } }

/* ── Phone nav: links move into the Menu (command palette) ── */
.k-menu { display: none; }
@media (max-width: 760px) {
  .nav-links > a { display: none; }
  .nav-links { gap: 8px; overflow: visible; }
  .k-btn { width: auto; padding: 0 14px; gap: 8px; }
  .k-btn svg, .k-btn kbd { display: none; }
  .k-menu { display: inline; font-size: 14px; color: var(--text); }
  .k-menu::before { content: ''; display: inline-block; width: 14px; height: 9px; margin-right: 8px; vertical-align: 1px; border-top: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; }
}

/* ── Serif accents: card titles, status strip, footer links ── */
.card .h3 { font-family: var(--serif); font-weight: 400; font-size: 32px; letter-spacing: -0.01em; line-height: 1.05; }
.strip .val { font-family: var(--serif); font-style: italic; font-size: 21px; letter-spacing: 0; line-height: 1.25; }
.f-col a, .f-col .f-soc { font-family: var(--serif); font-style: italic; font-size: 20px; letter-spacing: 0; }
.f-col .f-tag { font-family: var(--mono); font-style: normal; }
.f-priv { color: var(--text-2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.f-priv:hover { color: var(--accent); text-decoration-color: var(--accent); }

/* ── Logo mark ── */
.logo { display: inline-flex; align-items: center; }
.logo-mark { width: 30px; height: 30px; margin-right: 11px; flex-shrink: 0; display: grid; place-items: center; border-radius: 9px; background: linear-gradient(145deg, var(--surface-2), var(--bg)); border: 1px solid var(--line-2); font-family: var(--serif); font-style: italic; font-size: 21px; line-height: 1; padding-bottom: 3px; color: var(--accent); box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 0 18px -6px color-mix(in srgb, var(--accent) 60%, transparent); transition: transform .5s var(--ease), border-color .3s ease, box-shadow .3s ease; }
.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.06); border-color: color-mix(in srgb, var(--accent) 55%, var(--line-2)); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 0 24px -4px color-mix(in srgb, var(--accent) 70%, transparent); }

/* ── Lighter background effects on phones (smoother scrolling, faster first paint) ── */
@media (max-width: 760px) {
  .aurora i { filter: blur(50px); animation: none; opacity: .4; }
  .aurora .a3 { display: none; }
  body::after { animation: none; }
}

/* ── Email chooser ── */
.mail-sheet { position: fixed; inset: 0; z-index: 320; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(0,0,0,.5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.mail-sheet.open { display: flex; }
.mail-box { position: relative; width: 100%; max-width: 380px; padding: 24px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 18px; box-shadow: 0 40px 100px rgba(0,0,0,.45); animation: riseIn .3s var(--ease) both; }
.mail-addr { margin: 6px 0 18px; font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--text); word-break: break-all; }
.mail-opt { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 50px; padding: 0 16px; margin-top: 8px; border: 1px solid var(--line-2); border-radius: 12px; background: transparent; color: var(--text); font-size: 15px; text-decoration: none; cursor: pointer; transition: border-color .2s ease, background .2s ease; }
.mail-opt i { font-style: normal; color: var(--muted); transition: color .2s ease, transform .3s var(--ease); }
.mail-opt:hover, .mail-opt:focus-visible { border-color: var(--accent); background: var(--accent-soft); outline: none; }
.mail-opt:hover i { color: var(--accent); transform: translateX(3px); }
.mail-close { position: absolute; top: 18px; right: 18px; font-family: var(--mono); font-size: 11px; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 6px; padding: 3px 8px; cursor: pointer; }
@media (max-width: 560px) { .mail-sheet { align-items: flex-end; padding: 0; } .mail-box { max-width: none; border-radius: 20px 20px 0 0; padding-bottom: 32px; } }

/* ── "Powered by" badge ── */
.ai-badge { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px 4px 8px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--text-2); }
.ai-badge svg { width: 14px; height: 14px; color: var(--accent); }
.ai-badge b { font-weight: 500; color: var(--text); }
