@import url("https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;500;600&family=Inter:wght@400;500;600&family=Geist+Mono:wght@400&display=swap");
/* Ambareesh Balakrishnan portfolio: Swiss minimal system */
:root {
  --bg: #ffffff;
  --bg-2: #f6f6f4;
  --ink: #0b0b0c;
  --ink-2: #2a2a2d;
  --muted: #6e6e73;
  --line: #e7e7e4;
  --line-strong: #0b0b0c;
  --accent: #2340ff;
  --accent-ink: #1a30d6;
  --accent-wash: #eef0ff;
  --good: #11804f;
  --warn: #9a5b00;
  --destructive: #c4210f;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-control: 999px;
  --display: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", "JetBrains Mono", ui-monospace, Menlo, monospace;
  --gutter: clamp(20px, 4vw, 56px);
  --max: 1440px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-feature-settings: "ss01", "cv11"; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; color: inherit; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* type */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; letter-spacing: -0.035em; line-height: 1; margin: 0; }
.display { font-size: clamp(54px, 10.4vw, 176px); letter-spacing: -0.058em; line-height: .9; font-weight: 500; }
.display em, .h1 em { font-style: normal; color: var(--accent); }
.h1 { font-size: clamp(44px, 7vw, 112px); letter-spacing: -0.05em; line-height: .94; }
.h2 { font-size: clamp(34px, 4.6vw, 68px); letter-spacing: -0.045em; line-height: .98; }
.h3 { font-size: clamp(22px, 2vw, 30px); letter-spacing: -0.03em; line-height: 1.1; }
.eyebrow, .label { font-family: var(--mono); font-size: 12.5px; font-weight: 400; letter-spacing: 0; color: var(--muted); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 7px; height: 7px; background: var(--accent); border-radius: 50%; }
.lede { font-size: clamp(18px, 1.45vw, 22px); line-height: 1.5; color: var(--ink-2); max-width: 54ch; letter-spacing: -0.01em; }
.muted { color: var(--muted); }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: -0.03em; }
.brand-mark { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.brand small { font-family: var(--mono); font-weight: 400; font-size: 12px; color: var(--muted); letter-spacing: 0; margin-left: 8px; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { text-decoration: none; padding: 8px 12px; font-size: 14.5px; color: var(--muted); transition: color .2s; position: relative; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 1px; background: var(--ink); }
.nav .nav-cta { margin-left: 12px; color: #fff; background: var(--ink); border-radius: var(--radius-control); padding: 9px 18px; }
.nav .nav-cta:hover { background: var(--accent); color: #fff; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius-control); padding: 8px 16px; font-size: 14px; }
.mobile-nav { display: none; }
@media (max-width: 1020px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .mobile-nav[data-open="true"] { display: block; position: fixed; inset: 68px 0 0 0; background: var(--bg); padding: 16px var(--gutter) 40px; overflow-y: auto; z-index: 49; }
  .mobile-nav a { display: flex; justify-content: space-between; font-family: var(--display); font-size: 38px; letter-spacing: -0.04em; padding: 12px 0; text-decoration: none; border-bottom: 1px solid var(--line); }
  .mobile-nav a::after { content: "\2197"; font-size: 22px; color: var(--muted); }
}

/* sections */
.section { padding: clamp(80px, 11vw, 168px) 0; }
.section-tight { padding: clamp(40px, 5vw, 72px) 0; }
.dark, .dark-2 { background: var(--bg); color: var(--ink); }
.paper-2, .tint { background: var(--bg-2); }
.rule { border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px 48px; margin-bottom: clamp(36px, 5vw, 72px); }
.section-head .h2 { max-width: 16ch; margin-top: 18px; }
@media (max-width: 700px) { .section-head { grid-template-columns: 1fr; } }

/* hero */
.hero { padding: clamp(56px, 8vw, 120px) 0 0; }
.hero-top { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(32px, 5vw, 64px); }
.hero-name { margin: 0; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 15px; color: var(--muted); }
.hero-name strong { color: var(--ink); font-weight: 600; }
.status { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--radius-control); }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: #18b26b; box-shadow: 0 0 0 0 rgba(24, 178, 107, .5); animation: pulse 2.4s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(24, 178, 107, 0); } 100% { box-shadow: 0 0 0 0 rgba(24, 178, 107, 0); } }
.hero-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; margin-top: clamp(40px, 6vw, 88px); padding: 28px 0 clamp(56px, 7vw, 96px); border-top: 1px solid var(--line-strong); }
.hero-intro { grid-column: 1 / span 6; }
.hero-intro .lede { margin: 0 0 32px; }
.hero-meta { grid-column: 8 / span 5; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 32px; align-content: start; }
.hero-meta div span { display: block; font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.hero-meta div b { font-weight: 500; font-size: 16px; letter-spacing: -0.01em; }
.hero-photo { grid-column: span 2; display: flex; gap: 16px; align-items: center; }
.hero-photo .avatar { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: var(--bg-2); display: grid; place-items: center; font-family: var(--display); font-weight: 600; letter-spacing: -0.04em; flex: none; }
.hero-photo .avatar img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .hero-intro, .hero-meta { grid-column: 1 / -1; } }

/* marquee */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 22px 0; }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee a, .marquee span { font-family: var(--display); font-size: clamp(22px, 2.4vw, 34px); letter-spacing: -0.035em; text-decoration: none; white-space: nowrap; color: var(--ink); display: inline-flex; align-items: center; gap: 56px; }
.marquee a::after, .marquee span::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.marquee a:hover { color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* buttons */
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border-radius: var(--radius-control); font-weight: 500; font-size: 15.5px; text-decoration: none; border: 1px solid transparent; transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease); letter-spacing: -0.01em; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--accent); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-text { padding: 0; border: 0; background: none; color: var(--ink); font-weight: 500; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; border-bottom: 1px solid var(--ink); padding-bottom: 2px; font-size: 15px; }
.btn-text:hover { color: var(--accent); border-color: var(--accent); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.arrow { display: inline-block; transition: transform .3s var(--ease); }
a:hover .arrow { transform: translate(3px, -3px); }

/* service rows */
.rows { border-top: 1px solid var(--line-strong); }
.row { display: grid; grid-template-columns: 80px minmax(0, 1fr) minmax(0, .9fr) 56px; gap: 24px; align-items: center; padding: clamp(22px, 2.6vw, 36px) 0; border-bottom: 1px solid var(--line); text-decoration: none; position: relative; transition: padding .4s var(--ease); }
.row::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 0; background: var(--bg-2); z-index: -1; transition: width .5s var(--ease); }
.row:hover::before { width: 100%; }
.row:hover { padding-left: 18px; padding-right: 18px; }
.row-num { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.row-title { font-family: var(--display); font-size: clamp(28px, 3.6vw, 54px); letter-spacing: -0.045em; line-height: 1; font-weight: 500; transition: color .3s; }
.row:hover .row-title { color: var(--accent); }
.row-desc { color: var(--muted); font-size: 15.5px; margin: 0; max-width: 46ch; }
.row-go { justify-self: end; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background .3s, color .3s, border-color .3s, transform .4s var(--ease); }
.row:hover .row-go { background: var(--accent); border-color: var(--accent); color: #fff; transform: rotate(-45deg); }
.row-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
@media (max-width: 760px) { .row { grid-template-columns: 44px minmax(0, 1fr) 44px; } .row-desc, .row-meta { grid-column: 2 / 3; } }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); }
.stat { padding: 24px 24px 0 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat b { display: block; font-family: var(--display); font-weight: 500; font-size: clamp(56px, 7vw, 112px); line-height: .9; letter-spacing: -0.06em; }
.stat b sup { font-size: .35em; color: var(--accent); vertical-align: top; margin-left: 4px; letter-spacing: 0; }
.stat span { display: block; margin-top: 14px; color: var(--muted); font-size: 14.5px; max-width: 20ch; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(3) { border-left: 0; padding-left: 0; } .stat { padding-bottom: 24px; } }

/* grids and cards */
.grid { display: grid; gap: clamp(16px, 2vw, 32px); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }

.case-card { display: flex; flex-direction: column; text-decoration: none; min-height: 100%; }
.case-art { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-2); border-radius: var(--radius-lg); }
.case-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.case-card:hover .case-art img { transform: scale(1.04); }
.art-gen { position: absolute; inset: 0; padding: 22px; display: flex; flex-direction: column; justify-content: space-between; transition: background .5s var(--ease); }
.art-gen .art-cat { font-family: var(--mono); font-size: 12.5px; color: var(--muted); display: flex; justify-content: space-between; transition: color .4s; }
.art-gen .art-word { font-family: var(--display); font-size: clamp(88px, 11vw, 168px); line-height: .8; letter-spacing: -0.07em; font-weight: 500; color: var(--ink); transition: color .4s, transform .6s var(--ease); }
.case-card:hover .art-gen { background: var(--accent); }
.case-card:hover .art-gen .art-word { color: #fff; transform: translateY(-6px); }
.case-card:hover .art-gen .art-cat { color: rgba(255,255,255,.8); }
.case-body { padding: 18px 2px 6px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.case-body h3 { font-size: clamp(22px, 1.9vw, 27px); }
.case-body p { margin: 0; color: var(--muted); font-size: 15.5px; }
.case-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: auto; padding-top: 8px; font-size: 13px; color: var(--muted); }

.chip { display: inline-flex; align-items: center; font-size: 13px; padding: 4px 11px; border-radius: var(--radius-control); background: transparent; color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 12px; padding: 3px 10px 3px 8px; border-radius: var(--radius-control); border: 1px solid currentColor; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-led { color: var(--accent); }
.badge-built { color: var(--ink); }
.badge-contrib { color: var(--good); }
.badge-agency { color: var(--muted); border-color: var(--line); }
.badge-verify { color: var(--warn); }

/* filters */
.toolbar { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; margin-bottom: 40px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.filters { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.filter { border: 1px solid var(--line); background: transparent; padding: 7px 15px; border-radius: var(--radius-control); font-size: 14px; transition: background .2s, color .2s, border-color .2s; }
.filter:hover { border-color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.filter-label { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-right: 8px; min-width: 88px; }
.search { position: relative; min-width: min(320px, 100%); }
.search input { width: 100%; padding: 11px 16px 11px 40px; border-radius: var(--radius-control); border: 1px solid var(--line); background: var(--bg); font: inherit; font-size: 15px; }
.search input:focus { outline: none; border-color: var(--ink); }
.search svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.result-count { font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin: -16px 0 28px; }

/* page hero */
.page-hero { padding: clamp(56px, 8vw, 120px) 0 clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.page-hero .h1 { margin: 28px 0 28px; max-width: 14ch; }
.page-hero .lede { color: var(--muted); }
.crumbs { font-family: var(--mono); font-size: 12.5px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

/* clients */
.client-card { display: flex; flex-direction: column; gap: 14px; padding: 24px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); text-decoration: none; transition: border-color .3s, background .3s; min-height: 100%; }
.client-card:hover { border-color: var(--ink); }
.client-top { display: flex; align-items: center; gap: 14px; }
.mono { width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 600; font-size: 16px; letter-spacing: -0.03em; color: var(--ink) !important; background: var(--bg-2) !important; overflow: hidden; transition: background .3s, color .3s; }
.client-card:hover .mono { background: var(--accent) !important; color: #fff !important; }
.mono img { width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 6px; }
.client-card h3 { font-family: var(--display); font-size: 19px; font-weight: 500; letter-spacing: -0.025em; line-height: 1.2; }
.client-card p { margin: 0; font-size: 14.5px; color: var(--muted); }
.client-foot { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.legend { display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 14px; color: var(--muted); margin-bottom: 32px; }
.legend > span { display: inline-flex; gap: 10px; align-items: center; }

/* logo wall (home) */
.wall { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.wall a { aspect-ratio: 16 / 9; display: flex; flex-direction: column; justify-content: space-between; padding: 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; transition: background .35s, color .35s; }
.wall a b { font-family: var(--display); font-weight: 500; font-size: clamp(19px, 1.8vw, 26px); letter-spacing: -0.035em; line-height: 1.05; }
.wall a span { font-family: var(--mono); font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; }
.wall a:hover { background: var(--ink); color: #fff; }
.wall a:hover span { color: rgba(255,255,255,.65); }
@media (max-width: 900px) { .wall { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* detail layout */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 6vw, 112px); align-items: start; }
.detail-side { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 24px; padding: 0 0 0 28px; border-left: 1px solid var(--line); }
.detail-side dt { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.detail-side dd { margin: 0; font-weight: 500; }
.detail-side dl { margin: 0; display: grid; gap: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 900px) { .detail { grid-template-columns: 1fr; } .detail-side { position: static; padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--line); } }

.story > .eyebrow { margin-bottom: 36px; }
.story > section { padding: 0 0 clamp(36px, 4vw, 56px); margin: 0 0 clamp(36px, 4vw, 56px); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; }
.story > section:last-child { border-bottom: 0; }
.story h2 { font-family: var(--display); font-size: 20px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.3; display: flex; flex-direction: column; gap: 8px; }
.story h2 span { font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--accent); letter-spacing: 0; }
.prose { font-size: 18.5px; line-height: 1.65; max-width: 64ch; color: var(--ink-2); letter-spacing: -0.005em; }
.prose p { margin: 0 0 1em; }
.prose p:last-child { margin-bottom: 0; }
.prose ul { margin: 0; padding-left: 1.1em; }
.prose li { margin: 0 0 .5em; }
.prose a { color: var(--accent); }
.prose strong { font-weight: 600; color: var(--ink); }
.list-plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.list-plain li { padding: 12px 0 12px 28px; position: relative; border-bottom: 1px solid var(--line); }
.list-plain li:first-child { padding-top: 0; }
.list-plain li:first-child::before { top: .6em; }
.list-plain li::before { content: "\2192"; position: absolute; left: 0; top: 12px; color: var(--accent); }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0; border-top: 1px solid var(--line-strong); }
.metric { padding: 20px 20px 0 0; }
.metric b { display: block; font-family: var(--display); font-weight: 500; font-size: 52px; line-height: .95; letter-spacing: -0.05em; }
.metric span { display: block; margin-top: 8px; font-size: 14px; color: var(--muted); }
@media (max-width: 700px) { .story > section { grid-template-columns: 1fr; gap: 12px; } }

/* timeline */
.timeline { border-top: 1px solid var(--line-strong); }
.t-item { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px 64px; padding: clamp(36px, 4vw, 56px) 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.t-head { display: flex; flex-direction: column; gap: 12px; }
.t-head > div { display: flex; flex-direction: column; gap: 14px; align-items: flex-start !important; text-align: left !important; }
.t-head .h3 { font-size: clamp(26px, 2.6vw, 38px); letter-spacing: -0.04em; }
.t-role { font-size: 16px; margin: 6px 0 0; color: var(--accent); font-weight: 500; }
.t-period { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.t-item.current .t-period::before { content: "Current"; display: inline-block; margin-right: 8px; color: var(--good); }
.t-item > .lede, .t-item > div:not(.t-head), .t-item > p { grid-column: 2; }
.t-item > .lede { margin-top: 0 !important; font-size: 21px !important; color: var(--ink) !important; }
.t-body { margin-top: 8px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px 48px; }
.t-body h4 { font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--muted); margin-bottom: 14px; letter-spacing: 0; }
@media (max-width: 960px) { .t-item { grid-template-columns: 1fr; } .t-item > .lede, .t-item > div:not(.t-head), .t-item > p { grid-column: 1; } .t-body { grid-template-columns: 1fr; } }

.milestones { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.milestone { padding: 28px; display: flex; flex-direction: column; gap: 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg); transition: background .3s; min-height: 240px; }
.milestone:hover { background: var(--bg-2); }
.milestone .m-cat { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.milestone h3 { font-size: 23px; letter-spacing: -0.03em; line-height: 1.1; }
.milestone p { margin: 0; color: var(--muted); font-size: 15px; }
.milestone .m-when { margin-top: auto; font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* skills */
.cap-group { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 24px 48px; padding: 40px 0; border-top: 1px solid var(--line); }
.cap-group:first-child { border-top-color: var(--line-strong); }
.cap-group .h3 { font-size: clamp(26px, 2.4vw, 36px); letter-spacing: -0.04em; }
.cap-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 32px; }
.cap { padding: 16px 0; border-bottom: 1px solid var(--line); }
.cap b { display: block; font-weight: 500; font-size: 17px; letter-spacing: -0.01em; }
.cap small { display: block; color: var(--muted); font-size: 14px; margin-top: 4px; }
.cap .proof-links { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13.5px; }
.cap .proof-links a { color: var(--accent); text-decoration: none; }
.cap .proof-links a:hover { text-decoration: underline; }
@media (max-width: 860px) { .cap-group { grid-template-columns: 1fr; } }
.tool { padding: 24px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--bg); display: flex; flex-direction: column; gap: 12px; transition: border-color .3s; }
.tool:hover { border-color: var(--ink); }
.tool-top { display: flex; align-items: center; gap: 12px; justify-content: space-between; }
.tool h3 { font-family: var(--display); font-size: 20px; font-weight: 500; letter-spacing: -0.03em; }
.tool p { margin: 0; color: var(--muted); font-size: 15px; }
.tool-cat-title { font-family: var(--mono); font-size: 12.5px; font-weight: 400; color: var(--muted); margin: 48px 0 16px; letter-spacing: 0; padding-top: 16px; border-top: 1px solid var(--line); }
.tool-cat-title:first-child { margin-top: 0; }

/* credentials */
.cred { display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: var(--radius-lg); border: 1px solid var(--line); }
.cred-img { aspect-ratio: 4 / 3; border-radius: var(--radius-md); overflow: hidden; background: var(--bg-2); }
.cred-img img { width: 100%; height: 100%; object-fit: cover; }
.cred-img button { all: unset; cursor: zoom-in; display: block; width: 100%; height: 100%; }
.cred h3 { font-size: 26px; letter-spacing: -0.035em; }
.cred dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 14.5px; }
.cred dt { color: var(--muted); font-family: var(--mono); font-size: 12px; padding-top: 2px; }
.cred dd { margin: 0; }
.cred .actions { margin-top: auto; padding-top: 6px; }

.notice { display: block; padding: 28px; border-radius: var(--radius-lg); background: var(--bg-2); color: var(--muted); }
.notice strong { color: var(--ink); display: block; margin-bottom: 6px; font-family: var(--display); font-weight: 500; font-size: 22px; letter-spacing: -0.03em; }
.notice a { color: var(--accent); }

/* gallery */
.masonry { columns: 3 300px; column-gap: 24px; }
.g-item { break-inside: avoid; margin: 0 0 24px; }
.g-item img { border-radius: var(--radius-lg); }
.g-item button { all: unset; cursor: zoom-in; display: block; width: 100%; }
.g-item figcaption { padding: 12px 2px; font-size: 14.5px; color: var(--muted); }
.g-item figcaption b { display: block; font-weight: 500; color: var(--ink); }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(255,255,255,.96); display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox[data-open="true"] { display: flex; }
.lightbox img { max-width: min(1200px, 100%); max-height: 82vh; border-radius: var(--radius-md); box-shadow: 0 40px 80px -40px rgba(0,0,0,.4); }
.lightbox .lb-cap { position: absolute; left: 24px; right: 24px; bottom: 20px; text-align: center; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.lightbox .lb-close { position: absolute; top: 18px; right: 18px; background: var(--ink); border: 0; color: #fff; padding: 10px 18px; border-radius: var(--radius-control); }

/* articles */
.article-card { display: grid; grid-template-columns: 180px minmax(0, 1fr) 56px; gap: 24px; align-items: baseline; padding: 32px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.article-card:first-child { border-top: 1px solid var(--line-strong); }
.article-card h3 { font-size: clamp(24px, 2.6vw, 38px); letter-spacing: -0.04em; transition: color .2s; }
.article-card:hover h3 { color: var(--accent); }
.article-card p { margin: 10px 0 0; color: var(--muted); }
.article-card time { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
@media (max-width: 760px) { .article-card { grid-template-columns: 1fr; gap: 6px; } }
.article-cover { border-radius: var(--radius-lg); overflow: hidden; margin: 0 0 48px; }

/* contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 128px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 40px 0 0; border-top: 1px solid var(--line-strong); }
.contact-list li { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 120px 1fr; gap: 16px; }
.contact-list span { color: var(--muted); font-family: var(--mono); font-size: 12.5px; padding-top: 3px; }
.contact-list a { color: var(--ink); }
.form-card { background: var(--bg-2); border-radius: var(--radius-lg); padding: clamp(24px, 3.4vw, 48px); }
.form-card .h3 { font-size: 30px; }
.field { display: grid; gap: 8px; margin-bottom: 20px; }
.field label { font-size: 14px; font-weight: 500; }
.field .req { color: var(--accent); margin-left: 3px; }
.field input, .field select, .field textarea { width: 100%; padding: 14px 0; border: 0; border-bottom: 1px solid #cfcfcb; background: transparent; font: inherit; font-size: 17px; color: var(--ink); border-radius: 0; transition: border-color .2s; }
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 12px) 50%, calc(100% - 7px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent); }
.field [aria-invalid="true"] { border-bottom-color: var(--destructive); }
.field .err { color: var(--destructive); font-size: 13.5px; margin: 0; }
.field .help { color: var(--muted); font-size: 13.5px; margin: 0; }
.form-error { color: var(--destructive); margin: 0 0 14px; }
.form-done h3 { font-size: 40px; margin-bottom: 14px; letter-spacing: -0.04em; }

/* footer */
.site-footer { background: var(--ink); color: #f2f2f2; padding: clamp(72px, 9vw, 128px) 0 32px; }
.footer-cta { display: block; padding-bottom: clamp(48px, 6vw, 88px); }
.footer-cta .label { color: #9a9a9f; }
.footer-cta .label::before { content: ""; width: 7px; height: 7px; background: var(--accent); border-radius: 50%; }
.footer-big { display: inline-flex; align-items: baseline; gap: .2em; margin-top: 24px; font-family: var(--display); font-size: clamp(56px, 11vw, 184px); font-weight: 500; letter-spacing: -0.06em; line-height: .9; text-decoration: none; color: #fff; transition: color .3s; }
.footer-big:hover { color: var(--accent); }
.footer-big .arrow { font-size: .5em; }
.footer-cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; padding: 40px 0; border-top: 1px solid rgba(255,255,255,.14); }
.footer-cols h4 { font-family: var(--mono); font-size: 12px; font-weight: 400; color: #9a9a9f; margin-bottom: 14px; letter-spacing: 0; }
.footer-cols ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-cols a { text-decoration: none; color: #f2f2f2; font-size: 15px; }
.footer-cols a:hover { color: var(--accent); }
.footer-cols .brand { color: #fff; }
.footer-cols .brand small { color: #9a9a9f; }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--mono); font-size: 12px; color: #8a8a8f; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14); }
@media (max-width: 760px) { .footer-cols { grid-template-columns: 1fr 1fr; } }

/* states */
.loading { color: var(--muted); padding: 24px 0; font-family: var(--mono); font-size: 13px; }
.skeleton { background: linear-gradient(90deg, var(--bg-2), #fbfbfa, var(--bg-2)); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius-lg); min-height: 300px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.empty { padding: 40px; border: 1px dashed var(--line); border-radius: var(--radius-lg); text-align: center; color: var(--muted); }

/* reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.split .line { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.split .line > span { display: block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.split.in .line > span { transform: none; }
.split .line:nth-child(2) > span { transition-delay: .08s; }
.split .line:nth-child(3) > span { transition-delay: .16s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .split .line > span { opacity: 1; transform: none; transition: none; }
  .pulse, .skeleton, .marquee-track { animation: none; }
  * { transition-duration: 0s !important; }
}
@media (max-width: 560px) { .brand small { display: none; } .site-header .wrap { height: 60px; } .mobile-nav[data-open="true"] { inset: 60px 0 0 0; } body { font-size: 16px; } }
.t-head { grid-row: span 8; }
@media (max-width: 960px) { .t-head { grid-row: auto; } }
.tint .case-art { background: #fff; }
.badge { white-space: nowrap; }
@media (max-width: 700px) { [data-f-service] { display: none !important; } .legend { display: grid; gap: 10px; } .display { font-size: clamp(44px, 12.4vw, 80px); } }