/* ==========================================================================
   Fonts
   ========================================================================== */
@font-face { font-family: 'Inkbleed Soft'; src: url('../fonts/InkbleedSans-Soft-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inkbleed Soft'; src: url('../fonts/InkbleedSans-Soft-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Inkbleed Soft'; src: url('../fonts/InkbleedSans-Soft-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Inkbleed Blurred'; src: url('../fonts/InkbleedSans-Blurred.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Inkbleed ExBlurred'; src: url('../fonts/InkbleedSans-ExBlurred.woff2') format('woff2'); font-display: swap; }

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
  --blue: #155DFD;
  --blue-soft: #EAF0FF;
  --blue-tint: #F5F8FF;
  --ink: #222222;
  --muted: #6E6E73;
  --line: #E9E9EC;
  --bg: #FFFFFF;

  --font: 'Inkbleed Soft', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Pretendard', system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1440px;
  --radius: 18px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.blue { color: var(--blue); }
.muted { color: var(--muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ''; width: 8px; height: 8px; background: var(--blue); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: transform .5s var(--ease), background .3s, box-shadow .3s;
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header.is-scrolled { background: rgba(255,255,255,.86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.logo-mark { width: 14px; height: 14px; background: var(--blue); transition: transform .6s var(--ease); }
.logo:hover .logo-mark { transform: rotate(90deg) scale(1.15); border-radius: 50%; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  position: relative; padding: 8px 14px; border-radius: 99px; font-size: 15px; font-weight: 500;
  overflow: hidden; display: inline-block;
}
.nav a .roll-clip { display: block; overflow: hidden; }
.nav a .roll { display: block; position: relative; transition: transform .45s var(--ease); }
.nav a .roll::after { content: attr(data-text); position: absolute; left: 0; top: 100%; color: var(--blue); }
.nav a:hover .roll { transform: translateY(-100%); }
.nav a[aria-current='page'] { color: var(--blue); }
.nav a[aria-current='page']::before { content: ''; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; background: var(--blue); transform: translateX(-50%); }
.nav .nav-cta { margin-left: 8px; background: var(--ink); color: #fff; transition: background .3s; }
.nav .nav-cta .roll::after { color: #fff; }
.nav .nav-cta:hover { background: var(--blue); }

.menu-btn { display: none; width: 44px; height: 44px; border-radius: 50%; position: relative; z-index: 60; }
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); transition: transform .4s var(--ease), top .4s var(--ease); }
.menu-btn span:nth-child(1) { top: 17px; }
.menu-btn span:nth-child(2) { top: 25px; }
.menu-open .menu-btn span { background: #fff; }
.menu-open .menu-btn span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 55; background: var(--blue); color: #fff;
  display: flex; flex-direction: column; justify-content: center; padding: 0 var(--gutter);
  clip-path: circle(0% at calc(100% - 38px) 36px); transition: clip-path .7s var(--ease-io);
  visibility: hidden;
}
.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 38px) 36px); visibility: visible; }
.mobile-menu a { font-size: clamp(44px, 13vw, 72px); font-weight: 700; line-height: 1.1; letter-spacing: -.03em; display: block; opacity: 0; transform: translateY(30px); transition: opacity .5s, transform .6s var(--ease); }
.menu-open .mobile-menu a { opacity: 1; transform: none; }
.menu-open .mobile-menu a:nth-child(2) { transition-delay: .06s; }
.menu-open .mobile-menu a:nth-child(3) { transition-delay: .12s; }
.menu-open .mobile-menu a:nth-child(4) { transition-delay: .18s; }
.menu-open .mobile-menu a:nth-child(5) { transition-delay: .24s; }
.menu-open .site-header { background: transparent; box-shadow: none; }
.menu-open .site-header .logo { color: #fff; }
.menu-open .site-header .logo-mark { background: #fff; }

@media (max-width: 760px) {
  .nav { display: none; }
  .menu-btn { display: block; }
}

/* ==========================================================================
   Page transition (soft fade)
   ========================================================================== */
.page-fade { position: fixed; inset: 0; z-index: 90; background: var(--bg); pointer-events: none; opacity: 1; transition: opacity .35s ease; }
.page-fade.is-gone { opacity: 0; }
.page-fade.is-in { opacity: 1; transition-duration: .25s; }

/* ==========================================================================
   Reveal
   ========================================================================== */
[data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].is-in { opacity: 1; transform: none; }
.split-line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.split-word { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: var(--d, 0s); }
.is-in .split-word { transform: none; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  height: 56px; padding: 0 26px; border-radius: 99px; overflow: hidden;
  font-weight: 500; font-size: 16px; border: 1.5px solid var(--ink); isolation: isolate;
  transition: color .4s var(--ease), border-color .4s;
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1; background: var(--blue);
  transform: translateY(101%); border-radius: 50% 50% 0 0; transition: transform .55s var(--ease), border-radius .55s var(--ease);
}
.btn:hover { color: #fff; border-color: var(--blue); }
.btn:hover::before { transform: none; border-radius: 0; }
.btn-primary { background: var(--ink); color: #fff; }
.btn .arrow { transition: transform .4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px) rotate(-45deg); }

/* ==========================================================================
   Hero (landing)
   ========================================================================== */
.hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding-block: 110px 40px; position: relative; }
.hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: auto; padding-top: 24px; }
.badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 12px;
  border: 1px solid var(--line); border-radius: 99px; font-size: 14px; font-weight: 500;
}
.badge .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); position: relative; }
.badge .pulse::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--blue); animation: pulse 1.8s var(--ease) infinite; }
@keyframes pulse { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.hero-meta { text-align: right; font-size: 14px; color: var(--muted); line-height: 1.6; }
.hero-meta strong { color: var(--ink); font-weight: 500; }

.hero-title-wrap { position: relative; margin: 40px 0 28px; }
.hero-title {
  position: relative; display: inline-block; margin: 0;
  font-family: 'Inkbleed Soft', var(--font); font-weight: 700;
  font-size: clamp(76px, 19vw, 300px); line-height: .9; letter-spacing: -.035em;
  color: var(--ink); white-space: nowrap; cursor: pointer;
  -webkit-user-select: none; user-select: none;
}
.hero-title .baseline-probe { display: inline-block; width: 0; height: 0; vertical-align: baseline; }
.hero-title.is-hidden .ht-text { visibility: hidden; }
.hero-title .ht-char { display: inline-block; }
.hero-title .ht-char.settle { font-family: 'Inkbleed Blurred'; font-weight: 400; }
.hero-title.typing .hero-caret { animation: none; }
.hero-caret {
  display: inline-block; width: .09em; height: .74em; margin-left: .06em; background: var(--blue);
  vertical-align: baseline; animation: blink 1s steps(1) infinite;
}
.hero-title.is-hidden .hero-caret { visibility: hidden; }
@keyframes blink { 50% { opacity: 0; } }
.hero-canvas { position: absolute; left: 0; top: 0; pointer-events: none; }

.hero-bottom { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 32px; align-items: end; border-top: 1px solid var(--line); padding-top: 24px; }
.hero-intro { font-size: clamp(18px, 1.8vw, 24px); line-height: 1.4; max-width: 34ch; margin: 0; letter-spacing: -.01em; }
.hero-role { color: var(--muted); font-size: 15px; }
.scroll-cue { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.scroll-cue .line { width: 1.5px; height: 40px; background: var(--line); position: relative; overflow: hidden; }
.scroll-cue .line::after { content: ''; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--blue); animation: scrollCue 1.8s var(--ease-io) infinite; }
@keyframes scrollCue { to { top: 100%; } }
.hero-fade { opacity: 0; transform: translateY(20px); transition: opacity .9s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.hero-ready .hero-fade { opacity: 1; transform: none; }
.hero-hint { position: absolute; right: 0; top: 100%; font-size: 12px; color: var(--muted); letter-spacing: .04em; }
@media (max-width: 760px) {
  .hero-bottom { grid-template-columns: 1fr; gap: 16px; }
  .hero-meta { display: none; }
  .hero-hint { display: none; }
}

/* ==========================================================================
   Marquee
   ========================================================================== */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 22px 0; white-space: nowrap; user-select: none; }
.marquee-track { display: inline-flex; gap: 48px; padding-right: 48px; animation: marquee var(--speed, 30s) linear infinite; will-change: transform; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: inline-flex; align-items: center; gap: 48px; font-size: clamp(28px, 4vw, 56px); font-weight: 700; letter-spacing: -.03em; transition: color .3s; }
.marquee-item::after { content: ''; width: .32em; height: .32em; background: var(--blue); }
.marquee-item:hover { color: var(--blue); font-family: 'Inkbleed Blurred'; font-weight: 400; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding-block: clamp(80px, 12vw, 160px); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(36px, 5vw, 64px); flex-wrap: wrap; }
.h-display { font-size: clamp(44px, 8vw, 120px); line-height: .95; letter-spacing: -.04em; font-weight: 700; margin: 16px 0 0; }
.h-2 { font-size: clamp(34px, 5vw, 64px); line-height: 1; letter-spacing: -.035em; font-weight: 700; margin: 12px 0 0; }
.lead { font-size: clamp(20px, 2.2vw, 30px); line-height: 1.35; letter-spacing: -.015em; max-width: 30ch; }
.text-link { position: relative; display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.text-link::after { content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.text-link:hover { color: var(--blue); }
.text-link:hover::after { transform: scaleX(1); transform-origin: left; }

.page-hero { padding-block: clamp(140px, 18vw, 220px) clamp(40px, 6vw, 80px); }
.page-hero .count { font-size: .35em; vertical-align: top; color: var(--blue); margin-left: .1em; letter-spacing: 0; }

/* ==========================================================================
   Project cards (Behance-style)
   ========================================================================== */
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  position: relative; padding: 10px 18px; border-radius: 99px; border: 1px solid var(--line); font-size: 14px; font-weight: 500;
  transition: color .3s, border-color .3s, background .3s;
}
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip sup { font-size: 10px; margin-left: 3px; opacity: .6; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 36px) clamp(16px, 2vw, 28px); }
@media (max-width: 1024px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }

.card { display: block; position: relative; }
.card.is-filtered { display: none; }
.card-media {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--blue-tint);
  transform: translateZ(0);
}
.card-media > * { transition: transform 1s var(--ease); }
.card:hover .card-media > .cover, .card:hover .card-media > img { transform: scale(1.06); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-overlay {
  position: absolute; inset: auto 0 0 0; padding: 18px; display: flex; justify-content: space-between; align-items: flex-end;
  background: linear-gradient(to top, rgba(0,0,0,.5), transparent); color: #fff;
  opacity: 0; transform: translateY(12px); transition: opacity .4s, transform .5s var(--ease);
}
.card:hover .card-overlay, .card:focus-visible .card-overlay { opacity: 1; transform: none; }
.card-overlay .title { font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.card-info { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 4px 0; }
.card-title { font-weight: 500; font-size: 16px; margin: 0; }
.card-cat { font-size: 13px; color: var(--muted); }
.card-stats { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--muted); }
.stat { display: inline-flex; align-items: center; gap: 5px; }
.stat svg { width: 15px; height: 15px; }
.like-btn { position: relative; display: inline-flex; align-items: center; gap: 5px; padding: 4px 6px; margin: -4px -6px; border-radius: 8px; transition: color .25s; }
.like-btn:hover { color: var(--blue); }
.like-btn svg { transition: transform .4s var(--ease); }
.like-btn.is-liked { color: var(--blue); }
.like-btn.is-liked svg path { fill: var(--blue); }
.like-btn.pop svg { animation: likePop .5s var(--ease); }
@keyframes likePop { 30% { transform: scale(1.5); } 60% { transform: scale(.9); } }
.burst { position: absolute; left: 12px; top: 50%; width: 4px; height: 4px; background: var(--blue); pointer-events: none; animation: burst .6s var(--ease) forwards; }
@keyframes burst { to { transform: translate(var(--x), var(--y)) scale(.3); opacity: 0; } }

/* Generated covers */
.cover {
  position: absolute; inset: 0; background: var(--bg-c); color: var(--fg-c);
  display: grid; place-items: center; overflow: hidden;
}
.cover-glyph { position: relative; z-index: 1; font-size: clamp(64px, 9vw, 140px); font-weight: 700; letter-spacing: -.04em; line-height: 1; transition: font-family 0s, letter-spacing .6s var(--ease); }
.card:hover .cover-glyph { font-family: 'Inkbleed Blurred'; font-weight: 400; }
.cover::before { content: ''; position: absolute; inset: 0; opacity: .5; }
.cover.p-grid::before { background-image: linear-gradient(var(--fg-c) 1px, transparent 1px), linear-gradient(90deg, var(--fg-c) 1px, transparent 1px); background-size: 32px 32px; opacity: .18; }
.cover.p-dots::before { background-image: radial-gradient(var(--fg-c) 1.5px, transparent 1.6px); background-size: 18px 18px; opacity: .25; }
.cover.p-stripes::before { background: repeating-linear-gradient(-45deg, var(--fg-c) 0 1px, transparent 1px 14px); opacity: .18; }
.cover.p-rings::before { background: repeating-radial-gradient(circle at 70% 30%, transparent 0 22px, var(--fg-c) 22px 23px); opacity: .25; }
.cover.p-pixels::before {
  background-image:
    linear-gradient(45deg, var(--fg-c) 25%, transparent 25%, transparent 75%, var(--fg-c) 75%),
    linear-gradient(45deg, var(--fg-c) 25%, transparent 25%, transparent 75%, var(--fg-c) 75%);
  background-size: 24px 24px; background-position: 0 0, 12px 12px; opacity: .1;
}

/* ==========================================================================
   Project viewer (overlay)
   ========================================================================== */
.viewer { position: fixed; inset: 0; z-index: 70; visibility: hidden; }
.viewer.is-open { visibility: visible; }
.viewer-backdrop { position: absolute; inset: 0; background: rgba(20,20,24,.6); opacity: 0; transition: opacity .5s; }
.viewer.is-open .viewer-backdrop { opacity: 1; }
.viewer-panel {
  position: absolute; inset: 24px 0 0 0; background: var(--bg); border-radius: 24px 24px 0 0; overflow-y: auto; overscroll-behavior: contain;
  transform: translateY(100%); transition: transform .75s var(--ease-io);
}
.viewer.is-open .viewer-panel { transform: none; }
.viewer-bar { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: 16px var(--gutter); background: rgba(255,255,255,.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.viewer-bar .vb-title { font-weight: 700; }
.viewer-bar .vb-actions { display: flex; gap: 8px; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background .3s, color .3s, border-color .3s, transform .4s var(--ease); }
.icon-btn:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.icon-btn.close:hover { transform: rotate(90deg); }
.icon-btn svg { width: 18px; height: 18px; }
.viewer-content { max-width: 1100px; margin: 0 auto; padding: 48px var(--gutter) 120px; }
.viewer-hero { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; margin: 32px 0 48px; }
.viewer-hero.is-image { aspect-ratio: auto; }
.viewer-credit { margin: -36px 0 48px; font-size: 13px; color: var(--muted); }
.viewer-hero.is-image img { width: 100%; height: auto; }
.viewer-hero .cover-glyph { font-size: clamp(90px, 16vw, 220px); }
.viewer-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 24px 0; border-block: 1px solid var(--line); margin-bottom: 56px; }
.viewer-meta dt { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.viewer-meta dd { margin: 0; font-weight: 500; }
.viewer-section { display: grid; grid-template-columns: 220px 1fr; gap: 32px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.viewer-section h3 { margin: 0; font-size: 15px; color: var(--blue); font-weight: 500; }
.viewer-section p { margin: 0; font-size: clamp(20px, 2vw, 26px); line-height: 1.4; letter-spacing: -.01em; }
.viewer-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 56px; }
.viewer-gallery .ph { aspect-ratio: 4/3; border-radius: var(--radius); background: var(--blue-tint); display: grid; place-items: center; color: var(--muted); font-size: 14px; border: 1px dashed #cfd8f5; }
.viewer-gallery .ph.wide { grid-column: span 2; aspect-ratio: 21/9; }
.viewer-gallery img { width: 100%; height: auto; border-radius: var(--radius); background: var(--blue-tint); }
.viewer-gallery img.wide { grid-column: span 2; }
.viewer-next { display: block; margin-top: 80px; padding: 48px 0; border-top: 1px solid var(--line); text-align: center; }
.viewer-next .label { font-size: 14px; color: var(--muted); }
.viewer-next .name { display: block; font-size: clamp(40px, 7vw, 96px); font-weight: 700; letter-spacing: -.04em; line-height: 1; margin-top: 8px; transition: color .3s; }
.viewer-next:hover .name { color: var(--blue); font-family: 'Inkbleed Blurred'; font-weight: 400; }
@media (max-width: 760px) {
  .viewer-meta { grid-template-columns: 1fr 1fr; }
  .viewer-section { grid-template-columns: 1fr; gap: 10px; }
  .viewer-gallery { grid-template-columns: 1fr; }
  .viewer-gallery .ph.wide, .viewer-gallery img.wide { grid-column: auto; }
}
body.no-scroll { overflow: hidden; }

/* ==========================================================================
   About
   ========================================================================== */
.about-intro { display: grid; grid-template-columns: minmax(200px, 320px) 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.portrait { position: relative; margin: 0; aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden; background: var(--blue-soft); }
.portrait img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.portrait:hover img { transform: scale(1.04); }
.portrait-tag { position: absolute; left: 12px; bottom: 12px; background: #fff; border-radius: 99px; padding: 5px 11px; font-size: 12px; font-weight: 500; }
.about-copy p { font-size: clamp(18px, 1.6vw, 21px); color: #444; max-width: 52ch; }
.about-copy .lead { color: var(--ink); max-width: none; margin-top: 0; }
@media (max-width: 760px) { .about-intro { grid-template-columns: 1fr; gap: 28px; } .portrait { width: min(220px, 60vw); } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat-item { padding: 32px 24px 32px 0; border-right: 1px solid var(--line); }
.stat-item:last-child { border-right: 0; }
.stat-num { font-size: clamp(48px, 6vw, 88px); font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.stat-num sup { color: var(--blue); font-size: .45em; }
.stat-label { color: var(--muted); font-size: 15px; margin-top: 8px; }
.stat-item + .stat-item { padding-left: 24px; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } .stat-item:nth-child(2) { border-right: 0; } .stat-item:nth-child(3) { padding-left: 0; } }

.rows { border-top: 1px solid var(--ink); }
.row {
  position: relative; display: grid; grid-template-columns: 140px 1fr 1fr 40px; gap: 24px; align-items: center;
  padding: 28px 0; border-bottom: 1px solid var(--line); overflow: hidden; isolation: isolate;
  transition: color .4s, padding .5s var(--ease);
}
.row::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--blue); transform: scaleY(0); transform-origin: var(--origin, bottom); transition: transform .5s var(--ease); }
.row:hover { color: #fff; padding-inline: 20px; }
.row:hover::before { transform: scaleY(1); }
.row:hover .muted { color: rgba(255,255,255,.75); }
.row-title { font-size: clamp(22px, 2.6vw, 34px); font-weight: 700; letter-spacing: -.02em; }
.row-arrow { justify-self: end; transition: transform .5s var(--ease); }
.row:hover .row-arrow { transform: rotate(-45deg); }
@media (max-width: 760px) { .row { grid-template-columns: 1fr; gap: 4px; } .row-arrow { display: none; } }

.caps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cap { padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); position: relative; overflow: hidden; transition: border-color .3s, transform .5s var(--ease); }
.cap:hover { border-color: var(--blue); transform: translateY(-6px); }
.cap-num { font-size: 13px; color: var(--blue); font-weight: 500; }
.cap h3 { font-size: 26px; letter-spacing: -.02em; margin: 40px 0 10px; }
.cap p { margin: 0; color: var(--muted); }
.cap-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.cap-tags span { font-size: 12px; padding: 5px 10px; border-radius: 99px; background: var(--blue-tint); color: var(--blue); }
@media (max-width: 900px) { .caps { grid-template-columns: 1fr; } }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.slider { position: relative; }
.slider-track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; cursor: grab; }
.slider-track::-webkit-scrollbar { display: none; }
.slider-track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.slide {
  flex: 0 0 min(820px, 86%); scroll-snap-align: start; border-radius: 28px; padding: clamp(28px, 5vw, 64px);
  background: var(--blue); color: #fff; display: flex; flex-direction: column; justify-content: space-between; min-height: 440px;
  user-select: none;
}
.slide:nth-child(even) { background: var(--blue-soft); color: var(--ink); }
.slide:nth-child(3n) { background: var(--ink); color: #fff; }
.slide-quote { font-size: clamp(24px, 3.2vw, 44px); line-height: 1.2; letter-spacing: -.025em; font-weight: 500; margin: 0; }
.slide-quote::before { content: '“'; display: block; font-size: 2.2em; line-height: .6; height: .45em; font-family: 'Inkbleed Blurred'; }
.person { display: flex; align-items: center; gap: 14px; margin-top: 32px; }
.avatar { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: rgba(255,255,255,.18); flex-shrink: 0; }
.slide:nth-child(even) .avatar { background: var(--blue); color: #fff; }
.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.person-name { font-weight: 700; }
.person-title { font-size: 14px; opacity: .7; }
.slider-ui { display: flex; align-items: center; gap: 20px; margin-top: 28px; }
.progress { flex: 1; height: 2px; background: var(--line); position: relative; overflow: hidden; }
.progress span { position: absolute; inset: 0; background: var(--blue); transform-origin: left; transform: scaleX(0); transition: transform .3s; }
.slider-count { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 52px; }

.t-grid { columns: 3 300px; column-gap: 20px; }
.t-item { break-inside: avoid; padding-bottom: 20px; }
.t-card {
  margin: 0; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius);
  position: relative; overflow: hidden; background: #fff;
  transform: perspective(900px) rotateX(var(--rx, 0)) rotateY(var(--ry, 0));
  transition: transform .5s var(--ease), border-color .3s;
}
.t-card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(21,93,253,.12), transparent 70%);
}
.t-card:hover { border-color: rgba(21,93,253,.35); transition: transform .15s linear, border-color .3s; }
.t-card:hover::before { opacity: 1; }
.t-card p { margin: 0 0 24px; font-size: 18px; line-height: 1.45; }
.t-card .person { margin-top: 0; }
.t-card .avatar { background: var(--blue); color: #fff; width: 42px; height: 42px; font-size: 14px; }
.stars { display: flex; gap: 3px; margin-bottom: 16px; }
.stars i { width: 10px; height: 10px; background: var(--blue); display: block; }

/* Testimonial: clickable cards + full-text popup */
.t-open { cursor: pointer; }
.slide-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.t-more { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; white-space: nowrap; opacity: .7; transition: opacity .3s, transform .4s var(--ease); }
.t-open:hover .t-more { opacity: 1; transform: translateX(3px); }
.slide .t-more { margin-top: 32px; }
.t-card .t-more { color: var(--blue); }
.teaser-quote.t-open .t-more { font-size: 15px; color: var(--blue); vertical-align: middle; margin-left: 8px; letter-spacing: 0; }
.teaser-quote.t-open:hover { color: #000; }

.t-modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 24px 16px; visibility: hidden; }
.t-modal.is-open { visibility: visible; }
.t-modal-backdrop { position: absolute; inset: 0; background: rgba(20, 20, 24, .55); opacity: 0; transition: opacity .35s ease; cursor: pointer; }
.t-modal.is-open .t-modal-backdrop { opacity: 1; }
.t-modal-card {
  position: relative; width: min(720px, 100%); max-height: calc(100svh - 48px); overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg); border-radius: 24px; padding: clamp(28px, 5vw, 56px);
  opacity: 0; transform: translateY(24px) scale(.98); transition: opacity .35s ease, transform .5s var(--ease);
}
.t-modal.is-open .t-modal-card { opacity: 1; transform: none; }
.t-modal-close { position: absolute; top: 16px; right: 16px; }
.t-modal-body p { font-size: clamp(18px, 1.8vw, 21px); line-height: 1.6; margin: 0 0 1em; color: var(--ink); }
.t-modal-body p:first-child::before { content: '“'; display: block; font-family: 'Inkbleed Blurred'; font-size: 64px; line-height: .6; height: 28px; color: var(--blue); }
.t-modal-person { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.t-modal-person .person { margin-top: 0; }
.t-modal-person .avatar { background: var(--blue); color: #fff; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { padding: clamp(40px, 6vw, 80px) 0 28px; }
.footer-card {
  display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap;
  background: var(--ink); color: #fff; border-radius: 24px; padding: clamp(24px, 3.5vw, 40px);
}
.footer-card-text { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.footer-cta { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 0 .25em; font-size: clamp(26px, 3.2vw, 40px); font-weight: 700; line-height: 1.1; letter-spacing: -.03em; }
.footer-cta .hl { color: var(--blue); display: inline-flex; align-items: center; gap: .1em; }
.footer-cta .hl svg { width: .7em; height: .7em; transition: transform .6s var(--ease); }
.footer-cta:hover .hl { font-family: 'Inkbleed Blurred'; font-weight: 400; }
.footer-cta:hover .hl svg { transform: rotate(-45deg); }
.socials { display: flex; gap: 12px; }
.social {
  position: relative; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.22);
  display: grid; place-items: center; overflow: hidden; isolation: isolate; transition: border-color .3s, color .3s;
}
.social::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--blue); border-radius: 50%; transform: scale(0); transition: transform .45s var(--ease); }
.social:hover { border-color: var(--blue); }
.social:hover::before { transform: scale(1); }
.social svg { width: 22px; height: 22px; transition: transform .45s var(--ease); }
.social:hover svg { transform: translateY(-2px) scale(1.08); }
.social-wrap .tip {
  position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translate(-50%, 6px); opacity: 0;
  background: #fff; color: var(--ink); font-size: 12px; font-weight: 500; padding: 5px 10px; border-radius: 99px; white-space: nowrap;
  pointer-events: none; transition: opacity .25s, transform .35s var(--ease);
}
.social-wrap { position: relative; }
.social-wrap:hover .tip { opacity: 1; transform: translate(-50%, 0); }
.footer-email { display: inline-flex; align-items: center; gap: 12px; font-size: 15px; color: rgba(255,255,255,.75); }
.copy-btn { font-size: 13px; padding: 6px 12px; border-radius: 99px; border: 1px solid rgba(255,255,255,.22); transition: background .3s, border-color .3s; }
.copy-btn:hover { background: var(--blue); border-color: var(--blue); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); padding-top: 20px; }
.footer-bottom .clock { font-variant-numeric: tabular-nums; }
.to-top { display: inline-flex; align-items: center; gap: 6px; }
.to-top:hover { color: var(--blue); }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 95; transform: translate(-50%, calc(100% + 60px));
  background: var(--blue); color: #fff; padding: 12px 20px; border-radius: 99px; font-size: 14px; font-weight: 500;
  transition: transform .5s var(--ease); pointer-events: none;
}
.toast.is-show { transform: translate(-50%, 0); }

/* ==========================================================================
   Home extras
   ========================================================================== */
.teaser { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.teaser-quote { font-size: clamp(26px, 3.4vw, 48px); line-height: 1.15; letter-spacing: -.03em; font-weight: 500; margin: 0; }
.teaser-quote .q { color: var(--blue); font-family: 'Inkbleed Blurred'; font-weight: 400; }
@media (max-width: 860px) { .teaser { grid-template-columns: 1fr; } }
#teaserWho .avatar { background: var(--blue); color: #fff; }
#teaserWho .person { margin-top: 0; }

.not-found { min-height: 100svh; display: grid; place-items: center; text-align: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-reveal], .split-word, .hero-fade { opacity: 1 !important; transform: none !important; }
}
