/* ═══════════════════════════════════════
   SHANA LIU PORTFOLIO — Design System
   1440px base / 80px margins
═══════════════════════════════════════ */
:root {
  --ink:    #0D0C0B;
  --paper:  #F5F1EC;
  --cream:  #EDE8E0;
  --red:    #B8271E;
  --muted:  #6E6459;
  --border: rgba(13,12,11,0.10);
  --border-strong: rgba(13,12,11,0.18);
  --pad-x: 80px;
  --site-max: 1440px;
  --f-h1:      clamp(64px, 9.375vw, 135px);
  --f-h2:      clamp(32px, 3.75vw, 54px);
  --f-nav:     clamp(14px, 1.1vw, 16px);
  --f-body:    clamp(16px, 1.25vw, 19px);
  --f-eyebrow: clamp(10px, 0.78vw, 11px);
  --f-label:   10px;
  --f-card:    clamp(18px, 1.4vw, 20px);
  --f-caption: 10px;
  --pad-section: clamp(64px, 5.56vw, 80px);
  --nav-h: 80px;
  --ease-spring: cubic-bezier(.16,1,.3,1);
}

* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }

/* ── RICE PAPER TEXTURE ── */
body {
  background-color: #F5F1EC;
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-size: var(--f-body);
  font-weight: 400;
  overflow-x: hidden;
  position: relative;
}
body::before {
  content:"";
  position:fixed; inset:0;
  background:url('https://www.transparenttextures.com/patterns/p6.png');
  opacity:0.22; pointer-events:none; z-index:9998;
}
body::after {
  content:"";
  position:fixed; inset:0;
  background:url('https://www.transparenttextures.com/patterns/rice-paper.png');
  opacity:0.18; pointer-events:none; z-index:9998;
}

/* ── RED THREAD OF FATE ── */
#red-thread {
  position:fixed; left:28px; top:0;
  width:2px; height:100vh; z-index:9999; pointer-events:none;
}
#thread-track {
  width:1px; height:100%;
  background:rgba(184,39,30,0.10);
  margin:0 auto; position:relative;
}
#thread-fill {
  position:absolute; top:0; left:0; width:100%; height:0%;
  background:linear-gradient(to bottom,
    rgba(184,39,30,0.0)  0%,
    rgba(184,39,30,0.55) 30%,
    rgba(184,39,30,0.85) 70%,
    rgba(184,39,30,0.55) 100%
  );
  filter:url(#thread-waver);
  transition:height 0.12s linear;
}
#thread-fill::after {
  content:'';
  position:absolute; bottom:-4px; left:50%;
  transform:translateX(-50%);
  width:5px; height:5px; border-radius:50%;
  background:var(--red);
  box-shadow:0 0 7px rgba(184,39,30,0.6);
}

/* ── VERTICAL CHINESE ── */
#thread-chars {
  position:fixed; left:12px; top:50%;
  transform:translateY(-50%);
  writing-mode:vertical-rl;
  font-family:'Noto Serif SC', serif;
  font-size:9px; font-weight:300; letter-spacing:0.4em;
  color:rgba(184,39,30,0.22);
  pointer-events:none; z-index:9999; user-select:none;
}
.vertical-zh {
  position:absolute; right:-50px; top:50%;
  transform:translateY(-50%);
  writing-mode:vertical-rl;
  font-family:'Noto Serif SC', serif;
  font-size:9px; font-weight:300; letter-spacing:0.45em;
  color:rgba(13,12,11,0.13);
  pointer-events:none; user-select:none; white-space:nowrap;
}
.vertical-zh-inv { color:rgba(245,241,236,0.16); }

/* ── LAYOUT ── */
.site-wrap { max-width:var(--site-max); margin:0 auto; position:relative; z-index:1; }

/* ════════════════════════════════
   NAV
════════════════════════════════ */
nav {
  position:fixed; top:0; left:50%; transform:translateX(-50%);
  width:100%; max-width:var(--site-max);
  height:var(--nav-h); z-index:1000;
  display:flex; justify-content:space-between; align-items:center;
  padding:0 var(--pad-x);
  background:rgba(245,241,236,0.92);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  border-bottom:1px solid var(--border);
  transition:background .3s, box-shadow .3s;
}
nav.scrolled {
  background:rgba(245,241,236,0.97);
  box-shadow:0 1px 20px rgba(13,12,11,0.06);
}

.nav-logo {
  display:flex; align-items:center; gap:14px; text-decoration:none;
  flex-shrink:0;
}
.nav-stamp {
  width:40px; height:40px; flex-shrink:0; position:relative;
}
.nav-stamp img {
  width:100%; height:100%;
  object-fit:contain;
  transition:filter 0.35s;
}
.nav-stamp:hover img { filter:url(#ink-bleed-soft); }
.nav-stamp-ring {
  position:absolute; inset:-20px; border-radius:50%;
  border:0.8px solid rgba(184,39,30,0.11);
  animation:slowSpin 44s linear infinite;
  pointer-events:none;
}
.nav-stamp-ring2 {
  position:absolute; inset:-38px; border-radius:50%;
  border:0.8px dashed rgba(184,39,30,0.06);
  pointer-events:none;
}
.nav-name {
  font-family:'Cormorant SC', serif;
  font-size:clamp(11px,0.9vw,13px); font-weight:400;
  letter-spacing:0.25em; color:var(--ink);
}

.nav-links {
  display:flex; gap:clamp(24px,2.5vw,36px); align-items:center;
}
.nav-links a {
  font-size:var(--f-nav); letter-spacing:0.1em;
  color:var(--muted); text-decoration:none;
  transition:color .2s; font-weight:300;
  position:relative; padding-bottom:3px;
}
.nav-links a::after {
  content:'';
  position:absolute; bottom:0; left:0;
  width:0; height:1.5px;
  background:var(--ink);
  transition:width .25s var(--ease-spring);
}
.nav-links a:hover { color:var(--ink); }
.nav-links a:hover::after,
.nav-links a.active::after { width:100%; }
.nav-links a.active { color:var(--ink); }

/* Hamburger */
.nav-hamburger {
  display:none; flex-direction:column; gap:5px;
  cursor:pointer; padding:4px; background:none; border:none;
  z-index:1001;
}
.nav-hamburger span {
  display:block; width:22px; height:1.5px;
  background:var(--ink); transition:all .3s;
}
.nav-hamburger.open span:nth-child(1) { transform:rotate(45deg) translate(4.5px, 4.5px); }
.nav-hamburger.open span:nth-child(2) { opacity:0; }
.nav-hamburger.open span:nth-child(3) { transform:rotate(-45deg) translate(4.5px, -4.5px); }

/* Mobile nav drawer */
.nav-mobile {
  display:none; position:fixed; top:var(--nav-h); left:0; right:0;
  background:rgba(245,241,236,0.97); backdrop-filter:blur(16px);
  padding:32px var(--pad-x) 40px;
  border-bottom:1px solid var(--border);
  z-index:999;
  flex-direction:column; gap:24px;
  transform:translateY(-10px); opacity:0;
  transition:opacity .25s, transform .25s var(--ease-spring);
}
.nav-mobile.visible { transform:translateY(0); opacity:1; }
.nav-mobile a {
  font-size:24px; font-family:'Cormorant Garamond',serif;
  font-style:italic; color:var(--ink); text-decoration:none;
  letter-spacing:0.02em;
}
.nav-mobile a:hover { color:var(--red); }

/* ════════════════════════════════
   BUTTONS
════════════════════════════════ */
.btn-primary {
  font-size:clamp(10px,0.76vw,11px); letter-spacing:0.24em;
  text-transform:uppercase; color:var(--paper);
  background:var(--ink); border:1px solid var(--ink);
  padding:16px 36px; text-decoration:none;
  transition:all .28s, filter .28s;
  font-family:'DM Sans',sans-serif; font-weight:300;
  display:inline-block; white-space:nowrap; cursor:pointer;
}
.btn-primary:hover {
  background:transparent; color:var(--ink);
  filter:url(#ink-bleed-soft);
}
.btn-ghost {
  font-size:clamp(10px,0.76vw,11px); letter-spacing:0.24em;
  text-transform:uppercase; color:var(--muted);
  border-bottom:1px solid var(--border-strong);
  padding-bottom:3px; text-decoration:none;
  transition:color .2s, filter .28s; cursor:pointer;
  background:none; border-top:none; border-left:none; border-right:none;
  font-family:'DM Sans',sans-serif;
}
.btn-ghost:hover { color:var(--ink); filter:url(#ink-bleed-soft); }

/* ════════════════════════════════
   HERO
════════════════════════════════ */
.hero {
  min-height:100vh; padding-top:var(--nav-h);
  padding-left:var(--pad-x); padding-right:var(--pad-x);
  display:grid; grid-template-columns:1fr 1fr;
  align-items:center; position:relative; overflow:hidden;
}
.hero-bg-orchid-1 {
  position:absolute; right:0; top:8%;
  width:55%; height:86%;
  object-fit:cover; object-position:top left;
  opacity:0.55; pointer-events:none; z-index:0;
}
.hero-bg-orchid-2 {
  position:absolute; right:2%; bottom:-2%; width:26%;
  object-fit:contain; opacity:0.30;
  pointer-events:none; z-index:0;
}
.hero-left { position:relative; z-index:2; padding:80px 0 64px; }

/* Red thread connector */
.hero-eyebrow-wrap {
  display:flex; align-items:center; gap:10px;
  margin-bottom:28px; flex-wrap:wrap;
}
.hero-eyebrow-text {
  font-size:var(--f-eyebrow); letter-spacing:0.38em;
  text-transform:uppercase; color:var(--red); opacity:.85;
  font-family:'DM Sans',sans-serif; font-weight:300;
}
.hero-thread-connector { display:flex; align-items:center; gap:4px; }
.thread-dot {
  width:4px; height:4px; border-radius:50%;
  background:var(--red); opacity:0.5;
}
.thread-line {
  width:32px; height:1.5px;
  background:linear-gradient(to right, rgba(184,39,30,0.45), rgba(184,39,30,0.15));
  filter:url(#thread-waver);
}

.hero-title {
  font-family:'Cormorant Garamond',serif;
  font-size:var(--f-h1); font-weight:300;
  line-height:0.872; color:var(--ink); letter-spacing:-0.025em;
  transition:filter 0.4s;
}
.hero-title:hover { filter:url(#ink-bleed-soft); }
.hero-title em { display:block; font-style:italic; color:var(--muted); }

.hero-rule { display:flex; align-items:center; gap:18px; margin:25px 0; }
.hero-rule-line { flex:0 0 50px; height:1px; background:var(--border-strong); }
.hero-rule-dot { width:4px; height:4px; border-radius:50%; background:var(--red); opacity:.5; }

.hero-desc {
  font-size:var(--f-body); line-height:1.9;
  color:var(--muted); max-width:440px; letter-spacing:0.022em;
}
.hero-ctas { display:flex; gap:24px; margin-top:36px; align-items:center; flex-wrap:wrap; }

.hero-right {
  position:relative; z-index:2;
  display:flex; justify-content:flex-end; align-items:center;
  padding:80px 0 64px;
}
.hero-stamp-feature {
  width:clamp(120px,13.9vw,200px);
  height:clamp(120px,13.9vw,200px);
  position:relative;
}
.hero-stamp-feature > img {
  width:100%; height:100%; object-fit:contain;
  animation:slowSpin 32s linear infinite; transition:filter 0.4s;
}
.hero-stamp-feature:hover > img {
  filter:url(#ink-bleed);
  animation-play-state:paused;
}
.hero-stamp-ring {
  position:absolute; inset:-22px; border-radius:50%;
  border:0.8px solid rgba(184,39,30,0.11);
  animation:slowSpin 44s linear infinite reverse;
}
.hero-stamp-ring2 {
  position:absolute; inset:-44px; border-radius:50%;
  border:0.8px dashed rgba(184,39,30,0.06);
}

.hero-scroll {
  position:absolute; bottom:36px; left:var(--pad-x);
  display:flex; align-items:center; gap:13px;
  font-size:var(--f-label); letter-spacing:0.28em;
  text-transform:uppercase; color:var(--muted);
}
.hero-scroll-line {
  width:54px; height:1px; background:var(--muted); opacity:.4;
  overflow:hidden; position:relative;
}
.hero-scroll-line::after {
  content:'';
  position:absolute; top:0; left:-100%; width:100%; height:100%;
  background:var(--ink); animation:scanLine 2s ease-in-out infinite;
}

/* ════════════════════════════════
   ORNAMENT
════════════════════════════════ */
.orn-rule {
  display:flex; align-items:center; gap:18px; padding:0 var(--pad-x);
}
.orn-line { flex:1; height:1px; background:var(--border); }
.orn-mark { font-size:10px; color:var(--red); opacity:.3; letter-spacing:.3em; }

/* ════════════════════════════════
   SECTION COMMON
════════════════════════════════ */
section { padding:var(--pad-section) var(--pad-x); position:relative; overflow:visible; }

.section-header {
  display:flex; justify-content:space-between; align-items:flex-end;
  margin-bottom:40px;
  border-bottom:1px solid var(--border); padding-bottom:20px;
  position:relative;
}
.section-eyebrow {
  font-size:var(--f-eyebrow); letter-spacing:0.32em;
  text-transform:uppercase; color:var(--red); margin-bottom:8px; opacity:.82;
}
.section-h2 {
  font-family:'Cormorant Garamond',serif;
  font-size:var(--f-h2); font-weight:300; line-height:0.95; letter-spacing:-0.015em;
}
.section-h2 em { font-style:italic; color:var(--muted); }
.section-link {
  font-size:var(--f-label); letter-spacing:.2em; text-transform:uppercase;
  color:var(--muted); text-decoration:none;
  border-bottom:1px solid var(--border-strong); padding-bottom:3px;
  transition:color .2s, filter .25s; white-space:nowrap; align-self:flex-end;
}
.section-link:hover { color:var(--ink); filter:url(#ink-bleed-soft); }

/* ════════════════════════════════
   FILTER BUTTONS
════════════════════════════════ */
.filter-row { display:flex; gap:3px; margin-bottom:40px; flex-wrap:wrap; }
.filter-btn {
  font-size:var(--f-label); letter-spacing:.18em; text-transform:uppercase;
  color:var(--muted); border:1px solid var(--border); padding:12px 22px;
  cursor:pointer; background:transparent;
  transition:all .2s, filter .25s;
  font-family:'DM Sans',sans-serif; font-weight:300;
}
.filter-btn:hover { color:var(--ink); border-color:var(--border-strong); filter:url(#ink-bleed-soft); }
.filter-btn.active { color:var(--paper); background:var(--ink); border-color:var(--ink); }

/* ════════════════════════════════
   WORK GRID — 3-column symmetric
════════════════════════════════ */
.work-grid {
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap:2px;
}
.work-card-featured { grid-column: auto; }

.work-card {
  background:var(--cream); border:1px solid var(--border);
  overflow:hidden; cursor:pointer; text-decoration:none; display:block;
  transition:filter 0.35s, transform 0.35s, box-shadow 0.35s;
}
.work-card:hover {
  filter:url(#ink-bleed-soft);
  transform:translateY(-2px);
  box-shadow:0 8px 32px rgba(13,12,11,0.08);
}

/* WIP card — no hover effects */
.work-card--wip { cursor:default; }
.work-card--wip:hover { filter:none !important; transform:none !important; box-shadow:none !important; }

.work-img-area {
  width:100%; overflow:hidden; position:relative;
  background:var(--cream); aspect-ratio:16/9;
}

.work-img-area img {
  width:100%; height:100%; object-fit:cover; object-position:top center;
  transition:transform .6s var(--ease-spring); display:block;
}
.work-card:hover .work-img-area img { transform:scale(1.04); }

/* WIP placeholder */
.work-img-area--wip {
  background: linear-gradient(135deg, #F0EBE3 0%, #E8E1D8 100%);
  display:flex; align-items:center; justify-content:center;
}
.wip-inner {
  display:flex; flex-direction:column; align-items:center; gap:12px;
  position:relative;
}
.wip-pulse {
  position:absolute; width:48px; height:48px; border-radius:50%;
  background:rgba(184,39,30,0.08);
  animation:wipPulse 2.4s ease-in-out infinite;
}
@keyframes wipPulse {
  0%,100% { transform:scale(1); opacity:0.6; }
  50%      { transform:scale(1.8); opacity:0; }
}
.wip-dot {
  width:8px; height:8px; border-radius:50%;
  background:var(--red); opacity:0.6;
  position:relative; z-index:1;
}
.wip-label {
  font-size:9px; letter-spacing:.28em; text-transform:uppercase;
  color:var(--muted); position:relative; z-index:1;
}


.work-img-placeholder {
  width:100%; height:100%;
  background:linear-gradient(152deg, #0D0C0B 0%, #1A1917 100%);
  display:flex; align-items:center; justify-content:center;
  flex-direction:column; gap:12px; padding:40px;
}
.work-img-placeholder .ph-label {
  font-family:'Cormorant Garamond',serif;
  font-size:clamp(18px,1.8vw,26px); font-style:italic; font-weight:300;
  color:rgba(245,241,236,0.18); letter-spacing:0.04em; text-align:center;
}

.work-card-body { padding:20px 24px 24px; }
.work-card-meta {
  display:flex; align-items:center; justify-content:space-between; margin-bottom:8px;
}
.work-card-cat {
  font-size:var(--f-caption); letter-spacing:.24em;
  text-transform:uppercase; color:var(--red); opacity:.82;
}
.work-card-year { font-size:var(--f-caption); letter-spacing:.1em; color:var(--muted); }
.work-card-name {
  font-family:'Cormorant Garamond',serif;
  font-size:var(--f-card); font-style:italic;
  font-weight:300; color:var(--ink); line-height:1.2; margin-bottom:8px;
}
.work-card-desc { font-size:clamp(14px,1vw,15px); color:var(--muted); line-height:1.7; letter-spacing:.02em; }

.work-card-link {
  display:inline-flex; align-items:center; gap:6px; margin-top:12px;
  font-size:9px; letter-spacing:.2em; text-transform:uppercase;
  color:var(--ink); border-bottom:1px solid var(--border-strong);
  padding-bottom:2px; text-decoration:none; transition:color .2s, gap .2s;
}
.work-card-link:hover { color:var(--red); gap:10px; }
.work-card-link::after { content:'→'; transition:transform .2s; }

.role-tag {
  display:inline-block; margin-bottom:10px;
  font-size:8px; letter-spacing:.2em; text-transform:uppercase;
  color:var(--paper); background:var(--ink); padding:4px 10px;
}
.role-tag-outline {
  color:var(--muted); background:transparent;
  border:1px solid var(--border);
}

/* ════════════════════════════════
   SHNAILS
════════════════════════════════ */
.shnails-section {
  background:var(--ink);
  padding:var(--pad-section) var(--pad-x);
  padding-bottom:calc(var(--pad-section)*1.3);
  position:relative; overflow:hidden; isolation:isolate;
}
.shn-orch-1 { position:absolute; left:-54px; bottom:-36px; width:clamp(260px,36vw,520px); opacity:0.18; pointer-events:none; z-index:0; }
.shn-orch-2 { position:absolute; right:-20px; top:-18px; width:clamp(180px,28vw,400px); opacity:0.22; pointer-events:none; z-index:1; }
.shn-orch-3 { position:absolute; right:6%; bottom:18%; width:clamp(140px,18vw,260px); opacity:0.14; pointer-events:none; z-index:1; }

.shn-brand-line { display:flex; align-items:center; gap:16px; margin-bottom:40px; position:relative; z-index:2; }
.shn-stamp { width:44px; height:44px; overflow:hidden; flex-shrink:0; }
.shn-stamp img {
  width:100%; height:100%; object-fit:contain;
  opacity:.75;
}
.shn-brand-text { font-family:'Cormorant SC',serif; font-size:11px; letter-spacing:.3em; color:rgba(245,241,236,.35); }

.shnails-section .section-header { border-bottom-color:rgba(245,241,236,.1); position:relative; z-index:2; }
.shnails-section .section-eyebrow { color:rgba(184,39,30,.75); }
.shnails-section .section-h2 { color:var(--paper); }
.shnails-section .section-h2 em { color:rgba(245,241,236,.32); }
.shnails-section .section-link { color:rgba(245,241,236,.4); border-bottom-color:rgba(245,241,236,.18); }

.shn-desc {
  font-size:clamp(14px,1.11vw,16px); line-height:1.94;
  color:rgba(245,241,236,0.75); max-width:580px; margin-bottom:48px;
  position:relative; z-index:2; letter-spacing:.022em;
}

/* Shnails grid */
.shnails-grid {
  display:grid; grid-template-columns:repeat(4,1fr);
  gap:2px; position:relative; z-index:2;
}
.shn-card {
  overflow:hidden; cursor:pointer; display:block; text-decoration:none;
  transition:filter 0.35s;
}
.shn-card:hover { filter:url(#ink-bleed-soft); }

.shn-img-area {
  width:100%; aspect-ratio:2/3; overflow:hidden; position:relative;
  background:rgba(245,241,236,.04);
  border:1px solid rgba(245,241,236,.07);
}
.shn-img-area img {
  width:100%; height:100%;
  object-fit:cover; object-position:top center; display:block;
  transition:transform .6s var(--ease-spring);
}
.shn-card:hover .shn-img-area img { transform:scale(1.04); }

/* Shnails logo card — contain so full mark shows, transparent bg */
.shn-img-area--contain {
  background: transparent;
  padding: 24px;
}
.shn-img-area--contain img {
  object-fit: contain !important;
  object-position: center center !important;
}

.shn-card-body { padding:16px 2px 0; }
.shn-cat {
  font-size: 9px; letter-spacing:.22em; text-transform:uppercase;
  color: rgba(212,100,90,0.9); /* brighter red */
  margin-bottom: 6px;
  font-weight: 400;
}
.shn-title {
  font-family:'Cormorant Garamond',serif;
  font-size: clamp(16px,1.35vw,20px); /* bigger */
  font-style:italic;
  color: rgba(245,241,236,0.95); /* near white */
  line-height:1.2; margin-bottom:5px;
  font-weight: 300;
}
.shn-tool {
  font-size: 10px; letter-spacing:.15em;
  color: rgba(245,241,236,0.5); /* bumped from 0.3 */
  text-transform:uppercase;
}

/* Shnails desc — bigger, more contrast */
.shn-desc {
  font-size: clamp(15px,1.2vw,18px) !important;
  line-height: 1.85 !important;
  color: rgba(245,241,236,0.88) !important;
}

/* Shnails section eyebrow */
.shnails-section .section-eyebrow {
  color: rgba(210,90,82,0.9) !important;
  font-weight: 400;
}

/* Shnails brand text */
.shn-brand-text {
  font-family:'Cormorant SC',serif;
  font-size: 12px; letter-spacing:.3em;
  color: rgba(245,241,236,0.55) !important; /* bumped from 0.35 */
}

/* Vertical Chinese — more readable */
#thread-chars {
  font-size: 10px !important;
  letter-spacing: 0.45em !important;
  color: rgba(184,39,30,0.35) !important; /* bumped from 0.22 */
}

.vertical-zh {
  font-size: 10px !important;
  letter-spacing: 0.48em !important;
  color: rgba(13,12,11,0.22) !important; /* bumped from 0.13 */
}
.vertical-zh-inv {
  color: rgba(245,241,236,0.28) !important; /* bumped from 0.16 */
}


/* Lightbox click cue */
.shn-img-area::after {
  content:'↗';
  position:absolute; bottom:10px; right:12px;
  font-size:12px; color:rgba(245,241,236,0.4);
  opacity:0; transition:opacity .2s;
  pointer-events:none;
}
.shn-card:hover .shn-img-area::after { opacity:1; }

/* ════════════════════════════════
   ABOUT
════════════════════════════════ */
.about-section {
  display:grid; grid-template-columns:1fr 1fr;
  padding:0; position:relative; overflow:hidden;
}
.about-left {
  padding:80px var(--pad-x);
  border-right:1px solid var(--border);
  position:relative; z-index:2;
}
.about-left-orchid {
  position:absolute; left:0; bottom:0; width:55%;
  opacity:0.18; pointer-events:none;
}
.about-right { position:relative; overflow:hidden; min-height:500px; background:var(--paper); }
.about-orchid-main {
  width:100%; height:100%; object-fit:cover; object-position:center top;
  display:block; opacity:.95;
}
.about-orchid-ghost {
  position:absolute; bottom:-5%; right:-5%; width:55%;
  object-fit:contain; opacity:0.5;
}
.about-overlay {
  position:absolute; inset:0;
  background:linear-gradient(to right, var(--paper) 0%, rgba(245,241,236,0.15) 42%, transparent 100%);
  pointer-events:none;
}
.about-desc { font-size:var(--f-body); line-height:1.9; color:var(--muted); max-width:420px; margin-top:16px; letter-spacing:.022em; }
.about-specs { margin-top:24px; display:flex; flex-direction:column; }
.about-spec {
  display:flex; align-items:center; gap:18px;
  font-size:clamp(13px,.97vw,14px); letter-spacing:.06em; color:var(--muted);
  padding:12px 0; border-bottom:1px solid var(--border);
  transition:color .2s, filter .3s;
}
.about-spec:hover { color:var(--ink); filter:url(#ink-bleed-soft); }
.about-spec::before { content:'·'; color:var(--red); font-size:22px; line-height:0; flex-shrink:0; }

/* ════════════════════════════════
   CONTACT FORM
════════════════════════════════ */
.contact-section {
  padding:var(--pad-section) var(--pad-x);
  border-top:1px solid var(--border);
  position:relative; overflow:hidden;
}
.contact-orchid {
  position:absolute; right:40px; bottom:-30px;
  width:clamp(100px,13.9vw,220px);
  opacity:0.18; pointer-events:none;
}

.contact-grid {
  display:grid; grid-template-columns:1fr 1fr;
  gap:clamp(40px,5vw,80px); align-items:start;
}
.contact-headline {
  font-family:'Cormorant Garamond',serif;
  font-size:clamp(28px,3.5vw,48px);
  font-weight:300; font-style:italic; line-height:1.1;
  color:var(--ink); margin-bottom:16px;
}
.contact-sub { font-size:16px; color:var(--muted); letter-spacing:.03em; line-height:1.7; }

.contact-links { margin-top:28px; display:flex; flex-direction:column; gap:0; }
.contact-link-row {
  display:flex; align-items:center; gap:14px;
  padding:12px 0; border-bottom:1px solid var(--border);
  font-size:clamp(12px,.9vw,13px); letter-spacing:.06em; color:var(--muted);
  text-decoration:none; transition:color .2s, filter .25s;
}
.contact-link-row:hover { color:var(--ink); filter:url(#ink-bleed-soft); }
.contact-link-icon { font-size:14px; width:20px; text-align:center; flex-shrink:0; }

/* Form */
.contact-form { display:flex; flex-direction:column; gap:22px; }

.form-row { display:grid; grid-template-columns:1fr 1fr; gap:18px; }

.form-group { display:flex; flex-direction:column; gap:8px; }
.form-label {
  font-size:8px; letter-spacing:.28em; text-transform:uppercase;
  color:var(--muted);
}
.form-input, .form-select, .form-textarea {
  width:100%; padding:14px 16px;
  background:rgba(13,12,11,0.03);
  border:1px solid var(--border);
  font-family:'DM Sans',sans-serif; font-size:14px; font-weight:300;
  color:var(--ink); outline:none;
  transition:border-color .2s, background .2s;
  border-radius:0; /* keep sharp / Japanese aesthetic */
  -webkit-appearance:none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color:var(--ink);
  background:rgba(13,12,11,0.015);
}
.form-input::placeholder, .form-textarea::placeholder { color:var(--muted); opacity:.5; }
.form-textarea { resize:vertical; min-height:120px; line-height:1.6; }
.form-select { cursor:pointer; }
.form-select option { background:var(--paper); }

.form-submit {
  align-self:flex-start; margin-top:10px;
}

/* Form success state */
.form-success {
  display:none; padding:20px 24px;
  border:1px solid rgba(184,39,30,0.2);
  background:rgba(184,39,30,0.04);
  font-size:13px; color:var(--muted); line-height:1.7;
}
.form-success strong { color:var(--red); font-weight:400; }

/* ════════════════════════════════
   FOOTER
════════════════════════════════ */
footer {
  padding:24px var(--pad-x);
  border-top:1px solid var(--border);
  display:flex; justify-content:space-between; align-items:center;
  font-size:9px; letter-spacing:.16em; color:var(--muted);
  flex-wrap:wrap; gap:.75rem;
}
.footer-left { display:flex; align-items:center; gap:10px; }
.footer-stamp { width:22px; height:22px; overflow:hidden; }
.footer-stamp img { width:100%; height:100%; object-fit:contain; opacity:.75; }

.footer-social { display:flex; align-items:center; gap:18px; }
.footer-social a {
  display:flex; align-items:center; gap:7px;
  color:var(--muted); text-decoration:none;
  font-size:9px; letter-spacing:.16em;
  transition:color .2s, filter .25s;
  text-transform:uppercase;
}
.footer-social a:hover { color:var(--red); filter:url(#ink-bleed-soft); }
.footer-social svg { flex-shrink:0; opacity:.7; }

.footer-zh { font-family:'Noto Serif SC',serif; font-size:9px; letter-spacing:0.3em; color:rgba(184,39,30,0.25); }

/* ════════════════════════════════
   LIGHTBOX
════════════════════════════════ */
.lightbox-overlay {
  position:fixed; inset:0; z-index:10000;
  background:rgba(13,12,11,0.92);
  backdrop-filter:blur(8px);
  display:none; align-items:center; justify-content:center;
  padding:40px;
  cursor:zoom-out;
}
.lightbox-overlay.active { display:flex; }

.lightbox-inner {
  position:relative; max-width:90vw; max-height:90vh;
  display:flex; align-items:center; justify-content:center;
  cursor:default;
  animation:lbIn .25s var(--ease-spring);
}
@keyframes lbIn { from { opacity:0; transform:scale(.95); } to { opacity:1; transform:scale(1); } }

.lightbox-img {
  max-width:100%; max-height:88vh;
  object-fit:contain; display:block;
  box-shadow:0 32px 80px rgba(0,0,0,0.5);
}
.lightbox-close {
  position:absolute; top:-16px; right:-16px;
  width:36px; height:36px; border-radius:50%;
  background:rgba(245,241,236,0.12);
  border:1px solid rgba(245,241,236,0.2);
  color:rgba(245,241,236,0.7); font-size:16px;
  cursor:pointer; display:flex; align-items:center; justify-content:center;
  transition:background .2s, color .2s;
}
.lightbox-close:hover { background:rgba(245,241,236,0.25); color:var(--paper); }

.lightbox-caption {
  position:absolute; bottom:-36px; left:0; right:0; text-align:center;
  font-size:9px; letter-spacing:.2em; text-transform:uppercase;
  color:rgba(245,241,236,0.35);
}

/* Arrows */
.lightbox-prev, .lightbox-next {
  position:fixed; top:50%; transform:translateY(-50%);
  width:44px; height:44px;
  background:rgba(245,241,236,0.08);
  border:1px solid rgba(245,241,236,0.15);
  color:rgba(245,241,236,0.5); font-size:18px;
  cursor:pointer; display:flex; align-items:center; justify-content:center;
  transition:background .2s, color .2s;
  z-index:10001;
}
.lightbox-prev { left:20px; }
.lightbox-next { right:20px; }
.lightbox-prev:hover, .lightbox-next:hover { background:rgba(245,241,236,0.18); color:var(--paper); }

/* ════════════════════════════════
   CASE STUDY PANEL
════════════════════════════════ */
.cs-panel {
  position: fixed;
  inset: 0;
  z-index: 10500;
  background: var(--paper);
  transform: translateX(100%);
  transition: transform 0.55s var(--ease-spring);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
}
.cs-panel.cs-open {
  transform: translateX(0);
}

/* Top bar */
.cs-bar {
  position: sticky;
  top: 0;
  height: var(--nav-h);
  background: rgba(245,241,236,0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad-x);
  z-index: 2;
}
.cs-back {
  font-size: var(--f-label);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s, filter 0.2s;
}
.cs-back:hover { color: var(--ink); filter: url(#ink-bleed-soft); }

.cs-bar-title {
  font-family: 'Cormorant SC', serif;
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--muted);
  text-transform: uppercase;
}

/* Hero */
.cs-hero {
  position: relative;
  width: 100%;
  height: clamp(300px, 42vw, 560px);
  overflow: hidden;
  background: var(--ink);
}
.cs-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0.6;
  display: block;
}
.cs-hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: var(--pad-x);
  background: linear-gradient(to top, rgba(13,12,11,0.72) 0%, transparent 55%);
}
.cs-hero-text { position: relative; z-index: 2; }
.cs-eyebrow {
  font-size: var(--f-eyebrow);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(184,39,30,0.85);
  margin-bottom: 12px;
}
.cs-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(38px, 5.5vw, 76px);
  font-weight: 300;
  color: var(--paper);
  line-height: 0.9;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.cs-title em { font-style: italic; color: rgba(245,241,236,0.55); }
.cs-subtitle {
  font-size: clamp(13px, 1.1vw, 16px);
  color: rgba(245,241,236,0.55);
  letter-spacing: 0.04em;
  font-style: italic;
  font-family: 'Cormorant Garamond', serif;
}

/* Body container */
.cs-body {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(48px, 6vw, 88px) var(--pad-x) clamp(80px, 8vw, 120px);
}

/* Meta strip */
.cs-meta-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin-bottom: clamp(52px, 6vw, 80px);
}
.cs-meta-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 24px;
  background: var(--cream);
  border: 1px solid var(--border);
}
.cs-meta-label {
  font-size: 8px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--red);
  opacity: 0.82;
}
.cs-meta-val {
  font-size: clamp(11px, 0.9vw, 13px);
  color: var(--ink);
  letter-spacing: 0.04em;
  font-weight: 300;
}

/* Sections */
.cs-section {
  margin-bottom: clamp(52px, 6vw, 76px);
  padding-bottom: clamp(52px, 6vw, 76px);
  border-bottom: 1px solid var(--border);
}
.cs-section:last-child { border-bottom: none; }

.cs-section-eyebrow {
  font-size: var(--f-eyebrow);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--red);
  opacity: 0.82;
  margin-bottom: 18px;
}
.cs-section-h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(24px, 2.6vw, 36px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.12;
  color: var(--ink);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}
.cs-lead {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(20px, 1.8vw, 25px);
  font-style: italic;
  line-height: 1.8;
  color: #3f392f;
  letter-spacing: 0.01em;
}
.cs-body p:not(.cs-lead):not(.cs-section-eyebrow):not(.cs-insight-text):not(.cs-img-caption) {
  font-size: var(--f-body);
  line-height: 1.9;
  color: #453f37;
  letter-spacing: 0.022em;
  margin-bottom: 18px;
}
.cs-body p:last-child { margin-bottom: 0; }

/* Research insight grid */
.cs-insights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-top: 32px;
}
.cs-insight {
  padding: 28px 24px;
  background: var(--cream);
  border: 1px solid var(--border);
}
.cs-insight-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 44px;
  font-weight: 300;
  color: rgba(184,39,30,0.12);
  line-height: 1;
  margin-bottom: 10px;
}
.cs-insight-text {
  font-size: clamp(14px, 1vw, 15px);
  line-height: 1.8;
  color: var(--ink);
  letter-spacing: 0.025em;
  font-weight: 400;
}

/* Image block */
.cs-img-block {
  margin: 36px 0 0;
  width: 100%;
}
.cs-img-block img {
  width: 100%;
  display: block;
  border: 1px solid var(--border);
}
.cs-img-caption {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 12px;
  text-align: center;
  opacity: 0.9;
}

/* Outcome block */
.cs-outcome-block {
  background: var(--ink);
  padding: clamp(36px, 4.5vw, 60px);
  margin-top: 4px;
}
.cs-outcome-block .cs-section-eyebrow {
  color: rgba(224,108,100,0.95);
}
.cs-outcome-block p:not(.cs-section-eyebrow) {
  color: rgba(247,243,238,0.94) !important;
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.95;
  margin-bottom: 18px;
}
.cs-outcome-block p:last-child { margin-bottom: 0 !important; }

/* Source link at panel bottom */
.cs-source-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 36px;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 2px;
  text-decoration: none;
  transition: color 0.2s;
}
.cs-source-link:hover { color: var(--ink); }
.cs-source-link::after { content: '↗'; margin-left: 2px; }

/* Case-study SUBPAGE (standalone page, not overlay) */
.cs-page-wrap { padding-top: var(--nav-h); }
.cs-page-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px var(--pad-x);
  border-bottom: 1px solid var(--border);
}

/* Interactive prototype embed */
.cs-embed-frame {
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--border-strong);
  background: var(--cream);
  overflow: hidden;
}
.cs-embed-frame iframe { width: 100%; height: 100%; border: none; display: block; }
.cs-embed-pending {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  border: 1px dashed var(--border-strong);
}
.cs-embed-pending-mark {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(22px, 2.4vw, 32px);
  color: var(--ink);
  line-height: 1;
}
.cs-embed-pending-sub {
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Brand hero — show a self-contained heading image cleanly */
.cs-hero--brand {
  background: #dce9f1;
  height: clamp(240px, 36vw, 480px);
}
.cs-hero--brand .cs-hero-img {
  opacity: 1;
  object-fit: cover;
  object-position: center;
}

/* Placeholder hero — case study without a cover image yet */
.cs-hero--placeholder {
  background: linear-gradient(135deg, #2b2924 0%, #4a4034 52%, #6d5e48 100%);
}
.cs-hero--placeholder .cs-hero-overlay {
  background: linear-gradient(to top, rgba(13,12,11,0.55) 0%, rgba(13,12,11,0.12) 100%);
}

/* Feeding America hero — earthy green/amber gradient, no clashing slide art */
.cs-hero--fa {
  background: linear-gradient(135deg, #23271c 0%, #3c4a2e 55%, #7a6438 100%);
}
.cs-hero--fa .cs-hero-overlay {
  background: linear-gradient(to top, rgba(13,12,11,0.5) 0%, rgba(13,12,11,0.1) 100%);
}

/* UniTea work-card cover (no image uploaded yet) */
.work-img-area--unitea {
  background: linear-gradient(135deg, #efe9df 0%, #e1d6c4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.unitea-cover {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.unitea-cover-mark {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(34px, 4vw, 52px);
  color: var(--ink);
  line-height: 1;
}
.unitea-cover-sub {
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Pending hi-fi image placeholder inside a case study */
.cs-img-block--pending .cs-img-pending {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px dashed var(--border-strong);
  background: linear-gradient(135deg, #efe9df 0%, #e1d6c4 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.cs-img-pending-mark {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(22px, 2.4vw, 32px);
  color: var(--ink);
  line-height: 1;
}
.cs-img-pending-sub {
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Case study panel responsive ── */
@media (max-width: 900px) {
  .cs-meta-strip { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .cs-meta-strip { grid-template-columns: 1fr; }
  .cs-insights { grid-template-columns: 1fr; }
  .cs-bar { padding: 0 32px; }
  .cs-bar-title { display: none; }
}

/* ════════════════════════════════
   ANIMATIONS
════════════════════════════════ */
@keyframes slowSpin { to { transform:rotate(360deg); } }
@keyframes scanLine { 0%{left:-100%} 100%{left:100%} }
@keyframes fadeUp {
  from { opacity:0; transform:translateY(28px); }
  to   { opacity:1; transform:translateY(0); }
}

.hero-eyebrow-wrap { animation:fadeUp .8s .1s  var(--ease-spring) both; }
.hero-title        { animation:fadeUp .9s .25s var(--ease-spring) both; }
.hero-rule         { animation:fadeUp .7s .4s  var(--ease-spring) both; }
.hero-desc         { animation:fadeUp .7s .5s  var(--ease-spring) both; }
.hero-ctas         { animation:fadeUp .7s .6s  var(--ease-spring) both; }
.hero-right        { animation:fadeUp 1s  .35s var(--ease-spring) both; }

/* Scroll-reveal base state */
.reveal {
  opacity:0; transform:translateY(28px);
  transition:opacity .7s var(--ease-spring), transform .7s var(--ease-spring);
}
.reveal.visible { opacity:1; transform:translateY(0); }

/* ════════════════════════════════
   RESPONSIVE
════════════════════════════════ */
@media (max-width:1100px) {
  .work-grid { grid-template-columns:1fr 1fr; }
  .shnails-grid { grid-template-columns:1fr 1fr; }
  #red-thread, #thread-chars { display:none; }
  .vertical-zh { display:none; }
}

@media (max-width:900px) {
  .work-grid { grid-template-columns:1fr; }
  .contact-grid { grid-template-columns:1fr; }
  .form-row { grid-template-columns:1fr; }
}

@media (max-width:800px) {
  :root { --pad-x:32px; }
  .hero { grid-template-columns:1fr; }
  .hero-right { display:none; }
  .nav-links { display:none; }
  .nav-hamburger { display:flex; }
  .nav-mobile.visible { display:flex; }
  .about-section { grid-template-columns:1fr; }
  .about-right { min-height:14rem; }
  .shnails-grid { grid-template-columns:1fr 1fr; }
  footer { flex-direction:column; align-items:flex-start; gap:12px; }
}

@media (max-width:500px) {
  .shnails-grid { grid-template-columns:1fr; }
  .hero-ctas { flex-direction:column; align-items:flex-start; }
}


/* ═══════════════════════════════════════
   UNITEA — wireframe + style guide
   ═══════════════════════════════════════ */
.uw-split { display:grid; grid-template-columns:395px minmax(0,1fr); gap:48px; align-items:start; margin-top:36px; }
.uw-notes { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; }
.uw-notes li { display:grid; grid-template-columns:28px 1fr; gap:14px; padding:16px 0; border-top:1px solid var(--border); font-size:14px; line-height:1.6; color:var(--muted); }
.uw-notes li:last-child { border-bottom:1px solid var(--border); }
.uw-notes b { display:block; color:var(--ink); font-weight:500; margin-bottom:2px; }
.uw-num { width:22px; height:22px; border-radius:50%; background:var(--red); color:#fff; font-size:11px; display:flex; align-items:center; justify-content:center; }

.wf-phone { width:395px; max-width:100%; height:720px; overflow-y:auto; overflow-x:hidden; border:1px solid #000; background:#DFDFDF; box-sizing:border-box; scrollbar-width:none; }
.wf-phone::-webkit-scrollbar { display:none; }
.wf { width:393px; font-family:'PT Sans',sans-serif; color:#000; }
.wf-sec { position:relative; }
.wf-pin { position:absolute; top:8px; right:8px; z-index:3; width:20px; height:20px; border-radius:50%; background:#B8271E; color:#fff; font:500 10px/20px 'DM Sans',sans-serif; text-align:center; }
.wf-nav { position:sticky; top:0; z-index:4; height:88px; box-sizing:border-box; background:#FEF7E5; border-bottom:1px solid #4A3319; display:flex; justify-content:space-between; align-items:flex-end; padding:0 36px 18px; }
.wf-logo { width:34px; height:34px; border-radius:50%; background:#B2B2B2; }
.wf-burger { width:21px; height:21px; display:flex; flex-direction:column; justify-content:center; align-items:center; gap:4px; }
.wf-burger i { display:block; width:15px; height:1.8px; background:#4A3319; }
.wf-ph { background:#A9A9A9; display:flex; align-items:center; justify-content:center; font-size:11px; letter-spacing:0.08em; text-transform:uppercase; color:#EDEDED; }
.wf-hero { height:275px; align-items:flex-start; padding-top:110px; box-sizing:border-box; }
.wf-hero span { font-family:'Playfair Display',serif; font-size:32px; line-height:43px; color:#fff; letter-spacing:0; text-transform:none; }
.wf-tag { position:relative; margin:-59px 21px 0; height:222px; border-radius:15px; background:#D9D9D9; overflow:hidden; }
.wf-tag-top { height:62px; background:#B2B2B2; }
.wf-tag-bot { position:absolute; left:0; right:0; bottom:0; height:23px; background:#B2B2B2; }
.wf-tag p { position:absolute; top:8px; left:24px; width:272px; margin:0; font-size:28px; line-height:37px; }
.wf-sign { position:absolute; left:240px; bottom:0; width:112px; height:66px; border:0.7px solid #000; box-sizing:border-box; display:flex; align-items:center; justify-content:center; font-size:10px; font-style:italic; color:#555; z-index:1; }
.wf-h { font-family:'Playfair Display',serif; font-weight:700; font-size:20px; line-height:27px; text-align:center; margin:0; }
.wf-ingr { padding-top:38px; }
.wf-ingr .wf-h { width:324px; margin:0 auto; }
.wf-cards { width:264px; margin:14px auto 0; padding-bottom:28px; display:flex; flex-direction:column; gap:41px; }
.wf-card .wf-ph { height:302px; border-radius:10px 10px 0 0; }
.wf-card-bar { height:68px; background:#B2B2B2; border-radius:0 0 10px 10px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:7px; font-size:16px; line-height:21px; }
.wf-more { width:78px; height:18px; background:#fff; border-radius:3px; font-size:14px; line-height:18px; font-style:italic; text-align:center; }
.wf-comm { background:#D9D9D9; height:875px; padding-top:41px; box-sizing:border-box; }
.wf-comm .wf-ph { width:302px; height:377px; margin:17px auto 0; }
.wf-comm-box { width:352px; height:364px; margin:28px auto 0; background:#CFCFCF; padding-top:21px; box-sizing:border-box; font-weight:700; font-size:16px; line-height:21px; text-align:center; }
.wf-foot { background:#FEF7E5; padding:20px; display:flex; flex-direction:column; gap:18px; color:#4A3319; font-size:14px; line-height:18px; }
.wf-foot b { display:block; margin-bottom:12px; }
.wf-foot div > span { display:block; margin-bottom:3px; }
.wf-soc { display:flex; gap:6px; margin-top:12px; }
.wf-soc i { width:30px; height:30px; background:#4A3319; display:block; }

.ug-tier { display:grid; grid-template-columns:110px minmax(0,1fr); gap:24px; padding:24px 0; border-top:1px solid var(--border); align-items:start; }
.ug-tier:last-of-type { border-bottom:1px solid var(--border); }
.ug-label { font-size:10px; letter-spacing:0.22em; text-transform:uppercase; color:var(--muted); padding-top:6px; }
.ug-swatches { display:flex; flex-wrap:wrap; gap:20px; }
.ug-sw { display:flex; flex-direction:column; gap:8px; font-size:12px; line-height:1.4; }
.ug-sw i { display:block; width:120px; height:84px; border-radius:6px; border:1px solid var(--border); }
.ug-sw--sm i { width:80px; height:60px; }
.ug-sw span { color:var(--muted); font-size:11px; letter-spacing:0.04em; }
.ug-btns { display:flex; flex-wrap:wrap; gap:14px; }
.ug-btn { font-family:'PT Sans',sans-serif; font-size:14px; font-weight:700; padding:10px 26px; border-radius:999px; }
.ug-type { display:grid; grid-template-columns:1fr 1fr; gap:40px; margin-top:36px; }
.ug-type h4 { margin:0 0 14px; font-size:10px; letter-spacing:0.22em; text-transform:uppercase; font-weight:400; color:var(--muted); }
.ug-row { display:flex; justify-content:space-between; align-items:baseline; gap:16px; padding:8px 0; border-top:1px solid var(--border); }
.ug-row span { font-size:11px; color:var(--muted); white-space:nowrap; }
.ug-pf { font-family:'Playfair Display',serif; line-height:1.1; color:#0D0C0B; }
.ug-pt { font-family:'PT Sans',sans-serif; line-height:1.4; color:#0D0C0B; }

@media (max-width:900px) {
  .uw-split { grid-template-columns:1fr; }
  .wf-phone { margin:0 auto; }
  .ug-type { grid-template-columns:1fr; }
}
@media (max-width:600px) {
  .ug-tier { grid-template-columns:1fr; gap:12px; }
}


/* UniTea — research + architecture */
.up-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; margin-top:36px; }
.up-card { border:1px solid var(--border); padding:24px; display:flex; flex-direction:column; gap:12px; background:rgba(255,255,255,0.35); }
.up-type { font-size:10px; letter-spacing:0.22em; text-transform:uppercase; color:var(--red); }
.up-name { font-family:'Cormorant Garamond',serif; font-size:30px; line-height:1; font-weight:400; }
.up-card p { font-size:14px; line-height:1.6; color:var(--muted); margin:0; }
.up-card ul { list-style:none; margin:4px 0 0; padding:12px 0 0; border-top:1px solid var(--border); display:flex; flex-direction:column; gap:7px; }
.up-card li { font-size:13px; line-height:1.5; padding-left:14px; position:relative; }
.up-card li::before { content:""; position:absolute; left:0; top:10px; width:7px; height:1px; background:var(--red); }
.up-stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:20px; margin-top:36px; border-top:1px solid var(--border); border-bottom:1px solid var(--border); padding:22px 0; }
.up-stats b { display:block; font-family:'Cormorant Garamond',serif; font-weight:400; font-size:34px; line-height:1; margin-bottom:8px; }
.up-stats span { font-size:13px; line-height:1.5; color:var(--muted); }

.ua-map { margin-top:36px; font-family:'PT Sans',sans-serif; color:#0D0C0B; }
.ua-top { display:flex; flex-direction:column; align-items:center; gap:14px; }
.ua-node { border:1px solid #627A57; background:#fff; padding:10px 18px; font-size:15px; text-align:center; }
.ua-node--main { font-weight:700; font-size:20px; padding:12px 28px; }
.ua-secs { display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:8px; }
.ua-secs .ua-node { font-size:13px; padding:7px 12px; }
.ua-secs-label { font-family:'DM Sans',sans-serif; font-size:10px; letter-spacing:0.22em; text-transform:uppercase; color:var(--muted); margin-right:4px; }
.ua-branches { position:relative; margin-top:28px; padding-top:28px; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.ua-branches::before { content:""; position:absolute; top:0; left:calc((100% - 40px) / 6); right:calc((100% - 40px) / 6); border-top:1.5px solid #0D0C0B; }
.ua-branches::after { content:""; position:absolute; top:-28px; left:50%; height:28px; border-left:1.5px solid #0D0C0B; }
.ua-col { position:relative; display:flex; flex-direction:column; align-items:center; }
.ua-col::before { content:""; position:absolute; top:-28px; left:50%; height:28px; border-left:1.5px solid #0D0C0B; }
.ua-kids { list-style:none; margin:16px 0 0; padding:0 0 0 20px; border-left:1.5px solid #0D0C0B; display:flex; flex-direction:column; gap:10px; }
.ua-kids li { position:relative; }
.ua-kids li::before { content:""; position:absolute; left:-20px; top:50%; width:16px; border-top:1.5px solid #0D0C0B; }
.ua-kids .ua-node { min-width:130px; }

@media (max-width:900px) {
  .up-grid { grid-template-columns:1fr; }
  .up-stats { grid-template-columns:1fr 1fr; }
}
@media (max-width:600px) {
  .ua-branches { grid-template-columns:1fr; gap:28px; }
  .ua-branches::before, .ua-branches::after, .ua-col::before { display:none; }
}
