/* =========================================================
   Jeremy Gillespie — Landing Page
   Direction A · The Dossier
   ========================================================= */

:root {
  --bg:          #0d0c0b;
  --bg-alt:      #0a0908;
  --panel:       #131210;
  --panel-2:     #0f0e0c;
  --text:        #ece7df;
  --text-strong: #f3efe8;
  --text-2:      #a39d93;
  --text-3:      #8e887e;
  --muted:       #7d776e;
  --amber:       #e8a14c;
  --amber-bright:#f2b466;
  --line:        rgba(236, 231, 223, 0.08);
  --line-2:      rgba(236, 231, 223, 0.10);

  --serif: 'Newsreader', Georgia, serif;
  --sans:  'Hanken Grotesk', system-ui, sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, monospace;

  --pad-x: clamp(24px, 6vw, 88px);
  --maxw:  1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

code {
  font-family: var(--mono);
  font-size: 0.86em;
  color: #cfc8bd;
}

/* ---------- layout helpers ---------- */
.topbar,
.hero,
.section,
.contact { padding-left: var(--pad-x); padding-right: var(--pad-x); }

.hero,
.section,
.contact { max-width: var(--maxw); margin-inline: auto; }

/* ---------- top bar ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 26px;
  border-bottom: 1px solid var(--line);
  max-width: var(--maxw);
  margin-inline: auto;
}
.topbar__name { font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; }
.topbar__status {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--text-2);
}
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(232, 161, 76, 0.14);
}

/* ---------- shared bits ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0;
}

/* ---------- hero ---------- */
.hero { padding-block: clamp(64px, 9vw, 104px) clamp(56px, 8vw, 92px); }
.hero__headline {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(44px, 6.4vw, 78px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: var(--text-strong);
  max-width: 1000px;
  margin: 40px 0 0;
}
.hero__headline em { font-style: italic; color: var(--amber); }
.hero__sub {
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.6;
  color: var(--text-2);
  max-width: 660px;
  margin: 38px 0 0;
}
.hero__cta {
  display: flex; align-items: center; gap: 28px;
  margin-top: 48px; flex-wrap: wrap;
}
.hero__email { font-family: var(--mono); font-size: 14px; color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--amber);
  color: #1a1305;
  text-decoration: none;
  font-weight: 600; font-size: 16px;
  padding: 16px 26px;
  border-radius: 4px;
  transition: background .18s ease, transform .18s ease;
}
.btn span { font-family: var(--mono); font-size: 14px; }
.btn:hover { background: var(--amber-bright); transform: translateY(-2px); }

/* ---------- numbered sections ---------- */
.section {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 48px;
  padding-block: 72px;
  border-top: 1px solid var(--line);
}
.section__label {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.section__label .num { color: var(--amber); }

.lead {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 2.8vw, 30px);
  line-height: 1.45;
  color: #e6e1d9;
  max-width: 760px;
  margin: 0;
}
.body {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-2);
  max-width: 680px;
  margin: 30px 0 0;
}

/* ---------- services ---------- */
.services { list-style: none; margin: 0; padding: 0; }
.service {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  align-items: baseline;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.service:last-child { border-bottom: 1px solid var(--line); }
.service__num { font-family: var(--mono); font-size: 13px; color: var(--amber); }
.service__title { font-family: var(--serif); font-size: 26px; color: var(--text); }
.service__meta { font-size: 15px; color: var(--text-3); margin-top: 5px; }

/* ---------- featured project ---------- */
.featured {
  display: block;
  text-decoration: none;
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  padding: 38px 40px;
  transition: border-color .2s ease, transform .2s ease;
}
.featured:hover { border-color: rgba(232, 161, 76, 0.45); transform: translateY(-3px); }
.featured__top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 22px;
}
.featured__tag {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--amber);
}
.featured__link { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.featured__title {
  font-family: var(--serif); font-size: clamp(30px, 3.5vw, 38px);
  color: var(--text-strong); line-height: 1.1;
}
.featured__desc {
  font-size: 17px; line-height: 1.65; color: var(--text-2);
  max-width: 640px; margin: 16px 0 0;
}

/* stat grid */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-2);
  border: 1px solid var(--line-2);
  border-radius: 5px;
  overflow: hidden;
  margin-top: 28px;
}
.stat { background: var(--panel-2); padding: 20px 22px; }
.stat__num { font-family: var(--serif); font-size: 32px; color: var(--amber); }
.stat__label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-3); margin-top: 4px;
}

/* work grid */
.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}
.work {
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  padding: 30px 32px;
  transition: border-color .2s ease;
}
.work:hover { border-color: rgba(232, 161, 76, 0.35); }
.work__title { font-family: var(--serif); font-size: 25px; color: var(--text); margin: 0; font-weight: 500; }
.work__desc { font-size: 15px; line-height: 1.6; color: var(--text-3); margin: 12px 0 0; }

/* ---------- how i work ---------- */
.statement {
  font-family: var(--serif);
  font-size: clamp(24px, 2.8vw, 30px);
  line-height: 1.45;
  color: #e6e1d9;
  max-width: 760px;
  margin: 0;
}
.statement em { font-style: italic; color: var(--amber); }

/* ---------- contact ---------- */
.contact {
  padding-block: clamp(64px, 9vw, 96px);
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  max-width: none;
  padding-inline: 0;        /* full-bleed background; inner wrapper holds the gutter */
}
/* Centered, padded column that matches the .section content edge above it. */
.contact__inner { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad-x); }
.contact .eyebrow { margin-bottom: 26px; }
.contact__headline {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(38px, 5vw, 54px);
  line-height: 1.1;
  color: var(--text-strong);
  max-width: 760px;
  margin: 0;
}
.contact__email {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 40px);
  color: var(--amber);
  text-decoration: none;
  margin-top: 30px;
  border-bottom: 1px solid rgba(232, 161, 76, 0.4);
  padding-bottom: 4px;
  transition: border-color .2s ease;
}
.contact__email:hover { border-bottom-color: var(--amber); }
.contact__links {
  display: flex; gap: 28px; margin-top: 48px;
  font-family: var(--mono); font-size: 14px;
}
.contact__links a { color: var(--text-2); text-decoration: none; transition: color .2s ease; }
.contact__links a:hover { color: var(--text); }

/* ---------- scroll reveal (progressive enhancement) ---------- */
/* Only hidden when JS is active; no-JS users see everything. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .section { grid-template-columns: 1fr; gap: 24px; }
  .section__label { padding-bottom: 4px; }
  .work-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .service { grid-template-columns: 40px 1fr; gap: 12px; }
  .service__title { font-size: 22px; }
}
