/* ============================================================
   arpanstephen.com — Bold redesign
   Warm off-white grid · huge Space Grotesk · bronze accent
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600&display=swap');

:root {
  --paper: #F2EEE6;
  --paper-2: #EAE4D8;
  --ink: #14120D;
  --ink-soft: #524C40;
  --ink-faint: #908774;
  --bronze: #9A7B4F;
  --bronze-deep: #7A5F38;
  --bronze-glow: rgba(154, 123, 79, 0.16);
  --cobalt: #2540D8;
  --cobalt-deep: #1B2EA8;
  --line: rgba(20, 18, 13, 0.14);
  --line-soft: rgba(20, 18, 13, 0.07);
  --grid: rgba(20, 18, 13, 0.045);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --container: 1320px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  overflow-x: hidden;
}

/* Fixed grid backdrop */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 120% 90% at 50% 0%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 120% 90% at 50% 0%, #000 40%, transparent 100%);
}

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

/* ---------- Type ---------- */
.display, h1, h2, h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.92;
  text-transform: uppercase;
}
h1 { font-size: clamp(3.2rem, 13vw, 12rem); }
a { color: inherit; text-decoration: none; }

.label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.26em;
  color: var(--ink-soft);
}
.label--accent { color: var(--bronze-deep); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 40px; }

/* ---------- Nav ---------- */
.nav-wrap { position: fixed; top: 0; left: 0; right: 0; z-index: 80; display: flex; justify-content: center; padding-top: 22px; pointer-events: none; }
.nav {
  pointer-events: auto; display: flex; align-items: center; gap: 4px;
  background: var(--ink); color: var(--paper);
  border-radius: 999px; padding: 7px 7px 7px 22px;
  box-shadow: 0 20px 50px -24px rgba(20,18,13,0.6);
}
.nav__brand { font-family: 'Space Grotesk'; font-weight: 700; font-size: 15px; letter-spacing: -0.01em; text-transform: uppercase; padding-right: 16px; margin-right: 6px; border-right: 1px solid rgba(255,255,255,0.16); }
.nav__links { display: flex; gap: 2px; }
.nav__links a { font-family: 'Space Grotesk'; font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; color: rgba(255,255,255,0.66); padding: 9px 15px; border-radius: 999px; transition: color .4s var(--ease), background .4s var(--ease); }
.nav__links a:hover { color: var(--paper); background: rgba(255,255,255,0.08); }
.nav__links a.is-active { color: var(--ink); background: var(--bronze); }
.nav__cta { display: inline-flex; align-items: center; gap: 9px; background: var(--bronze); color: var(--ink); font-family: 'Space Grotesk'; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; padding: 9px 9px 9px 17px; border-radius: 999px; transition: transform .5s var(--ease), background .5s var(--ease); }
.nav__cta:hover { background: var(--paper); }
.nav__cta:active { transform: scale(0.96); }
.nav__cta .dot { width: 7px; height: 7px; border-radius: 999px; background: var(--cobalt); }
.nav__burger { display: none; }

/* Mobile menu */
.menu { position: fixed; inset: 0; z-index: 90; background: var(--ink); color: var(--paper); display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 40px; opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s var(--ease); }
.menu.is-open { opacity: 1; visibility: visible; }
.menu a { font-family: 'Space Grotesk'; font-weight: 700; text-transform: uppercase; font-size: clamp(2.4rem, 12vw, 4rem); letter-spacing: -0.02em; color: var(--paper); opacity: 0; transform: translateY(24px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.menu a:hover { color: var(--bronze); }
.menu.is-open a { opacity: 1; transform: none; }
.menu.is-open a:nth-child(1){transition-delay:.06s}.menu.is-open a:nth-child(2){transition-delay:.10s}.menu.is-open a:nth-child(3){transition-delay:.14s}.menu.is-open a:nth-child(4){transition-delay:.18s}.menu.is-open a:nth-child(5){transition-delay:.22s}.menu.is-open a:nth-child(6){transition-delay:.26s}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 12px; font-family: 'Space Grotesk'; font-weight: 600; font-size: 15px; text-transform: uppercase; letter-spacing: 0.03em; padding: 16px 16px 16px 28px; border-radius: 999px; transition: transform .5s var(--ease), background .5s var(--ease), color .5s var(--ease); }
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--bronze-deep); }
.btn--primary:active { transform: scale(0.97); }
.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); padding: 16px 28px; }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn .arrow { width: 34px; height: 34px; border-radius: 999px; background: var(--bronze); color: var(--ink); display: grid; place-items: center; transition: transform .5s var(--ease); }
.btn--primary:hover .arrow { transform: translate(3px,-3px); }

/* ---------- Hero ---------- */
.hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 140px 0 60px; }
.hero__top { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: clamp(20px, 4vw, 50px); flex-wrap: wrap; gap: 16px; }
.hero__name { text-align: center; }
.hero__name .line { display: block; overflow: hidden; }
.hero__name .line span { display: inline-block; animation: riseUp 1.1s var(--ease) both; }
.hero__name .line:nth-child(2) span { animation-delay: .09s; }
@keyframes riseUp { from { transform: translateY(110%); } to { transform: translateY(0); } }
.hero__bottom { display: flex; justify-content: space-between; align-items: center; margin-top: clamp(24px, 5vw, 56px); flex-wrap: wrap; gap: 20px; }
.status-pill { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: var(--paper); border-radius: 999px; padding: 11px 20px; font-family: 'Space Grotesk'; font-size: 13px; font-weight: 500; }
.status-pill .blip { width: 8px; height: 8px; border-radius: 999px; background: var(--cobalt); box-shadow: 0 0 0 0 rgba(37,64,216,.5); animation: blip 2s infinite; }
@keyframes blip { 0%{box-shadow:0 0 0 0 rgba(37,64,216,.5)} 70%{box-shadow:0 0 0 9px rgba(37,64,216,0)} 100%{box-shadow:0 0 0 0 rgba(37,64,216,0)} }
.type-cursor { border-right: 2px solid var(--cobalt); animation: caret 1s step-end infinite; padding-right: 2px; }
@keyframes caret { 50% { border-color: transparent; } }
.hero__lede { max-width: 40ch; font-size: clamp(16px, 1.5vw, 19px); color: var(--ink-soft); }

/* ---------- Marquee ---------- */
.marquee { border-top: 1.5px solid var(--line); border-bottom: 1.5px solid var(--line); overflow: hidden; padding: 22px 0; background: var(--ink); color: var(--paper); }
.marquee__track { display: flex; gap: 0; white-space: nowrap; width: max-content; animation: scroll 26s linear infinite; }
.marquee__track span { font-family: 'Space Grotesk'; font-weight: 700; text-transform: uppercase; font-size: clamp(1.4rem, 3vw, 2.4rem); letter-spacing: -0.01em; padding: 0 28px; display: inline-flex; align-items: center; gap: 56px; }
.marquee__track span::after { content: '✦'; color: var(--bronze); font-size: 0.7em; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
section { padding: clamp(80px, 11vw, 160px) 0; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(40px, 6vw, 80px); flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(2.4rem, 6vw, 5rem); }
.sec-head p { max-width: 40ch; color: var(--ink-soft); font-size: 17px; }
.sec-index { font-family: 'Space Grotesk'; font-weight: 700; color: var(--bronze); font-size: clamp(1.2rem,2vw,1.6rem); }

/* ---------- Project rows ---------- */
.projects { border-top: 1.5px solid var(--line); }
.proj {
  display: grid; grid-template-columns: 80px 1fr auto; align-items: center; gap: 32px;
  padding: clamp(28px, 4vw, 48px) 12px; border-bottom: 1.5px solid var(--line);
  position: relative; overflow: hidden; transition: padding-left .5s var(--ease), color .5s var(--ease);
}
.proj::before { content: ''; position: absolute; inset: 0; background: var(--ink); transform: translateY(101%); transition: transform .6s var(--ease); z-index: -1; }
.proj:hover::before { transform: none; }
.proj:hover { color: var(--paper); padding-left: 32px; }
.proj:hover .proj__cat, .proj:hover .proj__meta { color: rgba(255,255,255,0.6); }
.proj:hover .proj__arrow { background: var(--bronze); color: var(--ink); transform: rotate(0deg); }
.proj__num { font-family: 'Space Grotesk'; font-weight: 700; font-size: 1.1rem; color: var(--bronze); }
.proj__title { font-family: 'Space Grotesk'; font-weight: 700; text-transform: uppercase; font-size: clamp(1.6rem, 3.6vw, 3rem); letter-spacing: -0.02em; line-height: 1; }
.proj__cat { font-family: 'Space Grotesk'; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em; color: var(--ink-faint); margin-top: 12px; display: block; }
.proj__meta { font-family: 'Space Grotesk'; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-faint); text-align: right; }
.proj__arrow { width: 52px; height: 52px; border-radius: 999px; border: 1.5px solid currentColor; display: grid; place-items: center; transform: rotate(-45deg); transition: transform .5s var(--ease), background .5s var(--ease), color .5s var(--ease); }

/* ---------- Portrait spotlight ---------- */
.spotlight { background: var(--bronze); color: var(--ink); border-radius: 40px; padding: clamp(36px,5vw,72px); display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; overflow: hidden; }
.spotlight h2 { font-size: clamp(2rem,4.5vw,4rem); color: var(--ink); }
.spotlight p { margin-top: 22px; max-width: 42ch; color: rgba(20,18,13,0.78); font-size: 17px; }
.portrait { aspect-ratio: 4/5; border-radius: 24px; background: rgba(20,18,13,0.08); display: grid; place-items: center; text-align: center; border: 2px dashed rgba(20,18,13,0.25); }
.portrait img { width: 100%; height: 100%; object-fit: cover; border-radius: 24px; }
.portrait .ph { font-family: 'Space Grotesk'; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; font-size: 13px; color: rgba(20,18,13,0.5); padding: 24px; }

/* ---------- CTA footer ---------- */
.cta { text-align: center; padding: clamp(90px, 13vw, 200px) 0; }
.cta h2 { font-size: clamp(2.6rem, 9vw, 9rem); }
.cta h2 em { font-style: normal; color: var(--bronze); }
.cta .btn { margin-top: 44px; }

footer { border-top: 1.5px solid var(--line); padding: 48px 0; }
.foot-grid { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px; }
.foot-grid .label { color: var(--ink-faint); }
.foot-links { display: flex; gap: 22px; }
.foot-links a { font-family: 'Space Grotesk'; font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); transition: color .3s var(--ease); }
.foot-links a:hover { color: var(--bronze-deep); }

/* ---------- Inner-page components ---------- */
.page-hero { padding: 160px 0 40px; }
.page-hero h1 { font-size: clamp(2.8rem, 9vw, 8rem); }
.page-hero .lede { max-width: 54ch; margin-top: 26px; font-size: clamp(16px, 1.6vw, 20px); color: var(--ink-soft); }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.panel { border: 1.5px solid var(--line); border-radius: 26px; padding: 34px; background: rgba(255,255,255,0.35); transition: border-color .4s var(--ease), transform .5s var(--ease); }
.panel:hover { border-color: var(--ink); transform: translateY(-4px); }
.panel h3 { font-size: clamp(1.3rem, 2.5vw, 1.9rem); margin-bottom: 12px; }
.panel p { color: var(--ink-soft); font-size: 15.5px; }
.panel .big-num { font-family: 'Space Grotesk'; font-weight: 700; font-size: clamp(2.6rem, 5vw, 4rem); color: var(--bronze); line-height: 1; margin-bottom: 14px; }
.kicker { font-family: 'Space Grotesk'; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.2em; color: var(--bronze-deep); display: block; margin-bottom: 14px; }
.kicker--cobalt { color: var(--cobalt); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag { font-family: 'Space Grotesk'; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); padding: 7px 13px; border: 1.5px solid var(--line); border-radius: 999px; }

.timeline { border-bottom: 1.5px solid var(--line); }
.tl-row { display: grid; grid-template-columns: 180px 1fr; gap: 32px; padding: 36px 0; border-top: 1.5px solid var(--line); }
.tl-when { font-family: 'Space Grotesk'; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; font-size: 13px; color: var(--cobalt); }
.tl-row h3 { font-size: clamp(1.3rem, 2.6vw, 2rem); margin-bottom: 6px; }
.tl-org { font-family: 'Space Grotesk'; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; font-size: 13px; color: var(--bronze-deep); margin-bottom: 16px; }
.tl-row ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.tl-row li { position: relative; padding-left: 22px; color: var(--ink-soft); font-size: 15.5px; line-height: 1.5; }
.tl-row li::before { content: ''; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 999px; background: var(--bronze); }

.quote-block { border: 1.5px solid var(--line); border-radius: 32px; padding: clamp(40px, 7vw, 90px); text-align: center; }
.quote-block .q { font-family: 'Space Grotesk'; font-weight: 700; text-transform: none; letter-spacing: -0.02em; font-size: clamp(1.8rem, 4.5vw, 3.4rem); line-height: 1.12; max-width: 22ch; margin: 0 auto; }
.quote-block .q em { font-style: normal; color: var(--bronze); }

@media (max-width: 880px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .tl-row { grid-template-columns: 1fr; gap: 10px; }
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"]{transition-delay:.08s}.reveal[data-d="2"]{transition-delay:.16s}.reveal[data-d="3"]{transition-delay:.24s}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .spotlight { grid-template-columns: 1fr; }
  .proj { grid-template-columns: 40px 1fr; }
  .proj__meta { display: none; }
  .proj__num { font-size: 0.9rem; }
}
@media (max-width: 720px) {
  .container { padding: 0 22px; }
  .nav__links, .nav__cta { display: none; }
  .nav__brand { border-right: none; margin-right: 0; padding-right: 6px; }
  .nav__burger { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; background: rgba(255,255,255,0.1); cursor: pointer; }
  .nav__burger span { display: block; width: 17px; height: 1.6px; background: var(--paper); transition: transform .4s var(--ease), opacity .3s; }
  .nav__burger span + span { margin-top: 5px; }
  .nav__burger.is-open span:nth-child(1){transform:translateY(6.6px) rotate(45deg)}
  .nav__burger.is-open span:nth-child(2){opacity:0}
  .nav__burger.is-open span:nth-child(3){transform:translateY(-6.6px) rotate(-45deg)}
  .hero__top, .hero__bottom { flex-direction: column; align-items: flex-start; }
}
