/* ─── BASE: tokens, reset, typography ─── */
/* ── BASE: tokens, reset, typography ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── CONSTRUCTION BANNER (temporary) ── */
#construction-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 8px 16px;
  background: #1e1c18;
  color: rgba(255,255,255,0.85);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

:root {
  --bg:     #f8f6f1;
  --bg2:    #e8e1d4;
  --bg3:    #d8d0c2;
  --ink:    #1e1c18;
  --ink2:   #3d3a30;
  --muted:  #8a8070;
  --border: rgba(30,28,24,0.1);
  --bord2:  rgba(30,28,24,0.2);
  --rose:   #c4687a;
  --petal:  #e8b4bc;
  --serif:  'DM Sans', sans-serif;
  --mono:   'DM Mono', ui-monospace, monospace;
  /* Lily colour token — updated each tick by JS */
  --lily-color: #c4687a;
}

/* Eggshell beige + linen noise texture */
.bg-beige {
  background-color: var(--bg);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0.3'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)' opacity='0.055'/%3E%3C/svg%3E"),
    radial-gradient(ellipse at 15% 50%, rgba(210,195,165,0.35) 0%, transparent 60%),
    radial-gradient(ellipse at 82% 18%, rgba(200,185,155,0.2) 0%, transparent 50%);
  color: var(--ink);
  font-family: var(--mono);
  min-height: 100vh;
}

/* For case-study pages the body itself carries the texture */
body.page-case-study {
  background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0.3'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)' opacity='0.055'/%3E%3C/svg%3E");
  color: var(--ink);
  font-family: var(--mono);
  min-height: 100vh;
}
/* Dark mode default for case studies */
body.page-case-study:not(.theme-light) {
  background-color: #14110e;
  color: rgba(255,255,255,0.82);
}

/* Dark section — homepage content area */
.bg-dark {
  background-color: #0c0906;
  color: rgba(255,255,255,0.88);
  font-family: var(--mono);
}

@keyframes fu {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── NAV ─── */
/* ── NAV ── */
.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 20px 32px;
  gap: 16px;
  background: rgba(4,3,2,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 0.5px solid rgba(255,255,255,0.08);
  border-radius: 0;
  position: sticky;
  top: 0;
  left: auto;
  transform: none;
  z-index: 20;
  max-width: none;
  width: 100%;
}

/* Left: clock */
.nav-clock {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.42);
  line-height: 1.6;
}
.nav-clock-time {
  display: block;
  font-size: 9px;
  color: rgba(255,255,255,0.58);
  letter-spacing: 0.1em;
}
.nav-clock-date {
  display: block;
}

/* Center: logo */
.nav-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: rgba(255,255,255,0.96);
  text-decoration: none;
  text-align: center;
}
.nav-logo em {
  font-style: italic;
  font-weight: 400;
  color: var(--rose);
}

/* Left: nav links (shared across pages) */
.nav-l {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-site-links { display: flex; align-items: center; gap: 24px; }
.nav-site-menu { display: none; position: relative; }

/* ── PROJECTS DROPDOWN MENU ── */
.nav-projects-menu {
  position: relative;
  flex-shrink: 0;
}
.npm-trigger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4.5px;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  cursor: none;
  padding: 4px;
}
.npm-line {
  width: 16px;
  height: 1.5px;
  background: rgba(255,255,255,0.5);
  border-radius: 2px;
  transition: background 0.2s, transform 0.2s, opacity 0.2s;
}
.npm-trigger:hover .npm-line { background: rgba(255,255,255,0.9); }
.npm-trigger[aria-expanded="true"] .npm-line:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.npm-trigger[aria-expanded="true"] .npm-line:nth-child(2) { opacity: 0; }
.npm-trigger[aria-expanded="true"] .npm-line:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.npm-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  background: rgba(10,8,6,0.97);
  backdrop-filter: blur(16px);
  border: 0.5px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 6px;
  min-width: 240px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.18s, transform 0.18s;
  z-index: 200;
}
.npm-dropdown.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.npm-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s;
}
.npm-item:hover { background: rgba(255,255,255,0.07); }
.npm-item.active { background: rgba(255,255,255,0.05); }
.npm-title {
  font-family: var(--mono);
  font-size: 11.5px;
  color: rgba(255,255,255,0.88);
  white-space: nowrap;
}
.npm-item.active .npm-title { color: var(--rose, rgba(255,255,255,0.96)); }
.npm-tag {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  white-space: nowrap;
}

/* Light mode adjustments */
.theme-light .npm-trigger .npm-line { background: rgba(30,28,24,0.45); }
.theme-light .npm-trigger:hover .npm-line { background: rgba(30,28,24,0.9); }
.theme-light .npm-dropdown {
  background: rgba(252,250,247,0.98);
  border-color: rgba(30,28,24,0.1);
}
.theme-light .npm-item:hover { background: rgba(30,28,24,0.05); }
.theme-light .npm-item.active { background: rgba(30,28,24,0.04); }
.theme-light .npm-title { color: rgba(30,28,24,0.85); }
.theme-light .npm-item.active .npm-title { color: var(--rose, rgba(30,28,24,0.9)); }
.theme-light .npm-tag { color: rgba(30,28,24,0.3); }

/* Right: links */
.nav-r {
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: flex-end;
}

/* Homepage nav links */
.nl {
  font-size: 8.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  background: none;
  border: none;
  font-family: var(--mono);
  cursor: none;
  padding: 0;
  transition: color 0.2s;
  text-decoration: none;
}
.nl:hover, .nl.on { color: rgba(255,255,255,1); }
.nl.nav-name {
  font-family: var(--serif);
  font-weight: 500;
  font-style: normal;
  font-size: 18px;
  letter-spacing: -0.01em;
  text-transform: none;
  color: rgba(255,255,255,0.88);
  white-space: nowrap;
}
.nl.nav-name:hover, .nl.nav-name.on { color: rgba(255,255,255,0.88); }
.theme-light .nl.nav-name { color: rgba(20,18,14,0.88); }
.theme-light .nl.nav-name:hover, .theme-light .nl.nav-name.on { color: rgba(20,18,14,0.88); }

/* Bouncing dot on the "i" in Gabrielle — case-study/about nav only */
.i-dot-wrap { position: relative; display: inline-block; }
.i-dot {
  position: absolute;
  top: 0.27em;
  left: 50%;
  width: 2.25px;
  height: 2.25px;
  border-radius: 50%;
  background: currentColor;
  transform-origin: bottom center;
  transform: translateX(-50%) translateY(0);
  animation: i-dot-bounce 2s infinite;
}
@keyframes i-dot-bounce {
  0%   { transform: translateX(-50%) translateY(0);        animation-timing-function: cubic-bezier(.33,1,.68,1); }
  13%   { transform: translateX(-50%) translateY(-1em);      animation-timing-function: cubic-bezier(.55,.06,.68,.19); }
  26%  { transform: translateX(-50%) translateY(0);         animation-timing-function: cubic-bezier(.33,1,.68,1); }
  36%  { transform: translateX(-50%) translateY(-0.38em);   animation-timing-function: cubic-bezier(.55,.06,.68,.19); }
  46%  { transform: translateX(-50%) translateY(0);         animation-timing-function: cubic-bezier(.33,1,.68,1); }
  53%  { transform: translateX(-50%) translateY(-0.12em);   animation-timing-function: cubic-bezier(.55,.06,.68,.19); }
  60%, 100% { transform: translateX(-50%) translateY(0); }
}

/* Resume pill — default: filled white for dark nav */
.nc {
  font-size: 8.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #0c0906;
  background: rgba(255,255,255,0.92);
  border: 0.5px solid rgba(255,255,255,0.92);
  padding: 8px 16px;
  border-radius: 20px;
  cursor: none;
  font-family: var(--mono);
  transition: all 0.2s;
  text-decoration: none;
}
.nc:hover { background: rgba(255,255,255,1); border-color: white; }

/* Light nav variant (about page) */
.nav--light {
  background: rgba(242,237,228,0.97);
  border-bottom: 0.5px solid rgba(30,28,24,0.1);
}
.nav--light .nav-clock { color: var(--muted); }
.nav--light .nav-clock-time { color: var(--ink2); }
.nav--light .nav-logo { color: var(--ink); }
.nav--light .nl { color: var(--muted); }
.nav--light .nl:hover, .nav--light .nl.on { color: var(--ink); }
.nav--light .nc {
  color: var(--ink);
  border-color: var(--bord2);
}
.nav--light .nc:hover { background: var(--bg2); color: var(--ink); }

/* Case-study back button — sits in the right slot */
.nav-back {
  font-size: 8px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  background: none;
  border: none;
  cursor: none;
  font-family: var(--mono);
  display: flex;
  align-items: center;
  gap: 7px;
  transition: color 0.2s;
  text-decoration: none;
  justify-self: end;
}
.nav-back:hover { color: rgba(255,255,255,0.8); }
.back-line {
  width: 16px;
  height: 1px;
  background: rgba(255,255,255,0.3);
  transition: width 0.2s;
}
.nav-back:hover .back-line { width: 24px; }

/* ─── LILY SYSTEM: carousel, cursor, highlights ─── */
/* ── LILY SYSTEM: lily carousel + orb cursor + .co + .hl + .hl-pink ── */

/* .co — company names in tagline, sync with lily color */
.co {
  color: var(--lily-color);
  font-style: italic;
  transition: color 0.55s ease;
  font-weight: 500;
}

/* MORPH HEADLINE */
.morph-line {
  display: inline-flex;
  align-items: baseline;
  gap: 0.2em;
  font-family: var(--serif);
  font-size: 1em;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
}
.morph-slot { position: relative; height: 1.08em; overflow: visible; }
.mwin {
  position: relative;
  display: block;
  white-space: nowrap;
  opacity: 1;
  transition: opacity 0.55s ease;
}
.mwout {
  position: absolute;
  top: 0; left: 0;
  display: block;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s ease;
}
/* slot 1 = bold white */
#s1 .mwin, #s1 .mwout { color: rgba(255,255,255,0.92); font-weight: 700; }
/* slot 2 = lily colour */
#s2 .mwin, #s2 .mwout {
  color: var(--lily-color);
  font-weight: 400;
  font-style: italic;
  transition: color 0.55s ease, opacity 0.55s ease;
}
.mamp {
  font-family: var(--serif);
  font-size: 1em;
  font-weight: 400;
  font-style: italic;
  color: var(--muted);
  letter-spacing: -0.03em;
  flex-shrink: 0;
}

/* .hl — highlighted links, underline syncs with lily color */
.hl {
  color: rgba(255,255,255,0.82);
  font-weight: 700;
  position: relative;
  display: inline;
  cursor: none;
  text-decoration: none;
  transition: color 0.4s ease;
}
.hl::after {
  content: '';
  position: absolute;
  bottom: 1px; left: 0; right: 0;
  height: 2px;
  background: var(--lily-color);
  border-radius: 1px;
  transition: background 0.4s ease;
}
.hl:hover { color: var(--lily-color); }

/* .hl-pink — italic accent text */
.hl-pink {
  color: var(--lily-color);
  font-style: italic;
  font-weight: 400;
  transition: color 0.4s ease;
  opacity: 0.9;
}

/* LILY FLOWER */
.lily-wrap {
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lily-img {
  position: absolute;
  width: 70px;
  height: 70px;
  object-fit: contain;
  filter: drop-shadow(0 4px 16px rgba(100,80,50,0.12));
  opacity: 0;
  transform: rotate(0deg) scale(0.88);
  transition: opacity 0.55s ease, transform 1s ease;
  pointer-events: none;
}
.lily-img.active  { opacity: 1; transform: rotate(var(--rot,0deg)) scale(1); }
.lily-img.leaving { opacity: 0; transform: rotate(calc(var(--rot,0deg) + 12deg)) scale(0.92); }

.lily-dots {
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
}
.ldot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--muted);
  opacity: 0.3;
  transition: opacity 0.3s, transform 0.3s, background 0.4s;
}
.ldot.on { opacity: 1; transform: scale(1.4); background: var(--lily-color); }

/* ORB CURSOR — flower shape */
#orb {
  position: fixed;
  width: 30px;
  height: 30px;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition:
    filter 0.55s ease,
    opacity 0.3s ease,
    transform 0.18s ease;
  opacity: 0.88;
  mix-blend-mode: normal;
  color: var(--lily-color);
}
#orb.grow { transform: translate(-50%, -50%) scale(1.35); }
#orb.grow.clicked, #orb.clicked { transform: translate(-50%, -50%) scale(0.6); opacity: 1; }
#orb.on-light { mix-blend-mode: multiply; opacity: 0.9; }
#orb.on-element { filter: invert(1); mix-blend-mode: difference; opacity: 1; }
/* CSS-level fallback for the JS touch check below: on touch/no-hover
   devices a tap leaves the orb stuck at the tap point since there's
   no mousemove afterward to move or hide it. */
@media (hover: none), (pointer: coarse) {
  #orb { display: none !important; }
}

html, body { overflow-x: hidden; max-width: 100%; }
body { cursor: none; }
a, button { cursor: none; }

/* ── SITE FOOTER ── */
.site-footer {
  background: rgba(4,3,2,0.97);
  backdrop-filter: blur(12px);
  width: 100%;
  padding: 100px 32px 24px;
  border-top: 0.5px solid rgba(255,255,255,0.08);
}
.sf-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.sf-cta {
  text-align: left;
  max-width: 480px;
  margin: 0;
  padding-left: 24px;
}
.sf-cta-title {
  font-family: var(--serif);
  font-weight: 250;
  font-size: clamp(26px, 4.2vw, 48px);
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: rgba(255,255,255,0.92);
  margin-bottom: 26px;
}
.sf-cta-emoji { font-size: 1rem; }
.sf-cta-title > span { display: block; }
.sf-cta-word-wrap {
  display: inline-flex;
  overflow: hidden;
  height: 1.15em;
  vertical-align: bottom;
}
.sf-cta-letter {
  display: inline-block;
  color: var(--lily-color, #e8546f);
  transform: translateY(0);
  opacity: 1;
  white-space: pre;
}
.sf-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--serif);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0c0906;
  background: rgba(255,255,255,0.92);
  border: 0.5px solid rgba(255,255,255,0.92);
  padding: 12px 26px;
  border-radius: 24px;
  text-decoration: none;
  transition: all 0.2s;
  cursor: none;
}
.sf-cta-btn:hover { background: #fff; }
.sf-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 160px));
  gap: 32px;
  margin: 0;
}
.sf-links-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sf-links-head {
  font-family: var(--serif);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  margin-bottom: 4px;
}
.sf-links-col a {
  font-family: var(--serif);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.2s;
  cursor: none;
}
.sf-links-col a:hover { color: rgba(255,255,255,1); }
.sf-links-col .sf-email-btn { text-align: left; }
.sf-links-col .sf-resume {
  display: inline-flex;
  width: fit-content;
  color: #0c0906 !important;
  background: rgba(255,255,255,0.92);
  border: 0.5px solid rgba(255,255,255,0.92);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 9px;
  margin-top: 4px;
}
.sf-links-col .sf-resume:hover { background: rgba(255,255,255,1) !important; color: #0c0906 !important; }
@media (max-width: 760px) {
  .site-footer { padding: 72px 40px 20px; }
  .sf-top { flex-direction: column; align-items: flex-start; gap: 72px; }
  .sf-cta { padding-left: 0; max-width: none; width: 100%; }
  .sf-right { width: 100%; gap: 24px; }
  .sf-links { grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: none; width: 100%; }
  .sf-copy-wrap { width: 100%; }

  /* Shared nav (case study / about / projects / play pages) — .nav-l
     packs a dropdown trigger, name, 3 links, and a resume pill into
     one row with a fixed 24px gap and no wrap, which overflows on
     narrow screens. Shrink it down and let it scroll horizontally
     instead of ever forcing the whole page wider than the viewport. */
  .nav { padding: 14px 16px; gap: 8px; }
  /* The shared injected nav (nav-inject.js) has an empty placeholder
     middle column reserved for a center logo it doesn't use on these
     pages; drop it on mobile so nav-l gets that space instead. */
  #site-nav { grid-template-columns: 1fr auto; }
  #site-nav > *:nth-child(2) { display: none; }
  .nav-l {
    gap: 12px;
  }
  .nav-l .nl { font-size: 7.5px; flex-shrink: 0; }
  .nav-l .nl.nav-name { font-size: 14px; }
  .nav-l .nc { padding: 6px 10px; font-size: 7px; flex-shrink: 0; }
  /* Work/Play/About collapse into a single burger + dropdown on
     mobile, in the top-left slot — the separate "all projects"
     burger is redundant there (Work already lists every project). */
  .nav-projects-menu { display: none; }
  .nav-site-links { display: none; }
  .nav-site-menu { display: flex; flex-shrink: 0; order: -1; }
  #nav-site-dropdown { left: 0; right: auto; }
  .nav-r-cs { gap: 10px; }
  .nav-r-cs .nav-back { display: none; }
  .cs-theme-toggle { padding: 0 8px; height: 28px; }
  .cs-theme-toggle span { display: none; }
}
@media (max-width: 420px) {
  .sf-links { grid-template-columns: repeat(2, 1fr); }
}
.sf-right {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.sf-email-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: none;
  font-family: var(--serif);
  font-size: 8.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
  text-align: left;
  line-height: 1.6;
}
.sf-email-btn:hover { color: rgba(255,255,255,1); }
.sf-email-btn.sf-copied { color: var(--lily-color); }
.sf-copy-hint {
  display: block;
  font-size: 7px;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.25);
  opacity: 0;
  transition: opacity 0.2s;
}
.sf-email-btn:hover .sf-copy-hint { opacity: 1; }
.sf-email-btn.sf-copied .sf-copy-hint { opacity: 1; color: var(--lily-color); }
.sf-nav {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
}
.sf-nav a {
  font-family: var(--serif);
  font-size: 8.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.2s;
  cursor: none;
}
.sf-nav a:hover { color: rgba(255,255,255,1); }
.sf-nav-dot { color: rgba(255,255,255,0.18); font-size: 8px; }
.sf-resume {
  color: #0c0906 !important;
  background: rgba(255,255,255,0.92);
  border: 0.5px solid rgba(255,255,255,0.92);
  padding: 6px 14px;
  border-radius: 20px;
  transition: all 0.2s;
}
.sf-resume:hover { background: rgba(255,255,255,1) !important; color: #0c0906 !important; }
.sf-copy-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  padding-top: 20px;
  border-top: 0.5px solid rgba(255,255,255,0.08);
}
.sf-copy {
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: -0.01em;
  color: rgba(255,255,255,0.5);
  text-align: right;
}
.sf-counter {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: -0.01em;
  color: rgba(255,255,255,0.4);
  text-align: right;
}
.sf-counter-icon { font-size: 9px; }
.sf-flap {
  display: inline-flex;
  gap: 1px;
  perspective: 120px;
}
.sf-flap-digit {
  display: inline-block;
  width: 11px;
  padding: 1px 0;
  box-sizing: content-box;
  text-align: center;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  color: var(--lily-color, #e8546f);
  font-variant-numeric: tabular-nums;
  transform-style: preserve-3d;
  transform-origin: center center;
}
.sf-flap-plus {
  display: inline-block;
  margin-left: 2px;
  color: var(--lily-color, #e8546f);
}
.sf-flap-digit.flipping {
  animation: sf-flap-flip 0.32s cubic-bezier(.37,0,.63,1);
}
@keyframes sf-flap-flip {
  0%   { transform: rotateX(0deg); }
  48%  { transform: rotateX(-90deg); }
  52%  { transform: rotateX(90deg); }
  100% { transform: rotateX(0deg); }
}

/* ── FOOTER LIGHT MODE ── */
.theme-light .site-footer {
  background: var(--bg);
  border-top-color: rgba(30,28,24,0.1);
}
.theme-light .sf-email-btn { color: var(--muted); }
.theme-light .sf-email-btn:hover { color: var(--ink); }
.theme-light .sf-email-btn.sf-copied { color: var(--rose); }
.theme-light .sf-copy-hint { color: rgba(30,28,24,0.3); }
.theme-light .sf-nav a { color: var(--muted); }
.theme-light .sf-nav a:hover { color: var(--ink); }
.theme-light .sf-nav-dot { color: rgba(30,28,24,0.18); }
.theme-light .sf-copy { color: rgba(30,28,24,0.28); }
.theme-light .sf-counter { color: rgba(30,28,24,0.28); }
.theme-light .sf-flap-digit { background: rgba(30,28,24,0.06); }
.theme-light .sf-resume {
  color: var(--ink) !important;
  background: transparent;
  border-color: var(--bord2);
}
.theme-light .sf-resume:hover { background: var(--bg2) !important; color: var(--ink) !important; }
.theme-light .sf-cta-title { color: var(--ink); }
.theme-light .sf-cta-btn {
  color: var(--ink) !important;
  background: transparent;
  border-color: var(--bord2);
}
.theme-light .sf-cta-btn:hover { background: var(--bg2); }
.theme-light .sf-links-head { color: var(--ink); }
.theme-light .sf-links-col a { color: var(--muted); }
.theme-light .sf-links-col a:hover { color: var(--ink); }
.theme-light .sf-links-col .sf-resume {
  color: var(--ink) !important;
  background: transparent;
  border-color: var(--bord2);
}
.theme-light .sf-links-col .sf-resume:hover { background: var(--bg2) !important; color: var(--ink) !important; }
