/* ============================================================
   smalltrailstudio.com — portfolio v2 (Claude Design handoff)
   Cool blue editorial palette; stacked app cards with phone
   mockups; playful hero. Dark mode maps the same design onto
   a navy base.
   ============================================================ */

:root {
  --paper: #f2f6fa;
  --ink: #17293f;
  --ink-soft: #4d5b6e;
  --ink-faint: #8494a8;
  --line: rgba(23, 41, 63, 0.1);
  --card: #fbfdff;

  --blue: #1d4e89;
  --blue-bright: #2e6cb5;
  --blue-sky: #6aa1d8;
  --orange: #e08b3c;
  --gold: #f2b13c;

  --card-inseason: #dcebf7;
  --fz-ink: #0e1726;
  --fz-text: #eef1f7;
  --fz-muted: #98a2b8;

  --watermark: rgba(23, 41, 63, 0.06);
  --nav-frost: rgba(242, 246, 250, 0.82);

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, monospace;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --radius: 36px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0d1523;
    --ink: #e6edf5;
    --ink-soft: #9fb0c4;
    --ink-faint: #6b7d92;
    --line: rgba(230, 237, 245, 0.12);
    --card: #141d2b;

    --blue: #7fb0e8;
    --blue-bright: #6aa1d8;

    --card-inseason: #16273b;
    --watermark: rgba(230, 237, 245, 0.05);
    --nav-frost: rgba(13, 21, 35, 0.82);
  }

  /* Keep the mouse-follow glow present without washing out dark cards. */
  .spotlight { opacity: 0.32; }
}

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

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

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  overflow-x: hidden;
}

::selection { background: #2e6cb5; color: #fff; }

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

/* ============================================================
   Scroll progress
   ============================================================ */
.progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #2e6cb5, #e08b3c);
  z-index: 300;
  pointer-events: none;
}

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 56px);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease),
              padding 0.4s var(--ease);
}

.nav.scrolled {
  background: var(--nav-frost);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line);
  padding-top: 12px;
  padding-bottom: 12px;
}

.nav-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.nav-avatar {
  width: 32px;
  height: 32px;
  border-radius: 22.5%;
  transition: transform 0.5s var(--ease);
}
.nav-mark:hover .nav-avatar { transform: scale(1.12) rotate(-5deg); }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 30px);
}

.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.3s ease;
}
.nav-links a:hover { color: var(--ink); }

.nav-tip {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  transition: border-color 0.3s ease, transform 0.35s var(--ease),
              box-shadow 0.35s ease;
}
.nav-tip:hover {
  border-color: var(--ink-faint);
  transform: translateY(-1.5px);
  box-shadow: 0 8px 18px -8px rgba(23, 41, 63, 0.25);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 90px;
  overflow: hidden;
}

.hero-decor { position: absolute; inset: 0; pointer-events: none; }

.parallax { position: absolute; will-change: transform; }

.orb {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  filter: blur(90px);
}
.orb-blue-lg {
  opacity: 0.55;
  background: radial-gradient(circle, rgba(122, 175, 227, 0.6), transparent 65%);
  animation: drift-a 26s ease-in-out infinite alternate;
}
.orb-orange {
  opacity: 0.5;
  background: radial-gradient(circle, rgba(224, 139, 60, 0.35), transparent 65%);
  animation: drift-b 32s ease-in-out infinite alternate;
}
.orb-navy {
  opacity: 0.45;
  background: radial-gradient(circle, rgba(29, 78, 137, 0.3), transparent 65%);
  animation: drift-c 38s ease-in-out infinite alternate;
}
@keyframes drift-a { to { transform: translate(9vmax, 7vmax) scale(1.12); } }
@keyframes drift-b { to { transform: translate(-8vmax, -6vmax) scale(1.08); } }
@keyframes drift-c { to { transform: translate(-6vmax, 8vmax) scale(0.92); } }

.hero-fade-edge {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 22vh;
  background: linear-gradient(to bottom, transparent, var(--paper));
  z-index: 1;
}

.float-icon {
  border-radius: 22.5%;
  box-shadow: 0 14px 28px -10px rgba(23, 41, 63, 0.35);
}
.float-icon-1 { width: 52px; height: 52px; animation: float-tilt 7s ease-in-out infinite; }
.float-icon-2 { width: 46px; height: 46px; animation: float-tilt 8.5s ease-in-out -2.5s infinite; }
.float-icon-3 { width: 42px; height: 42px; animation: float-tilt 9s ease-in-out -4.5s infinite; }

.float-shape { display: block; }
.float-shape-1 {
  width: 72px; height: 72px;
  background: #ece5a0;
  box-shadow: 0 14px 28px -12px rgba(160, 148, 60, 0.5);
  border-radius: 24px;
  animation: spin-slow 56s linear infinite;
}
.float-shape-2 {
  width: 44px; height: 44px;
  background: #a9c7e8;
  box-shadow: 0 12px 24px -10px rgba(60, 100, 150, 0.5);
  border-radius: 15px;
  animation: spin-slow 44s linear infinite reverse;
}
@keyframes spin-slow { to { transform: rotate(360deg); } }

.float-code {
  display: block;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: color-mix(in srgb, var(--ink) 35%, transparent);
}
.float-code-1 { animation: float-y 8s ease-in-out -1s infinite; }
.float-code-2 { animation: float-y 9s ease-in-out -3s infinite; }
.float-code-3 { animation: float-y 10s ease-in-out -5s infinite; }

@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes float-tilt {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-16px) rotate(5deg); }
}

.hero-inner {
  position: relative;
  max-width: 940px;
  will-change: transform, opacity;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 28px;
}

.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(56px, 10.5vw, 132px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}
.hero-title em {
  display: inline-block;
  font-style: italic;
  background: linear-gradient(100deg, #2e6cb5, #e08b3c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.06em;
  transition: transform 0.45s var(--ease);
}
.hero-title em:hover { transform: scale(1.05) rotate(-1.5deg); }

.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.hero-title .line-inner {
  display: inline-block;
  transform: translateY(110%);
  animation: line-up 1.1s var(--ease) forwards;
  animation-delay: calc(var(--d) * 130ms);
}
@keyframes line-up { to { transform: translateY(0); } }

.hero-sub {
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--ink-soft);
  max-width: 34em;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.rise {
  opacity: 0;
  transform: translateY(24px);
  animation: rise-in 1s var(--ease) forwards;
  animation-delay: calc(var(--d) * 130ms);
}
@keyframes rise-in { to { opacity: 1; transform: none; } }

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  margin-left: -12px;
  width: 24px;
  height: 56px;
  display: flex;
  justify-content: center;
}
.hero-scroll-line {
  display: block;
  width: 2px;
  height: 100%;
  background: linear-gradient(var(--ink-faint), transparent);
  border-radius: 2px;
  transform-origin: top;
  animation: scroll-pulse 2.2s var(--ease) infinite;
}
@keyframes scroll-pulse {
  0% { transform: scaleY(0); opacity: 0; }
  35% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(24px); opacity: 0; }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: box-shadow 0.35s ease, gap 0.35s var(--ease),
              transform 0.35s var(--ease);
}

.btn-primary {
  background: #1d4e89;
  color: #f2f6fa;
}
.btn-primary:hover {
  box-shadow: 0 16px 32px -12px rgba(29, 78, 137, 0.55);
  gap: 16px;
  transform: translateY(-2px);
}

.btn-coffee {
  padding: 15px 28px;
  gap: 8px;
  background: var(--gold);
  color: #17293f;
}
.btn-coffee:hover {
  box-shadow: 0 16px 36px -10px rgba(242, 177, 60, 0.5);
  transform: translateY(-2px);
}

/* ============================================================
   Sections shared
   ============================================================ */
.section-head { text-align: center; margin-bottom: clamp(48px, 7vw, 84px); }

.section-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 5vw, 54px);
  letter-spacing: -0.015em;
  line-height: 1.1;
}

/* ============================================================
   App cards
   ============================================================ */
.apps {
  padding: clamp(90px, 12vw, 150px) clamp(20px, 5vw, 56px);
  max-width: 1200px;
  margin: 0 auto;
}

.app-stack {
  display: flex;
  flex-direction: column;
  gap: clamp(36px, 6vh, 64px);
}

.app-card {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(36px, 5vw, 72px);
  border-radius: var(--radius);
  overflow: hidden;
  will-change: transform;
}

.spotlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.watermark {
  position: absolute;
  right: -0.04em;
  bottom: -0.26em;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(120px, 16vw, 230px);
  pointer-events: none;
  line-height: 1;
  z-index: 0;
  white-space: nowrap;
}
.watermark-sm { font-size: clamp(110px, 15vw, 210px); }

.app-body { position: relative; z-index: 2; }

.app-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(32px, 3.6vw, 44px);
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.app-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(19px, 2.2vw, 23px);
  margin-bottom: 18px;
}

.app-desc {
  font-size: 16.5px;
  margin-bottom: 22px;
  max-width: 34em;
}

.app-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}
.app-tags li {
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid;
}

.app-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.app-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: gap 0.35s var(--ease);
}
.app-link:hover { gap: 15px; }

.app-store-link {
  display: block;
  line-height: 0;
  transition: transform 0.35s var(--ease), filter 0.35s ease;
}
.app-store-link img {
  width: 120px;
  height: auto;
}
.app-store-link:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.app-soon {
  font-size: 13.5px;
  font-weight: 500;
  opacity: 0.75;
}

/* ---------- app media / phone mockup ---------- */
.app-media {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  padding: 24px 0;
}

.phone {
  position: relative;
  width: min(270px, 62vw);
  aspect-ratio: 9 / 19.2;
  transform: perspective(900px);
  transition: transform 0.5s var(--ease);
  will-change: transform;
  z-index: 1;
}
.phone-frame {
  position: absolute;
  inset: 0;
  border-radius: 46px;
  background: #101012;
  padding: 9px;
  box-shadow: 0 40px 80px -30px rgba(20, 45, 80, 0.55),
              inset 0 0 0 1px rgba(255, 255, 255, 0.09);
}
.frame-fitzones {
  background: #1b2534;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8),
              inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 38px;
  overflow: hidden;
}
.screen-inseason { background: #e2edf8; }
.screen-fitzones { background: #101a29; }
.screen-valuestudy { background: #efece6; }
.phone-screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.phone-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 24px;
  border-radius: 13px;
  background: #0a0a0b;
  z-index: 3;
  pointer-events: none;
}
.island-black { background: #000; }

.app-float { position: absolute; bottom: 8%; z-index: 3; }
.media-float-left { left: clamp(0px, 3vw, 32px); }
.media-float-right { right: clamp(0px, 3vw, 32px); }

.app-icon {
  width: clamp(80px, 9vw, 108px);
  height: auto;
  border-radius: 22.5%;
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.35);
  animation: float-y 6s ease-in-out infinite;
}
.card-fitzones .app-icon { animation-delay: -3s; }
.card-valuestudy .app-icon { animation-delay: -1.5s; }
.icon-shadow-dark { box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.7); }

/* ---------- InSeason panel ---------- */
.card-inseason {
  background: var(--card-inseason);
  box-shadow: 0 30px 60px -40px rgba(23, 41, 63, 0.35);
}
.card-inseason .watermark { color: rgba(46, 108, 181, 0.1); }
.card-inseason .app-tagline,
.card-inseason .app-link { color: var(--blue); }
.card-inseason .app-desc,
.card-inseason .app-soon { color: var(--ink-soft); }
.card-inseason .app-tags li {
  border-color: color-mix(in srgb, var(--blue-bright) 35%, transparent);
  color: var(--blue);
}

.leaf {
  position: absolute;
  fill: #34a06b;
  opacity: 0.2;
  animation: leaf-float 7s ease-in-out infinite;
}
.leaf-1 { top: 6%; left: 12%; width: 26px; }
.leaf-2 { bottom: 10%; right: 10%; width: 20px; animation-delay: -2.4s; }
@keyframes leaf-float {
  0%, 100% { transform: translateY(0) rotate(-8deg); }
  50% { transform: translateY(-14px) rotate(10deg); }
}

/* ---------- FitZones panel (always dark) ---------- */
.card-fitzones {
  background: var(--fz-ink);
  color: var(--fz-text);
  box-shadow: 0 30px 60px -26px rgba(14, 23, 38, 0.65);
}
.card-fitzones .watermark { color: rgba(238, 241, 247, 0.05); }
.card-fitzones .app-tagline { color: #ff7a59; }
.card-fitzones .app-link { color: var(--fz-text); }
.card-fitzones .app-desc,
.card-fitzones .app-soon { color: var(--fz-muted); }
.card-fitzones .app-tags li {
  border-color: rgba(238, 241, 247, 0.22);
  color: var(--fz-muted);
}

.fz-bars {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 4vw, 44px);
  z-index: 0;
}
.fz-bars span {
  width: 13px;
  height: 52%;
  border-radius: 999px;
  opacity: 0.45;
  transform-origin: center;
}
.fz-bars span:nth-child(1) { background: #3f6fd8; animation: fz-eq 2.6s ease-in-out infinite; }
.fz-bars span:nth-child(2) { background: #4cbb6c; animation: fz-eq 2.6s ease-in-out -0.5s infinite; }
.fz-bars span:nth-child(3) { background: #c9a62c; animation: fz-eq 2.6s ease-in-out -1s infinite; }
.fz-bars span:nth-child(4) { background: #c97a2c; animation: fz-eq 2.6s ease-in-out -1.5s infinite; }
.fz-bars span:nth-child(5) { background: #c33c3c; animation: fz-eq 2.6s ease-in-out -2s infinite; }
@keyframes fz-eq {
  0%, 100% { transform: scaleY(0.6); }
  50% { transform: scaleY(1.45); }
}

/* ---------- ValueStudy panel ---------- */
.card-valuestudy {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -40px rgba(23, 41, 63, 0.35);
}
.card-valuestudy .watermark { color: var(--watermark); }
.card-valuestudy .app-tagline { color: #c96f22; }
.card-valuestudy .app-link { color: #c96f22; }
.card-valuestudy .app-desc,
.card-valuestudy .app-soon { color: var(--ink-soft); }
.card-valuestudy .app-tags li {
  border-color: var(--line);
  color: var(--ink-soft);
}

.vs-swatches {
  position: absolute;
  inset: 0;
  display: flex;
  border-radius: 20px;
  overflow: hidden;
  opacity: 0.4;
  z-index: 0;
}
.vs-swatches span { flex: 1; }
.vs-swatches span:nth-child(1) { background: #2a2a28; }
.vs-swatches span:nth-child(2) { background: #6f6c66; }
.vs-swatches span:nth-child(3) { background: #a9a49b; }
.vs-swatches span:nth-child(4) { background: #d4cfc5; }
.vs-swatches span:nth-child(5) { background: #f3efe7; }

/* ============================================================
   Tip jar
   ============================================================ */
.tip { padding: clamp(20px, 4vw, 40px) clamp(20px, 5vw, 56px) clamp(80px, 10vw, 120px); }

.tip-panel {
  position: relative;
  max-width: 1088px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(125deg, #16304f, #0f2138);
  padding: clamp(48px, 7vw, 88px) clamp(28px, 6vw, 80px);
  box-shadow: 0 30px 60px -35px rgba(15, 33, 56, 0.6);
}

.watermark-tip {
  bottom: -0.28em;
  font-size: clamp(90px, 12vw, 180px);
  color: rgba(242, 246, 250, 0.05);
}

.tip-glow {
  position: absolute;
  top: -40%;
  right: -8%;
  width: 55%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 139, 60, 0.25), transparent 65%);
  filter: blur(30px);
  pointer-events: none;
  z-index: 0;
}

.tip-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.tip-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(242, 246, 250, 0.5);
  margin-bottom: 18px;
}

.tip-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 4.6vw, 58px);
  letter-spacing: -0.015em;
  line-height: 1.08;
  color: #f2f6fa;
}
.tip-title em {
  font-style: italic;
  background: linear-gradient(100deg, #f2b13c, #e08b3c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.06em;
}

.tip-copy {
  color: rgba(242, 246, 250, 0.72);
  max-width: 30em;
  margin-bottom: 30px;
}

.tip-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.tip-cup { color: var(--gold); width: 40px; }
.cup-svg { display: block; width: 100%; }
.cup-steam path {
  stroke-dasharray: 12;
  animation: steam 2.8s ease-in-out infinite;
  opacity: 0.7;
}
.cup-steam path:last-child { animation-delay: -1.4s; }
@keyframes steam {
  0% { stroke-dashoffset: 24; opacity: 0; }
  40% { opacity: 0.7; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

/* ============================================================
   About
   ============================================================ */
.about { padding: 0 clamp(20px, 5vw, 56px) clamp(90px, 12vw, 150px); }

.about-grid {
  max-width: 1088px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
}

.about-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 4.6vw, 54px);
  letter-spacing: -0.015em;
  line-height: 1.08;
  margin-bottom: 22px;
}
.about-title em { font-style: italic; color: var(--blue); }

.about-text .section-eyebrow { margin-bottom: 18px; }

.about-copy {
  color: var(--ink-soft);
  margin-bottom: 32px;
  max-width: 32em;
}

.about-sig {
  display: flex;
  align-items: center;
  gap: 14px;
}
.about-contacts {
  display: grid;
  gap: 18px;
}
.about-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
}
.about-name {
  font-weight: 600;
  font-size: 15px;
  line-height: 1.35;
}
.about-contact-links {
  display: grid;
  gap: 3px;
}
.about-mail {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  color: var(--blue);
  transition: gap 0.35s var(--ease);
}
.about-mail:hover { gap: 12px; }

/* ---------- studio figure ---------- */
.studio { margin: 0; }

.studio-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(23, 41, 63, 0.4);
  transition: transform 0.7s var(--ease);
}
.studio:hover .studio-frame { transform: translateY(-6px); }

.studio-img-night {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.studio-frame.night .studio-img-night { opacity: 1; }

.studio-toggle {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(23, 41, 63, 0.12);
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #17293f;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.35s ease, color 0.35s ease;
}
.studio-toggle:hover { transform: scale(1.1) rotate(-8deg); }
.studio-toggle:active { transform: scale(0.95); }
.studio-toggle svg { width: 20px; height: 20px; }
.studio-toggle .icon-sun { display: none; }

.studio-frame.night .studio-toggle {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(20, 24, 38, 0.6);
  color: #ffd76a;
}
.studio-frame.night .icon-moon { display: none; }
.studio-frame.night .icon-sun { display: block; }

.studio figcaption {
  margin-top: 16px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--ink-faint);
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 28px clamp(20px, 5vw, 56px);
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-faint);
}
.footer nav { display: flex; gap: 22px; }
.footer a {
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer a:hover { color: var(--ink); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 760px) {
  .nav-links a:not(.nav-tip) { display: none; }
  .app-media { min-height: 320px; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise, .hero-title .line-inner { animation: none; opacity: 1; transform: none; }
  .orb, .float-icon, .float-shape, .float-code, .leaf, .fz-bars span,
  .cup-steam path, .hero-scroll-line, .app-icon { animation: none; }
  * { transition-duration: 0.01ms !important; }
}
