/* ══════════════════════════════════════════════
   JUNYA — shared styles
   clean paper · ink · rough edges
   ══════════════════════════════════════════════ */

:root {
  --paper:    #ffffff;
  --paper-2:  #f7f6f3;
  --paper-3:  #efeee9;
  --ink:      #101010;
  --ink-2:    #52534f;
  --ink-3:    #8a8b86;
  --ink-4:    #b8b9b3;
  --line:     rgba(16,16,16,0.10);
  --line-2:   rgba(16,16,16,0.06);
  /* ink blue — graphics/fills use --accent, small text uses --accent-ink,
     --accent-lift is the only one bright enough to sit on black,
     --on-accent is what you put ON an --accent fill                      */
  --accent:     #2b4acb;
  --accent-2:   #4a6bf0;
  --accent-ink: #1b2f7a;
  --accent-lift:#7c97f5;
  --accent-wash:#eaeefb;
  --on-accent:  #ffffff;

  /* wet-ink stops, deepest where the ink pools */
  --ink-pool:   #12205c;
  --ink-mid:    #2b4acb;
  --ink-thin:   #5b7bea;

  --glass:      rgba(255,255,255,0.7);
  --glass-line: rgba(255,255,255,0.9);

  --shadow-sm: 0 1px 2px rgba(16,16,16,0.04), 0 4px 16px rgba(16,16,16,0.05);
  --shadow-md: 0 2px 8px rgba(16,16,16,0.05), 0 16px 44px rgba(16,16,16,0.08);
  --shadow-lg: 0 6px 16px rgba(16,16,16,0.06), 0 32px 80px rgba(16,16,16,0.12);

  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --r-md: 18px;
  --r-lg: 26px;
  --dock-h: 92px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  padding-bottom: var(--dock-h);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: var(--ink); color: var(--paper); }

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

.skip-link {
  position: absolute; left: -9999px; top: 1rem; z-index: 999;
  background: var(--ink); color: #fff; padding: 0.7rem 1.2rem;
  border-radius: 100px; font-size: 0.85rem;
}
.skip-link:focus { left: 1rem; }

/* ── rough: paper grain over everything ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 400;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.16'/%3E%3C/svg%3E");
}

/* ambient tint */
.ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.42; }
.orb-a { width: 44vw; height: 44vw; background: radial-gradient(circle,#e8ddd2,transparent 70%); top: -14%; right: -8%; }
.orb-b { width: 40vw; height: 40vw; background: radial-gradient(circle,#dfe4ea,transparent 70%); bottom: -16%; left: -10%; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 clamp(1.2rem, 4vw, 2.6rem); }

/* ══════════ HEADER ══════════ */
.site-head {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--line-2);
}
.head-in {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  padding: 1.1rem clamp(1.2rem, 4vw, 2.6rem) 1rem;
  max-width: 1320px;
  margin: 0 auto;
}

/* ── centred brand: big rough signature + junyamade ── */
.brand {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  justify-self: center;
}
.brand img {
  height: clamp(60px, 7.4vw, 98px);
  width: auto;
  transform: rotate(-1deg);
  transition: transform 0.45s var(--ease);
}
.brand:hover img { transform: rotate(0.5deg) scale(1.035); }
.brand-word {
  font-family: 'Caveat', cursive;
  font-size: clamp(0.95rem, 1.5vw, 1.22rem);
  font-weight: 600;
  letter-spacing: 0.6px;
  color: var(--ink-2);
  line-height: 1;
  margin-top: -0.28em;
  transition: color 0.25s;
}
.brand:hover .brand-word { color: var(--ink); }

.head-nav { display: flex; gap: 1.9rem; grid-column: 1; }
.head-nav a {
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--ink-2);
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s;
  white-space: nowrap;
}
.head-nav a::after {
  content: '';
  position: absolute; left: 0; bottom: -1px;
  width: 0; height: 1.5px; background: var(--accent);
  transition: width 0.35s var(--ease);
}
.head-nav a:hover { color: var(--ink); }
.head-nav a:hover::after { width: 100%; }
.head-nav a[aria-current="page"] { color: var(--ink); }
.head-nav a[aria-current="page"]::after { width: 100%; background: var(--ink); }

.head-actions {
  grid-column: 3;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.9rem;
}
.head-link {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
}
.head-link:hover { color: var(--ink); }

@media (max-width: 1080px) {
  .head-nav { gap: 1.2rem; }
  .head-nav a { font-size: 0.68rem; letter-spacing: 1.1px; }
  .head-link { display: none; }
}
@media (max-width: 780px) {
  .head-in { grid-template-columns: 1fr; justify-items: center; gap: 0.7rem; padding-bottom: 0.9rem; }
  .head-nav, .head-actions { display: none; }
  .brand { grid-column: 1; }
}

/* ══════════ BUTTONS ══════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-size: 0.92rem; font-weight: 500; letter-spacing: -0.1px;
  padding: 0.82rem 1.55rem; border-radius: 100px;
  border: 1px solid transparent; white-space: nowrap;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
              background 0.2s, color 0.2s, border-color 0.2s;
}
.btn svg { transition: transform 0.3s var(--ease); }
.btn-dark { background: var(--ink); color: #fff; box-shadow: var(--shadow-sm); }
.btn-dark:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-dark:hover svg { transform: translateX(3px); }
.btn-outline {
  background: var(--glass); color: var(--ink); border-color: var(--line);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.btn-outline:hover { background: #fff; border-color: rgba(16,16,16,0.22); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-accent { background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 22px rgba(43,74,203,0.32); }
.btn-accent:hover { background: var(--accent-2); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(43,74,203,0.42); }
.btn-sm { padding: 0.58rem 1.1rem; font-size: 0.83rem; }
.btn-block { width: 100%; }

/* ══════════ TYPE ══════════ */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.66rem; font-weight: 500; letter-spacing: 2.6px;
  text-transform: uppercase; color: var(--ink-3);
}
.eyebrow-accent { color: var(--accent-ink); }

.sec-title {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 600; letter-spacing: -1.2px; line-height: 1.12;
  margin: 0.8rem 0 0.65rem;
}
.sec-lead { font-size: 1rem; color: var(--ink-2); max-width: 54ch; }

/* rough hand-drawn underline */
.scribble { position: relative; display: inline-block; }
.scribble svg {
  position: absolute; left: -2%; bottom: -0.42em;
  width: 104%; height: 0.42em; overflow: visible;
}
.scribble path {
  fill: none; stroke: var(--accent); stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 420; stroke-dashoffset: 420;
  animation: draw 1.1s var(--ease) 0.35s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.section { padding: clamp(3.4rem, 7vw, 6rem) 0; }
.section-tint { background: var(--paper-2); border-block: 1px solid var(--line-2); }

/* ══════════ CARD ══════════ */
.card {
  background: var(--glass);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  backdrop-filter: blur(26px) saturate(180%);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  box-shadow: inset 0 1px 0 var(--glass-line), var(--shadow-sm);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.3s;
}
.grid { display: grid; gap: 1.1rem; }
.grid-3 { grid-template-columns: repeat(3,1fr); }
.grid-2 { grid-template-columns: repeat(2,1fr); }
@media (max-width: 900px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* browser chrome on screenshots */
.chrome { display: flex; align-items: center; gap: 5px; padding: 9px 13px;
  background: rgba(250,250,248,0.92); border-bottom: 1px solid var(--line-2); }
.chrome i { width: 8px; height: 8px; border-radius: 50%; background: rgba(16,16,16,0.12); }

.visit { display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.87rem; font-weight: 500; color: var(--accent-ink); }
.visit svg { transition: transform 0.3s var(--ease); }
.card:hover .visit svg, a:hover .visit svg { transform: translate(2px,-2px); }

/* ══════════ HOME HERO ══════════ */
.hero { padding: clamp(2.6rem, 6vw, 4.4rem) 0 clamp(2.4rem, 5vw, 3.6rem); }
.hero-in { max-width: 860px; margin: 0 auto; text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.35rem 0.9rem; border-radius: 100px;
  background: var(--paper-2); border: 1px solid var(--line);
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 1.6px;
  text-transform: uppercase; color: var(--ink-2); margin-bottom: 1.5rem;
}
.hero-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 3px rgba(43,74,203,0.20); flex-shrink: 0; }

.hero h1 {
  font-size: clamp(2.1rem, 6vw, 4.2rem);
  font-weight: 600; letter-spacing: -2px; line-height: 1.05;
}
.hero h1 .ink-accent { color: var(--accent); }

/* ══════════════════════════════════════════════
   WET INK HEADLINE
   The word is not coloured in — it is filled with an ink wash that pools
   dark where the drop landed, grained with turbulence noise, and cut to
   the glyphs. The blot behind it is plain circles pushed through a
   displacement filter, which is what makes them read as splashed ink.
   ══════════════════════════════════════════════ */
.ink-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.ink-head { filter: url(#inkBleed); }

.inkword { position: relative; display: inline-block; }

.inkblot {
  position: absolute; left: 50%; top: 54%;
  width: 122%; height: 178%;
  transform: translate(-50%, -50%);
  z-index: 0; overflow: visible; pointer-events: none;
  filter: url(#inkSplat);
}
.inkblot ellipse, .inkblot circle, .inkblot path { fill: var(--ink-mid); }
.inkblot .blot-drops circle, .inkblot .blot-drops ellipse,
.inkblot .blot-drip path { fill: var(--ink-pool); }
.inkblot .pool-fill { fill: #1c2f8f; opacity: 0.23; }
.inkblot .pool-rim  { fill: none; stroke: #16266f; stroke-width: 5; opacity: 0.34; }
.inkblot .blot-mid  path  { opacity: 0.3; }
.inkblot .blot-drops circle,
.inkblot .blot-drops ellipse { opacity: 0.72; }
.inkblot .blot-drip path  { opacity: 0.62; }

/* every shape springs out from its own centre, staggered like spatter */
.inkblot g > * {
  transform-box: fill-box; transform-origin: 50% 50%;
  transform: scale(0);
}
.inkblot .blot-drip path { transform-origin: 50% 0; }

.ink-head.in .inkblot g > * {
  animation: inkDrop 0.62s cubic-bezier(0.18, 1.5, 0.36, 1) both;
}
.ink-head.in .blot-pool path { animation-duration: 0.9s; }
.ink-head.in .pool-rim { animation-delay: 0.06s; }
.ink-head.in .blot-mid  path:nth-child(1) { animation-delay: 0.12s; }
.ink-head.in .blot-mid  path:nth-child(2) { animation-delay: 0.2s; }
.ink-head.in .blot-drops circle:nth-child(1) { animation-delay: 0.16s; }
.ink-head.in .blot-drops circle:nth-child(2) { animation-delay: 0.22s; }
.ink-head.in .blot-drops circle:nth-child(3) { animation-delay: 0.29s; }
.ink-head.in .blot-drops circle:nth-child(4) { animation-delay: 0.19s; }
.ink-head.in .blot-drops circle:nth-child(5) { animation-delay: 0.34s; }
.ink-head.in .blot-drops circle:nth-child(6) { animation-delay: 0.26s; }
.ink-head.in .blot-drops circle:nth-child(7)  { animation-delay: 0.4s; }
.ink-head.in .blot-drops circle:nth-child(8)  { animation-delay: 0.31s; }
.ink-head.in .blot-drops ellipse:nth-child(9) { animation-delay: 0.37s; }
.ink-head.in .blot-drops ellipse:nth-child(10){ animation-delay: 0.44s; }
.ink-head.in .blot-drip  path      { animation: inkRun 0.9s cubic-bezier(0.3,0.9,0.25,1) 0.5s both; }

@keyframes inkDrop {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}
@keyframes inkRun {
  from { transform: scaleY(0); opacity: 0; }
  to   { transform: scaleY(1); opacity: 0.62; }
}

/* the lettering itself */
.inkword-t {
  position: relative; z-index: 1; color: var(--accent-ink);
  filter: url(#inkWet);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .inkword-t {
    color: transparent; -webkit-text-fill-color: transparent;
    background-image:
      url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='110' height='110'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='0.45' numOctaves='4' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/><feComponentTransfer><feFuncR type='linear' slope='1.9' intercept='-0.46'/><feFuncG type='linear' slope='1.9' intercept='-0.46'/><feFuncB type='linear' slope='1.9' intercept='-0.46'/></feComponentTransfer></filter><rect width='110' height='110' filter='url(%23g)' opacity='0.6'/></svg>"),
      radial-gradient(96% 150% at 20% 96%,
        #0b1746 0%, var(--ink-pool) 22%, #24399f 52%, var(--ink-mid) 82%, #4f70e6 100%);
    background-size: 62px 62px, 100% 100%;
    background-repeat: repeat, no-repeat;
    background-blend-mode: overlay, normal;
    -webkit-background-clip: text; background-clip: text;
  }
}

/* ink floods outward from where the drop landed */
.ink-head.in .inkword-t {
  animation: inkFlood 1s cubic-bezier(0.32, 0.9, 0.24, 1) 0.14s both;
}
@keyframes inkFlood {
  from { clip-path: circle(0% at 26% 120%); }
  to   { clip-path: circle(155% at 26% 120%); }
}

/* small screens: the same ink, dialled back so the word stays the loudest
   thing in the block — displacement is absolute px, so it bites much harder
   on 34px type than on 67px type */
@media (max-width: 700px) {
  .ink-head   { filter: url(#inkBleedSm); }
  .inkword-t  { filter: url(#inkWetSm); }
  .inkblot {
    top: 60%; width: 134%; height: 152%;
    filter: url(#inkSplatSm);
  }
  .inkblot .pool-fill { opacity: 0.15; }
  .inkblot .pool-rim  { opacity: 0.22; stroke-width: 4; }
  .inkblot .blot-mid  path { opacity: 0.18; }
  .inkblot .blot-drops circle,
  .inkblot .blot-drops ellipse { opacity: 0.6; }
  .inkblot .blot-drip { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ink-head { filter: none; }
  .inkblot g > * { transform: none; }
  .ink-head.in .inkblot g > *,
  .ink-head.in .blot-drip path,
  .ink-head.in .inkword-t { animation: none; }
}
.hero-kicker {
  font-family: var(--mono); font-size: clamp(0.62rem, 1.5vw, 0.74rem); font-weight: 500;
  letter-spacing: 2px; text-transform: uppercase; color: var(--accent-ink);
  margin: 1.5rem 0 0.9rem;
}
.hero-body { font-size: clamp(0.95rem, 2vw, 1.06rem); color: var(--ink-2); max-width: 52ch;
  margin: 0 auto 1.7rem; }
.hero-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; justify-content: center; }

/* stat row */
.stats {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 1rem; margin-top: clamp(2.4rem,5vw,3.4rem);
  padding-top: 2rem; border-top: 1px solid var(--line-2);
}
.stats div strong { display: block; font-size: 1.6rem; font-weight: 600; letter-spacing: -0.9px; }
.stats div span { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--ink-3); }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr 1fr; gap: 1.4rem 1rem; } }

/* ── what I do (home) ── */
.do-card { padding: 1.6rem 1.5rem 1.7rem; }
.do-card:hover { transform: translateY(-3px); box-shadow: inset 0 1px 0 var(--glass-line), var(--shadow-md); }
.do-ico {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--paper-3); border: 1px solid var(--line-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink); margin-bottom: 1rem;
}
.do-card h3 { font-size: 1.06rem; font-weight: 600; letter-spacing: -0.3px; margin-bottom: 0.4rem; }
.do-card p { font-size: 0.87rem; color: var(--ink-2); }

/* ══════════ SERVICES ══════════ */
.plan { display: flex; flex-direction: column; padding: 1.8rem 1.6rem 1.7rem; }
.plan:hover { transform: translateY(-4px); box-shadow: inset 0 1px 0 var(--glass-line), var(--shadow-md); }
.plan-feature { background: var(--ink); border-color: var(--ink); box-shadow: var(--shadow-md); }
.plan-feature .plan-name { color: #fff; }
.plan-feature .plan-desc, .plan-feature .ticks li { color: rgba(255,255,255,0.66); }
.plan-feature .ticks li::before { background: rgba(255,255,255,0.38); }
.plan-feature .plan-tag { color: var(--ink); }
.plan-feature .gate-note { color: rgba(255,255,255,0.5); }
.plan-feature .price-was { color: rgba(255,255,255,0.42); }
.plan-feature .price-now { color: #fff; }
.plan-feature .price-per { color: rgba(255,255,255,0.55); }
.plan-feature .price-line { border-top-color: rgba(255,255,255,0.14); }
/* on the dark card the outline button needs real contrast */
.plan-feature .btn-outline {
  background: #fff; color: var(--ink); border-color: #fff; backdrop-filter: none;
}
.plan-feature .btn-outline:hover { background: #f2f2ef; border-color: #f2f2ef; }

.plan-tag { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 2px;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 0.85rem; }
.plan-tag-hot { display: inline-block; align-self: flex-start; background: #fff;
  padding: 0.24rem 0.62rem; border-radius: 100px; }
.plan-name { font-size: 1.24rem; font-weight: 600; letter-spacing: -0.5px; margin-bottom: 0.45rem; }
.plan-desc { font-size: 0.88rem; color: var(--ink-2); margin-bottom: 1.15rem; }

.ticks { display: flex; flex-direction: column; gap: 0.48rem; margin-bottom: 1.4rem; }
.ticks li { position: relative; padding-left: 1.05rem; font-size: 0.85rem; color: var(--ink-2); }
.ticks li::before { content: ''; position: absolute; left: 0; top: 0.62em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--ink-4); }

/* price gate — hidden until intent */
.price-line { margin-top: auto; padding-top: 1.1rem; border-top: 1px solid var(--line-2); }
.gate-note { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 0.8rem; display: block; }
.price-reveal { display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap;
  margin-bottom: 0.9rem;
  animation: priceIn 0.5s var(--ease); }
@keyframes priceIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.price-was { font-size: 0.95rem; color: var(--ink-4); text-decoration: line-through; }
.price-now { font-size: 1.95rem; font-weight: 600; letter-spacing: -1.1px; }
.price-per { font-family: var(--mono); font-size: 0.66rem; color: var(--ink-3); }
.price-save {
  font-family: var(--mono); font-size: 0.56rem; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase; background: var(--accent); color: var(--on-accent);
  padding: 0.2rem 0.55rem; border-radius: 5px;
}
.plan-feature .price-save { background: #fff; color: var(--ink); }

.ai-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding: 1.7rem 1.9rem; border-radius: var(--r-lg);
  background: var(--glass); border: 1px solid var(--line-2);
  backdrop-filter: blur(26px) saturate(180%); -webkit-backdrop-filter: blur(26px) saturate(180%);
  box-shadow: inset 0 1px 0 var(--glass-line), var(--shadow-sm);
  flex-wrap: wrap; margin-top: 1.1rem;
}
.ai-strip h3 { font-size: 1.14rem; font-weight: 600; letter-spacing: -0.4px; margin: 0.4rem 0 0.35rem; }
.ai-strip p { font-size: 0.88rem; color: var(--ink-2); max-width: 60ch; }

.faq { display: grid; gap: 0.7rem; margin-top: 1.1rem; }
.faq details {
  background: var(--glass); border: 1px solid var(--line-2); border-radius: var(--r-md);
  padding: 1.05rem 1.3rem; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.faq summary { font-weight: 550; font-size: 0.94rem; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.2rem; color: var(--ink-3); transition: transform 0.3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { font-size: 0.88rem; color: var(--ink-2); margin-top: 0.7rem; }

/* ══════════ WORK ══════════ */
.work-hero { display: grid; grid-template-columns: 1.1fr 1fr; overflow: hidden; margin-bottom: 1.1rem; }
.work-hero:hover { transform: translateY(-4px); box-shadow: inset 0 1px 0 var(--glass-line), var(--shadow-lg); }
.work-hero .shot { overflow: hidden; border-right: 1px solid var(--line-2); background: var(--paper-2); }
.work-hero .shot img { width: 100%; height: 100%; min-height: 320px; object-fit: cover;
  object-position: top left; transition: transform 0.8s var(--ease); }
.work-hero:hover .shot img { transform: scale(1.03); }
.work-body { padding: 1.9rem 1.9rem 1.7rem; }
.work-body h3 { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.8px; margin: 0.45rem 0 0.2rem; }
.work-role { font-family: var(--mono); font-size: 0.65rem; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 0.8rem; }
.work-desc { font-size: 0.9rem; color: var(--ink-2); margin-bottom: 1.05rem; }

.feat-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem 1rem;
  padding-top: 1.05rem; border-top: 1px solid var(--line-2); margin-bottom: 1.2rem; }
.feat-list li { position: relative; padding-left: 0.95rem; font-size: 0.79rem; color: var(--ink-2); }
.feat-list li::before { content: ''; position: absolute; left: 0; top: 0.56em;
  width: 4px; height: 4px; border-radius: 50%; background: var(--accent); opacity: 0.65; }

.work-card { overflow: hidden; display: flex; flex-direction: column; }
.work-card:hover { transform: translateY(-4px); box-shadow: inset 0 1px 0 var(--glass-line), var(--shadow-md); }
.work-card .shot { overflow: hidden; background: var(--paper-2); }
.work-card .shot img { width: 100%; aspect-ratio: 16/10; object-fit: cover; object-position: top;
  transition: transform 0.8s var(--ease); }
.work-card:hover .shot img { transform: scale(1.035); }
.wc-body { padding: 1.35rem 1.45rem 1.45rem; }
.wc-body h3 { font-size: 1.08rem; font-weight: 600; letter-spacing: -0.4px; margin-bottom: 0.15rem; }
.wc-role { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 0.6rem; }
.wc-body p.d { font-size: 0.85rem; color: var(--ink-2); margin-bottom: 0.85rem; }

@media (max-width: 900px) {
  .work-hero { grid-template-columns: 1fr; }
  .work-hero .shot { border-right: none; border-bottom: 1px solid var(--line-2); }
  .work-hero .shot img { min-height: 230px; }
}
@media (max-width: 520px) { .feat-list { grid-template-columns: 1fr; } }

/* ══════════ PORTFOLIO (recruiters) ══════════ */
.pf-hero { display: grid; grid-template-columns: 1fr auto; gap: 2.4rem; align-items: end; }
@media (max-width: 800px) { .pf-hero { grid-template-columns: 1fr; } }
.pf-hero h1 { font-size: clamp(2rem,4.6vw,3.1rem); font-weight: 600; letter-spacing: -1.6px; line-height: 1.08; }
.pf-hero .lede { font-size: 1.04rem; color: var(--ink-2); max-width: 58ch; margin-top: 1.1rem; }
.pf-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.4rem; }
.pf-meta span {
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 1px;
  padding: 0.35rem 0.75rem; border: 1px solid var(--line); border-radius: 100px;
  background: #fff; color: var(--ink-2);
}
.pf-sign { text-align: center; }
.pf-sign img { height: 96px; transform: rotate(-1.5deg); }
.pf-sign figcaption {
  font-family: 'Caveat', cursive;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink-2);
  margin-top: -0.35em;
}

/* case study */
.case { overflow: hidden; }
.case-head { padding: 1.7rem 1.9rem 1.4rem; border-bottom: 1px solid var(--line-2); }
.case-head h3 { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.7px; margin: 0.4rem 0 0.3rem; }
.case-head p { font-size: 0.93rem; color: var(--ink-2); max-width: 68ch; }
.case-shot { border-bottom: 1px solid var(--line-2); background: var(--paper-2); }
.case-shot img { width: 100%; aspect-ratio: 21/8; object-fit: cover; object-position: top; }

.case-grid { display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 820px) { .case-grid { grid-template-columns: 1fr; } }
.case-block { padding: 1.5rem 1.9rem 1.6rem; border-top: 1px solid var(--line-2); }
.case-block:nth-child(odd) { border-right: 1px solid var(--line-2); }
@media (max-width: 820px) { .case-block:nth-child(odd) { border-right: none; } }
.case-block h4 {
  font-family: var(--mono); font-size: 0.64rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--accent-ink); margin-bottom: 0.75rem;
}
.case-block li { position: relative; padding-left: 1.05rem; font-size: 0.86rem;
  color: var(--ink-2); margin-bottom: 0.5rem; }
.case-block li::before { content: ''; position: absolute; left: 0; top: 0.6em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--ink-4); }
.case-block li strong { color: var(--ink); font-weight: 550; }

.case-foot { padding: 1.3rem 1.9rem 1.6rem; border-top: 1px solid var(--line-2);
  display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap; }

/* skills matrix */
.skills { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.1rem; }
@media (max-width: 900px) { .skills { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .skills { grid-template-columns: 1fr; } }
.skill-col { padding: 1.4rem 1.4rem 1.5rem; }
.skill-col h4 { font-family: var(--mono); font-size: 0.63rem; letter-spacing: 2px;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 0.9rem; }
.skill-col li { font-size: 0.87rem; color: var(--ink-2); padding: 0.28rem 0;
  border-bottom: 1px solid var(--line-2); }
.skill-col li:last-child { border-bottom: none; }

/* timeline */
.tl { position: relative; padding-left: 1.6rem; }
.tl::before { content: ''; position: absolute; left: 5px; top: 6px; bottom: 6px;
  width: 1.5px; background: var(--line); }
.tl-item { position: relative; padding-bottom: 1.5rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ''; position: absolute; left: -1.6rem; top: 0.45em;
  width: 11px; height: 11px; border-radius: 50%; background: #fff;
  border: 2px solid var(--accent); }
.tl-when { font-family: var(--mono); font-size: 0.63rem; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--ink-3); }
.tl-item h4 { font-size: 1rem; font-weight: 600; letter-spacing: -0.3px; margin: 0.15rem 0 0.3rem; }
.tl-item p { font-size: 0.87rem; color: var(--ink-2); }

/* project rows */
.proj-row {
  display: grid; grid-template-columns: auto 1fr auto; gap: 1.2rem; align-items: center;
  padding: 1.15rem 0; border-bottom: 1px solid var(--line-2);
  transition: padding-left 0.35s var(--ease);
}
.proj-row:hover { padding-left: 0.6rem; }
.proj-row:last-child { border-bottom: none; }
.proj-n { font-family: var(--mono); font-size: 0.66rem; color: var(--ink-4); }
.proj-row h4 { font-size: 1.02rem; font-weight: 600; letter-spacing: -0.3px; }
.proj-row p { font-size: 0.85rem; color: var(--ink-2); margin-top: 0.15rem; }
.proj-tags { display: flex; gap: 0.35rem; flex-wrap: wrap; margin-top: 0.45rem; }
.proj-tags span { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.6px;
  color: var(--ink-3); border: 1px solid var(--line); border-radius: 100px; padding: 0.16rem 0.55rem; }
.proj-go { color: var(--ink-3); transition: color 0.2s, transform 0.3s var(--ease); }
.proj-row:hover .proj-go { color: var(--accent); transform: translate(2px,-2px); }
@media (max-width: 640px) { .proj-row { grid-template-columns: auto 1fr; } .proj-go { display: none; } }

/* ══════════ CONTACT / FOOT ══════════ */
.contact-panel {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; padding: 2rem; flex-wrap: wrap;
}
.contact-panel h3 { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.7px; margin: 0.4rem 0 0.3rem; }
.contact-panel .lede { font-size: 0.93rem; color: var(--ink-2); }
.contact-links { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.socials { display: flex; gap: 0.4rem; }
.socials a {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  transition: color 0.2s, border-color 0.2s, transform 0.3s var(--ease);
}
.socials a:hover { color: var(--ink); border-color: rgba(16,16,16,0.24); transform: translateY(-2px); }
@media (max-width: 560px) { .contact-links { width: 100%; } .contact-links .btn { width: 100%; } }

.site-foot {
  border-top: 1px solid var(--line-2); margin-top: clamp(2.6rem,6vw,4rem);
  padding: 1.8rem 0 2.2rem;
}
.foot-in { display: flex; align-items: center; justify-content: space-between;
  gap: 1.2rem; flex-wrap: wrap; }
.foot-word {
  font-family: 'Caveat', cursive;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: 0.5px;
}
.foot-meta { font-family: var(--mono); font-size: 0.63rem; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--ink-4); text-align: right; }

/* ══════════ BOTTOM DOCK ══════════ */
.dock {
  position: fixed; bottom: 1.05rem; left: 50%; transform: translateX(-50%);
  z-index: 300; display: flex; align-items: center; gap: 0.15rem; padding: 0.38rem;
  border-radius: 100px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(16,16,16,0.08);
  backdrop-filter: blur(30px) saturate(190%); -webkit-backdrop-filter: blur(30px) saturate(190%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 2px 8px rgba(16,16,16,0.06),
              0 16px 40px rgba(16,16,16,0.13);
}
.dock-btn {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 0.52rem 1rem; border-radius: 100px; color: var(--ink-3);
  transition: color 0.25s, background 0.25s; min-width: 64px;
}
.dock-btn span { font-family: var(--mono); font-size: 0.57rem; letter-spacing: 1px; text-transform: uppercase; }
.dock-btn:hover { color: var(--ink-2); }
.dock-btn[aria-current="page"] { color: var(--ink); background: rgba(16,16,16,0.055); }
.dock-cta { background: var(--ink); color: #fff; margin-left: 0.2rem; }
.dock-cta:hover { color: #fff; opacity: 0.9; }
@media (max-width: 600px) {
  :root { --dock-h: 84px; }
  .dock { width: calc(100% - 1.5rem); justify-content: space-between; gap: 0; padding: 0.32rem; }
  .dock-btn { flex: 1; min-width: 0; padding: 0.48rem 0.4rem; }
  .dock-btn span { font-size: 0.51rem; letter-spacing: 0.4px; }
}

/* ══════════ REVEAL ══════════ */
.rv { opacity: 0; transform: translateY(15px); transition: opacity .65s var(--ease), transform .65s var(--ease); }
.rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .rv { opacity: 1; transform: none; }
  .scribble path { stroke-dashoffset: 0; }
}


/* ══════════════════════════════════════════════
   SERVICES — spec sheet
   ══════════════════════════════════════════════ */
.spec {
  margin-top: clamp(2.2rem, 5vw, 3.2rem);
  border-top: 1.5px solid var(--ink);
}
.spec-row {
  display: grid;
  grid-template-columns: 82px 1fr 208px;
  gap: clamp(1rem, 3vw, 2.2rem);
  padding: clamp(1.5rem, 3vw, 2.1rem) 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background 0.35s var(--ease);
}
.spec-row::before {
  content: ''; position: absolute; left: -1.2rem; right: -1.2rem; top: 0; bottom: 0;
  background: var(--paper-2); border-radius: 14px; opacity: 0; z-index: -1;
  transition: opacity 0.35s var(--ease);
}
.spec-row:hover::before { opacity: 1; }

.spec-idx { display: flex; flex-direction: column; gap: 0.5rem; }
.spec-idx span {
  font-family: var(--mono); font-size: 1.5rem; font-weight: 500;
  color: var(--ink-4); letter-spacing: -1px; line-height: 1;
}
.spec-row:hover .spec-idx span { color: var(--accent-ink); }
.spec-flag {
  font-family: var(--mono); font-style: normal; font-size: 0.54rem; font-weight: 700;
  letter-spacing: 1.4px; text-transform: uppercase;
  background: var(--ink); color: #fff; padding: 0.2rem 0.5rem;
  border-radius: 4px; align-self: flex-start; white-space: nowrap;
}
.spec-flag-quiet { background: var(--paper-3); color: var(--ink-2); }
.spec-flag-hot { background: var(--accent); color: var(--on-accent); }

.spec-name {
  font-size: clamp(1.35rem, 3vw, 1.85rem); font-weight: 600;
  letter-spacing: -0.9px; line-height: 1.1; margin-bottom: 0.45rem;
}
.spec-desc { font-size: 0.92rem; color: var(--ink-2); max-width: 56ch; margin-bottom: 0.9rem; }
.spec-feats { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.spec-feats li {
  font-family: var(--mono); font-size: 0.63rem; letter-spacing: 0.4px;
  color: var(--ink-2); background: #fff; border: 1px solid var(--line);
  border-radius: 100px; padding: 0.24rem 0.68rem;
}
.spec-row-dark .spec-feats li { background: var(--paper-2); }

.spec-act { display: flex; flex-direction: column; align-items: stretch; gap: 0.5rem; justify-content: center; }
.spec-gate {
  font-family: var(--mono); font-size: 0.58rem; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--ink-3); text-align: center;
}
.spec-act .btn { width: 100%; }

/* revealed price inside a spec row */
.spec-price {
  display: flex; align-items: baseline; justify-content: center; gap: 0.42rem;
  flex-wrap: wrap; margin-bottom: 0.1rem;
  animation: priceIn 0.45s var(--ease);
}
.spec-price .price-was { font-size: 0.85rem; }
.spec-price .price-now { font-size: 1.5rem; }

.spec-note {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.6rem; flex-wrap: wrap;
  margin-top: 2rem; padding: 1.5rem 1.7rem;
  border-radius: var(--r-lg); background: var(--paper-2);
  border: 1px solid var(--line-2);
}
.spec-note p { font-size: 0.94rem; color: var(--ink-2); max-width: 60ch; }
.spec-note strong { color: var(--ink); font-weight: 600; }

@media (max-width: 900px) {
  .spec-row { grid-template-columns: 54px 1fr; }
  .spec-idx { flex-direction: row; align-items: center; gap: 0.5rem; }
  .spec-idx span { font-size: 1.15rem; }
  .spec-act { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; margin-top: 0.9rem; }
  .spec-act .btn { width: auto; flex: 1 1 auto; }
  .spec-gate { text-align: left; width: 100%; }
  .spec-price { justify-content: flex-start; width: 100%; }
}

/* ══════════════════════════════════════════════
   BOOKING
   ══════════════════════════════════════════════ */
.book-head { max-width: 680px; }
.book-grid {
  display: grid; grid-template-columns: 1.6fr 1fr;
  gap: 1.4rem; margin-top: clamp(2rem, 4vw, 2.8rem);
  align-items: start;
}
@media (max-width: 940px) { .book-grid { grid-template-columns: 1fr; } }

.book-form { padding: clamp(1.4rem, 3vw, 2rem); }
.bk-block { border: none; padding: 0; margin: 0 0 1.8rem; }
.bk-block:last-of-type { margin-bottom: 1.2rem; }
.bk-legend {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 1rem; font-weight: 600; letter-spacing: -0.3px;
  margin-bottom: 0.95rem; padding: 0;
}
.bk-step {
  font-family: var(--mono); font-size: 0.58rem; font-weight: 700; letter-spacing: 1px;
  background: var(--ink); color: #fff; border-radius: 5px;
  padding: 0.22rem 0.44rem;
}

/* service picker */
.bk-picks { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
@media (max-width: 560px) { .bk-picks { grid-template-columns: 1fr; } }
.bk-pick { position: relative; display: block; cursor: pointer; }
.bk-pick input {
  position: absolute; opacity: 0; width: 0; height: 0;
}
.bk-pick-in {
  display: block; padding: 0.85rem 1rem;
  border: 1.5px solid var(--line); border-radius: 14px;
  background: #fff; transition: border-color 0.2s, background 0.2s, transform 0.25s var(--ease);
}
.bk-pick:hover .bk-pick-in { border-color: var(--ink-4); transform: translateY(-1px); }
.bk-pick input:checked + .bk-pick-in {
  border-color: var(--ink); background: var(--ink);
  box-shadow: var(--shadow-sm);
}
.bk-pick input:focus-visible + .bk-pick-in { outline: 2px solid var(--accent); outline-offset: 2px; }
.bk-pick-name { display: block; font-size: 0.92rem; font-weight: 550; letter-spacing: -0.2px; }
.bk-pick-note { display: block; font-size: 0.76rem; color: var(--ink-3); margin-top: 0.1rem; }
.bk-pick input:checked + .bk-pick-in .bk-pick-name { color: #fff; }
.bk-pick input:checked + .bk-pick-in .bk-pick-note { color: rgba(255,255,255,0.6); }

/* fields */
.bk-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; margin-bottom: 0.9rem; }
@media (max-width: 560px) { .bk-row { grid-template-columns: 1fr; } }
.bk-field { display: flex; flex-direction: column; gap: 0.35rem; }
.bk-field label { font-size: 0.8rem; font-weight: 550; color: var(--ink-2); }
.bk-field label span { color: var(--accent-ink); }
.bk-field input, .bk-field select, .bk-field textarea {
  font-family: var(--sans); font-size: 0.92rem; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: 12px;
  padding: 0.72rem 0.9rem; width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none; appearance: none;
}
.bk-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a8b86' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.9rem center;
  padding-right: 2.2rem; cursor: pointer;
}
.bk-field textarea { resize: vertical; min-height: 118px; line-height: 1.6; }
.bk-field input::placeholder, .bk-field textarea::placeholder { color: var(--ink-4); }
.bk-field input:focus, .bk-field select:focus, .bk-field textarea:focus {
  outline: none; border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(16,16,16,0.06);
}
.bk-field.invalid input, .bk-field.invalid textarea { border-color: var(--accent); }

.bk-err { display: none; font-size: 0.76rem; color: var(--accent-ink); margin-top: 0.1rem; }
.bk-field.invalid .bk-err, .bk-block.invalid > .bk-err { display: block; }

.bk-submit { border-top: 1px solid var(--line-2); padding-top: 1.2rem; }
.bk-fineprint { font-size: 0.78rem; color: var(--ink-3); text-align: center; margin-top: 0.7rem; }
.bk-status { font-size: 0.86rem; text-align: center; margin-top: 0.7rem; font-weight: 500; }
.bk-status.ok  { color: #1f6b3f; }
.bk-status.bad { color: var(--accent-ink); }

/* success panel */
.bk-done { text-align: center; padding: clamp(2rem,5vw,3rem) 1.4rem; }
.bk-done-ico {
  width: 54px; height: 54px; margin: 0 auto 1.1rem; border-radius: 50%;
  background: #eaf5ee; color: #1f6b3f; display: flex; align-items: center; justify-content: center;
}
.bk-done h2 { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.7px; margin-bottom: 0.5rem; }
.bk-done p { font-size: 0.94rem; color: var(--ink-2); max-width: 44ch; margin: 0 auto 1.4rem; }

/* aside */
.book-aside { display: flex; flex-direction: column; gap: 1rem; }
.bk-side { padding: 1.4rem 1.5rem 1.5rem; }
.bk-steps { counter-reset: bk; display: flex; flex-direction: column; gap: 0.8rem; margin-top: 0.9rem; }
.bk-steps li {
  position: relative; padding-left: 1.9rem; font-size: 0.87rem; color: var(--ink-2);
  counter-increment: bk;
}
.bk-steps li::before {
  content: counter(bk); position: absolute; left: 0; top: 0.05em;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--paper-3); color: var(--ink);
  font-family: var(--mono); font-size: 0.6rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.bk-steps strong { color: var(--ink); font-weight: 600; }
.bk-side-p { font-size: 0.87rem; color: var(--ink-2); margin: 0.5rem 0 1rem; }
.bk-call { display: block; text-align: center; margin-top: 0.7rem;
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 1px; color: var(--ink-3); }
.bk-call:hover { color: var(--ink); }

/* ══════════════════════════════════════════════
   HERO — modern UI layer
   ══════════════════════════════════════════════ */
.hero { position: relative; overflow: hidden; }

/* fine dot-grid, fading out toward the edges */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none; z-index: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(16,16,16,0.09) 1px, transparent 0);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 76% 70% at 50% 40%, #000 26%, transparent 78%);
          mask-image: radial-gradient(ellipse 76% 70% at 50% 40%, #000 26%, transparent 78%);
}
.hero > * { position: relative; z-index: 1; }

/* soft amber bloom behind the headline */
.hero-glow {
  position: absolute;
  width: min(620px, 70vw); aspect-ratio: 1;
  top: -16%; left: 50%; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(43,74,203,0.13), transparent 66%);
  filter: blur(60px);
  pointer-events: none; z-index: 0;
}

.hero-badge i { animation: livePulse 2.4s ease-in-out infinite; }
@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(124,151,245,0.30); }
  50%      { box-shadow: 0 0 0 6px rgba(124,151,245,0.00); }
}

/* animated stat counters */
.stats div strong { font-variant-numeric: tabular-nums; }

/* trust marquee */
.trust {
  margin-top: clamp(2rem, 4vw, 2.8rem);
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  padding: 0.95rem 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.trust-track {
  display: flex; align-items: center; gap: 2.6rem;
  width: max-content;
  animation: trustRun 34s linear infinite;
}
.trust:hover .trust-track { animation-play-state: paused; }
@keyframes trustRun { to { transform: translateX(-50%); } }
.trust-item {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 1.7px;
  text-transform: uppercase; color: var(--ink-3); white-space: nowrap;
}
.trust-item b { color: var(--ink-2); font-weight: 500; }
.trust-item::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
}

/* ══════════════════════════════════════════════
   REVIEWS
   ══════════════════════════════════════════════ */
.rev-wrap {
  display: grid; grid-template-columns: 300px 1fr;
  gap: clamp(1.4rem, 3vw, 2.6rem);
  align-items: start;
}
@media (max-width: 940px) { .rev-wrap { grid-template-columns: 1fr; } }

/* aggregate score panel */
.rev-score {
  position: sticky; top: 130px;
  padding: 1.7rem 1.6rem 1.8rem;
  background: var(--ink); color: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
@media (max-width: 940px) { .rev-score { position: relative; top: auto; } }
.rev-score::after {
  content: ''; position: absolute; right: -34%; top: -38%;
  width: 74%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(124,151,245,0.38), transparent 68%);
  pointer-events: none;
}
.rev-score-num {
  font-size: 3.6rem; font-weight: 600; letter-spacing: -2.6px;
  line-height: 1; display: flex; align-items: baseline; gap: 0.2rem;
}
.rev-score-num small { font-size: 1.1rem; font-weight: 400; color: rgba(255,255,255,0.42); letter-spacing: -0.5px; }
.rev-score .stars { margin: 0.75rem 0 0.6rem; }
.rev-score-meta {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 1.5px;
  text-transform: uppercase; color: rgba(255,255,255,0.5);
}
.rev-bars { margin-top: 1.3rem; display: flex; flex-direction: column; gap: 0.42rem; }
.rev-bar { display: flex; align-items: center; gap: 0.5rem; }
.rev-bar span {
  font-family: var(--mono); font-size: 0.58rem; color: rgba(255,255,255,0.42);
  width: 12px; flex-shrink: 0;
}
.rev-bar i {
  flex: 1; height: 4px; border-radius: 100px;
  background: rgba(255,255,255,0.13); overflow: hidden; display: block;
}
.rev-bar i::after {
  content: ''; display: block; height: 100%; width: var(--w, 0%);
  background: var(--accent-lift); border-radius: 100px;
  transition: width 1s var(--ease);
}

/* staggered review cards */
.rev-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 700px) { .rev-grid { grid-template-columns: 1fr; } }
.rev-grid > *:nth-child(even) { transform: translateY(24px); }
@media (max-width: 700px) { .rev-grid > *:nth-child(even) { transform: none; } }

.rev-card {
  position: relative;
  padding: 1.5rem 1.5rem 1.4rem;
  background: var(--glass);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: inset 0 1px 0 var(--glass-line), var(--shadow-sm);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.3s;
}
.rev-card:hover {
  border-color: rgba(16,16,16,0.14);
  box-shadow: inset 0 1px 0 var(--glass-line), var(--shadow-md);
}
.rev-grid > *:nth-child(even):hover { transform: translateY(18px); }
.rev-grid > *:nth-child(odd):hover  { transform: translateY(-6px); }
@media (max-width: 700px) {
  .rev-grid > *:nth-child(even):hover,
  .rev-grid > *:nth-child(odd):hover { transform: translateY(-4px); }
}

.rev-mark {
  position: absolute; top: 0.9rem; right: 1.2rem;
  font-family: Georgia, serif; font-size: 3.4rem; line-height: 1;
  color: var(--accent); opacity: 0.28; pointer-events: none;
}
.rev-quote {
  font-size: 0.95rem; line-height: 1.65; color: var(--ink);
  margin: 0.9rem 0 1.2rem; position: relative;
}
.rev-who { display: flex; align-items: center; gap: 0.7rem; padding-top: 0.9rem; border-top: 1px solid var(--line-2); }
.rev-av {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: var(--paper-3); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.5px;
}
.rev-name { font-size: 0.88rem; font-weight: 600; letter-spacing: -0.2px; }
.rev-role { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--ink-3); margin-top: 0.1rem; }
.rev-verified {
  margin-left: auto; display: inline-flex; align-items: center; gap: 0.3rem;
  font-family: var(--mono); font-size: 0.54rem; letter-spacing: 1px;
  text-transform: uppercase; color: var(--ink-3); white-space: nowrap;
}
.rev-verified svg { color: var(--accent-ink); flex-shrink: 0; }

/* ── stars ── */
.stars { display: inline-flex; align-items: center; gap: 2px; }
.stars svg { width: 15px; height: 15px; display: block; flex-shrink: 0; }
.stars svg path { fill: var(--accent); }
.stars .star-empty path { fill: rgba(16,16,16,0.14); }
.rev-score .stars svg path { fill: var(--accent-lift); }
.rev-score .stars .star-empty path { fill: rgba(255,255,255,0.2); }
.stars-lg svg { width: 19px; height: 19px; }

/* the generic `.stars svg path` fill would override the inline gradient,
   so the half star needs a more specific rule */
.stars .star-half path { fill: url(#halfStar); }

/* four capability cards */
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px)  { .grid-4 { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════════════
   GROWTH — animated charts
   ══════════════════════════════════════════════ */
.growth { margin-top: clamp(2.4rem, 5vw, 3.4rem); }

.growth-panel {
  position: relative;
  background: var(--ink);
  border-radius: var(--r-lg);
  padding: clamp(1.6rem, 3.4vw, 2.4rem);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.growth-panel::after {
  content: ''; position: absolute; right: -18%; top: -46%;
  width: 62%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(124,151,245,0.34), transparent 68%);
  pointer-events: none;
}
.growth-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1.4rem; flex-wrap: wrap; margin-bottom: 1.5rem; position: relative; z-index: 1;
}
.growth-head h3 {
  font-size: clamp(1.2rem, 2.4vw, 1.55rem); font-weight: 600;
  letter-spacing: -0.6px; color: #fff; margin-top: 0.4rem;
}
.growth-head p { font-size: 0.9rem; color: rgba(255,255,255,0.55); max-width: 46ch; margin-top: 0.35rem; }
.growth-delta {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: var(--accent); color: var(--on-accent);
  font-family: var(--mono); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.4px; padding: 0.45rem 0.85rem; border-radius: 100px;
  white-space: nowrap;
}
.growth-delta svg { display: block; }

/* the chart */
.chart { position: relative; z-index: 1; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-grid line { stroke: rgba(255,255,255,0.09); stroke-width: 1; }
.chart-area { fill: url(#growthFill); opacity: 0; transition: opacity 1.1s ease 0.35s; }
.chart-line {
  fill: none; stroke: url(#growthStroke); stroke-width: 3;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1400; stroke-dashoffset: 1400;
  transition: stroke-dashoffset 1.9s cubic-bezier(0.22,1,0.36,1);
}
/* real circular pin — immune to the SVG's non-uniform stretch */
.chart-plot { position: relative; }
.chart-pin {
  position: absolute;
  left: 98.3%; top: 8.6%;
  width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px;
  border-radius: 50%; background: var(--accent-lift);
  border: 2.5px solid var(--ink);
  opacity: 0; transition: opacity 0.5s ease 1.4s;
  pointer-events: none;
}
.chart-pin i {
  position: absolute; inset: -3px; border-radius: 50%;
  background: var(--accent-lift); opacity: 0.3;
  animation: dotPulse 2.4s ease-out infinite;
}
@keyframes dotPulse {
  0%   { transform: scale(0.7); opacity: 0.45; }
  70%  { transform: scale(2.4); opacity: 0; }
  100% { transform: scale(2.4); opacity: 0; }
}
.chart.in .chart-area { opacity: 1; }
.chart.in .chart-line { stroke-dashoffset: 0; }
.chart.in .chart-pin { opacity: 1; }

.chart-axis {
  display: flex; justify-content: space-between;
  margin-top: 0.7rem; padding-top: 0.7rem;
  border-top: 1px solid rgba(255,255,255,0.09);
}
.chart-axis span {
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 1.4px;
  text-transform: uppercase; color: rgba(255,255,255,0.4);
}
.chart-axis span:last-child { color: var(--accent-lift); }

/* metric cards with sparklines */
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.1rem; }
@media (max-width: 820px) { .metrics { grid-template-columns: 1fr; } }
.metric {
  padding: 1.3rem 1.4rem 1.2rem;
  background: var(--glass); border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: inset 0 1px 0 var(--glass-line), var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.metric:hover { transform: translateY(-3px); box-shadow: inset 0 1px 0 var(--glass-line), var(--shadow-md); }
.metric-top { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; }
.metric-label {
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 1.6px;
  text-transform: uppercase; color: var(--ink-3);
}
.metric-trend {
  display: inline-flex; align-items: center; gap: 0.25rem;
  font-family: var(--mono); font-size: 0.62rem; font-weight: 700;
  color: var(--accent-ink);
}
.metric-val {
  font-size: 2rem; font-weight: 600; letter-spacing: -1.4px;
  margin: 0.45rem 0 0.1rem; font-variant-numeric: tabular-nums;
}
.metric-note { font-size: 0.8rem; color: var(--ink-2); }
.spark { display: block; width: 100%; height: 38px; margin-top: 0.8rem; overflow: visible; }
.spark path.l {
  fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round;
  stroke-dasharray: 300; stroke-dashoffset: 300;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.22,1,0.36,1) 0.2s;
}
.spark path.f { fill: url(#sparkFill); opacity: 0; transition: opacity 0.9s ease 0.5s; }
.metric.in .spark path.l { stroke-dashoffset: 0; }
.metric.in .spark path.f { opacity: 1; }

.growth-note {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 1px;
  color: var(--ink-3); margin-top: 1rem; text-align: center;
}

/* ══════════════════════════════════════════════
   ASK — chatbot
   ══════════════════════════════════════════════ */
.ask-fab {
  position: fixed; right: 1.3rem; bottom: calc(var(--dock-h) + 0.6rem);
  z-index: 320; width: 54px; height: 54px; border-radius: 50%;
  background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(16,16,16,0.28);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
.ask-fab:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 12px 34px rgba(16,16,16,0.34); }
.ask-fab .x { display: none; }
.ask-fab.open .chat { display: none; }
.ask-fab.open .x { display: block; }
.ask-fab::after {
  content: ''; position: absolute; top: 6px; right: 6px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent-lift); border: 2px solid var(--ink);
}

.ask-panel {
  position: fixed; right: 1.3rem; bottom: calc(var(--dock-h) + 4.4rem);
  z-index: 320; width: min(370px, calc(100vw - 2.6rem));
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--line);
  border-radius: 22px;
  backdrop-filter: blur(30px) saturate(180%); -webkit-backdrop-filter: blur(30px) saturate(180%);
  box-shadow: inset 0 1px 0 var(--glass-line), 0 24px 60px rgba(16,16,16,0.22);
  overflow: hidden;
  display: none; flex-direction: column;
  max-height: min(560px, calc(100vh - var(--dock-h) - 7rem));
}
.ask-panel.open { display: flex; animation: askIn 0.32s var(--ease); }
@keyframes askIn { from { opacity: 0; transform: translateY(14px) scale(0.97); } to { opacity: 1; transform: none; } }

.ask-head {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.95rem 1.1rem; border-bottom: 1px solid var(--line-2);
  background: rgba(255,255,255,0.6);
}
.ask-av {
  width: 34px; height: 34px; border-radius: 50%; background: var(--ink);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ask-av img { width: 22px; height: auto; filter: invert(1); }
.ask-title { font-size: 0.88rem; font-weight: 600; letter-spacing: -0.2px; }
.ask-status {
  display: flex; align-items: center; gap: 0.3rem;
  font-family: var(--mono); font-size: 0.56rem; letter-spacing: 1px;
  text-transform: uppercase; color: var(--ink-3);
}
.ask-status i { width: 5px; height: 5px; border-radius: 50%; background: #2f9e5f; }

.ask-body {
  flex: 1; overflow-y: auto; padding: 1rem;
  display: flex; flex-direction: column; gap: 0.6rem;
  scroll-behavior: smooth;
}
.ask-msg { max-width: 88%; font-size: 0.87rem; line-height: 1.55; }
.ask-msg.bot {
  align-self: flex-start; background: #fff; border: 1px solid var(--line-2);
  padding: 0.7rem 0.9rem; border-radius: 14px 14px 14px 4px;
  color: var(--ink);
}
.ask-msg.me {
  align-self: flex-end; background: var(--ink); color: #fff;
  padding: 0.7rem 0.9rem; border-radius: 14px 14px 4px 14px;
}
.ask-msg a { color: var(--accent-ink); text-decoration: underline; }
.ask-msg.bot strong { font-weight: 600; }

.ask-typing { display: flex; gap: 3px; align-self: flex-start; padding: 0.8rem 0.9rem;
  background: #fff; border: 1px solid var(--line-2); border-radius: 14px 14px 14px 4px; }
.ask-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-4);
  animation: askDot 1.2s ease-in-out infinite; }
.ask-typing i:nth-child(2) { animation-delay: 0.15s; }
.ask-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes askDot { 0%,60%,100% { opacity: 0.3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.ask-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; padding: 0 1rem 0.8rem; }
.ask-chip {
  font-size: 0.75rem; padding: 0.4rem 0.75rem; border-radius: 100px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
.ask-chip:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-1px); }

.ask-foot { display: flex; gap: 0.5rem; padding: 0.75rem; border-top: 1px solid var(--line-2);
  background: rgba(255,255,255,0.6); }
.ask-foot input {
  flex: 1; font-family: var(--sans); font-size: 0.87rem; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: 100px;
  padding: 0.6rem 0.95rem; outline: none; transition: border-color 0.2s;
}
.ask-foot input:focus { border-color: var(--ink); }
.ask-foot button {
  width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: opacity 0.2s, transform 0.2s;
}
.ask-foot button:hover { transform: scale(1.06); }

@media (max-width: 600px) {
  .ask-fab { right: 1rem; bottom: calc(var(--dock-h) + 0.5rem); width: 48px; height: 48px; }
  .ask-panel { right: 0.8rem; left: 0.8rem; width: auto; bottom: calc(var(--dock-h) + 3.8rem); }
}

/* ══════════════════════════════════════════════
   WORK — horizontal rows (Netflix-style, modernised)
   ══════════════════════════════════════════════ */
.rail { margin-top: clamp(2rem, 4vw, 3rem); }
.rail + .rail { margin-top: clamp(2.2rem, 4vw, 3.2rem); }

.rail-head {
  display: flex; align-items: baseline; gap: 0.8rem;
  margin-bottom: 1rem;
}
.rail-head h2 {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  font-weight: 600; letter-spacing: -0.5px;
}
.rail-count {
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 1.6px;
  text-transform: uppercase; color: var(--ink-3);
}
.rail-nav { margin-left: auto; display: flex; gap: 0.4rem; }
.rail-btn {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s, color 0.2s, transform 0.2s, opacity 0.2s;
}
.rail-btn:hover:not(:disabled) { border-color: var(--ink); color: var(--ink); transform: scale(1.06); }
.rail-btn:disabled { opacity: 0.3; cursor: default; }
@media (hover: none) { .rail-nav { display: none; } }

/* the scroller */
.rail-track {
  display: flex; gap: 1rem;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 0.4rem 0 1.2rem;
  /* let cards bleed to the page edges on small screens */
  margin-inline: calc(clamp(1.2rem, 4vw, 2.6rem) * -1);
  padding-inline: clamp(1.2rem, 4vw, 2.6rem);
  scroll-padding-inline: clamp(1.2rem, 4vw, 2.6rem);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent);
}
.rail-track::-webkit-scrollbar { display: none; }

.tile {
  position: relative; flex: 0 0 auto;
  width: clamp(250px, 30vw, 340px);
  scroll-snap-align: start;
  border-radius: 20px; overflow: hidden;
  background: var(--glass);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(22px) saturate(180%); -webkit-backdrop-filter: blur(22px) saturate(180%);
  box-shadow: inset 0 1px 0 var(--glass-line), var(--shadow-sm);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.3s;
}
.tile:hover {
  transform: translateY(-6px);
  border-color: rgba(16,16,16,0.15);
  box-shadow: inset 0 1px 0 var(--glass-line), var(--shadow-lg);
}
.rail-lg .tile { width: clamp(280px, 38vw, 430px); }

.tile-shot { position: relative; overflow: hidden; background: var(--paper-2); }
.tile-shot img {
  width: 100%; aspect-ratio: 16/10; object-fit: cover; object-position: top;
  display: block; transition: transform 0.8s var(--ease);
}
.tile:hover .tile-shot img { transform: scale(1.06); }
.tile-shot::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(16,16,16,0.5));
  opacity: 0; transition: opacity 0.4s ease;
}
.tile:hover .tile-shot::after { opacity: 1; }

/* floating status chip on the image */
.tile-chip {
  position: absolute; top: 0.7rem; left: 0.7rem; z-index: 2;
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-family: var(--mono); font-size: 0.54rem; font-weight: 700;
  letter-spacing: 1.2px; text-transform: uppercase;
  background: rgba(255,255,255,0.92); color: var(--ink);
  padding: 0.28rem 0.6rem; border-radius: 100px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.tile-chip i { width: 5px; height: 5px; border-radius: 50%; background: #2f9e5f; }
.tile-chip-own { background: var(--accent); }
.tile-chip-own i { background: #fff; }

/* reveal-on-hover CTA over the image */
.tile-open {
  position: absolute; left: 0.9rem; bottom: 0.9rem; z-index: 2;
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-family: var(--mono); font-size: 0.6rem; font-weight: 700;
  letter-spacing: 1.4px; text-transform: uppercase; color: #fff;
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s var(--ease);
}
.tile:hover .tile-open { opacity: 1; transform: none; }

.tile-body { padding: 1rem 1.15rem 1.15rem; }
.tile-title { font-size: 1rem; font-weight: 600; letter-spacing: -0.3px; }
.tile-role {
  font-family: var(--mono); font-size: 0.58rem; letter-spacing: 1.3px;
  text-transform: uppercase; color: var(--ink-3); margin-top: 0.15rem;
}
.tile-desc {
  font-size: 0.83rem; color: var(--ink-2); line-height: 1.55;
  margin-top: 0.55rem;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.tile-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.75rem; }
.tile-tags span {
  font-family: var(--mono); font-size: 0.55rem; letter-spacing: 0.5px;
  color: var(--ink-3); border: 1px solid var(--line); border-radius: 100px;
  padding: 0.16rem 0.5rem;
}

@media (max-width: 600px) {
  .tile { width: 78vw; }
  .rail-lg .tile { width: 84vw; }
}

/* ══════════════════════════════════════════════
   PORTFOLIO — Apple-style presentation
   ══════════════════════════════════════════════ */

/* full-height opening statement */
.pf-open {
  min-height: min(88vh, 760px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; position: relative;
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(2rem, 5vw, 3.5rem);
}
.pf-open h1 {
  font-size: clamp(2.3rem, 6.4vw, 4.6rem);
  font-weight: 600; letter-spacing: -2.6px; line-height: 1.03;
  max-width: 16ch;
}
.pf-open .grad {
  background: linear-gradient(92deg, #101010 0%, #38406b 45%, #2b4acb 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.pf-open .lede {
  font-size: clamp(1rem, 2.1vw, 1.2rem); color: var(--ink-2);
  max-width: 60ch; margin: 1.4rem auto 0; line-height: 1.62;
}
.pf-sig {
  margin-top: 2.4rem; display: inline-flex; flex-direction: column;
  align-items: center; gap: 0.15rem;
  padding-top: 1.4rem; border-top: 1px solid var(--line);
}
.pf-sig img { height: 46px; margin: 0 auto; opacity: 0.85; }
.pf-sig figcaption {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 1.6px;
  text-transform: uppercase; color: var(--ink-3);
}
.pf-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; justify-content: center; margin-top: 1.8rem; }
.pf-chips span {
  font-family: var(--mono); font-size: 0.63rem; letter-spacing: 1.1px;
  padding: 0.4rem 0.85rem; border: 1px solid var(--line); border-radius: 100px;
  background: #fff; color: var(--ink-2);
}
.pf-scroll {
  position: absolute; bottom: 0.6rem; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: 0.58rem; letter-spacing: 2px;
  text-transform: uppercase; color: var(--ink-4);
  display: flex; flex-direction: column; align-items: center; gap: 0.3rem;
}
.pf-scroll i { width: 1px; height: 26px; background: linear-gradient(var(--ink-4), transparent); }

/* chapter opener */
.chapter { text-align: center; max-width: 720px; margin: 0 auto clamp(2.2rem, 4vw, 3.2rem); }
.chapter h2 {
  font-size: clamp(1.8rem, 4.2vw, 3rem);
  font-weight: 600; letter-spacing: -1.6px; line-height: 1.08;
  margin: 0.7rem 0 0.7rem;
}
.chapter p { font-size: clamp(0.95rem, 1.9vw, 1.08rem); color: var(--ink-2); line-height: 1.62; }

/* hero shot with depth */
.pf-shot {
  border-radius: clamp(16px, 2.4vw, 26px);
  overflow: hidden; background: var(--paper-2);
  border: 1px solid var(--line-2);
  box-shadow: 0 30px 80px rgba(16,16,16,0.14), 0 6px 18px rgba(16,16,16,0.06);
  margin-bottom: clamp(1.2rem, 2.6vw, 2rem);
}
.pf-shot img { width: 100%; display: block; }

/* headline numbers */
.pf-figures {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line-2);
  border: 1px solid var(--line-2); border-radius: 20px; overflow: hidden;
  margin-bottom: clamp(1.2rem, 2.6vw, 2rem);
}
@media (max-width: 760px) { .pf-figures { grid-template-columns: 1fr 1fr; } }
.pf-fig { background: #fff; padding: 1.5rem 1.3rem; text-align: center; }
.pf-fig strong {
  display: block; font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 600;
  letter-spacing: -1.6px; line-height: 1; font-variant-numeric: tabular-nums;
}
.pf-fig span {
  display: block; margin-top: 0.4rem;
  font-family: var(--mono); font-size: 0.58rem; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--ink-3);
}

/* ── bento ── */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
@media (max-width: 900px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } }

.bx {
  grid-column: span 2;
  padding: 1.5rem 1.5rem 1.6rem;
  border-radius: 22px;
  background: var(--glass);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(22px) saturate(180%); -webkit-backdrop-filter: blur(22px) saturate(180%);
  box-shadow: inset 0 1px 0 var(--glass-line), var(--shadow-sm);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.bx:hover { transform: translateY(-4px); box-shadow: inset 0 1px 0 var(--glass-line), var(--shadow-md); }
@media (max-width: 900px) { .bx { grid-column: span 1 !important; } }

.bx-wide { grid-column: span 3; }
.bx-hero { grid-column: span 6; background: var(--ink); border-color: var(--ink); position: relative; overflow: hidden; }
.bx-hero::after {
  content: ''; position: absolute; right: -14%; top: -52%;
  width: 46%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(124,151,245,0.34), transparent 68%);
}
.bx-hero .bx-k { color: var(--accent-lift); }
.bx-hero .bx-t { color: #fff; font-size: clamp(1.15rem, 2.6vw, 1.6rem); letter-spacing: -0.7px; }
.bx-hero .bx-d { color: rgba(255,255,255,0.62); max-width: 62ch; }

.bx-k {
  font-family: var(--mono); font-size: 0.6rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; color: var(--accent-ink);
}
.bx-t { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.35px; margin: 0.55rem 0 0.4rem; }
.bx-d { font-size: 0.86rem; color: var(--ink-2); line-height: 1.6; }
.bx-d strong { color: var(--ink); font-weight: 600; }
.bx-hero .bx-d strong { color: #fff; }
.bx-list { margin-top: 0.7rem; display: flex; flex-direction: column; gap: 0.35rem; }
.bx-list li { position: relative; padding-left: 0.95rem; font-size: 0.84rem; color: var(--ink-2); }
.bx-list li::before { content: ''; position: absolute; left: 0; top: 0.6em;
  width: 4px; height: 4px; border-radius: 50%; background: var(--ink-4); }

/* ── tech specs ── */
.specs { border-top: 1px solid var(--ink); }
.spec-line {
  display: grid; grid-template-columns: 200px 1fr;
  gap: 1.4rem; padding: 1.15rem 0;
  border-bottom: 1px solid var(--line-2);
}
@media (max-width: 700px) { .spec-line { grid-template-columns: 1fr; gap: 0.35rem; } }
.spec-k {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 1.8px;
  text-transform: uppercase; color: var(--ink-3); padding-top: 0.15rem;
}
.spec-v { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.spec-v span {
  font-size: 0.87rem; color: var(--ink);
  background: var(--paper-2); border: 1px solid var(--line-2);
  border-radius: 100px; padding: 0.28rem 0.75rem;
}
