/* ============================================================
   Yuvraj Singh — Portfolio v4 · DARK
   Structure/motion language studied from upsunday.co, rebuilt by hand.
   Type: Switzer (sharp display, per Yuvraj's standing mandate)
   Night palette: ice-blue top → warm ember → near-black
   ============================================================ */

:root {
  --text: #F3EFE9;                       /* warm white ink */
  --text-soft: rgba(243, 239, 233, 0.68);
  --text-faint: rgba(243, 239, 233, 0.45);
  --night-top: #0D1520;                  /* night version of the ice-blue sky */
  --night-warm: #1C1512;                 /* night version of the peach */
  --card: #17191D;
  --glass: rgba(255, 255, 255, 0.07);
  --glass-soft: rgba(255, 255, 255, 0.05);
  --glass-line: rgba(255, 255, 255, 0.16);
  --accent: #F0813A;                     /* arrow orange, brightened for dark */
  --pill: #F3EFE9;                       /* primary CTA surface (light on dark) */
  --pill-ink: #0F1014;

  --font: "Switzer", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;

  --wrap: 1200px;
  --pad: clamp(20px, 4vw, 44px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-nav: 0 1px 2px rgba(0,0,0,0.25), 0 18px 40px -24px rgba(0,0,0,0.7);
  --shadow-card: 0 2px 4px rgba(0,0,0,0.3), 0 24px 48px -28px rgba(0,0,0,0.6);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  background:
    linear-gradient(180deg, var(--night-top) 0%, var(--night-warm) 30%, #16120F 55%, #121014 78%, #0E0D10 100%);
  background-color: #0E0D10;
}
h1, h2, h3, p, ul, ol, li, figure, figcaption, dl, dd, dt { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--text); color: #121014; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

/* ---------- skip ---------- */
.skip {
  position: fixed; top: -64px; left: 16px; z-index: 300;
  background: var(--pill); color: var(--pill-ink);
  padding: 12px 24px; border-radius: var(--r-sm); font-size: 14px; font-weight: 500;
  transition: top 0.2s var(--ease);
}
.skip:focus { top: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 24px;
  border-radius: var(--r-sm);
  font-size: 15px; font-weight: 500; line-height: 1;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s ease;
}
.btn--dark {                              /* primary: light pill on dark canvas */
  background: var(--pill); color: var(--pill-ink);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 10px 24px -14px rgba(0,0,0,0.8);
}
.btn--dark:hover { transform: translateY(-2px); background: #FFFFFF; }
.btn--lite {                              /* secondary: dark glass */
  background: var(--glass); color: var(--text);
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn--lite:hover { transform: translateY(-2px); background: rgba(255,255,255,0.12); }
.btn:active { transform: scale(0.96); }

/* ---------- floating nav ---------- */
.nav {
  position: fixed; z-index: 100;
  top: 16px; left: 50%; transform: translateX(-50%);
  width: min(1084px, calc(100% - 32px));
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 14px 0 22px;
  background: rgba(18, 20, 26, 0.55);
  border: 1px solid var(--glass-line);
  border-radius: 16px;
  box-shadow: var(--shadow-nav);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
}
.nav__brand { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.nav__mark { width: 28px; height: 28px; border-radius: 8px; display: block; }
.nav__links { display: flex; gap: clamp(16px, 3vw, 34px); position: absolute; left: 50%; transform: translateX(-50%); }
.nav__links a { font-size: 15px; font-weight: 500; color: var(--text-soft); transition: color 0.2s ease; }
.nav__links a:hover { color: var(--text); }
.nav__cta { height: 40px; }
@media (max-width: 720px) { .nav__links { display: none; } }

/* ---------- reveals ---------- */
.js .rv { opacity: 0; transform: translateY(26px); }
.js .rv.in {
  opacity: 1; transform: none;
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .hw { opacity: 0; transform: translateY(20px) scale(0.96); display: inline-block; }
.js .hw.in {
  opacity: 1; transform: none;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--d, 0s);
}
.js [data-words] .w { display: inline-block; opacity: 0; transform: translateY(0.4em); }
.js [data-words].in .w { opacity: 1; transform: none; transition: opacity 0.55s var(--ease), transform 0.55s var(--ease); transition-delay: calc(var(--wi) * 0.045s); }

/* ---------- section heads ---------- */
.sec-head { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; margin-bottom: clamp(36px, 5vw, 56px); }
.kicker {
  display: inline-flex; align-items: center;
  padding: 6px 16px;
  background: var(--glass-soft);
  border: 1px solid var(--glass-line);
  border-radius: var(--r-sm);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 13px; font-weight: 500; color: var(--text);
}
.kicker--on-dark { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.35); color: #fff; }
.sec-title {
  font-size: clamp(34px, 4.6vw, 54px);
  font-weight: 550;
  letter-spacing: -0.025em;
  line-height: 1.12;
}
.sec-title--big { font-size: clamp(40px, 6vw, 72px); }
.sec-sub { font-size: clamp(15px, 1.3vw, 17px); color: var(--text-soft); max-width: 58ch; }
.sec-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 8px; }

/* ---------- hero ---------- */
.hero { padding-top: clamp(140px, 20vh, 200px); padding-bottom: clamp(40px, 6vw, 72px); }
.hero__in { text-align: center; }
.hero__status {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 18px;
  background: var(--glass-soft);
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 13.5px; font-weight: 500;
  margin-bottom: clamp(28px, 4vh, 44px);
}
.hero__status .dot { width: 8px; height: 8px; border-radius: 50%; background: #2ECC71; box-shadow: 0 0 0 0 rgba(46,204,113,0.5); animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(46,204,113,0.45); } 70%, 100% { box-shadow: 0 0 0 8px transparent; } }
.hero__title {
  font-size: clamp(44px, 7.6vw, 108px);
  font-weight: 550;
  letter-spacing: -0.03em;
  line-height: 1.04;
  max-width: 13em; margin-inline: auto;
}
.hero__title .hw { margin-inline: 0.11em; }
.hw--em { font-weight: 650; }
.hero__chips,
.js .hero__chips {                        /* outranks .js .hw's inline-block by order */
  vertical-align: baseline;
  display: inline-flex;
  align-items: center;
  margin-inline: 0.16em;
  transform: translateY(0.08em);
}
.hero__chips img {
  width: clamp(40px, 4.6vw, 66px); height: clamp(40px, 4.6vw, 66px);
  object-fit: cover; object-position: top;
  border-radius: 14px;
  border: 3px solid rgba(255,255,255,0.9);
  box-shadow: var(--shadow-card);
}
.hero__chips img:nth-child(1) { transform: rotate(-5deg); animation: float1 5s ease-in-out infinite; }
.hero__chips img:nth-child(2) { transform: rotate(2deg); margin-left: -10px; z-index: 1; animation: float2 6s ease-in-out infinite; }
.hero__chips img:nth-child(3) { transform: rotate(6deg); margin-left: -10px; animation: float3 5.5s ease-in-out infinite; }
@keyframes float1 { 0%,100% { translate: 0 0; } 50% { translate: 0 -5px; } }
@keyframes float2 { 0%,100% { translate: 0 0; } 50% { translate: 0 5px; } }
@keyframes float3 { 0%,100% { translate: 0 0; } 50% { translate: 0 -4px; } }
.hero__arrow {
  width: clamp(56px, 6.6vw, 104px); height: auto;
  color: var(--accent);
  vertical-align: middle;
  margin-inline: 0.06em;
}
.hero__sub { margin-top: clamp(24px, 3.5vh, 36px); font-size: clamp(16px, 1.4vw, 19px); color: var(--text-soft); max-width: 52ch; margin-inline: auto; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: clamp(26px, 4vh, 40px); }

/* ---------- statement ---------- */
.statement { padding-block: clamp(56px, 9vw, 120px); }
.statement__text {
  font-size: clamp(22px, 3vw, 38px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
  max-width: 30em; margin-inline: auto;
  text-align: center;
}
.statement__text .w { color: rgba(243,239,233,0.15); transition: color 0.35s ease; }
.statement__text .w.lit { color: var(--text); }

/* ---------- reel ---------- */
.reel { padding-bottom: clamp(56px, 9vw, 120px); }
.reel__frame {
  position: relative; display: block;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: linear-gradient(135deg, #1A2330 0%, #241B15 100%);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow-card);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.reel__frame:hover { transform: translateY(-4px); }
@media (max-width: 640px) { .reel__frame { aspect-ratio: 4 / 5; } }
.reel__frames { position: absolute; inset: 0; }
.reel__frames img,
.reel__frames video {
  position: absolute; left: 50%; top: 50%;
  translate: -50% -50%;
  height: 88%; width: auto; max-width: 86%;
  object-fit: contain;
  opacity: 0; transition: opacity 0.9s ease;
  filter: drop-shadow(0 18px 32px rgba(0,0,0,0.55));
}
.reel__frames video { border-radius: 18px; }        /* phone-shaped captures get soft corners */
.reel__frames img.is-on,
.reel__frames video.is-on { opacity: 1; }
.reel__pill { position: absolute; left: 20px; bottom: 20px; z-index: 2; }

/* ---------- drift (dreamy visual-work marquee) ---------- */
.drift {
  position: relative;
  padding: clamp(36px, 6vw, 72px) 0 clamp(44px, 7vw, 88px);
  overflow: clip;
}
.drift__aura {
  position: absolute; inset: -20%; pointer-events: none;
  filter: blur(90px); opacity: 0.55;
  -webkit-mask-image: linear-gradient(180deg, transparent 12%, #000 35%, #000 65%, transparent 88%);
  mask-image: linear-gradient(180deg, transparent 12%, #000 35%, #000 65%, transparent 88%);
}
.drift__aura i { position: absolute; border-radius: 50%; }
.drift__aura i:nth-child(1) { width: 44%; height: 70%; left: 4%; top: 10%; background: rgba(139, 92, 246, 0.28); animation: aura-a 26s ease-in-out infinite alternate; }
.drift__aura i:nth-child(2) { width: 38%; height: 62%; right: 6%; top: 0%; background: rgba(240, 129, 58, 0.16); animation: aura-b 32s ease-in-out infinite alternate; }
.drift__aura i:nth-child(3) { width: 34%; height: 58%; left: 36%; bottom: -8%; background: rgba(78, 201, 224, 0.14); animation: aura-c 29s ease-in-out infinite alternate; }
@keyframes aura-a { to { transform: translate(10%, 8%) scale(1.15); } }
@keyframes aura-b { to { transform: translate(-12%, 10%) scale(0.9); } }
@keyframes aura-c { to { transform: translate(8%, -10%) scale(1.1); } }
.drift__kicker {
  text-align: center;
  font-size: 13.5px; font-weight: 400; font-style: italic; letter-spacing: 0.04em;
  color: var(--text-faint);
  margin-bottom: clamp(24px, 3.5vw, 40px);
}
.drift__kicker a { color: var(--text-soft); font-style: normal; font-weight: 500; }
.drift__kicker a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.drift__viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.drift__track {
  display: flex; align-items: center; gap: clamp(14px, 2vw, 24px);
  width: max-content;
  padding-block: 18px;               /* room for rotation + glow */
  animation: drift-x var(--drift-dur, 60s) linear infinite;
}
.drift__viewport:hover .drift__track { animation-play-state: paused; }
@keyframes drift-x { to { transform: translateX(-50%); } }
.drift__tile {
  display: block; flex-shrink: 0;
  width: clamp(150px, 17vw, 210px);
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  transform: rotate(var(--rot, 0deg));
  transition: transform 0.45s var(--ease), opacity 0.45s ease, filter 0.45s ease, box-shadow 0.45s ease;
  opacity: 0.85;
  filter: saturate(0.92);
  box-shadow: 0 8px 28px -8px rgba(0,0,0,0.55), 0 14px 48px -14px rgba(139, 92, 246, 0.35);
}
.drift__tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.drift__tile:hover {
  transform: rotate(0deg) scale(1.06);
  opacity: 1;
  filter: saturate(1.05);
  box-shadow: 0 12px 34px -8px rgba(0,0,0,0.6), 0 18px 60px -14px rgba(139, 92, 246, 0.5);
}

/* ---------- works ---------- */
.works { padding-block: clamp(48px, 8vw, 110px); }
.works__grid { display: grid; gap: 14px; }
.works__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px) 14px; margin-top: clamp(20px, 3vw, 36px); }
.works__cell { min-width: 0; }
.wcard {
  position: relative; display: block;
  border-radius: var(--r-md);
  overflow: hidden;
  background: #16181D;                                   /* fallback */
  background: color-mix(in srgb, var(--tint, #2A2D36) 14%, #121318);  /* dark wash of each card's tint */
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: var(--shadow-card);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.wcard:hover { transform: translateY(-5px); }
.wcard__media { aspect-ratio: 4 / 3; position: relative; }
.wcard--wide .wcard__media { aspect-ratio: 3 / 2; }   /* matches the full-art cover, all breakpoints */
@media (max-width: 640px) { .wcard__media { aspect-ratio: 4 / 4.2; } .wcard--wide .wcard__media { aspect-ratio: 3 / 2; } }
.wcard__media img {
  position: absolute; left: 50%; top: 8%;
  translate: -50%;
  height: 120%; width: auto; max-width: 80%;
  object-fit: contain; object-position: top;
  filter: drop-shadow(0 16px 28px rgba(0,0,0,0.5));
  transition: transform 0.5s var(--ease);
}
.wcard:hover .wcard__media img { transform: translateY(-6px); }
/* full-art covers: fill the card edge-to-edge, no float treatment */
.wcard__media img.full-art {
  left: 0; top: 0; translate: none;
  width: 100%; height: 100%; max-width: none;
  object-fit: cover;
  filter: none;
}
.wcard:hover .wcard__media img.full-art { transform: scale(1.015); }
.full-art--top { object-position: top; }
.wcard--wide .wcard__tag { left: auto; right: 14px; }  /* art's bottom-left holds its own headline */

/* auto-panning flow board (very tall artwork drifts through the card) */
.wcard__media--pan { container-type: size; }
.wcard__media img.pan-art {
  position: absolute; left: 0; top: 0; translate: none;
  width: 100%; height: auto; max-width: none;
  filter: none;
  animation: pan-y 55s linear infinite alternate;
}
@keyframes pan-y {
  0% { transform: translateY(0); }
  100% { transform: translateY(calc(-100% + 100cqh)); }
}
@supports not (height: 100cqh) {
  .wcard__media img.pan-art { animation: none; }
}
.obj-top { object-position: top; }
.wcard__tag {
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 8px;
  background: rgba(16, 17, 22, 0.78);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 20px -12px rgba(0,0,0,0.6);
}
.wcard__icon {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 10px;
  color: #fff; font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
}
.wcard__name { font-size: 14.5px; font-weight: 600; line-height: 1.25; color: var(--text); }
.wcard__name em { display: block; font-style: normal; font-weight: 500; font-size: 12.5px; color: var(--text-soft); }
.wcard__note {
  margin-top: 12px;
  font-size: 14.5px; line-height: 1.55; color: var(--text-soft);
  max-width: 72ch;
}
.wcard--wide + .wcard__note { margin-bottom: 6px; }
.tlink {
  font-size: 14px; font-weight: 500; color: var(--text);
  text-decoration: underline; text-underline-offset: 3px;
  cursor: pointer;
  margin-left: 6px;
}
.tlink:hover { color: var(--text-soft); }
@media (max-width: 780px) { .works__pair { grid-template-columns: 1fr; } }

/* ---------- how (vivid principle cards — unchanged, they're built for dark) ---------- */
.how { padding-block: clamp(48px, 8vw, 110px); }
.how__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.hcard {
  position: relative;
  border-radius: var(--r-md);
  padding: 22px 22px 26px;
  min-height: 230px;
  display: flex; flex-direction: column;
  background: radial-gradient(120% 130% at 20% 0%, var(--g1) 0%, var(--g2) 100%);
  color: #fff;
  box-shadow: var(--shadow-card);
  transition: transform 0.35s var(--ease);
}
.hcard:hover { transform: translateY(-5px); }
.hcard__num { font-size: 13px; font-weight: 600; opacity: 0.85; }
.hcard h3 { margin-top: auto; font-size: clamp(19px, 1.8vw, 22px); font-weight: 600; letter-spacing: -0.015em; padding-top: 42px; }
.hcard p { margin-top: 8px; font-size: 14.5px; line-height: 1.5; color: rgba(255,255,255,0.92); }
@media (max-width: 900px) { .how__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .how__grid { grid-template-columns: 1fr; } }

/* ---------- panels (background / kpis) ---------- */
.bg-panel, .kpis { padding-block: clamp(28px, 4vw, 56px); }
.panel {
  border-radius: var(--r-lg);
  padding: clamp(24px, 4vw, 56px);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  position: relative;
}
.panel--violet {
  background: radial-gradient(130% 150% at 15% 0%, #8B5CF6 0%, #6D28D9 55%, #3B1878 100%);
  color: #fff;
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.panel__card {
  border-radius: var(--r-md);
  overflow: hidden;
  transform: rotate(-4deg);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
  border: 4px solid rgba(255,255,255,0.85);
  max-width: 380px; margin-inline: auto;
  transition: transform 0.4s var(--ease);
}
.panel--violet:hover .panel__card { transform: rotate(-2deg) translateY(-4px); }
.panel__card img { width: 100%; height: auto; display: block; }
.panel__title { font-size: clamp(30px, 3.6vw, 46px); font-weight: 550; letter-spacing: -0.02em; line-height: 1.12; margin: 16px 0 22px; }
.panel__list li {
  padding: 13px 0;
  border-top: 1px solid rgba(255,255,255,0.22);
  font-size: 15.5px; font-weight: 500;
}
.panel__list li:last-child { border-bottom: 1px solid rgba(255,255,255,0.22); }
@media (max-width: 820px) { .panel--violet { grid-template-columns: 1fr; } .panel__card { max-width: 300px; } }

.panel--mesh {
  background:
    radial-gradient(80% 90% at 12% 10%, rgba(46, 190, 148, 0.28) 0%, transparent 60%),
    radial-gradient(90% 100% at 88% 18%, rgba(86, 148, 255, 0.24) 0%, transparent 62%),
    radial-gradient(100% 120% at 50% 100%, rgba(240, 150, 80, 0.22) 0%, transparent 65%),
    #14171B;
  border: 1px solid rgba(255,255,255,0.07);
}
.sec-head--panel { margin-bottom: clamp(24px, 3vw, 40px); }
.kpis__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kpi {
  border-radius: var(--r-md);
  padding: 22px 20px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 28px -18px rgba(0,0,0,0.5);
}
.kpi strong { display: block; font-size: clamp(38px, 4vw, 54px); font-weight: 600; letter-spacing: -0.03em; line-height: 1; color: var(--text); }
.kpi span { display: block; margin-top: 10px; font-size: 13.5px; font-weight: 500; line-height: 1.45; color: var(--text-soft); }
@media (max-width: 900px) { .kpis__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .kpis__grid { grid-template-columns: 1fr; } }

/* ---------- writing ---------- */
.writing { padding-block: clamp(48px, 8vw, 110px); }
.writing__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.acard {
  display: block;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow-card);
  transition: transform 0.35s var(--ease);
}
.acard:hover { transform: translateY(-5px); }
.acard__media { aspect-ratio: 16 / 10; overflow: hidden; }
.acard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.acard:hover .acard__media img { transform: scale(1.04); }
.acard__body { padding: 16px 18px 20px; }
.acard__body time { font-size: 13px; font-weight: 500; color: var(--text-faint); }
.acard__body h3 { margin-top: 6px; font-size: 16.5px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.35; color: var(--text); }
@media (max-width: 780px) { .writing__grid { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact { padding-block: clamp(56px, 9vw, 120px); }

/* ---------- footer ---------- */
.foot { padding-bottom: 28px; }
.foot__panel {
  border-radius: var(--r-lg);
  background: rgba(18, 20, 26, 0.6);
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-nav);
  padding: clamp(24px, 4vw, 44px);
}
.foot__top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.foot__mark { display: inline-flex; align-items: center; gap: 11px; font-size: 20px; font-weight: 600; letter-spacing: -0.015em; }
.foot__badge { width: 30px; height: 30px; border-radius: 9px; display: block; }
.foot__brand p { margin-top: 8px; font-size: 14.5px; color: var(--text-soft); max-width: 30ch; }
.foot__cols { display: flex; gap: clamp(32px, 6vw, 80px); }
.foot__cols ul li:first-child { font-size: 13px; font-weight: 600; color: var(--text-faint); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.06em; }
.foot__cols ul li { margin-bottom: 8px; font-size: 14.5px; font-weight: 500; }
.foot__cols a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot__rule { border: 0; border-top: 1px solid rgba(255,255,255,0.1); margin: 24px 0 16px; }
.foot__base { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: var(--text-soft); }
.foot__base a { font-weight: 500; color: var(--text); }
.foot__base a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- focus ---------- */
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 4px; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .js .rv, .js .hw, .js [data-words] .w { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero__chips img { animation: none !important; }
  .hero__status .dot { animation: none; }
  .statement__text .w { color: var(--text) !important; }
  .reel__frames img, .reel__frames video { transition: none; }
  .wcard, .hcard, .acard, .reel__frame { transition: none; }
  .wcard__media img.pan-art { animation: none; }
  .drift__track { animation: none; }
  .drift__aura i { animation: none; }
  .drift__viewport { overflow-x: auto; mask-image: none; -webkit-mask-image: none; }
}
