/* =========================================================================
   Portfolio — Global Stylesheet
   Dark B-end portfolio aesthetic.
   ========================================================================= */

/* ---------- Design tokens (from design system prompt) ---------- */
:root {
  --bg: 0 0% 4%;
  --surface: 0 0% 8%;
  --text: 0 0% 96%;
  --muted: 0 0% 53%;
  --stroke: 0 0% 12%;
  --accent: 0 0% 96%;

  --c-bg: hsl(var(--bg));
  --c-surface: hsl(var(--surface));
  --c-text: hsl(var(--text));
  --c-muted: hsl(var(--muted));
  --c-stroke: hsl(var(--stroke));
  --c-accent: hsl(var(--accent));

  --grad: linear-gradient(90deg, #89AACC 0%, #4E85BF 100%);
  --blue-pill: linear-gradient(90deg, #84A8CD 0%, #6797C8 48%, #5389C1 100%);
  --blue-pill-shadow: 0 14px 28px rgba(78,133,191,.22);

  /* Typography fallback: no external font CDNs allowed.
     Display uses a serif italic stack; body uses a clean sans stack. */
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  --font-display: "Instrument Serif", Georgia, "Times New Roman",
    "Songti SC", "STSong", serif;

  --maxw: 1200px;
  --nav-h: 72px;
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.has-flower-bg {
  background: #020202;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

::selection { background: #4E85BF; color: #fff; }

/* ---------- Utility ---------- */
.accent-gradient { background: var(--grad); }

.font-display { font-family: var(--font-display); font-style: italic; font-weight: 400; }
.text-muted { color: var(--c-muted); }
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.italic-em { font-family: var(--font-display); font-style: italic; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================================
   Loading screen
   ========================================================================= */
.loading-screen {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--c-bg);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  transition: opacity .5s ease;
}
.loading-screen.hide { opacity: 0; pointer-events: none; }
.loading-label {
  position: absolute; top: 32px; left: 32px;
  font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--c-muted);
}
.loading-words {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(40px, 8vw, 96px); color: rgba(255,255,255,.8);
  min-height: 1.35em;
  max-width: 90vw;
  line-height: 1.15;
  overflow: visible;
  text-align: center;
}
.loading-words span { display: inline-block; line-height: inherit; animation: word-cycle .9s ease; }
@keyframes word-cycle {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.loading-counter {
  position: absolute; bottom: 40px; right: 40px;
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(56px, 12vw, 140px);
  color: var(--c-text); font-variant-numeric: tabular-nums; line-height: 1;
}
.loading-progress {
  position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: rgba(255,255,255,.06);
}
.loading-progress > i {
  display: block; height: 100%; width: 100%;
  background: var(--grad); transform-origin: left; transform: scaleX(0);
  box-shadow: 0 0 8px rgba(137,170,204,.35);
}

/* =========================================================================
   Flower motion background
   ========================================================================= */
.flower-motion-bg {
  position: fixed;
  inset: -10vh 0 0;
  z-index: 0;
  height: 120vh;
  overflow: hidden;
  background: #050505;
  pointer-events: none;
}
.flower-motion-bg canvas,
.flower-motion-bg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.flower-motion-bg video {
  opacity: .74;
  transition: opacity .35s ease;
}
.flower-motion-bg__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 65% at 50% 42%, rgba(0,0,0,.05), rgba(0,0,0,.58) 74%, rgba(0,0,0,.86)),
    linear-gradient(to bottom, rgba(0,0,0,.08), rgba(0,0,0,.78));
}
#flower-particles {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

body.has-flower-bg > .hero,
body.has-flower-bg > .section,
body.has-flower-bg > .footer {
  position: relative;
  z-index: 2;
}

/* =========================================================================
   Navbar (floating center pill)
   ========================================================================= */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px max(20px, calc((100vw - var(--maxw)) / 2 + 24px)) 0;
  pointer-events: none;
}
.navbar__pill {
  position: relative;
  pointer-events: auto;
  display: inline-flex; align-items: center; gap: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(18,18,19,.72);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-radius: 999px;
  padding: 3px;
  transition: box-shadow .3s ease, background .3s ease;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    0 12px 34px rgba(0,0,0,.28);
}
.navbar.scrolled .navbar__pill {
  background: rgba(18,18,19,.82);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    0 10px 28px rgba(0,0,0,.36);
}

.logo {
  pointer-events: auto;
  position: relative; width: 42px; height: 42px; border-radius: 999px;
  display: grid; place-items: center; flex: none;
  border: 1px solid rgba(255,255,255,.16);
  background:
    linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,.05)),
    rgba(20,20,21,.54);
  backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%);
  padding: 1px;
  transition: transform .3s ease, border-color .3s ease;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 12px 34px rgba(0,0,0,.25);
}
.logo:hover { transform: translateY(-1px); border-color: rgba(255,255,255,.28); }
.logo > span {
  width: 100%; height: 100%; border-radius: 999px;
  background: linear-gradient(135deg, rgba(78,133,191,.26), rgba(137,170,204,.08));
  display: grid; place-items: center;
  font-family: var(--font-display); font-style: italic; font-size: 13px;
}
.nav-divider { width: 1px; height: 22px; background: linear-gradient(to bottom, transparent, rgba(255,255,255,.20), transparent); margin: 0 4px; }
.navbar__pill > .nav-divider:first-child { display: none; }

.nav-links { display: inline-flex; align-items: center; gap: 4px; }
.nav-link,
.lang-toggle {
  position: relative;
  font-size: 13px; color: rgba(255,255,255,.62);
  padding: 9px 16px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0);
  background: rgba(255,255,255,0);
  line-height: 1.2;
  transition: color .25s ease, background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.lang-toggle {
  color: rgba(255,255,255,.86);
  background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.025));
  border-color: rgba(255,255,255,.18);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.12),
    0 6px 16px rgba(0,0,0,.18);
}
.nav-link:hover,
.lang-toggle:hover {
  color: var(--c-text);
  background: linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.04));
  border-color: rgba(255,255,255,.24);
}
.nav-link.active {
  color: var(--c-text);
  padding: 10px 17px;
  background: var(--blue-pill);
  border: 0;
  transform: translateZ(0);
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(78,133,191,.20);
}

.btn-hi {
  position: relative; font-size: 13px; color: var(--c-text);
  padding: 8px 16px; border-radius: 999px;
  background: var(--c-surface);
  display: inline-flex; align-items: center; gap: 6px;
  transition: color .25s ease;
}
.btn-hi::before {
  content: ""; position: absolute; inset: -2px; border-radius: 999px;
  background: var(--grad); opacity: 0; transition: opacity .25s ease; z-index: -1;
}
.btn-hi:hover::before { opacity: 1; }

/* Mobile menu toggle */
.nav-toggle {
  display: none; pointer-events: auto;
  width: 40px; height: 40px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(20,20,21,.72); backdrop-filter: blur(12px);
  color: var(--c-text); font-size: 18px; line-height: 1;
}
.nav-mobile {
  display: none;
  position: fixed; top: 70px; left: 16px; right: 16px; z-index: 49;
  background: linear-gradient(135deg, rgba(255,255,255,.12), rgba(20,20,21,.82));
  backdrop-filter: blur(22px) saturate(150%); -webkit-backdrop-filter: blur(22px) saturate(150%);
  border: 1px solid rgba(255,255,255,.16); border-radius: 20px;
  padding: 12px; flex-direction: column; gap: 4px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 18px 50px rgba(0,0,0,.36);
}
.nav-mobile.open { display: flex; }
.nav-mobile a { padding: 12px 16px; border-radius: 12px; color: var(--c-muted); }
.nav-mobile a:hover, .nav-mobile a.active { color: var(--c-text); background: rgba(255,255,255,.10); }
.nav-mobile .lang-toggle {
  width: 100%;
  margin-top: 6px;
  padding: 12px 16px;
  text-align: left;
}

/* =========================================================================
   Buttons (gradient ring on hover)
   ========================================================================= */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  justify-content: center;
  font-size: 14px; padding: 14px 28px; border-radius: 999px;
  border: 2px solid transparent; transition: transform .25s ease, color .25s ease, background .25s ease;
  isolation: isolate;
}
.btn:hover { transform: translateY(-1px); }
.btn::before {
  content: ""; position: absolute; inset: -2px; border-radius: 999px;
  background: var(--grad); opacity: 0; transition: opacity .25s ease; z-index: -1;
}
.btn:hover::before { opacity: 1; }
.btn--solid {
  min-width: 174px;
  background: var(--blue-pill);
  color: #fff;
  border: 0;
  clip-path: inset(0 round 999px);
  transform: translateZ(0);
  box-shadow: var(--blue-pill-shadow);
  overflow: hidden;
}
.btn--solid::before { display: none; }
.btn--solid:hover {
  background: var(--c-text);
  color: var(--c-bg);
  border-color: rgba(255,255,255,.72);
  box-shadow: 0 16px 30px rgba(255,255,255,.12);
}
.btn--outline { background: var(--c-bg); color: var(--c-text); border-color: var(--c-stroke); }
.btn--outline:hover { border-color: transparent; }

/* =========================================================================
   Hero
   ========================================================================= */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; padding: var(--nav-h) 24px 80px;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(78,133,191,.18), transparent 60%),
    radial-gradient(80% 60% at 80% 110%, rgba(137,170,204,.10), transparent 60%);
}
.hero__grid {
  position: absolute; inset: 0; z-index: 0; opacity: .35;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 40%, #000 30%, transparent 80%);
          mask-image: radial-gradient(120% 90% at 50% 40%, #000 30%, transparent 80%);
}
.hero__content { position: relative; z-index: 10; max-width: 880px; }
.hero__eyebrow { margin-bottom: 28px; }
.hero__name {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(56px, 12vw, 140px); line-height: .9; letter-spacing: -0.02em;
  margin: 0 0 22px;
}
.hero__role { font-size: clamp(16px, 2.4vw, 22px); color: var(--c-muted); margin-bottom: 28px; }
.hero__role b { color: var(--c-text); font-family: var(--font-display); font-style: italic; font-weight: 400; }
.hero__desc { font-size: clamp(14px, 1.6vw, 16px); color: var(--c-muted); max-width: 460px; margin: 0 auto 40px; }
.hero__cta { display: inline-flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

.scroll-indicator {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 10; display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-indicator span { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--c-muted); }
.scroll-line { position: relative; width: 1px; height: 40px; background: var(--c-stroke); overflow: hidden; }
.scroll-line::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 40%;
  background: var(--c-text); animation: scroll-down 1.5s ease-in-out infinite;
}
@keyframes scroll-down { 0% { transform: translateY(-100%); } 100% { transform: translateY(250%); } }

.hero__role b.role-in { display: inline-block; animation: role-fade-in .4s ease-out; }
@keyframes role-fade-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* Entrance (JS toggles .in) */
.name-reveal, .blur-in { opacity: 0; transform: translateY(40px); }
.name-reveal.in { opacity: 1; transform: none; transition: opacity 1.1s ease, transform 1.1s ease; }
.blur-in.in { opacity: 1; transform: none; filter: blur(0); transition: opacity 1s ease, transform 1s ease, filter 1s ease; }
.blur-in { filter: blur(10px); }

/* =========================================================================
   Section shells
   ========================================================================= */
.section { padding: 80px 0; }
.section__head { margin-bottom: 48px; }
.section__head .eyebrow-row { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.section__head .eyebrow-row i { width: 32px; height: 1px; background: var(--c-stroke); display: inline-block; }
.section__head h2 {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: clamp(32px, 5vw, 56px); line-height: 1.05; margin: 0 0 14px;
}
.section__head p { color: var(--c-muted); max-width: 520px; margin: 0; }

/* =========================================================================
   Selected works — masonry wall
   ========================================================================= */
.bento {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(300px, .84fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
}
.work-column {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 34px);
}
.work-column--narrow {
  padding-top: clamp(34px, 7vw, 92px);
}
.work-card {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: clamp(14px, 1.8vw, 22px);
  border: 1px solid rgba(255,255,255,.11);
  background: #111;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
  box-shadow: 0 14px 36px rgba(0,0,0,.18);
}
.work-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255,255,255,.24);
  box-shadow: 0 22px 54px rgba(0,0,0,.30);
}
.work-card.span-7,
.work-card.span-5,
.work-card.span-12 { grid-column: auto; }
.work-column--wide .work-card:nth-child(2) {
  width: 82%;
  align-self: flex-end;
}
.work-column--wide .work-card:nth-child(3) {
  width: 92%;
}
.work-column--narrow .work-card:nth-child(2) {
  width: 88%;
  align-self: flex-end;
}
.work-card .thumb {
  position: relative; width: 100%; overflow: visible;
}
.work-card.tall .thumb { aspect-ratio: auto; }
.work-card .thumb img { width: 100%; height: auto; object-fit: contain; transition: filter .35s ease; }
.work-card:hover .thumb img { filter: brightness(1.04); }
.work-card .halftone {
  display: none;
}
.work-card .meta {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 24px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  background: linear-gradient(to top, rgba(0,0,0,.78), rgba(0,0,0,.28) 56%, transparent);
}
.work-card .meta h3 { font-family: var(--font-display); font-style: italic; font-size: clamp(22px, 3vw, 34px); margin: 0; line-height: 1; }
.work-card .meta .tag { font-size: 12px; color: rgba(255,255,255,.72); white-space: nowrap; }
.work-card .hover-label {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(6,6,6,.24); backdrop-filter: blur(3px);
  opacity: 0; transition: opacity .35s ease;
}
.work-card:hover .hover-label { opacity: 1; }
.hover-label .pill {
  position: relative; padding: 12px 22px; border-radius: 999px;
  background: var(--blue-pill); color: #fff; font-size: 13px; font-weight: 600;
  box-shadow: 0 10px 22px rgba(78,133,191,.22);
  overflow: hidden;
}
.hover-label .pill .italic-em { color: #fff; }

/* =========================================================================
   Explorations gallery
   ========================================================================= */
.explore-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.explore-col { display: flex; flex-direction: column; gap: 28px; }
.explore-col.shift { margin-top: 56px; }
.explore-item {
  border-radius: 18px; overflow: hidden; border: 1px solid var(--c-stroke);
  background: var(--c-surface);
}
.explore-item .crop { position: relative; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; }
.explore-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.explore-item:hover img { transform: scale(1.03); }

/* =========================================================================
   Stats
   ========================================================================= */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 20px;
  padding: 36px 28px;
  background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(18,18,19,.68));
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    0 14px 36px rgba(0,0,0,.26);
}
.stat .num {
  font-family: var(--font-body);
  font-style: normal;
  font-size: clamp(18px, 2vw, 30px);
  line-height: 1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}
.stat .contact-value {
  font-family: var(--font-body);
  font-style: normal;
  font-size: clamp(18px, 2vw, 30px);
  line-height: 1;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}
.stat .lab { color: var(--c-muted); font-size: 14px; margin-top: 10px; }

/* =========================================================================
   Project detail (long image)
   ========================================================================= */
.project-hero { padding: calc(var(--nav-h) + 40px) 0 32px; }
.project-hero .back { font-size: 13px; color: var(--c-muted); display: inline-flex; gap: 8px; margin-bottom: 24px; }
.project-hero .back:hover { color: var(--c-text); }
.project-hero .eyebrow { margin-bottom: 14px; }
.project-hero h1 { font-family: var(--font-display); font-style: italic; font-size: clamp(36px, 6vw, 72px); margin: 0 0 16px; line-height: 1; }
.project-hero p { color: var(--c-muted); max-width: 620px; margin: 0 0 8px; }

.long-image-section { padding: 8px 16px 80px; }
.long-image {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}
.long-image img {
  width: 100%;
  height: auto;          /* keep aspect ratio — never crop, never distort */
  display: block;
  border-radius: 14px;
  border: 1px solid var(--c-stroke);
}
.image-stack {
  overflow: hidden;
  border: 1px solid var(--c-stroke);
  border-radius: 14px;
  background: var(--c-surface);
}
.image-stack img {
  border: 0;
  border-radius: 0;
}

.project-nav { display: flex; justify-content: space-between; gap: 16px; max-width: 1100px; margin: 0 auto; padding: 0 16px 80px; }
.project-nav a {
  flex: 1; border: 1px solid var(--c-stroke); border-radius: 16px; padding: 20px;
  background: var(--c-surface); transition: border-color .25s ease;
}
.project-nav a:hover { border-color: #4E85BF; }
.project-nav .dir { font-size: 12px; color: var(--c-muted); }
.project-nav .ttl { font-family: var(--font-display); font-style: italic; font-size: 20px; margin-top: 6px; }

/* =========================================================================
   About
   ========================================================================= */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.about-text h2 { font-family: var(--font-display); font-style: italic; font-size: clamp(28px,4vw,44px); margin: 0 0 18px; }
.about-text p { color: var(--c-muted); margin: 0 0 16px; }
.about-side { border: 1px solid var(--c-stroke); border-radius: 20px; padding: 28px; background: var(--c-surface); }
.about-side h4 { margin: 0 0 14px; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--c-muted); }
.about-side ul { list-style: none; margin: 0; padding: 0; }
.about-side li { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--c-stroke); font-size: 14px; }
.about-side li:last-child { border-bottom: 0; }
.about-side li span:first-child { color: var(--c-muted); }
.resume-stack {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--c-stroke);
  border-radius: 14px;
  background: var(--c-surface);
}
.resume-stack img {
  width: 100%;
  height: auto;
  display: block;
}

/* =========================================================================
   Footer + marquee
   ========================================================================= */
.footer { position: relative; padding: 90px 0 40px; overflow: hidden; border-top: 1px solid var(--c-stroke); }
.marquee { overflow: hidden; white-space: nowrap; user-select: none; }
.marquee__track { display: inline-flex; will-change: transform; }
.marquee__track span {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(48px, 10vw, 120px); color: rgba(255,255,255,.06);
  padding: 0 24px;
}
.footer__bar { max-width: var(--maxw); margin: 32px auto 0; padding: 18px 24px 0; border-top: 1px solid var(--c-stroke); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px 18px; color: var(--c-muted); font-size: 13px; }
.footer__icp { color: rgba(255,255,255,.42); font-size: 12px; line-height: 1.6; transition: color .25s ease; }
.footer__icp:hover { color: rgba(255,255,255,.72); }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 860px) {
  .nav-links, .btn-hi, .nav-divider { display: none; }
  .nav-toggle { display: grid; place-items: center; }
  .navbar { justify-content: space-between; align-items: center; padding: 12px 16px 0; }
  .navbar__pill { padding: 6px; }
  .bento { display: grid; grid-template-columns: 1fr; gap: 18px; }
  .work-column { gap: 18px; }
  .work-column--narrow { padding-top: 0; }
  .work-column--wide .work-card:nth-child(2),
  .work-column--wide .work-card:nth-child(3),
  .work-column--narrow .work-card:nth-child(2) {
    width: 100%;
    align-self: stretch;
  }
  .work-card { margin-bottom: 0; border-radius: 14px; }
  .work-card .meta { padding: 18px; }
  .explore-grid { grid-template-columns: 1fr; gap: 18px; }
  .explore-col.shift { margin-top: 0; }
  .stats { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .section { padding: 56px 0; }
  .project-nav { flex-direction: column; }
}
