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

:root {
  --ink:        #1a1714;
  --paper:      #f5f1eb;
  --mid:        #e8e0d4;
  --accent:     #0f6fff;
  --muted:      #fff;
  --rule:       rgba(26,23,20,0.1);
  --rule-heavy: rgba(26,23,20,0.2);
}

html { scroll-behavior: smooth; }

body {
  background: #000;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  line-height: 1.75;
  overflow-x: hidden;
}

/* ── HEADER ── */
header {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100vh;
  border-bottom: 1px solid var(--rule-heavy);
  margin: -52px 0 0;
}

.header-text {
  width: 100%;
  max-width: 90rem;
  padding: 20px 72px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.header-top { }

.header-name {
  font-size: clamp(36px, 6.5vw, 96px);
  line-height: 1.15;
  font-weight: 600;
  opacity: 0;
  animation: rise 0.7s 0.25s ease forwards;
}

.header-name em {
  font-style: normal;
  color: var(--accent);
}

.header-bottom {
  opacity: 0;
  animation: rise 0.7s 0.7s ease forwards;
}

.header-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.header-contact a {
  font-size: 14px;
  font-weight: 300;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.header-contact a:hover { color: var(--accent); }

/* ── SCROLL GALLERY ── */
.header-visual {
  background: var(--ink);
  position: relative;
  overflow: hidden;
  opacity: 0;
  animation: fadein 1s 0.2s ease forwards;
}

.header-visual::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 65% 25%, rgba(201,70,10,0.2) 0%, transparent 55%),
    radial-gradient(ellipse at 25% 75%, rgba(201,70,10,0.1) 0%, transparent 50%);
  z-index: 2; pointer-events: none;
}

.scroll-gallery {
  position: absolute; inset: 0;
  display: flex; gap: 3px; padding: 3px;
  overflow: hidden; z-index: 1;
}

.scroll-gallery::before,
.scroll-gallery::after {
  content: '';
  position: absolute; left: 0; right: 0;
  height: 160px; z-index: 3; pointer-events: none;
}
.scroll-gallery::before { top: 0; background: linear-gradient(to bottom, #1a1714, transparent); }
.scroll-gallery::after  { bottom: 0; background: linear-gradient(to top, #1a1714, transparent); }

.scroll-col { flex: 1; overflow: hidden; height: 100%; }

.scroll-track {
  display: flex; flex-direction: column;
  gap: 3px; will-change: transform;
}

.scroll-track.down { animation: scrollDown 26s linear infinite; }
.scroll-track.up   { animation: scrollUp   32s linear infinite; }

.scroll-slot {
  width: 100%; height: 260px;
  flex-shrink: 0; overflow: hidden;
  background: #2c2825;
}

.scroll-slot img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

.scroll-col:hover .scroll-track { animation-play-state: paused; }

@keyframes scrollDown {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}
@keyframes scrollUp {
  from { transform: translateY(-50%); }
  to   { transform: translateY(0); }
}

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(16px);
  width: 100%;
}

.nav-inner {
  max-width: 90rem; 
  margin: 0 auto;
  padding: 0 72px;
  display: flex; align-items: center;
  justify-content: space-between;
  height: 52px;
}

.nav-name {
  font-size: 14px; font-weight: 300;
  letter-spacing: -0.01em;
}

.nav-name a { 
  color: #fff;
  text-decoration: none;
}

.nav-links { display: flex; gap: 40px; list-style: none; }

.nav-links a {
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  transition: color 0.2s;
}

/* ── HAMBURGER ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 11px;
  width: 22px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: #fff;
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-drawer {
  display: none;
  position: fixed;
  top: 52px;
  left: 0; right: 0;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--rule);
  padding: 16px 40px 24px;
  z-index: 49;
}

.nav-drawer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.nav-drawer li a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-drawer li:last-child a { border-bottom: none; }
.nav-drawer li a:hover { color: var(--accent); }

@media (max-width: 1024px) {
  .nav-toggle { display: flex; }
  .nav-drawer.open { display: block; }
}

@media (max-width: 600px) { 
  .nav-drawer { padding: 16px 24px 24px; }
}

.nav-links a:hover { color: var(--accent); }

/* ── MAIN ── */
main {  }

/* ── OPENING ARGUMENT ── */
.opening {
  padding: 120px 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.opening-lede {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.opening-lede em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.opening-body p {
  font-size: 16px;
  line-height: 1.85;
  margin-bottom: 20px;
  color: var(--ink);
}

.opening-body p:last-child { margin-bottom: 0; }

/* ── WORK SECTIONS ── */
.work-section {
  padding: 96px 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 80px;
  align-items: start;
}

.work-label { position: sticky; top: 72px; }

.work-num {
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}

.work-title {
  font-family: 'Playfair Display', serif;
  font-size: 28px; line-height: 1.2;
  font-weight: 700; letter-spacing: -0.01em;
}

.work-title em { font-style: italic; font-weight: 400; }

.work-rule {
  width: 28px; height: 2px;
  background: var(--accent);
  margin-top: 20px;
}

.work-body p {
  font-size: 16px;
  line-height: 1.85;
  margin-bottom: 22px;
}

.work-body p:last-child { margin-bottom: 0; }

/* callout — a single strong sentence pulled out */
.callout {
  margin: 36px 0;
  padding: 28px 32px;
  background: var(--ink);
  color: var(--paper);
}

.callout p {
  font-family: 'Playfair Display', serif;
  font-size: 19px; line-height: 1.5;
  font-style: italic;
  margin: 0 !important;
  color: var(--paper) !important;
}

/* stat inline */
.stat-inline {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  margin: 4px 0;
}

.stat-n {
  font-family: 'Playfair Display', serif;
  font-size: 28px; font-weight: 700;
  color: var(--accent); line-height: 1;
}

.stat-l {
  font-size: 12px; font-weight: 400;
  color: var(--muted); letter-spacing: 0.04em;
}

.stats-row {
  display: flex; flex-wrap: wrap;
  gap: 0; margin: 36px 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}

.stat-cell {
  flex: 1; min-width: 140px;
  padding: 24px 20px;
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
}

.stat-cell .n {
  font-family: 'Playfair Display', serif;
  font-size: 36px; font-weight: 700;
  line-height: 1; color: var(--ink);
  margin-bottom: 6px;
}

.stat-cell .l {
  font-size: 11px; font-weight: 400;
  color: var(--muted); letter-spacing: 0.06em;
  text-transform: uppercase; line-height: 1.4;
}

/* image grid */
.img-grid {
  display: grid;
  gap: 3px;
  margin-top: 40px;
}

.grid-2   { grid-template-columns: 1fr 1fr; }
.grid-1-2 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.grid-1-2 .span-2 { grid-row: span 2; }

.img-slot {
  aspect-ratio: 4/3;
  background: var(--mid);
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.img-slot:hover { background: #ddd5c8; }
.img-slot.tall  { aspect-ratio: 3/4; }
.img-slot.wide  { aspect-ratio: 16/7; grid-column: span 2; }

.img-slot input[type="file"] {
  position: absolute; inset: 0;
  opacity: 0; cursor: pointer;
  width: 100%; height: 100%;
}

.img-slot img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: none;
}

.img-slot.filled img { display: block; }
.img-slot.filled .slot-ui { display: none; }

.slot-ui {
  display: flex; flex-direction: column;
  align-items: center; gap: 8px;
  pointer-events: none;
}

.slot-ui svg {
  width: 24px; height: 24px;
  color: var(--muted); opacity: 0.35;
}

.slot-ui span {
  font-size: 9px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); opacity: 0.45;
  text-align: center; padding: 0 20px;
}

/* ── HOW I WORK ── */
.how-section {
  padding: 96px 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 80px;
}

.how-items {
  display: flex; flex-direction: column; gap: 0;
}

.how-item {
  padding: 32px 0;
  border-bottom: 1px solid var(--rule);
}

.how-item:first-child { padding-top: 0; }
.how-item:last-child { border-bottom: none; padding-bottom: 0; }

.how-item-label {
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}

.how-item p {
  font-size: 16px; line-height: 1.85;
}

/* ── LOOKING FOR ── */
.looking-section {
  padding: 96px 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 80px;
}

.looking-body p {
  font-size: 16px; line-height: 1.85;
  margin-bottom: 22px;
}

.looking-body p:last-child { margin-bottom: 0; }

.looking-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 32px;
}

.tag {
  font-size: 11px; font-weight: 400;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border: 1px solid var(--rule-heavy);
  color: var(--muted);
}

/* ── CTA ── */
.cta-section {
  padding: 120px 0;
}

.cta-section img {
  width: 100%;
}

.cta-inner {
  max-width: 90rem;
  margin: 0 auto;
  padding: 0 72px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px; align-items: end;
}

.cta-headline {
  font-size: clamp(20px, 4.5vw, 40px);
  line-height: 1.1; font-weight: 700;
  letter-spacing: -0.025em;
}

.cta-headline em {
  font-style: italic; font-weight: 400;
  color: var(--accent);
}

.cta-body {
  font-size: 16px; line-height: 1.8;
  margin-top: 30px;
}

.cta-body.statement {
  font-size: 20px;
  font-weight: 700; 
}

.cta-details { display: flex; flex-direction: column; gap: 10px; }

.cta-detail {
  display: flex; align-items: center;
  gap: 12px; font-size: 14px;
}

.cta-dot {
  width: 5px; height: 5px;
  border-radius: 50%; background: var(--accent);
  flex-shrink: 0;
}

.cta-detail a {
  color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: color 0.2s, border-color 0.2s;
}

.cta-detail a:hover { color: var(--accent); border-color: var(--accent); }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--rule);
  padding: 28px 72px;
  max-width: 90rem; margin: 0 auto;
  display: flex; justify-content: space-between;
  align-items: center;
  font-size: 11px; color: var(--muted);
  letter-spacing: 0.05em;
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 1; transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js-ready .reveal {
  opacity: 0; transform: translateY(20px);
}

.js-ready .reveal.visible {
  opacity: 1; transform: none;
}

/* ── ANIMATIONS ── */
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

@keyframes fadein {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  header { grid-template-columns: 1fr; }
  .header-visual { height: 400px; }
  .header-text { padding: 20px 40px; border-right: none; border-bottom: 1px solid var(--rule); }
  .nav-inner, .cta-section, footer { padding-left: 40px; padding-right: 40px; }
  .opening, .work-section, .how-section, .looking-section { grid-template-columns: 1fr; gap: 40px; }
  .work-label { position: static; }
  .cta-inner { grid-template-columns: 1fr; gap: 48px; padding: 0; }

  /* horizontal gallery on mobile */
  .scroll-gallery { flex-direction: column; }
  .scroll-gallery::before {
    left: 0; right: auto; top: 0; bottom: 0;
    width: 60px; height: 100%;
    background: linear-gradient(to right, #1a1714, transparent);
  }
  .scroll-gallery::after {
    right: 0; left: auto; top: 0; bottom: 0;
    width: 60px; height: 100%;
    background: linear-gradient(to left, #1a1714, transparent);
  }
  .scroll-col:nth-child(3) { display: none; }
  .scroll-col { flex: 1; overflow: hidden; }
  .scroll-track { flex-direction: row !important; height: 100%; }
  .scroll-track.down { animation: scrollLeft 26s linear infinite; }
  .scroll-track.up   { animation: scrollRight 32s linear infinite; }
  .scroll-slot { width: 160px; height: 100%; flex-shrink: 0; }
  .nav-links { display: none; }
}

@media (max-width: 600px) {
  .header-text { padding: 20px 24px; }
  .nav-inner, .cta-section, footer { padding-left: 24px; padding-right: 24px; }
  .opening { padding: 72px 0 64px; }
  .work-section, .how-section, .looking-section { padding: 64px 0; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-1-2 { grid-template-columns: 1fr; }
  .grid-1-2 .span-2 { grid-row: auto; }
  .stats-row { flex-direction: column; }
  .img-slot.wide { grid-column: span 1; aspect-ratio: 4/3; }
}

@keyframes scrollLeft {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes scrollRight {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

  /* ── TYPEWRITER ── */
  .typewriter-wrap {
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
  }

  .typewriter-cursor {
    display: inline-block;
    font-style: normal;
    font-weight: 300;
    color: var(--accent);
    animation: blink 0.75s step-end infinite;
    line-height: 1;
    margin-left: 2px;
  }

  @keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
  }
