/* ═══════════ PB · ARCHIVE · 026 — stylesheet ═══════════ */

:root {
  /* Light (default) */
  --bg: #f5f3ee;
  /* warm off-white paper */
  --bg-2: #ecebe4;
  /* faint card / strip   */
  --ink: #15171a;
  /* near-black, not full */
  --ink-mute: rgba(21, 23, 26, 0.62);
  --ink-low: rgba(21, 23, 26, 0.38);
  --ink-xlow: rgba(21, 23, 26, 0.14);
  --hair: rgba(21, 23, 26, 0.09);
  --hair-strong: rgba(21, 23, 26, 0.20);
  --accent: oklch(0.50 0.13 250);
  /* deeper blue for paper-light */
  --accent-soft: oklch(0.50 0.13 250 / 0.18);
  --accent-ink: #f5f3ee;

  --f-display: 'Space Grotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --f-serif: 'Instrument Serif', 'Times New Roman', serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;

  --rail: 56px;
  --chrome: 66px;
}

/* ─────────────────────────────────────────────
 * DARK THEME — warm deep dark.
 * ───────────────────────────────────────────── */
body[data-theme="dark"] {
  --bg: #0d0d0d;
  --bg-2: #111111;
  --ink: #efece4;
  /* warm cream */
  --ink-mute: rgba(239, 236, 228, 0.58);
  --ink-low: rgba(239, 236, 228, 0.32);
  --ink-xlow: rgba(239, 236, 228, 0.12);
  --hair: rgba(239, 236, 228, 0.10);
  --hair-strong: rgba(239, 236, 228, 0.22);
  --accent: oklch(0.72 0.16 250);
  /* signature blue — only accent */
  --accent-soft: oklch(0.72 0.16 250 / 0.22);
  --accent-ink: #0d0d0d;
}

/* ─────────────────────────────────────────────
 * LIGHT THEME — explicit (matches :root default).
 * ───────────────────────────────────────────── */
body[data-theme="light"] {
  --bg: #f5f3ee;
  --bg-2: #ecebe4;
  --ink: #15171a;
  --ink-mute: rgba(21, 23, 26, 0.62);
  --ink-low: rgba(21, 23, 26, 0.38);
  --ink-xlow: rgba(21, 23, 26, 0.14);
  --hair: rgba(21, 23, 26, 0.09);
  --hair-strong: rgba(21, 23, 26, 0.20);
  --accent: oklch(0.50 0.13 250);
  --accent-soft: oklch(0.50 0.13 250 / 0.18);
  --accent-ink: #f5f3ee;
}

/* Smooth, subtle transition between modes (no flicker, no harsh swap) */
body,
.chrome,
.card,
.ix-row,
.pj-hero,
.pj-hero-media,
.pj-meta,
.pj-insight,
.pj-next,
.statement,
.about,
.contact,
.tweaks,
.ab-block,
.bt-image-frame,
.pj-gal-item,
.pj-hook,
.ab-tics li,
.ix-preview {
  transition: background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease;
}

/* Light mode — softer image treatment so photos don't float */
body[data-theme="light"] img {
  filter: grayscale(100%) contrast(0.96) brightness(0.98);
}

body[data-theme="light"][data-gray="off"] img {
  filter: contrast(0.98) brightness(0.99) !important;
}

body[data-theme="light"] .card-img,
body[data-theme="light"] .pj-hero-media-inner,
body[data-theme="light"] .bt-image-frame,
body[data-theme="light"] .pj-gal-item,
body[data-theme="light"] .pj-next-r,
body[data-theme="light"] .ix-preview {
  border-color: rgba(21, 23, 26, 0.16);
  box-shadow: 0 1px 0 rgba(21, 23, 26, 0.04);
}

/* Light mode — grain reads better as multiply, lower opacity */
body[data-theme="light"]::after {
  opacity: 0.045;
  mix-blend-mode: multiply;
}

/* Light mode — pointer inverts like dark mode */
body[data-theme="light"] .pointer {
  mix-blend-mode: difference;
}

body[data-theme="light"] .pointer span {
  background: #ffffff;
}

body[data-theme="light"] .pointer.is-hover span {
  background: transparent;
  border-color: #ffffff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-display);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-transform: lowercase;
}

/* Type packs */
body[data-type="serif"] {
  --f-display: 'Instrument Serif', Georgia, serif;
}

body[data-type="serif"] .card-title,
body[data-type="serif"] .hero-title,
body[data-type="serif"] .wh-title,
body[data-type="serif"] .ih-title,
body[data-type="serif"] .ct-big,
body[data-type="serif"] .st-text,
body[data-type="serif"] .ab-lead {
  font-style: italic;
  letter-spacing: -0.02em;
}

body[data-type="mono"] {
  --f-display: 'IBM Plex Mono', ui-monospace, monospace;
  letter-spacing: -0.01em;
}

/* Grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 400;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.4 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.09;
  mix-blend-mode: overlay;
}

body[data-grain="off"]::after {
  display: none;
}

.mono {
  font-family: var(--f-mono);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 10.5px;
}

/* Grayscale imagery toggle */
body[data-gray="off"] img {
  filter: none !important;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  padding: 0;
}

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

/* ═════════════ OPENER ═════════════ */
.opener {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: var(--bg);
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 28px 32px;
  transition: opacity 0.7s cubic-bezier(.7, 0, .2, 1), transform 0.9s cubic-bezier(.7, 0, .2, 1);
}

.opener.is-done {
  opacity: 0;
  transform: translateY(-6%);
  pointer-events: none;
}

.opener-grid {
  display: flex;
  justify-content: space-between;
  color: var(--ink-mute);
}

.op-col {
  display: flex;
  gap: 18px;
}

.opener-main {
  align-self: center;
  justify-self: center;
  width: min(88%, 1100px);
  text-align: center;
  overflow: visible;
}

.op-cycler {
  position: relative;
  height: clamp(90px, 13vw, 180px);
  overflow: visible;
}

.op-word {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  font-family: var(--f-display);
  font-size: clamp(80px, 13vw, 180px);
  font-weight: 300;
  letter-spacing: -0.05em;
  color: var(--ink);
  opacity: 0;
  transform: translateY(40px);


}

.op-word.is-in {
  animation: op-in 0.5s cubic-bezier(.2, 1, .3, 1) forwards;
}

.op-word.is-out {
  animation: op-out 0.5s cubic-bezier(.7, 0, 1, .3) forwards;
}

.op-word:nth-child(5) {
  font-style: italic;
  font-family: var(--f-serif);
  letter-spacing: -0.02em;
}

@keyframes op-in {
  from {
    opacity: 0;
    transform: translateY(45px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

@keyframes op-out {
  to {
    opacity: 0;
    transform: translateY(-40px)
  }
}

.op-rule {
  margin: 18px auto;
  height: 1px;
  width: 100%;
  background: var(--hair-strong);
  position: relative;
  overflow: hidden;
}

.op-rule span {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0);
  animation: op-rule-in 2.5s cubic-bezier(.7, 0, .2, 1) forwards;
}

@keyframes op-rule-in {
  to {
    transform: scaleX(1);
  }
}

.op-footer {
  display: flex;
  justify-content: space-between;
  color: var(--ink-mute);
}

.opener-mark {
  justify-self: start;
  color: var(--ink-mute);
}

/* ═════════════ CHROME ═════════════ */
.chrome {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--chrome);
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 32px;
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--hair);
  transition: border-color .4s ease, background .4s ease;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--f-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  font-size: 13px;
}

.brand-mark {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-sep {
  color: var(--ink-low);
}

.brand-name {
  color: var(--ink);
}

.chrome-c {
  display: flex;
  gap: 28px;
  justify-self: center;
}

.chrome-link {
  color: var(--ink-mute);
  transition: color .25s ease;
  position: relative;
}

.chrome-link::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  transform: translateY(-50%) scale(.6);
  transition: opacity .25s ease, transform .3s ease;
}

.chrome-link:hover {
  color: var(--ink);
}

.chrome-link.is-active {
  color: var(--ink);
}

.chrome-link.is-active::before {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.chrome-r {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--ink-mute);
}

.chrome-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: .3
  }
}

/* ─── Theme toggle (minimal, sits in chrome) ─── */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--hair-strong);
  color: var(--ink-mute);
  font-family: var(--f-mono);
  font-size: 12px;
  margin-left: 4px;
  transition: color .3s ease, border-color .3s ease, background .3s ease, transform .4s cubic-bezier(.2, 1, .2, 1);
}

.theme-toggle:hover {
  color: var(--ink);
  border-color: var(--ink);
  transform: rotate(20deg);
}

.theme-toggle .tt-icon {
  display: inline-block;
  line-height: 1;
  transition: transform .5s cubic-bezier(.2, 1, .2, 1);
}

body[data-theme="light"] .theme-toggle .tt-icon {
  transform: rotate(180deg);
}

/* ─── Whisper (system aside on switch) ─── */
.whisper {
  position: fixed;
  top: calc(var(--chrome) + 14px);
  right: 28px;
  z-index: 600;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  pointer-events: none;
  opacity: 0;
  transform: translateY(-4px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--hair);
  background: color-mix(in oklab, var(--bg) 85%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  white-space: nowrap;
}

.whisper::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

.whisper.is-on {
  animation: whisper-fade 1.9s cubic-bezier(.4, 0, .2, 1) forwards;
}

@keyframes whisper-fade {
  0% {
    opacity: 0;
    transform: translateY(-4px);
  }

  18% {
    opacity: 1;
    transform: translateY(0);
  }

  72% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateY(-3px);
  }
}

/* Side rails */
.side-rail {
  position: fixed;
  top: var(--chrome);
  bottom: 0;
  width: var(--rail);
  z-index: 35;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 32px 0;
  color: var(--ink-mute);
  pointer-events: none;
  border-right: 1px solid var(--hair);
}

.side-rail-l {
  left: 0;
}

.side-rail-r {
  right: 0;
  border-right: 0;
  border-left: 1px solid var(--hair);
}

.sr-item {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: 0.3em;
}

.sr-track {
  writing-mode: horizontal-tb;
  transform: none;
  flex: 1;
  width: 1px;
  margin: 24px 0;
  background: var(--hair);
  position: relative;
}

.sr-track-bar {
  position: absolute;
  top: 0;
  left: -1px;
  width: 3px;
  background: var(--accent);
  height: 0%;
  transition: height .15s linear;
}

/* Magnetic pointer */
.pointer {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  z-index: 1100;
  pointer-events: none;
  transform: translate3d(-100px, -100px, 0);
  mix-blend-mode: difference;
}

.pointer span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--ink);
  transition: width .25s cubic-bezier(.34, 1.56, .64, 1), height .25s cubic-bezier(.34, 1.56, .64, 1);
}

.pointer.is-hover span {
  width: 44px;
  height: 44px;
  transform: translate(-18px, -18px);
  background: transparent;
  border: 1px solid var(--ink);
}

@media (hover: none),
(pointer: coarse) {
  .pointer {
    display: none !important;
  }
}

@media (hover: hover) and (pointer: fine) {
  body {
    cursor: none;
  }

  a,
  button {
    cursor: none;
  }
}

/* ═════════════ MAIN / grid ═════════════ */
main {
  position: relative;
  padding: calc(var(--chrome) + 0px) var(--rail) 0;
}

/* HERO */
.hero {
  min-height: calc(100vh - var(--chrome));
  padding: 40px 48px 48px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 4fr;
  gap: 48px;
  padding-top: 4vh;
}

.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--ink-mute);
  padding-top: 10px;
  border-top: 1px solid var(--hair-strong);
}

.hm-row {
  display: flex;
  gap: 10px;
}

.hm-k {
  color: var(--ink-low);
  min-width: 56px;
}

.hero-title {
  margin: 0;
  font-family: var(--f-display);
  font-size: clamp(60px, 10vw, 148px);
  font-weight: 300;
  letter-spacing: -0.05em;
  line-height: 0.92;
  color: var(--ink);
  align-self: start;
}

.ht-line {
  display: flex;
  align-items: baseline;
  gap: 26px;
}

.ht-num {
  font-family: var(--f-mono);
  font-size: 14px;
  color: var(--ink-low);
  min-width: 22px;
  transform: translateY(-0.3em);
  letter-spacing: 0;
}

.ht-italic {
  font-family: var(--f-serif);
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}

.ht-word {
  display: inline-block;
}

.ht-line-sub {
  margin-top: 30px;
}

.ht-line-sub .ht-small {
  font-size: 14px;
  color: var(--ink-mute);
  letter-spacing: 0.1em;
  padding-bottom: 0.3em;
}

/* reveal animation */
[data-reveal] {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.6em) rotate(2deg);
  filter: blur(6px);
  transition: opacity .9s cubic-bezier(.2, .9, .2, 1), transform .9s cubic-bezier(.2, .9, .2, 1), filter .9s ease;
  will-change: transform, opacity, filter;
}

[data-reveal].is-in {
  opacity: 1;
  transform: translateY(0) rotate(0);
  filter: blur(0);
}

.hero-foot {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 48px;
  margin-top: 56px;
  padding: 20px 0 0;
  border-top: 1px solid var(--hair);
}

.hf-l {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 450px;
  color: var(--ink-mute);
}

.hf-label {
  color: var(--ink-low);
}

.hf-text {
  color: var(--ink);
  font-family: var(--f-display);
  font-size: 15px;
  letter-spacing: -0.01em;
  text-transform: none;
}

.hf-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px 14px 16px;
  border: 1px solid var(--hair-strong);
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .4s ease, color .4s ease, border-color .4s ease;
  position: relative;
  will-change: transform;
}

.hf-cta:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.hf-cta-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 12px;
}

/* Ticker */
.hero-ticker {
  overflow: hidden;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  margin: 48px -48px 0;
  padding: 14px 0;
  color: var(--ink-mute);
  white-space: nowrap;
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 0;
  animation: tick 40s linear infinite;
  will-change: transform;
}

.ticker-cycle {
  display: inline-flex;
  gap: 36px;
  padding-right: 36px;
  white-space: nowrap;
}

@keyframes tick {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-25%);
  }
}

/* ═════════════ WORK / CAROUSEL ═════════════ */
.work {
  padding: 96px 48px 96px;
  border-top: 1px solid var(--hair);
  position: relative;
}

.work-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: end;
  margin-bottom: 56px;
}

.wh-l {
  display: flex;
  gap: 18px;
  color: var(--ink-mute);
}

.wh-lbl {
  color: var(--accent);
}

.wh-title {
  margin: 0;
  font-family: var(--f-display);
  font-size: clamp(36px, 5.5vw, 80px);
  font-weight: 300;
  letter-spacing: -0.04em;
  justify-self: center;
  text-align: center;
}

.wh-title em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.wh-count {
  color: var(--ink-low);
  font-size: 14px;
  vertical-align: super;
  margin-left: 6px;
}

.wh-r {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-self: end;
  color: var(--ink-mute);
}

.wh-nav {
  display: flex;
  gap: 4px;
  margin-left: 8px;
}

.wh-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--hair-strong);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: background .3s ease, color .3s ease, border-color .3s ease;
}

.wh-btn:hover {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

.carousel {
  overflow: hidden;
  cursor: grab;
}

.carousel.is-drag {
  cursor: grabbing;
}

.carousel-track {
  display: flex;
  gap: 24px;
  transition: transform .7s cubic-bezier(.3, 1, .3, 1);
  will-change: transform;
}

.card {
  flex: 0 0 min(440px, 68vw);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}

.card-idx {
  color: var(--ink-low);
  border-top: 1px solid var(--hair-strong);
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
}

.card-img {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-2);
  position: relative;
  border: 1px solid var(--hair);
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  transition: filter .7s ease, transform 1.2s cubic-bezier(.2, .8, .2, 1);
  will-change: transform;
}

.card:hover .card-img img {
  filter: grayscale(0);
  transform: scale(1.04);
}

.card-img-mono {
  position: absolute;
  left: 10px;
  bottom: 10px;
  color: var(--ink-mute);
  background: color-mix(in oklab, var(--bg) 70%, transparent);
  padding: 4px 8px;
  backdrop-filter: blur(4px);
}

.card-meta {
  display: flex;
  gap: 8px;
  color: var(--ink-mute);
  flex-wrap: wrap;
}

.card-title {
  margin: 0;
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink);
  min-height: 3em;
}

.card-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-mute);
  text-transform: none;
  letter-spacing: -0.005em;
  max-width: 90%;
}

.card-foot {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--hair);
}

.card-tags {
  color: var(--ink-low);
}

.card-read {
  color: var(--ink);
  border-bottom: 1px solid var(--ink-low);
  padding-bottom: 2px;
  font-size: 13px;
  transition: border-color .3s, color .3s;
}

.card-read:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.work-foot {
  display: flex;
  gap: 18px;
  justify-content: center;
  align-items: center;
  margin-top: 48px;
  color: var(--ink-low);
}

.wf-sep {
  color: var(--ink-xlow);
}

/* ═════════════ STATEMENT ═════════════ */
.statement {
  padding: 140px 48px 140px;
  border-top: 1px solid var(--hair);
  background: var(--bg-2);
  position: relative;
}

.statement::before {
  content: "s·t·a·t·e·m·e·n·t";
  position: absolute;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--ink-xlow);
  letter-spacing: 0.6em;
  text-transform: uppercase;
}

.statement-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
}

.st-label {
  color: var(--ink-low);
  letter-spacing: 0.3em;
}

.st-text {
  margin: 0;
  font-family: var(--f-display);
  font-size: clamp(26px, 3.5vw, 52px);
  line-height: 1.1;
  font-weight: 300;
  letter-spacing: -0.04em;
  color: var(--ink);
  min-height: clamp(58px, 7.7vw, 115px);
  /* 2 × line-height × clamp extremes, prevents layout shift */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.st-text span {
  display: inline-block;
  margin-right: 0.35em;
}

.st-em em {
  font-family: var(--f-serif);
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.st-mark {
  color: var(--ink-mute);
  justify-self: end;
  text-transform: lowercase;
}

.st-rotate {
  transition: opacity 0.38s ease;
}

.st-fade-out {
  opacity: 0;
}

/* ═════════════ INDEX ═════════════ */
.index {
  padding: 96px 48px 120px;
  border-top: 1px solid var(--hair);
  position: relative;
}

.index-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 32px;
  margin-bottom: 56px;
}

.ih-l {
  display: flex;
  gap: 18px;
  align-items: center;
  color: var(--ink-mute);
}

.ih-l span:first-child {
  color: var(--accent);
}

.ih-rule {
  width: 40px;
  height: 1px;
  background: var(--hair-strong);
}

.ih-title {
  margin: 0;
  font-family: var(--f-display);
  font-size: clamp(36px, 5.5vw, 80px);
  font-weight: 300;
  letter-spacing: -0.04em;
  text-align: center;
  justify-self: center;
}

.ih-title em {
  font-family: var(--f-serif);
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}

.ih-r {
  color: var(--ink-mute);
  justify-self: end;
}

.index-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--hair-strong);
}

.ix-row {
  padding: 22px 12px;
  border-bottom: 1px solid var(--hair);
  position: relative;
  transition: background .3s ease;
  cursor: none;
}

.ix-link {
  display: grid;
  grid-template-columns: 60px 1fr 140px 80px 40px;
  gap: 24px;
  align-items: center;
  width: 100%;
  text-decoration: none;
  color: inherit;
}

.ix-row:hover {
  background: color-mix(in oklab, var(--ink) 5%, transparent);
}

.ix-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .4s cubic-bezier(.2, 1, .2, 1);
}

.ix-row:hover::before {
  transform: scaleY(1);
}

.ix-num {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-low);
  letter-spacing: 0.1em;
}

.ix-title {
  font-family: var(--f-display);
  font-size: clamp(20px, 2.3vw, 30px);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
  transition: transform .4s cubic-bezier(.2, 1, .2, 1), color .3s ease;
}

.ix-row:hover .ix-title {
  transform: translateX(16px);
  color: var(--accent);
}

.ix-cat,
.ix-year {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ix-year {
  text-align: right;
}

.ix-arrow {
  text-align: right;
  color: var(--ink-low);
  font-family: var(--f-mono);
  transition: color .3s ease, transform .4s ease;
}

.ix-row:hover .ix-arrow {
  color: var(--accent);
  transform: translateX(6px);
}

.ix-preview {
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;
  height: 180px;
  pointer-events: none;
  z-index: 300;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.9);
  transition: opacity .3s ease, transform .4s cubic-bezier(.2, 1, .2, 1);
  border: 1px solid var(--hair-strong);
  background: var(--bg-2);
}

.ix-preview.is-on {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.ix-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
}

.ix-preview-mono {
  position: absolute;
  bottom: 6px;
  left: 8px;
  color: var(--ink-mute);
  background: color-mix(in oklab, var(--bg) 60%, transparent);
  padding: 2px 6px;
}

/* ═════════════ ABOUT ═════════════ */
.about {
  padding: 120px 48px;
  border-top: 1px solid var(--hair);
  background: var(--bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 3fr 1.2fr;
  gap: 56px;
  align-items: start;
  max-width: 1400px;
  margin: 0 auto;
}

.ab-label {
  color: var(--ink-low);
  padding-top: 10px;
  border-top: 1px solid var(--hair-strong);
  letter-spacing: 0.3em;
}

.ab-main {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.ab-lead {
  margin: 0;
  font-family: var(--f-display);
  font-size: clamp(26px, 3.2vw, 46px);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1.2;
  color: var(--ink);
  max-width: 24ch;
  /* no display:-webkit-box: inline-block children become vertical flex items under it */
  overflow: hidden;
  max-height: 2.4em;
  /* line-height(1.2) × 2 — scales with clamp font-size */
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}


.ab-em em {
  font-family: var(--f-serif);
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}

.ab-body {
  margin: 0;
  max-width: 52ch;
  font-size: 20px;
  line-height: 1.8;
  color: var(--ink-mute);
  text-transform: none;
  letter-spacing: -0.005em;
}

.ab-side {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.ab-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--hair);
}

.ab-bk {
  color: var(--ink-low);
}

.ab-bv {
  color: var(--ink);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Cycling word — subtle vertical fade, sentence stays intact */
.ab-em em[data-cycle] {
  display: inline-block;
  position: relative;
  transition: transform 0.36s cubic-bezier(.7, .05, .3, .98), opacity 0.36s ease, filter 0.36s ease;
  will-change: transform, opacity;
}

.ab-em em[data-cycle].is-cycling {
  transform: translateY(-12px);
  opacity: 0;
  filter: blur(2px);
}

/* About — soft secondary paragraph */
.ab-body-soft {
  margin-top: 8px;
  font-style: italic;
  font-family: var(--f-serif);
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink-mute);
  max-width: 48ch;
  letter-spacing: 0.09em;
  text-transform: none;
}

/* About — tics list (on the desk / reading / listening) */
.ab-tics {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--hair);
  max-width: 620px;
}

.ab-tics li {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--hair);
  align-items: baseline;
}

.ab-tics .ab-tic-k {
  color: var(--ink-low);
  letter-spacing: 0.18em;
}

.ab-tics .ab-tic-v {
  color: var(--ink);
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

/* ═════════════ CONTACT ═════════════ */
.contact {
  padding: 96px 48px 48px;
  border-top: 1px solid var(--hair);
  background: var(--bg-2);
}

.ct-head {
  display: flex;
  gap: 12px;
  color: var(--ink-mute);
  margin-bottom: 32px;
}

.ct-big {
  margin: 0 0 80px;
  font-family: var(--f-display);
  font-size: clamp(48px, 8vw, 130px);
  font-weight: 300;
  letter-spacing: -0.05em;
  color: var(--ink);
  line-height: 1;
  text-align: center;
}

.ct-email {
  display: inline-flex;
  align-items: baseline;
}

.ct-at {
  font-family: var(--f-serif);
  font-style: italic;
  color: var(--accent);
  margin: 0 0.03em;
}

/* ─── Contact card ─── */
.ct-card {
  display: grid;
  grid-template-columns: 2fr 1fr;
  margin-bottom: 80px;
}
.ct-card-l {
  padding: 64px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  border-right: 1px solid var(--hair);
}
.ct-card-head { display: flex; flex-direction: column; gap: 16px; }
.ct-card-r {
  padding: 64px;
  background: var(--bg-2);
}

.ct-lbl {
  color: var(--ink-low);
  margin-bottom: 18px;
  letter-spacing: 0.3em;
}

.ct-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ct-links li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--hair);
}

.ct-links a {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
  transition: color .3s ease, font-weight .3s ease;
}

.ct-links a:hover {
  color: var(--accent);
  font-weight: 700;
}

.ct-meta {
  color: var(--ink-low);
}

.ct-avail {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-mute);
  text-transform: none;
  letter-spacing: -0.005em;
  max-width: 36ch;
}

.foot {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  padding-top: 24px;
  border-top: 1px solid var(--hair);
  color: var(--ink-low);
}

.foot-resume {
  color: var(--ink-low);
  text-decoration: none;
  transition: color 0.2s;
}

.foot-resume:hover {
  color: var(--ink);
}

/* ─── Contact form ─── */

.ct-form {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 28px;
}

.ct-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.ct-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ct-field-label {
  color: var(--ink-low);
  letter-spacing: 0.3em;
}
.ct-optional { font-size: 10px; letter-spacing: 0.15em; opacity: 0.6; }

.ct-input {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--hair-strong);
  color: var(--ink);
  font-family: var(--f-display);
  font-size: 15px;
  padding: 14px 0;
  outline: none;
  width: 100%;
  text-transform: none;
  letter-spacing: -0.01em;
  transition: border-color .3s ease;
}

.ct-input::placeholder {
  color: var(--ink-low);
}

.ct-input:focus {
  border-color: var(--accent);
}

.ct-textarea {
  resize: vertical;
  min-height: 100px;
}

.ct-send {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border: 1px solid var(--hair-strong);
  border-radius: 999px;
  font-family: var(--f-display);
  font-size: 13px;
  letter-spacing: -0.01em;
  color: var(--ink);
  cursor: pointer;
  transition: background .4s ease, color .4s ease, border-color .4s ease;
}

.ct-send:hover {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

.ct-send[data-state="loading"] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.ct-send[data-state="success"] {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

.ct-send[data-state="error"] {
  border-color: #e05;
  color: #e05;
}

/* Scramble hover support */
[data-scramble] {
  display: inline-block;
}

/* Tweaks panel */
.tweaks {
  position: fixed;
  bottom: 24px;
  right: 80px;
  z-index: 450;
  width: 260px;
  background: var(--bg-2);
  border: 1px solid var(--hair-strong);
  font-family: var(--f-mono);
  font-size: 11px;
}

.tweaks[hidden] {
  display: none;
}

.tw-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--hair);
  color: var(--ink-mute);
}

.tw-close {
  font-size: 16px;
  line-height: 1;
  color: var(--ink-mute);
}

.tw-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tw-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tw-field>span {
  color: var(--ink-low);
}

.tw-swatches {
  display: flex;
  gap: 6px;
}

.tw-swatches button {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--s);
  border: 1px solid var(--hair-strong);
}

.tw-swatches button.is-active {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.tw-seg {
  display: flex;
  gap: 4px;
}

.tw-seg button {
  flex: 1;
  padding: 6px 8px;
  border: 1px solid var(--hair-strong);
  color: var(--ink-mute);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.1em;
}

.tw-seg button.is-active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

/* Responsive — tablet */
@media (max-width: 1100px) {
  :root {
    --rail: 32px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-meta {
    flex-direction: row;
    border-top: 0;
    padding-top: 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .ab-side {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .ab-block {
    flex: 1 1 40%;
  }

  .ix-link {
    grid-template-columns: 40px 1fr 80px 60px 24px;
    gap: 12px;
  }

  .ct-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .ct-card { grid-template-columns: 1fr; }
  .ct-card-l { border-right: 0; border-bottom: 1px solid var(--hair); padding: 40px 24px; }
  .ct-card-r { padding: 40px 24px; }
}

/* Responsive — mobile */
@media (max-width: 680px) {
  :root {
    --rail: 0px;
    --chrome: 56px;
  }

  .side-rail {
    display: none;
  }

  .chrome {
    padding: 0 20px;
    grid-template-columns: 1fr auto;
  }

  .chrome-c {
    display: none;
  }

  .chrome-r {
    display: none;
  }

  .hero {
    padding: 24px 20px;
  }

  .hero-ticker {
    margin: 32px -20px 0;
  }

  .work {
    padding: 64px 20px;
  }

  .work-head {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .wh-title {
    justify-self: start;
    text-align: left;
    font-size: 42px;
  }

  .wh-r {
    justify-self: start;
  }

  .statement {
    padding: 80px 20px;
  }

  .index {
    padding: 64px 20px;
  }

  .index-head {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ih-title {
    justify-self: start;
    text-align: left;
    font-size: 42px;
  }

  .ix-row {
    padding: 14px 4px;
  }

  .ix-link {
    grid-template-columns: 28px 1fr 20px;
    gap: 8px;
  }

  .ix-cat,
  .ix-year {
    display: none;
  }

  .ix-title {
    font-size: 18px;
  }

  .about {
    padding: 64px 20px;
  }

  .ab-lead {
    max-width: 20ch;
    font-size: clamp(24px, 6vw, 34px);
  }

  .contact {
    padding: 64px 20px 32px;
  }

  .ct-big {
    font-size: 42px;
    margin-bottom: 48px;
  }

  .ct-form-row {
    grid-template-columns: 1fr;
  }

  .hero-foot {
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
  }

  .card {
    flex-basis: 80vw;
  }

  .foot {
    flex-direction: column;
    gap: 8px;
  }

  .tweaks {
    right: 16px;
    left: 16px;
    width: auto;
    bottom: 16px;
  }
}

/* ═════════════ EDITORIAL GALLERY (selected work) ═════════════ */
.work-intro {
  max-width: 640px;
  margin: -24px 0 48px;
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.55;
  color: var(--ink-mute);
}

.wgal {
  display: flex;
  align-items: stretch;
  gap: 8px;
  height: 480px;
  width: 100%;
  overflow: hidden;
}

.wg-tile {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 8px;
  background: var(--bg-2);
  text-decoration: none;
  color: var(--ink);
  flex-grow: 1;
  min-width: 52px;
  transition: flex-grow 0.5s cubic-bezier(.2, .8, .2, 1);
  isolation: isolate;
}

.wg-tile:hover {
  flex-grow: 7;
}

.wg-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
  transition: background 0.5s ease;
  z-index: 1;
  pointer-events: none;
}

.wg-tile:hover::after {
  background: rgba(0, 0, 0, 0.28);
}

.wg-img {
  position: absolute;
  inset: 0;
  background: var(--bg-2);
}

.wg-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.6) contrast(1.04);
  transition: filter .6s ease, transform 1.2s cubic-bezier(.2, .8, .2, 1);
  will-change: transform, filter;
}

.wg-tile:hover .wg-img img {
  filter: grayscale(0) contrast(1);
  transform: scale(1.04);
}

.wg-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.48) 60%, transparent 100%);
  transform: translateY(20px);
  opacity: 0;
  transition: transform .45s cubic-bezier(.2, .8, .2, 1), opacity .4s ease;
  z-index: 2;
  min-width: 180px;
}

.wg-tile:hover .wg-meta {
  transform: translateY(0);
  opacity: 1;
}

.wg-num {
  font-size: 10px;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
}

.wg-title {
  margin: 2px 0 0;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(14px, 1.2vw, 18px);
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #fff;
}

.wg-cat {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 2px;
}

.wg-cat em {
  font-family: var(--f-serif);
  font-style: italic;
  letter-spacing: 0;
  color: var(--accent);
  text-transform: lowercase;
  font-size: 12px;
  padding-right: 4px;
}

.wg-desc {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.58);
  letter-spacing: 0.01em;
  line-height: 1.45;
  margin-top: 5px;
  font-family: var(--f-mono);
  white-space: normal;
  max-width: 260px;
}

.wg-arrow {
  position: absolute;
  top: 12px;
  right: 14px;
  font-family: var(--f-mono);
  font-size: 14px;
  color: #fff;
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity .35s ease, transform .45s cubic-bezier(.2, .8, .2, 1), color .3s ease;
  z-index: 2;
}

.wg-tile:hover .wg-arrow {
  opacity: 1;
  transform: translate(0, 0);
  color: var(--accent);
}

/* tablet */
@media (max-width: 1100px) {
  .wgal {
    height: 420px;
    gap: 6px;
  }
}

/* mobile */
@media (max-width: 720px) {
  .wgal {
    flex-direction: column;
    height: auto;
    gap: 8px;
  }

  .wg-tile {
    flex-grow: unset;
    height: 200px;
    min-width: unset;
    transition: none;
  }

  .wg-tile:hover {
    flex-grow: unset;
  }

  .wg-tile::after {
    background: rgba(0, 0, 0, 0.35);
  }

  .wg-meta {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ═════════════ ABOUT — PORTRAIT ═════════════ */
.ab-portrait {
  margin: 0 0 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ab-portrait-frame {
  position: relative;
  border: 1px solid var(--hair-strong);
  background: var(--bg-2);
  padding: 8px 8px 10px;
  transform: rotate(-1.6deg);
  transition: transform .5s cubic-bezier(.2, 1, .2, 1);
  max-width: 360px;
}

.ab-portrait-frame:hover {
  transform: rotate(0.4deg) translateY(-2px);
}

.ab-portrait-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  filter: grayscale(1) contrast(1.04);
  transition: filter .6s ease;
}

.ab-portrait-frame:hover img {
  filter: grayscale(0);
}

.ab-portrait-tape {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  width: 64px;
  height: 18px;
  background: color-mix(in oklab, var(--accent) 35%, transparent);
  border: 1px dashed color-mix(in oklab, var(--accent) 60%, transparent);
}

.ab-portrait figcaption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  padding-left: 2px;
}

.ab-cap-k {
  color: var(--ink-low);
}

.ab-cap-v {
  color: var(--ink-mute);
}

/* ═════════════ EMAIL — cursor follow (subtle) ═════════════ */
.ct-email {
  display: inline-flex;
  align-items: baseline;
  text-decoration: none;
  color: var(--ink);
  transition: color .4s ease;
  will-change: transform;
}

.ct-email:hover {
  color: var(--accent);
}

.ct-email>span {
  display: inline-block;
  transition: transform 0.65s cubic-bezier(.2, .8, .2, 1);
  will-change: transform;
}

/* ═════════════ Responsive: tablet refinement ═════════════ */
@media (max-width: 1100px) {
  .work {
    padding: 80px 32px;
  }
}

/* ═════════════ Responsive: mobile ═════════════ */
@media (max-width: 720px) {
  .wh-hint {
    display: none;
  }

  .chrome {
    grid-template-columns: 1fr auto !important;
    padding: 0 16px !important;
  }

  .chrome-c {
    display: none;
  }

  .chrome-r {
    display: flex !important;
    gap: 10px;
    align-items: center;
  }

  .chrome-r .chrome-time,
  .chrome-r .chrome-dot {
    display: none;
  }

  .chrome-r>span:not(.tt-icon) {
    display: none;
  }

  .theme-toggle {
    display: inline-flex;
  }

  .hero {
    padding: 20px 18px 28px;
    min-height: auto;
  }

  .hero-title {
    font-size: clamp(48px, 13vw, 84px) !important;
    line-height: 0.95;
  }

  .ht-line-sub {
    margin-top: 18px;
  }

  .hero-foot {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 32px;
  }

  .hf-cta {
    align-self: start;
  }

  .ab-portrait-frame {
    max-width: 260px;
  }

  .ab-tics li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .contact {
    padding: 56px 18px 28px;
  }

  .ct-big {
    font-size: clamp(34px, 9vw, 56px);
    margin-bottom: 40px;
    word-break: break-word;
  }

  .ct-email {
    flex-wrap: wrap;
    justify-content: center;
  }

  .ct-links a {
    font-size: 18px;
  }

  .work {
    padding: 56px 18px;
  }

  .work-intro {
    margin: -8px 0 32px;
  }

  .statement {
    padding: 64px 18px;
  }

  .index {
    padding: 56px 18px;
  }

  .about {
    padding: 56px 18px;
  }
}

@media (max-width: 380px) {
  .hero-title {
    font-size: clamp(40px, 12vw, 64px) !important;
  }

  .ct-big {
    font-size: clamp(28px, 8vw, 44px);
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}

/* ═════════════ DOODLES — portrait + statement ═════════════ */
/* All overlays are pointer-events:none and positioned around content,
   never on top of the face. Strokes use currentColor / accent. */

.ab-portrait {
  position: relative;
}

.ab-portrait .doodle {
  position: absolute;
  pointer-events: none;
  color: var(--accent);
  z-index: 2;
}

.ab-portrait .doodle svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.ab-portrait .doodle path,
.ab-portrait .doodle line,
.ab-portrait .doodle polyline,
.ab-portrait .doodle circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Hand-drawn squiggle, top-right of frame */
.ab-portrait .dd-squiggle {
  top: -22px;
  right: -28px;
  width: 90px;
  height: 50px;
  transform: rotate(8deg);
  color: var(--accent);
  animation: dd-bob 6s ease-in-out infinite;
}

/* Little "drifting" scribble, bottom-left, slightly rotated */
.ab-portrait .dd-hi {
  bottom: 80px;
  left: -38px;
  width: 80px;
  height: 50px;
  transform: rotate(-15deg);
  color: var(--ink);
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 28px;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 4px;
  text-transform: lowercase;
}

.ab-portrait .dd-hi::after {
  content: "";
  width: 22px;
  height: 18px;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M2 16 C 7 6, 14 6, 22 14'/%3E%3Cpath d='M22 14 l -5 -1'/%3E%3Cpath d='M22 14 l -1 -5'/%3E%3C/svg%3E");
  color: var(--accent);
}

/* Tiny star, top-left of frame */
.ab-portrait .dd-star {
  top: -14px;
  left: 18px;
  width: 24px;
  height: 24px;
  transform: rotate(-12deg);
  animation: dd-spin 14s linear infinite;
  color: var(--accent);
}

/* Underline scribble below caption */
.ab-portrait .dd-underline {
  position: relative;
  bottom: auto;
  left: 0;
  width: 140px;
  height: 10px;
  margin: -2px 0 0 2px;
  color: var(--accent);
  display: block;
  transform: none;
}

@keyframes dd-bob {

  0%,
  100% {
    transform: rotate(8deg) translateY(0);
  }

  50% {
    transform: rotate(8deg) translateY(-4px);
  }
}

@keyframes dd-spin {
  to {
    transform: rotate(348deg);
  }
}

/* Statement section — clean, no doodles */
.statement {
  overflow: hidden;
}

.st-text {
  position: relative;
  z-index: 2;
}

@keyframes dd-pulse {

  0%,
  100% {
    opacity: 0.4;
    transform: scale(0.85);
  }

  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

/* Portrait doodles — small-screen tuning */
@media (max-width: 720px) {
  .ab-portrait .dd-hi {
    left: -8px;
    bottom: 26px;
    font-size: 22px;
  }

  .ab-portrait .dd-squiggle {
    right: -10px;
    top: -16px;
    width: 70px;
    height: 40px;
  }
}