:root {
  --bg: #000;
  --fg: #f4f4f4;
  --dim: #a6a6a6;
  --line: #262626;
  --accent: #fff;
  --pad: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
@media (min-width: 1200px) { :root { --pad: 112px; } }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 300 17px/1.7 "Open Sans", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
::selection { background: #fff; color: #000; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 5px; text-decoration-thickness: 1px; }
a:focus-visible { outline: 1px solid #fff; outline-offset: 4px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; color: #000; padding: 6px 12px; z-index: 30; }

/* reveal on scroll (only when scripts run) */
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }

/* the vertical line from the portfolio */
.rail { display: none; }
@media (min-width: 1200px) {
  .rail {
    position: fixed; left: 40px; top: 0; bottom: 0; width: 24px; z-index: 15; pointer-events: none;
    display: flex; flex-direction: column; align-items: center; gap: 16px;
    color: #fff; font-size: 11px; letter-spacing: .32em; mix-blend-mode: difference;
  }
  .rail span { writing-mode: vertical-rl; transform: rotate(180deg); opacity: .75; }
  .rail span:first-child { margin-top: 110px; }
  .rail span:last-child { margin-bottom: 0; }
  .rail i { flex: 1; width: 1px; background: #fff; opacity: .45; }
  .rail i:first-of-type { flex: .35; }
  .rail i:last-of-type { flex: .5; order: 9; }
  .rail img { width: 22px; mix-blend-mode: screen; }
}

/* header */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px 24px;
  padding: 20px var(--pad); background: var(--bg);
  transition: background .3s, padding .3s;
}
.over .top { position: fixed; left: 0; right: 0; background: linear-gradient(#000a, #0000); }
.over .top.solid { background: #000d; backdrop-filter: blur(10px); padding-top: 14px; padding-bottom: 14px; }
.brand { text-decoration: none; font-weight: 600; letter-spacing: .14em; font-size: 14px; }
.top nav { display: flex; gap: clamp(18px, 3vw, 36px); }
.top nav a {
  text-decoration: none; letter-spacing: .24em; font-size: 12px; text-transform: uppercase; color: #ddd;
  padding: 6px 0; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--ease), color .2s;
}
.top nav a:hover, .top nav a[aria-current] { color: #fff; background-size: 100% 1px; }

section { padding: clamp(48px, 8vw, 120px) var(--pad); }
h1, h2 { font-weight: 300; margin: 0; line-height: 1.1; }
h1 { font-size: clamp(38px, 7.5vw, 112px); letter-spacing: .08em; }
h2 { font-size: clamp(20px, 2.2vw, 28px); letter-spacing: .22em; margin-bottom: 1.4em; }
.eyebrow { margin: 0 0 18px; font-size: 12px; letter-spacing: .34em; text-transform: uppercase; color: var(--dim); }
.eyebrow a { text-decoration: none; }
.eyebrow a:hover { color: #fff; }
.lead { font-size: clamp(18px, 1.8vw, 23px); max-width: 32em; margin: 0; }
.intro { padding-top: clamp(56px, 9vw, 130px); padding-bottom: clamp(8px, 2vw, 24px); }
.intro.tall { min-height: 46vh; display: flex; flex-direction: column; justify-content: flex-end; }
.intro.tall h1 { font-size: clamp(30px, 5vw, 72px); letter-spacing: .04em; max-width: 14em; }

/* home hero */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 520px; padding: 0; overflow: hidden; display: flex; align-items: flex-end; }
.slides, .slides i { position: absolute; inset: 0; }
.slides i { background: center / cover no-repeat; opacity: 0; animation: slide 28s infinite; }
.slides i:nth-child(1) { animation-delay: 0s; }
.slides i:nth-child(2) { animation-delay: 7s; }
.slides i:nth-child(3) { animation-delay: 14s; }
.slides i:nth-child(4) { animation-delay: 21s; }
@keyframes slide {
  0% { opacity: 0; transform: scale(1.02); }
  5%, 25% { opacity: 1; }
  31%, 100% { opacity: 0; transform: scale(1.09); }
}
.hero::after, .phero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(#0006 0%, #0000 30%, #0000 45%, #000d 88%, #000 100%); pointer-events: none; }
.herotxt { position: relative; z-index: 2; padding: 0 var(--pad) clamp(40px, 8vh, 90px); width: 100%; }
.hero h1 { font-weight: 300; text-shadow: 0 2px 30px #0008; animation: rise 1.2s var(--ease) both .15s; }
.hero .eyebrow { color: #e6e6e6; animation: rise 1.2s var(--ease) both; }
.hero .lead { margin-top: 22px; animation: rise 1.2s var(--ease) both .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }
.scroll {
  position: absolute; z-index: 2; right: var(--pad); bottom: clamp(40px, 8vh, 90px);
  text-decoration: none; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; padding-bottom: 44px;
}
.scroll::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 1px; height: 34px; background: #fff; animation: drop 2.2s infinite var(--ease); transform-origin: top; }
@keyframes drop { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

.statement p { font-size: clamp(22px, 3.1vw, 44px); line-height: 1.4; max-width: 24em; margin: 0; }

/* big project rows on home */
.rows { padding-top: 0; }
.row { display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: center; text-decoration: none; margin-bottom: clamp(56px, 9vw, 140px); }
.row:nth-of-type(even) { grid-template-columns: 1fr 1.55fr; }
.row:nth-of-type(even) .shot { order: 2; }
.shot { display: block; overflow: hidden; background: #111; }
.shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 1.2s var(--ease); }
a:hover > .shot img { transform: scale(1.05); }
.txt { display: block; }
.no { display: block; font-size: 13px; letter-spacing: .3em; color: var(--accent); margin-bottom: 14px; }
.no::after { content: ""; display: inline-block; vertical-align: middle; width: 40px; height: 1px; margin-left: 14px; background: var(--accent); transition: width .5s var(--ease); }
a:hover .no::after { width: 90px; }
.row h3 { font-weight: 300; font-size: clamp(30px, 4.4vw, 64px); letter-spacing: .14em; text-transform: uppercase; margin: 0 0 10px; line-height: 1.1; }
.row .sub { display: block; color: var(--dim); font-size: 13px; letter-spacing: .14em; margin-bottom: 18px; }
.row .line { display: block; max-width: 26em; }
.go, .more a { display: inline-block; margin-top: 26px; font-size: 12px; letter-spacing: .28em; text-transform: uppercase; text-decoration: none; }
.go::after, .more a::after { content: "\2192"; display: inline-block; margin-left: 12px; transition: transform .4s var(--ease); }
a:hover .go::after, .more a:hover::after { transform: translateX(8px); }
.more { margin: 0; padding-top: 12px; border-top: 1px solid var(--line); }

/* cards */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(32px, 4vw, 64px) clamp(16px, 2.4vw, 36px); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.five { grid-template-columns: repeat(5, 1fr); }
.card { text-decoration: none; display: block; }
.card .no { margin: 18px 0 6px; }
.card h3 { font-weight: 300; font-size: clamp(18px, 1.7vw, 24px); letter-spacing: .18em; text-transform: uppercase; margin: 0 0 4px; line-height: 1.3; }
.card p { margin: 0; color: var(--dim); font-size: 14px; line-height: 1.5; }
.card.small h3 { font-size: 13px; font-weight: 400; margin-top: 14px; }
.card.small .shot img { aspect-ratio: 3 / 2; filter: grayscale(1); }

/* project page */
.phero { position: relative; height: 82vh; min-height: 440px; padding: 0; overflow: hidden; display: flex; align-items: flex-end; }
.phero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: zoom 2.4s var(--ease) both; }
@keyframes zoom { from { transform: scale(1.08); opacity: .4; } }
.phero h1 { text-transform: uppercase; letter-spacing: .14em; animation: rise 1.2s var(--ease) both .15s; overflow-wrap: anywhere; }
.phero .eyebrow { color: #e6e6e6; }
.phero .herotxt { border: 0; }
.facts { display: grid; grid-template-columns: minmax(200px, 1fr) 2fr; gap: clamp(24px, 5vw, 80px); padding-top: clamp(32px, 5vw, 64px); padding-bottom: clamp(40px, 6vw, 80px); }
.facts dl { margin: 0; border-top: 1px solid var(--accent); padding-top: 16px; }
.facts dt { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--dim); display: block; border: 0; padding: 0; }
.facts dd { margin: 0 0 16px; color: var(--fg); font-size: 16px; }
.facts .lead { font-size: clamp(20px, 2.4vw, 32px); line-height: 1.45; max-width: 24em; }
.spreads { display: grid; gap: clamp(10px, 1.6vw, 24px); padding: 0 var(--pad); max-width: 1800px; margin: 0 auto; }
.spreads a { display: block; }
.spreads img { width: 100%; }
.next { position: relative; display: flex; align-items: center; justify-content: center; text-align: center; height: 60vh; min-height: 320px; margin-top: clamp(56px, 9vw, 130px); overflow: hidden; text-decoration: none; }
.next img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; transition: opacity .6s, transform 1.4s var(--ease); }
.next:hover img { opacity: .75; transform: scale(1.04); }
.next > span { position: relative; }
.next .eyebrow { display: block; color: #fff; }
.next b { font-weight: 300; font-size: clamp(30px, 6vw, 88px); letter-spacing: .14em; text-transform: uppercase; line-height: 1.1; display: block; padding: 0 20px; }
.next b::after { content: ""; display: block; width: 60px; height: 1px; background: var(--accent); margin: 22px auto 0; transition: width .5s var(--ease); }
.next:hover b::after { width: 160px; }

/* about */
.about { display: grid; grid-template-columns: minmax(220px, 420px) 1fr; gap: clamp(28px, 6vw, 96px); align-items: start; padding-top: clamp(24px, 4vw, 56px); }
.about > img { position: sticky; top: 96px; }
.about p { max-width: 36em; }
.about .big { font-size: clamp(22px, 2.6vw, 36px); line-height: 1.4; margin-top: 0; max-width: 20em; }
.about h2 { margin: 2.6em 0 1em; font-size: 12px; letter-spacing: .34em; text-transform: uppercase; color: var(--dim); }
dl { margin: 0; }
.about dt { font-weight: 400; display: flex; justify-content: space-between; gap: 16px; max-width: 38em; border-top: 1px solid var(--line); padding-top: 12px; }
.about dt span { color: var(--dim); font-weight: 300; white-space: nowrap; font-size: 14px; }
.about dd { margin: 0 0 14px; color: var(--dim); font-size: 15px; }

/* footer */
footer { margin-top: clamp(40px, 6vw, 90px); border-top: 1px solid var(--line); }
.cta { padding: clamp(48px, 8vw, 110px) var(--pad) clamp(32px, 5vw, 60px); }
.mail {
  font-size: clamp(19px, 4.2vw, 60px); letter-spacing: .03em; text-decoration: none; overflow-wrap: anywhere;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .6s var(--ease); padding-bottom: 6px;
}
.mail:hover { background-size: 100% 1px; }
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; padding: 24px var(--pad) 32px; color: var(--dim); font-size: 12px; letter-spacing: .14em; }
.foot a { margin-left: 24px; text-decoration: none; text-transform: uppercase; }
.foot span:last-child a:first-child { margin-left: 0; }
.foot a:hover { color: var(--fg); }

@media (max-width: 900px) {
  .grid, .grid.five { grid-template-columns: repeat(2, 1fr); }
  .row, .row:nth-of-type(even), .facts, .about { grid-template-columns: 1fr; }
  .row:nth-of-type(even) .shot { order: 0; }
  .about > img { position: static; max-width: 320px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .grid, .grid.two { grid-template-columns: 1fr; }
  .scroll { display: none; }
  .phero { height: 64vh; }
  .brand { font-size: 13px; letter-spacing: .1em; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .slides i:first-child { opacity: 1; }
  .js .rv { opacity: 1; transform: none; }
}
