/* ============================================================
   thingogramdotcom, signal & loss
   Dark, clean, restrained. Data-loss as a quiet conceptual thread.
   ============================================================ */

:root {
  --void:         #050507;
  --surface:      #0c0c10;
  --surface-2:    #14141a;

  --text:         #ece6da;
  --text-soft:    #98918a;
  --text-dim:     #5a5550;
  --text-faint:   #2e2c2a;

  --signal:       #e8a04a;          /* warm amber, singular accent */
  --signal-soft:  rgba(232, 160, 74, 0.22);
  --signal-deep:  #7a4a14;

  --cool:         #6c8aa8;          /* slate blue, from LED, rope, concrete */
  --cool-soft:    rgba(108, 138, 168, 0.18);

  --rose:         #c2776a;          /* terracotta/rose, from carpet, backdrop */
  --rose-soft:    rgba(194, 119, 106, 0.18);

  --rule:         rgba(236, 230, 218, 0.08);
  --rule-strong:  rgba(236, 230, 218, 0.16);

  --font-display: "Bodoni Moda", "Times New Roman", serif;
  --font-body:    "Archivo", system-ui, sans-serif;
  --font-mono:    "DM Mono", ui-monospace, monospace;

  --ease-out:     cubic-bezier(0.22, 1, 0.36, 1);
  --header-h:     4.5rem;
  --gutter:       clamp(1.25rem, 4vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text);
  background: var(--void);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--signal);
  text-decoration: none;
  transition: color 0.25s var(--ease-out);
}
a:hover { color: var(--rose); }

::selection { background: var(--signal); color: var(--void); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  margin: 0;
  letter-spacing: -0.02em;
  color: var(--text);
}

/* === Texture overlays ====================================== */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Faint horizontal scanlines. Signal motif, almost imperceptible */
.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.32;
  mix-blend-mode: overlay;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 2px,
    rgba(255, 255, 255, 0.012) 2px,
    rgba(255, 255, 255, 0.012) 3px
  );
}

/* === Spectrum motif: a unified visual system ================
   FFT dot-mark, sine wave dividers, per-project spectrum strips.
   "The world as waves." */

/* FFT magnitude-spectrum dot mark, used as the wordmark glyph and
   as a quiet signature in the footer. Inherits color via currentColor. */
.fft-mark {
  display: inline-block;
  width: 1.4rem;
  height: 1.4rem;
  color: var(--signal);
  flex-shrink: 0;
  vertical-align: middle;
  transition: transform 0.6s var(--ease-out), color 0.3s;
}
.fft-mark--lg {
  width: 2.4rem;
  height: 2.4rem;
}
.logo:hover .fft-mark { transform: rotate(45deg); }

/* Sine-wave divider. Tiles a single cycle so frequency stays constant at all viewport widths. */
.wave-divider {
  display: block;
  width: 100%;
  height: 14px;
  color: var(--signal);
  opacity: 0.32;
  margin: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 16'%3E%3Cpath d='M0 8 C 33 4 67 4 100 8 C 133 12 167 12 200 8' fill='none' stroke='currentColor' stroke-width='1'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 100px 14px;
}

/* Per-project spectrum strip. 16 vertical bars at varied heights.
   Each card gets a unique signature via inline --h values. */
.spec-strip {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 16px;
  margin: 0 0 0.85rem;
  width: 100%;
  max-width: 9rem;
}
.spec-strip span {
  flex: 1;
  height: calc(var(--h, 0.2) * 100%);
  min-height: 1px;
  background: var(--signal);
  opacity: 0.55;
  transition: opacity 0.4s var(--ease-out), background 0.3s;
}
.work-card:hover .spec-strip span { opacity: 0.95; }

/* Hero spectrum readout. Quietly animated bars below title. */
.hero-readout {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0 0 2.5rem;
}
.hero-spectrum {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  width: 11rem;
  height: 22px;
  flex-shrink: 0;
}
.hero-spectrum span {
  flex: 1;
  height: calc(var(--h, 0.2) * 100%);
  min-height: 1px;
  background: var(--cool);
  opacity: 0.75;
  animation: barDrift 4.2s ease-in-out infinite;
  transform-origin: bottom;
}
.hero-spectrum span:nth-child(1)  { animation-delay: -0.1s; }
.hero-spectrum span:nth-child(2)  { animation-delay: -0.3s; }
.hero-spectrum span:nth-child(3)  { animation-delay: -0.5s; }
.hero-spectrum span:nth-child(4)  { animation-delay: -0.7s; }
.hero-spectrum span:nth-child(5)  { animation-delay: -0.9s; }
.hero-spectrum span:nth-child(6)  { animation-delay: -1.1s; }
.hero-spectrum span:nth-child(7)  { animation-delay: -1.3s; }
.hero-spectrum span:nth-child(8)  { animation-delay: -1.5s; }
.hero-spectrum span:nth-child(9)  { animation-delay: -1.7s; }
.hero-spectrum span:nth-child(10) { animation-delay: -1.9s; }
.hero-spectrum span:nth-child(11) { animation-delay: -2.1s; }
.hero-spectrum span:nth-child(12) { animation-delay: -2.3s; }
.hero-spectrum span:nth-child(13) { animation-delay: -2.5s; }
.hero-spectrum span:nth-child(14) { animation-delay: -2.7s; }
.hero-spectrum span:nth-child(15) { animation-delay: -2.9s; }
.hero-spectrum span:nth-child(16) { animation-delay: -3.1s; }
@keyframes barDrift {
  0%, 100% { transform: scaleY(1); }
  50%      { transform: scaleY(0.55); }
}
.hero-readout .hero-prompt { margin: 0; }

/* === Header =============================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  z-index: 200;
  transition: background 0.4s var(--ease-out), backdrop-filter 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(5, 5, 7, 0.78);
  backdrop-filter: blur(14px) saturate(1.05);
  border-bottom-color: var(--rule);
}

.site-header:not(.is-scrolled) .logo,
.site-header:not(.is-scrolled) .main-nav a,
.site-header:not(.is-scrolled) .header-cta {
  text-shadow: 0 1px 24px rgba(0, 0, 0, 0.7);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--text);
  letter-spacing: 0;
  line-height: 1;
}
.logo .fft-mark { width: 1.25rem; height: 1.25rem; }
.logo-text { display: inline-block; }

.main-nav { display: flex; gap: clamp(1.25rem, 3vw, 2.5rem); }
.main-nav a {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-soft);
  position: relative;
  padding-bottom: 2px;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.main-nav a:hover { color: var(--text); }
.main-nav a:hover::after { transform: scaleX(1); }

.header-cta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  border: 1px solid var(--rule-strong);
  color: var(--text);
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.header-cta:hover {
  background: var(--signal);
  border-color: var(--signal);
  color: var(--void);
}

/* === Hero ================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: clamp(2rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 8vw, 6rem);
  background: linear-gradient(to top, rgba(5, 5, 7, 0.94) 0%, rgba(5, 5, 7, 0.45) 55%, transparent 100%);
  pointer-events: none;
}
.hero-content a, .hero-content .scroll-cue { pointer-events: auto; }

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--signal);
  margin: 0 0 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.hero-eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--signal);
  display: inline-block;
}

/* Title. Clean Bodoni, no gradient. A faint registration echo behind it. */
.hero-title {
  font-size: clamp(3.25rem, 11.5vw, 7.5rem);
  line-height: 0.92;
  margin-bottom: 1.75rem;
  position: relative;
  display: block;
  color: var(--text);
  font-weight: 400;
}

.hero-title-text {
  position: relative;
  display: inline-block;
  z-index: 2;
  animation: titleResolve 1.4s var(--ease-out) 0.05s both;
}

/* Two ghost copies of the title text behind, slightly offset.
   Reads as a signal arriving twice and resolving, an inverse-FFT
   reconstruction settling into focus. */
.hero-title-ghost {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  mix-blend-mode: screen;
  animation: ghostSettle 1.6s var(--ease-out) 0.1s forwards;
  user-select: none;
  font-family: inherit;
  line-height: inherit;
}
.hero-title-ghost--a {
  color: var(--signal);
  --ghost-x: 4px;
  --ghost-y: -2px;
}
.hero-title-ghost--b {
  color: var(--signal-deep, #a8542a);
  --ghost-x: -3px;
  --ghost-y: 2px;
}

@keyframes ghostSettle {
  0%   { opacity: 0;    transform: translate(var(--ghost-x), var(--ghost-y)); filter: blur(2px); }
  18%  { opacity: 0.40; transform: translate(var(--ghost-x), var(--ghost-y)); filter: blur(1px); }
  100% { opacity: 0;    transform: translate(0, 0); filter: blur(0); }
}

@keyframes titleResolve {
  0%   { filter: blur(6px); opacity: 0.4; letter-spacing: 0.02em; }
  60%  { filter: blur(0.5px); opacity: 0.9; letter-spacing: -0.015em; }
  100% { filter: blur(0); opacity: 1; letter-spacing: -0.02em; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-title-ghost { display: none; }
  .hero-title-text  { animation: none; }
}

.hero-prompt {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  color: var(--text-soft);
  margin: 0 0 2.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.signal-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 0 var(--signal-soft);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(232,160,74, 0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(232,160,74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(232,160,74, 0); }
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
  transition: color 0.25s, gap 0.35s var(--ease-out);
}
.scroll-cue:hover { color: var(--signal); gap: 1rem; }
.scroll-cue svg { animation: bob 2.4s ease-in-out infinite; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(4px); }
}

/* === Reveal animations ==================================== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }

/* === Sections ============================================= */
.section {
  padding: clamp(4rem, 10vw, 8rem) var(--gutter);
}

.section-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 1.5rem;
}

.section-intro {
  max-width: 40rem;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.section-intro h2 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.05;
  margin-bottom: 1.25rem;
  font-weight: 400;
}
.section-intro h2 em {
  font-style: italic;
  color: var(--text-soft);
}

.section-lede {
  font-size: 1.05rem;
  color: var(--text-soft);
  margin: 0;
  max-width: 34rem;
  line-height: 1.65;
}

/* === Work index grid ===================================== */
.work-index {
  max-width: 1400px;
  margin: 0 auto;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule-strong);
  border-left: 1px solid var(--rule-strong);
}

.work-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--void);
  color: var(--text);
  overflow: hidden;
  min-height: 22rem;
  border-right: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
  transition: background 0.4s;
}

.work-card::after {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  height: 2px;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease-out);
}
.work-card:hover::after { transform: scaleX(1); }
.work-card:hover { background: var(--surface); }

.work-card-visual {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: 14rem;
}

.work-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out), filter 0.5s;
  filter: saturate(0.85) brightness(0.88);
}
.work-card:hover .work-card-visual img {
  transform: scale(1.04);
  filter: saturate(1) brightness(1);
}

/* Single placeholder treatment. No rainbow of accents. */
.work-card-visual img.is-placeholder {
  background:
    radial-gradient(ellipse at 70% 30%, rgba(232,160,74, 0.16), transparent 55%),
    linear-gradient(160deg, #1a1814 0%, #28241c 45%, #0c0c10 100%);
  object-fit: cover;
}

.work-card-info {
  padding: 1.25rem 1.5rem 1.5rem;
  border-top: 1px solid var(--rule);
}

.work-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}
.work-card-year { color: var(--signal); }
.work-card-tag { text-transform: none; color: var(--cool); }

.work-card h3 {
  font-size: 1.55rem;
  margin: 0 0 0.3rem;
  transition: color 0.25s;
  line-height: 1.1;
}
.work-card:hover h3 { color: var(--signal); }

.work-card-info p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-soft);
}

/* === Project features ===================================== */
.projects {
  border-top: 1px solid var(--rule);
}

.project-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 32rem;
  border-bottom: 1px solid var(--rule);
}

.project-feature--reverse .project-visual { order: 2; }
.project-feature--reverse .project-body { order: 1; }

.project-visual {
  position: relative;
  background: var(--surface);
  overflow: hidden;
  min-height: 22rem;
}

.project-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 22rem;
  filter: saturate(0.9);
}
.project-visual img.is-placeholder {
  min-height: 100%;
  background:
    radial-gradient(ellipse at 60% 35%, rgba(232,160,74, 0.18), transparent 60%),
    linear-gradient(160deg, #1a1814 0%, #2c2620 45%, #0c0c10 100%);
}

img.is-placeholder[data-fallback="placeholder"],
img.is-placeholder[data-fallback="placeholder-warm"],
img.is-placeholder[data-fallback="placeholder-teal"] {
  min-height: 100%;
  background:
    radial-gradient(ellipse at 60% 35%, rgba(232,160,74, 0.18), transparent 60%),
    linear-gradient(160deg, #1a1814 0%, #2c2620 45%, #0c0c10 100%);
}

.video-feature {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 22rem;
}
.video-feature iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.project-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4rem);
  background: var(--void);
  max-width: 100%;
}

.project-index {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  color: var(--signal);
  margin-bottom: 0.75rem;
  display: inline-block;
}

.project-meta {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  margin-bottom: 1.25rem;
  display: block;
}

.project-body h3 {
  font-size: clamp(1.85rem, 3vw, 2.6rem);
  line-height: 1.08;
  margin-bottom: 1.5rem;
  font-weight: 400;
}
.project-body h3 em {
  font-style: italic;
  color: var(--text-soft);
  font-weight: 400;
}

.project-body p {
  margin: 0 0 1em;
  color: var(--text-soft);
  max-width: 34rem;
  line-height: 1.7;
}
.project-body p:last-of-type { margin-bottom: 0; }

.project-link {
  display: inline-block;
  margin-top: 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: 0.4rem;
  transition: color 0.25s, border-color 0.25s, padding-right 0.3s var(--ease-out);
  padding-right: 0;
}
.project-link:hover {
  color: var(--rose);
  border-bottom-color: var(--rose);
  padding-right: 0.5rem;
}

.project-link--secondary {
  display: block;
  margin-top: 0.6rem;
  margin-left: 0;
  color: var(--text-dim);
  border-bottom: 1px solid var(--rule);
  width: max-content;
}

.project-link--centered {
  display: block;
  text-align: center;
  padding: 2rem;
  border: none;
  border-top: 1px solid var(--rule);
}

.project-media-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
  max-width: 22rem;
}
.project-media-row--three {
  grid-template-columns: 1fr 1fr;
  max-width: 100%;
}

.video-thumb { position: relative; }
.video-thumb::before {
  content: "";
  display: block;
  padding-bottom: 56.25%;
}
.video-thumb iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  background: var(--surface);
}
.video-thumb span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-top: 0.45rem;
}

/* Archive horizontal scroll */
.project-feature--archive {
  display: block;
}
.project-body--wide {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
}
.archive-scroll {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  padding: 2rem var(--gutter);
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--rule-strong) transparent;
}
.archive-item {
  flex: 0 0 clamp(240px, 28vw, 320px);
  scroll-snap-align: start;
}
.archive-item span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: var(--text-soft);
  margin-top: 0.6rem;
}
.video-thumb--archive::before { padding-bottom: 62%; }

/* === About ================================================ */
.about {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid var(--rule);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.about-intro h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  font-weight: 400;
}

.about-tagline {
  margin: 1.25rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--signal);
  line-height: 1.3;
}
.about-tagline em {
  font-style: italic;
}

.about-copy p {
  color: var(--text-soft);
  margin: 0 0 1.2em;
  line-height: 1.7;
}
.about-copy strong { color: var(--text); font-weight: 500; }

.about-current {
  position: relative;
  padding: 1.25rem 0 0;
  margin-top: 1.5rem !important;
  border-top: 1px solid var(--rule);
  font-size: 0.95rem;
}
.about-current-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rose);
  padding: 0.25rem 0.55rem;
  border: 1px solid var(--rose);
  margin-right: 0.65rem;
  vertical-align: 0.15em;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
}
.skill-tags li {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--rule-strong);
  color: var(--text-soft);
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}
.skill-tags li:hover {
  border-color: var(--signal);
  color: var(--signal);
}

/* === Hire band ============================================ */
.hire-band {
  padding: clamp(4rem, 10vw, 7rem) var(--gutter);
  background:
    radial-gradient(ellipse 60% 55% at 50% 100%, var(--signal-soft), transparent 70%),
    var(--surface);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hire-band-inner {
  max-width: 42rem;
  margin: 0 auto;
  position: relative;
}

.hire-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--signal);
  margin: 0 0 1.25rem;
}

.hire-statement {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.4vw, 2.25rem);
  line-height: 1.28;
  margin: 0 0 2rem;
  color: var(--text);
  font-weight: 400;
}

.hire-cta {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  background: var(--signal);
  color: var(--void);
  transition: transform 0.25s var(--ease-out), box-shadow 0.3s;
}
.hire-cta:hover {
  color: var(--void);
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(232, 160, 74, 0.28);
}

/* === Footer =============================================== */
.site-footer {
  padding: clamp(2rem, 5vw, 3rem) var(--gutter);
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
}

.footer-mark {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.footer-mark .fft-mark { color: var(--text-soft); opacity: 0.6; }

.footer-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 0.25rem;
  font-weight: 400;
}
.footer-location {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--text-soft);
}
.footer-links a:hover { color: var(--rose); }

/* === Responsive =========================================== */
@media (max-width: 1024px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .project-feature { grid-template-columns: 1fr; }
  .project-feature--reverse .project-visual,
  .project-feature--reverse .project-body { order: unset; }
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .main-nav { display: none; }
  .work-grid { grid-template-columns: 1fr; }
  .work-card { min-height: 18rem; }
  .hero-title { font-size: clamp(2.75rem, 14vw, 4rem); }
  .hero { min-height: 120dvh; }
  .footer-grid { flex-direction: column; align-items: flex-start; }
  .project-media-row--three { grid-template-columns: 1fr; }
}

/* === Carousel (index cards) =============================== */
.carousel-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateX(100%);
  opacity: 0;
  transition: transform 0.5s var(--ease-out), filter 0.5s, opacity 0.2s ease;
  filter: saturate(0.85) brightness(0.88);
}
.carousel-img.active {
  transform: translateX(0);
  opacity: 1;
}
.carousel-img.exiting {
  transform: translateX(-100%);
  opacity: 0;
}
.work-card:hover .carousel-img.active {
  transform: scale(1.04);
  filter: saturate(1) brightness(1);
}

.carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
  pointer-events: none;
}
.carousel-dots .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(236, 230, 218, 0.35);
  transition: background 0.2s;
}
.carousel-dots .dot.active {
  background: #ece6da;
}

/* === Work sub-page ======================================== */
.work-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  z-index: 200;
  background: rgba(5, 5, 7, 0.88);
  backdrop-filter: blur(14px) saturate(1.05);
  border-bottom: 1px solid var(--rule);
}

.work-back {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
  transition: color 0.2s;
}
.work-back:hover { color: var(--rose); }

.work-page {
  display: grid;
  grid-template-columns: 60fr 40fr;
  min-height: calc(100vh - var(--header-h));
  margin-top: var(--header-h);
}

/* Left panel: sticky, full viewport height minus header */
.work-media-panel {
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  display: flex;
  flex-direction: column;
  background: var(--surface);
  overflow: hidden;
}

.work-featured {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: var(--void);
}

.work-featured-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 250ms ease;
}

/* Featured image steps through media on a left/right-half click. */
.work-featured.is-navigable .work-featured-img {
  cursor: pointer;
}

.work-featured-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Thumbnail strip */
.work-thumbs {
  display: flex;
  gap: 4px;
  padding: 8px;
  background: var(--surface-2);
  overflow-x: auto;
  flex-shrink: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--rule-strong) transparent;
}

.work-thumb {
  flex-shrink: 0;
  width: 72px;
  height: 50px;
  position: relative;
  cursor: pointer;
  opacity: 0.45;
  border: 1px solid transparent;
  transition: opacity 0.2s, border-color 0.2s;
  overflow: hidden;
}
.work-thumb.active {
  opacity: 1;
  border-color: var(--signal);
}
.work-thumb:hover:not(.active) { opacity: 0.75; }

.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.work-thumb-video {
  width: 100%;
  height: 100%;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
}
.work-thumb-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.work-thumb-play::before {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(5, 5, 7, 0.55);
}
.work-thumb-play::after {
  content: "";
  position: relative;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid rgba(236, 230, 218, 0.9);
  margin-left: 2px;
}

/* Right info panel */
.work-info-panel {
  padding: clamp(2rem, 4vw, 3rem);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  min-height: 100%;
}

.work-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 400;
  line-height: 1.05;
  color: var(--text);
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}

.work-subtitle {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-soft);
  margin: 0 0 0.5rem;
}

.work-year {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--signal);
  display: block;
  margin-top: 0.25rem;
}

.work-description {
  color: var(--text-soft);
  line-height: 1.7;
  font-size: 0.95rem;
}
.work-description p { margin: 0 0 1em; }
.work-description p:last-child { margin: 0; }

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.work-tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--signal);
  color: var(--text);
  border-radius: 1px;
}

.work-ext-link {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: 0.35rem;
  transition: color 0.25s, border-color 0.25s;
}
.work-ext-link:hover { color: var(--rose); border-bottom-color: var(--rose); }

.work-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  margin-top: auto;
  padding-bottom: 0.5rem;
}
.work-nav-prev,
.work-nav-next {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
  transition: color 0.2s;
}
.work-nav-prev:hover,
.work-nav-next:hover { color: var(--signal); }

/* Mobile: stack panels */
@media (max-width: 768px) {
  .work-page {
    grid-template-columns: 1fr;
  }
  .work-media-panel {
    position: static;
    height: auto;
  }
  .work-featured {
    height: 60vw;
    min-height: 240px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
