/* ============================================================
   Cassy Lim — v2 (warm/personal register)
   Bold grotesque + italic-serif accent + mono metadata.
   Grainy soft-color field in the chrome. Witty, airy, human.
   ============================================================ */

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

:root {
  --ink:       #211c2b;   /* soft near-black, warm violet cast */
  --ink-soft:  #6a6478;
  --line:      rgba(33, 28, 43, 0.14);
  --line-soft: rgba(33, 28, 43, 0.07);
  --paper:     #f4f0ea;
  --accent:    #7a5ec4;   /* her flower violet, deepened for text */

  /* soft color field (light) */
  --f1: #f7e9f2;  /* blush */
  --f2: #ece4fb;  /* lilac */
  --f3: #e6f0fb;  /* periwinkle */
  --f4: #fbf3e2;  /* warm cream */

  --display: 'Bricolage Grotesque', -apple-system, system-ui, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --mono: 'Space Mono', ui-monospace, monospace;

  --pad: clamp(20px, 5vw, 76px);
  --maxw: 1240px;
  /* motion system: --ease = settle (ease-out), --e-soft = dreamy focus-in */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --e-soft: cubic-bezier(0.87, 0.14, 0.22, 0.9);
}

[data-theme="dark"] {
  --ink:       #ece7f2;
  --ink-soft:  #938ba6;
  --line:      rgba(236, 231, 242, 0.16);
  --line-soft: rgba(236, 231, 242, 0.07);
  --paper:     #131019;
  --accent:    #b6a2ec;

  --f1: #2a1d36;
  --f2: #1d1a37;
  --f3: #15203a;
  --f4: #2e2438;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background 0.6s var(--ease), color 0.6s var(--ease);
}

a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: #fff; }

/* ---- Soft grainy color field ---- */
.field {
  position: fixed;
  inset: -20%;
  z-index: -2;
  background:
    radial-gradient(60% 50% at 12% 8%,  var(--f1) 0%, transparent 60%),
    radial-gradient(55% 45% at 88% 4%,  var(--f3) 0%, transparent 62%),
    radial-gradient(70% 60% at 78% 82%, var(--f2) 0%, transparent 60%),
    radial-gradient(60% 55% at 6% 92%,  var(--f4) 0%, transparent 62%),
    var(--paper);
  filter: saturate(1.05);
  animation: drift 26s ease-in-out infinite alternate;
  transition: background 0.6s var(--ease);
}
@keyframes drift {
  0%   { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(-1.5%, 1.5%, 0) scale(1.05); }
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--pad);
  background: color-mix(in srgb, var(--paper) 55%, transparent);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid var(--line-soft);
}
.nav-mark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.flower {
  width: 17px; height: 17px;
  transition: transform 0.7s var(--ease);
}
.nav-mark:hover .flower { transform: rotate(72deg) scale(1.1); }

.nav-right { display: flex; align-items: center; gap: clamp(14px, 2vw, 26px); }
.nav-link {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 0.3s;
}
.nav-link:hover { color: var(--ink); }

.mode {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
  background: none;
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 6px 14px 6px 26px;
  cursor: pointer;
  position: relative;
  transition: border-color 0.3s, background 0.3s;
}
.mode::before {
  content: '';
  position: absolute;
  left: 11px; top: 50%;
  width: 8px; height: 8px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe08a, var(--accent));
}
.mode:hover { border-color: var(--accent); }

/* floating theme toggle (top bar removed) */
.floating-mode {
  position: fixed;
  bottom: clamp(18px, 3vw, 34px);
  right: clamp(18px, 3vw, 34px);
  z-index: 200;
  background: color-mix(in srgb, var(--paper) 72%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(80px, 14vh, 150px) var(--pad) clamp(48px, 7vh, 90px);
}
.hero-h {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(46px, 9.5vw, 132px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.hero-h .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;   /* room for descenders inside the clip, without shifting layout */
}
.hero-h .line-in {
  display: inline-block;
  transform: translateY(116%);
  transition: transform 0.95s var(--ease);
}
.hero-h.in .line-in { transform: translateY(0); }
.hero-h .line:nth-child(1) .line-in { transition-delay: 0.08s; }
.hero-h .line:nth-child(2) .line-in { transition-delay: 0.18s; }
.hero-h .line:nth-child(3) .line-in { transition-delay: 0.28s; }
@media (prefers-reduced-motion: reduce) {
  .hero-h .line-in { transform: none; transition: none; }
}
.hero-h .serif {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.01em;
  color: var(--accent);
}
/* hero flower — replaces the wave; clickable easter egg */
.hero-flower {
  display: inline-block;
  width: 0.72em;
  height: 0.72em;
  vertical-align: -0.04em;
  margin-left: 0.1em;
  cursor: pointer;
  transform-origin: 50% 62%;
  animation: flower-sway 6s ease-in-out infinite;
  transition: transform 0.5s var(--ease);
}
.hero-flower svg { width: 100%; height: 100%; display: block; }
.hero-flower:hover { animation: flower-spin 1.4s linear infinite; }
@keyframes flower-sway {
  0%, 100% { transform: rotate(-7deg); }
  50%      { transform: rotate(7deg); }
}
@keyframes flower-spin { to { transform: rotate(360deg); } }

.hero-deck {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(18px, 2.3vw, 27px);
  line-height: 1.35;
  letter-spacing: -0.01em;
  max-width: 26ch;
  margin-top: clamp(26px, 4vw, 44px);
  color: var(--ink);
}

/* ---- Status rows ---- */
.status {
  list-style: none;
  margin-top: clamp(36px, 5vw, 60px);
  max-width: 620px;
}
.status li {
  display: grid;
  grid-template-columns: 130px 20px 1fr;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}
.status li:first-child { border-top: 1px solid var(--line); }
.s-key {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.s-arrow { color: var(--accent); font-family: var(--mono); }
.s-val { font-family: var(--display); font-size: clamp(15px, 1.8vw, 18px); }
.s-val strong { font-weight: 700; }
.s-val a {
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 100% 1.5px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  color: var(--accent);
  font-weight: 500;
  transition: background-size 0.3s var(--ease);
}
.s-val a:hover { background-size: 0% 1.5px; }
.s-for {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-left: 1px;
}

/* ============================================================
   FLOWER CURSOR
   ============================================================ */
.flower-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 19px; height: 19px;
  pointer-events: none;
  z-index: 10001;
  transform-origin: center;
  will-change: transform;
  display: none;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.22));
  transition: opacity 0.25s var(--ease);
}
.flower-cursor svg { display: block; width: 100%; height: 100%; }

/* only take over the pointer on real mouse devices */
@media (hover: hover) and (pointer: fine) {
  .flower-cursor-on .flower-cursor { display: block; }
  .flower-cursor-on,
  .flower-cursor-on a,
  .flower-cursor-on button,
  .flower-cursor-on .film-stage,
  .flower-cursor-on .mode { cursor: none; }
}

/* ============================================================
   PEEK — floating hover preview (ryo.lu-style, nested)
   ============================================================ */
.peek {
  position: fixed;
  top: 0; left: 0;
  width: min(600px, 62vw);
  pointer-events: none;
  z-index: 9000;
  will-change: transform;
}
.peek-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  isolation: isolate;
  background: #0c0912 center / cover no-repeat;
  box-shadow: 0 34px 80px -26px rgba(122, 94, 196, 0.64), 0 0 0 1px rgba(122, 94, 196, 0.32);
  transform-origin: 14% 86%;   /* grows out from the corner nearest the cursor */
  opacity: 0;
  transform: scale(0.82);
  filter: blur(6px);
  /* JS (WAAPI) drives the hasque-style reveal; this transition only smooths the hide */
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), filter 0.35s var(--ease);
}
/* fallback for browsers without WAAPI */
.peek.on .peek-inner { opacity: 1; transform: scale(1); filter: blur(0px); }
.peek-media {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
  border-radius: 18px;   /* round the video/image itself — parent overflow won't clip a playing video */
}
.peek-tag {
  position: absolute;
  left: 12px; bottom: 11px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(12, 9, 20, 0.44);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 5px 11px;
  border-radius: 100px;
  opacity: 0;
  transform: translateY(7px);
  transition: opacity 0.3s var(--ease) 0.12s, transform 0.34s var(--ease) 0.12s;
}
.peek.on .peek-tag { opacity: 1; transform: translateY(0); }

/* row hint — the little "▸ film" marker that wakes up on hover */
.row-hint {
  font-family: var(--mono);
  font-size: 0.32em;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  vertical-align: middle;
  margin-left: 0.5em;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.row a:hover .row-hint { opacity: 1; transform: translateX(0); }

/* Symphony capabilities strip — grouped under the Symphony row */
.row.has-caps a { border-bottom: none; }
.caps {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 18px;
  padding: 2px 6px 26px;
  border-bottom: 1px solid var(--line);
}
.caps-k {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.caps-list { display: flex; flex-wrap: wrap; gap: 9px 16px; }
.caps-list a {
  font-family: var(--display);
  font-size: clamp(15px, 1.8vw, 18px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0% 1.5px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.3s var(--ease), color 0.3s;
}
.caps-list a:hover { color: var(--accent); background-size: 100% 1.5px; }

/* award badge on a project row */
.row-award {
  align-self: start;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent);
  border-radius: 100px;
  padding: 3px 10px;
  width: fit-content;
}

/* ============================================================
   SYMPHONY — featured block
   ============================================================ */
.feature {
  padding: clamp(18px, 2.5vw, 30px) 0 clamp(30px, 4vw, 46px);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line);
}
.feature-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
}
.feature-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(24px, 4.4vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--ink);
  transition: color 0.35s;
}
.feature-head:hover .feature-title { color: var(--accent); }
.feature-meta { display: inline-flex; align-items: baseline; gap: 12px; white-space: nowrap; }
.feature-year {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.feature-arrow {
  font-family: var(--mono);
  font-size: 20px;
  color: var(--ink-soft);
  transition: transform 0.4s var(--ease), color 0.4s;
}
.feature-head:hover .feature-arrow { transform: translate(4px, -4px); color: var(--accent); }
.feature-desc {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  margin-top: 9px;
}
.feature .caps { border-bottom: none; padding: 16px 0 24px; }
.feature-media {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: clamp(14px, 1.6vw, 22px);
  margin: 2px 0 clamp(20px, 3vw, 30px);
}
/* grow proportional to each clip's aspect width → they fill the whole row
   AND land at the same height (16:9 gets 1.778, 9:16 gets 0.5625) */
.mfilm { flex: 1 1 0; min-width: 0; }
.mfilm-wide { flex-grow: 1.778; }
.mfilm-tall { flex-grow: 0.5625; }
.mfilm video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  object-fit: cover;
  background: #0c0912;
  box-shadow: 0 26px 60px -28px rgba(122, 94, 196, 0.5), 0 0 0 1px var(--line);
}
.mfilm-wide video { aspect-ratio: 16 / 9; }
.mfilm-tall video { aspect-ratio: 9 / 16; }
.mfilm figcaption {
  margin-top: 11px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
}
.mfilm figcaption span { color: var(--ink-soft); margin-left: 6px; }
@media (max-width: 720px) {
  .feature-media { flex-direction: column; align-items: stretch; }
  .mfilm { flex: none; }
  .mfilm-wide video { width: 100%; }
  .mfilm-tall video { width: min(240px, 62vw); }
}
.feature .featured { margin: 0; }

/* ============================================================
   ON THE SHELF
   ============================================================ */
.shelf {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(44px, 7vw, 88px) var(--pad) clamp(20px, 3vw, 40px);
}
.shelf-list { list-style: none; }
.shelf-list a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: clamp(16px, 2vw, 22px) 4px;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.4s var(--ease);
}
.shelf-list li:first-child a { border-top: 1px solid var(--line); }
.shelf-list a:hover { padding-left: 16px; }
.shelf-name {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(19px, 2.6vw, 30px);
  letter-spacing: -0.025em;
  color: var(--ink);
  flex: 0 0 auto;
  transition: color 0.35s;
}
.shelf-for {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
  flex: 1;
}
.shelf-arrow {
  font-family: var(--mono);
  font-size: 18px;
  color: var(--ink-soft);
  transition: transform 0.4s var(--ease), color 0.4s;
}
.shelf-list a:hover .shelf-name { color: var(--accent); }
.shelf-list a:hover .shelf-arrow { transform: translate(4px, -4px); color: var(--accent); }
@media (max-width: 560px) {
  .shelf-list a { flex-wrap: wrap; gap: 4px 12px; }
  .shelf-for { flex-basis: 100%; }
}

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

/* Ken Burns drift on the preview media so stills breathe like the video.
   The mask forces WebKit to clip the (zooming) video to the rounded frame. */
.peek-inner {
  -webkit-mask-image: radial-gradient(#fff, #fff);
  mask-image: radial-gradient(#fff, #fff);
}
.peek.on .peek-media { animation: kenburns 16s ease-out both; }
@keyframes kenburns {
  from { transform: scale(1.04); }
  to   { transform: scale(1.15); }
}

/* ============================================================
   CURSOR-REACTIVE GLOW
   ============================================================ */
.cursor-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(340px circle at var(--mx, 50vw) var(--my, 40vh),
              rgba(122, 94, 196, 0.16), transparent 68%);
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}
.cursor-glow.on { opacity: 1; }
[data-theme="dark"] .cursor-glow {
  background: radial-gradient(360px circle at var(--mx, 50vw) var(--my, 40vh),
              rgba(150, 125, 224, 0.22), transparent 66%);
}

/* ============================================================
   PETAL BURST — flower-logo easter egg
   ============================================================ */
.petal {
  position: fixed;
  z-index: 10002;
  pointer-events: none;
  will-change: transform, opacity;
  animation-name: petal-fall;
  animation-timing-function: cubic-bezier(0.35, 0, 0.4, 1);
  animation-fill-mode: forwards;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.12));
}
.petal svg { width: 100%; height: 100%; display: block; }
@keyframes petal-fall {
  0%   { transform: translate(0, 0) rotate(0deg); opacity: 0; }
  12%  { opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); opacity: 0; }
}

/* ---- Click-to-bloom ---- */
.bloom {
  position: fixed;
  z-index: 10001;
  pointer-events: none;
  transform-origin: center;
  animation: bloom 0.95s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.14));
}
.bloom svg { width: 100%; height: 100%; display: block; }
@keyframes bloom {
  0%   { transform: scale(0) rotate(var(--r, 0deg)); opacity: 0; }
  35%  { opacity: 1; }
  60%  { transform: scale(1.12) rotate(var(--r, 0deg)); opacity: 1; }
  100% { transform: scale(0.96) rotate(var(--r, 0deg)); opacity: 0; }
}

/* ---- Theme-toggle circular wipe (View Transitions API) ---- */
::view-transition-old(root),
::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { z-index: 1; }
::view-transition-old(root) { z-index: 0; }

@media (prefers-reduced-motion: reduce) {
  .peek.on .peek-media { animation: none; }
  .cursor-glow { display: none; }
  .bloom { display: none; }
}

/* ============================================================
   SECTION LABEL
   ============================================================ */
.section-label {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.section-label .dim { color: var(--ink-soft); text-transform: none; letter-spacing: 0.02em; }

.work, .about {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(44px, 7vw, 88px) var(--pad);
}

/* ============================================================
   WORK — rows
   ============================================================ */
.rows { list-style: none; }
.row a {
  display: grid;
  grid-template-columns: 1fr auto 30px;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  padding: clamp(22px, 3vw, 34px) 6px;
  border-bottom: 1px solid var(--line);
  position: relative;
  border-radius: 14px;
  transition: padding 0.45s var(--ease), background 0.4s var(--ease);
}
.row-body { display: flex; flex-direction: column; gap: 7px; }
.row-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(23px, 4.2vw, 48px);
  line-height: 1.03;
  letter-spacing: -0.035em;
}
.row-desc {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
}
.row-year {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  align-self: start;
  padding-top: 8px;
}
.row-arrow {
  font-family: var(--mono);
  font-size: 22px;
  color: var(--ink-soft);
  justify-self: end;
  transition: transform 0.45s var(--ease), color 0.45s;
}
.row a:hover {
  padding-left: 24px;
  padding-right: 18px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.row a:hover .row-name { color: var(--accent); }
.row a:hover .row-arrow { transform: translate(5px, -5px); color: var(--accent); }

/* ============================================================
   ABOUT
   ============================================================ */
.about-bio {
  max-width: 58ch;
  padding-top: clamp(28px, 4vw, 44px);
}
.about-bio p {
  font-family: var(--display);
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.65;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin-bottom: 16px;
}
/* inline links — muted, brighten to accent on hover (ref: grey woven links) */
.about-bio p a {
  color: var(--accent);
  font-weight: 500;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 100% 1.5px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.3s var(--ease);
}
.about-bio p a:hover { background-size: 0% 1.5px; }

/* inline brand flower at the end of the lede */
.lede-flower {
  display: inline-block;
  width: 0.66em;
  height: 0.66em;
  margin-left: 0.16em;
  vertical-align: -0.01em;
}
.lede-flower svg { width: 100%; height: 100%; display: block; }

.ilink {
  color: var(--accent);
  font-weight: 500;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 100% 1.5px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.3s var(--ease);
}
.ilink:hover { background-size: 0% 1.5px; }

/* "More on Symphony" featured-links cluster */
.featured {
  margin: clamp(22px, 3vw, 30px) 0 4px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 13px 28px;
}
.featured-k {
  flex-basis: 100%;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 4px;
}
.featured a {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0% 1.5px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.3s var(--ease), color 0.3s;
}
.featured a span { color: var(--ink-soft); transition: transform 0.3s var(--ease), color 0.3s; }
.featured a:hover { color: var(--accent); background-size: 100% 1.5px; }
.featured a:hover span { transform: translate(2px, -2px); color: var(--accent); }
.featured .src {
  font-family: var(--mono);
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-left: 2px;
}

.about-links { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 26px; }
.about-links a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 10px 17px;
  display: inline-flex;
  gap: 8px;
  transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease);
}
.about-links a span { color: var(--ink-soft); transition: transform 0.3s var(--ease); }
.about-links a:hover { border-color: var(--accent); transform: translateY(-2px); }
.about-links a:hover span { transform: translate(2px, -2px); color: var(--accent); }

/* ============================================================
   FOOTER
   ============================================================ */
.foot {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 68px) var(--pad);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.foot-flower { color: var(--accent); }

/* ============================================================
   ENTRANCE
   ============================================================ */
.reveal-line { opacity: 0; transform: translateY(20px); }
.reveal-line.in {
  opacity: 1; transform: translateY(0);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  .reveal-line { opacity: 1 !important; transform: none !important; }
  .wave, .field { animation: none; }
}

/* ============================================================
   CURSOR LABEL — "view ↗" that trails the flower on project hover
   ============================================================ */
.cursor-label {
  position: fixed;
  top: 0; left: 0;
  z-index: 10001;
  pointer-events: none;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  padding: 4px 9px;
  border-radius: 100px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(4px) scale(0.92);
  transform-origin: left center;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
  display: none;
}
.flower-cursor-on .cursor-label { display: block; }
.cursor-label.on { opacity: 1; transform: translateY(0) scale(1); }

.live-clock { font-variant-numeric: tabular-nums; }

/* ============================================================
   ROMANTICIZING LIFE — horizontal photo reel
   ============================================================ */
.lifereel {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 56px) var(--pad) clamp(32px, 5vw, 72px);
}
.reel-lede {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.65;
  letter-spacing: -0.005em;
  color: var(--ink);
  max-width: 58ch;
  margin-top: clamp(16px, 2.4vw, 26px);
}
.reel {
  overflow: hidden;
  padding: clamp(16px, 2vw, 26px) 0 14px;
  /* soft fade at both edges as photos scroll in/out */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.reel-track {
  display: flex;
  width: max-content;
  animation: reel-scroll 60s linear infinite;
}
.reel:hover .reel-track { animation-play-state: paused; }
@keyframes reel-scroll { to { transform: translateX(-50%); } }
.reel-item {
  flex: 0 0 auto;
  width: clamp(168px, 20vw, 236px);
  aspect-ratio: 4 / 5;
  margin: 0 clamp(12px, 1.4vw, 20px) 0 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-sink);
  box-shadow: 0 20px 46px -26px rgba(122, 94, 196, 0.45), 0 0 0 1px var(--line);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.reel-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.reel-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -26px rgba(122, 94, 196, 0.6), 0 0 0 1px rgba(122, 94, 196, 0.35);
}
@media (prefers-reduced-motion: reduce) {
  .reel-track { animation: none; }
  .reel { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
}

/* ============================================================
   A11Y — visible focus ring (the custom cursor hides the pointer)
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  .hero-h { font-size: clamp(33px, 11.5vw, 60px); letter-spacing: -0.03em; }
  .hero { padding-top: clamp(70px, 13vh, 120px); }
  .cursor-label { display: none; }
  .floating-mode { bottom: 14px; right: 14px; }
}
@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; }
  .status li { grid-template-columns: 110px 18px 1fr; }
}
@media (max-width: 560px) {
  .nav-link { display: none; }
  .row a { grid-template-columns: 1fr auto; }
  .row-arrow { display: none; }
  .status li { grid-template-columns: 92px 16px 1fr; }
  .foot { flex-direction: column; gap: 10px; text-align: center; }
}
