/* ═══════════════════════════════════════════════════════════════
   Surya Vamsi · Type and nothing else
   Direction sheet seed 151553771 · Boska · Green-black and bone
   Tokens only; nothing downstream hard-codes a colour or size.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg: #161c1a;          /* green-black ground */
  --surface: #1f2725;     /* green-black, one step down */
  --ink: #e3e2da;         /* bone */
  --muted: #c2c9c2;       /* soft bone, 9:1 on surface */
  --accent: #9fc7b8;      /* pale jade paper */
  --accent-ink: #161c1a;    /* green-black, 9.3:1 on the accent field */
  --field-1: #2a2a2a;     /* charcoal, the work field */
  --field-2: #232323;     /* charcoal, one step down */
  --field-ink: #e3e2da;
  --field-muted: #c9cfc9;

  --serif: 'Boska', Georgia, 'Times New Roman', serif;

  --step-small: 0.875rem;                                         /* 14px floor */
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);        /* 17–19 */
  --step-lead: clamp(1.375rem, 1.15rem + 0.9vw, 2rem);            /* 22–32 */
  --step-head: clamp(1.5rem, 1rem + 2.5vw, 2.75rem);              /* 24–44 */
  --step-display: clamp(4.5rem, 9vw, 8.75rem);                    /* hero */
  --giant: clamp(10rem, 18vw, 18.75rem);                          /* the total */
  --row: clamp(2.75rem, 6vw, 5.5rem);                             /* contact rows */

  --margin: clamp(1rem, 2.2vw, 2rem);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--serif);
  font-weight: 400;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { max-width: 100%; }
a { color: inherit; }
ul { list-style: none; }

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

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.contact :focus-visible, .work :focus-visible { outline-color: var(--muted); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* ═══════ HERO · waterline ═══════ */

.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
}

.field { position: absolute; left: 0; right: 0; }
.field-upper { top: 0; height: 50%; background: var(--accent); }
.field-lower { top: 50%; height: 50%; background: var(--bg); }

.hero-frame { position: absolute; inset: 0; padding: 28px; }
.hero-frame-upper { clip-path: inset(0 0 50% 0); color: var(--accent-ink); }
.hero-frame-lower { clip-path: inset(50% 0 0 0); color: var(--ink); }

.hero-wordmark { font-size: 1.0625rem; line-height: 1.3; }
.hero-place { display: block; font-size: var(--step-small); opacity: .75; }

.hero-action {
  position: absolute; top: 28px; right: 28px;
  background: var(--bg); color: var(--accent);
  padding: 12px 22px;
  font-size: var(--step-body); text-decoration: none;
}

.hero-headlines {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: min(65vw, 100% - 56px);
  text-align: center;
  font-size: var(--step-display);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 0.86;
  text-transform: uppercase;
}

.hl-line { display: block; overflow: hidden; padding: 0.05em 0; }
.hl-ghost { visibility: hidden; }
.hl-ghost::before { content: '\00A0'; }
.hl-inner { display: inline-block; }
.hero-frame-upper .hl-inner { animation: rise 900ms cubic-bezier(0.16, 1, 0.3, 1) both; }
.hero-frame-lower .hl-inner { animation: rise 900ms cubic-bezier(0.16, 1, 0.3, 1) both; }
.hl-line:nth-child(2) .hl-inner { animation-delay: 110ms; }

@keyframes rise {
  from { transform: translateY(112%); }
}

.hero-support {
  position: absolute; left: 28px; right: 28px; bottom: 40px;
  max-width: 36ch;
  color: var(--accent);
  font-size: 1.25rem;
  line-height: 1.45;
  animation: fade-up 700ms ease-out 620ms both;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
}

.hero-action { animation: fade-up 700ms ease-out 500ms both; }

/* ═══════ WORK · quiet ledger ═══════ */

.work {
  background: var(--field-1);
  color: var(--field-ink);
  padding: 140px 0 160px;
}

.work-inner { margin-left: max(22vw, var(--margin)); padding-right: var(--margin); max-width: 560px; }

.work-heading {
  font-size: var(--step-head);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.work-feed {
  margin: 24px 0 56px;
  color: var(--field-muted);
  font-size: var(--step-body);
  max-width: 44ch;
}

.ledger { position: relative; max-width: 560px; }

.ledger-year {
  color: var(--field-muted);
  font-size: var(--step-small);
  padding-top: 28px;
  margin-bottom: 4px;
}
.ledger li:first-child.ledger-year { padding-top: 0; }

.ledger li { position: relative; }

.row {
  display: grid;
  grid-template-columns: 54% 1fr auto;
  align-items: baseline;
  gap: 12px;
  height: 44px;
  text-decoration: none;
  color: var(--field-muted);
  transition: color 200ms ease, opacity 200ms ease;
}

.row-name { font-size: var(--step-body); color: inherit; }
.row-kind { font-size: 1rem; color: inherit; }
.row-year { font-size: 1rem; font-variant-numeric: tabular-nums; }

.ledger:hover .row, .ledger:focus-within .row { color: var(--field-muted); }
.ledger:hover .row:hover, .ledger .row:focus-visible {
  color: var(--field-ink);
}

.preview {
  position: absolute;
  top: -10px;
  left: calc(100% + 64px);
  width: 300px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--field-2);
  opacity: 0;
  transition: opacity 150ms ease;
  pointer-events: none;
}
.preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
li:hover .preview, li:focus-within .preview { opacity: 1; }

/* drawn interface fragments (data-ui keeps its own conventions) */
.preview > div, .preview > ul { width: 100%; height: 100%; display: block; }
.pv-lcd {
  background: #101010; color: var(--accent);
  display: flex; flex-direction: column; justify-content: center; gap: 10px;
  padding: 24px;
}
.pv-line { font-size: 1rem; letter-spacing: 0.06em; }
.pv-shelf { display: flex; align-items: flex-end; gap: 8px; padding: 24px; background: #101010; }
.pv-book { display: block; width: 18%; }
.pv-b1 { height: 70%; background: var(--bg); }
.pv-b2 { height: 88%; background: var(--accent); }
.pv-b3 { height: 60%; background: var(--muted); }
.pv-b4 { height: 78%; background: #101010; }
.pv-bar {
  background: #101010;
  display: flex; align-items: center; gap: 10px;
  padding: 0 18px; height: 100%;
}
.pv-ws {
  width: 26px; height: 26px; display: grid; place-items: center;
  background: var(--bg); color: var(--accent);
  font-size: 0.8125rem;
}
.pv-ws-on { background: var(--accent); color: var(--bg); }
.pv-music { width: 64px; height: 8px; background: var(--bg); margin-left: auto; }
.pv-tray { width: 26px; height: 8px; background: var(--muted); }
.pv-audit {
  background: #101010; color: var(--field-muted);
  padding: 28px 24px;
  display: flex; flex-direction: column; gap: 12px;
  font-size: 0.9375rem;
}
.pv-chart, .pv-chart svg { width: 100%; height: 100%; display: block; }

/* ═══════ RELIEF BANDS ═══════ */

.band { margin: 0; position: relative; overflow: hidden; background: var(--field-1); }
.band img {
  display: block; width: 100%; height: 640px; object-fit: cover;
  animation: drift 26s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: scale(1.06) translate(1.2%, -0.8%); }
  to   { transform: scale(1.1) translate(-1.2%, 0.8%); }
}
.band figcaption {
  position: absolute; left: 20px; bottom: 16px;
  background: rgba(16, 16, 16, 0.72);
  color: var(--accent);
  font-size: var(--step-small);
  padding: 8px 14px;
}

.band-map { background: var(--accent); overflow: visible; text-align: center; padding: 120px 0 96px; }
.band-map img {
  width: min(760px, 80vw); height: auto; margin: 0 auto;
  animation: none;
}
.band-map figcaption {
  position: static; background: none; color: var(--accent-ink);
  display: block; margin-top: 20px; padding: 0;
}

/* ═══════ STATS · total and its receipt ═══════ */

.stats { background: var(--bg); padding: 160px 0 140px; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 32px;
  padding: 0 var(--margin);
  max-width: 1440px;
  margin: 0 auto;
}

.stats-left {
  grid-column: 1 / 7;
  display: flex; flex-direction: column;
  min-height: 620px;
}

.stats-heading {
  font-size: var(--step-head);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.stats-note {
  margin-top: 20px;
  font-size: var(--step-body);
  line-height: 1.5;
  max-width: 34ch;
  color: var(--muted);
}

.stats-total {
  margin-top: auto;
  font-size: var(--giant);
  line-height: 0.8;
  letter-spacing: -0.03em;
}

.stats-caption {
  margin-top: 18px;
  font-size: var(--step-body);
  color: var(--muted);
  max-width: 30ch;
}

.slip {
  grid-column: 8 / 12;
  align-self: start;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 30px 30px 52px;
  clip-path: polygon(
    0 0, 100% 0,
    100% calc(100% - 18px), 95% 100%, 90% calc(100% - 18px),
    85% 100%, 80% calc(100% - 18px), 75% 100%, 70% calc(100% - 18px),
    65% 100%, 60% calc(100% - 18px), 55% 100%, 50% calc(100% - 18px),
    45% 100%, 40% calc(100% - 18px), 35% 100%, 30% calc(100% - 18px),
    25% 100%, 20% calc(100% - 18px), 15% 100%, 10% calc(100% - 18px),
    5% 100%, 0 calc(100% - 18px)
  );
}

.slip table { width: 100%; border-collapse: collapse; }
.slip tr { height: 44px; }
.slip th {
  text-align: left; font-weight: 400; font-size: 1rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap; padding-right: 10px;
}
.slip .dots { border-bottom: 2px dotted rgba(156, 18, 32, 0.5); }
.slip .val {
  text-align: right; font-size: 1rem;
  font-variant-numeric: tabular-nums;
}
.slip-total th, .slip-total .val {
  background: var(--bg); color: var(--accent);
  padding: 6px 10px; font-weight: 500;
}
.slip-total th { padding-left: 10px; margin-left: -10px; }
.slip-total .dots { border-bottom-color: transparent; }

/* ═══════ ABOUT · statement ═══════ */

.about { background: var(--surface); padding: 120px 24px; }

.statement {
  font-size: clamp(1.375rem, 2.1vw, 2rem);
  line-height: 1.18;
  color: var(--muted);
  max-width: 1360px;
  margin: 0 auto;
  columns: 2;
  column-gap: 32px;
  text-align: justify;
  hyphens: auto;
}

.statement b { color: var(--ink); font-weight: 400; }

.statement mark {
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0 0.1em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.statement mark:nth-of-type(2) { background: #ffffff; }
.statement mark:nth-of-type(4) { background: var(--field-1); color: var(--accent); }
.statement mark:nth-of-type(6) { background: var(--muted); }

.mark-hello {
  background: #ffffff;
  color: var(--accent-ink);
  padding: 0.05em 0.12em;
  text-decoration: none;
  white-space: nowrap;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.mark-hello:hover { background: var(--field-1); color: var(--accent); }

/* ═══════ CONTACT · display rows ═══════ */

.contact { background: var(--field-1); color: var(--field-ink); }

.c-row {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  min-height: 150px;
  padding: 24px 20px 26px;
  background: var(--field-1);
}
.c-row:nth-child(even) { background: var(--field-2); }

.c-main {
  font-size: var(--row);
  line-height: 1;
  text-decoration: none;
  transition: color 150ms ease;
}
.c-main:hover { color: var(--muted); }

.c-val {
  margin-left: auto;
  color: var(--field-muted);
  font-size: var(--step-body);
  display: flex; align-items: center; gap: 14px;
  text-align: right;
}

.copy {
  font-family: inherit;
  background: var(--bg); color: var(--accent);
  border: 0;
  font-size: var(--step-small);
  padding: 8px 14px;
  cursor: pointer;
  transition: transform 100ms ease;
}
.copy:active { transform: scale(0.96); }
.copy .copy-done { display: none; }
.copy.copied .copy-idle { display: none; }
.copy.copied .copy-done { display: inline; }

.c-portrait {
  width: 96px; height: 96px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}

.c-row.c-greeting { background: var(--accent); color: var(--accent-ink); }
.c-greeting .c-main { color: var(--accent-ink); }
.c-greeting .c-main:hover { color: var(--bg); }
.c-arrow {
  width: 0.9em; height: 0.9em;
  font-size: var(--row);
  border-radius: 50%;
  background: var(--bg); color: var(--accent);
  display: inline-grid; place-items: center;
  flex: none;
}

/* ═══════ FOOTER · cropped name ═══════ */

.footer {
  background: var(--accent);
  color: var(--accent-ink);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  padding: 110px var(--margin) 0;
}

.invite-line {
  font-size: clamp(2.75rem, 5vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.footer-button {
  display: inline-block;
  margin-top: 36px;
  background: var(--bg); color: var(--accent);
  padding: 16px 30px;
  font-size: var(--step-body);
  text-decoration: none;
  transition: transform 100ms ease;
}
.footer-button:active { transform: scale(0.97); }

.footer-links {
  display: flex; flex-direction: column; gap: 12px;
  font-size: var(--step-body);
}
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 4px; }

.footer-bottom { margin-top: auto; position: relative; }
.credits {
  position: relative;
  font-size: 1rem;
  line-height: 1.6;
  max-width: 56ch;
  padding: 0 var(--margin) 28px;
}

.wordmark {
  font-size: 27vw;
  line-height: 0.74;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: var(--bg);
  transform: translateY(30%);
  margin: 0 -0.05em;
}

/* ═══════ SECTION ENTRANCES ═══════ */

.js .reveal { opacity: 0; transform: translateY(24px); }
.js .reveal.in {
  opacity: 1; transform: none;
  transition: opacity 600ms ease var(--d, 0ms), transform 600ms cubic-bezier(0.16, 1, 0.3, 1) var(--d, 0ms);
}

/* below this the side preview needs the full right field */
@media (max-width: 1185px) {
  .work-inner { margin-left: var(--margin); }
}

/* ═══════ PHONE ═══════ */
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stats-left { grid-column: 1; min-height: 0; }
  .stats-total { margin-top: 56px; font-size: 40vw; }
  .stats-caption { margin-bottom: 56px; }
  .slip { grid-column: 1; margin-top: 48px; max-width: 460px; }
  .statement { columns: 1; text-align: left; font-size: 1.25rem; line-height: 1.25; }

  .preview { display: none; }
  li.phone-preview .preview {
    display: block;
    position: static;
    width: 100%;
    aspect-ratio: 16 / 10;
    opacity: 1;
    margin-bottom: 18px;
    background: var(--field-2);
  }

  .c-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .c-val { margin-left: 0; text-align: left; }
}

@media (max-width: 700px) {
  .field-upper { height: 46%; }
  .field-lower { top: 46%; height: 54%; }
  .hero-frame-upper { clip-path: inset(0 0 54% 0); }
  .hero-frame-lower { clip-path: inset(46% 0 0 0); }
  .hero-headlines { font-size: 15.5vw; width: calc(100% - 32px); top: 46%; }
  .hero-support { font-size: 1.0625rem; bottom: 32px; }
  .hero-frame { padding: 20px 16px; }
  .hero-action { top: 20px; right: 16px; padding: 10px 16px; }

  .work { padding: 96px 0 120px; }
  .row {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    height: 52px;
    align-content: center;
    gap: 2px 12px;
  }
  .row-kind { grid-column: 1 / -1; grid-row: 2; }
  .row-year { grid-row: 1; align-self: center; }
  .row-name { align-self: center; }

  .band img { height: 380px; }

  .c-row { min-height: 84px; padding: 16px; gap: 12px; }
  .c-main { font-size: 9.6vw; }
  .c-val { font-size: 0.9375rem; flex-wrap: wrap; justify-content: flex-start; }
  .c-portrait { width: 56px; height: 56px; }
  .c-greeting .c-arrow { width: 56px; height: 56px; font-size: 56px; }

  .footer-top { flex-direction: column; padding-top: 72px; }
  .invite-line { font-size: 11vw; }
  .footer-links { flex-direction: row; flex-wrap: wrap; gap: 10px 20px; font-size: 0.9375rem; }
  .footer-button { display: block; text-align: center; }
  .wordmark { font-size: 34vw; }
  .credits { padding-bottom: 20px; }
}

/* ═══════ REDUCED MOTION ═══════ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-frame .hl-inner, .hero-support, .hero-action, .band img { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .row, .preview, .c-main, .copy, .footer-button { transition: none; }
}
