:root {
  --ah-paper: #fff;
  --ah-ink: #050505;
  --ah-muted: #666;
  --ah-line: #d9d9d9;
  --ah-pale: #f5f5f0;
  --ah-accent: #c3ff00;
  --ah-serif: "Lora", Georgia, serif;
  --ah-sans: "Inter", Arial, sans-serif;
  --ah-mono: "JetBrains Mono", "IBM Plex Mono", monospace;
}

html[data-branch^="anka-"] { --shell-h: 54px; --status-h: 0px; background: var(--ah-paper); }
html[data-branch^="anka-"] body { background: var(--ah-paper); color: var(--ah-ink); }
html[data-branch^="anka-"] .lab-shell { grid-template-columns: 240px 1fr; }
html[data-branch^="anka-"] .branch-switcher,
html[data-branch^="anka-"] .lab-statusline { display: none !important; }

.anka-homepage {
  background: var(--ah-paper);
  color: var(--ah-ink);
  font: 16px/1.58 var(--ah-sans);
  min-height: 100vh;
  overflow: clip;
}
.anka-homepage * { box-sizing: border-box; }
.anka-homepage a { color: inherit; }
.ah-wrap { margin: 0 auto; max-width: 1180px; padding-left: 34px; padding-right: 34px; }
.ah-masthead {
  align-items: stretch;
  background: color-mix(in srgb, var(--ah-paper) 94%, transparent);
  border-bottom: 1px solid var(--ah-ink);
  display: grid;
  grid-template-columns: minmax(250px, 1fr) auto;
  min-height: 58px;
  position: sticky;
  top: var(--shell-h);
  z-index: 24;
}
.ah-brand { align-items: center; display: flex; gap: 10px; padding: 0 22px; text-decoration: none; }
.ah-brand > span { background: var(--ah-ink); display: block; height: 16px; width: 16px; }
.ah-brand b, .ah-brand small { font: 600 10px/1 var(--ah-mono); letter-spacing: .12em; }
.ah-brand small { color: var(--ah-muted); font-weight: 400; }
.ah-variants { display: flex; }
.ah-variants a {
  align-items: center;
  border-left: 1px solid var(--ah-line);
  display: flex;
  gap: 7px;
  min-width: 112px;
  padding: 0 15px;
  text-decoration: none;
}
.ah-variants a:hover, .ah-variants a[aria-current="page"] { background: var(--ah-ink); color: var(--ah-paper); }
.ah-variants i { color: var(--ah-muted); font: normal 9px var(--ah-mono); }
.ah-variants span { font: 600 10px var(--ah-mono); letter-spacing: .05em; text-transform: uppercase; }
.ah-section { border-bottom: 1px solid var(--ah-line); opacity: .01; scroll-margin-top: calc(var(--shell-h) + 74px); transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.ah-section.is-visible, .ah-closing.is-visible { opacity: 1; transform: none; }
.ah-section-head { display: grid; grid-template-columns: 210px minmax(0, 1fr); margin-bottom: 36px; row-gap: 10px; }
.ah-section-head > span, .ah-kicker, .ah-lab header > span {
  font: 600 10px/1.35 var(--ah-mono);
  letter-spacing: .13em;
  text-transform: uppercase;
}
.ah-section-head > span { color: var(--ah-muted); grid-row: 1 / span 2; }
.ah-section-head h2 {
  font: 600 clamp(30px, 4.2vw, 58px)/1.04 var(--ah-sans);
  letter-spacing: -.045em;
  margin: 0;
  max-width: 850px;
}
.ah-section-head > p { color: var(--ah-muted); font-size: 17px; margin: 0; max-width: 720px; }

.ah-hero { min-height: min(820px, calc(100svh - 112px)); position: relative; }
.ah-particles { inset: 0; opacity: 0; pointer-events: none; position: absolute; }
.ah-hero-grid { align-items: end; display: grid; gap: 80px; grid-template-columns: minmax(0, 1fr) 290px; min-height: inherit; padding-bottom: 72px; padding-top: 96px; position: relative; z-index: 1; }
.ah-kicker { margin: 0 0 26px; }
.ah-hero h1 {
  font: 600 clamp(52px, 7.7vw, 108px)/.93 var(--ah-sans);
  letter-spacing: -.07em;
  margin: 0;
  max-width: 980px;
  text-wrap: balance;
}
.ah-lede { font-size: clamp(18px, 2vw, 24px); line-height: 1.48; margin: 34px 0 0; max-width: 780px; }
.ah-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 12px 22px; margin-top: 36px; }
.ah-actions > a:not(.ah-button) { font: 600 13px var(--ah-mono); text-decoration: underline; text-underline-offset: 4px; }
.ah-button {
  background: var(--ah-ink);
  border: 1px solid var(--ah-ink);
  color: var(--ah-paper) !important;
  display: inline-flex;
  font: 600 12px var(--ah-mono);
  justify-content: center;
  letter-spacing: .04em;
  padding: 13px 17px;
  text-decoration: none;
}
.ah-button:hover, .ah-button:focus-visible { background: var(--ah-accent); color: var(--ah-ink) !important; outline: 0; }
.ah-hero-ledger { border-top: 1px solid var(--ah-ink); }
.ah-hero-ledger > div { border-bottom: 1px solid var(--ah-line); display: grid; gap: 10px; grid-template-columns: 72px 1fr; padding: 14px 0; }
.ah-hero-ledger b { font: 600 25px var(--ah-mono); }
.ah-hero-ledger span { color: var(--ah-muted); font: 10px/1.4 var(--ah-mono); letter-spacing: .06em; text-transform: uppercase; }

.ah-method, .ah-cases, .ah-portfolio, .ah-people, .ah-lab { padding: 92px 0; }
.ah-method-rows { border-top: 1px solid var(--ah-ink); list-style: none; margin: 0; padding: 0; }
.ah-method-rows li { align-items: baseline; border-bottom: 1px solid var(--ah-line); display: grid; gap: 20px; grid-template-columns: 70px 220px minmax(0, 1fr); padding: 18px 0; }
.ah-method-rows span { font: 500 11px var(--ah-mono); }
.ah-method-rows h3 { font: 600 19px var(--ah-sans); margin: 0; }
.ah-method-rows p { color: var(--ah-muted); font-size: 16px; margin: 0; }

.ah-case-tool { border: 1px solid var(--ah-ink); display: grid; grid-template-columns: minmax(320px, .72fr) minmax(0, 1.28fr); min-height: 660px; }
.ah-case-index { border-right: 1px solid var(--ah-ink); display: flex; flex-direction: column; min-height: 0; }
.ah-case-index label { border-bottom: 1px solid var(--ah-ink); display: grid; gap: 7px; padding: 15px 17px; }
.ah-case-index label span, .ah-case-index > p { color: var(--ah-muted); font: 10px var(--ah-mono); letter-spacing: .08em; margin: 0; text-transform: uppercase; }
.ah-case-index input { background: transparent; border: 0; color: inherit; font: 16px var(--ah-sans); outline: 0; padding: 2px 0; width: 100%; }
.ah-case-index > p { border-bottom: 1px solid var(--ah-line); padding: 9px 17px; }
.ah-case-list { max-height: 574px; overflow: auto; }
.ah-case-list button {
  align-items: center;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ah-line);
  color: inherit;
  cursor: pointer;
  display: grid;
  gap: 13px;
  grid-template-columns: 34px minmax(0, 1fr) minmax(95px, .55fr);
  padding: 15px 17px;
  text-align: left;
  width: 100%;
}
.ah-case-list button:hover, .ah-case-list button[aria-current="true"] { background: var(--ah-ink); color: var(--ah-paper); }
.ah-case-list button[hidden] { display: none; }
.ah-case-list i, .ah-case-list small, .ah-case-list em { font: normal 10px/1.35 var(--ah-mono); }
.ah-case-list span { display: grid; gap: 3px; }
.ah-case-list b { font: 600 15px var(--ah-sans); }
.ah-case-list small, .ah-case-list em { color: var(--ah-muted); }
.ah-case-list em { text-align: right; }
.ah-case-stage { min-width: 0; position: relative; }
.ah-case-detail { display: grid; grid-template-rows: minmax(280px, 52%) 1fr; height: 100%; }
.ah-case-media { background: var(--ah-pale); border-bottom: 1px solid var(--ah-ink); min-height: 280px; overflow: hidden; position: relative; }
.ah-case-media img { height: 100%; object-fit: cover; object-position: top; width: 100%; }
.ah-case-glyph { align-content: center; display: grid; height: 100%; justify-items: center; overflow: hidden; position: relative; }
.ah-case-glyph i { border: 1px solid var(--ah-ink); height: 190px; position: absolute; transform: rotate(18deg); width: 190px; }
.ah-case-glyph b { font: 600 100px/.9 var(--ah-mono); letter-spacing: -.14em; z-index: 1; }
.ah-case-glyph span { font: 10px var(--ah-mono); margin-top: 20px; z-index: 1; }
.ah-case-copy { align-content: start; display: grid; padding: 30px 34px; }
.ah-case-copy small { color: var(--ah-muted); font: 10px var(--ah-mono); letter-spacing: .1em; }
.ah-case-copy h3 { font: 600 clamp(31px, 4vw, 54px)/1.02 var(--ah-sans); letter-spacing: -.045em; margin: 12px 0; }
.ah-case-copy strong { color: var(--ah-ink); font: 600 18px var(--ah-mono); margin-bottom: 15px; }
.ah-case-copy p { color: var(--ah-muted); font-size: 17px; margin: 0; max-width: 670px; }
.ah-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.ah-tags span { border: 1px solid var(--ah-line); font: 10px var(--ah-mono); padding: 5px 7px; }
.ah-case-copy footer { border-top: 1px solid var(--ah-line); display: flex; justify-content: space-between; margin-top: 24px; padding-top: 13px; }
.ah-case-copy footer span { color: var(--ah-muted); font: 10px var(--ah-mono); }

.ah-route-canvas { border: 1px solid var(--ah-ink); display: grid; grid-template-columns: 280px minmax(0, 1fr) 290px; min-height: 510px; }
.ah-route-orbit { align-items: center; border-right: 1px solid var(--ah-ink); display: flex; justify-content: center; overflow: hidden; position: relative; }
.ah-route-orbit i { border: 1px solid var(--ah-line); border-radius: 50%; height: 210px; position: absolute; width: 210px; }
.ah-route-orbit i:nth-child(2) { height: 130px; transform: translate(44px, -38px); width: 130px; }
.ah-route-orbit span { align-items: center; background: var(--ah-ink); border-radius: 50%; color: var(--ah-paper); display: flex; font: 600 12px/1.2 var(--ah-mono); height: 96px; justify-content: center; text-align: center; width: 96px; z-index: 1; }
.ah-route-list a { align-items: center; border-bottom: 1px solid var(--ah-line); display: grid; gap: 15px; grid-template-columns: 35px minmax(0, 1fr) auto; min-height: 98px; padding: 16px 20px; text-decoration: none; }
.ah-route-list a:last-child { border-bottom: 0; }
.ah-route-list a:hover, .ah-route-list a[aria-current="true"] { background: var(--ah-accent); }
.ah-route-list i, .ah-route-list em { font: normal 10px var(--ah-mono); }
.ah-route-list small { font: normal 13px/1.35 var(--ah-sans); }
.ah-route-list span { display: grid; gap: 4px; }
.ah-route-list b { font: 600 17px var(--ah-sans); }
.ah-route-list small { color: var(--ah-muted); }
.ah-route-list em { white-space: nowrap; }
.ah-route-note { align-content: end; background: var(--ah-pale); border-left: 1px solid var(--ah-ink); display: grid; padding: 28px; }
.ah-route-note small { font: 600 10px var(--ah-mono); letter-spacing: .1em; }
.ah-route-note h3 { font: 600 32px/1.05 var(--ah-sans); margin: 13px 0; }
.ah-route-note p { color: var(--ah-muted); margin: 0; }

.ah-people-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ah-people-grid article { border: 1px solid var(--ah-ink); border-right: 0; padding-bottom: 22px; }
.ah-people-grid article:nth-child(3n) { border-right: 1px solid var(--ah-ink); }
.ah-person-photo { aspect-ratio: 4 / 3; background: var(--ah-pale); border-bottom: 1px solid var(--ah-ink); overflow: hidden; }
.ah-person-photo img { filter: grayscale(1); height: 100%; object-fit: cover; transition: filter .2s ease, transform .4s ease; width: 100%; }
.ah-people-grid article:hover img { filter: grayscale(0); transform: scale(1.02); }
.ah-person-photo span { align-items: center; display: flex; font: 600 48px var(--ah-mono); height: 100%; justify-content: center; }
.ah-people-grid h3 { font: 600 18px var(--ah-sans); margin: 19px 20px 3px; }
.ah-people-grid article > p { color: var(--ah-muted); font: 14px/1.4 var(--ah-sans); margin: 0 20px; }
.ah-voices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 48px; }
.ah-voices blockquote { border-left: 1px solid var(--ah-ink); margin: 0; min-height: 260px; padding: 24px; }
.ah-voices blockquote:last-child { border-right: 1px solid var(--ah-ink); }
.ah-voices blockquote p { font: 400 20px/1.45 var(--ah-serif); margin: 0; }
.ah-voices footer { display: grid; gap: 3px; margin-top: 25px; }
.ah-voices b { font: 600 12px var(--ah-sans); }
.ah-voices span { color: var(--ah-muted); font: 10px var(--ah-mono); }

.ah-lab { background: var(--ah-ink); color: var(--ah-paper); }
.ah-lab-grid { align-items: end; display: grid; gap: 80px; grid-template-columns: minmax(0, 1fr) minmax(340px, .7fr); }
.ah-lab header > span { color: var(--ah-accent); }
.ah-lab h2 { font: 600 clamp(46px, 7vw, 94px)/.93 var(--ah-sans); letter-spacing: -.065em; margin: 22px 0; }
.ah-lab header > p { color: #bbb; font-size: 18px; max-width: 670px; }
.ah-lab .ah-button { background: var(--ah-accent); border-color: var(--ah-accent); color: var(--ah-ink) !important; margin-top: 22px; }
.ah-lab dl { border-top: 1px solid #777; margin: 0; }
.ah-lab dl > div { border-bottom: 1px solid #444; display: grid; gap: 16px; grid-template-columns: 120px 1fr; padding: 15px 0; }
.ah-lab dt { color: #999; font: 10px var(--ah-mono); text-transform: uppercase; }
.ah-lab dd { font: 500 15px/1.4 var(--ah-mono); margin: 0; }
.ah-closing { background: var(--ah-paper); opacity: .01; padding: 100px 0 120px; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.ah-closing p { font: 600 10px var(--ah-mono); letter-spacing: .12em; }
.ah-closing h2 { font: 600 clamp(45px, 7vw, 92px)/.93 var(--ah-sans); letter-spacing: -.065em; margin: 28px 0 40px; }
.ah-closing > .ah-wrap > div { align-items: center; display: flex; flex-wrap: wrap; gap: 16px 25px; }
.ah-closing > .ah-wrap > div > a:not(.ah-button) { font: 600 12px var(--ah-mono); }

.is-artifacts { --ah-accent: #e9b400; --ah-paper: #fffdf7; }
.is-artifacts .ah-hero h1 { font-family: var(--ah-serif); font-weight: 500; letter-spacing: -.055em; }
.is-artifacts .ah-cases { padding-top: 70px; }
.is-artifacts .ah-case-tool { min-height: 790px; }
.is-artifacts .ah-case-detail { grid-template-rows: minmax(390px, 60%) 1fr; }
.is-human { --ah-accent: #ff4b43; --ah-paper: #fffaf4; }
.is-human .ah-hero h1, .is-human .ah-section-head h2 { font-family: var(--ah-serif); font-weight: 500; }
.is-human .ah-people { padding-top: 70px; }
.is-live { --ah-paper: #080808; --ah-ink: #f4f4ed; --ah-line: #30302d; --ah-muted: #a4a49e; --ah-pale: #10100f; --ah-accent: #c3ff00; }
.is-live .ah-particles, .is-canvas .ah-particles { opacity: 1; }
.is-live .ah-hero { background: radial-gradient(circle at 78% 23%, rgba(195,255,0,.08), transparent 35%), var(--ah-paper); }
.is-live .ah-lab { background: var(--ah-accent); color: #050505; }
.is-live .ah-lab header > span, .is-live .ah-lab header > p { color: #252525; }
.is-live .ah-lab dl { border-color: #050505; }
.is-live .ah-lab dl > div { border-color: rgba(0,0,0,.3); }
.is-live .ah-lab dt { color: #444; }
.is-live .ah-lab .ah-button { background: #050505; border-color: #050505; color: #fff !important; }
.is-canvas { --ah-accent: #e9b400; --ah-paper: #fffaf2; }
.is-canvas .ah-hero { background: radial-gradient(circle at 76% 34%, rgba(233,180,0,.12), transparent 38%); }
.is-canvas .ah-portfolio { padding-top: 70px; }
.is-canvas .ah-route-orbit i { animation: ah-orbit 12s linear infinite; }
.is-canvas .ah-route-orbit i:nth-child(2) { animation-direction: reverse; animation-duration: 8s; }
@keyframes ah-orbit { to { transform: rotate(360deg); } }

@media (max-width: 1000px) {
  .ah-variants a { min-width: 86px; padding: 0 10px; }
  .ah-hero-grid { gap: 45px; grid-template-columns: 1fr 240px; }
  .ah-route-canvas { grid-template-columns: 210px minmax(0, 1fr); }
  .ah-route-note { border-left: 0; border-top: 1px solid var(--ah-ink); grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  html[data-branch^="anka-"] { --shell-h: 54px; }
  html[data-branch^="anka-"] .lab-shell { grid-template-columns: 1fr; grid-template-rows: 54px; height: 54px; }
  .ah-wrap { padding-left: 18px; padding-right: 18px; }
  .ah-masthead { display: block; padding-top: 0; position: sticky; top: 54px; }
  .ah-brand { display: none; }
  .ah-variants { overflow-x: auto; }
  .ah-variants a { flex: 1 0 76px; justify-content: center; min-height: 46px; min-width: 76px; padding: 0 7px; }
  .ah-variants span { font-size: 8px; }
  .ah-section-head { display: block; margin-bottom: 25px; }
  .ah-section-head > span { display: block; margin-bottom: 17px; }
  .ah-section-head h2 { font-size: clamp(31px, 10vw, 44px); }
  .ah-section-head > p { font-size: 16px; margin-top: 13px; }
  .ah-hero { min-height: calc(100svh - 100px); }
  .ah-hero-grid { align-items: start; display: block; padding-bottom: 45px; padding-top: 60px; }
  .ah-hero h1 { font-size: clamp(48px, 15.5vw, 72px); }
  .ah-lede { font-size: 17px; margin-top: 25px; }
  .ah-actions { align-items: stretch; flex-direction: column; margin-top: 28px; }
  .ah-actions .ah-button { width: 100%; }
  .ah-hero-ledger { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: 50px; }
  .ah-hero-ledger > div { display: block; padding-right: 12px; }
  .ah-hero-ledger b, .ah-hero-ledger span { display: block; }
  .ah-hero-ledger span { margin-top: 5px; }
  .ah-method, .ah-cases, .ah-portfolio, .ah-people, .ah-lab { padding: 65px 0; }
  .ah-method-rows li { gap: 7px 12px; grid-template-columns: 38px 1fr; }
  .ah-method-rows p { grid-column: 2; }
  .ah-case-tool { border-left: 0; border-right: 0; display: flex; flex-direction: column-reverse; margin-left: -18px; margin-right: -18px; min-height: 0; }
  .ah-case-index { border-right: 0; }
  .ah-case-list { max-height: 430px; }
  .ah-case-list button { grid-template-columns: 28px 1fr; }
  .ah-case-list em { display: none; }
  .ah-case-detail { display: block; }
  .ah-case-media { min-height: 250px; }
  .ah-case-copy { padding: 25px 20px 28px; }
  .ah-case-copy h3 { font-size: 34px; }
  .ah-case-copy p { font-size: 16px; }
  .ah-case-copy footer { display: grid; gap: 5px; }
  .ah-route-canvas { border-left: 0; border-right: 0; display: block; margin-left: -18px; margin-right: -18px; min-height: 0; }
  .ah-route-orbit { border-bottom: 1px solid var(--ah-ink); border-right: 0; min-height: 260px; }
  .ah-route-list a { grid-template-columns: 28px 1fr; }
  .ah-route-list em { display: none; }
  .ah-route-note { padding: 22px 18px; }
  .ah-people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ah-people-grid article, .ah-people-grid article:nth-child(3n) { border-right: 0; }
  .ah-people-grid article:nth-child(2n) { border-right: 1px solid var(--ah-ink); }
  .ah-people-grid h3 { font-size: 15px; margin-left: 13px; margin-right: 13px; }
  .ah-people-grid article > p { font-size: 13px; margin-left: 13px; margin-right: 13px; }
  .ah-voices { display: block; margin-top: 35px; }
  .ah-voices blockquote, .ah-voices blockquote:last-child { border-bottom: 1px solid var(--ah-line); border-right: 0; min-height: 0; padding: 24px 10px; }
  .ah-voices blockquote p { font-size: 19px; }
  .ah-lab-grid { display: block; }
  .ah-lab h2 { font-size: 54px; }
  .ah-lab dl { margin-top: 45px; }
  .ah-closing { padding: 70px 0 90px; }
  .ah-closing h2 { font-size: 49px; }
}

@media (max-width: 390px) {
  .ah-variants a { flex-basis: 69px; min-width: 69px; }
  .ah-variants span { font-size: 7px; }
  .ah-people-grid { display: block; }
  .ah-people-grid article, .ah-people-grid article:nth-child(2n) { border-right: 1px solid var(--ah-ink); }
}

@media (prefers-reduced-motion: reduce) {
  .ah-section, .ah-closing { opacity: 1; transform: none; transition: none; }
  .is-canvas .ah-route-orbit i { animation: none; }
}
