/* pride.studio — styles. Bump ?v= in index.html after every change. */
:root {
  --bg: #ebe5e3;
  --surface: #e1dad7;
  --ink: #2b2622;
  --muted: #6a615d;
  --accent: #0f7d45;
  --accent-ink: #ffffff;
  --dark: #1f1b18;
  --on-dark: #ebe5e3;
  --on-dark-soft: #a39a95;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.375rem, 1rem + 1.3vw, 2.25rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-display: clamp(2.25rem, 0.9rem + 5.6vw, 7rem);

  --m: clamp(20px, 3.5vw, 56px);      /* outer page margin, one pair everywhere */
  --gap: 24px;
  --section: clamp(112px, 12vw, 200px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Onest", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 var(--step-body)/1.45 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure { margin: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.wrap { padding-inline: var(--m); }
.small { font-size: var(--step-small); }
.h-sm { font-size: 1.5rem; font-weight: 500; letter-spacing: -0.01em; line-height: 1.1; }
.h-md { font-size: var(--step-head); font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.h-lg { font-size: var(--step-head); font-weight: 700; letter-spacing: -0.02em; line-height: 0.95; }

/* Button: square corners, one fill */
.btn {
  display: inline-flex; align-items: center; min-height: 52px; padding: 0 28px;
  background: var(--accent); color: var(--accent-ink); text-decoration: none;
  font-weight: 500; transition: transform .2s var(--ease), background-color .2s;
}
.btn:hover { background: #0c6a3a; }
.btn:active { transform: scale(.97); }

/* ---------- Hero: dark field, lit strip ---------- */
.hero {
  background: var(--dark); color: var(--on-dark);
  min-height: 100svh; display: grid;
  grid-template-rows: auto auto 1fr auto auto;
  padding-block: 28px 40px; overflow: hidden;
}
.bar { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; font-size: var(--step-small); font-weight: 500; }
.wordmark { font-size: var(--step-body); font-weight: 700; text-decoration: none; letter-spacing: -0.01em; }
.nav { display: flex; gap: clamp(16px, 2.4vw, 36px); }
.nav a, .footer a { text-decoration: none; }
.nav a { color: var(--on-dark-soft); transition: color .2s; }
.nav a:hover { color: var(--on-dark); }
.hero-title {
  margin-top: clamp(40px, 7vh, 88px);
  font-size: var(--step-display); font-weight: 700; letter-spacing: -0.035em; line-height: 0.92;
  max-width: 14ch;
}
.strip {
  align-self: center; margin-top: clamp(32px, 5vh, 56px);
  display: flex; gap: 10px; height: 34vh; min-height: 220px; max-height: 380px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding-inline: 30vw; cursor: grab;
}
.strip::-webkit-scrollbar { display: none; }
.strip.dragging { cursor: grabbing; scroll-snap-type: none; }
.frame { flex: 0 0 auto; height: 100%; scroll-snap-align: center; }
.frame img {
  height: 100%; width: auto; object-fit: cover; user-select: none; -webkit-user-drag: none;
  filter: brightness(.5) grayscale(.35); transition: filter .45s var(--ease), transform .45s var(--ease);
}
.frame:hover img, .frame.is-lit img { filter: none; }
.strip-caption {
  margin-top: 14px; font-size: var(--step-small); color: var(--on-dark-soft);
  min-height: 1.4em; text-align: center;
}
.hero-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-top: clamp(28px, 5vh, 56px); }
.hero-lede { max-width: 36ch; font-size: var(--step-body); color: var(--on-dark); }

/* ---------- Work: quiet ledger, side preview ---------- */
.work { position: relative; padding-block: var(--section); display: grid; grid-template-columns: 22% minmax(0, 600px) 1fr; }
.ledger { grid-column: 2; }
.ledger h2 { margin-bottom: 32px; }
.rows li.year-start:not(:first-child) { margin-top: 28px; }
.rows a {
  display: grid; grid-template-columns: 55% 1fr auto; align-items: center; gap: 12px;
  min-height: 44px; text-decoration: none; color: var(--ink); transition: color .18s;
}
.r-kind { font-size: var(--step-small); color: var(--muted); transition: color .18s; }
.r-year { font-size: var(--step-small); font-variant-numeric: tabular-nums; color: var(--muted); }
.rows:hover a, .rows:focus-within a { color: var(--muted); }
.rows a:hover, .rows a:focus-visible { color: var(--ink); }
.rows a:hover .r-kind, .rows a:focus-visible .r-kind { color: var(--ink); }
.more { margin-top: 40px; }
.more a { font-weight: 500; text-underline-offset: 4px; }
.preview {
  position: absolute; left: calc(22% + min(600px, 50%) + 64px); top: 0; width: min(420px, 26vw);
  aspect-ratio: 4 / 3; overflow: hidden; pointer-events: none;
  opacity: 0; transform: translateY(8px); transition: opacity .15s, transform .3s var(--ease), top .25s var(--ease);
}
.preview.on { opacity: 1; transform: none; }
.preview img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* ---------- About ---------- */
.about {
  background: var(--surface); padding-block: var(--section);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap);
}
.facts { grid-column: 1 / span 3; display: grid; align-content: start; gap: 10px; color: var(--ink); font-size: var(--step-small); }
.facts h2 { color: var(--ink); margin-bottom: 14px; }
.statement { grid-column: 4 / -1; display: grid; gap: 1em; font-size: var(--step-lead); line-height: 1.22; letter-spacing: -0.01em; }
.statement p { max-width: 46ch; }
.statement .soft { font-size: var(--step-body); line-height: 1.45; letter-spacing: 0; max-width: 52ch; }
.statement strong { font-weight: 500; }
.statement .soft { color: var(--ink); }

/* ---------- Services: one-size name columns ---------- */
.services { padding-block: var(--section); }
.services h2 { margin-bottom: 72px; }
.cols { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.col { grid-column: span 3; }
.col h3 { font-size: var(--step-body); font-weight: 500; margin-bottom: 1.25em; }
.col li { color: var(--muted); line-height: 1.6; cursor: default; transition: color .15s; width: fit-content; }
.col li:hover, .col li:focus-visible, .col li.on { color: var(--ink); }
.col li a { color: inherit; text-underline-offset: 4px; }
.col .sum { display: none; }
.desc { grid-column: 10 / -1; font-size: var(--step-body); color: var(--ink); align-self: start; min-height: 6em; }

/* ---------- Process: six moments, photos rise and fall ---------- */
.process { padding-block: var(--section); }
.moments { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--gap); margin-top: 48px; }
.moments h3 { font-size: var(--step-body); font-weight: 700; margin-bottom: 8px; }
.moments p { margin-bottom: var(--space, 64px); }
.moments img { width: 100%; aspect-ratio: 4 / 3; object-position: left top; object-fit: cover; transition: transform .5s var(--ease); }
.moments li:hover img { transform: scale(1.03); }
.moments li { overflow: hidden; }

/* ---------- Contact: photo strip, three-cell bar ---------- */
.contact { background: var(--accent); color: var(--accent-ink); padding-block: 48px 120px; overflow: hidden; }
.marquee { overflow: hidden; }
.marquee-track { display: flex; gap: 8px; width: max-content; animation: drift 80s linear infinite; }
.marquee-track img { height: 150px; width: auto; object-fit: cover; }
.marquee-track img:nth-child(3n+1) { aspect-ratio: 3 / 4; }
.marquee-track img:nth-child(3n+2) { aspect-ratio: 1 / 1; }
.marquee-track img:nth-child(3n) { aspect-ratio: 3 / 2; }
@keyframes drift { to { transform: translateX(-50%); } }
.contact h2 { margin-top: 72px; margin-bottom: 40px; max-width: 12ch; }
.form {
  display: grid; gap: 8px; grid-template-columns: 1fr 1fr 1fr;
  grid-template-areas: "name contact send" "msg msg send" "note note status";
}
.cell { position: relative; background: #0a6636; display: flex; flex-direction: column; transition: background-color .2s; }
.cell:nth-of-type(1) { grid-area: name; }
.cell:nth-of-type(2) { grid-area: contact; }
.cell-msg { grid-area: msg; }
.cell:focus-within { background: #e8f3ec; color: var(--ink); }
.cell label { font-size: var(--step-small); padding: 14px 20px 0; }
.cell .opt { font-weight: 400; }
.cell input, .cell textarea {
  font: inherit; color: inherit; background: transparent; border: 0; outline: 0;
  padding: 6px 20px 16px; min-height: 52px; resize: vertical;
}
.cell input::placeholder { color: inherit; opacity: .6; }
.cell .err { font-size: var(--step-small); padding: 0 20px 10px; color: #ffe08a; min-height: 0; }
.cell:focus-within .err { color: #8a1c1c; }
.cell.bad { background: #5c1f12; }
.send {
  grid-area: send; border: 0; cursor: pointer; font: inherit; font-weight: 700;
  background: var(--ink); color: var(--bg); min-height: 96px; transition: background-color .2s, transform .15s;
}
.send:hover { background: #000; }
.send:active { transform: scale(.98); }
.send[disabled] { opacity: .6; cursor: progress; }
.form-note { grid-area: note; opacity: .85; margin-top: 6px; }
.form-status { grid-area: status; margin-top: 6px; font-weight: 500; }
.hp { position: absolute; left: -9999px; opacity: 0; } /* honeypot */

/* ---------- Footer of tiles ---------- */
.footer {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; padding: 8px;
  background: var(--bg);
}
.tile { background: var(--surface); padding: 24px; min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; text-decoration: none; color: var(--ink); }
.t-big { font-size: 1.5rem; line-height: 1.15; letter-spacing: -0.01em; font-weight: 500; }
.t-statement { grid-column: 1 / span 4; }
.t-statement .small { color: var(--ink); }
.t-statement .small a { color: var(--ink); text-underline-offset: 3px; }
.t-nav { grid-column: 5 / span 3; justify-content: flex-start; }
.t-nav li { line-height: 1.7; }
.t-nav a:hover { color: var(--accent); }
.t-time { grid-column: 8 / span 2; }
.t-clock { font-size: var(--step-body); font-weight: 500; font-variant-numeric: tabular-nums; }
.t-photo { grid-column: 10 / span 3; transition: background-color .2s; }
.t-photo:hover { background: #d6cecb; }

.t-word {
  grid-column: 1 / span 8; min-height: 320px; background: var(--ink); color: var(--bg);
  align-items: center; justify-content: center; overflow: hidden;
}
.t-word span { font-size: 9vw; font-weight: 700; letter-spacing: -0.04em; line-height: 1; white-space: nowrap; }
.t-cta { grid-column: 9 / span 4; min-height: 320px; background: var(--accent); color: var(--accent-ink); transition: background-color .2s; }

.t-cta svg { width: 64px; height: 64px; align-self: flex-end; fill: none; stroke: currentColor; stroke-width: 4; transition: transform .3s var(--ease); }
.t-cta:hover { background: #0c6a3a; }
.t-cta:hover svg { transform: translate(6px, -6px); }

/* ---------- Reveal (content stays visible without JS) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .work { grid-template-columns: 1fr; }
  .ledger { grid-column: 1; max-width: 640px; }
  .preview { display: none; }
  .facts { grid-column: 1 / -1; grid-template-columns: repeat(3, auto); justify-content: start; column-gap: 32px; }
  .facts h2 { grid-column: 1 / -1; }
  .statement { grid-column: 1 / -1; margin-top: 24px; }
  .col { grid-column: span 4; }
  .moments { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 48px; }
  .desc { display: none; }
  .col .sum { display: block; margin-top: 16px; color: var(--ink); }
  .t-statement { grid-column: 1 / span 6; }
  .t-nav { grid-column: 7 / span 6; }
  .t-time { grid-column: 1 / span 6; }
  .t-photo { grid-column: 7 / span 6; }
  .t-word { grid-column: 1 / -1; min-height: 200px; }
  .t-word span { font-size: 14vw; }
  .t-cta { grid-column: 1 / -1; min-height: 200px; }
}

/* ---------- Phone ---------- */
@media (max-width: 640px) {
  .nav { display: none; }
  .hero { padding-block: 20px 28px; }
  .hero-title { margin-top: 48px; font-size: 8.6vw; max-width: none; }
  .strip { height: 40vh; max-height: 340px; padding-inline: 8vw; }
  .hero-foot { flex-direction: column; align-items: flex-start; gap: 20px; }
  .rows a { grid-template-columns: 1fr auto; grid-template-areas: "n y" "k k"; row-gap: 0; min-height: 52px; padding-block: 6px; }
  .r-name { grid-area: n; } .r-year { grid-area: y; } .r-kind { grid-area: k; font-size: .8125rem; }
  .facts { grid-template-columns: 1fr; }
  .statement { font-size: 1.3125rem; line-height: 1.28; }
  .services h2 { margin-bottom: 40px; }
  .cols { grid-template-columns: 1fr; row-gap: 40px; }
  .col { grid-column: auto; }
  .moments { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .moments p { margin-bottom: calc(var(--space, 64px) / 3); }
  .marquee-track img { height: 110px; }
  .contact h2 { margin-top: 48px; font-size: 9vw; }
  .form { grid-template-columns: 1fr; grid-template-areas: "name" "contact" "msg" "send" "note" "status"; }
  .send { min-height: 60px; }
  .footer { grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; }
  .tile { min-height: 160px; padding: 20px; }
  .t-word { grid-column: 1 / -1; order: -2; min-height: 160px; }
  .t-cta { grid-column: 1 / -1; order: -1; min-height: 160px; }
  .t-nav { grid-column: 1; } .t-time { grid-column: 2; }
  .t-photo, .t-statement { grid-column: 1 / -1; min-height: 120px; }
  .t-statement { order: 2; }
  .t-big { font-size: 1.125rem; }
  .t-photo .t-big { font-size: 1rem; word-break: break-word; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0s !important; }
}
