/* ============================================
   HVST.LE — GRAPHIC PRACTICE
   Editorial. Image is the art. Type stays quiet.
   ============================================ */

/* ── Custom title typeface (proprietary — not for redistribution) ── */
@font-face {
  font-family: 'hvst-le';
  src: url('Font/hvst.le-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

:root {
  /* strict black & white — grays are black/white at reduced opacity only */
  --ink: #000000;
  --ink-2: #000000;
  /* work__media placeholder bg */
  --paper: #ffffff;
  --muted: rgba(255, 255, 255, 0.40);
  /* gray on DARK (hero metas, rotor count, creed) */
  --line: rgba(255, 255, 255, 0.16);
  /* hairline on dark */

  /* light editorial sections */
  --paper-2: #ffffff;
  /* light-section bg */
  --line-light: rgba(0, 0, 0, 0.12);
  /* hairline on paper */
  --muted-ink: rgba(0, 0, 0, 0.40);
  /* muted text on paper */

  /* generic theme channel — set per section by .theme-* */
  --bg: var(--ink);
  --fg: var(--paper);
  --rule: var(--line);
  --muted-fg: var(--muted);

  --bg-light: #ffffff;
  /* transition sheets / curtain — white matches light pages */
  --bg-dark: #000000;
  --text-primary: #ffffff;

  --font-mono: 'Martian Mono', ui-monospace, monospace;
  --font-display: 'neue-haas-grotesk-display', 'Helvetica Neue', Arial, sans-serif;
  --font-text: 'neue-haas-grotesk-text', 'Helvetica Neue', Arial, sans-serif;
  --font-title: 'hvst-le', 'neue-haas-grotesk-display', 'Helvetica Neue', Arial, sans-serif;

  --cols: 12;
  --margin: 12px;
  --gutter: clamp(8px, 0.9vw, 16px);

  --sp-section: clamp(96px, 14vh, 190px);
  --sp-l: clamp(40px, 6vh, 80px);
  --sp-m: clamp(20px, 2.4vh, 32px);

  --t-name: clamp(19px, 1.7vw, 28px);
  --t-body: clamp(15px, 1.05vw, 17px);
  --t-label: 12px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --curtain-ease: cubic-bezier(0.76, 0, 0.18, 1);
}

.theme-dark {
  --bg: var(--ink);
  --fg: var(--paper);
  --rule: var(--line);
  --muted-fg: var(--muted);
  background: var(--bg);
  color: var(--fg);
}

.theme-light {
  --bg: var(--paper-2);
  --fg: var(--ink);
  --rule: var(--line-light);
  --muted-fg: var(--muted-ink);
  background: var(--bg);
  color: var(--fg);
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* lock the page while the intro plays */
html.intro-on,
html.intro-on body {
  overflow: hidden;
  height: 100vh;
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

body {
  font-family: var(--font-mono);
  background: var(--paper-2);
  color: var(--paper);
  line-height: 1.45;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.grid {
  display: grid;
  grid-template-columns: repeat(var(--cols), 1fr);
  column-gap: var(--gutter);
  padding-inline: var(--margin);
}

/* reveal from bottom — fires when clearly in view */
/* masked reveal — content slides up from behind a clip mask, triggered on enter */
.reveal-mask {
  overflow: hidden;
  display: block;
}

.reveal-rise {
  display: block;
  transform: translateY(100%);
  transition: transform 1.45s cubic-bezier(0.22, 1, 0.32, 1);
  will-change: transform;
}

.reveal-mask.is-in .reveal-rise {
  transform: translateY(0);
}

/* footer reveals as a fade-up (no clip) so the hover square can live in the
   gutter to the left of the column without being cropped */
.footer__col.reveal-mask {
  overflow: visible;
}

.footer__col.reveal-mask .reveal-rise {
  display: flex;
  flex-direction: column;
  gap: 11px;
  transform: translateY(22px);
  opacity: 0;
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.32, 1), opacity 0.8s var(--ease);
}

.footer__col.reveal-mask.is-in .reveal-rise {
  transform: none;
  opacity: 1;
}

/* the work image must still fill its frame after wrapping */
.work__media.reveal-mask .reveal-rise {
  height: 100%;
}


/* ============================================
   LOADING INTRO — minimal: small centered image,
   centered statement, lots of space.
   ============================================ */
.intro {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: var(--ink);
  overflow: hidden;
  display: none;
  align-items: center;
  justify-content: center;
  clip-path: inset(0 0 0 0);
}

/* the loader shows only on a full page load / reload (intro-on set in <head>),
   never on in-site navigation handled by transition.js */
html.intro-on .intro {
  display: flex;
}

.intro.is-exiting {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.9s var(--curtain-ease);
}

.intro__stage {
  position: relative;
  width: clamp(260px, 34vw, 460px);
  aspect-ratio: 1;
  overflow: hidden;
}

.intro__img {
  width: 100%;
  height: auto;
  display: block;
  filter: brightness(0.4) contrast(1.08);
}

.intro__statement {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: min(82vw, 18ch);
  text-align: center;
  font-family: var(--font-title);
  text-transform: uppercase;
  font-weight: 400;
  font-size: clamp(20px, 2.7vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--paper);
}

/* whole phrase is written from the start — no word-by-word */
.intro__statement span {
  display: inline;
}

.intro.is-exiting .intro__statement {
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}


/* ============================================
   BAR — Swiss utility nav
   ============================================ */
.bar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gutter);
  align-items: center;
  padding: 16px var(--margin) 12px;
  color: var(--paper);
  mix-blend-mode: difference;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

.bar.has-bg {
  background-color: var(--paper-2);
  color: var(--ink);
  mix-blend-mode: normal;
}

.bar.has-bg .bar__logo-img {
  filter: invert(1);
}

/* every navbar element dissolves onto the bar's 12-col grid and takes its own line */
.bar__group {
  display: contents;
}

.bar__group--l,
.bar__group--r {
  display: contents;
}

.bar__mark {
  grid-column: 1;
  grid-row: 1;
}

.bar__meta {
  grid-column: 3 / 7;
  grid-row: 1;
  align-self: center;
}

.bar__mark {
  display: inline-flex;
  align-items: center;
}

.bar__logo-img {
  display: block;
  width: clamp(34px, 3.5vw, 42px);
  height: auto;
  max-width: none;
}

.bar__meta {
  font-family: var(--font-mono);
  font-size: var(--t-label);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* nav voices: each on its own grid line, wide intervals, Contact ending at the right margin */
.bar__links {
  display: contents;
}

.bar__link {
  grid-row: 1;
  align-self: center;
  width: fit-content;
}

.bar__link:nth-of-type(1) {
  grid-column: 7 / 9;
}

.bar__link:nth-of-type(2) {
  grid-column: 9 / 11;
}

.bar__link:nth-of-type(3) {
  grid-column: 11 / 13;
}

.bar__burger {
  grid-column: 11 / 13;
  grid-row: 1;
  justify-self: end;
}

/* grid density switch (lives in the Works head) */
.gridswitch {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gridswitch__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  padding: 0;
  border: none;
  background: none;
  opacity: 0.3;
  color: var(--fg);
}

.gridswitch__btn svg {
  width: 100%;
  height: 100%;
  display: block;
}

@media (hover: hover) {
  .gridswitch__btn:hover {
    opacity: 0.75;
  }
}

.gridswitch__btn.is-active {
  opacity: 1;
}

/* 1 col — single filled square (mobile only) */
.gridswitch__btn--m {
  display: none;
}

@media (max-width: 599px) {
  .gridswitch__btn--d {
    display: none;
  }

  .gridswitch__btn--m {
    display: inline-flex;
  }
}

.bar__link,
.bar__burger {
  font-family: var(--font-mono);
  font-size: var(--t-label);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* link hover: text a touch bolder + a small SQUARE slides in to the left, inline */
.bar__link {
  position: relative;
  transition: font-weight 0.18s var(--ease);
}

.bar__link::before {
  content: "";
  position: absolute;
  left: -1.1em;
  top: 50%;
  width: 8px;
  height: 8px;
  background: currentColor;
  opacity: 0;
  transform: translate(9px, -50%);
  /* slides leftward into place */
  transition: transform 0.34s var(--ease), opacity 0.26s var(--ease);
}

.bar__link:hover {
  font-weight: 600;
}

.bar__link:hover::before {
  opacity: 1;
  transform: translate(0, -50%);
}

/* clean line arrow (Send / Back to index) */
.fx-arrow {
  display: inline-block;
  width: 17px;
  height: 11px;
  margin-left: 0.5em;
  vertical-align: middle;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
  transition: transform 0.35s var(--ease);
}

.fx-arrow--l {
  margin: 0 0.5em 0 0;
  transform: scaleX(-1);
}

.contact__send:hover .fx-arrow {
  transform: translateX(5px);
}

.project-back-btn-text:hover .fx-arrow--l {
  transform: scaleX(-1) translateX(5px);
}

.contact__send,
.project-back-btn-text {
  transition: font-weight 0.18s var(--ease);
}

.contact__send:hover,
.project-back-btn-text:hover {
  font-weight: 600;
}

.bar__burger {
  display: none;
  overflow: hidden;
  /* mask: only one word height is visible */
  height: 1.2em;
  padding: 0;
}

.bar__burger-rail {
  display: flex;
  flex-direction: column;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.32, 1);
}

.bar__burger-word {
  display: block;
  height: 1.2em;
  line-height: 1.2em;
}

/* open: "Menu" slides up behind the mask, "Close" rises into view from below */
body.menu-open .bar__burger-rail {
  transform: translateY(-1.2em);
}

/* lift the bar above the overlay so the burger stays the live toggle,
   and drop the circular logo so the menu's own wordmark stands alone */
body.menu-open .bar {
  z-index: 2500;
  background-color: transparent !important;
  color: var(--paper) !important;
  mix-blend-mode: normal;
}

body.menu-open .bar__logo-img {
  filter: none !important;
}

body.menu-open .bar__mark {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(18px, 3vh, 30px) var(--margin) clamp(30px, 6vh, 56px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  visibility: hidden;
}

.mobile-menu__mark,
.mobile-menu__close {
  font-family: var(--font-mono);
  font-size: var(--t-label);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--paper);
}

.mobile-menu__links {
  display: flex;
  flex-direction: column;
  gap: clamp(2px, 1vh, 10px);
}

.mobile-menu__links a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(34px, 11vw, 60px);
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--paper);
}

.mobile-menu__foot {
  display: flex;
  gap: var(--gutter);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

.mobile-menu__col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--paper);
}

.mobile-menu__col a {
  color: var(--paper);
}

/* menu voices slide up from behind a mask when the menu opens (homepage-style reveal) */
.mobile-menu__links a,
.mobile-menu__col a,
.mobile-menu__col .mm-mask {
  display: block;
  overflow: hidden;
  line-height: 1.45;
}

.mobile-menu__links a {
  line-height: 1.08;
}

.mobile-menu__links a>span,
.mobile-menu__col a>span,
.mobile-menu__col .mm-mask>span {
  display: block;
  transform: translateY(110%);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.32, 1);
}

body.menu-open .mobile-menu__links a>span,
body.menu-open .mobile-menu__col a>span,
body.menu-open .mobile-menu__col .mm-mask>span {
  transform: translateY(0);
}

/* stagger: big links first, then the footer details */
.mobile-menu__links a:nth-child(1)>span {
  transition-delay: 0.06s;
}

.mobile-menu__links a:nth-child(2)>span {
  transition-delay: 0.13s;
}

.mobile-menu__links a:nth-child(3)>span {
  transition-delay: 0.20s;
}

.mobile-menu__col a:nth-child(1)>span,
.mobile-menu__col .mm-mask:nth-child(1)>span {
  transition-delay: 0.28s;
}

.mobile-menu__col a:nth-child(2)>span,
.mobile-menu__col .mm-mask:nth-child(2)>span {
  transition-delay: 0.34s;
}


/* ============================================
   HERO — 3D rotor gallery
   ============================================ */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--ink);
}

.hero__meta {
  position: absolute;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: var(--t-label);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__meta--tl {
  top: clamp(74px, 12vh, 110px);
  left: var(--margin);
}

.hero__meta--tr {
  top: clamp(74px, 12vh, 110px);
  right: var(--margin);
}

.hero__meta--bl {
  bottom: clamp(56px, 9vh, 92px);
  left: var(--margin);
}

.hero__meta--br {
  bottom: clamp(56px, 9vh, 92px);
  right: var(--margin);
}

.rotor {
  --card-count: 12;
  --card-w: 240px;
  --card-h: 340px;
  --gap: 30px;
  position: relative;
  width: 100%;
  height: 800px;
  perspective: 1000px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rotor__drum {
  position: relative;
  width: 100%;
  height: var(--card-h);
  transform-style: preserve-3d;
  transition: transform 0.05s linear;
}

.rotor__card {
  position: absolute;
  width: var(--card-w);
  top: 50%;
  left: 50%;
  transform: translateY(-50%) rotateY(calc(var(--i) * calc(360deg / var(--card-count))));
  margin-left: var(--gap);
  transform-origin: calc(-1 * var(--gap)) center;
  overflow: hidden;
  backface-visibility: visible;
  transition: transform 0.4s ease;
}

.rotor__card img {
  width: 100%;
  height: auto;
  display: block;
}

.rotor__card:hover {
  transform: translateY(-50%) rotateY(calc(var(--i) * calc(360deg / var(--card-count)))) scale(1.05);
}

.hero__cue {
  position: absolute;
  left: 50%;
  bottom: clamp(20px, 4vh, 32px);
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: var(--t-label);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--paper);
  mix-blend-mode: difference;
}

.hero__cue::after {
  content: "";
  display: block;
  width: 1px;
  height: 22px;
  margin: 8px auto 0;
  background: currentColor;
  transform-origin: top;
  animation: cue 2.4s var(--ease) infinite;
}

@keyframes cue {

  0%,
  100% {
    transform: scaleY(0.3);
    opacity: 0.4;
  }

  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}


/* ============================================
   WORKS — clean two-column editorial grid
   ============================================ */
.works {
  padding-block: var(--sp-section);
}

.works__head {
  display: grid;
  grid-template-columns: repeat(var(--cols), 1fr);
  column-gap: var(--gutter);
  align-items: baseline;
  padding-inline: var(--margin);
  padding-bottom: var(--sp-l);
}

.works__title {
  grid-column: 1 / 9;
  font-family: var(--font-title);
  text-transform: uppercase;
  font-weight: 400;
  font-size: var(--t-name);
  letter-spacing: -0.01em;
}

.works__tools {
  grid-column: 11 / 13;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.6vw, 26px);
}

.works__count {
  font-family: var(--font-mono);
  font-size: var(--t-label);
  letter-spacing: 0.02em;
  color: var(--muted-fg);
}

/* NEW WORKS LAYOUT: sticky row + native CSS grid for gallery */
.works__grid {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-inline: var(--margin);
  --work-cols: 3;
}

.work {
  position: relative;
  display: flex;
  flex-direction: column;
}

.work__content {
  padding-bottom: clamp(60px, 10vh, 120px);
}

.work__sticky-row {
  position: sticky;
  top: calc(var(--nav-height, 48px) - 1.5px);
  z-index: 10;
  background: var(--bg);
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  padding-block: 8px;
  margin-bottom: 12px;
}

.work__num-group {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-right: clamp(16px, 3vw, 48px);
}

.work__title-line {
  margin-right: 16px;
  font-family: var(--font-title);
  text-transform: uppercase;
  font-size: 16px;
  letter-spacing: -0.015em;
  white-space: normal;
  max-width: calc(100% - 110px);
  line-height: 1.2;
}

.work__title-main {
  color: var(--fg);
  font-weight: 400;
}

.work__title-sub {
  color: var(--muted-fg);
  font-weight: 400;
}

.work__plus {
  margin-right: auto;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
}

/* Framer Plus Icon Layout Styles */
.framer-10z6wcu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
}

.framer-1mpn83-container,
.framer-XLm9r {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.framer-o184z7 {
  position: relative;
  width: 12px;
  height: 12px;
}

.framer-17lrx88,
.framer-g8nkaz {
  position: absolute;
  top: 0;
  left: calc(50% - 0.5px);
  width: 1px;
  height: 100%;
  border-radius: 1px;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Expanded state (minus sign) */
.work__plus .framer-17lrx88 {
  transform: rotate(90deg);
}
.work__plus .framer-g8nkaz {
  transform: rotate(270deg);
}

/* Collapsed state (plus sign) */
.work.is-collapsed .work__plus .framer-17lrx88 {
  transform: rotate(0deg);
}
.work.is-collapsed .work__plus .framer-g8nkaz {
  transform: rotate(90deg);
}

.work__dropdown {
  flex-basis: 100%;
  background: var(--bg);
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: auto;
}

.work.is-collapsed .work__dropdown {
  grid-template-rows: 0fr;
  pointer-events: none;
}

.work__dropdown-inner {
  min-height: 0;
  overflow: hidden;
}

.work__info {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 12px;
  transform: translateY(0);
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.work.is-collapsed .work__info {
  transform: translateY(30px);
}

@media (min-width: 768px) {
  .work__info {
    flex-direction: row;
    justify-content: space-between;
    gap: 48px;
  }
}

.work__desc {
  font-family: var(--font-display);
  font-size: clamp(14px, 1.2vw, 18px);
  max-width: 50ch;
  color: var(--fg);
  line-height: 1.4;
}

.work__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}

.work__meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.work__meta-k {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-fg);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.work__meta-v {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.work__gallery {
  display: grid;
  grid-template-columns: repeat(var(--work-cols), 1fr);
  gap: var(--gutter);
  align-items: start;
  transition: grid-template-columns 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.work__media-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.work__media-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.work__media {
  overflow: hidden;
  display: block;
}

.work__media img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 1.1s var(--ease);
}

.work__media:hover img {
  transform: scale(1.03);
}

.work__media.reveal-mask .reveal-rise {
  transform: translateY(34px);
  height: 100%;
}

.work__media.reveal-mask.is-in .reveal-rise {
  transform: translateY(0);
}


/* ============================================
   STUDIO — Swiss editorial statement + indexed capabilities
   ============================================ */
.studio {
  padding-block: var(--sp-section);
  row-gap: clamp(40px, 7vh, 96px);
  align-items: start;
  border-top: 1px solid var(--rule);
}

/* top frame: label left, meta right, on one row */
.studio__label,
.studio__meta {
  grid-row: 1;
  font-family: var(--font-mono);
  font-size: var(--t-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-fg);
}

.studio__label {
  grid-column: 1 / 3;
}

.studio__meta {
  grid-column: 9 / 13;
  justify-self: end;
  text-align: right;
}

/* oversized flush-left statement */
.studio__statement {
  grid-row: 2;
  grid-column: 1 / 11;
  font-family: var(--font-title);
  text-transform: uppercase;
  font-weight: 400;
  font-size: clamp(30px, 4.2vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

/* indexed capability table — each row inverts on hover */
.studio__caps {
  grid-row: 3;
  grid-column: 1 / 13;
  list-style: none;
  border-bottom: 1px solid var(--rule);
}

.cap {
  position: relative;
  border-top: 1px solid var(--rule);
  color: var(--fg);
  transition: background 0.45s var(--ease), color 0.45s var(--ease);
}

/* row content laid on the same 12 columns (masked or not) */
.cap:not(.reveal-mask),
.cap.reveal-mask>.reveal-rise {
  display: grid;
  grid-template-columns: repeat(var(--cols), 1fr);
  column-gap: var(--gutter);
  align-items: baseline;
  padding-block: clamp(16px, 1.9vw, 32px);
}

.cap__n {
  grid-column: 1 / 3;
  font-family: var(--font-mono);
  font-size: clamp(11px, 0.9vw, 13px);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--muted-fg);
  transition: color 0.45s var(--ease);
}

.cap__name {
  grid-column: 3 / 9;
  font-family: var(--font-title);
  text-transform: uppercase;
  font-weight: 400;
  font-size: clamp(24px, 3vw, 46px);
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.cap__tag {
  grid-column: 9 / 12;
  align-self: center;
  font-family: var(--font-mono);
  font-size: var(--t-label);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-fg);
  transition: color 0.45s var(--ease);
}

.cap__arrow {
  grid-column: 12 / 13;
  justify-self: end;
  align-self: center;
  font-family: var(--font-mono);
  font-size: clamp(16px, 1.4vw, 22px);
  opacity: 0;
  transform: translateX(-8px);
  transition: transform 0.45s var(--ease), opacity 0.3s var(--ease);
}

/* hover: fill the row black, invert all type, slide the arrow in */
.cap:hover {
  background: var(--ink);
  color: var(--paper);
}

.cap:hover .cap__n,
.cap:hover .cap__tag {
  color: var(--paper);
}

.cap:hover .cap__arrow {
  opacity: 1;
  transform: translateX(0);
}


/* ============================================
   CONTACT — minimal form
   ============================================ */
.contact__head {
  grid-column: 3 / 11;
}

.contact__title {
  font-family: var(--font-title);
  text-transform: uppercase;
  font-weight: 400;
  font-size: clamp(40px, 6vw, 86px);
  line-height: 0.96;
  letter-spacing: -0.03em;
}

.contact__intro {
  margin-top: 18px;
  max-width: 46ch;
  font-family: var(--font-text);
  font-size: var(--t-body);
  line-height: 1.5;
  color: var(--muted-fg);
}

.contact {
  padding-block: var(--sp-section);
  row-gap: var(--sp-l);
  align-items: start;
  border-top: 1px solid var(--rule);
}

.contact__label {
  grid-column: 1 / 3;
  font-family: var(--font-mono);
  font-size: var(--t-label);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--muted-fg);
  padding-top: 0.6em;
}

.contact__form {
  grid-column: 3 / 11;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: var(--gutter);
  row-gap: clamp(28px, 4.5vh, 52px);
  align-items: end;
  margin-top: var(--sp-l);
}

.contact__field {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact__field--wide {
  grid-column: 1 / 3;
}

.contact__field label {
  font-family: var(--font-mono);
  font-size: var(--t-label);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--muted-fg);
}

.contact__field input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rule);
  padding: 10px 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(18px, 1.8vw, 26px);
  letter-spacing: -0.01em;
  color: var(--fg);
  transition: border-color 0.3s var(--ease);
}

.contact__field input::placeholder {
  color: var(--muted-fg);
  opacity: 0.5;
}

.contact__field input:focus {
  outline: none;
  border-bottom-color: var(--fg);
}

.contact__send {
  grid-column: 1 / 3;
  justify-self: start;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: var(--t-label);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--fg);
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
  transition: opacity 0.3s var(--ease);
}

.contact__send:hover {
  opacity: 0.6;
}

/* button has no rise child — drop the mask clip so the hover arrow slide isn't cropped */
.contact__send.reveal-mask {
  overflow: visible;
}

.contact__send.is-sent {
  color: var(--muted);
}


/* ============================================
   FOOTER / COLOPHON
   ============================================ */
/* on the SAME 12-col grid as the page content (.footer also has class .grid),
   so every column lines up with the sections above it */
.footer {
  padding-block: var(--sp-l) var(--sp-m);
  row-gap: var(--sp-l);
  border-top: 1px solid var(--rule);
  align-items: start;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer__col--a {
  grid-column: 3 / 7;
}

.footer__col--b {
  grid-column: 7 / 9;
}

.footer__col--c {
  grid-column: 9 / 11;
}

.footer__col--d {
  grid-column: 11 / 13;
}

.footer__k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted-fg);
  margin-bottom: 16px;
}

/* two-column link list under NAVIGATION (matches the reference) */
.footer__nav-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(24px, 3vw, 56px);
  row-gap: 11px;
}

/* every footer item: uppercase mono, aligned flush to its title */
.footer__link,
.footer__line {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--ink);
}

/* hover square — sits in the gutter to the LEFT of the grid line and slides
   in on hover, so the text itself stays flush on the column (no offset) */
.footer__link {
  position: relative;
  width: fit-content;
  transition: font-weight 0.18s var(--ease);
}

.footer__link::before {
  content: "";
  position: absolute;
  left: -1.1em;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: currentColor;
  opacity: 0;
  transform: translate(9px, -50%);
  transition: transform 0.34s var(--ease), opacity 0.26s var(--ease);
}

.footer__link:hover {
  font-weight: 600;
}

.footer__link:hover::before {
  opacity: 1;
  transform: translate(0, -50%);
}

.footer__trail {
  grid-column: 3 / 13;
  margin-top: var(--sp-m);
}

.footer__copy {
  font-family: var(--font-mono);
  font-size: var(--t-label);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-fg);
}


/* ============================================
   END WORDMARK — fills the width, light weight
   ============================================ */
.endmark {
  padding: clamp(48px, 9vh, 130px) var(--margin) 12px;
  overflow: hidden;
}

.endmark__link {
  display: block;
}

.endmark__svg {
  display: block;
  width: 100%;
  height: auto;
}


/* ============================================
   CROSSHAIR CURSOR (desktop, fine pointer)
   ============================================ */
/* native cursor never shows on desktop — the dot is the cursor */
html.has-crosshair,
html.has-crosshair * {
  cursor: none !important;
}

/* difference blend keeps the crosshair visible over any image */
.cursor {
  position: fixed;
  inset: 0;
  z-index: 9500;
  pointer-events: none;
  mix-blend-mode: difference;
  opacity: 0;
  /* revealed from the pointer on first move */
  transition: opacity 0.28s var(--ease);
}

.cursor.is-revealed {
  opacity: 1;
}

/* over the wordmark or any clickable: hide the whole crosshair */
.cursor.is-off {
  opacity: 0;
}

/* small dot cursor — grows over clickables */
.cursor__dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border-radius: 50%;
  background: #ffffff;
  transition: width 0.25s var(--ease), height 0.25s var(--ease), margin 0.25s var(--ease);
}

.cursor.is-big .cursor__dot {
  width: 38px;
  height: 38px;
  margin: -19px 0 0 -19px;
}

.cursor__view {
  position: fixed;
  top: 0;
  left: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: #ffffff;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.18s var(--ease);
}

.cursor.is-view .cursor__view {
  opacity: 1;
}

/* image trail over the end wordmark — smooth preloaded chain */
.trail-img {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9300;
  width: clamp(150px, 14vw, 280px);
  height: auto;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.25s var(--ease);
  will-change: opacity, transform;
}

@media (hover: none),
(pointer: coarse) {
  html.has-crosshair {
    cursor: auto;
  }

  .cursor,
  .trail-img,
  .cursor-slide-tracker {
    display: none;
  }
}

/* ============================================
   CURSOR SLIDE (Studio Caps)
   ============================================ */
.cursor-slide-tracker {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9400;
  /* below main cursor, above images */
  will-change: transform;
}

.cursor-slide {
  width: clamp(160px, 15vw, 260px);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.5);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), aspect-ratio 0.4s var(--ease);
}

.cursor-slide.is-active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.cursor-slide__inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.cursor-slide__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.cursor.is-hidden {
  opacity: 0 !important;
}


/* ============================================
   CREED — blur reveal between hero and works
   ============================================ */
.creed {
  position: relative;
  min-height: 220vh;
  padding-inline: var(--margin);
  background: var(--ink);
}

/* works rises out of the dark as the creed exits (driven by script.js) */
.works {
  will-change: transform, opacity, clip-path;
}


.creed__inner {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.creed__text {
  color: var(--paper);
  max-width: none;
  text-align: center;
  font-family: var(--font-title);
  text-transform: uppercase;
  font-weight: 400;
  font-size: clamp(28px, 5vw, 78px);
  line-height: 1.16;
  letter-spacing: -0.025em;
}

/* one sentence per row */
.creed__row {
  display: block;
}

/* each word blurs in progressively, driven by scroll position */
.creed__word {
  display: inline-block;
  opacity: 0;
  filter: blur(14px);
  transform: translateY(10px);
  will-change: opacity, filter, transform;
}


/* ============================================
   TRANSITION CURTAIN
   ============================================ */
#transition-curtain {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--bg-light);
  z-index: 999999;
  pointer-events: all;
  clip-path: inset(0 0 0 0);
}


/* ============================================
   PROJECT DETAIL (secondary page)
   ============================================ */
.project-detail {
  width: 100%;
  margin: 0 auto;
  padding: 160px var(--margin) 100px;
  display: grid;
  grid-template-columns: repeat(var(--cols), 1fr);
  column-gap: var(--gutter);
  align-content: start;
}

/* every project-detail block spans the full grid; children below place on grid lines */
.project-detail>* {
  grid-column: 1 / 13;
}

.project-detail__header {
  margin-bottom: var(--sp-l);
}

.project-detail__index {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--t-label);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted-fg);
  margin-bottom: 18px;
}

/* Breadcrumb link in piece detail pages */
.project-detail__index a {
  color: var(--muted-fg);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.project-detail__index a:hover {
  color: var(--fg);
}

.project-detail__breadcrumb-sep {
  margin-inline: 0.4em;
  color: var(--muted-fg);
}

.project-detail__loading {
  padding: 180px var(--margin);
  text-align: center;
  font-family: var(--font-mono);
  font-size: var(--t-label);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-fg);
}

.project-detail__title {
  font-family: var(--font-title);
  text-transform: uppercase;
  font-size: clamp(2.4rem, 6vw, 6rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.project-detail__info-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols), 1fr);
  column-gap: var(--gutter);
  margin-bottom: clamp(48px, 6vw, 12px);
}

.project-detail__info-left {
  grid-column: 1 / 5;
}

.project-detail__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted-fg);
  margin-bottom: 8px;
  display: block;
}

.project-detail__description {
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 24px;
}

.project-detail__description p {
  margin-bottom: 16px;
}

.project-detail__info-right {
  grid-column: 7 / 13;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: var(--gutter);
  row-gap: 40px;
}

.project-detail__info-block p {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  line-height: 1.5;
}

.project-detail__gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: var(--gutter);
  row-gap: var(--gutter);
}

.project-detail__img {
  width: 100%;
  height: auto;
}

.project-back-fixed {
  position: fixed;
  bottom: 40px;
  right: 40px;
  background: var(--paper);
  color: var(--ink);
  padding: 15px 30px;
  border-radius: 40px;
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  z-index: 100;
  transition: transform 0.3s var(--ease);
}

.project-back-fixed:hover {
  transform: scale(1.05);
}

.project-back-btn-text {
  display: block;
  text-align: center;
  padding: 40px 20px 100px;
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
}


/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .rotor {
    --card-w: 200px;
    --card-h: 280px;
    --gap: 25px;
  }

  .studio__statement {
    grid-column: 1 / 13;
  }

  .project-detail__info-grid {
    grid-template-columns: 1fr;
    row-gap: 60px;
  }

  .project-detail__info-left,
  .project-detail__info-right {
    grid-column: 1 / -1;
  }

  .project-detail__info-right {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .bar__links {
    display: none;
  }

  /* live clock moves into the mobile menu */
  .bar__meta {
    display: none;
  }

  .bar__burger {
    display: block;
  }

  .rotor {
    --card-w: 160px;
    --card-h: 220px;
    --gap: 20px;
  }

  .hero__meta {
    display: none;
  }

  .studio__statement,
  .studio__caps {
    grid-column: 1 / 13;
  }

  /* capability rows: number + name + arrow only (drop the tag on narrow screens) */
  .cap__name {
    grid-column: 3 / 12;
  }

  .cap__tag {
    display: none;
  }

  .cap__arrow {
    grid-column: 12 / 13;
  }

  /* 2 x 2 on the SAME 12-col grid as the content above: NAV | CONTACTS / POLICIES | SOCIAL */
  .footer {
    row-gap: var(--sp-l);
  }

  .footer__col--a,
  .footer__col--c {
    grid-column: 1 / 7;
  }

  .footer__col--b,
  .footer__col--d {
    grid-column: 8 / 13;
  }

  .footer__trail {
    grid-column: 1 / 13;
  }

  /* tighter vertical rhythm between voices of the same group */
  .footer__col.reveal-mask .reveal-rise {
    gap: 5px;
  }

  .footer__nav-grid {
    row-gap: 5px;
  }

  .footer__k {
    margin-bottom: 12px;
  }



  .contact__label {
    grid-column: 1 / 13;
  }

  .contact__head {
    grid-column: 1 / 13;
  }

  .contact__form {
    grid-column: 1 / 13;
    grid-template-columns: 1fr;
  }

  .contact__field--wide,
  .contact__send {
    grid-column: 1;
  }

  .project-detail__info-right {
    grid-template-columns: 1fr;
  }

  .project-detail__gallery {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .rotor {
    --card-w: 120px;
    --card-h: 170px;
    --gap: 15px;
  }
}

@media (max-width: 600px) {

  /* only narrow 2-col tiles stack the caption; 1-col is full width → single line */
  .works__grid[data-cols="2"] .work__cap {
    grid-template-columns: auto 1fr;
  }

  .works__grid[data-cols="2"] .work__cat {
    grid-column: 1 / -1;
    text-align: left;
    white-space: normal;
    margin-top: 4px;
  }
}