/* ==========================================================================
   V3 — Design tokens
   Ink black / bone / brass / oxblood — an architecture-exhibition palette,
   deliberately not the cream+terracotta or near-black+neon defaults.
   ========================================================================== */

:root {
  --ink:        #0c0c0e;
  --ink-soft:   #131316;
  --bone:       #efeae0;
  --bone-dim:   #c9c4b7;
  --brass:      #a8823e;
  --brass-soft: #c7a468;
  --oxblood:    #4a1b1b;
  --oxblood-lt: #6e2b2b;
  --concrete:   #7a756b;
  --line:       rgba(239, 234, 224, 0.14);

  --font-display: "Fraunces", "Iowan Old Style", serif;
  --font-body:    "General Sans", "Inter", -apple-system, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ==========================================================================
   Reset & base
   ========================================================================== */

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  background: var(--ink);
  scroll-behavior: auto; /* Lenis owns smoothing */
}

body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  cursor: none;
}

@media (max-width: 860px) {
  body { cursor: auto; }
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: none; }
@media (max-width: 860px) { button { cursor: pointer; } }

::selection { background: var(--brass); color: var(--ink); }

.lenis { height: auto; }

/* ==========================================================================
   Typography primitives
   ========================================================================== */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass-soft);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--brass-soft);
  display: inline-block;
}

.display {
  font-family: var(--font-display);
  font-weight: 480;
  letter-spacing: -0.01em;
  line-height: 0.94;
}

.display-italic {
  font-style: italic;
  font-weight: 380;
}

.mono-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--concrete);
}

/* ==========================================================================
   Custom cursor
   ========================================================================== */

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brass-soft);
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
  will-change: transform;
}

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border: 1px solid var(--bone-dim);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out), border-color 0.3s var(--ease-out), opacity 0.3s;
  will-change: transform;
}

.cursor-ring span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.25s var(--ease-out);
  white-space: nowrap;
}

.cursor-ring.is-active {
  width: 84px;
  height: 84px;
  border-color: var(--brass-soft);
  background: rgba(168, 130, 62, 0.08);
}

.cursor-ring.is-active span { opacity: 1; }

@media (max-width: 860px) {
  .cursor, .cursor-ring { display: none; }
}

/* ==========================================================================
   Preloader
   ========================================================================== */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
}

.preloader__count {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 480;
  font-variant-numeric: tabular-nums;
}

.preloader__bar {
  width: min(320px, 60vw);
  height: 1px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}

.preloader__bar span {
  position: absolute;
  inset: 0;
  width: 0%;
  background: var(--brass-soft);
}

.preloader__label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--concrete);
}

/* ==========================================================================
   Site ruler — fixed vertical index (signature element)
   ========================================================================== */

.site-ruler {
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  width: 64px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
  pointer-events: none;
}

@media (max-width: 860px) { .site-ruler { display: none; } }

.site-ruler__mark {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: var(--concrete);
  writing-mode: vertical-rl;
  text-transform: uppercase;
}

.site-ruler__track {
  position: relative;
  width: 1px;
  flex: 1;
  background: var(--line);
  margin: 18px 0;
}

.site-ruler__progress {
  position: absolute;
  top: 0;
  left: -1px;
  width: 3px;
  height: 0%;
  background: var(--brass-soft);
}

.site-ruler__index {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--brass-soft);
  writing-mode: vertical-rl;
}

/* ==========================================================================
   Top bar
   ========================================================================== */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 40px 26px 84px;
  mix-blend-mode: difference;
}

@media (max-width: 860px) {
  .topbar { padding: 20px 20px; }
}

.topbar__mark {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  font-weight: 600;
}

.topbar__nav {
  display: flex;
  gap: 2.4rem;
}

@media (max-width: 860px) {
  .topbar__nav { display: none; }
}

.topbar__nav a {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 3px;
}

.topbar__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 1px;
  background: currentColor;
  transition: width 0.35s var(--ease-out);
}

.topbar__nav a:hover::after { width: 100%; }

.topbar__menu-btn {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: none;
}

@media (max-width: 860px) {
  .topbar__menu-btn { display: block; }
}

/* ==========================================================================
   Sections — shared
   ========================================================================== */

section { position: relative; }

.section-pad {
  padding: clamp(90px, 12vw, 180px) clamp(20px, 6vw, 84px);
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(14px, 2vw, 28px);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  height: 100svh;
  min-height: 640px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: radial-gradient(ellipse at 70% 20%, #1a1712 0%, var(--ink) 62%);
}

.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.9;
}

.hero__grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 3;
  padding: 0 clamp(20px, 6vw, 84px) clamp(56px, 7vw, 96px);
}

.hero__eyebrow-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.6rem;
}

.hero__title {
  font-size: clamp(3.2rem, 10.6vw, 9.6rem);
  overflow: hidden;
}

.hero__title .line { display: block; overflow: hidden; }
.hero__title .line span { display: block; }

.hero__sub-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 2.2rem;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero__desc {
  max-width: 30ch;
  font-size: 1rem;
  color: var(--bone-dim);
}

.hero__scroll {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--concrete);
}

.hero__scroll-line {
  width: 1px;
  height: 46px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}

.hero__scroll-line span {
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--brass-soft);
  animation: scrollDrop 2.2s var(--ease-in-out) infinite;
}

@keyframes scrollDrop {
  0% { top: -100%; }
  60% { top: 100%; }
  100% { top: 100%; }
}

/* ==========================================================================
   Manifesto (editorial intro)
   ========================================================================== */

.manifesto {
  background: var(--ink);
  border-top: 1px solid var(--line);
}

.manifesto__quote {
  grid-column: 1 / 8;
  font-size: clamp(1.9rem, 3.6vw, 3.4rem);
  line-height: 1.14;
}

@media (max-width: 860px) {
  .manifesto__quote { grid-column: 1 / -1; }
}

.manifesto__side {
  grid-column: 9 / 13;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 1.6rem;
  padding-top: 2rem;
}

@media (max-width: 860px) {
  .manifesto__side { grid-column: 1 / -1; padding-top: 2.5rem; }
}

.manifesto__side p {
  color: var(--bone-dim);
  font-size: 0.98rem;
  max-width: 40ch;
}

.manifesto__stat {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  border-top: 1px solid var(--line);
  padding-top: 0.9rem;
}

.manifesto__stat b {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--brass-soft);
}

/* ==========================================================================
   Collection — horizontal scroll showcase
   ========================================================================== */

.collection {
  background: var(--ink-soft);
  overflow: hidden;
}

.collection__head {
  padding: clamp(80px, 10vw, 140px) clamp(20px, 6vw, 84px) 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
}

.collection__title { font-size: clamp(2.4rem, 6vw, 5rem); }

.collection__track {
  display: flex;
  gap: clamp(18px, 3vw, 40px);
  padding: 0 clamp(20px, 6vw, 84px) clamp(70px, 8vw, 120px);
  width: max-content;
}

.placard {
  width: min(74vw, 560px);
  flex-shrink: 0;
}

.placard__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #1a1a1c;
}

.placard__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.12);
  filter: grayscale(0.25) contrast(1.05);
  transition: transform 1.1s var(--ease-out), filter 0.6s;
}

.placard:hover .placard__frame img {
  transform: scale(1);
  filter: grayscale(0) contrast(1.08);
}

.placard__status {
  position: absolute;
  top: 18px;
  left: 18px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  padding: 6px 10px;
  border: 1px solid rgba(239, 234, 224, 0.35);
  background: rgba(12, 12, 14, 0.55);
  backdrop-filter: blur(6px);
  text-transform: uppercase;
}

.placard__index {
  position: absolute;
  top: 18px;
  right: 18px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--bone);
}

.placard__meta {
  padding-top: 1.1rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.4rem 1rem;
}

.placard__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
}

.placard__loc {
  grid-column: 1 / -1;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--brass-soft);
  text-transform: uppercase;
}

.placard__data {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.4rem;
  margin-top: 0.5rem;
  border-top: 1px solid var(--line);
  padding-top: 0.6rem;
}

.placard__data span {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  color: var(--concrete);
  text-transform: uppercase;
}

.placard__data span b { color: var(--bone-dim); font-weight: 500; }

.collection__hint {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--concrete);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* ==========================================================================
   Numbers — staggered statistic line
   ========================================================================== */

.numbers {
  background: var(--ink);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.numbers__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 clamp(1rem, 3vw, 3rem);
}

.numbers__item {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  padding: 1.4rem 0;
}

.numbers__item b {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-style: italic;
  font-weight: 400;
  color: var(--bone);
}

.numbers__item span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--concrete);
  max-width: 12ch;
}

.numbers__item:nth-child(2) { margin-left: clamp(0px, 6vw, 90px); }
.numbers__item:nth-child(3) { margin-left: clamp(0px, 2vw, 40px); }
.numbers__item:nth-child(4) { margin-left: clamp(0px, 9vw, 130px); }

/* ==========================================================================
   Process — pinned elevation sections
   ========================================================================== */

.process { background: var(--ink); }

.process__pin {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100svh;
  align-items: center;
  gap: clamp(20px, 4vw, 60px);
  padding: 0 clamp(20px, 6vw, 84px);
}

@media (max-width: 860px) {
  .process__pin { grid-template-columns: 1fr; min-height: auto; padding-top: 4rem; padding-bottom: 4rem; }
}

.process__visual {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #16161a;
}

.process__visual img {
  width: 100%; height: 100%; object-fit: cover;
}

.process__index {
  position: absolute;
  bottom: 18px;
  left: 18px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--bone);
  text-transform: uppercase;
}

.process__text h3 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin: 1rem 0 1.2rem;
}

.process__text p {
  color: var(--bone-dim);
  max-width: 42ch;
  font-size: 1rem;
}

/* ==========================================================================
   Locations — index list with hover reveal
   ========================================================================== */

.locations {
  background: var(--ink-soft);
  border-top: 1px solid var(--line);
}

.locations__list { border-top: 1px solid var(--line); }

.locations__item {
  border-bottom: 1px solid var(--line);
  padding: clamp(1.1rem, 2.4vw, 1.8rem) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
  transition: padding-left 0.4s var(--ease-out);
}

.locations__item:hover { padding-left: 1.2rem; }

.locations__item-name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 4.6rem);
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

.locations__item-name small {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--concrete);
}

.locations__item-count {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--brass-soft);
  text-transform: uppercase;
  white-space: nowrap;
}

.locations__preview {
  position: fixed;
  top: 0;
  left: 0;
  width: 240px;
  height: 320px;
  pointer-events: none;
  z-index: 60;
  overflow: hidden;
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}

.locations__preview.is-active { opacity: 1; transform: scale(1); }
.locations__preview img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   Press marquee
   ========================================================================== */

.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.6rem 0;
  overflow: hidden;
  background: var(--ink);
}

.marquee__track {
  display: flex;
  width: max-content;
  gap: 3.5rem;
  animation: marquee 34s linear infinite;
}

.marquee__track span {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--concrete);
  white-space: nowrap;
}

.marquee__track span i {
  color: var(--brass-soft);
  font-style: normal;
  margin-right: 3.5rem;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ==========================================================================
   CTA / Contact
   ========================================================================== */

.cta {
  background: linear-gradient(180deg, var(--ink) 0%, var(--oxblood) 140%);
  position: relative;
  overflow: hidden;
}

.cta__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.4rem;
}

.cta__title {
  font-size: clamp(2.6rem, 8vw, 6.4rem);
  max-width: 16ch;
}

.magnetic-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(160px, 20vw, 220px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid var(--bone-dim);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.magnetic-btn__fill {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--brass-soft);
  transform: scale(0);
  transition: transform 0.45s var(--ease-out);
  z-index: -1;
}

.magnetic-btn:hover .magnetic-btn__fill { transform: scale(1); }
.magnetic-btn:hover { color: var(--ink); border-color: var(--brass-soft); }

.cta__form {
  width: 100%;
  max-width: 640px;
  text-align: left;
  margin-top: 1.5rem;
  display: none;
}

.cta__form.is-open { display: block; }

.field {
  border-bottom: 1px solid var(--line);
  padding: 0.9rem 0;
  margin-bottom: 0.4rem;
}

.field input,
.field textarea {
  width: 100%;
  background: none;
  border: none;
  outline: none;
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 1rem;
  resize: none;
}

.field input::placeholder,
.field textarea::placeholder { color: var(--concrete); }

.field-error {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--brass-soft);
  margin-top: 0.3rem;
  min-height: 1em;
}

.cta__submit {
  margin-top: 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  border: 1px solid var(--bone);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: background 0.3s var(--ease-out), color 0.3s var(--ease-out);
}

.cta__submit:hover { background: var(--bone); color: var(--ink); }

.cta__status {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--brass-soft);
  min-height: 1.2em;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--ink);
  border-top: 1px solid var(--line);
  padding: clamp(50px, 6vw, 80px) clamp(20px, 6vw, 84px) 2rem;
}

.footer__top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2.5rem 4rem;
  padding-bottom: clamp(40px, 5vw, 70px);
  border-bottom: 1px solid var(--line);
}

.footer__mark { font-family: var(--font-display); font-size: 2rem; }

.footer__col h4 {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--concrete);
  margin-bottom: 1rem;
}

.footer__col a, .footer__col p {
  display: block;
  font-size: 0.92rem;
  color: var(--bone-dim);
  margin-bottom: 0.55rem;
}

.footer__col a:hover { color: var(--brass-soft); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  padding-top: 1.6rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--concrete);
}

/* ==========================================================================
   Reveal utility (JS toggles .is-visible)
   ========================================================================== */

.reveal { opacity: 0; transform: translateY(28px); }

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
