/* ═══════════════════════════════════════════════════════
   PRAJESH THEME — Main Stylesheet
   assets/css/style.css
   ═══════════════════════════════════════════════════════ */

/* ─── Design Tokens ─────────────────────────────────────── */
:root {
  --bg:         #FFFFFF;
  --bg-2:       #F8F7F4;
  --bg-3:       #F1EFE9;
  --bg-inv:     #111110;
  --text-1:     #0F0F0E;
  --text-2:     #3A3935;
  --text-3:     #706E68;
  --accent:     #C27B3E;
  --accent-d:   #9A5E28;
  --accent-l:   #E8A96A;
  --line:       #E4E2DC;
  --line-s:     #CBC9C1;
  --r-sm:       6px;
  --r-md:       12px;
  --r-lg:       20px;
  --r-pill:     100px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:  0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.04);
  --shadow-lg:  0 12px 40px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.06);
  --ease:       cubic-bezier(.19,1,.22,1);
  --f-display:  'Instrument Serif', Georgia, serif;
  --f-body:     'Plus Jakarta Sans', system-ui, sans-serif;
  --f-mono:     'JetBrains Mono', monospace;
}

.dark {
  --bg:         #111110;
  --bg-2:       #191917;
  --bg-3:       #222220;
  --text-1:     #F0EEE8;
  --text-2:     #C8C5BC;
  --text-3:     #807D75;
  --line:       #2A2927;
  --line-s:     #3E3C38;
  --accent:     #D4895A;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.3);
  --shadow-md:  0 4px 16px rgba(0,0,0,.4);
  --shadow-lg:  0 12px 40px rgba(0,0,0,.5);
}

/* ─── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--f-body);
  background: var(--bg);
  color: var(--text-1);
  line-height: 1.6;
  transition: background .35s ease, color .35s ease;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
ul { list-style: none; }
::selection { background: var(--accent); color: #fff; }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-thumb { background: var(--line-s); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* Skip link */
.skip-link { position: absolute; top: -999px; left: 1rem; background: var(--accent); color: #fff; padding: .5rem 1rem; border-radius: var(--r-sm); z-index: 9999; }
.skip-link:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ─── Typography Scale ───────────────────────────────────── */
.t-display {
  font-family: var(--f-display);
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--text-1);
  font-weight: 400;
}
.t-h1 {
  font-family: var(--f-display);
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.018em;
  color: var(--text-1);
  font-weight: 400;
}
.t-h2 {
  font-family: var(--f-display);
  font-size: clamp(1.65rem, 3.5vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.012em;
  color: var(--text-1);
  font-weight: 400;
}
.t-h3 {
  font-family: var(--f-body);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text-1);
  font-weight: 700;
}
.t-body {
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  line-height: 1.75;
  color: var(--text-2);
}
.t-body-lg {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  line-height: 1.7;
  color: var(--text-2);
}
.t-label {
  font-family: var(--f-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
.t-caption {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}
.mt-sm  { margin-top: 1rem; }
.mt-md  { margin-top: 1.5rem; }
.mt-lg  { margin-top: 2.5rem; }
em { color: var(--accent); font-style: italic; }

/* ─── Layout ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3.5rem);
}
.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
  border-top: 1px solid var(--line);
}
.section--alt { background: var(--bg-2); }

.section-head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: all .25s var(--ease);
  white-space: nowrap;
  min-height: 48px;
  padding: 0 1.6rem;
  text-decoration: none;
}
.btn-primary { background: var(--text-1); color: var(--bg); border: 2px solid transparent; }
.btn-primary:hover { background: var(--accent); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-primary:active { transform: translateY(0); }
.btn-outline { background: transparent; color: var(--text-1); border: 2px solid var(--line-s); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text-2); border: 2px solid var(--line); }
.btn-ghost:hover { border-color: var(--text-1); color: var(--text-1); }
.btn-accent { background: var(--accent); color: #fff; border: 2px solid transparent; }
.btn-accent:hover { background: var(--accent-d); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-icon { width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; transition: transform .25s var(--ease); flex-shrink: 0; }
.btn:hover .btn-icon { transform: translateX(3px); }
.btn svg { width: 100%; height: 100%; }

/* ─── Animate on Scroll (scoped — see v3 additions below) ── */
/* AOS rules are in the v3 ADDITIONS section at bottom of file */

/* ═══════════════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  transition: all .4s ease;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1320px;
  margin: 0 auto;
  padding: 1.35rem clamp(1.25rem, 5vw, 3.5rem);
  transition: padding .35s ease;
}
.site-header.scrolled {
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.scrolled .header-inner { padding-top: .85rem; padding-bottom: .85rem; }

.wordmark {
  font-family: var(--f-display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text-1);
  letter-spacing: -0.01em;
  transition: color .2s;
  flex-shrink: 0;
}
.wordmark em { color: var(--accent); font-style: normal; }
.wordmark:hover { color: var(--accent); }
.wordmark:hover em { opacity: .7; }

/* Custom logo override */
.custom-logo-link img { height: 40px; width: auto; }

/* ─── Desktop nav ────────────────────────────────────────── */
.nav-desktop { display: flex; align-items: center; gap: .25rem; }
.nav-menu { display: flex; align-items: center; gap: .25rem; list-style: none; }
.nav-menu .menu-item { list-style: none; }
.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-2);
  padding: .5rem .85rem;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: all .2s;
  display: inline-block;
}
.nav-link:hover, .nav-link.active { color: var(--text-1); background: var(--bg-3); }
.nav-link[aria-current="page"] { color: var(--text-1); background: var(--bg-3); font-weight: 600; }

.header-right { display: flex; align-items: center; gap: .75rem; }
.header-cta { display: inline-flex; }

.theme-toggle {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: transparent;
  color: var(--text-2);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all .2s;
  font-size: 1rem;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-icon { line-height: 1; }

/* ─── Hamburger ──────────────────────────────────────────── */
.hamburger {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: 2px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  transition: border-color .2s;
}
.hamburger:hover { border-color: var(--text-1); }
.ham-line {
  width: 18px; height: 1.5px;
  background: var(--text-1);
  border-radius: 2px;
  transition: all .3s var(--ease);
  pointer-events: none;
}
.hamburger[aria-expanded="true"] .ham-line:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.hamburger[aria-expanded="true"] .ham-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger[aria-expanded="true"] .ham-line:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

/* ─── Mobile menu ────────────────────────────────────────── */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: var(--bg);
  padding: 5.5rem 1.5rem 2.5rem;
  flex-direction: column;
  overflow-y: auto;
  animation: menuIn .4s var(--ease) both;
}
.mobile-menu:not([hidden]) { display: flex; }
@keyframes menuIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.mobile-nav-list { list-style: none; flex: 1; }
.mobile-nav-list .menu-item { border-bottom: 1px solid var(--line); }
.mobile-nav-list .menu-item:first-child { border-top: 1px solid var(--line); }
.mobile-nav-list .menu-item a {
  display: block;
  font-family: var(--f-display);
  font-size: 2.4rem;
  font-weight: 400;
  color: var(--text-1);
  padding: .9rem 0;
  transition: color .2s;
}
.mobile-nav-list .menu-item a:hover { color: var(--accent); }
.mobile-menu-footer { margin-top: 2rem; }
.mobile-cta-btn { width: 100%; justify-content: center; }

/* ═══════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════ */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 5.5rem;
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  position: relative;
  overflow: hidden;
}
.hero-bg-mark {
  position: absolute;
  right: clamp(-2rem, -2vw, -1rem);
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--f-display);
  font-size: clamp(18vw, 24vw, 28vw);
  line-height: 1;
  color: var(--line);
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.04em;
  transition: color .35s;
}
.hero-content { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .45rem 1rem;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--line);
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--bg);
}
.hero-badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34,197,94,.2);
  animation: pulse 2.5s infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 3px rgba(34,197,94,.2); }
  50%      { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}
.hero-badge span { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); font-weight: 500; }
.hero-headline {
  font-family: var(--f-display);
  font-size: clamp(3rem, 8vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: var(--text-1);
  font-weight: 400;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  animation: heroIn .9s .2s var(--ease) both;
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-sub { animation: heroIn .9s .45s var(--ease) both; }
.hero-bottom { display: flex; align-items: flex-start; justify-content: space-between; gap: 2rem; flex-wrap: wrap; margin-top: clamp(2rem, 4vw, 3.5rem); animation: heroIn .9s .6s var(--ease) both; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: clamp(1.5rem, 3vw, 3rem);
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
  border-top: 1px solid var(--line);
  margin-top: clamp(2rem, 4vw, 3.5rem);
  animation: heroIn .9s .8s var(--ease) both;
}
.stat-val { font-family: var(--f-display); font-size: clamp(1.8rem, 3vw, 2.8rem); color: var(--text-1); line-height: 1; letter-spacing: -0.02em; }
.stat-lbl { font-family: var(--f-mono); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-top: .4rem; }
.scroll-hint { position: absolute; bottom: clamp(1.25rem, 3vw, 2rem); right: clamp(1.25rem, 5vw, 3.5rem); display: flex; align-items: center; gap: .6rem; animation: heroIn .6s 1.2s var(--ease) both; }
.scroll-hint span { font-family: var(--f-mono); font-size: .6rem; letter-spacing: .15em; text-transform: uppercase; color: var(--text-3); }
.scroll-mouse { width: 20px; height: 28px; border: 1.5px solid var(--line-s); border-radius: 10px; position: relative; }
.scroll-wheel { width: 3px; height: 6px; background: var(--accent); border-radius: 2px; position: absolute; top: 5px; left: 50%; transform: translateX(-50%); animation: scrollW 2s infinite ease-in-out; }
@keyframes scrollW { 0%,100% { top: 5px; opacity: 1; } 80% { top: 13px; opacity: 0; } }

/* ═══════════════════════════════════════════════════════
   WORK LIST
═══════════════════════════════════════════════════════ */
.work-list { margin-top: clamp(2rem, 4vw, 3rem); }
.work-item {
  display: grid;
  grid-template-columns: 2.5rem 1fr 1fr auto;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
  padding: clamp(1.25rem, 2.5vw, 1.75rem) 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
  transition: all .25s ease;
  text-decoration: none;
  color: inherit;
  display: grid;
}
.work-item:last-of-type { border-bottom: 1px solid var(--line); }
.work-item:hover { background: var(--bg-2); padding-left: clamp(1.25rem, 5vw, 3.5rem); padding-right: clamp(1.25rem, 5vw, 3.5rem); margin: 0 calc(-1 * clamp(1.25rem, 5vw, 3.5rem)); }
.work-item:hover .wi-title { color: var(--accent); }
.work-item:hover .wi-arrow { border-color: var(--accent); background: var(--accent); color: #fff; }
.wi-num { font-family: var(--f-mono); font-size: .65rem; color: var(--text-3); padding-top: 2px; }
.wi-title { font-family: var(--f-display); font-size: clamp(1.25rem, 2.5vw, 1.8rem); color: var(--text-1); transition: color .25s; line-height: 1.2; }
.wi-meta { font-family: var(--f-mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin-top: .3rem; }
.wi-desc { font-size: .88rem; color: var(--text-2); line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wi-arrow { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line-s); display: flex; align-items: center; justify-content: center; color: var(--text-3); flex-shrink: 0; transition: all .25s; }
.wi-arrow svg, .icon-arrow { width: 14px; height: 14px; }

/* ═══════════════════════════════════════════════════════
   SERVICES
═══════════════════════════════════════════════════════ */
.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2vw, 1.5rem); margin-top: clamp(2rem, 4vw, 3rem); }
.service-card { background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.5rem, 3vw, 2.25rem); transition: all .3s ease; }
.service-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.service-card:hover .sc-num { color: var(--accent); }
.sc-num { font-family: var(--f-mono); font-size: .65rem; letter-spacing: .15em; text-transform: uppercase; color: var(--text-3); margin-bottom: 1.25rem; font-weight: 500; transition: color .25s; }
.sc-title { font-size: clamp(1rem, 1.8vw, 1.2rem); font-weight: 700; color: var(--text-1); margin-bottom: .75rem; letter-spacing: -0.01em; }
.sc-desc { font-size: .9rem; color: var(--text-2); line-height: 1.7; margin-bottom: 1.5rem; }
.sc-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.sc-tag { font-family: var(--f-mono); font-size: .6rem; letter-spacing: .08em; text-transform: uppercase; padding: .3rem .7rem; border-radius: var(--r-pill); border: 1.5px solid var(--line); color: var(--text-3); background: var(--bg-2); }

/* ═══════════════════════════════════════════════════════
   PROCESS
═══════════════════════════════════════════════════════ */
.process-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1.5px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin-top: clamp(2rem, 4vw, 3rem); }
.process-step { padding: clamp(1.5rem, 3vw, 2.25rem); border-right: 1.5px solid var(--line); transition: background .25s; }
.process-step:last-child { border-right: none; }
.process-step:hover { background: var(--bg-2); }
.process-step:hover .ps-num { color: var(--accent); }
.process-step:hover .ps-rule { width: 100%; }
.ps-num { font-family: var(--f-display); font-size: 3.5rem; color: var(--line-s); line-height: 1; margin-bottom: 1rem; transition: color .25s; }
.ps-rule { width: 2rem; height: 2px; background: var(--accent); border-radius: 2px; margin-bottom: 1.25rem; transition: width .45s var(--ease); }
.ps-title { font-size: clamp(.95rem, 1.5vw, 1.1rem); font-weight: 700; color: var(--text-1); margin-bottom: .6rem; letter-spacing: -0.01em; }
.ps-desc { font-size: .85rem; color: var(--text-2); line-height: 1.7; }

/* ═══════════════════════════════════════════════════════
   TESTIMONIALS
═══════════════════════════════════════════════════════ */
.t-layout { display: grid; grid-template-columns: 220px 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.t-nav { display: flex; flex-direction: column; gap: .25rem; }
.t-nav-btn { display: flex; flex-direction: column; gap: .2rem; padding: .85rem 1rem; border-left: 2px solid transparent; background: transparent; border-top: none; border-right: none; border-bottom: none; text-align: left; cursor: pointer; transition: all .2s; border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.t-nav-btn:hover { background: var(--bg-3); }
.t-nav-btn.active, .t-nav-btn[aria-selected="true"] { border-left-color: var(--accent); background: var(--bg-3); }
.tn-name { font-size: .88rem; font-weight: 600; color: var(--text-2); transition: color .2s; }
.t-nav-btn.active .tn-name, .t-nav-btn[aria-selected="true"] .tn-name { color: var(--text-1); }
.tn-co { font-family: var(--f-mono); font-size: .6rem; color: var(--text-3); letter-spacing: .08em; }
.t-panels { position: relative; }
.t-panel { }
.t-panel.hidden { display: none; }
.t-quote-mark { font-family: var(--f-display); font-size: 5.5rem; line-height: 1; color: var(--accent); opacity: .25; margin-bottom: .25rem; }
.t-quote { font-family: var(--f-display); font-size: clamp(1.25rem, 2.5vw, 1.9rem); font-style: italic; line-height: 1.45; color: var(--text-1); letter-spacing: -0.01em; margin-bottom: 2rem; }
.t-author { display: flex; align-items: center; gap: .85rem; }
.ta-line { width: 2.25rem; height: 2px; background: var(--accent); border-radius: 2px; flex-shrink: 0; }
.ta-name { font-size: .9rem; font-weight: 600; color: var(--text-1); }
.ta-role { font-family: var(--f-mono); font-size: .6rem; color: var(--text-3); letter-spacing: .08em; margin-top: .2rem; }
.t-dots { display: flex; gap: .5rem; margin-top: 2rem; }
.t-dot { height: 2px; background: var(--line-s); border-radius: 2px; cursor: pointer; transition: all .3s ease; border: none; padding: 0; }
.t-dot.active { background: var(--accent); }

/* ═══════════════════════════════════════════════════════
   CTA SECTION
═══════════════════════════════════════════════════════ */
.cta-section { padding: clamp(5rem, 10vw, 9rem) 0; text-align: center; position: relative; overflow: hidden; }
.cta-bg-word { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; font-family: var(--f-display); font-size: 20vw; font-weight: 400; color: var(--line); letter-spacing: -0.04em; user-select: none; white-space: nowrap; }
.cta-inner { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.cta-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }

/* ═══════════════════════════════════════════════════════
   PAGE HERO (shared across About, Contact, Blog, Projects)
═══════════════════════════════════════════════════════ */
.page-hero { padding-top: clamp(7rem, 12vw, 10rem); padding-bottom: clamp(3rem, 6vw, 5rem); border-bottom: 1px solid var(--line); }
.page-hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: end; }
.page-hero-desc { align-self: end; }

/* ═══════════════════════════════════════════════════════
   PROJECTS ARCHIVE
═══════════════════════════════════════════════════════ */
.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.filter-btn { font-family: var(--f-mono); font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; padding: .5rem 1.1rem; border-radius: var(--r-pill); border: 1.5px solid var(--line); background: transparent; color: var(--text-3); cursor: pointer; transition: all .2s; min-height: 36px; font-weight: 500; text-decoration: none; display: inline-block; }
.filter-btn:hover { border-color: var(--text-2); color: var(--text-1); }
.filter-btn.active, .filter-btn[aria-current] { background: var(--text-1); color: var(--bg); border-color: var(--text-1); }
.filter-count { margin-left: auto; font-family: var(--f-mono); font-size: .62rem; color: var(--text-3); letter-spacing: .08em; }
.projects-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2vw, 1.5rem); padding-top: clamp(1.5rem, 3vw, 2rem); }
.proj-card { border: 1.5px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: all .3s ease; background: var(--bg); }
.proj-card-link { display: block; text-decoration: none; color: inherit; }
.proj-card:hover { border-color: var(--line-s); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.proj-card:hover .pcard-title { color: var(--accent); }
.proj-card:hover .pcard-arrow { background: var(--accent); border-color: var(--accent); color: #fff; }
.pcard-thumb { aspect-ratio: 16/10; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.pcard-img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.proj-card:hover .pcard-img { transform: scale(1.04); }
.pcard-thumb-letter { font-family: var(--f-display); font-size: clamp(4rem, 10vw, 8rem); font-weight: 400; opacity: .15; transition: opacity .3s, transform .4s var(--ease); }
.proj-card:hover .pcard-thumb-letter { opacity: .25; transform: scale(1.05); }
.pcard-tags { position: absolute; bottom: 1rem; left: 1rem; display: flex; gap: .4rem; flex-wrap: wrap; }
.pcard-tag { font-family: var(--f-mono); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; padding: .3rem .65rem; border-radius: var(--r-pill); background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(6px); color: var(--text-2); border: 1px solid var(--line); }
.pcard-body { padding: clamp(1.25rem, 2.5vw, 1.75rem); }
.pcard-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: .5rem; }
.pcard-title { font-family: var(--f-display); font-size: clamp(1.15rem, 2vw, 1.5rem); color: var(--text-1); transition: color .25s; line-height: 1.2; }
.pcard-year { font-family: var(--f-mono); font-size: .6rem; color: var(--text-3); flex-shrink: 0; margin-top: .25rem; letter-spacing: .08em; }
.pcard-desc { font-size: .875rem; color: var(--text-2); line-height: 1.7; margin-bottom: 1.25rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-footer { display: flex; align-items: center; justify-content: space-between; }
.pcard-cta { font-family: var(--f-mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 500; display: flex; align-items: center; gap: .4rem; }
.pcard-arrow { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--text-3); transition: all .25s; }

/* ─── Pagination ─────────────────────────────────────────── */
.pagination, .wp-pagenavi { display: flex; align-items: center; justify-content: center; gap: .5rem; padding: 3rem 0; }
.pagination .page-numbers, .wp-pagenavi a, .wp-pagenavi span { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; padding: .5rem .85rem; border: 1.5px solid var(--line); border-radius: var(--r-pill); color: var(--text-2); transition: all .2s; text-decoration: none; }
.pagination .current, .wp-pagenavi .current { background: var(--text-1); color: var(--bg); border-color: var(--text-1); }
.pagination .page-numbers:hover:not(.current), .wp-pagenavi a:hover { border-color: var(--accent); color: var(--accent); }

/* ═══════════════════════════════════════════════════════
   PROJECT DETAIL
═══════════════════════════════════════════════════════ */
.detail-hero { padding-top: clamp(7rem, 12vw, 10rem); }
.breadcrumb { display: flex; align-items: center; gap: .5rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.bc-link { font-family: var(--f-mono); font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); cursor: pointer; transition: color .2s; font-weight: 500; text-decoration: none; }
.bc-link:hover { color: var(--accent); }
.bc-sep { color: var(--line-s); font-size: .8rem; }
.detail-header { display: grid; grid-template-columns: 1fr 280px; gap: clamp(2rem, 4vw, 4rem); align-items: start; padding-bottom: clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--line); }
.detail-meta-card { border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 1.75rem; background: var(--bg-2); }
.dm-item { margin-bottom: 1.25rem; }
.dm-item:last-child { margin-bottom: 0; }
.dm-label { font-family: var(--f-mono); font-size: .6rem; letter-spacing: .15em; text-transform: uppercase; color: var(--accent); margin-bottom: .3rem; font-weight: 500; }
.dm-val { font-size: .9rem; font-weight: 600; color: var(--text-1); }
.detail-visual { aspect-ratio: 16/7; display: flex; align-items: center; justify-content: center; font-family: var(--f-display); font-size: clamp(8rem, 18vw, 18rem); font-weight: 400; letter-spacing: -0.05em; overflow: hidden; }
.detail-hero-img-real { width: 100%; height: 100%; object-fit: cover; }
.case-study-body { padding-bottom: 0; }
.case-block { display: grid; grid-template-columns: 220px 1fr; gap: clamp(2rem, 4vw, 4rem); padding: clamp(2.5rem, 5vw, 4rem) 0; border-top: 1px solid var(--line); }
.case-label {}
.case-num { font-family: var(--f-mono); font-size: .65rem; letter-spacing: .15em; text-transform: uppercase; color: var(--accent); margin-bottom: .5rem; font-weight: 500; }
.case-section-title { font-size: 1rem; font-weight: 700; color: var(--text-1); letter-spacing: -0.01em; }
.case-body { font-size: clamp(.95rem, 1.5vw, 1.05rem); color: var(--text-2); line-height: 1.85; }
.case-body p { margin-bottom: 1.25em; }
.case-body p:last-child { margin-bottom: 0; }
.case-overview { font-family: var(--f-display); font-size: clamp(1.15rem, 2.5vw, 1.6rem); line-height: 1.55; color: var(--text-1); letter-spacing: -0.01em; }
.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(.75rem, 1.5vw, 1rem); padding-top: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--line); }
.gallery-item { border-radius: var(--r-md); overflow: hidden; display: flex; align-items: center; justify-content: center; font-family: var(--f-display); font-size: 3rem; opacity: .12; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; opacity: 1; }
.gallery-item.wide { grid-column: 1 / -1; aspect-ratio: 16/6; }
.gallery-item.sq { aspect-ratio: 1; }
.video-embed { aspect-ratio: 16/9; border-radius: var(--r-md); overflow: hidden; }
.video-embed iframe { width: 100%; height: 100%; }
.next-proj { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: clamp(2rem, 4vw, 3rem) 0; border-top: 1px solid var(--line); cursor: pointer; transition: background .25s; text-decoration: none; color: inherit; margin-top: 2rem; }
.next-proj:hover { background: var(--bg-2); padding-left: clamp(1.25rem, 5vw, 3.5rem); padding-right: clamp(1.25rem, 5vw, 3.5rem); margin-left: calc(-1 * clamp(1.25rem, 5vw, 3.5rem)); margin-right: calc(-1 * clamp(1.25rem, 5vw, 3.5rem)); }
.next-proj:hover .np-title { color: var(--accent); }
.next-proj:hover .np-arr { border-color: var(--accent); color: var(--accent); }
.np-lbl { font-family: var(--f-mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin-bottom: .5rem; }
.np-title { font-family: var(--f-display); font-size: clamp(1.5rem, 3.5vw, 3rem); color: var(--text-1); transition: color .25s; line-height: 1.1; }
.np-arr { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line-s); display: flex; align-items: center; justify-content: center; color: var(--text-3); flex-shrink: 0; transition: all .25s; }
.np-arr svg { width: 16px; height: 16px; }

/* ═══════════════════════════════════════════════════════
   ABOUT
═══════════════════════════════════════════════════════ */
.about-intro { display: grid; grid-template-columns: 1fr 300px; gap: clamp(2.5rem, 5vw, 5rem); align-items: start; padding-bottom: clamp(3rem, 6vw, 5rem); border-bottom: 1px solid var(--line); margin-top: 2rem; }
.about-body p { margin-bottom: 1.25em; color: var(--text-2); }
.about-photo { aspect-ratio: 3/4; background: var(--bg-3); border-radius: var(--r-lg); display: flex; align-items: center; justify-content: center; font-family: var(--f-display); font-size: 4rem; color: var(--line-s); border: 1.5px solid var(--line); overflow: hidden; }
.about-photo-img { width: 100%; height: 100%; object-fit: cover; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; }
.as-item { padding-top: .85rem; border-top: 2px solid var(--line); }
.as-val { font-family: var(--f-display); font-size: 2rem; color: var(--text-1); line-height: 1; }
.as-lbl { font-family: var(--f-mono); font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin-top: .3rem; }
.values-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2vw, 1.5rem); margin-top: clamp(2rem, 4vw, 3rem); }
.val-card { border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.5rem, 3vw, 2rem); transition: all .25s; }
.val-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.val-card:hover .vc-rule { width: 100%; }
.vc-rule { width: 2rem; height: 2px; background: var(--accent); border-radius: 2px; margin-bottom: 1.25rem; transition: width .45s var(--ease); }
.vc-title { font-size: 1.05rem; font-weight: 700; color: var(--text-1); margin-bottom: .65rem; letter-spacing: -0.01em; }
.vc-desc { font-size: .875rem; color: var(--text-2); line-height: 1.75; }
.timeline { max-width: 640px; margin-top: clamp(2rem, 4vw, 3rem); }
.tl-item { display: flex; gap: 2rem; padding-bottom: 1.75rem; margin-bottom: 1.75rem; border-bottom: 1px solid var(--line); }
.tl-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.tl-year { font-family: var(--f-mono); font-size: .78rem; color: var(--accent); flex-shrink: 0; font-weight: 500; padding-top: .1rem; width: 2.5rem; }
.tl-event { font-size: .9rem; color: var(--text-2); line-height: 1.7; }

/* ═══════════════════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════════════════ */
.contact-grid { display: grid; grid-template-columns: 1fr 340px; gap: clamp(3rem, 6vw, 6rem); margin-top: clamp(2rem, 4vw, 3rem); }
.form-group { margin-bottom: 2rem; }
.form-label { font-family: var(--f-mono); font-size: .65rem; letter-spacing: .15em; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: .75rem; font-weight: 500; }
.form-input { width: 100%; background: transparent; border: none; border-bottom: 2px solid var(--line); padding: .85rem 0; color: var(--text-1); font-family: var(--f-body); font-size: 1rem; font-weight: 400; outline: none; transition: border-color .2s; border-radius: 0; }
.form-input::placeholder { color: var(--text-3); }
.form-input:focus { border-bottom-color: var(--accent); }
textarea.form-input { resize: none; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.budget-group { display: flex; flex-wrap: wrap; gap: .5rem; }
.budget-opt { display: inline-flex; align-items: center; cursor: pointer; }
.budget-opt input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.budget-opt span { font-family: var(--f-mono); font-size: .63rem; letter-spacing: .1em; text-transform: uppercase; padding: .55rem 1rem; border-radius: var(--r-pill); border: 1.5px solid var(--line); background: transparent; color: var(--text-3); cursor: pointer; transition: all .2s; min-height: 36px; display: flex; align-items: center; font-weight: 500; }
.budget-opt:hover span { border-color: var(--text-2); color: var(--text-1); }
.budget-opt:has(input:checked) span { border-color: var(--text-1); color: var(--text-1); background: var(--bg-3); }
.form-submit-row { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.field-error { display: block; font-family: var(--f-mono); font-size: .6rem; color: #ef4444; margin-top: .4rem; letter-spacing: .06em; }
.form-success { text-align: center; padding: 3rem 2rem; border: 1.5px solid #22c55e; border-radius: var(--r-lg); background: color-mix(in srgb, #22c55e 5%, transparent); }
.success-icon { font-size: 2rem; color: #22c55e; margin-bottom: 1rem; }
.form-success p { color: var(--text-1); font-weight: 600; }
.btn-spinner { width: 16px; height: 16px; border: 2px solid transparent; border-top-color: currentColor; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.contact-sidebar {}
.csb-section { margin-bottom: 2.25rem; padding-bottom: 2.25rem; border-bottom: 1px solid var(--line); }
.csb-section:last-child { border-bottom: none; }
.csb-title { font-family: var(--f-mono); font-size: .62rem; letter-spacing: .15em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.25rem; font-weight: 500; }
.contact-email-link { font-size: 1rem; font-weight: 600; color: var(--text-1); display: block; transition: color .2s; text-decoration: none; }
.contact-email-link:hover { color: var(--accent); }
.social-list { list-style: none; }
.social-li { border-bottom: 1px solid var(--line); }
.social-li:last-child { border-bottom: none; }
.social-btn { display: flex; align-items: center; justify-content: space-between; padding: .7rem 0; font-size: .88rem; font-weight: 500; color: var(--text-2); background: none; border: none; width: 100%; text-align: left; cursor: pointer; transition: color .2s; text-decoration: none; }
.social-btn:hover { color: var(--accent); }
.social-arr { transition: transform .2s; font-style: normal; }
.social-btn:hover .social-arr { transform: translate(2px, -2px); }
.faq-item { margin-bottom: 1.5rem; }
.faq-q { font-size: .9rem; font-weight: 600; color: var(--text-1); margin-bottom: .4rem; }
.faq-a { font-size: .85rem; color: var(--text-2); line-height: 1.7; }

/* ═══════════════════════════════════════════════════════
   BLOG
═══════════════════════════════════════════════════════ */
.blog-header { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: end; padding-bottom: clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--line); }
.blog-row { display: grid; grid-template-columns: 2.5rem 1fr 180px; gap: clamp(1rem, 2vw, 2rem); padding: clamp(1.5rem, 3vw, 2rem) 0; border-top: 1px solid var(--line); cursor: pointer; transition: background .25s; align-items: start; text-decoration: none; color: inherit; }
.blog-row:last-of-type { border-bottom: 1px solid var(--line); }
.blog-row:hover { background: var(--bg-2); padding-left: clamp(1.25rem, 5vw, 3.5rem); padding-right: clamp(1.25rem, 5vw, 3.5rem); margin: 0 calc(-1 * clamp(1.25rem, 5vw, 3.5rem)); }
.blog-row:hover .br-title { color: var(--accent); }
.br-idx { font-family: var(--f-mono); font-size: .62rem; color: var(--text-3); padding-top: 3px; }
.br-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .75rem; }
.br-tag { font-family: var(--f-mono); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; padding: .28rem .65rem; border-radius: var(--r-pill); border: 1.5px solid var(--line); color: var(--text-3); text-decoration: none; transition: border-color .2s; }
.br-tag:hover { border-color: var(--accent); color: var(--accent); }
.br-title { font-family: var(--f-display); font-size: clamp(1.15rem, 2.5vw, 1.65rem); color: var(--text-1); line-height: 1.2; margin-bottom: .6rem; transition: color .25s; }
.br-excerpt { font-size: .875rem; color: var(--text-2); line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.br-meta { text-align: right; }
.br-date, .br-read { font-family: var(--f-mono); font-size: .6rem; color: var(--text-3); letter-spacing: .06em; margin-bottom: .3rem; }
.br-cta { font-family: var(--f-mono); font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); display: flex; align-items: center; gap: .3rem; justify-content: flex-end; font-weight: 500; margin-top: 1.25rem; }
.post-content { line-height: 1.9; color: var(--text-2); }
.post-content h2 { font-family: var(--f-display); font-size: clamp(1.5rem,3vw,2.2rem); font-weight: 400; color: var(--text-1); margin: 2.5rem 0 1rem; letter-spacing: -0.015em; }
.post-content h3 { font-size: 1.15rem; font-weight: 700; color: var(--text-1); margin: 2rem 0 .75rem; }
.post-content p { margin-bottom: 1.5em; font-size: clamp(.95rem,1.5vw,1.05rem); }
.post-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.post-content blockquote { border-left: 3px solid var(--accent); margin: 2rem 0; padding: 1rem 1.5rem; background: var(--bg-2); border-radius: 0 var(--r-md) var(--r-md) 0; font-family: var(--f-display); font-style: italic; font-size: 1.2rem; color: var(--text-1); }
.post-content ul, .post-content ol { margin: 1.5em 0; padding-left: 1.5em; }
.post-content li { margin-bottom: .5em; color: var(--text-2); }
.post-content img { border-radius: var(--r-md); margin: 2rem auto; }
.post-hero-img img { width: 100%; object-fit: cover; }

/* ═══════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════ */
.footer-cta { border-top: 1px solid var(--line); }
.footer-cta-inner { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: end; }
.footer-cta-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.footer-bar { border-top: 1px solid var(--line); }
.footer-bar-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding: 1.5rem 0; }
.footer-left { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.footer-nav, .footer-nav-wrap nav { display: flex; gap: 1.25rem; }
.footer-nav ul { display: flex; gap: 1.25rem; list-style: none; }
.footer-nav li a, .footer-nav ul li a { font-size: .8rem; color: var(--text-3); cursor: pointer; transition: color .2s; text-decoration: none; }
.footer-nav li a:hover, .footer-nav ul li a:hover { color: var(--text-1); }
.footer-wordmark { font-size: 1.25rem; }
.footer-right { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.footer-social-link { font-size: .8rem; color: var(--text-3); cursor: pointer; transition: color .2s; text-decoration: none; }
.footer-social-link:hover { color: var(--accent); }
.footer-copy { font-family: var(--f-mono); font-size: .6rem; color: var(--text-3); letter-spacing: .06em; }

/* ─── Scroll-to-top ──────────────────────────────────────── */
.scroll-top { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 90; width: 44px; height: 44px; border-radius: 50%; background: var(--text-1); color: var(--bg); display: flex; align-items: center; justify-content: center; border: none; cursor: pointer; transition: all .3s; box-shadow: var(--shadow-md); }
.scroll-top:hover { background: var(--accent); transform: translateY(-2px); }
.scroll-top svg { width: 14px; height: 14px; }

/* ─── Toast ──────────────────────────────────────────────── */
.toast { position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%) translateY(10px); z-index: 999; display: flex; align-items: center; gap: .75rem; padding: 1rem 1.5rem; background: var(--text-1); color: var(--bg); border-radius: var(--r-pill); box-shadow: var(--shadow-lg); font-size: .875rem; font-weight: 500; opacity: 0; transition: all .4s var(--ease); pointer-events: none; white-space: nowrap; max-width: 90vw; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast-icon { color: #22c55e; }
.no-results { padding: 4rem 0; text-align: center; }

/* ═══════════════════════════════════════════════════════
   MOBILE RESPONSIVE
═══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .work-item { grid-template-columns: 2rem 1fr auto; }
  .wi-desc { display: none; }
  .detail-header { grid-template-columns: 1fr; }
  .detail-meta-card { order: -1; }
}

@media (max-width: 900px) {
  .nav-desktop { display: none; }
  .hamburger { display: flex; }
  .header-cta { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .process-list { grid-template-columns: 1fr 1fr; }
  .process-step:nth-child(even) { border-right: none; }
  .process-step { border-bottom: 1.5px solid var(--line); }
  .process-step:nth-last-child(-n+2) { border-bottom: none; }
  .t-layout { grid-template-columns: 1fr; gap: 2rem; }
  .t-nav { flex-direction: row; flex-wrap: wrap; gap: .4rem; }
  .t-nav-btn { border-left: none; border-bottom: 2px solid transparent; border-radius: var(--r-sm) var(--r-sm) 0 0; padding: .6rem .85rem; }
  .t-nav-btn.active, .t-nav-btn[aria-selected="true"] { border-bottom-color: var(--accent); border-left-color: transparent; }
  .page-hero-inner { grid-template-columns: 1fr; }
  .page-hero-desc { display: none; }
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .case-block { grid-template-columns: 1fr; gap: 1rem; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item.wide, .gallery-item.sq { grid-column: 1; }
  .about-intro { grid-template-columns: 1fr; }
  .about-photo { aspect-ratio: 16/9; max-height: 300px; }
  .values-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .blog-header { grid-template-columns: 1fr; }
  .blog-row { grid-template-columns: 2rem 1fr; }
  .br-meta { display: none; }
  .footer-cta-inner { grid-template-columns: 1fr; }
  .footer-bar-inner { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .footer-right { flex-wrap: wrap; }
}

@media (max-width: 640px) {
  html { font-size: 16px; }
  .work-item { grid-template-columns: 1fr auto; }
  .wi-num { display: none; }
  .process-list { grid-template-columns: 1fr; }
  .process-step { border-right: none !important; border-bottom: 1.5px solid var(--line); }
  .process-step:last-child { border-bottom: none; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .footer-cta-actions { flex-direction: column; }
  .footer-cta-actions .btn { width: 100%; justify-content: center; }
  .form-row-2 { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .cta-actions { flex-direction: column; }
  .cta-actions .btn { width: 100%; justify-content: center; }
  .pcard-cta { display: none; }
}

/* ─── Print styles ───────────────────────────────────────── */
@media print {
  .site-header, .mobile-menu, .scroll-top, .toast, footer { display: none !important; }
  body { background: #fff; color: #000; }
  a { text-decoration: underline; color: #000; }
}

/* ─── Reduced motion ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
/* ═══════════════════════════════════════
   EXTRA LAYOUT — About home section
═══════════════════════════════════════ */
.about-home-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
.about-home-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  position: sticky;
  top: 100px;
}
.as-item { padding-top: .85rem; border-top: 2px solid var(--line); }
.as-val { font-family: var(--f-display); font-size: 2rem; color: var(--text-1); line-height: 1; }
.as-lbl { font-family: var(--f-mono); font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin-top: .3rem; }

/* About page */
.about-intro { display: grid; grid-template-columns: 1fr 300px; gap: clamp(2.5rem,5vw,5rem); align-items: start; padding-bottom: clamp(3rem,6vw,5rem); border-bottom: 1px solid var(--line); }
.about-photo { aspect-ratio: 3/4; background: var(--bg-3); border-radius: var(--r-lg); display: flex; align-items: center; justify-content: center; font-family: var(--f-display); font-size: 4rem; color: var(--line-s); border: 1.5px solid var(--line); overflow: hidden; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; }
.about-body p { margin-bottom: 1.25em; }

/* Keyboard nav focus */
.keyboard-nav *:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
*:focus:not(:focus-visible) { outline: none; }

/* Post content */
.post-content h2 { font-family: var(--f-display); font-size: clamp(1.5rem,3vw,2.2rem); font-weight: 400; color: var(--text-1); margin: 2.5rem 0 1rem; }
.post-content h3 { font-size: 1.15rem; font-weight: 700; color: var(--text-1); margin: 2rem 0 .75rem; }
.post-content p { margin-bottom: 1.5em; font-size: clamp(.95rem,1.5vw,1.05rem); color: var(--text-2); }
.post-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.post-content blockquote { border-left: 3px solid var(--accent); margin: 2rem 0; padding: 1rem 1.5rem; background: var(--bg-2); border-radius: 0 var(--r-md) var(--r-md) 0; font-family: var(--f-display); font-style: italic; font-size: 1.2rem; color: var(--text-1); }
.post-content ul, .post-content ol { margin: 1.5em 0; padding-left: 1.5em; }
.post-content li { margin-bottom: .5em; color: var(--text-2); }
.post-content img { border-radius: var(--r-md); margin: 2rem auto; max-width: 100%; }

/* Responsive — about home */
@media (max-width: 900px) {
  .about-home-grid { grid-template-columns: 1fr; }
  .about-home-stats { position: static; }
  .about-intro { grid-template-columns: 1fr; }
  .about-photo { aspect-ratio: 16/9; max-height: 280px; }
}

/* ══ v3 ADDITIONS ══════════════════════════════ */

/* GSAP-managed elements start hidden when animations on */
body:not(.no-animations) [data-aos] {
  opacity: 0;
  transform: translateY(22px);
}
body:not(.no-animations) [data-aos].aos-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

/* When animations disabled — show everything */
.no-animations [data-aos],
.no-animations .hero-badge,
.no-animations .hero-headline,
.no-animations .hero-sub,
.no-animations .hero-bottom,
.no-animations .hero-stats {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

/* Service card rule line (for GSAP hover) */
.sc-rule-line {
  height: 2px;
  width: 2rem;
  background: var(--accent);
  border-radius: 2px;
  margin-bottom: 1.5rem;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform .5s var(--ease);
}
.no-animations .sc-rule-line {
  transform: scaleX(1);
}

/* Page transition overlay */
body.page-leaving {
  pointer-events: none;
}

/* GSAP ScrollTo plugin support */
.keyboard-nav *:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
*:focus:not(:focus-visible) { outline: none; }

/* Honeypot field — hidden from humans */
.pj-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

/* ══ v3 FINAL ADDITIONS ══════════════════════════════ */

/* Project detail — gallery image sizing */
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* About page — properly styled */
.about-body p { color: var(--text-2); }

/* Section head row — flex layout for label + button */
.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

/* Work item — correct grid on all sizes */
@media (max-width: 768px) {
  .work-item {
    grid-template-columns: 1fr auto;
  }
  .wi-num { display: none; }
  .wi-desc { display: none; }
}

/* Services grid — responsive */
@media (max-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* Process list — responsive */
@media (max-width: 768px) {
  .process-list {
    grid-template-columns: 1fr 1fr;
  }
  .process-step {
    border-bottom: 1.5px solid var(--line);
  }
}
@media (max-width: 480px) {
  .process-list {
    grid-template-columns: 1fr;
  }
}

/* Testimonial nav — stack on mobile */
@media (max-width: 768px) {
  .t-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .t-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.4rem;
  }
  .t-nav-btn {
    border-left: none;
    border-bottom: 2px solid transparent;
    border-radius: var(--r-sm) var(--r-sm) 0 0;
    padding: 0.5rem 0.85rem;
  }
  .t-nav-btn.active,
  .t-nav-btn[aria-selected="true"] {
    border-bottom-color: var(--accent);
    border-left-color: transparent;
    background: var(--bg-3);
  }
}

/* CTA section — mobile buttons stack */
@media (max-width: 480px) {
  .cta-actions {
    flex-direction: column;
  }
  .cta-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Hero actions — stack on very small screens */
@media (max-width: 400px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Footer CTA — stack on mobile */
@media (max-width: 640px) {
  .footer-cta-inner {
    grid-template-columns: 1fr;
  }
  .footer-cta-actions {
    flex-direction: column;
  }
  .footer-cta-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* About home grid — stack on mobile */
@media (max-width: 768px) {
  .about-home-grid {
    grid-template-columns: 1fr;
  }
  .about-home-stats {
    position: static;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .about-home-stats {
    grid-template-columns: 1fr 1fr;
  }
}

/* Contact grid — stack on mobile */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* Blog list — hide meta on mobile */
@media (max-width: 640px) {
  .blog-row {
    grid-template-columns: 2rem 1fr;
  }
  .br-meta { display: none; }
}

/* Detail header — stack on mobile */
@media (max-width: 768px) {
  .detail-header {
    grid-template-columns: 1fr;
  }
  .detail-meta-card {
    order: -1;
  }
}

/* Case study — stack on mobile */
@media (max-width: 640px) {
  .case-block {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .gallery-item.wide {
    grid-column: 1;
  }
}

/* GSAP transform preserve on 3D cards */
.proj-card {
  transform-style: preserve-3d;
  will-change: transform;
}

/* Reduced motion: respect user OS preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
  }
  .hw-cursor {
    animation: none !important;
    opacity: 1 !important;
  }
}

/* Core Web Vitals — prevent layout shift */
img, video {
  height: auto;
}
img:not([width]) {
  max-width: 100%;
}

/* Font display optimization */
.t-h1, .t-h2, .t-display, .hero-headline,
.wi-title, .pcard-title, .np-title,
.t-quote, .footer-cta-title {
  font-display: swap;
}

/* Print styles */
@media print {
  .site-header,
  .mobile-menu,
  .scroll-top,
  .toast,
  .site-footer,
  .hero-badge,
  .scroll-hint,
  .hw-cursor { display: none !important; }

  body {
    background: #fff !important;
    color: #000 !important;
    font-size: 12pt;
  }

  a { text-decoration: underline; color: #000 !important; }

  .container { max-width: 100% !important; padding: 0 !important; }

  .case-block,
  .detail-header,
  .about-intro { display: block !important; }
}

/* ══════════════════════════════════════════════════
   v3.1 — VALUES, TIMELINE, SHOWCASE, WORK HOVER
══════════════════════════════════════════════════ */

/* ── Values grid ── */
.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 2vw, 1.5rem);
}
.val-card {
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3vw, 2rem);
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.val-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.val-card:hover .vc-rule { width: 100%; }
.vc-rule {
  height: 2px;
  width: 2rem;
  background: var(--accent);
  border-radius: 2px;
  margin-bottom: 1.25rem;
  transition: width .45s var(--ease);
}
.vc-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: .65rem;
  letter-spacing: -0.01em;
}
.vc-desc {
  font-size: .875rem;
  color: var(--text-2);
  line-height: 1.75;
}

/* ── Timeline ── */
.timeline {
  max-width: 640px;
}
.tl-item {
  display: flex;
  gap: 2rem;
  padding-bottom: 1.75rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
}
.tl-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.tl-year {
  font-family: var(--f-mono);
  font-size: .78rem;
  color: var(--accent);
  flex-shrink: 0;
  font-weight: 500;
  padding-top: .1rem;
  min-width: 2.5rem;
}
.tl-event {
  font-size: .9rem;
  color: var(--text-2);
  line-height: 1.7;
}

/* ── Portfolio Showcase ── */
.showcase-section {}
.showcase-video {
  margin-top: 2rem;
}
.video-embed-wrap {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--bg-3);
}
.video-embed-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
}
.showcase-slideshow {
  margin-top: 2rem;
}
.showcase-caption {
  text-align: center;
  margin-top: .75rem;
  font-family: var(--f-mono);
  font-size: .62rem;
  letter-spacing: .12em;
  color: var(--text-3);
  text-transform: uppercase;
}

/* Slideshow base (detail styles injected by JS) */
.ss-track {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  aspect-ratio: 16/9;
  background: var(--bg-3);
}
.ss-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.ss-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--r-lg);
}
.ss-slide.active {
  position: relative;
  opacity: 1;
}
.ss-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.25rem;
}
.ss-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--line-s);
  background: transparent;
  color: var(--text-2);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all .2s;
  flex-shrink: 0;
}
.ss-btn:hover { border-color: var(--accent); color: var(--accent); }
.ss-dots {
  display: flex;
  gap: .4rem;
  align-items: center;
}
.ss-dot {
  width: .6rem; height: .6rem;
  border-radius: 50%;
  border: none;
  background: var(--line-s);
  cursor: pointer;
  transition: all .3s;
  padding: 0;
  flex-shrink: 0;
}
.ss-dot.active {
  background: var(--accent);
  transform: scale(1.3);
}
.ss-counter {
  text-align: center;
  margin-top: .75rem;
  font-family: var(--f-mono);
  font-size: .62rem;
  letter-spacing: .12em;
  color: var(--text-3);
}

/* ── Work item — hover preview base state ── */
/* Preview card styles injected by JS dynamically */
/* Ensure work items have position context */
.work-list {
  position: relative;
}

/* ── Hero blur-appear — ensure filter starts declared ── */
.hero-headline .hw-char {
  display: inline-block;
}
/* When no animations — chars always visible */
.no-animations .hw-char {
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;
}

/* ── About page hero top padding ── */
.about-page-hero {
  border-bottom: 1px solid var(--line);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

/* ── Responsive — values + timeline ── */
@media (max-width: 640px) {
  .values-grid {
    grid-template-columns: 1fr;
  }
  .tl-item {
    gap: 1.25rem;
  }
}

/* ── Slideshow responsive ── */
@media (max-width: 640px) {
  .ss-controls {
    gap: .75rem;
  }
  .ss-btn {
    width: 36px; height: 36px;
  }
}
