/* ==========================================================
   Design system: graysonmeyer.com
   Warm dark base, one clay accent, serif display + clean sans,
   mono for spec labels. Everything below pulls from these tokens.
   ========================================================== */
:root {
  /* color */
  --bg: #12110f;
  --bg-raised: #1b1916;
  --bg-sunk: #0c0b0a;
  --line: #2c2924;
  --line-strong: #3d3932;
  --text: #f2ece3;
  --text-soft: #b9b1a5;
  --text-faint: #7d766c;
  --accent: #e07a4f;
  --accent-soft: rgba(224, 122, 79, 0.14);
  --accent-ink: #1a0f0a;

  /* type */
  --font-display: "Instrument Serif", Georgia, serif;
  --font-body: "Inter Tight", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --fs-hero: clamp(4.6rem, 21vw, 11.5rem);
  --fs-h2: clamp(2.4rem, 6vw, 4.6rem);
  --fs-h3: 1.35rem;
  --fs-body: 1.0625rem;
  --fs-small: 0.875rem;
  --fs-label: 0.72rem;

  /* space */
  --s1: 0.25rem;
  --s2: 0.5rem;
  --s3: 0.75rem;
  --s4: 1rem;
  --s5: 1.5rem;
  --s6: 2rem;
  --s7: 3rem;
  --s8: 5rem;
  --s9: 8rem;

  --gutter: clamp(1rem, 4vw, 3rem);
  --maxw: 1240px;
  --radius: 14px;
  --radius-sm: 8px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.label {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.label--accent { color: var(--accent); }
h1, h2, h3 { margin: 0; font-weight: 400; }
h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  line-height: 0.98;
  letter-spacing: -0.015em;
}
h2 em, h1 em { font-style: italic; color: var(--accent); }
p { margin: 0; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--text-soft); max-width: 38ch; line-height: 1.55; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: var(--s2);
  padding: 0.85rem 1.3rem;
  border-radius: 999px;
  font: 500 0.95rem/1 var(--font-body);
  text-decoration: none;
  border: 1px solid var(--line-strong);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:hover { border-color: var(--text-soft); }
.btn:active { transform: scale(0.97); }
.btn--solid { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn--solid:hover { background: #ea8c63; border-color: #ea8c63; }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(18, 17, 15, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.mark { font-family: var(--font-display); font-size: 1.6rem; text-decoration: none; line-height: 1; }
.mark span { color: var(--accent); }
.nav__links { display: flex; gap: var(--s6); list-style: none; margin: 0; padding: 0; }
.nav__links a { text-decoration: none; font-size: var(--fs-small); color: var(--text-soft); transition: color 0.2s; }
.nav__links a:hover { color: var(--text); }
@media (max-width: 720px) { .nav__links { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 96px 0 var(--s7); }
.hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; transform: scale(1.06); animation: settle 2.4s var(--ease) forwards; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(18,17,15,0.55) 0%, rgba(18,17,15,0.1) 30%, rgba(18,17,15,0.55) 62%, var(--bg) 100%),
    linear-gradient(90deg, rgba(18,17,15,0.6) 0%, rgba(18,17,15,0) 60%);
}
@keyframes settle { to { transform: scale(1); } }
.hero__content { position: relative; }
.hero__meta { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5); margin-bottom: var(--s5); }
.hero__meta .label { color: var(--text-soft); }
.hero h1 {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  line-height: 0.86;
  letter-spacing: -0.03em;
}
.hero__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s6); margin-top: var(--s6); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--s3); }

/* ---------- sections ---------- */
section { position: relative; }
.section { padding: var(--s8) 0; }
@media (min-width: 900px) { .section { padding: var(--s9) 0; } }
.section__head { display: grid; gap: var(--s5); margin-bottom: var(--s7); }
@media (min-width: 900px) { .section__head { margin-bottom: var(--s8); } }
@media (min-width: 900px) {
  .section__head { grid-template-columns: 1fr 1fr; align-items: end; }
}
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- about strip ---------- */
.facts { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact { padding: var(--s6) var(--s4) var(--s6) 0; }
.fact + .fact { padding-left: var(--s4); border-left: 1px solid var(--line); }
.fact:nth-child(3) { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
.fact:nth-child(4) { border-top: 1px solid var(--line); }
.fact__value { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); line-height: 1; margin-top: var(--s3); }
@media (min-width: 900px) {
  .facts { grid-template-columns: repeat(4, 1fr); }
  .fact:nth-child(3) { border-left: 1px solid var(--line); padding-left: var(--s4); border-top: 0; }
  .fact:nth-child(4) { border-top: 0; }
}

/* ---------- about ---------- */
.about__grid { display: grid; gap: var(--s6); align-items: center; }
@media (min-width: 900px) { .about__grid { grid-template-columns: 0.8fr 1fr; gap: var(--s8); } }
.about__photo { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.about__text { display: grid; gap: var(--s5); }

/* ---------- claude ---------- */
.claude { background: var(--bg-sunk); }
.claude__grid { display: grid; gap: var(--s6); }
@media (min-width: 960px) { .claude__grid { grid-template-columns: 1.05fr 0.95fr; gap: var(--s8); align-items: start; } }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step { display: grid; grid-template-columns: 3rem 1fr; gap: var(--s4); padding: var(--s5) 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-mono); font-size: var(--fs-small); color: var(--accent); padding-top: 0.2rem;
}
.step h3 { font-size: var(--fs-h3); font-weight: 500; letter-spacing: -0.01em; margin-bottom: var(--s2); }
.step p { color: var(--text-soft); }

.prompt {
  position: sticky; top: 96px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.prompt__bar { display: flex; align-items: center; justify-content: space-between; padding: var(--s3) var(--s4); border-bottom: 1px solid var(--line); }
.prompt__dots { display: flex; gap: 6px; }
.prompt__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.prompt__body { padding: var(--s5); font-family: var(--font-mono); font-size: 0.9rem; line-height: 1.75; color: var(--text); }
.prompt__body .who { color: var(--accent); }
.prompt__body .caret { display: inline-block; width: 0.55em; height: 1.1em; background: var(--accent); vertical-align: -0.2em; margin-left: 2px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.prompt__foot { padding: var(--s4) var(--s5); border-top: 1px solid var(--line); color: var(--text-soft); font-size: var(--fs-small); }

.skills { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s7); }
.chip {
  font-family: var(--font-mono); font-size: 0.78rem;
  padding: 0.45rem 0.75rem; border-radius: 999px;
  border: 1px solid var(--line-strong); color: var(--text-soft);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.chip:hover { border-color: var(--accent); color: var(--text); background: var(--accent-soft); }

.quote { margin: var(--s8) 0 0; max-width: 22ch; font-family: var(--font-display); font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1.05; letter-spacing: -0.01em; }
.quote cite { display: block; margin-top: var(--s4); font-style: normal; }

/* ---------- frontier ---------- */
.frontier__photo { margin: 0 0 var(--s7); position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; }
@media (max-width: 600px) { .frontier__photo { aspect-ratio: 4 / 3; } }
.frontier__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; transition: transform 1.2s var(--ease); }
.frontier__photo:hover img { transform: scale(1.025); }
.frontier__tag { position: absolute; left: var(--s4); bottom: var(--s4); background: rgba(12,11,10,0.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: var(--s2) var(--s3); border-radius: var(--radius-sm); }
.frontier__tag .label { color: var(--text); }

.specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: var(--s8); }
.spec { background: var(--bg); padding: var(--s5); }
.spec__v { font-family: var(--font-display); font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1; margin-top: var(--s2); }
@media (min-width: 900px) { .specs { grid-template-columns: repeat(4, 1fr); } }

.mods { display: grid; gap: var(--s6); }
@media (min-width: 900px) { .mods { grid-template-columns: repeat(3, 1fr); gap: var(--s7); } }
.mods h3 { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); padding-bottom: var(--s3); border-bottom: 1px solid var(--line-strong); margin-bottom: var(--s2); }
.mods ul { list-style: none; margin: 0; padding: 0; }
.mods li { padding: var(--s3) 0; border-bottom: 1px solid var(--line); color: var(--text-soft); font-size: 0.98rem; transition: color 0.2s, padding 0.25s var(--ease); }
.mods li:hover { color: var(--text); padding-left: var(--s2); }

.story { margin-top: var(--s8); display: grid; gap: var(--s5); padding: var(--s6); border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-raised); }
@media (min-width: 900px) { .story { grid-template-columns: 300px 1fr; align-items: center; gap: var(--s7); padding: var(--s6); } }
.story__photo { margin: 0; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4 / 5; }
.story__photo img { width: 100%; height: 100%; object-fit: cover; }
.story > div { display: grid; gap: var(--s4); }
.story p { font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.5; color: var(--text); max-width: 46ch; }

/* ---------- mng ---------- */
.mng { background: var(--accent); color: var(--accent-ink); overflow: hidden; }
.mng .label { color: rgba(26, 15, 10, 0.65); }
.mng h2 em { color: var(--accent-ink); }
.mng__grid { display: grid; gap: var(--s6); }
@media (min-width: 900px) { .mng__grid { grid-template-columns: 1.2fr 0.8fr; align-items: end; } }
.mng p { font-size: 1.15rem; max-width: 40ch; color: rgba(26, 15, 10, 0.82); }
.mng .btn { border-color: var(--accent-ink); color: var(--accent-ink); }
.mng .btn--dark { background: var(--accent-ink); color: var(--text); }
.mng .btn--dark:hover { background: #000; }
.mng__list { list-style: none; padding: 0; margin: var(--s5) 0 0; display: flex; flex-wrap: wrap; gap: var(--s2); }
.mng__list li { font-family: var(--font-mono); font-size: 0.78rem; padding: 0.4rem 0.7rem; border: 1px solid rgba(26,15,10,0.35); border-radius: 999px; }
.mng__ticker { margin-top: var(--s8); border-top: 1px solid rgba(26,15,10,0.25); padding: var(--s5) 0 0; white-space: nowrap; overflow: hidden; }
.mng__ticker div { display: inline-block; font-family: var(--font-display); font-size: clamp(2.4rem, 7vw, 5.5rem); line-height: 1; animation: ticker 28s linear infinite; }
.mng__ticker span { opacity: 0.4; margin: 0 0.35em; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3); }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(4, 1fr); gap: var(--s4); } }
.shot { position: relative; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4 / 5; background: var(--bg-raised); border: 1px solid var(--line); margin: 0; }
.shot--wide { grid-column: span 2; aspect-ratio: auto; min-height: 240px; }
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.shot:hover img { transform: scale(1.04); }
.shot figcaption { position: absolute; left: var(--s3); bottom: var(--s3); }
.shot .tag { color: var(--text); background: rgba(12,11,10,0.7); padding: 0.35rem 0.55rem; border-radius: 6px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.shot--empty { display: grid; place-items: center; border-style: dashed; border-color: var(--line-strong); }
.shot--empty .label { text-align: center; padding: 0 var(--s3); }

/* ---------- contact / footer ---------- */
.contact { padding: var(--s9) 0 var(--s7); }
.contact h2 { font-size: clamp(3rem, 10vw, 8rem); line-height: 0.92; max-width: 15ch; }
.contact__links { margin-top: var(--s7); display: grid; border-top: 1px solid var(--line); }
.contact__links a { display: flex; justify-content: space-between; align-items: center; padding: var(--s5) 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: clamp(1.15rem, 2.4vw, 1.6rem); transition: color 0.2s, padding 0.3s var(--ease); }
.contact__links a:hover { color: var(--accent); padding-left: var(--s3); }
.contact__links .label { transition: color 0.2s; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s3); padding: var(--s6) 0; color: var(--text-faint); font-size: var(--fs-small); }
.foot a { color: var(--text-soft); text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.foot a:hover { color: var(--text); }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero__media img { transform: none; }
}
