/* =========================================================
   True Cognition — Portfolio landing page (Portfolio Site v4)
   Tokens ported from the Claude Design "True Cognition Design
   System" project (colors.css / spacing.css / typography.css).
   Light paper surfaces throughout; the hero is the one ink field.
   ========================================================= */

:root {
  /* ---- Base palette — brand colors ---- */
  --tc-teal-500: #43d1cd;
  --tc-teal-600: #2fb0ac;
  --tc-teal-700: #227f7c;
  --tc-slate-600: #426a73;
  --tc-slate-700: #345258;
  --tc-ink-900: #02171a;
  --tc-sage-400: #9aa19b;
  --tc-sage-500: #7c8880;
  --tc-paper-0: #fcfaf8;
  --tc-paper-1: #f2efea;
  --tc-white: #ffffff;

  /* ---- Semantic aliases ---- */
  --surface-page: var(--tc-paper-0);
  --surface-inverse: var(--tc-ink-900);
  --surface-card: var(--tc-white);
  --surface-card-muted: #f3f1ec;

  --text-primary: var(--tc-ink-900);
  --text-secondary: var(--tc-sage-500);
  --text-inverse: var(--tc-paper-0);
  --text-accent: var(--tc-teal-600);

  --ink-78: rgba(2, 23, 26, 0.78);
  --ink-72: rgba(2, 23, 26, 0.72);
  --ink-62: rgba(2, 23, 26, 0.62);
  --ink-60: rgba(2, 23, 26, 0.6);
  --ink-50: rgba(2, 23, 26, 0.5);
  --ink-26: rgba(2, 23, 26, 0.26);
  --ink-14: rgba(2, 23, 26, 0.14);
  --ink-10: rgba(2, 23, 26, 0.1);
  --paper-80: rgba(252, 250, 248, 0.8);
  --paper-70: rgba(252, 250, 248, 0.7);
  --paper-60: rgba(252, 250, 248, 0.6);
  --paper-42: rgba(252, 250, 248, 0.42);
  --paper-38: rgba(252, 250, 248, 0.38);
  --paper-35: rgba(252, 250, 248, 0.35);
  --paper-20: rgba(252, 250, 248, 0.2);

  --border-subtle: #e4e1d9;
  --rule: var(--ink-14);

  --accent-primary: var(--tc-teal-500);
  --accent-primary-hover: var(--tc-teal-600);
  --accent-primary-active: var(--tc-teal-700);

  /* ---- Type ---- */
  --font-display: "Inter", -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;

  /* ---- Layout ---- */
  --container-max: 1400px;
  --gutter: clamp(20px, 3.4vw, 56px);
  --radius-pill: 999px;
}

/* No CSS scroll-behavior: smooth here — it fights the Lenis smooth-scroll loop. */

body {
  margin: 0;
  background: var(--surface-page);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.tc-site {
  position: relative;
  background: var(--surface-page);
  color: var(--text-primary);
  font-family: var(--font-body);
}
.tc-site * {
  box-sizing: border-box;
}
.tc-site a {
  color: var(--tc-ink-900);
  text-decoration: none;
}
.tc-site a:hover {
  color: var(--tc-slate-600);
}
.tc-site ::selection {
  background: var(--tc-teal-500);
  color: var(--tc-ink-900);
}
.tc-site :focus-visible {
  outline: 2px solid var(--tc-teal-600);
  outline-offset: 3px;
}

.tc-site .wrap {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- shared primitives ---------- */
.tc-site .pf-mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
}

/* Section head: index number + kicker, ruled underneath */
.tc-site .pf-head {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: clamp(36px, 5vh, 64px);
}
.tc-site .pf-head .num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--tc-teal-500);
}
.tc-site .pf-head .kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-60);
}

/* Text link with hairline underline and teal arrow */
.tc-site .pf-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--tc-ink-900);
  box-shadow: inset 0 -1px 0 0 var(--ink-60);
  transition: box-shadow 0.25s ease;
}
.tc-site .pf-link:hover {
  color: var(--tc-ink-900);
  box-shadow: inset 0 -1px 0 0 var(--tc-ink-900);
}
.tc-site .pf-link .arrow {
  color: var(--tc-teal-500);
  font-family: var(--font-mono);
  font-size: 16px;
  transition: transform 0.3s ease;
}
.tc-site .pf-link:hover .arrow {
  transform: translate(3px, -3px);
}

/* Outlined pill button */
.tc-site .pf-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--ink-26);
  background: transparent;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--tc-ink-900);
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.tc-site .pf-pill:hover {
  border-color: var(--tc-ink-900);
  color: var(--tc-ink-900);
}
.tc-site .pf-pill .arrow {
  color: var(--tc-teal-500);
  font-family: var(--font-mono);
}

/* Display headings */
.tc-site .pf-display {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.038em;
  line-height: 1;
  color: var(--tc-ink-900);
}

/* Line-mask wrappers for headline reveals */
.tc-site .line {
  display: block;
  overflow: hidden;
  /* room for descenders (y, g, p) under tight headline line-heights; the negative
     margin keeps the visual line spacing unchanged */
  padding-bottom: 0.2em;
  margin-bottom: -0.14em;
}
.tc-site .line > span {
  display: block;
}

/* Body copy */
.tc-site .pf-copy {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.62;
  color: var(--ink-78);
  text-wrap: pretty;
}
.tc-site .pf-copy.muted {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-60);
}

/* Reset for thumbnail buttons (open a lightbox in place, not links) */
.tc-site button.pf-plate,
.tc-site button.pf-reel,
.tc-site button.pf-tile {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  width: 100%;
}

/* ---------- nav ---------- */
.tc-site .pf-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  background: rgba(2, 23, 26, 0);
}
.tc-site .pf-nav__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.tc-site .pf-nav__brand {
  display: flex;
  align-items: center;
  gap: 11px;
}
.tc-site .pf-nav__brand img {
  height: 24px;
  display: block;
  filter: brightness(0) invert(1);
  transition: filter 0.4s ease;
}
.tc-site .pf-nav__links {
  display: flex;
  align-items: center;
  gap: clamp(4px, 1vw, 14px);
}
.tc-site .pf-nav__link {
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--tc-paper-0);
  transition: color 0.4s ease, opacity 0.25s ease, border-color 0.4s ease;
}
.tc-site .pf-nav__link:hover {
  opacity: 0.7;
}
.tc-site .pf-nav__link.is-active {
  box-shadow: inset 0 -1px 0 0 var(--tc-paper-0);
}
.tc-site .pf-nav__link.is-outline {
  padding: 7px 20px;
  border: 1px solid var(--paper-35);
}
.tc-site .pf-progress {
  height: 1.5px;
  background: var(--accent-primary);
  transform: scaleX(0);
  transform-origin: left center;
}

/* ---------- hero ---------- */
.tc-site .pf-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--tc-ink-900);
  color: var(--tc-paper-0);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.tc-site .pf-hero__canvas,
.tc-site .pf-hero__prism {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.tc-site .pf-hero__canvas {
  opacity: 0.34;
}
.tc-site .pf-hero__prism {
  pointer-events: none;
}
.tc-site .pf-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 23, 26, 0.86) 0%, rgba(2, 23, 26, 0.6) 40%, rgba(2, 23, 26, 0.97) 100%);
}
.tc-site .pf-hero__inner {
  position: relative;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: clamp(104px, 13vh, 150px) var(--gutter) clamp(40px, 6vh, 80px);
  pointer-events: none;
}
.tc-site .pf-hero__content {
  max-width: min(100%, 760px);
  display: flex;
  flex-direction: column;
  pointer-events: auto;
}
.tc-site .pf-hero__steps {
  display: flex;
  align-items: flex-end;
  gap: clamp(20px, 2.6vw, 40px);
  margin-bottom: clamp(28px, 4.4vh, 56px);
}
.tc-site .pf-hero__step {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tc-site .pf-hero__step .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--paper-60);
}
.tc-site .pf-hero__step .bar {
  width: 3px;
  height: 44px;
  background: var(--tc-teal-500);
  display: block;
}
.tc-site .pf-hero__step.is-dim .label {
  color: var(--paper-38);
}
.tc-site .pf-hero__step.is-dim .bar {
  background: var(--paper-20);
}
.tc-site .pf-hero__title {
  margin: 0 0 clamp(24px, 3.4vh, 44px);
  font-family: var(--font-display);
  font-size: clamp(3.25rem, 7.4vw, 8.5rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.042em;
  color: var(--tc-paper-0);
}
.tc-site .pf-hero__title .line {
  padding-bottom: 0.2em;
  margin-bottom: -0.15em;
}
.tc-site .pf-hero__title .accent {
  color: var(--tc-teal-500);
}
.tc-site .pf-hero__rule {
  height: 1px;
  background: var(--paper-20);
  margin-bottom: clamp(20px, 2.8vh, 32px);
}
.tc-site .pf-hero__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(20px, 3vw, 48px);
  flex-wrap: wrap;
}
.tc-site .pf-hero__copy {
  margin: 0;
  max-width: 52ch;
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.2vw, 1.3rem);
  line-height: 1.46;
  color: var(--paper-80);
  text-wrap: pretty;
}
.tc-site .pf-hero__meta {
  display: flex;
  align-items: center;
  gap: 26px;
}
.tc-site .pf-hero__frame {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--paper-42);
}
.tc-site .pf-hero__discover {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--tc-paper-0);
  box-shadow: inset 0 -1px 0 0 rgba(252, 250, 248, 0.65);
}
.tc-site .pf-hero__discover:hover {
  color: var(--tc-paper-0);
  box-shadow: inset 0 -1px 0 0 var(--tc-paper-0);
}
.tc-site .pf-hero__discover .arrow {
  color: var(--tc-teal-500);
  font-family: var(--font-mono);
  font-size: 16px;
}

/* ---------- about ---------- */
.tc-site .pf-about {
  background: var(--surface-page);
}
.tc-site .pf-about__inner {
  padding-top: clamp(56px, 8vh, 96px);
  padding-bottom: clamp(80px, 12vh, 140px);
}
.tc-site .pf-about .pf-head {
  padding-bottom: 20px;
  margin-bottom: clamp(40px, 6vh, 72px);
}
.tc-site .pf-about__title {
  margin: 0 0 clamp(36px, 5vh, 64px);
  font-size: clamp(2rem, 5.4vw, 5.25rem);
  max-width: 22ch;
}
.tc-site .pf-about__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: clamp(28px, 4vw, 72px);
  margin-bottom: clamp(48px, 7vh, 88px);
}
.tc-site .pf-about__cols .pf-copy:nth-child(2) {
  color: var(--ink-62);
}
.tc-site .pf-about__media {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #efebe5;
}
.tc-site .pf-about__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.7) contrast(1.06) brightness(0.96);
}
.tc-site .pf-about__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 23, 26, 0) 55%, rgba(2, 23, 26, 0.42) 100%);
}
.tc-site .pf-about__caption {
  position: absolute;
  z-index: 1;
  left: clamp(16px, 2vw, 28px);
  bottom: clamp(14px, 2vw, 24px);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--tc-paper-0);
}

/* ---------- index ---------- */
.tc-site .pf-index {
  background: var(--surface-page);
  border-top: 1px solid var(--rule);
}
.tc-site .pf-index__inner {
  padding-top: clamp(80px, 12vh, 140px);
  padding-bottom: clamp(80px, 12vh, 140px);
}
.tc-site .pf-index .pf-head {
  padding-bottom: 20px;
  margin-bottom: clamp(40px, 6vh, 72px);
}
.tc-site .pf-index__head {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
  gap: clamp(28px, 4vw, 72px);
  align-items: end;
  margin-bottom: clamp(44px, 6.4vh, 80px);
}
.tc-site .pf-index__head h2 {
  font-size: clamp(1.875rem, 4.4vw, 4rem);
  letter-spacing: -0.036em;
  max-width: 18ch;
}
.tc-site .pf-index__head .pf-copy {
  margin-bottom: 14px;
}
.tc-site .pf-index__head .pf-copy.muted {
  margin-bottom: 0;
  color: var(--ink-60);
}
.tc-site .pf-index__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.tc-site .pf-index__row {
  display: block;
  position: relative;
  padding: clamp(16px, 2.2vh, 26px) 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
}
.tc-site .pf-index__row-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--tc-teal-500);
  transform: scaleX(0);
  transform-origin: left center;
}
.tc-site .pf-index__row-inner {
  display: flex;
  align-items: baseline;
  gap: clamp(14px, 2vw, 30px);
}
.tc-site .pf-index__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--tc-teal-500);
  flex: none;
  width: 26px;
}
.tc-site .pf-index__title {
  flex: 1;
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 2.6vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.032em;
  line-height: 1.1;
  color: var(--tc-ink-900);
}
.tc-site .pf-index__kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-50);
  flex: none;
  text-align: right;
}
.tc-site .pf-index__arrow {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--tc-teal-500);
  flex: none;
}
.tc-site .pf-index__media {
  position: sticky;
  top: 120px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--tc-paper-1);
  border: 1px solid rgba(2, 23, 26, 0.12);
}
.tc-site .pf-index__media-frame {
  position: absolute;
  inset: 0;
}
.tc-site .pf-index__media-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  padding: 8%;
}
.tc-site .pf-index__media-frame img.cover {
  object-fit: cover;
  padding: 0;
}

/* ---------- chapters ---------- */
.tc-site .pf-chapter {
  background: var(--surface-page);
  border-top: 1px solid var(--rule);
  overflow: hidden;
}
.tc-site .pf-chapter__inner {
  padding-top: clamp(72px, 10vh, 120px);
  padding-bottom: clamp(72px, 10vh, 120px);
}
.tc-site .pf-chapter__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.tc-site .pf-chapter__text {
  position: sticky;
  top: 120px;
}
.tc-site .pf-chapter__text h3 {
  margin: 0 0 clamp(22px, 3vh, 36px);
  font-size: clamp(2rem, 4.6vw, 4.5rem);
  line-height: 0.98;
  max-width: 13ch;
}
.tc-site .pf-chapter__text .pf-copy {
  margin: 0 0 clamp(28px, 3.6vh, 40px);
  max-width: 46ch;
  color: var(--ink-72);
}
.tc-site .pf-chapter__media {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vw, 26px);
}
.tc-site .pf-plate {
  display: block;
  position: relative;
  background: var(--tc-white);
  border: 1px solid var(--ink-10);
  box-shadow: 0 30px 60px -36px rgba(2, 23, 26, 0.3);
}
.tc-site .pf-plate--hero {
  min-height: 220px;
}
.tc-site .pf-plate__frame {
  display: block;
  position: relative;
  overflow: hidden;
}
.tc-site .pf-plate img {
  width: 100%;
  height: auto;
  display: block;
}
.tc-site .pf-plate__label {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  padding: 8px 14px;
  background: var(--tc-ink-900);
  color: var(--tc-paper-0);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
}
.tc-site .pf-chapter__plates {
  display: flex;
  gap: clamp(16px, 2vw, 26px);
  align-items: flex-start;
}
.tc-site .pf-chapter__plates .pf-plate {
  flex: 1 1 0;
  min-width: 0;
  min-height: 140px;
  box-shadow: 0 24px 48px -32px rgba(2, 23, 26, 0.28);
}
.tc-site .pf-plate.is-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  background: var(--tc-paper-1);
}

/* ---------- mission videos ---------- */
.tc-site .pf-videos {
  position: relative;
  background: var(--surface-page);
  border-top: 1px solid var(--rule);
  overflow: hidden;
}
.tc-site .pf-videos__inner {
  position: relative;
  padding-top: clamp(72px, 10vh, 120px);
  padding-bottom: clamp(72px, 10vh, 120px);
}
.tc-site .pf-videos h3,
.tc-site .pf-gallery-section h3 {
  margin: 0 0 clamp(32px, 4.6vh, 56px);
  font-size: clamp(2.25rem, 6.4vw, 6.5rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
  max-width: 16ch;
}
.tc-site .pf-reel {
  display: block;
  position: relative;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  background: var(--tc-ink-900);
  margin-bottom: clamp(32px, 4.4vh, 52px);
  box-shadow: 0 40px 80px -48px rgba(2, 23, 26, 0.4);
}
.tc-site .pf-reel__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.46;
  display: block;
}
.tc-site .pf-reel__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 23, 26, 0.24) 0%, rgba(2, 23, 26, 0.78) 100%);
}
.tc-site .pf-reel__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tc-site .pf-reel__ring {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(74px, 7vw, 104px);
  height: clamp(74px, 7vw, 104px);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(252, 250, 248, 0.5);
  transition: border-color 0.3s ease, transform 0.4s ease;
}
.tc-site .pf-reel:hover .pf-reel__ring {
  border-color: var(--tc-teal-500);
  transform: scale(1.04);
}
.tc-site .pf-reel__ring .tri {
  width: 0;
  height: 0;
  margin-left: 6px;
  border-left: clamp(20px, 2vw, 28px) solid var(--tc-teal-500);
  border-top: clamp(13px, 1.3vw, 18px) solid transparent;
  border-bottom: clamp(13px, 1.3vw, 18px) solid transparent;
  display: block;
}
.tc-site .pf-reel__footer {
  position: absolute;
  left: clamp(16px, 2vw, 32px);
  right: clamp(16px, 2vw, 32px);
  bottom: clamp(14px, 2vw, 28px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}
.tc-site .pf-reel__footer .title {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 1.6vw, 1.75rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--tc-paper-0);
}
.tc-site .pf-reel__footer .open {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--paper-70);
}
.tc-site .pf-videos__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: clamp(28px, 4vw, 72px);
  align-items: start;
}
.tc-site .pf-videos__cols .pf-copy.muted {
  margin: 0 0 clamp(24px, 3.4vh, 36px);
}

/* ---------- graphics & emblems gallery ---------- */
.tc-site .pf-gallery-section {
  background: var(--surface-page);
  border-top: 1px solid var(--rule);
}
.tc-site .pf-gallery-section__inner {
  padding-top: clamp(72px, 10vh, 120px);
  padding-bottom: clamp(72px, 10vh, 120px);
}
.tc-site .pf-gallery-section h3 {
  margin-bottom: clamp(22px, 3vh, 36px);
  max-width: 18ch;
}
.tc-site .pf-gallery-section .pf-lede {
  margin: 0 0 clamp(44px, 6vh, 76px);
  max-width: 64ch;
  color: var(--ink-72);
}
.tc-site .pf-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(400px, 100%), 1fr));
  gap: clamp(16px, 2vw, 26px);
}
.tc-site .pf-tile {
  display: block;
  border: 1px solid var(--ink-10);
  background: var(--tc-white);
  box-shadow: 0 24px 48px -36px rgba(2, 23, 26, 0.3);
}
.tc-site .pf-tile--dark {
  border-color: var(--tc-ink-900);
  background: var(--tc-ink-900);
}
.tc-site .pf-tile__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--tc-white);
}
.tc-site .pf-tile--dark .pf-tile__media {
  background: #000;
}
.tc-site .pf-tile__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  padding: 58px;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.tc-site .pf-tile--dark .pf-tile__media img {
  object-fit: cover;
  padding: 0;
}
.tc-site .pf-tile:hover .pf-tile__media img {
  transform: scale(1.03);
}
.tc-site .pf-tile__caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-top: 1px solid var(--ink-10);
}
.tc-site .pf-tile--dark .pf-tile__caption {
  border-top-color: var(--tc-ink-900);
}
.tc-site .pf-tile__caption .title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--tc-ink-900);
}
.tc-site .pf-tile--dark .pf-tile__caption .title {
  color: var(--tc-paper-0);
}
.tc-site .pf-tile__caption .meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: #5b6866;
  text-align: right;
}
.tc-site .pf-tile--dark .pf-tile__caption .meta {
  color: var(--paper-60);
}
.tc-site .pf-gallery-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: clamp(36px, 5vh, 60px);
}

/* ---------- footer / contact ---------- */
.tc-site .pf-footer {
  position: relative;
  background: var(--surface-page);
  border-top: 1px solid var(--rule);
  overflow: hidden;
}
.tc-site .pf-footer__inner {
  position: relative;
  padding-top: clamp(88px, 13vh, 160px);
  padding-bottom: clamp(32px, 4.4vh, 52px);
}
.tc-site .pf-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  margin-bottom: clamp(64px, 10vh, 120px);
}
.tc-site .pf-footer h2 {
  margin: 0 0 clamp(28px, 4vh, 44px);
  max-width: 20ch;
  font-size: clamp(2.25rem, 4.8vw, 5.25rem);
  line-height: 0.94;
  letter-spacing: -0.042em;
}
.tc-site .pf-footer h2 .line {
  padding-bottom: 0.2em;
  margin-bottom: -0.15em;
}
.tc-site .pf-footer .pf-copy {
  margin: 0 0 clamp(34px, 4.8vh, 56px);
  max-width: 52ch;
  color: var(--ink-72);
}
.tc-site .pf-footer__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  align-items: center;
}
.tc-site .pf-footer__email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--tc-ink-900);
  box-shadow: inset 0 -1px 0 0 var(--ink-60);
  transition: box-shadow 0.25s ease;
}
.tc-site .pf-footer__email:hover {
  color: var(--tc-ink-900);
  box-shadow: inset 0 -1px 0 0 var(--tc-ink-900);
}
.tc-site .pf-footer__email .arrow {
  color: var(--tc-teal-500);
  font-family: var(--font-mono);
  font-size: 0.7em;
}
.tc-site .pf-footer__prism {
  width: 100%;
  max-width: 460px;
  justify-self: center;
}
.tc-site .pf-footer__prism canvas {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  touch-action: none;
}
.tc-site .pf-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  flex-wrap: wrap;
}
.tc-site .pf-footer__bottom img {
  height: 22px;
  display: block;
}
.tc-site .pf-footer__bottom .tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--ink-50);
}

/* ---------- hover-distortion overlay canvas ---------- */
.tc-site .pf-hover-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 70;
  opacity: 0;
  transition: opacity 0.25s ease;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .tc-site .pf-index__grid,
  .tc-site .pf-chapter__grid {
    grid-template-columns: 1fr;
  }
  .tc-site .pf-index__media {
    position: relative;
    top: 0;
    aspect-ratio: 16 / 10;
  }
  .tc-site .pf-chapter__text {
    position: relative;
    top: 0;
  }
  .tc-site .pf-index__kicker {
    display: none;
  }
  .tc-site .pf-hero__steps {
    gap: 16px;
  }
  .tc-site .pf-hero__step .bar {
    height: 32px;
  }
  .tc-site .pf-tile__media img {
    padding: 36px;
  }
}
@media (max-width: 560px) {
  .tc-site .pf-nav__link:not(.is-outline) {
    padding: 7px 10px;
  }
  .tc-site .pf-hero__step:nth-child(n + 4) {
    display: none;
  }
  .tc-site .pf-chapter__plates {
    flex-direction: column;
  }
  .tc-site .pf-hero__title {
    font-size: clamp(2.75rem, 15vw, 3.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tc-site * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- utilities shared with the lightbox markup ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--tc-ink-900);
  color: var(--tc-paper-0);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  text-decoration: none;
}
.skip-link:focus {
  top: 12px;
  outline: 2px solid var(--tc-teal-500);
}
