/* vC-sheet: contact sheet art direction + brand tokens */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--t-4); /* 17px body */
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; background: var(--room-grey); }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, figure, ul, dl, dd, dt { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--on-accent); }

.skip {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 12px 16px;
}
.skip:focus { left: 16px; top: 16px; }

.wrap { padding-inline: var(--margin); }
.section { padding-block: var(--room-pad); }
.muted { color: var(--ink-soft); }
.small { font-size: var(--t-5); line-height: 1.45; } /* 14px ≥13 */
.link-plain {
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 0.07em;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--btn-h); padding: 0 22px;
  background: var(--btn-bg); color: var(--btn-fg);
  border-radius: var(--btn-radius); text-decoration: none;
  font-weight: 600; font-size: var(--t-4);
  transition: background-color var(--dur-ui) var(--ease), transform 140ms var(--ease);
}
.btn:hover { background: var(--btn-bg-press); }
.btn:active { transform: scale(0.97); }

/* ---------- topbar ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding-block: 16px;
  position: relative; z-index: 5;
  background: var(--bg);
}
.wordmark img { width: min(148px, 36vw); height: auto; background: none; }
.topbar nav { display: flex; gap: clamp(14px, 2.5vw, 28px); font-size: var(--t-5); }
.topbar nav a { text-decoration: none; }
.topbar nav a:hover { text-decoration: underline; text-underline-offset: 0.2em; }

/* ---------- HERO sheet ---------- */
.hero {
  position: relative;
  height: 100svh;
  max-height: 100svh;
  padding: 0 12px;
  overflow: hidden;
  background: var(--bg);
}
.hero-sheet {
  display: grid;
  grid-template-columns: minmax(280px, 34vw) minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  height: 100%;
  max-height: calc(100svh - 8px);
  overflow: hidden;
}
.hs-col {
  display: flex; flex-direction: column; gap: 12px;
  /* house: keep sheet staggered but avoid covering the text cell */
  margin-top: calc(var(--off, 0) * 0.35);
}
.hs-col-text {
  margin-top: 0 !important;
  z-index: 5;
  position: relative;
  grid-column: 3;
}
.frame {
  position: relative;
  margin: 0;
  cursor: pointer;
  transition: opacity 280ms var(--ease), filter 280ms var(--ease);
}
.frame img {
  width: 100%; height: auto;
  object-fit: cover;
  border-radius: 0;
}
.frame-lead {
  height: min(88vh, 920px);
}
.frame-lead img {
  width: 100%;
  height: calc(100% - 28px);
  object-fit: cover;
}
.strip {
  display: flex; align-items: center;
  height: 28px; padding: 0 10px;
  font-size: 13px; line-height: 1;
  color: var(--ink);
}
.s-mist { background: var(--room-mist); }
.s-warm { background: var(--room-warm); }
.s-lav { background: var(--room-lavender); }
.s-grey { background: var(--room-grey); }

.text-cell {
  position: relative;
  z-index: 6;
  isolation: isolate;
  background: var(--room-field);
  color: var(--on-accent);
  min-height: 460px;
  padding: 28px;
  display: flex; flex-direction: column; gap: 18px;
  justify-content: space-between;
}
.en-mark {
  font-family: var(--font-text);
  font-size: var(--t-5); line-height: 1.2;
  letter-spacing: 0.02em;
  opacity: 0.85;
}
.cell-line {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: none;
  font-weight: 400;
}
.cell-line .ln { display: block; white-space: nowrap; }
.text-cell .btn {
  align-self: flex-start;
  background: var(--bg); color: var(--ink);
}
.text-cell .btn:hover { background: var(--room-warm); }
.cell-links {
  display: flex; gap: 18px; flex-wrap: wrap;
  font-size: 14px;
}
.cell-links a { color: var(--on-accent); text-decoration: underline; text-underline-offset: 0.18em; }

.feel-line {
  position: absolute; left: 50%; bottom: 20px;
  transform: translateX(-50%);
  margin: 0;
  max-width: 36ch;
  text-align: center;
  font-family: var(--font-display);
  font-size: var(--t-3);
  background: var(--bg);
  padding: 10px 16px;
  z-index: 8;
}
.feel-line[hidden] { display: none; }
.hero-hint {
  position: absolute; left: 50%; bottom: 8px;
  transform: translateX(-50%);
  margin: 0;
  text-align: center;
  max-width: 40ch;
  z-index: 7;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  padding: 4px 10px;
}

/* sheet selection state */
[data-sheet].is-active .frame,
[data-sheet].is-active .tile {
  opacity: 0.28;
  filter: saturate(0.7);
}
[data-sheet].is-active .frame.is-on,
[data-sheet].is-active .tile.is-on {
  opacity: 1;
  filter: none;
}
@media (prefers-reduced-motion: reduce) {
  [data-sheet].is-active .frame,
  [data-sheet].is-active .tile,
  [data-sheet].is-active .frame.is-on,
  [data-sheet].is-active .tile.is-on {
    transition: none;
    filter: none;
  }
}

/* ---------- INTRO ---------- */
.intro { background: var(--room-mist); padding-block: clamp(64px, 10vh, 120px); }
.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: var(--gutter);
  padding-inline: var(--margin);
  align-items: end;
}
.intro-col {
  width: min(520px, 100%);
  margin-left: 0;
  padding-bottom: 24px;
  font-size: 16px; line-height: 1.5;
}
.intro-pic img {
  width: 100%;
  max-height: 72vh;
  object-fit: cover;
}
.intro-lead { font-weight: 600; color: var(--ink); margin-bottom: 1em; }
.intro-col p + p { margin-top: 1em; color: var(--ink); }
.intro-col .intro-lead + p { color: var(--ink); }
.intro-col p:nth-child(n+3) { color: var(--ink-soft); }
.intro-col a { color: var(--ink); }

/* ---------- ABOUT ---------- */
.about { background: var(--bg); padding-block: clamp(64px, 10vh, 120px); }
.about-row {
  display: grid;
  grid-template-columns: 34% 1fr;
  column-gap: var(--gutter);
  padding-inline: var(--margin);
}
.about-row-2 { margin-top: 64px; align-items: start; }
.side-facts {
  width: min(160px, 100%);
  display: grid; gap: 20px;
  font-size: 14px;
}
.side-facts dt { color: var(--ink-soft); }
.side-facts dd { color: var(--ink); margin-top: 4px; }
.about-para {
  font-size: var(--t-2);
  line-height: 1.3;
  max-width: 90%;
  font-family: var(--font-display);
}
.record-word { font-size: 14px; padding-inline: var(--margin); margin-bottom: 16px; }
.about-row-2 .record-word { padding-inline: 0; grid-column: 1; }
.record-lists {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 260px));
  gap: 64px;
  grid-column: 2;
}
.record { font-size: 14px; }
.record li {
  display: flex; justify-content: space-between; gap: 12px;
  padding-block: 5px;
}

/* ---------- GALLERY masonry ---------- */
.gallery { background: var(--room-warm); padding-inline: 12px; padding-block: clamp(64px, 10vh, 120px); }
.gallery-statement {
  font-size: var(--t-2); line-height: 1.25;
  max-width: 30ch;
  margin-left: 66%;
  margin-bottom: 64px;
  font-family: var(--font-display);
  padding-right: var(--margin);
}
.feel-bar {
  position: sticky; top: 0; z-index: 3;
  background: var(--room-warm);
  padding: 12px 8px 16px;
  font-family: var(--font-display);
  font-size: var(--t-3);
  min-height: 1.4em;
}
.masonry {
  columns: 6;
  column-gap: 4px;
}
.tile {
  break-inside: avoid;
  margin: 0 0 14px;
  cursor: pointer;
  transition: opacity 280ms var(--ease), filter 280ms var(--ease);
}
.tile img { width: 100%; border-radius: 0; }
.tile figcaption {
  margin-top: 6px;
  margin-bottom: 0;
  font-size: 13px;
  color: var(--ink-soft);
}
.tile.feature {
  break-inside: avoid;
  margin-bottom: 14px;
}
/* feature sits large at start via column-span where supported */
@supports (column-span: all) {
  .tile.feature { column-span: all; max-width: 280px; }
  .tile.feature img { width: 280px; max-width: 100%; height: 160px; object-fit: cover; }
}

/* ---------- SHOWCASE ---------- */
.showcase { background: var(--room-lavender); overflow: hidden; padding-block: clamp(64px, 10vh, 120px); }
.show-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: var(--gutter);
  padding-inline: var(--margin);
  align-items: end;
}
.show-head {
  font-family: var(--font-display);
  font-size: clamp(24px, 2vw, 28px);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 12px;
}
.show-aside .link-plain { font-size: var(--t-4); }
.show-note {
  font-size: var(--t-4); line-height: 1.45;
  color: var(--ink-soft);
  max-width: 28ch;
  margin-top: 48px;
}
.show-run {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 6px;
  padding-bottom: 8px;
}
.show-frame {
  flex: 0 0 auto;
  width: auto;
  height: 22vh;
}
.show-frame img,
.show-frame .shutter {
  height: 22vh;
  width: auto;
  max-width: none;
}
.show-frame img { height: 100%; width: auto; object-fit: cover; }
.show-frame.lifted {
  height: calc(22vh * 2.2);
  width: min(42%, 360px);
}
.show-frame.lifted .shutter,
.show-frame.lifted img { height: 100%; width: 100%; object-fit: cover; }
.show-frame figcaption {
  display: flex; justify-content: space-between; gap: 12px;
  margin-top: 8px; font-size: var(--t-5);
}
.shutter { overflow: hidden; height: 100%; }
.shutter img { transform-origin: center; }

/* shutter signature */
@media (prefers-reduced-motion: no-preference) {
  .js .shutter-target.is-in .shutter {
    animation: shutterOpen 1.1s var(--ease) both;
  }
  .js .shutter-target.is-in .shutter img {
    animation: shutterSettle 1.1s var(--ease-soft, var(--ease)) both;
  }
  .js .drift.is-in {
    animation: slowDrift 18s linear infinite alternate;
  }
}
@keyframes shutterOpen {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}
@keyframes shutterSettle {
  from { transform: scale(1.12); }
  to { transform: scale(1); }
}
@keyframes slowDrift {
  from { transform: scale(1.04) translate3d(-1.5%, 0, 0); }
  to { transform: scale(1.08) translate3d(1.5%, 0, 0); }
}

/* ---------- CTA ---------- */
.cta {
  background: var(--room-mist);
  min-height: auto;
  display: flex; align-items: center;
  padding-inline: var(--margin);
  padding-block: clamp(72px, 14vh, 140px);
}
.cta-inner {
  max-width: 34ch;
  padding-block: 0;
}
.cta-line {
  font-size: var(--t-3);
  line-height: 1.4;
  font-family: var(--font-text);
  font-weight: 400;
}
.cta-actions {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  margin-top: 24px;
}
.cta-note { margin-top: 16px; max-width: 42ch; }

/* ---------- FOOTER tiles ---------- */
.footer { background: var(--bg); padding: 8px 12px 12px; }
.foot-board {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 8px;
}
.ft { padding: 20px; min-height: 220px; display: flex; flex-direction: column; }
.ft.statement { grid-column: 1 / 5; background: var(--room-mist); justify-content: space-between; }
.ft.nav { grid-column: 5 / 8; background: var(--room-grey); gap: 10px; font-size: 16px; }
.ft.nav a { text-decoration: none; }
.ft.nav a:hover { text-decoration: underline; }
.ft.place { grid-column: 8 / 10; background: var(--room-warm); }
.ft.mail { grid-column: 10 / 13; background: var(--room-lavender); justify-content: flex-end; }
.ft.mail a { font-size: var(--t-3); word-break: break-all; }
.ft.mark {
  grid-column: 1 / 9; min-height: 320px;
  background: var(--ink); color: var(--bg);
  align-items: center; justify-content: center;
}
.ft.mark .foot-logo {
  width: min(52vw, 520px);
  height: auto;
  background: none;
  filter: invert(1);
}
.ft.mark { background: var(--ink); color: var(--bg); }
.ft.invite {
  grid-column: 9 / 13; min-height: 320px;
  background: var(--accent); color: var(--on-accent);
  text-decoration: none;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: var(--t-2);
}
.ft.invite svg { align-self: flex-end; }
.ft-say { font-family: var(--font-display); font-size: var(--t-2); line-height: 1.25; }

/* ---------- entrances ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-rise] {
    opacity: 0;
    transform: translateY(20px);
  }
  .js [data-rise].is-in {
    animation: rise var(--t-reveal, 800ms) var(--ease) forwards;
    animation-delay: calc(var(--i, 0) * 80ms);
  }
}
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- phone ---------- */
@media (max-width: 720px) {
  .topbar { padding-inline: 16px; }
  .topbar nav { gap: 12px; font-size: 13px; }
  .hero { padding: 0 8px 32px; height: auto; max-height: none; overflow: visible; }
  .hero-sheet { max-height: none; height: auto; overflow: visible; }
  .hero-hint, .feel-line { position: static; transform: none; margin: 12px auto; }
  .hero-sheet {
    grid-template-columns: 1fr 1fr;
    min-height: auto;
  }
  .hs-col { margin-top: 0 !important; }
  .hs-col-text { grid-column: 1 / -1; order: -1; }
  .hs-col:nth-child(2) { margin-top: -60px; }
  .text-cell {
    min-height: 40svh;
    width: 100%;
  }
  .en-mark { font-size: var(--t-5); }
  .cell-line { font-size: clamp(2rem, 10vw, 2.6rem); max-width: none; }
  .hs-col-text { grid-column: 1 / -1; }
  .text-cell .btn { width: 100%; }
  .intro-grid { grid-template-columns: 1fr; }
  .intro-col { margin-left: 0; width: 100%; padding-block: 24px; }
  .intro-pic img { max-height: 50vh; }
  .about-row { grid-template-columns: 1fr; gap: 32px; }
  .about-row-2 { margin-top: 64px; }
  .about-para { font-size: 19px; max-width: none; }
  .side-facts {
    width: 100%;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .record-lists { grid-column: 1; grid-template-columns: 1fr; gap: 40px; }
  .gallery-statement {
    margin-left: 0; max-width: none; font-size: 19px;
    padding-inline: 8px; margin-bottom: 32px;
  }
  .masonry { columns: 3; column-gap: 4px; }
  @supports (column-span: all) {
    .tile.feature { max-width: none; }
    .tile.feature img { width: 100%; height: auto; max-height: 200px; }
  }
  .show-grid { grid-template-columns: 1fr; gap: 24px; }
  .show-frame, .show-frame img, .show-frame .shutter { height: auto; width: 100%; }
  .show-frame { width: calc(50% - 4px); height: auto; }
  .show-frame img { width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; }
  .show-frame.lifted { width: 100%; height: auto; }
  .show-frame.lifted .shutter,
  .show-frame.lifted img {
    width: 100%; height: auto; max-height: none; aspect-ratio: 1; object-fit: cover;
  }
  .show-run { order: 2; }
  .cta-inner { padding-block: 20svh 14svh; }
  .cta-actions .btn { min-height: 44px; width: auto; }
  .foot-board { grid-template-columns: 1fr 1fr; gap: 6px; }
  .ft { min-height: 140px; }
  .ft.statement, .ft.nav, .ft.place, .ft.mail, .ft.mark, .ft.invite {
    grid-column: auto;
  }
  .ft.mark { grid-column: 1 / -1; min-height: 160px; order: -2; }
  .ft.invite { grid-column: 1 / -1; min-height: 160px; order: -1; }
  .ft.nav, .ft.mail { min-height: 120px; }
  .ft.mark p { font-size: 14vw; }
}

@media (max-width: 400px) {
  .masonry { columns: 2; }
  .topbar nav a:nth-child(3) { display: none; }
}
