/* Public site styles. Mobile first; one small file, cached for a year (versioned by deploy). */

@font-face { font-family: 'Inter Tight'; src: url(/fonts/inter-tight-latin.woff2) format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url(/fonts/instrument-serif-italic.woff2) format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url(/fonts/jetbrains-mono-400.woff2) format('woff2'); font-weight: 400 500; font-style: normal; font-display: swap; }
/* Bangla text only: the browser downloads these only when a page contains Bangla characters. */
@font-face { font-family: 'Hind Siliguri'; src: url(/fonts/hind-siliguri-500.woff2) format('woff2'); font-weight: 400 500; font-display: swap; unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1; }
@font-face { font-family: 'Hind Siliguri'; src: url(/fonts/hind-siliguri-700.woff2) format('woff2'); font-weight: 600 800; font-display: swap; unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1; }

:root {
  --bg: #0a0a0b;
  --bg-2: #111113;
  --bg-3: #18181b;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --fg: #ededea;
  --muted: #9a9a9f;
  --dim: #66666b;
  --accent: #d6ff3d;
  --accent-ink: #0a0a0b;
  --danger: #ff6b6b;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1440px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --sans: 'Inter Tight', 'Hind Siliguri', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Instrument Serif', 'Hind Siliguri', Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  background: var(--bg); color: var(--fg); font-family: var(--sans); font-size: 16px; line-height: 1.5;
  overflow-x: clip; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.label { color: var(--dim); display: block; margin-bottom: 8px; }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { width: 100%; max-width: calc(720px + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
.arrow { width: 16px; height: 16px; flex: none; transition: transform .5s var(--ease); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 80; padding-top: env(safe-area-inset-top);
  background: rgba(10, 10, 11, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line); transition: transform .5s var(--ease);
}
.nav.hide { transform: translateY(-110%); }
.nav-inner { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { font-weight: 700; letter-spacing: -.03em; font-size: 19px; display: flex; align-items: baseline; gap: 2px; }
.logo .serif { color: var(--accent); font-size: 23px; }
.nav-links { display: none; gap: 28px; }
.nav-links a { position: relative; font-size: 14px; color: var(--muted); transition: color .3s; }
.nav-links a:hover, .nav-links a[aria-current='page'] { color: var(--fg); }
.nav-links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav-links a:hover::after, .nav-links a[aria-current='page']::after { transform: scaleX(1); transform-origin: left; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.cart-link { position: relative; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 50%; }
.cart-link svg { width: 19px; height: 19px; }
.cart-count { position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font: 600 11px/19px var(--sans); text-align: center; }
.menu-btn { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 6px 0 16px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13px; font-weight: 500; }
.menu-btn .dots { width: 30px; height: 30px; border-radius: 50%; background: var(--fg); position: relative; transition: background .3s, transform .5s var(--ease); }
.menu-btn .dots::before, .menu-btn .dots::after { content: ''; position: absolute; left: 9px; right: 9px; height: 1.5px; background: var(--bg); transition: transform .5s var(--ease); }
.menu-btn .dots::before { top: 12px; } .menu-btn .dots::after { bottom: 12px; }
.menu-open .menu-btn .dots { background: var(--accent); transform: rotate(180deg); }
.menu-open .menu-btn .dots::before { transform: translateY(2.25px) rotate(45deg); }
.menu-open .menu-btn .dots::after { transform: translateY(-2.25px) rotate(-45deg); }
@media (min-width: 900px) {
  .nav-links { display: flex; }
  .menu-btn { display: none; }
}

.menu {
  position: fixed; inset: 0; z-index: 70; background: var(--bg-2);
  display: flex; flex-direction: column; justify-content: space-between; overflow-y: auto;
  padding: calc(env(safe-area-inset-top) + 92px) var(--gutter) calc(env(safe-area-inset-bottom) + 28px);
  animation: menu-in .6s var(--ease);
}
@keyframes menu-in { from { clip-path: circle(0% at calc(100% - 40px) 32px); } to { clip-path: circle(150% at calc(100% - 40px) 32px); } }
.menu-list a {
  display: flex; align-items: baseline; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--line);
  font-size: clamp(42px, 13vw, 84px); font-weight: 600; letter-spacing: -.05em; line-height: 1.05;
  animation: rise .7s var(--ease) both;
}
.menu-list a:nth-child(2) { animation-delay: .05s; } .menu-list a:nth-child(3) { animation-delay: .1s; }
.menu-list a:nth-child(4) { animation-delay: .15s; } .menu-list a:nth-child(5) { animation-delay: .2s; }
.menu-list a sup { font-family: var(--mono); font-size: 11px; color: var(--accent); letter-spacing: .05em; font-weight: 400; }
.menu-list a[aria-current='page'], .menu-list a:active { color: var(--accent); }
.menu-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; color: var(--muted); margin-top: 32px; }
.menu-socials { display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: var(--fg); }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 22px;
  border-radius: 999px; font-size: 15px; font-weight: 500; overflow: hidden; isolation: isolate; white-space: nowrap;
  border: 1px solid var(--line-2); transition: color .5s var(--ease), border-color .5s, opacity .3s;
}
.btn::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--accent); transform: translateY(101%); transition: transform .6s var(--ease); }
.btn:hover:not(:disabled) { color: var(--accent-ink); border-color: var(--accent); }
.btn:hover:not(:disabled)::before { transform: none; }
.btn:hover .arrow { transform: rotate(45deg); }
.btn-solid { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn-static { pointer-events: none; color: var(--muted); }
.btn-wide { width: 100%; }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- hero ---------- */
.hero { min-height: calc(100svh - 64px); display: flex; flex-direction: column; justify-content: flex-end; padding-top: 28px; padding-bottom: 28px; position: relative; overflow-x: clip; }
.hero-glow { position: absolute; z-index: -1; width: 70vmax; height: 70vmax; right: -25vmax; top: -24vmax; border-radius: 50%; background: radial-gradient(closest-side, rgba(214, 255, 61, .13), rgba(214, 255, 61, 0) 70%); pointer-events: none; }
.hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: auto; }
.status { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 12px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13px; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
.status.off i { background: var(--dim); animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(214, 255, 61, .6); } 70% { box-shadow: 0 0 0 10px rgba(214, 255, 61, 0); } 100% { box-shadow: 0 0 0 0 rgba(214, 255, 61, 0); } }
.hero-index { text-align: right; color: var(--muted); line-height: 1.8; display: none; }
.hero-kicker { color: var(--muted); margin: 48px 0 14px; display: flex; gap: 12px; align-items: center; }
.hero-kicker::before { content: ''; width: 28px; height: 1px; background: var(--accent); flex: none; }
.hero-title { font-weight: 700; letter-spacing: -.065em; line-height: .86; font-size: clamp(60px, 20vw, 320px); margin-left: -.04em; text-transform: uppercase; }
.hero-title .row { display: block; overflow: hidden; padding-bottom: .04em; }
.hero-title .row > span { display: inline-block; animation: up 1.1s var(--ease) both; }
.hero-title .row:nth-child(2) > span { animation-delay: .07s; }
.hero-title .serif { text-transform: none; color: var(--accent); letter-spacing: -.03em; font-size: .9em; margin-left: .04em; }
@keyframes up { from { transform: translateY(105%); } to { transform: none; } }
.hero-bottom { display: grid; gap: 24px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); animation: rise 1s var(--ease) .25s both; }
.hero-bottom p { font-size: clamp(18px, 4.6vw, 24px); line-height: 1.35; letter-spacing: -.02em; max-width: 32ch; color: var(--muted); }
.hero-ctas { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
@media (min-width: 700px) { .hero-index { display: block; } }
@media (min-width: 900px) { .hero-bottom { grid-template-columns: 1.4fr 1fr; align-items: end; } .hero-ctas { justify-content: flex-end; } }

/* ---------- marquee ---------- */
.marquee { border-block: 1px solid var(--line); padding: 18px 0; overflow: hidden; }
.marquee-track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.marquee-track span { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; font-size: clamp(22px, 5vw, 44px); font-weight: 500; letter-spacing: -.03em; white-space: nowrap; }
.marquee-track span em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--muted); }
.marquee-track span::after { content: '✳'; color: var(--accent); font-size: .6em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.sec { padding: clamp(72px, 12vw, 160px) 0; }
.sec-tight { padding-top: 0; }
.page-top { padding-top: clamp(40px, 8vw, 96px); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: clamp(32px, 6vw, 72px); flex-wrap: wrap; }
.sec-label { display: flex; align-items: center; gap: 10px; color: var(--muted); margin-bottom: 16px; }
.sec-label b { color: var(--accent); font-weight: 500; }
.sec-title { font-size: clamp(44px, 11vw, 140px); font-weight: 600; letter-spacing: -.06em; line-height: .92; }
.sec-title .serif { color: var(--muted); }
.sec-aside { color: var(--muted); max-width: 34ch; font-size: 15px; }
.sec-more { margin-top: 32px; display: flex; justify-content: center; }
.lead { font-size: clamp(18px, 4.4vw, 22px); line-height: 1.45; letter-spacing: -.015em; color: var(--muted); max-width: 46ch; margin-top: 18px; }
.crumbs { color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--fg); }
.crumbs a:hover { color: var(--accent); }

/* Scroll reveals where the browser supports scroll-driven animations; nothing is ever hidden otherwise. */
@supports (animation-timeline: view()) {
  .card, .post-card, .product-card, .xp-row, .cap, .principles li {
    animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 40%;
  }
}

/* ---------- project cards ---------- */
.work-list { display: grid; gap: 24px; }
.card { --accent-p: var(--accent); position: relative; background: var(--bg-2); border: 1px solid var(--line); border-radius: clamp(20px, 3vw, 32px); overflow: hidden; display: grid; }
.card-visual { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-3); display: block; }
.card-visual img, .case-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover .card-visual img, .card:hover .gen-visual { transform: scale(1.035); }
.gen-visual {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 7%;
  background:
    radial-gradient(120% 90% at 15% 0%, color-mix(in srgb, var(--accent-p, var(--accent)) 85%, white 15%) 0%, var(--accent-p, var(--accent)) 30%, color-mix(in srgb, var(--accent-p, var(--accent)) 35%, black) 70%, #070708 100%);
  color: #0b0b0c; transition: transform 1.2s var(--ease); container-type: inline-size;
}
.gen-word { font-size: clamp(36px, 15cqw, 140px); font-weight: 700; letter-spacing: -.06em; line-height: .88; color: rgba(255, 255, 255, .95); mix-blend-mode: overlay; text-wrap: balance; word-break: break-word; }
.gen-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.gen-chips i { font-style: normal; font-size: 12px; font-weight: 500; padding: 7px 12px; border-radius: 999px; background: rgba(10, 10, 11, .55); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .14); }
.gen-visual.small .gen-word { font-size: clamp(26px, 16cqw, 60px); }
.card-body { padding: clamp(20px, 4vw, 44px); display: flex; flex-direction: column; gap: 20px; }
.card-top { display: flex; justify-content: space-between; color: var(--muted); }
.card-top .no { color: var(--accent); }
.card h3 { font-size: clamp(36px, 9vw, 84px); font-weight: 600; letter-spacing: -.055em; line-height: .94; }
.card h3 a:hover { color: var(--accent); }
.card h3 .serif { color: var(--muted); font-size: .58em; display: block; letter-spacing: -.02em; margin-top: 8px; line-height: 1.05; }
.card .desc { color: var(--muted); line-height: 1.6; max-width: 48ch; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.facts div { padding: 13px 0; border-bottom: 1px solid var(--line); }
.facts div:nth-child(odd) { padding-right: 12px; }
.facts div:nth-child(even) { padding-left: 12px; border-left: 1px solid var(--line); }
.facts dt { color: var(--dim); margin-bottom: 3px; }
.facts dd { font-size: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span, .tags a { font-size: 12px; padding: 6px 11px; border: 1px solid var(--line-2); border-radius: 999px; }
.tags a:hover { border-color: var(--accent); color: var(--accent); }
.card-foot { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; }
@media (min-width: 900px) {
  .card { grid-template-columns: 1.15fr 1fr; min-height: min(76vh, 700px); }
  .card-visual { aspect-ratio: auto; order: 2; }
  .card:nth-child(even) .card-visual { order: 0; }
}
/* Stacked cards on large screens only: on phones a card can be taller than the screen. */
@media (min-width: 900px) and (min-height: 720px) {
  .card.sticky { position: sticky; top: calc(84px + var(--i, 0) * 14px); }
}

/* ---------- writing ---------- */
.post-grid { display: grid; gap: 14px; }
.post-card { border: 1px solid var(--line); border-radius: 22px; background: var(--bg-2); transition: border-color .4s, background .4s; }
.post-card:hover { border-color: var(--line-2); background: var(--bg-3); }
.post-link { display: flex; flex-direction: column; gap: 12px; padding: 14px 14px 22px; height: 100%; }
.post-thumb { border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--bg-3); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.post-card:hover .post-thumb img { transform: scale(1.04); }
.post-card h3 { font-size: clamp(22px, 5.4vw, 28px); font-weight: 600; letter-spacing: -.035em; line-height: 1.12; padding: 0 6px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: var(--muted); padding: 4px 6px 0; }
.kind { padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--fg); }
.kind-story { border-color: rgba(214, 255, 61, .4); color: var(--accent); }
.post-excerpt { color: var(--muted); font-size: 15px; line-height: 1.55; padding: 0 6px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.read-more { margin-top: auto; display: inline-flex; gap: 8px; align-items: center; color: var(--fg); padding: 6px 6px 0; }
.post-card:hover .read-more .arrow { transform: rotate(45deg); }
@media (min-width: 700px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.filters a { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; color: var(--muted); }
.filters a[aria-current='page'] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.filters .active-tag { border-color: var(--accent); color: var(--accent); }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 36px; color: var(--muted); }
.pager a { color: var(--fg); padding: 12px 0; }
.tag-cloud { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }
.empty { padding: 72px 0; text-align: center; color: var(--muted); }
.empty .serif { font-size: clamp(28px, 6vw, 44px); color: var(--fg); margin-bottom: 10px; }

.article-head { padding-bottom: 32px; }
.article-title { font-size: clamp(36px, 8.5vw, 72px); font-weight: 600; letter-spacing: -.05em; line-height: 1; margin-top: 18px; text-wrap: balance; }
.article-head .post-meta { padding: 0; }
.byline { color: var(--muted); margin-top: 22px; }
.article-cover { margin-bottom: clamp(32px, 6vw, 64px); max-width: calc(1040px + var(--gutter) * 2); }
.article-cover img { width: 100%; border-radius: clamp(16px, 2.4vw, 28px); }
.article-tags { margin-top: 40px; }
.share { display: flex; align-items: center; gap: 14px; margin-top: 28px; padding: 16px 0; border-block: 1px solid var(--line); color: var(--muted); }
.share button { color: var(--fg); letter-spacing: inherit; text-transform: inherit; font: inherit; }
.share button:hover { color: var(--accent); }
.article-nav { display: grid; gap: 12px; margin: 32px 0; }
.article-nav a { display: block; padding: 18px; border: 1px solid var(--line); border-radius: 16px; }
.article-nav a:hover { border-color: var(--accent); }
.article-nav a span:last-child { font-size: 18px; font-weight: 500; letter-spacing: -.02em; }
.article-nav .right { text-align: right; }
.back-btn { margin-bottom: 24px; }
@media (min-width: 700px) { .article-nav { grid-template-columns: 1fr 1fr; } }

/* Long-form text (posts, case studies, about, product descriptions) */
.prose { font-size: clamp(17px, 2.2vw, 19px); line-height: 1.75; color: #d7d7d3; overflow-wrap: anywhere; }
.prose > * + * { margin-top: 1.15em; }
.prose h1, .prose h2, .prose h3, .prose h4 { color: var(--fg); letter-spacing: -.035em; line-height: 1.15; margin-top: 1.9em; font-weight: 600; }
.prose h1, .prose h2 { font-size: 1.6em; }
.prose h3 { font-size: 1.3em; }
.prose a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.prose a:hover { color: var(--accent); }
.prose strong { color: var(--fg); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--accent); }
.prose blockquote { border-left: 2px solid var(--accent); padding: 4px 0 4px 1em; font-family: var(--serif); font-style: italic; font-size: 1.3em; line-height: 1.4; color: var(--fg); }
.prose img { border-radius: 16px; margin-inline: auto; }
.prose figure figcaption { font-size: 13px; color: var(--muted); text-align: center; margin-top: 8px; }
.prose code { font-family: var(--mono); font-size: .86em; background: var(--bg-3); padding: .15em .4em; border-radius: 6px; }
.prose pre { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 16px; overflow-x: auto; font-size: 14px; line-height: 1.6; }
.prose pre code { background: none; padding: 0; }
.prose hr { border: 0; height: 1px; background: var(--line-2); margin: 2.4em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .9em; display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 12px 10px 0; text-align: left; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 16px; }

/* ---------- case study ---------- */
.case-head { padding-bottom: 32px; }
.case-title { font-size: clamp(52px, 15vw, 200px); font-weight: 700; letter-spacing: -.065em; line-height: .88; }
.case-tagline { font-size: clamp(24px, 5vw, 44px); color: var(--accent-p, var(--accent)); margin-top: 10px; }
.case-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.case-visual { position: relative; aspect-ratio: 4 / 3; border-radius: clamp(18px, 3vw, 32px); overflow: hidden; background: var(--bg-3); }
.case-visual .gen-word { font-size: clamp(48px, 12cqw, 180px); }
.case-grid { display: grid; gap: 40px; margin-top: clamp(40px, 7vw, 88px); }
.case-aside { display: grid; gap: 22px; align-content: start; grid-template-columns: repeat(2, 1fr); }
.case-aside > div:last-child:has(.tags) { grid-column: 1 / -1; }
.gallery { display: grid; gap: 16px; margin-top: 56px; }
.gallery img { width: 100%; border-radius: 20px; }
.gallery figcaption { color: var(--muted); margin-top: 8px; }
.next-link { display: block; margin-top: clamp(64px, 10vw, 140px); padding: 28px 0; border-top: 1px solid var(--line); }
.next-title { display: flex; align-items: center; gap: 14px; font-size: clamp(36px, 9vw, 110px); font-weight: 600; letter-spacing: -.055em; line-height: 1; }
.next-title .arrow { width: .5em; height: .5em; }
.next-link:hover .next-title { color: var(--accent); }
.next-link:hover .arrow { transform: rotate(45deg); }
@media (min-width: 900px) {
  .case-visual { aspect-ratio: 16 / 8; }
  .case-grid { grid-template-columns: 300px 1fr; gap: 80px; }
  .case-aside { grid-template-columns: 1fr; position: sticky; top: 100px; }
}

/* ---------- experience ---------- */
.xp { border-top: 1px solid var(--line); }
.xp-row { display: grid; gap: 10px; padding: clamp(22px, 4vw, 40px) 0; border-bottom: 1px solid var(--line); }
.xp-when { color: var(--muted); display: flex; justify-content: space-between; gap: 12px; }
.xp-when .now { color: var(--accent); }
.xp-co { font-size: clamp(30px, 7vw, 68px); font-weight: 600; letter-spacing: -.05em; line-height: 1; transition: transform .7s var(--ease); }
.xp-co a:hover { color: var(--accent); }
.xp-row:hover .xp-co { transform: translateX(10px); }
.xp-role { margin-top: 8px; }
.xp-desc { color: var(--muted); font-size: 15px; line-height: 1.6; max-width: 56ch; }
.xp-desc ul { margin-top: 10px; padding-left: 1.1em; }
.xp-desc li::marker { color: var(--accent); }
@media (min-width: 900px) {
  .xp-row { grid-template-columns: 190px 1.2fr 1fr; gap: 40px; align-items: baseline; }
  .xp-when { flex-direction: column; gap: 6px; }
}

/* ---------- about ---------- */
.about-head { display: grid; gap: 32px; align-items: end; }
.statement { font-size: clamp(30px, 7vw, 84px); line-height: 1.04; letter-spacing: -.045em; font-weight: 500; max-width: 20ch; text-wrap: balance; }
.avatar { width: min(320px, 70vw); border-radius: 24px; overflow: hidden; }
.avatar img { width: 100%; }
.about-grid { display: grid; gap: 48px; margin-top: clamp(48px, 9vw, 110px); }
.about-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 40px; }
.principles { list-style: none; display: grid; border-top: 1px solid var(--line); align-content: start; }
.principles li { display: grid; grid-template-columns: 44px 1fr; gap: 8px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.principles .mono { color: var(--accent); padding-top: 5px; }
.principles h3 { font-size: 20px; font-weight: 500; letter-spacing: -.02em; margin-bottom: 4px; }
.principles p { color: var(--muted); font-size: 15px; }
.caps { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.cap { background: var(--bg); padding: clamp(22px, 4vw, 36px); display: flex; flex-direction: column; gap: 24px; }
.cap-head { display: flex; justify-content: space-between; color: var(--muted); }
.cap-head b { color: var(--accent); font-weight: 500; }
.cap ul { list-style: none; display: grid; }
.cap li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line-2); font-size: 15px; }
.cap li span { color: var(--dim); font-family: var(--mono); font-size: 11px; text-align: right; }
@media (min-width: 700px) { .caps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) {
  .about-head { grid-template-columns: 1fr auto; }
  .about-grid { grid-template-columns: 1.3fr 1fr; gap: 80px; }
}
@media (min-width: 1100px) { .caps { grid-template-columns: repeat(3, 1fr); } }

/* ---------- shop ---------- */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 12px; }
.product-card a { display: grid; gap: 8px; }
.product-thumb { position: relative; aspect-ratio: 1 / 1.15; border-radius: 18px; overflow: hidden; background: var(--bg-3); }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.product-card:hover .product-thumb img { transform: scale(1.04); }
.product-card h3 { font-size: 17px; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; margin-top: 4px; }
.product-card p { color: var(--muted); font-size: 14px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.badge { position: absolute; top: 10px; left: 10px; font: 500 11px var(--sans); padding: 5px 9px; border-radius: 999px; background: rgba(10, 10, 11, .75); backdrop-filter: blur(8px); }
.badge.accent { background: var(--accent); color: var(--accent-ink); }
.price { font-size: 17px; font-weight: 600; display: inline-flex; gap: 8px; align-items: baseline; }
.price s { color: var(--dim); font-weight: 400; font-size: .85em; }
@media (min-width: 900px) { .product-grid { grid-template-columns: repeat(3, 1fr); gap: 32px 20px; } }

.product-layout { display: grid; gap: 28px; }
.product-gallery { display: grid; grid-auto-flow: column; grid-auto-columns: 88%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); scrollbar-width: none; }
.product-gallery::-webkit-scrollbar { display: none; }
.product-gallery > * { scroll-snap-align: center; border-radius: 20px; overflow: hidden; }
.product-gallery img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery .gen-visual { position: relative; aspect-ratio: 1 / 1.15; }
.product-gallery:has(> :only-child) { grid-auto-columns: 100%; }
.product-title { font-size: clamp(34px, 8vw, 60px); font-weight: 600; letter-spacing: -.05em; line-height: 1; margin-bottom: 14px; }
.product-info .price { font-size: 24px; }
.buy-form { display: grid; gap: 16px; margin: 28px 0 18px; }
.buy-notes { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); margin-bottom: 32px; }
.buy-notes li { padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; }
@media (min-width: 900px) {
  .product-layout { grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; }
  .product-gallery { grid-auto-flow: row; grid-auto-columns: auto; overflow: visible; margin: 0; padding: 0; }
  .product-info { position: sticky; top: 100px; }
}

/* ---------- forms ---------- */
.field { display: grid; gap: 8px; }
.field > span { font-size: 14px; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; min-height: 52px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-2);
  background: var(--bg-2); font-size: 16px; transition: border-color .3s;
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); }
.field small { color: var(--dim); }
.field.qty input { max-width: 120px; }
.field .error, .error-text { color: var(--danger); font-size: 13px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.4em; font-size: 14px; color: var(--muted); }
.form-status.ok { color: var(--accent); }
.form-status.bad { color: var(--danger); }
.notice { padding: 14px 16px; border: 1px solid rgba(214, 255, 61, .35); border-radius: 14px; background: rgba(214, 255, 61, .06); margin: 18px 0; font-size: 15px; }
.notice.bad { border-color: rgba(255, 107, 107, .4); background: rgba(255, 107, 107, .07); }

/* ---------- cart & checkout (drawn by site.js) ---------- */
.cart { margin-bottom: 40px; }
.cart-layout { display: grid; gap: 28px; }
.cart-items { display: grid; gap: 10px; }
.cart-item { display: grid; grid-template-columns: 76px 1fr; gap: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg-2); }
.cart-item.problem { border-color: rgba(255, 107, 107, .5); }
.cart-thumb { width: 76px; height: 88px; border-radius: 12px; overflow: hidden; background: var(--bg-3); }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-info { display: grid; gap: 6px; align-content: start; }
.cart-info h3 { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.cart-info .mono { color: var(--muted); text-transform: none; letter-spacing: 0; font-size: 12px; }
.cart-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; }
.stepper button { width: 38px; height: 38px; font-size: 18px; }
.stepper span { min-width: 24px; text-align: center; font-weight: 500; }
.link-btn { justify-self: start; color: var(--muted); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--danger); }
.checkout { display: grid; gap: 18px; padding: clamp(18px, 4vw, 28px); border: 1px solid var(--line); border-radius: 22px; background: var(--bg-2); }
.checkout h3 { font-size: 20px; letter-spacing: -.02em; }
.checkout .grid-2 { display: grid; gap: 16px; }
.choice-group { display: grid; gap: 8px; }
.choice { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 14px; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--accent); background: rgba(214, 255, 61, .05); }
.choice input { accent-color: var(--accent); width: 18px; height: 18px; }
.choice .grow { flex: 1; }
.pay-box { padding: 14px 16px; border-radius: 14px; background: var(--bg-3); font-size: 14px; line-height: 1.6; display: grid; gap: 12px; }
.pay-box b { color: var(--accent); }
.summary { display: grid; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.summary div { display: flex; justify-content: space-between; color: var(--muted); }
.summary .total { color: var(--fg); font-size: 20px; font-weight: 600; padding-top: 6px; }
@media (min-width: 700px) { .checkout .grid-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .cart-layout { grid-template-columns: 1fr 440px; align-items: start; } .checkout { position: sticky; top: 90px; } }

/* ---------- order tracking ---------- */
.steps { list-style: none; display: grid; gap: 8px; margin: 28px 0; }
.steps li { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; color: var(--dim); }
.steps li.done { color: var(--fg); border-color: rgba(214, 255, 61, .35); }
.steps li.done .mono { color: var(--accent); }
.receipt-box { display: grid; gap: 12px; padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--bg-2); margin: 24px 0; }
.receipt-line { display: flex; justify-content: space-between; gap: 16px; }
.receipt-line .mono { text-transform: none; letter-spacing: 0; font-size: 13px; }
.receipt-line.total { font-size: 20px; font-weight: 600; padding-top: 12px; border-top: 1px solid var(--line); }
.history { list-style: none; display: grid; gap: 8px; color: var(--muted); margin-bottom: 28px; text-transform: none; letter-spacing: 0; font-size: 13px; }
.history span { color: var(--dim); }

/* ---------- contact ---------- */
.contact-layout { display: grid; gap: 40px; }
.contact-details { display: grid; gap: 22px; margin-top: 32px; }
.contact-details dd { font-size: clamp(18px, 4.4vw, 22px); letter-spacing: -.02em; }
.contact-details a:hover { color: var(--accent); }
.socials { display: flex; flex-wrap: wrap; gap: 8px; }
.contact-form { display: grid; gap: 16px; align-content: start; padding: clamp(18px, 4vw, 32px); border: 1px solid var(--line); border-radius: 24px; background: var(--bg-2); }
@media (min-width: 900px) { .contact-layout { grid-template-columns: 1fr 1fr; gap: 80px; } }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); margin-top: clamp(40px, 8vw, 100px); padding-bottom: env(safe-area-inset-bottom); }
.footer-cta { padding: clamp(56px, 10vw, 120px) 0 clamp(40px, 6vw, 72px); }
.footer-big { display: inline-flex; align-items: center; gap: .2em; font-size: clamp(56px, 16vw, 220px); font-weight: 700; letter-spacing: -.07em; line-height: .9; transition: color .4s; }
.footer-big .arrow { width: .45em; height: .45em; color: var(--accent); }
.footer-big:hover { color: var(--accent); }
.footer-big:hover .arrow { transform: rotate(45deg); }
.footer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 20px; padding: 32px 0; border-top: 1px solid var(--line); }
.footer-grid > div { display: grid; gap: 8px; align-content: start; font-size: 15px; }
.footer-grid > div:last-child { grid-column: 1 / -1; }
.footer-grid a { color: var(--muted); overflow-wrap: anywhere; }
.footer-grid a:hover { color: var(--accent); }
.footer-grid span { color: var(--muted); }
.footer-base { display: flex; justify-content: space-between; gap: 12px; padding: 22px 0 28px; border-top: 1px solid var(--line); color: var(--dim); }
.footer-base a:hover { color: var(--accent); }
@media (min-width: 900px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } .footer-grid > div:last-child { grid-column: auto; } }

.not-found .sec-title { margin-bottom: 8px; }
.not-found .hero-ctas { margin-top: 32px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
