/* ============================================================
   Whiteout Media — minimal, image-forward editorial
   Warm paper canvas · big tight type · serif-italic accents
   (inspired by nainoalanger.com / shortstache.com)
   ============================================================ */

:root {
  --paper:    #ffffff;   /* page canvas (crisp white) */
  --paper-2:  #eef3f9;   /* raised panels (cool light) */
  --ink:      #0a0c10;   /* primary text / near-black */
  --ink-2:    #3a4250;   /* secondary (cool grey) */
  --muted:    #79828f;   /* tertiary / meta */
  --line:     rgba(10, 12, 16, 0.14);
  --line-soft:rgba(10, 12, 16, 0.07);
  --accent:   #1f5fff;   /* crisp modern blue */

  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --serif: 'Bebas Neue', 'Oswald', 'Arial Narrow', Impact, sans-serif; /* display (tall condensed, à la shortstache) */

  --maxw: 1480px;
  --gut: clamp(1.25rem, 5vw, 6rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
html:focus-within { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
em { font-style: normal; }
::selection { background: var(--ink); color: var(--paper); }

/* shared bits ------------------------------------------------ */
.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
}
.section-head { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }
.section-head .eyebrow { margin-bottom: 1.1rem; }
.section-head--split {
  display: flex; flex-wrap: wrap; gap: 2rem 4rem;
  align-items: flex-end; justify-content: space-between;
}
.section-head__note {
  max-width: 30ch; color: var(--ink-2); font-size: 1.02rem;
}

/* reveal animation (progressive enhancement: hidden only when JS is active) */
.js-reveal .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js-reveal .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal { opacity: 1; transform: none; transition: none; }
  html:focus-within { scroll-behavior: auto; }
}

/* ============================ NAV ============================ */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; transition: background .4s var(--ease), box-shadow .4s var(--ease); }
.nav__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 1.5rem var(--gut);
  display: flex; align-items: center; justify-content: space-between;
  transition: padding .4s var(--ease);
}
.nav.scrolled { background: var(--ink); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.10); }
.nav.scrolled .eyebrow { color: rgba(255,255,255,.7); }
.nav.scrolled .nav__cta { border-color: rgba(255,255,255,.5); }
.nav.scrolled .nav__cta:hover { background: #fff; color: var(--ink); border-color: #fff; }
.nav.scrolled .nav__inner { padding-top: 1rem; padding-bottom: 1rem; }
.nav.hero-dark:not(.scrolled) { color: var(--paper); }
.nav.hero-dark:not(.scrolled) .eyebrow { color: rgba(255,255,255,.7); }

.brand__text { font-family: var(--serif); font-size: 1.3rem; letter-spacing: -.01em; font-weight: 500; }
.brand__text span { font-weight: 400; opacity: .6; }

.nav__links { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.4rem); }
.nav__links a { font-size: .9rem; font-weight: 500; letter-spacing: .01em; position: relative; }
.nav__links a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 1px; width: 0;
  background: currentColor; transition: width .35s var(--ease);
}
.nav__links a:not(.nav__cta):hover::after { width: 100%; }
.nav__cta {
  border: 1px solid currentColor; border-radius: 100px;
  padding: .55rem 1.2rem; font-size: .82rem; transition: background .3s var(--ease), color .3s var(--ease);
}
.nav.scrolled .nav__cta:hover, .nav:not(.hero-dark) .nav__cta:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.nav.hero-dark:not(.scrolled) .nav__cta:hover { background: var(--paper); color: var(--ink); }

.nav__burger { display: none; background: none; border: 0; cursor: pointer; width: 30px; height: 22px; position: relative; }
.nav__burger span { position: absolute; left: 0; height: 1.5px; width: 100%; background: currentColor; transition: transform .35s var(--ease), opacity .35s var(--ease); }
.nav__burger span:first-child { top: 6px; }
.nav__burger span:last-child { bottom: 6px; }
.nav__burger.active span:first-child { transform: translateY(5px) rotate(45deg); }
.nav__burger.active span:last-child { transform: translateY(-5px) rotate(-45deg); }

/* ============================ HERO ============================ */
.hero { position: relative; height: 100svh; min-height: 600px; display: flex; align-items: flex-end; color: var(--paper); }
.hero__media { position: absolute; inset: 0; z-index: -1; background: var(--ink); overflow: hidden; }
.hero__media img { transform: scale(1.05); animation: heroZoom 14s var(--ease) forwards; }
.hero__video { width: 100%; height: 100%; object-fit: cover; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero__scrim { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(6,8,14,.46) 0%, rgba(6,8,14,0) 28%, rgba(6,8,14,.14) 60%, rgba(6,8,14,.76) 100%); }
.hero__inner { max-width: var(--maxw); width: 100%; margin: 0 auto; padding: 0 var(--gut) clamp(3.5rem, 9vh, 7rem); }
.hero__eyebrow { font-size: .72rem; letter-spacing: .28em; text-transform: uppercase; font-weight: 600; opacity: .82; margin-bottom: 1.4rem; }
.hero__title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(3rem, 11vw, 9rem); line-height: .94; letter-spacing: -.02em;
  text-shadow: 0 2px 40px rgba(0,0,0,.25);
}
.hero__title em { display: inline-block; }
.hero__lede { margin-top: 1.6rem; max-width: 36ch; font-size: clamp(1rem, 1.4vw, 1.18rem); opacity: .9; }

.hero__scroll {
  position: absolute; right: var(--gut); bottom: clamp(3.5rem, 9vh, 7rem);
  display: flex; flex-direction: column; align-items: flex-end; gap: .9rem;
  font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; opacity: .85;
}
.hero__line { width: 1px; height: 64px; background: currentColor; transform-origin: top; animation: scrollPulse 2.4s var(--ease) infinite; }
@keyframes scrollPulse { 0%,100% { transform: scaleY(.35); opacity: .4; } 50% { transform: scaleY(1); opacity: 1; } }
@media (max-width: 720px) { .hero__scroll { display: none; } }

/* ========================== INTRO =========================== */
.intro { max-width: var(--maxw); margin: 0 auto; padding: clamp(5rem, 14vh, 11rem) var(--gut); display: grid; grid-template-columns: 1fr; gap: 1.4rem; }
.intro__kicker { font-family: var(--serif); color: var(--muted); font-size: .9rem; letter-spacing: .02em; }
.intro__statement {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.6rem, 4.2vw, 3.4rem); line-height: 1.18; letter-spacing: -.01em;
  max-width: 24ch;
}
.intro__statement em { color: var(--accent); }

/* ====================== WORK / MASONRY ====================== */
.work { padding-top: clamp(5rem, 12vh, 9rem); padding-bottom: clamp(3rem, 8vh, 6rem); }
.work .section-head { margin-bottom: clamp(2.5rem, 6vh, 4.5rem); }
.masonry {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut);
  column-count: 3; column-gap: clamp(.9rem, 1.6vw, 1.6rem);
}
.m-item { position: relative; break-inside: avoid; margin-bottom: clamp(.9rem, 1.6vw, 1.6rem); overflow: hidden; background: var(--paper-2); }
.m-item img { transition: transform 1.1s var(--ease); }
.m-item:hover img { transform: scale(1.05); }
.m-item figcaption {
  position: absolute; left: 0; bottom: 0; padding: 1rem 1.1rem;
  width: 100%; color: var(--paper);
  background: linear-gradient(0deg, rgba(6,8,14,.72), rgba(6,8,14,0));
  opacity: 0; transform: translateY(8px); transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.m-item:hover figcaption { opacity: 1; transform: none; }
.m-item figcaption span { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; }
@media (max-width: 980px) { .masonry { column-count: 2; } }
@media (max-width: 560px) { .masonry { column-count: 1; } .m-item figcaption { opacity: 1; transform: none; } }

/* ========================= PROJECTS ========================= */
.projects { padding: clamp(5rem, 12vh, 9rem) 0; }
.projects .section-head { margin-bottom: clamp(3rem, 8vh, 6rem); }
.proj {
  max-width: var(--maxw); margin: 0 auto clamp(4rem, 9vh, 8rem);
  padding: 0 var(--gut);
  display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(1.5rem, 4vw, 4.5rem); align-items: center;
}
.proj--rev .proj__media { order: 2; }
.proj__media { overflow: hidden; background: var(--paper-2); aspect-ratio: 4 / 5; }
.proj__media img { transition: transform 1.2s var(--ease); }
.proj:hover .proj__media img { transform: scale(1.04); }
.proj__num { font-family: var(--serif); font-weight: 600; color: var(--accent); font-size: 1.05rem; letter-spacing: .02em; }
.proj__cat { margin-top: 1rem; font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.proj__title { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 4.5vw, 3.4rem); line-height: 1.04; letter-spacing: -.01em; margin: .5rem 0 1rem; }
.proj__text { color: var(--ink-2); max-width: 42ch; }
.proj__thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.proj__thumbs img { aspect-ratio: 1 / 1; transition: opacity .4s var(--ease); }
.proj__thumbs img:hover { opacity: .82; }
@media (max-width: 820px) {
  .proj { grid-template-columns: 1fr; gap: 1.6rem; }
  .proj--rev .proj__media { order: 0; }
  .proj__media { aspect-ratio: 3 / 4; }
}

/* ======================= DISCIPLINES ======================== */
.disc { padding: clamp(4rem, 10vh, 8rem) 0; border-top: 1px solid var(--line-soft); }
.disc .section-head { margin-bottom: clamp(2.5rem, 6vh, 4rem); }
.disc__list { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); list-style: none; }
.disc__row {
  display: grid; grid-template-columns: 4rem 1fr 1.1fr; gap: 1.5rem 2rem; align-items: baseline;
  padding: 2rem 0; border-top: 1px solid var(--line);
}
.disc__row:last-child { border-bottom: 1px solid var(--line); }
.disc__n { font-family: var(--serif); font-weight: 600; color: var(--accent); }
.disc__row h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.4rem, 2.6vw, 2.1rem); letter-spacing: -.01em; }
.disc__row p { color: var(--ink-2); }
.disc__row { transition: padding-left .4s var(--ease); }
.disc__row:hover { padding-left: .6rem; }
@media (max-width: 720px) {
  .disc__row { grid-template-columns: 2.6rem 1fr; }
  .disc__row p { grid-column: 1 / -1; }
}

/* ========================= STUDIO =========================== */
.studio { background: var(--ink); color: var(--paper); padding: clamp(5rem, 13vh, 10rem) 0; }
.studio__inner { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }
.studio .eyebrow { color: rgba(255,255,255,.55); }
.studio__statement {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.8rem, 5vw, 4rem); line-height: 1.1; letter-spacing: -.01em;
  margin: 1.5rem 0 clamp(2.5rem, 7vh, 5rem); max-width: 22ch;
}
.studio__statement em { color: var(--accent); }
.studio__cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.studio__cols > p { color: rgba(255,255,255,.78); max-width: 46ch; font-size: 1.05rem; }
.studio__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.stat { display: flex; flex-direction: column; gap: .4rem; }
.stat__num { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem); line-height: 1; }
.stat__label { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.5); }
@media (max-width: 720px) { .studio__cols { grid-template-columns: 1fr; } }

/* ========================= CONTACT ========================== */
.contact { position: relative; display: grid; grid-template-columns: 1fr 1fr; min-height: 90vh; }
.contact__media { position: relative; overflow: hidden; }
.contact__media::after { content: ""; position: absolute; inset: 0; background: rgba(6,8,14,.12); }
.contact__inner { padding: clamp(4rem, 10vh, 8rem) var(--gut); display: flex; flex-direction: column; justify-content: center; max-width: 640px; }
.contact__title { font-family: var(--serif); font-weight: 500; font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1; letter-spacing: -.015em; margin: 1.2rem 0 1.4rem; }
.contact__lede { color: var(--ink-2); max-width: 42ch; margin-bottom: 2.5rem; }
.contact__form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; max-width: 520px; }
.field--full { grid-column: 1 / -1; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--sans); font-size: .98rem; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--line);
  padding: .9rem .2rem; transition: border-color .3s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field select { color: var(--muted); cursor: pointer; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.contact__note { grid-column: 1 / -1; color: var(--accent); font-size: .92rem; }
@media (max-width: 860px) {
  .contact { grid-template-columns: 1fr; }
  .contact__media { min-height: 50vh; }
}
@media (max-width: 560px) {
  .contact__form { grid-template-columns: 1fr; }
  /* 16px prevents iOS Safari from auto-zooming when a field is focused */
  .field input, .field select, .field textarea { font-size: 16px; }
}

/* button */
.btn { font-family: var(--sans); font-size: .9rem; font-weight: 600; letter-spacing: .02em; cursor: pointer;
  background: var(--accent); color: #fff; border: 1px solid var(--accent); border-radius: 100px;
  padding: 1rem 1.6rem; transition: background .3s var(--ease), color .3s var(--ease); }
.btn:hover { background: transparent; color: var(--accent); }
.btn--block { grid-column: 1 / -1; width: 100%; }

/* ========================= FOOTER =========================== */
.footer { background: var(--ink); color: var(--paper); padding: clamp(3rem, 8vh, 5rem) 0 2rem; }
.footer__top { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); display: flex; flex-wrap: wrap; gap: 3rem; justify-content: space-between; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.brand--footer .brand__text { font-size: 1.5rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: clamp(2rem, 5vw, 5rem); }
.footer__links h5 { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.45); font-weight: 600; margin-bottom: 1rem; }
.footer__links a { display: block; color: rgba(255,255,255,.8); padding: .25rem 0; font-size: .95rem; transition: color .25s var(--ease); }
.footer__links a:hover { color: var(--paper); }
.footer__bottom { max-width: var(--maxw); margin: 0 auto; padding: 2rem var(--gut) 0; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; color: rgba(255,255,255,.45); font-size: .82rem; }

/* ===================== MOBILE NAV MENU ====================== */
@media (max-width: 860px) {
  .nav__burger { display: block; z-index: 110; }
  .nav__links {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 2rem;
    background: var(--paper); color: var(--ink);
    transform: translateY(-100%); transition: transform .5s var(--ease);
  }
  .nav__links.open { transform: none; }
  .nav__links a { font-family: var(--serif); font-size: 2rem; }
  .nav__cta { border: 1px solid var(--ink); padding: .7rem 1.6rem; font-size: 1rem; }
}

/* ---- shortstache-style display: Bebas Neue (tall condensed, all-caps) ---- */
.hero__title, .section-title, .proj__title, .contact__title,
.intro__statement, .studio__statement, .disc__row h3, .brand__text {
  font-weight: 400; letter-spacing: .03em;
}
.hero__title { line-height: .9; }
/* small labels stay in the clean sans for legibility */
.intro__kicker { font-family: var(--sans); }

/* ---- "more black" accents: Projects section on black ---- */
.projects { background: var(--ink); color: var(--paper); }
.projects .section-title { color: var(--paper); }
.projects .eyebrow { color: rgba(255,255,255,.55); }
.projects .section-head__note { color: rgba(255,255,255,.72); }
.projects .proj__cat { color: rgba(255,255,255,.55); }
.projects .proj__title { color: var(--paper); }
.projects .proj__text { color: rgba(255,255,255,.78); }
