/* ============================================================
   VEILLEMM — WORK LIBRARY
   A clean, light, modern hub for the sample websites.
   Design language: warm paper + indigo + soft shadows + browser mockups.
   (Deliberately different from the dark editorial style of the samples.)
   ============================================================ */

/* ---------- 01 · TOKENS ---------- */
:root {
  color-scheme: light;
  --bg: #F5F3EE;
  --surface: #FFFFFF;
  --ink: #181826;
  --ink-2: #45455A;
  --muted: #71718A;
  --line: rgba(24, 24, 38, 0.1);
  --primary: #4F46E5;
  --primary-dark: #4338CA;
  --primary-soft: #EEF0FF;
  --pink: #EC4899;
  --pink-soft: #FDF0F7;
  /* theme-aware chrome */
  --bg-2: #EEECF7;
  --chrome: #EDECF4;
  --chrome-2: #FBFBFE;
  --dot: #D3D0E8;
  --thumb: #D3D0E8;
  --header-bg: rgba(245, 243, 238, 0.85);
  --field-focus: #FFFFFF;
  --inset: rgba(255, 255, 255, 0.4);
  --shadow-sm: 0 2px 10px rgba(24, 24, 38, 0.05);
  --shadow-md: 0 12px 34px rgba(24, 24, 38, 0.09);
  --shadow-lg: 0 30px 70px rgba(24, 24, 38, 0.14);
  --display: "Sora", system-ui, sans-serif;
  --body: "Manrope", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: 1200px;
  --radius: 22px;
}

/* ---------- 01b · DARK THEME ---------- */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0E0E15;
  --bg-2: #15151F;
  --surface: #17171F;
  --ink: #ECECF4;
  --ink-2: #B9B9CB;
  --muted: #8B8B9F;
  --line: rgba(236, 236, 244, 0.1);
  --primary: #7C6FFF;
  --primary-dark: #9B8FFF;
  --primary-soft: rgba(124, 111, 255, 0.16);
  --pink: #F472B6;
  --pink-soft: rgba(244, 114, 182, 0.14);
  --chrome: #1E1E2A;
  --chrome-2: #262634;
  --dot: #3A3A4C;
  --thumb: #2E2E40;
  --header-bg: rgba(14, 14, 21, 0.82);
  --field-focus: #20202C;
  --inset: rgba(255, 255, 255, 0.05);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 12px 34px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 30px 70px rgba(0, 0, 0, 0.55);
}
:root[data-theme="dark"] .terminal__body {
  background: linear-gradient(180deg, rgba(124, 111, 255, 0.08), transparent 55%), var(--surface);
}
:root[data-theme="dark"] .card:hover { border-color: rgba(124, 111, 255, 0.4); }
:root[data-theme="dark"] .mockup__art::before { opacity: 0.16; }
:root[data-theme="dark"] .pill--cat { color: var(--primary-dark); }
:root[data-theme="dark"] .pill--concept { color: #F472B6; }
:root[data-theme="dark"] .c-key { color: #C084FC; }
:root[data-theme="dark"] .c-rem { color: #7D7D92; }

/* ---------- 02 · RESET / 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(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}
body.menu-open { overflow: hidden; }

#samples, #stack, #creator, #contact { scroll-margin-top: 84px; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea { font: inherit; }

::selection { background: var(--primary); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--thumb); border-radius: 99px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: fixed; top: -100px; left: 16px; z-index: 300;
  background: var(--primary); color: #fff; padding: 10px 18px;
  font-family: var(--mono); font-size: 12px; border-radius: 8px;
  transition: top 0.3s var(--ease);
}
.skip-link:focus { top: 16px; }

.mono { font-family: var(--mono); }
.small { font-size: 12px; letter-spacing: 0.03em; }
em { font-style: normal; }
code, kbd { font-family: var(--mono); }

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }

/* ---------- 03 · TYPO HELPERS ---------- */
.kicker {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--muted); font-weight: 500;
}
.kicker::before { content: "//"; color: var(--primary); font-weight: 600; margin-right: 10px; }
.section-title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(30px, 4.5vw, 48px); line-height: 1.1;
  letter-spacing: -0.02em; margin-top: 10px;
}
.section-title em { color: var(--primary); }

/* ---------- 04 · BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--body); font-weight: 600; font-size: 14px;
  padding: 13px 24px; border-radius: 999px;
  transition: transform 0.3s var(--ease), background 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
  white-space: nowrap;
}
.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 6px 18px rgba(79, 70, 229, 0.28); }
.btn--primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(79, 70, 229, 0.36); }
.btn--ghost { border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); }
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.btn--sm { padding: 9px 16px; font-size: 12.5px; }
.btn--block { width: 100%; }

/* ---------- 05 · HEADER ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  transition: background 0.35s var(--ease), box-shadow 0.35s, border-color 0.35s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand__mark {
  display: grid; place-items: center; width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--primary), var(--pink));
  color: #fff; font-family: var(--display); font-weight: 800; font-size: 17px;
  border-radius: 10px; box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
  transition: transform 0.4s var(--ease);
}
.brand:hover .brand__mark { transform: rotate(-10deg) scale(1.06); }
.brand__name { font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: 0.12em; }

.nav { display: flex; gap: 32px; }
.nav a { font-size: 14px; font-weight: 600; color: var(--ink-2); position: relative; transition: color 0.3s; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 100%; height: 2px;
  background: var(--primary); border-radius: 2px; transform: scaleX(0); transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.nav a:hover { color: var(--primary); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.header-actions { display: flex; align-items: center; gap: 14px; }
.theme-toggle {
  display: grid; place-items: center; flex: 0 0 42px;
  width: 42px; height: 42px; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink);
  transition: transform 0.3s var(--ease), border-color 0.3s, background-color 0.3s, color 0.3s, box-shadow 0.3s;
}
.theme-toggle:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.theme-toggle:active { transform: translateY(0) scale(0.96); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
.burger { display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 10px; }
.burger span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.35s var(--ease), opacity 0.3s; }
.burger.is-open span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger.is-open span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- 06 · MOBILE MENU ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 190; background: var(--bg);
  padding: 110px 24px 40px; opacity: 0; visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-nav { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.mobile-nav > a:not(.btn) { font-family: var(--display); font-size: 34px; font-weight: 700; }
.mobile-nav > a:not(.btn):hover { color: var(--primary); }

/* ---------- 07 · HERO ---------- */
.hero { padding: 140px 0 70px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; top: -180px; right: -120px; width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.12), transparent 65%);
  border-radius: 50%; pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; top: -80px; left: -140px; width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.1), transparent 65%);
  border-radius: 50%; pointer-events: none;
}
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 110% 90% at 50% 0%, #000 20%, transparent 72%);
          mask-image: radial-gradient(ellipse 110% 90% at 50% 0%, #000 20%, transparent 72%);
}
.hero-glyph {
  position: absolute; z-index: 0; pointer-events: none;
  font-family: var(--mono); font-weight: 600; color: var(--primary); opacity: 0.12;
  animation: floaty 9s ease-in-out infinite;
}
.hero-glyph--1 { top: 18%; right: 4%; font-size: clamp(48px, 6vw, 78px); }
.hero-glyph--2 { bottom: 14%; left: 2%; font-size: clamp(36px, 4.5vw, 56px); color: var(--pink); animation-delay: -4s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.hero-inner { position: relative; z-index: 1; }
.hero-copy { min-width: 0; }
.hero-title {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(44px, 8vw, 92px); line-height: 1.02; letter-spacing: -0.03em;
  margin: 18px 0 30px;
}
.hero-title em {
  background: linear-gradient(100deg, var(--primary), var(--pink));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-grid-row {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px; align-items: start; margin-top: 34px;
}
.hero-copy-col { min-width: 0; }
.hero-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.hero-sub { max-width: 520px; color: var(--ink-2); font-size: 17px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-count {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 34px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 18px; font-size: 12px; color: var(--muted);
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.hero-count span:not(.hero-count__tick) { color: var(--primary); font-weight: 500; }
.hero-count__tick { color: #16A34A; font-weight: 500; }

/* ---------- 07b · TERMINAL WINDOW ---------- */
.terminal {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-md);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.3s, background-color 0.3s;
}
.terminal:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(79, 70, 229, 0.3); }
.terminal__bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; background: var(--chrome); border-bottom: 1px solid var(--line);
  transition: background-color 0.35s var(--ease);
}
.terminal__dots { display: flex; gap: 5px; }
.terminal__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--dot); }
.terminal__dots i:nth-child(1) { background: #F87171; }
.terminal__dots i:nth-child(2) { background: #FBBF24; }
.terminal__dots i:nth-child(3) { background: #34D399; }
.terminal__title {
  flex: 1; text-align: center; font-family: var(--mono); font-size: 10.5px;
  color: var(--muted); letter-spacing: 0.04em;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.terminal__badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 9.5px; color: #16A34A; letter-spacing: 0.06em;
}
.terminal__badge::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: #22C55E;
  animation: pulse-dot 2.2s ease-out infinite;
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
.terminal__body {
  min-height: 264px; padding: 16px 18px;
  font-family: var(--mono); font-size: 12.5px; line-height: 1.95;
  color: var(--ink-2);
  background:
    linear-gradient(180deg, rgba(79, 70, 229, 0.045), transparent 55%),
    var(--surface);
  transition: background-color 0.35s var(--ease);
}
.terminal__body--code { min-height: 0; font-size: 13px; }
.t-line { white-space: pre-wrap; }
.t-prompt { color: var(--primary); font-weight: 600; }
.t-path { color: var(--pink); }
.t-cmd { color: var(--ink); }
.t-out { color: var(--muted); white-space: pre-wrap; }
.t-out::before { content: "→ "; color: #16A34A; }
.t-cursor {
  display: inline-block; width: 8px; height: 14px; margin-left: 2px;
  background: var(--primary); vertical-align: text-bottom;
  animation: blink 1.05s steps(2, start) infinite;
}
@keyframes blink { to { visibility: hidden; } }
.c-key { color: #C026D3; font-weight: 500; }
.c-str { color: #16A34A; }
.c-rem { color: #A1A1B5; }

/* ---------- 08 · REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: translateY(0); }

/* ---------- 09 · SAMPLES ---------- */
.samples { padding: 70px 0 110px; }
.samples-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 28px;
  flex-wrap: wrap; margin-bottom: 44px;
}
.search {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px;
  padding: 4px 6px 4px 18px; transition: border-color 0.3s, box-shadow 0.3s, background-color 0.3s;
}
.search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.search__icon { color: var(--primary); font-size: 15px; }
.search input { border: 0; background: transparent; padding: 8px 0; min-width: 200px; font-size: 14px; color: var(--ink); }
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; }
.search__kbd {
  font-family: var(--mono); font-size: 10px; color: var(--muted);
  background: var(--bg); border: 1px solid var(--line); border-radius: 6px;
  padding: 2px 7px; margin-right: 10px;
}

/* ---------- 10 · GRID + CARDS ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid:empty::after {
  content: "No samples match — try another word.";
  grid-column: 1 / -1; text-align: center;
  font-family: var(--mono); font-size: 13px; color: var(--muted); padding: 50px 0;
}

.card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.3s, background-color 0.3s;
  animation: card-in 0.7s var(--ease) backwards;
}
@keyframes card-in { from { opacity: 0; transform: translateY(24px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(79, 70, 229, 0.35); }
.card-link { display: flex; flex-direction: column; height: 100%; color: inherit; }

/* Browser mockup */
.mockup { padding: 12px 12px 0; }
.mockup__frame {
  border-radius: 12px; overflow: hidden; border: 1px solid var(--line);
  background: var(--bg); box-shadow: inset 0 0 0 1px var(--inset);
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.mockup__bar {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px; background: var(--chrome); border-bottom: 1px solid var(--line);
  transition: background-color 0.35s var(--ease);
}
.mockup__dots { display: flex; gap: 5px; }
.mockup__dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--dot); }
.mockup__dots i:nth-child(1) { background: #F87171; }
.mockup__dots i:nth-child(2) { background: #FBBF24; }
.mockup__dots i:nth-child(3) { background: #34D399; }
.mockup__url {
  flex: 1; text-align: center; font-family: var(--mono); font-size: 9.5px;
  color: var(--muted); background: var(--chrome-2); border: 1px solid var(--line);
  padding: 4px 8px; border-radius: 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  transition: background-color 0.35s var(--ease);
}
.mockup__art {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--c1, #E8E6FF), var(--c2, #FFFFFF));
}
.mockup__art::before {
  content: ""; position: absolute; inset: 0; opacity: 0.3;
  background-image: radial-gradient(rgba(255,255,255,0.5) 1.2px, transparent 1.2px);
  background-size: 18px 18px;
  mask-image: linear-gradient(180deg, #000, transparent 80%);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 80%);
}
.mockup__initial {
  position: relative; z-index: 1;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(54px, 7vw, 92px); line-height: 1;
  color: var(--ink, #fff); opacity: 0.85;
  text-shadow: 0 4px 24px rgba(0,0,0,0.18);
}
.mockup__shot {
  position: absolute; inset: 0; z-index: 2;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 0.6s var(--ease);
}
.mockup__shot.is-loaded { opacity: 1; }
.card:hover .mockup__art { transform: scale(1.015); }
.mockup__art, .card:hover .mockup__art { transition: transform 0.8s var(--ease); }

/* Card body */
.card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card__title { font-family: var(--display); font-size: 19px; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
.card__tagline { font-size: 13.5px; color: var(--ink-2); line-height: 1.6; }
.card__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pill {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; font-weight: 500;
}
.pill--cat { background: var(--primary-soft); color: var(--primary); }
.pill--concept { background: var(--pink-soft); color: #BE185D; }

.card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.card__index { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: 0.1em; }
.card__visit {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 700; color: var(--primary);
}
.card__visit .arrow {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--primary-soft); color: var(--primary);
  transition: transform 0.35s var(--ease), background 0.3s, color 0.3s;
}
.card:hover .card__visit .arrow { transform: translate(3px, -3px); background: var(--primary); color: #fff; }

.grid-status { text-align: center; color: var(--muted); margin-top: 34px; min-height: 20px; }
.noscript-note { margin-top: 20px; color: var(--muted); }
.noscript-note a { color: var(--primary); font-weight: 600; }

/* ---------- 10b · STACK ---------- */
.stack { padding: 20px 0 110px; }
.stack-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.stack-copy { min-width: 0; }
.stack-copy p:not(.kicker):not(.section-title) { color: var(--ink-2); margin-top: 18px; max-width: 480px; }

/* ---------- 11 · CREATOR ---------- */
.creator { padding: 100px 0; background: linear-gradient(180deg, var(--bg), var(--bg-2) 55%, var(--bg)); }
.creator-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: center; }

.creator-photo { position: relative; aspect-ratio: 1; display: grid; place-items: center; max-width: 420px; margin-inline: auto; width: 100%; }
.creator-photo__ring {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--primary), var(--pink), var(--primary));
  opacity: 0.85; animation: spin 14s linear infinite;
  -webkit-mask: radial-gradient(circle, transparent 61%, #000 63%);
          mask: radial-gradient(circle, transparent 61%, #000 63%);
}
@keyframes spin { to { transform: rotate(360deg); } }
.creator-photo__img {
  position: relative; z-index: 1; width: 90%; height: 90%;
  object-fit: cover; border-radius: 50%;
  border: 5px solid var(--surface); box-shadow: var(--shadow-lg);
  transition: transform 0.5s var(--ease);
}
.creator-photo:hover .creator-photo__img { transform: scale(1.03); }

.creator-body p { color: var(--ink-2); margin-top: 18px; max-width: 560px; }
.roles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 26px; margin-top: 28px; max-width: 560px; }
.roles li { display: flex; align-items: center; gap: 14px; font-size: 14px; font-weight: 600; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.roles .mono { color: var(--primary); font-size: 10.5px; letter-spacing: 0.12em; }
.creator-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }

/* ---------- 12 · CONTACT ---------- */
.contact { padding: 40px 0 110px; }
.contact-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 30px; padding: clamp(32px, 5vw, 64px);
  box-shadow: var(--shadow-md);
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.contact-copy p { color: var(--ink-2); margin-top: 18px; max-width: 440px; }
.contact-links { display: flex; flex-direction: column; margin-top: 34px; }
.contact-links a {
  display: flex; align-items: baseline; gap: 16px;
  padding: 14px 4px; border-bottom: 1px solid var(--line);
  font-weight: 600; transition: padding-left 0.3s var(--ease), color 0.3s;
}
.contact-links a:first-child { border-top: 1px solid var(--line); }
.contact-links a:hover { padding-left: 12px; color: var(--primary); }
.contact-links .mono { color: var(--primary); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; flex: 0 0 72px; }

.contact-form { display: flex; flex-direction: column; gap: 18px; }
.field label { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--bg); color: var(--ink); font-size: 14.5px;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--primary); background: var(--field-focus);
  box-shadow: 0 0 0 4px var(--primary-soft);
}
.form-note { color: var(--muted); text-align: center; }

/* ---------- 13 · FOOTER ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 30px; background: var(--surface); transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-brand { font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: 0.06em; }
.footer-brand span { color: var(--primary); }
.footer-tag { color: var(--muted); }
.to-top { color: var(--ink-2); font-weight: 600; transition: color 0.3s; }
.to-top:hover { color: var(--primary); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); }

/* ---------- 14 · RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid-row { grid-template-columns: 1fr; }
  .hero-grid-row .terminal { max-width: 560px; }
  .stack-grid { grid-template-columns: 1fr; gap: 40px; }
  .creator-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-card { grid-template-columns: 1fr; gap: 44px; }
}

@media (max-width: 760px) {
  .nav { display: none; }
  .header-actions .btn { display: none; }
  .burger { display: flex; }
  .hero { padding-top: 120px; }
  .samples-head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .search input { min-width: 150px; width: 100%; }
  .search { width: 100%; }
  .roles { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .contact-card { padding: 26px 20px; border-radius: 22px; }
}

/* ---------- 15 · REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
