/* ============================================================
   GJR A+F — Genaro Jesus Rivas, Architecture + Fashion
   "The same hand" — a living drawing set.
   ============================================================ */

:root {
  --bone: #f6f2ea;
  --paper: #fbf9f4;
  --ink: #22201b;
  --ink-soft: #55524a;
  --clay: #b0512a;
  --clay-deep: #8e3f20;
  --stone: #8a8577;
  --line: #ddd5c6;
  --gold: #c98d2e;

  --serif: "Fraunces", "Georgia", serif;
  --sans: "Inter", -apple-system, "Helvetica Neue", sans-serif;

  --max: 1180px;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --ease: cubic-bezier(0.22, 0.61, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bone);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* paper grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 96;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 140px 140px;
}

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

a { color: inherit; }

::selection { background: var(--clay); color: var(--bone); }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

section[id], article[id] { scroll-margin-top: 92px; }

/* smooth cross-page fades where supported */
@view-transition { navigation: auto; }

/* ---------- drafting chrome (injected by JS) ---------- */

.sheet-frame {
  position: fixed;
  inset: 12px;
  border: 1px solid var(--line);
  pointer-events: none;
  z-index: 44;
}
.sheet-frame i {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--clay);
  border-style: solid;
  border-width: 0;
  opacity: 0.85;
}
.sheet-frame i:nth-child(1) { top: -1px; left: -1px; border-top-width: 1px; border-left-width: 1px; }
.sheet-frame i:nth-child(2) { top: -1px; right: -1px; border-top-width: 1px; border-right-width: 1px; }
.sheet-frame i:nth-child(3) { bottom: -1px; left: -1px; border-bottom-width: 1px; border-left-width: 1px; }
.sheet-frame i:nth-child(4) { bottom: -1px; right: -1px; border-bottom-width: 1px; border-right-width: 1px; }

.sheet-progress {
  position: fixed;
  left: 12px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  z-index: 45;
  pointer-events: none;
  background: transparent;
}
.sheet-progress i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--clay);
  transform-origin: top;
  transform: scaleY(var(--p, 0));
}

@media (max-width: 900px) {
  .sheet-frame, .sheet-progress { display: none; }
}

/* drafting crosshair cursor (desktop, fine pointers only) */
.cursor { position: fixed; inset: 0; z-index: 300; pointer-events: none; }
.cursor .h, .cursor .v { position: absolute; background: var(--clay); opacity: 0.09; }
.cursor .h { left: 0; right: 0; height: 1px; top: 0; }
.cursor .v { top: 0; bottom: 0; width: 1px; left: 0; }
.cursor .ring {
  position: absolute;
  width: 28px;
  height: 28px;
  border: 1px solid var(--clay);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(1);
  transition: transform 0.25s var(--ease), background 0.25s;
  margin: 0;
}
.cursor .dot {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--clay);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cursor.on .ring { transform: translate(-50%, -50%) scale(1.7); background: rgba(176, 81, 42, 0.08); }

/* ---------- typography ---------- */

.kicker {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clay);
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.kicker::before {
  content: "";
  width: 2.2rem;
  height: 1px;
  background: var(--clay);
  flex: none;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; letter-spacing: -0.01em; }

.display { font-size: clamp(2.8rem, 7vw, 5.4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin: 0.9rem 0 1.2rem; }
h3 { font-size: 1.35rem; }

.lede { font-size: clamp(1.1rem, 1.9vw, 1.3rem); color: var(--ink-soft); max-width: 50ch; }

.muted { color: var(--ink-soft); }

/* outlined ghost type */
.outline { color: var(--clay); }
@supports (-webkit-text-stroke: 1px black) {
  .outline { color: transparent; -webkit-text-stroke: 1.2px var(--clay); }
}

/* section rule — drawing-set station line */
.section-rule {
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}
.section-rule .kicker::before { display: none; }
.section-rule .rule { flex: 1; height: 1px; background: var(--line); align-self: center; }
.section-rule .sht {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--stone);
  border: 1px solid var(--line);
  padding: 0.25rem 0.6rem;
  white-space: nowrap;
}

/* ---------- header ---------- */

header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bone) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.4s;
}
header.site.scrolled { box-shadow: 0 10px 30px -18px rgba(34, 32, 27, 0.25); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.3rem;
  text-decoration: none;
  letter-spacing: 0.01em;
  line-height: 1.1;
}
.wordmark small {
  display: block;
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--stone);
  margin-top: 0.15rem;
}

.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s;
  position: relative;
}
.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 1px;
  background: var(--clay);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--clay); }
.nav-links a:not(.btn):hover::after, .nav-links a[aria-current="page"]:not(.btn)::after { transform: scaleX(1); }

.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bone);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid var(--ink);
  transition: background 0.25s, color 0.25s, border-color 0.25s;
  will-change: transform;
}
.btn:hover { background: var(--clay); border-color: var(--clay); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--bone); }

.nav .btn { padding: 0.55rem 1.2rem; }

.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.4rem; }
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.25s, opacity 0.25s;
}

@media (max-width: 780px) {
  .menu-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    display: none;
    padding: 0.5rem 0 1rem;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; text-align: center; }
  .nav-links a { display: block; padding: 0.8rem; font-size: 1rem; }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-links .btn { margin: 0.5rem auto 0; display: inline-block; }
  body.nav-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(3.5rem, 8vw, 6rem);
  min-height: min(820px, calc(100svh - 120px));
  display: flex;
  align-items: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.5;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 28% 18%, black 0%, transparent 72%);
  mask-image: radial-gradient(ellipse 90% 80% at 28% 18%, black 0%, transparent 72%);
  pointer-events: none;
}
.hero > .wrap { position: relative; z-index: 1; width: 100%; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } }

.hero h1 { margin: 1.3rem 0 1.5rem; }
.hero h1 em { font-style: italic; color: var(--clay); position: relative; white-space: nowrap; display: inline-block; }

.scribble {
  position: absolute;
  left: -2%;
  bottom: -0.42em;
  width: 104%;
  height: 0.26em;
  overflow: visible;
  pointer-events: none;
}
.scribble path {
  fill: none;
  stroke: var(--clay);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 620;
  stroke-dashoffset: 620;
  transition: stroke-dashoffset 1.1s var(--ease) 0.9s;
  opacity: 0.85;
}
.in .scribble path, .revealed .scribble path { stroke-dashoffset: 0; }

/* line-by-line rise */
.reveal-lines .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.reveal-lines .line:last-child { padding-bottom: 0.55em; margin-bottom: -0.55em; }
.reveal-lines .line > span { display: inline-block; transform: translateY(112%); transition: transform 0.95s var(--ease); }
.reveal-lines .line:nth-child(2) > span { transition-delay: 0.1s; }
.reveal-lines .line:nth-child(3) > span { transition-delay: 0.2s; }
.reveal-lines.in .line > span, .revealed .reveal-lines .line > span { transform: none; }

.hero-ctas { display: flex; gap: 0.9rem; margin-top: 2.4rem; flex-wrap: wrap; }

.scroll-cue {
  position: absolute;
  right: clamp(1.2rem, 3vw, 2.6rem);
  bottom: 1.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  z-index: 2;
}
.scroll-cue small {
  writing-mode: vertical-rl;
  font-size: 0.62rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--stone);
}
.scroll-cue .track { width: 1px; height: 56px; background: var(--line); position: relative; overflow: hidden; }
.scroll-cue .track::after {
  content: "";
  position: absolute;
  left: 0;
  top: -18px;
  width: 1px;
  height: 18px;
  background: var(--clay);
  animation: cue 1.8s var(--ease) infinite;
}
@keyframes cue { to { top: 60px; } }
@media (max-width: 880px) { .scroll-cue { display: none; } }

/* ---------- framed images / title blocks ---------- */

.frame {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: clamp(0.8rem, 1.6vw, 1.3rem);
  box-shadow: 0 30px 60px -35px rgba(34, 32, 27, 0.35);
  position: relative;
}
.frame img { width: 100%; height: auto; }

.tb {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0 1.4rem;
  border-top: 1px solid var(--line);
  margin-top: 0.85rem;
  padding-top: 0.65rem;
}
.tb div + div { border-left: 1px solid var(--line); padding-left: 1.4rem; }
.tb small {
  display: block;
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stone);
}
.tb b {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}
.tb div:first-child b { white-space: normal; }
@media (max-width: 560px) {
  .tb { grid-template-columns: 1fr; gap: 0.4rem; }
  .tb div + div { border-left: 0; padding-left: 0; }
}

/* image draw-in reveal */
.reveal-img { overflow: hidden; }
.reveal-img img {
  clip-path: inset(0 100% 0 0);
  transform: scale(1.06);
  transition: clip-path 1s var(--ease), transform 1.6s var(--ease);
}
.reveal-img.in img, .in .reveal-img img { clip-path: inset(0 0 0 0); transform: scale(1); }

/* ---------- ticker ---------- */

.ticker {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  padding: 0.85rem 0;
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: tick 30s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span {
  display: flex;
  align-items: center;
  gap: 2.6rem;
  padding-right: 2.6rem;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--clay);
  white-space: nowrap;
}
.ticker-track span i { font-style: normal; color: var(--stone); font-size: 0.9rem; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */

section.band { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
section.band.alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { max-width: 68ch; margin-bottom: clamp(2rem, 4vw, 3.2rem); }

/* about */
.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}
@media (max-width: 880px) { .about-grid { grid-template-columns: 1fr; max-width: 560px; } }

.about-fig { position: relative; }
.about-fig .frame img { aspect-ratio: 4 / 5; object-fit: cover; }

.spin-ring {
  position: absolute;
  top: -3.2rem;
  right: -3.2rem;
  width: 9.5rem;
  height: 9.5rem;
  animation: spin 26s linear infinite;
  z-index: 2;
  pointer-events: none;
}
.spin-ring text {
  font-family: var(--sans);
  font-size: 8.4px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  fill: var(--clay);
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 880px) { .spin-ring { right: -0.8rem; top: -2.6rem; width: 7.5rem; height: 7.5rem; } }

.stats { display: flex; gap: 2.8rem; margin-top: 2.2rem; flex-wrap: wrap; }
.stat b { font-family: var(--serif); font-size: 2.6rem; font-weight: 500; display: block; line-height: 1; }
.stat b sup { font-size: 1.1rem; color: var(--clay); }
.stat span { font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--stone); }

/* philosophy */
.philosophy { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 780px) { .philosophy { grid-template-columns: 1fr; } }
.philosophy article {
  background: var(--bone);
  padding: 2.2rem 1.9rem 2.4rem;
  position: relative;
  transition: background 0.4s;
}
.philosophy article::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--clay);
  transition: width 0.6s var(--ease);
}
.philosophy article:hover { background: var(--paper); }
.philosophy article:hover::before { width: 100%; }
.philosophy .num { font-family: var(--serif); font-style: italic; font-size: 2.6rem; line-height: 1; display: block; }
.philosophy h3 { margin: 0.8rem 0 0.7rem; }
.philosophy p { color: var(--ink-soft); font-size: 0.98rem; }

blockquote.motto {
  margin: clamp(2.5rem, 5vw, 4.5rem) auto 0;
  max-width: 46ch;
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  font-style: italic;
  line-height: 1.45;
}
blockquote.motto footer {
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clay);
  margin-top: 1.2rem;
}

/* work cards */
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 3.5vw, 3rem); align-items: start; }
@media (max-width: 780px) { .work-grid { grid-template-columns: 1fr; } }
@media (min-width: 781px) { .work-card:nth-child(2) { margin-top: 4.5rem; } }

.work-card { text-decoration: none; display: block; }
.work-card .idx {
  font-family: var(--serif);
  font-style: italic;
  color: var(--clay);
  font-size: 1rem;
  display: block;
  margin-bottom: 0.6rem;
}
.work-card .thumb { overflow: hidden; border: 1px solid var(--line); background: var(--paper); position: relative; }
.work-card .thumb img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
  transition: transform 0.8s var(--ease);
}
.work-card:hover .thumb img { transform: scale(1.045) rotate(-0.4deg); }
.work-card .thumb::before, .work-card .thumb::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 0 solid var(--clay);
  opacity: 0;
  transition: opacity 0.35s;
  z-index: 2;
}
.work-card .thumb::before { top: 8px; left: 8px; border-top-width: 1px; border-left-width: 1px; }
.work-card .thumb::after { bottom: 8px; right: 8px; border-bottom-width: 1px; border-right-width: 1px; }
.work-card:hover .thumb::before, .work-card:hover .thumb::after { opacity: 1; }
.work-card .meta { padding-top: 1.2rem; }
.work-card .meta .tag { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--clay); font-weight: 600; }
.work-card h3 { margin: 0.4rem 0 0.4rem; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.work-card p { color: var(--ink-soft); font-size: 0.98rem; max-width: 46ch; }
.work-card .go {
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 0.8rem;
  display: inline-block;
  border-bottom: 1px solid var(--clay);
  padding-bottom: 2px;
}
.work-card .go::after { content: "→"; display: inline-block; margin-left: 0.45rem; transition: transform 0.35s var(--ease); }
.work-card:hover .go::after { transform: translateX(6px); }

/* ---------- services ---------- */

.phases { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
.phase {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-top: clamp(1.8rem, 3vw, 2.6rem);
  border-top: 1px solid var(--line);
}
@media (max-width: 780px) { .phase { grid-template-columns: 1fr; gap: 1rem; } }
.phase-label { align-self: start; }
@media (min-width: 781px) { .phase-label { position: sticky; top: 108px; } }
.phase-label .num {
  font-family: var(--serif);
  font-size: clamp(3.6rem, 6vw, 5.4rem);
  line-height: 0.95;
  display: block;
}
.phase-label h3 { margin-top: 0.6rem; }
.phase-label .phase-sub { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--stone); margin-top: 0.4rem; display: block; }

.phase-items { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem 2.5rem; }
@media (max-width: 640px) { .phase-items { grid-template-columns: 1fr; } }
.phase-items > div { padding-top: 0.2rem; }
.phase-items h4 { font-size: 0.98rem; font-weight: 600; margin-bottom: 0.3rem; display: flex; align-items: center; gap: 0.6rem; }
.phase-items h4::before {
  content: "";
  width: 8px;
  height: 8px;
  border: 1px solid var(--clay);
  flex: none;
  transition: background 0.3s;
}
.phase-items > div:hover h4::before { background: var(--clay); }
.phase-items p { font-size: 0.92rem; color: var(--ink-soft); }

/* ---------- FAQ ---------- */

.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--ink);
  text-align: left;
  padding: 1.3rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-q i {
  font-style: normal;
  font-family: var(--sans);
  color: var(--clay);
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.35s var(--ease);
  flex: none;
}
.faq-item.open .faq-q i { transform: rotate(45deg); }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--ease);
}
.faq-a > div { overflow: hidden; }
.faq-a p { color: var(--ink-soft); max-width: 62ch; padding-bottom: 0; transition: padding 0.5s var(--ease); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-item.open .faq-a p { padding-bottom: 1.4rem; }

/* ---------- page heroes ---------- */

.page-hero { padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(2rem, 4vw, 3.5rem); position: relative; }
.page-hero .ghost {
  position: absolute;
  right: clamp(0.5rem, 4vw, 3rem);
  top: 0.5rem;
  font-family: var(--serif);
  font-size: clamp(6rem, 18vw, 15rem);
  line-height: 1;
  opacity: 0.5;
  user-select: none;
  pointer-events: none;
}
.page-hero .wrap { position: relative; }

/* drawing-set sheet index */
.sheet-index { list-style: none; margin-top: clamp(2rem, 4vw, 3rem); max-width: 620px; }
.sheet-index li + li { margin-top: 0.1rem; }
.sheet-index a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  text-decoration: none;
  padding: 0.65rem 0.4rem;
  transition: background 0.3s, padding 0.3s;
}
.sheet-index a:hover { background: var(--paper); padding-left: 0.9rem; }
.sheet-index .sno {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--clay);
  border: 1px solid var(--line);
  padding: 0.15rem 0.5rem;
  white-space: nowrap;
}
.sheet-index .ttl { font-family: var(--serif); font-size: 1.15rem; }
.sheet-index .dots { flex: 1; border-bottom: 1px dashed var(--line); transform: translateY(-4px); }
.sheet-index .yr { font-size: 0.78rem; color: var(--stone); letter-spacing: 0.1em; }

/* ---------- projects (sticky brief + scrolling media) ---------- */

.project { padding: clamp(3rem, 6vw, 5rem) 0; border-top: 1px solid var(--line); }

.project-grid {
  display: grid;
  grid-template-columns: minmax(280px, 400px) 1fr;
  gap: clamp(2rem, 4.5vw, 4.5rem);
  align-items: start;
}
@media (max-width: 950px) { .project-grid { grid-template-columns: 1fr; } }

.project-side { position: sticky; top: 104px; }
@media (max-width: 950px) { .project-side { position: static; } }

.project-side h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.project-side .body p + p { margin-top: 1rem; }
.project-side .body p { font-size: 0.98rem; color: var(--ink-soft); }
.project-side .body h4 {
  margin: 1.4rem 0 0.3rem;
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clay);
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  margin-top: 1.6rem;
  background: var(--paper);
}
.facts > div { padding: 0.7rem 0.95rem; }
.facts > div + div { border-left: 1px solid var(--line); }
.facts dt { font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--stone); }
.facts dd { font-weight: 500; font-size: 0.92rem; }

.swatchline { display: flex; align-items: center; gap: 0.7rem; margin-top: 1.4rem; }
.swatch {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  display: inline-block;
  background: var(--c, var(--line));
  border: 1px solid rgba(34, 32, 27, 0.18);
  flex: none;
}
.swatchline .mat { font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--stone); }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(0.8rem, 1.6vw, 1.4rem); }
.gallery figure { position: relative; margin: 0; }
.gallery figure.w-full { grid-column: span 12; }
.gallery figure.w-half { grid-column: span 6; }
.gallery figure.w-third { grid-column: span 4; }
@media (max-width: 700px) {
  .gallery figure.w-half, .gallery figure.w-third { grid-column: span 12; }
}
.gallery .imgbox { overflow: hidden; border: 1px solid var(--line); background: var(--paper); position: relative; }
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 0.7s var(--ease);
}
.gallery figure:hover img { transform: scale(1.03); }
.gallery figcaption {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
  margin-top: 0.55rem;
  display: flex;
  gap: 0.7rem;
  align-items: baseline;
}
.gallery figcaption::before {
  content: "";
  width: 1rem;
  height: 1px;
  background: var(--clay);
  align-self: center;
  flex: none;
}

/* dictionary entry (fashion hero) */
.dict { margin-top: 1.8rem; max-width: 60ch; }
.dict .entry { font-family: var(--serif); font-size: clamp(1.3rem, 2.6vw, 1.8rem); display: flex; gap: 1rem; align-items: baseline; flex-wrap: wrap; }
.dict .pron { color: var(--stone); font-size: 0.75em; }
.dict .pos { font-style: italic; color: var(--clay); font-size: 0.7em; }
.dict > p { margin-top: 0.8rem; color: var(--ink-soft); }

/* dedication */
.dedication-band {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  text-align: center;
  position: relative;
}
.dedication-band .wrap { max-width: 760px; }
.dedication-band p.story { color: var(--ink-soft); }
.dedication-band p.story + p.story { margin-top: 1rem; }
.dedication {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  color: var(--clay-deep);
  margin-top: 2rem;
  line-height: 1.4;
}
.dedication-band .meta-row {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 2.2rem;
  flex-wrap: wrap;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stone);
}

/* ---------- lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(24, 22, 18, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 120;
  padding: 4vmin;
  flex-direction: column;
  gap: 1rem;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 92vw;
  max-height: 82vh;
  width: auto;
  height: auto;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
  cursor: default;
}
.lightbox .lb-bar {
  display: flex;
  gap: 1.6rem;
  align-items: baseline;
  color: #b9b3a6;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.lightbox .lb-bar b { color: var(--bone); font-weight: 500; }
.lightbox button {
  background: none;
  border: none;
  color: var(--bone);
  cursor: pointer;
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1;
  opacity: 0.75;
  transition: opacity 0.2s, transform 0.3s var(--ease);
  padding: 0.5rem;
}
.lightbox button:hover { opacity: 1; }
.lightbox .lb-close { position: absolute; top: 1.1rem; right: 1.4rem; font-family: var(--sans); font-size: 1.7rem; }
.lightbox .lb-prev, .lightbox .lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox .lb-prev { left: 1rem; }
.lightbox .lb-next { right: 1rem; }
.lightbox .lb-prev:hover { transform: translateY(-50%) translateX(-4px); }
.lightbox .lb-next:hover { transform: translateY(-50%) translateX(4px); }

/* ---------- contact / footer ---------- */

.contact-band {
  background: var(--ink);
  color: var(--bone);
  padding: clamp(4rem, 9vw, 7.5rem) 0;
  position: relative;
  overflow: hidden;
}
.contact-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(246, 242, 234, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246, 242, 234, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 75% 15%, black, transparent 70%);
  mask-image: radial-gradient(ellipse 80% 90% at 75% 15%, black, transparent 70%);
}
.contact-band .wrap { position: relative; }
.contact-band .kicker { color: var(--gold); }
.contact-band .kicker::before { background: var(--gold); }
.contact-band h2 { color: #fff; max-width: 24ch; font-size: clamp(2.2rem, 5vw, 3.6rem); }
.contact-band .lede { color: #b9b3a6; }

.big-links { list-style: none; margin-top: 2.8rem; display: grid; gap: 1.4rem; }
.big-links li { display: flex; align-items: baseline; gap: 1.4rem; flex-wrap: wrap; }
.big-links .lbl {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  min-width: 5.5rem;
}
.big-links a {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  color: var(--bone);
  text-decoration: none;
  line-height: 1.25;
  background-image: linear-gradient(var(--clay), var(--clay));
  background-size: 0% 2px;
  background-position: 0 96%;
  background-repeat: no-repeat;
  transition: background-size 0.55s var(--ease), color 0.3s;
  overflow-wrap: anywhere;
}
.big-links a:hover { background-size: 100% 2px; color: #fff; }

footer.site {
  background: var(--ink);
  color: #8f8a7e;
  border-top: 1px solid #3a372f;
  padding: 2.4rem 0 2.6rem;
  font-size: 0.85rem;
  overflow: hidden;
}
footer.site .wm {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(4.5rem, 15vw, 12rem);
  line-height: 0.9;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1px #4a463c;
  user-select: none;
  pointer-events: none;
  margin-bottom: 2rem;
  white-space: nowrap;
}
@supports not (-webkit-text-stroke: 1px black) { footer.site .wm { color: #33302a; } }
footer.site .cols { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
footer.site a { color: #c5bfb1; text-decoration: none; }
footer.site a:hover { color: #fff; }
footer.site .foot-links { display: flex; gap: 1.6rem; list-style: none; }

/* ---------- reveal system ---------- */

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-lines .line > span, .reveal-img img { opacity: 1; transform: none; transition: none; clip-path: none; }
  .scribble path { stroke-dashoffset: 0; transition: none; }
  .ticker-track { animation: none; flex-wrap: wrap; width: auto; }
  .spin-ring, .scroll-cue .track::after { animation: none; }
  .cursor { display: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
