/* KILN landing. All desktop metrics are measured at a 1905px wide viewport and
   expressed through --u (one design pixel), so the layout scales fluidly with
   the viewport width. */
:root {
  --u: calc(100vw / 1905);
  --dark: rgb(13, 13, 17);
  --light: rgb(245, 245, 245);
  --hero-gray: rgb(198, 201, 204);
  --caption: rgba(102, 102, 102, 0.64);
  --hairline: rgba(128, 128, 128, 0.3);
  --ease: cubic-bezier(0.65, 0.05, 0, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-anchor: none; overflow-x: clip; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 400;
  color: var(--dark);
  background: var(--dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
/* Lenis smooth scroll (vendor/lenis.min.js) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-stopped { overflow: clip; }
.lenis.lenis-smooth iframe { pointer-events: none; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
figure { margin: 0; }

/* ---------- Rolling link label (label slides up, copy slides in from below) ---------- */
.roll { position: relative; display: inline-block; overflow: hidden; vertical-align: top; }
.roll-in { position: relative; display: block; transition: transform 0.6s var(--ease); }
.roll-in > span { display: block; white-space: nowrap; }
.roll-in > span + span { position: absolute; left: 0; top: 100%; }
a:hover .roll-in, .roll:hover .roll-in { transform: translateY(-100%); }

.caption {
  font-size: calc(12.86 * var(--u));
  line-height: 1.3;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--caption);
}

/* ---------- Header ---------- */
/* No positioned wrapper: an isolated stacking context would stop the brand's difference blend. */
.nav { display: contents; }
.brand {
  position: fixed;
  z-index: 100;
  top: calc(47.625 * var(--u));
  left: calc(47.625 * var(--u));
  height: calc(90 * var(--u));
  display: flex;
  align-items: center;
  color: #fff;
  mix-blend-mode: difference;
  pointer-events: auto;
}
.brand-label {
  display: flex;
  align-items: center;
  gap: calc(8 * var(--u));
  font-size: calc(20 * var(--u));
  line-height: calc(24 * var(--u));
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.brand-mark { width: calc(19 * var(--u)); height: calc(19 * var(--u)); }
.menu-button {
  position: fixed;
  z-index: 101;
  top: calc(47.625 * var(--u));
  right: calc(47.625 * var(--u));
  width: calc(90 * var(--u));
  height: calc(90 * var(--u));
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 calc(10 * var(--u)) calc(40 * var(--u)) rgba(13, 13, 17, 0.08);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  pointer-events: auto;
  transition: background-color 0.4s var(--ease);
}
.menu-line {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(30 * var(--u));
  height: calc(2 * var(--u));
  min-height: 1.5px;
  margin-left: calc(-15 * var(--u));
  border-radius: 4px;
  background: var(--dark);
  transition: transform 0.5s var(--ease);
}
.menu-line.is-top { transform: translateY(calc(-5 * var(--u))); }
.menu-line.is-bottom { transform: translateY(calc(5 * var(--u))); }
.is-menu-open .menu-line.is-top { transform: rotate(45deg); }
.is-menu-open .menu-line.is-bottom { transform: rotate(-45deg); }

/* ---------- Menu overlay ---------- */
.menu { position: fixed; inset: 0; z-index: 90; visibility: hidden; pointer-events: none; }
.is-menu-open .menu { visibility: visible; pointer-events: auto; }
.is-menu-closing .menu { visibility: visible; }
.menu-dim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); opacity: 0; }
.menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: calc(700 * var(--u));
  padding: calc(185.2 * var(--u)) 0 calc(46.3 * var(--u));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--dark);
  color: #fff;
  transform: translateX(110%);
}
.menu-curve {
  position: absolute;
  top: -10%;
  right: calc(100% - 1px);
  width: calc(180 * var(--u));
  height: 120%;
  background: var(--dark);
  border-radius: 100% 0 0 100% / 50% 0 0 50%;
  transform-origin: 100% 50%;
}
.menu-links li { padding: 0 calc(95.25 * var(--u)); }
.menu-link {
  font-size: calc(100 * var(--u));
  line-height: calc(115 * var(--u));
  letter-spacing: -0.03em;
}
.menu-link .roll-in > span { padding-right: calc(4.76 * var(--u)); }
.menu-social {
  display: flex;
  align-items: center;
  gap: calc(12 * var(--u));
  padding: 0 calc(95.25 * var(--u));
  font-size: calc(10.7 * var(--u));
  line-height: 1.4;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.menu-social .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: 0.6; }

/* ---------- Hero ---------- */
.content { position: relative; z-index: 1; }
.hero { position: relative; height: 400vh; background: var(--hero-gray); }
.hero-scene { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.hero-bg {
  position: absolute;
  inset: -10%;
  width: 120%;
  height: 120%;
  object-fit: cover;
  opacity: 0.25;
  filter: blur(calc(30 * var(--u)));
}
.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding-left: 20vw;
}
.hero-text {
  font-size: 16vw;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #fff;
  white-space: nowrap;
  will-change: transform;
}
.strip { position: absolute; inset: 0; will-change: transform; }
.strip-img { position: absolute; overflow: hidden; border-radius: calc(3 * var(--u)); background: rgba(255, 255, 255, 0.2); }
.strip-img img {
  position: absolute;
  left: 0;
  top: -10%;
  width: 100%;
  height: 120%;
  object-fit: cover;
}
.strip-back .strip-img { width: 12vw; height: 15vw; }
.strip-front .strip-img { width: calc(305 * var(--u)); height: calc(381 * var(--u)); }
.strip-front .strip-img.s6, .strip-front .strip-img.s7 { height: calc(305 * var(--u)); }
.s1 { left: calc(48 * var(--u)); top: calc(278 * var(--u)); }
.s3 { left: calc(1391 * var(--u)); top: calc(463 * var(--u)); }
.s4 { left: calc(1534 * var(--u)); top: calc(1119 * var(--u)); }
.s5 { left: calc(191 * var(--u)); top: calc(695 * var(--u)); }
.s6 { left: calc(381 * var(--u)); top: calc(1446 * var(--u)); }
.s7 { left: calc(1124 * var(--u)); top: calc(880 * var(--u)); }

.scroll-down {
  position: absolute;
  left: 50%;
  bottom: calc(47.6 * var(--u));
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(11 * var(--u));
  color: #fff;
  font-size: calc(10.7 * var(--u));
  line-height: 1.33;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.scroll-track { position: relative; width: calc(79 * var(--u)); height: 2px; overflow: hidden; background: rgba(255, 255, 255, 0.2); }
.scroll-progress { position: absolute; inset: 0; background: #fff; transform: translateX(-100%); }

/* ---------- Curved section edges ---------- */
.curve-top, .curve-bottom {
  position: absolute;
  left: 50%;
  width: 150vw;
  border-radius: 50%;
  background: #fff;
  pointer-events: none;
}
.curve-top {
  top: calc(var(--cht, 750) / -7.5 * var(--u));
  height: calc(var(--cht, 750) * var(--u));
  transform: translateX(-50%);
  z-index: 0;
}
.curve-bottom {
  bottom: calc(var(--chb, 750) / -7.5 * var(--u));
  height: calc(var(--chb, 750) * var(--u));
  transform: translateX(-50%);
  z-index: 3;
  /* Only the part below the section edge is visible (clipping wrapper). */
  clip-path: inset(86.667% 0 0 0);
}
/* Each curve keeps a 100px spacer that collapses with it, pulling the next section up. */
.about, .notes { margin-top: calc((var(--cht, 750) / 7.5 - 100) * var(--u)); }
.work, .notes { margin-bottom: calc(var(--chb, 750) / 7.5 * var(--u)); }

/* ---------- About ---------- */
.about { position: relative; background: #fff; padding-top: calc(222 * var(--u)); }
.about-inner { position: relative; z-index: 1; padding: 0 15vw; }
.fill-text {
  padding-bottom: calc(6.43 * var(--u));
  text-align: center;
  font-size: calc(42.86 * var(--u));
  line-height: calc(53.58 * var(--u));
  letter-spacing: -0.02em;
}
.fill-line {
  position: relative;
  display: block;
  width: fit-content;
  margin: 0 auto calc(-6.43 * var(--u));
  white-space: nowrap;
  color: rgba(13, 13, 17, 0.12);
}
.fill-line::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: var(--fill, 0%);
  overflow: hidden;
  white-space: nowrap;
  color: var(--dark);
}

/* ---------- Work + archive ---------- */
.archive-holder { position: relative; }
.archive {
  position: sticky;
  top: 0;
  height: 100vh;
  margin-bottom: -100vh;
  z-index: 0;
  overflow: hidden;
  background: #000;
}
.archive-wrapper { position: absolute; inset: 0; opacity: 0; transform-origin: 50% 50%; }
.archive-col {
  position: absolute;
  top: 0;
  width: calc(762 * var(--u));
  display: flex;
  flex-direction: column;
  gap: calc(34 * var(--u));
}
.archive-col:nth-child(1) { left: calc(-1021 * var(--u)); }
.archive-col:nth-child(2) { left: calc(-225 * var(--u)); }
.archive-col:nth-child(3) { left: calc(572 * var(--u)); }
.archive-col:nth-child(4) { left: calc(1368 * var(--u)); }
.archive-col:nth-child(5) { left: calc(2164 * var(--u)); }
.archive-col img {
  width: 100%;
  height: calc(507 * var(--u));
  object-fit: cover;
  border-radius: calc(3 * var(--u));
}
.archive-title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
}
.archive-title span {
  display: block;
  padding-top: calc(22.86 * var(--u));
  font-size: 12vw;
  line-height: 0.8;
  letter-spacing: -0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
}

.work { position: relative; z-index: 1; background: #fff; }
.work-sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; justify-content: center; }
.section-title {
  font-size: 31.5vw;
  font-weight: 400;
  line-height: 0.8;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  text-align: center;
  padding-top: 0.1em;
  white-space: nowrap;
}
.work-indicator {
  position: absolute;
  left: 0;
  top: 50%;
  width: calc(95 * var(--u));
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(9 * var(--u));
  opacity: 0;
}
.wi-num { font-size: calc(10.7 * var(--u)); line-height: 1; font-weight: 500; }
.wi-track { position: relative; width: 2px; height: calc(64 * var(--u)); border-radius: 10px; overflow: hidden; background: rgba(0, 0, 0, 0.1); }
.wi-progress { position: absolute; inset: 0; background: #000; transform: translateY(-100%); }
.wi-dot { display: none; }
.work-list {
  position: relative;
  z-index: 2;
  padding: 10vw 5vw 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.work-item { width: 45vw; }
.work-card {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: calc(17.145 * var(--u));
  overflow: hidden;
  background: #fff;
  backface-visibility: hidden;
  will-change: transform;
}
.work-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.work-card:hover img { transform: scale(1.04); }
.work-label {
  position: absolute;
  left: calc(17 * var(--u));
  bottom: calc(17 * var(--u));
  padding: calc(5.36 * var(--u)) calc(10.7 * var(--u));
  border-radius: 999px;
  background: #fff;
  font-size: calc(10.7 * var(--u));
  line-height: calc(14.28 * var(--u));
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.archive-trigger { height: calc(400vh + 98 * var(--u)); }

/* ---------- Notes ---------- */
.notes { position: relative; z-index: 2; background: #fff; }
.notes .curve-top, .notes .curve-bottom { z-index: -1; }
.spacer-xl { height: calc(222 * var(--u)); }
.notes-title { position: relative; }
.notes-title .tight { letter-spacing: calc(-54 * var(--u)); }
.notes-inner { position: relative; padding: calc(74 * var(--u)) 15vw 0; }
.notes-grid { display: grid; grid-template-columns: calc(476 * var(--u)) 1fr; column-gap: calc(17 * var(--u)); }
.caption-row { display: flex; align-items: center; gap: calc(17 * var(--u)); height: calc(17 * var(--u)); }
.caption-row .line { flex: 1; height: 1px; background: var(--hairline); }
.posts { display: flex; flex-direction: column; gap: calc(23.5 * var(--u)); }
.post { display: block; padding-bottom: calc(23.15 * var(--u)); border-bottom: 1px solid var(--hairline); }
.post-date { display: block; margin-bottom: calc(9 * var(--u)); }
.post-title { display: flex; overflow: hidden; }
.post-scroll {
  display: flex;
  flex: none;
  animation: marquee var(--dur, 22s) linear infinite;
}
.post-scroll span {
  flex: none;
  padding-right: calc(17 * var(--u));
  font-family: "Instrument Serif", Georgia, serif;
  font-size: calc(34.29 * var(--u));
  line-height: calc(45.71 * var(--u));
  white-space: nowrap;
}
.post:hover .post-scroll { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }

.slider-head {
  display: flex;
  align-items: center;
  margin-top: calc(142 * var(--u));
  height: calc(103 * var(--u));
}
.arrow {
  display: grid;
  place-items: center;
  width: calc(69 * var(--u));
  height: calc(69 * var(--u));
  margin-right: calc(4 * var(--u));
  border: 1px solid rgba(13, 13, 17, 0.12);
  border-radius: 50%;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}
.arrow svg { width: calc(17 * var(--u)); height: calc(17 * var(--u)); }
.arrow:hover { background: var(--dark); color: #fff; }
.slider-head .caption { margin: 0 calc(17 * var(--u)) 0 calc(13 * var(--u)); white-space: nowrap; }
.slider-line { position: relative; flex: 1; height: 1px; background: var(--hairline); }
.slider-fill { position: absolute; inset: 0; background: var(--dark); transform-origin: 0 50%; transform: scaleX(0); }
.social-track {
  display: flex;
  margin-top: calc(34 * var(--u));
  margin-right: -15vw;
  transition: transform 0.9s var(--ease);
}
.social-item { flex: none; width: calc(343 * var(--u)); padding-right: calc(34.29 * var(--u)); }
.social-image { position: relative; display: block; height: calc(385 * var(--u)); overflow: hidden; border-radius: calc(3 * var(--u)); background: #eef0f2; }
.social-image img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: transform 1.2s var(--ease-out); }
.social-item:hover .social-image img { transform: scale(1.05); }
.social-name {
  display: flex;
  align-items: center;
  gap: calc(4 * var(--u));
  margin-top: calc(21 * var(--u));
  font-size: calc(12.86 * var(--u));
  line-height: 1;
  font-weight: 500;
  text-transform: uppercase;
}
.social-name svg { width: calc(13 * var(--u)); height: calc(13 * var(--u)); }
.social-date { display: block; margin-top: calc(4 * var(--u)); font-size: calc(12.86 * var(--u)); line-height: 1.33; opacity: 0.5; }

/* ---------- Footer ---------- */
.footer { position: sticky; bottom: 0; z-index: 0; overflow: clip; margin-top: calc(-100 * var(--u)); background: var(--dark); }
.footer-inner {
  min-height: calc(100vh - 122 * var(--u));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 25vh 5vw calc(34.29 * var(--u));
  background: var(--light);
  will-change: transform, opacity;
}
.footer-contact { position: relative; width: 75vw; margin: 0 auto; }
.footer-pills {
  position: absolute;
  left: 0;
  top: calc(11 * var(--u));
  z-index: 1;
  display: flex;
  gap: calc(8.5 * var(--u));
}
.pill {
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc(105 * var(--u));
  padding: 0 calc(47.625 * var(--u));
  border-radius: 999px;
  background: #fff;
  font-size: calc(17.145 * var(--u));
  line-height: calc(22.85 * var(--u));
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.pill-avatar { flex: none; width: calc(105 * var(--u)); aspect-ratio: 1; padding: 0; overflow: hidden; }
.pill-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.footer-title {
  font-size: 7vw;
  font-weight: 400;
  line-height: 1;
  letter-spacing: calc(-4 * var(--u));
  text-indent: calc(659 * var(--u));
  max-width: calc(1360 * var(--u));
}
.footer-meta { display: flex; justify-content: space-between; align-items: flex-end; }
.footer-meta .caption { font-size: calc(11.25 * var(--u)); display: block; margin-bottom: calc(5 * var(--u)); }
.meta-links { display: flex; gap: calc(23 * var(--u)); }
.meta-group a, .meta-text { font-size: calc(15 * var(--u)); line-height: calc(20 * var(--u)); }
.meta-right { display: flex; align-items: flex-end; gap: calc(45 * var(--u)); }
.cta {
  display: inline-flex;
  align-items: center;
  padding: calc(11.25 * var(--u)) calc(18.75 * var(--u));
  border-radius: 999px;
  background: var(--dark);
  color: #fff;
  font-size: calc(15 * var(--u));
  line-height: calc(15 * var(--u));
}
.cta small { font-size: calc(11.25 * var(--u)); letter-spacing: 0.02em; margin-left: calc(2 * var(--u)); }

[data-magnetic] { will-change: transform; }

/* ---------- Tablet ---------- */
@media (max-width: 991px) {
  :root { --u: calc(100vw / 1100); }
  .hero-text { font-size: 22vw; }
  .strip-back .strip-img { width: 20vw; height: 25vw; }
  .work-item { width: 80vw; }
  .work-list { padding: 20vw 5vw 40vh; }
  .notes-inner { padding-left: 7vw; padding-right: 7vw; }
  .notes-grid { grid-template-columns: 1fr; row-gap: calc(40 * var(--u)); }
  .social-track { margin-right: -7vw; }
  .about-inner { padding: 0 7vw; }
  .footer-contact { width: 86vw; }
  .footer-title { font-size: 10vw; text-indent: 0; padding-top: calc(150 * var(--u)); }
  .footer-inner { padding-top: 16vh; }
  .menu-panel { width: 70vw; }
  .menu-link { font-size: calc(90 * var(--u)); line-height: calc(104 * var(--u)); }
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
  :root { --u: calc(100vw / 620); }
  .hero-text { font-size: 30vw; }
  .hero-content { padding-left: 12vw; }
  .strip-back .strip-img { width: 28vw; height: 35vw; }
  .s1 { left: 4vw; }
  .s3 { left: auto; right: 4vw; }
  .s4 { left: auto; right: -6vw; }
  .s5 { left: 10vw; }
  .s7 { left: auto; right: 6vw; }
  .fill-text { font-size: calc(30 * var(--u)); line-height: calc(40 * var(--u)); letter-spacing: -0.02em; }
  .fill-line { white-space: normal; margin-bottom: calc(4 * var(--u)); }
  .fill-line::after { white-space: normal; height: 100%; }
  .work-item { width: 90vw; }
  .work-label { font-size: calc(18 * var(--u)); line-height: calc(24 * var(--u)); padding: calc(6 * var(--u)) calc(14 * var(--u)); }
  .work-indicator { display: none; }
  .archive-col img { border-radius: 2px; }
  .archive-title span { font-size: 18vw; }
  .caption, .social-name, .social-date, .footer-meta .caption { font-size: calc(20 * var(--u)); }
  .post-scroll span { font-size: calc(46 * var(--u)); line-height: calc(60 * var(--u)); }
  .slider-head .caption { display: none; }
  .arrow { width: calc(90 * var(--u)); height: calc(90 * var(--u)); }
  .arrow svg { width: calc(22 * var(--u)); height: calc(22 * var(--u)); }
  .social-item { width: 62vw; }
  .social-image { height: 78vw; }
  .footer-inner { padding: 18vh 6vw 6vw; }
  .footer-pills { position: static; flex-wrap: wrap; margin-bottom: calc(40 * var(--u)); }
  .pill { height: calc(84 * var(--u)); padding: 0 calc(30 * var(--u)); font-size: calc(20 * var(--u)); line-height: calc(26 * var(--u)); }
  .pill-avatar { width: calc(84 * var(--u)); padding: 0; }
  .footer-title { font-size: 13vw; padding-top: 0; letter-spacing: -0.03em; }
  .footer-meta { flex-direction: column; align-items: flex-start; gap: calc(40 * var(--u)); }
  .meta-right { flex-wrap: wrap; gap: calc(30 * var(--u)); }
  .meta-group a, .meta-text { font-size: calc(24 * var(--u)); line-height: calc(32 * var(--u)); }
  .cta { font-size: calc(24 * var(--u)); line-height: calc(24 * var(--u)); padding: calc(18 * var(--u)) calc(28 * var(--u)); }
  .cta small { font-size: calc(16 * var(--u)); }
  .menu-panel { width: 100vw; }
  .menu-link { font-size: calc(80 * var(--u)); line-height: calc(96 * var(--u)); }
  .menu-social { font-size: calc(18 * var(--u)); }
  .brand-label { font-size: calc(26 * var(--u)); line-height: calc(30 * var(--u)); }
  .brand-mark { width: calc(24 * var(--u)); height: calc(24 * var(--u)); }
}

/* ---------- Reduced motion: static composition, no scrubbing ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero { height: 100vh; }
  .hero-content { padding-left: 0; justify-content: center; }
  .hero-text { font-size: 7vw; white-space: normal; text-align: center; }
  .fill-line { color: var(--dark); }
  .fill-line::after { display: none; }
  .archive, .archive-trigger { display: none; }
  .work-indicator { display: none; }
  .work-sticky { position: relative; height: auto; padding-top: 10vw; }
  .curve-top, .curve-bottom { display: none; }
  .footer { position: relative; margin-top: 0; }
  .about, .notes, .work { margin-top: 0; margin-bottom: 0; }
  .post-title { overflow: visible; }
  .post-scroll span + span { display: none; }
}
