@font-face { font-family: "Boska"; src: url("fonts/boska-300.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Boska"; src: url("fonts/boska-300-italic.woff2") format("woff2"); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: "Boska"; src: url("fonts/boska-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Boska"; src: url("fonts/boska-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Synonym"; src: url("fonts/synonym-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Synonym"; src: url("fonts/synonym-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --night: #050F12;
  --night-2: #0A1C20;
  --cream: #ECE4D3;
  --paper: #ECE5D6;
  --ink: #0C1B1F;
  --on-night: rgba(236, 228, 211, .58);
  --on-paper: rgba(12, 27, 31, .6);
  --line-night: rgba(236, 228, 211, .14);
  --line-paper: rgba(12, 27, 31, .14);
  --signal: #F2A03D;
  --tide: #63CDD0;
  --serif: "Boska", "Iowan Old Style", Georgia, serif;
  --sans: "Synonym", "Avenir Next", "Segoe UI", sans-serif;
  --pad: clamp(20px, 4vw, 56px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--night); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--night);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 1.5px solid var(--signal); outline-offset: 5px; border-radius: 2px; }
::selection { background: var(--signal); color: var(--ink); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--cream); color: var(--ink); text-decoration: none; font-size: 14px; transition: top .2s; }
.skip:focus { top: 12px; }

.container { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--pad); }
.display {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3.4rem, 9.6vw, 10rem);
  line-height: .9;
  letter-spacing: -.03em;
  margin: 0;
}

/* Nav floats over everything and inverts against what is under it. */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: calc(18px + env(safe-area-inset-top)) var(--pad) 18px;
  color: var(--cream);
  mix-blend-mode: difference;
  pointer-events: none;
}
.nav a { pointer-events: auto; text-decoration: none; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 400; font-size: 22px; letter-spacing: -.01em; white-space: nowrap; }
.brand svg { width: 26px; height: 26px; flex: none; }
.brand-wave { fill: var(--signal); }
.nav-links { display: flex; gap: clamp(18px, 3vw, 40px); font-size: 15px; }
.nav-links a { position: relative; padding: 4px 0; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease-out);
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

/* Hero */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: var(--night);
  touch-action: pan-y;
}
.hero-media { position: absolute; inset: 0; }
.water { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-fallback { position: absolute; inset: 0; display: grid; place-content: center; margin: 0; font-family: var(--serif); font-weight: 300; font-size: 15vw; letter-spacing: -.04em; }
.hero-foot {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
  padding: 0 var(--pad) calc(28px + env(safe-area-inset-bottom));
  pointer-events: none;
}
.hero-foot a { pointer-events: auto; }
.hero-line { margin: 0; font-family: var(--serif); font-size: clamp(22px, 2vw, 30px); line-height: 1.1; letter-spacing: -.01em; }
.hero-hint { margin: 0; font-size: 14px; color: var(--on-night); text-align: right; }
.hint-touch { display: none; }
@media (hover: none) {
  .hint-fine { display: none; }
  .hint-touch { display: inline; }
}

/* About */
.about { position: relative; padding: clamp(110px, 16vw, 220px) 0 clamp(120px, 16vw, 240px); background: linear-gradient(var(--night), var(--night-2)); }
.about-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 24px; }
.statement {
  grid-column: 3 / -1;
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.1rem, 4.7vw, 5.2rem);
  line-height: 1.04;
  letter-spacing: -.02em;
  text-wrap: pretty;
}
.statement .w { opacity: .14; }
.no-js .statement .w, .reduce .statement .w { opacity: 1; }

/* Paper sections */
.paper { background: var(--paper); color: var(--ink); }
.section-title { padding-bottom: clamp(40px, 6vw, 88px); }

.work { padding: clamp(100px, 13vw, 180px) 0 clamp(60px, 8vw, 120px); border-radius: clamp(20px, 3vw, 40px) clamp(20px, 3vw, 40px) 0 0; margin-top: -1px; }

.project { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px 24px; align-items: end; }
.project-media {
  grid-column: 1 / span 8;
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
}
.media-clip { position: absolute; inset: 0; overflow: hidden; border-radius: 6px; background: #CFE6EE; }
.media-img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transform-origin: 50% 60%; }
.project-media:hover .media-img { filter: saturate(1.08); }
.project-icon {
  position: absolute;
  left: clamp(16px, 2.4vw, 32px);
  bottom: clamp(16px, 2.4vw, 32px);
  width: clamp(64px, 7vw, 104px);
  height: auto;
  border-radius: 23%;
  box-shadow: 0 18px 40px -12px rgba(12, 27, 31, .45), 0 0 0 1px rgba(255, 255, 255, .3);
}
.project-info { grid-column: 9 / span 4; padding-bottom: 4px; }
.project-title { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(3rem, 5.4vw, 5.8rem); line-height: .92; letter-spacing: -.025em; }
.project-desc { margin: 18px 0 28px; max-width: 34ch; font-size: 17px; line-height: 1.5; color: rgba(12, 27, 31, .78); }
.project-meta { margin: 0 0 32px; padding-top: 18px; max-width: 34ch; border-top: 1px solid var(--line-paper); font-size: 15px; color: var(--on-paper); }

.text-link { display: inline-flex; gap: 8px; align-items: baseline; text-decoration: none; font-size: 16px; font-weight: 500; }
.text-link { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 3px; transition: background-size .6s var(--ease-out); }
.text-link:hover { background-size: 0 1px; background-position: 100% 100%; }

.next {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px 24px;
  align-items: baseline;
  margin-top: clamp(64px, 9vw, 128px);
  padding: 28px 0;
  border-top: 1px solid var(--line-paper);
  border-bottom: 1px solid var(--line-paper);
}
.next-title { grid-column: 1 / span 6; margin: 0; font-family: var(--serif); font-weight: 300; font-style: italic; font-size: clamp(2rem, 3.4vw, 3.4rem); line-height: 1; letter-spacing: -.02em; color: rgba(12, 27, 31, .42); }
.next-desc { grid-column: 8 / span 5; margin: 0; color: var(--on-paper); }

/* Principles */
.principles { padding: clamp(80px, 11vw, 160px) 0 clamp(110px, 14vw, 200px); }
.rules { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-paper); }
.rules li {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 8px 24px;
  align-items: baseline;
  padding: clamp(24px, 3vw, 40px) 0;
  border-bottom: 1px solid var(--line-paper);
}
.rules li::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .9s var(--ease-out);
}
.rules li:hover::before { transform: scaleX(1); }
.rules h3 {
  grid-column: 1 / span 6;
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.1rem, 3.9vw, 4rem);
  line-height: .95;
  letter-spacing: -.02em;
  transition: transform .7s var(--ease-out);
}
.rules li:hover h3 { transform: translateX(12px); }
.rules p { grid-column: 8 / span 5; margin: 0; max-width: 36ch; font-size: 16px; color: rgba(12, 27, 31, .72); }

/* Footer */
.footer { position: relative; overflow: hidden; background: var(--night); padding-top: clamp(100px, 13vw, 180px); border-radius: clamp(20px, 3vw, 40px) clamp(20px, 3vw, 40px) 0 0; margin-top: calc(-1 * clamp(20px, 3vw, 40px)); z-index: 1; }
.contact-lead { margin: 0 0 12px; font-family: var(--sans); font-weight: 400; font-size: 18px; color: var(--on-night); }
.email {
  display: inline-block;
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.6rem, 8.2vw, 8.4rem);
  line-height: 1;
  letter-spacing: -.03em;
  text-decoration: none;
  overflow-wrap: anywhere;
  background: linear-gradient(var(--signal), var(--signal)) 0 96% / 0 2px no-repeat;
  transition: background-size .8s var(--ease-out), color .4s;
}
.email:hover { background-size: 100% 2px; }
.support { margin: 22px 0 0; font-size: 15px; color: var(--on-night); }
.support a { color: var(--cream); text-underline-offset: 4px; text-decoration-thickness: 1px; }

.wordmark { margin-top: clamp(80px, 12vw, 180px); padding: 0 calc(var(--pad) * .5); }
.wm-text {
  display: block;
  font-family: var(--serif);
  font-weight: 300;
  font-size: 22.4vw;
  line-height: .78;
  letter-spacing: -.045em;
  white-space: nowrap;
  text-align: center;
}
.wm-top { overflow: hidden; padding-top: .04em; border-bottom: 1px solid rgba(99, 205, 208, .35); }
.wm-top .wm-text { padding-bottom: .02em; }
.wm-reflection {
  height: 8.5vw;
  overflow: hidden;
  filter: url(#ripple);
  -webkit-mask-image: linear-gradient(rgba(0, 0, 0, .55), transparent 92%);
  mask-image: linear-gradient(rgba(0, 0, 0, .55), transparent 92%);
}
.wm-flip { transform: scaleY(-1); transform-origin: 50% 0; translate: 0 100%; color: var(--tide); }
.legal { font-size: 13px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 32px; padding-top: 28px; padding-bottom: calc(28px + env(safe-area-inset-bottom)); color: var(--on-night); border-top: 1px solid var(--line-night); }
.filters { position: absolute; width: 0; height: 0; }



@media (max-width: 900px) {
  .statement { grid-column: 1 / -1; }
  .project-media, .project-info { grid-column: 1 / -1; }
  .next-title, .next-desc { grid-column: 1 / -1; }
  .rules h3 { grid-column: 1 / -1; }
  .rules p { grid-column: 1 / -1; margin-top: 8px; }
}
@media (max-width: 640px) {
  .nav-links a:not([href="#contact"]) { display: none; }
  .brand { font-size: 17px; }
  .hero-foot { grid-template-columns: 1fr; }
  .hero-hint { grid-row: 1; text-align: left; }
  .project-media { aspect-ratio: 4 / 3.4; }
}

@media (prefers-reduced-motion: reduce) {
  .wm-reflection { filter: none; }
  .media-img { transform: none; }
}
