:root {
  --bg: #f4f4f2; --bg-2: #ffffff; --line: rgba(11, 11, 12, 0.09);
  --fg: #0b0b0c; --fg-2: #55555b;
  --gut: clamp(16px, 3vw, 40px); --max: 1080px;
  --sans: "Plus Jakarta Sans", system-ui, sans-serif;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  color-scheme: light;
}
/* dark: follows the system until the visitor picks a theme with the nav toggle */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #0b0b0c; --bg-2: #161618; --line: rgba(237, 237, 238, 0.1); --fg: #ededee; --fg-2: #a1a1a7; color-scheme: dark; }
}
:root[data-theme="dark"] { --bg: #0b0b0c; --bg-2: #161618; --line: rgba(237, 237, 238, 0.1); --fg: #ededee; --fg-2: #a1a1a7; color-scheme: dark; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 1rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
::selection { background: var(--fg); color: var(--bg); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 4px; border-radius: 4px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 30; padding: 10px 16px; background: var(--fg); color: var(--bg); border-radius: 999px; }
.skip:focus { top: 16px; }
.ico { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* floating nav bar */
.nav { position: sticky; top: 12px; z-index: 20; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
  width: calc(100% - 2 * var(--gut)); max-width: var(--max); margin: 12px auto 0; padding: 10px 10px 10px 22px;
  background: color-mix(in srgb, var(--bg-2) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border: 1px solid var(--line); border-radius: 18px; }
.nav__mark { font-weight: 700; font-size: 1.125rem; letter-spacing: -0.03em; white-space: nowrap; }
.nav__links { display: flex; gap: 4px; }
.nav__links a { padding: 8px 14px; border-radius: 999px; font-weight: 500; font-size: 0.9375rem; color: var(--fg-2); transition: color 200ms ease, background-color 200ms ease; }
.nav__links a[aria-current] { color: var(--fg); background: var(--line); }
.nav__end { justify-self: end; display: flex; align-items: center; gap: 8px; }
.nav__theme { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--line); color: var(--fg); transition: background-color 200ms ease, transform 200ms var(--ease); }
.nav__theme .ico { width: 16px; height: 16px; }
.nav__theme .i-sun { display: none; }
:root[data-theme="dark"] .nav__theme .i-sun { display: block; }
:root[data-theme="dark"] .nav__theme .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .nav__theme .i-sun { display: block; }
  :root:not([data-theme="light"]) .nav__theme .i-moon { display: none; }
}
.nav__theme:active { transform: scale(0.94); }
.nav__menu { display: none; }
/* phone menu: native popover, light-dismiss and Esc for free */
.menu { position: fixed; inset: 84px var(--gut) auto auto; width: min(260px, calc(100vw - 2 * var(--gut))); margin: 0; padding: 8px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg-2); color: var(--fg); box-shadow: 0 18px 40px -12px rgba(0,0,0,.28); }
.menu a { display: block; padding: 12px 14px; border-radius: 12px; font-weight: 500; font-size: 1.0625rem; }
.menu a:active { background: var(--line); }
@media (hover: hover) and (pointer: fine) { .menu a:hover { background: var(--line); } }
.nav__cta { display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 999px; background: var(--fg); color: var(--bg); font-weight: 500; font-size: 0.9375rem; transition: transform 200ms var(--ease); }
.nav__cta:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .nav__links a:hover { color: var(--fg); background: var(--line); }
  .nav__theme:hover { background: var(--line); }
}

/* shared type */
.h2 { margin: 0; font-weight: 700; font-size: clamp(1.75rem, 3.2vw, 2.5rem); line-height: 1.1; letter-spacing: -0.03em; text-wrap: balance; }
.h3 { margin: 40px 0 8px; font-weight: 700; font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.02em; }
.lede { margin: 12px 0 0; color: var(--fg-2); font-size: 1.125rem; max-width: 60ch; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; border: 1px solid var(--fg); font-weight: 500; transition: background-color 200ms ease, color 200ms ease, transform 200ms var(--ease); }
.btn--solid { background: var(--fg); color: var(--bg); }
.btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .btn:not(.btn--solid):hover { background: var(--fg); color: var(--bg); }
}

/* home: one screen like birju.dev, no scroll on desktop or phone */
body.is-home { min-height: 100svh; display: flex; flex-direction: column; }
.home { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: clamp(36px, 5.5vh, 64px); width: 100%; max-width: var(--max); margin: 0 auto; padding: clamp(24px, 5vh, 56px) var(--gut); text-align: center; }
.home__h { margin: 0; max-width: 16ch; font-weight: 700; font-size: clamp(2.5rem, min(6.4vw, 10vh), 5.25rem); line-height: 1.02; letter-spacing: -0.04em; text-wrap: balance; }
.svc { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; width: 100%; max-width: 960px; }
/* service containers: hairline border, a lit top edge, frosted over the dot field */
.svc li { position: relative; padding: 20px 18px 22px; border: 1px solid var(--line); border-radius: 18px;
  background: color-mix(in srgb, var(--bg-2) 72%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--bg-2) 60%, transparent), 0 1px 2px rgba(0,0,0,.04), 0 12px 32px -18px rgba(0,0,0,.18); }
.svc__name { margin: 0; font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.02em; }
.svc p { margin: 4px 0 0; color: var(--fg-2); font-size: 0.9375rem; line-height: 1.5; text-wrap: balance; }
.home__contact { container-type: inline-size; width: 100%; max-width: 960px; margin-top: clamp(8px, 3vh, 32px); }
.home__contact .mail { margin: 0; text-align: center; font-size: min(3.25rem, 6.4cqi); }
.home__contact .mail__note { margin-top: 12px; }

/* background: dot field drawn by main.js, fades out toward the edges */
.bg-field { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, #000 30%, transparent 100%); mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, #000 30%, transparent 100%); }
body { position: relative; z-index: 0; }

/* short phones: tighter spacing so home still fits one screen */
@media (max-height: 700px) and (max-width: 760px) { .home { gap: 18px; padding-block: 12px; } .home__contact { margin-top: 0; } .svc li { padding: 10px 10px 12px; } .home__h { font-size: 2.25rem; } .is-home .foot { padding: 8px 0 10px; } }

/* page heads: work, resume */
.page-head { width: 100%; max-width: var(--max); margin: 0 auto; padding: clamp(48px, 7vw, 88px) var(--gut) clamp(28px, 4vw, 44px); }
.page-head__h { margin: 0; font-weight: 700; font-size: clamp(2.25rem, 5vw, 3.5rem); line-height: 1.05; letter-spacing: -0.04em; }
.page-head .lede { margin-top: 12px; }
.lede a { color: var(--fg); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.resume__sec { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut) clamp(48px, 6vw, 72px); }
.resume__sec .h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.rows--3 th { width: 40%; font-weight: 500; }
.rows .yr { width: 1%; padding-left: 24px; white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }

/* work tiles */
.work { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut) clamp(72px, 9vw, 120px); }
.work__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 32px; margin-bottom: 28px; }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.tile a { display: flex; flex-direction: column; height: 100%; background: var(--g); color: var(--i); border-radius: 24px; overflow: hidden; padding: 28px 28px 24px; }
.tile__shot { display: block; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 14px 36px -8px rgba(0,0,0,.32); transition: transform 500ms var(--ease), box-shadow 500ms var(--ease); }
.tile__shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.tile__text { display: flex; flex-direction: column; flex: 1; padding-top: 24px; }
.tile__name { margin: 0; font-weight: 700; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.1; letter-spacing: -0.03em; }
.tile__what { margin-top: 6px; font-size: 1rem; opacity: 0.82; text-wrap: pretty; }
.tile__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: auto; padding-top: 20px; }
.tag { padding: 4px 11px; border: 1px solid currentColor; border-radius: 999px; font-size: 0.8125rem; font-weight: 500; white-space: nowrap; opacity: 0.86; }
.tile__url { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font-weight: 500; font-size: 0.9375rem; white-space: nowrap; }
.tile__url .ico { transition: transform 300ms var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .tile a:hover .tile__shot { transform: translateY(-6px); box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 24px 48px -10px rgba(0,0,0,.38); }
  .tile a:hover .tile__url .ico { transform: translate(2px, -2px); }
}
.tile a:active .tile__shot { transform: translateY(-2px); }
/* online store tiles: plain white card, the screenshot carries the color */
.tile--plain { --g: var(--bg-2); --i: var(--fg); }
.tile--plain a { border: 1px solid var(--line); }
.tile--plain .tile__shot { box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 10px 28px -10px rgba(0,0,0,.22); }

/* the wide tile: text left, screenshot right */
.tile--wide { grid-column: 1 / -1; }
.tile--wide a { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.7fr); grid-template-areas: "text shot"; gap: 40px; align-items: stretch; padding: 36px; }
.tile--wide .tile__shot { grid-area: shot; align-self: center; }
.tile--wide .tile__text { grid-area: text; padding-top: 4px; }
.tile--wide .tile__name { font-size: clamp(2rem, 4vw, 3.25rem); }
.tile--wide .tile__what { font-size: 1.125rem; margin-top: 12px; }

/* tiles rise in as they enter; without the script they are simply visible */
.js .tile { opacity: 0; transform: translateY(28px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.js .tile.is-in { opacity: 1; transform: none; }

/* ruled rows: resume */
.rows { width: 100%; border-collapse: collapse; margin-top: 24px; }
.rows th, .rows td { padding: 18px 0; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.rows tr:last-child th, .rows tr:last-child td { border-bottom: 1px solid var(--line); }
.rows th { width: 34%; padding-right: 24px; font-weight: 700; letter-spacing: -0.01em; }
.rows td { color: var(--fg-2); text-wrap: pretty; }

/* contact */
.contact { container-type: inline-size; width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut) clamp(96px, 12vw, 160px); }
.mail { display: block; width: 100%; margin-top: clamp(28px, 4vw, 48px); text-align: left; font-weight: 700; font-size: min(5.5rem, 7.6cqi); line-height: 1.05; letter-spacing: -0.04em; white-space: nowrap; }
.mail__text { display: inline-block; transition: filter 200ms ease, opacity 200ms ease; }
.mail__text.is-swap { filter: blur(4px); opacity: 0; }
.mail .ch { display: inline-block; }
/* letters rise in with a blur on load; a wave runs through them on hover (main.js adds the classes) */
.mail.is-intro .ch { animation: ch-in 800ms var(--ease) both; animation-delay: calc(var(--i) * 24ms + 150ms); }
.mail.is-wave .ch { animation: ch-wave 700ms var(--ease) both; animation-delay: calc(var(--i) * 20ms); }
@keyframes ch-in { from { opacity: 0; transform: translateY(0.45em); filter: blur(8px); } }
@keyframes ch-wave { 35% { transform: translateY(-0.16em); opacity: .55; } 70% { transform: translateY(0.03em); } }
.mail__note { margin: 20px 0 0; color: var(--fg-2); }
.mail__note a { white-space: nowrap; color: var(--fg); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* about: same layout as the Primal Wine About page (photo card left, bordered cards right, press panel) */
.about__intro { width: 100%; max-width: var(--max); margin: 0 auto; padding: clamp(48px, 7vw, 88px) var(--gut) clamp(28px, 4vw, 44px); }
.about__h { margin: 0; font-weight: 700; font-size: clamp(2.25rem, 5vw, 3.5rem); line-height: 1.05; letter-spacing: -0.04em; }
.about__intro .lede { margin-top: 16px; max-width: 58ch; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); text-wrap: pretty; }
.founder { display: grid; grid-template-columns: minmax(0, 0.68fr) minmax(0, 1.32fr); gap: clamp(24px, 3.6vw, 48px); align-items: start; width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.photo-card { position: sticky; top: 100px; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--bg-2); }
.photo-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.photo-card figcaption { display: flex; flex-direction: column; gap: 2px; padding: 16px 20px; border-top: 1px solid var(--line); }
.photo-card__name { font-weight: 700; letter-spacing: -0.02em; }
.photo-card__role { color: var(--fg-2); font-size: 0.875rem; }
.cards { display: grid; gap: 16px; }
.card { padding: clamp(20px, 2.4vw, 30px); border: 1px solid var(--line); border-radius: 20px; background: var(--bg-2); }
.card h2 { margin: 0 0 10px; font-weight: 700; font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.2; letter-spacing: -0.03em; }
.card p { margin: 0 0 14px; font-size: 1.0625rem; line-height: 1.65; text-wrap: pretty; }
.card p:last-child { margin-bottom: 0; }
.card a { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.press { width: 100%; max-width: var(--max); margin: 0 auto; padding: clamp(56px, 8vw, 96px) var(--gut) 0; }
.press__panel { padding: clamp(40px, 6vw, 80px) clamp(20px, 4vw, 56px); border-radius: 24px; background: #161618; color: #f4f4f2; }
:root[data-theme="dark"] .press__panel { border: 1px solid var(--line); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .press__panel { border: 1px solid var(--line); } }
.press__h { margin: 0 0 clamp(28px, 4vw, 48px); font-weight: 700; font-size: clamp(1.75rem, 3.2vw, 2.5rem); line-height: 1.1; letter-spacing: -0.03em; text-align: center; }
.press__quotes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid rgba(255,255,255,.18); border-radius: 18px; background: rgba(255,255,255,.18); }
.q { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; margin: 0; padding: 26px 22px; background: #161618; }
.q blockquote { margin: 0; font-size: 1.0625rem; line-height: 1.5; text-wrap: pretty; }
.q img { width: auto; height: 26px; filter: brightness(0) invert(1); opacity: .9; }
.contact--about { padding-top: clamp(64px, 8vw, 104px); }
.contact--about .mail { font-size: min(3.5rem, 7.6cqi); }

/* contact: brief builder on the left, live email on the right */
.brief { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.brief__form { display: grid; gap: 20px; }
.field-group { margin: 0; padding: 0; border: 0; }
.field-group legend, .field > span { margin-bottom: 8px; padding: 0; font-weight: 700; font-size: 0.9375rem; letter-spacing: -0.01em; }
.field-group legend { margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; width: 1px; height: 1px; opacity: 0; margin: 0; pointer-events: none; }
.chip span { cursor: pointer; }
.chip span { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--bg-2) 80%, transparent); font-weight: 500; font-size: 0.9375rem; white-space: nowrap; transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, transform 200ms var(--ease); }
.chip input:checked + span { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chip input:active + span { transform: scale(0.97); }
.chip input:focus-visible + span { outline: 2px solid var(--fg); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .chip input:not(:checked):hover + span { border-color: var(--fg-2); } }
.field { display: grid; }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: color-mix(in srgb, var(--bg-2) 85%, transparent); color: var(--fg); font: inherit; font-size: 1rem; transition: border-color 200ms ease, box-shadow 200ms ease; }
.field textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2355555b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.field input::placeholder, .field textarea::placeholder { color: var(--fg-2); opacity: 0.7; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--fg); box-shadow: 0 0 0 3px var(--line); }
.mailcard { position: sticky; top: 96px; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--bg-2); box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 24px 48px -24px rgba(0,0,0,.28); }
.mailcard__bar { display: flex; gap: 6px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.mailcard__bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.mailcard__head { margin: 0; }
.mailcard__head div { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line); font-size: 0.9375rem; }
.mailcard__head dt { color: var(--fg-2); }
.mailcard__head dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.mailcard__body { min-height: 240px; margin: 0; padding: 20px; font: 400 0.9375rem/1.65 var(--sans); white-space: pre-wrap; overflow-wrap: anywhere; color: var(--fg); }
.mailcard__body::after { content: ""; display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: text-bottom; background: var(--fg); animation: caret 1.1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.mailcard__actions { display: flex; flex-wrap: wrap; gap: 10px; padding: 16px 20px; border-top: 1px solid var(--line); }
.mailcard__note { min-height: 1.5em; margin: 0; padding: 0 20px 16px; color: var(--fg-2); font-size: 0.875rem; }
.contact-alt { display: flex; flex-wrap: wrap; gap: 8px 28px; width: 100%; max-width: var(--max); margin: 0 auto; padding: clamp(40px, 6vw, 72px) var(--gut) clamp(48px, 6vw, 72px); color: var(--fg-2); }
.contact-alt a { color: var(--fg); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
@media (max-width: 860px) { .brief { grid-template-columns: 1fr; } .mailcard { position: static; } }
@media (prefers-reduced-motion: reduce) { .mailcard__body::after { animation: none; } }

/* resources: search + filters, then ruled tables per category */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.res-tools { position: sticky; top: 84px; z-index: 5; width: calc(100% - 2 * var(--gut)); max-width: calc(var(--max) - 2 * var(--gut)); margin: 0 auto; padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: color-mix(in srgb, var(--bg-2) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
.res-search { display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 46px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--fg-2); }
.res-search:focus-within { border-color: var(--fg); box-shadow: 0 0 0 3px var(--line); }
.res-search .ico { width: 18px; height: 18px; flex: none; }
.res-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; color: var(--fg); font: inherit; font-size: 1rem; outline: none; }
.res-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip-btn { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; font-weight: 500; font-size: 0.875rem; white-space: nowrap; transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, transform 200ms var(--ease); }
.chip-btn span { color: var(--fg-2); font-variant-numeric: tabular-nums; }
.chip-btn[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chip-btn[aria-pressed="true"] span { color: inherit; opacity: .7; }
.chip-btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .chip-btn[aria-pressed="false"]:hover { border-color: var(--fg-2); } }
.res-status { margin: 10px 2px 0; color: var(--fg-2); font-size: 0.8125rem; }
.res-body { width: 100%; max-width: var(--max); margin: 0 auto; padding: 8px var(--gut) clamp(64px, 8vw, 104px); }
.res-group { padding-top: clamp(40px, 6vw, 72px); scroll-margin-top: 220px; }
.res-group__head p { margin: 10px 0 0; max-width: 64ch; color: var(--fg-2); }
.res-count { color: var(--fg-2); font-weight: 500; }
.res-cat { margin-top: 32px; }
.res-cat__h { margin: 0 0 4px; font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.02em; }
.res-table { width: 100%; border-collapse: collapse; }
.res-table tr { scroll-margin-top: 230px; }
.res-table th, .res-table td { padding: 13px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: baseline; }
.res-table th { width: 30%; padding-right: 20px; font-weight: 500; }
.res-table th a { display: inline-flex; align-items: center; gap: 6px; }
.res-table th a .ico { width: 14px; height: 14px; color: var(--fg-2); transition: transform 300ms var(--ease); }
@media (hover: hover) and (pointer: fine) { .res-table th a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; } .res-table th a:hover .ico { transform: translate(2px, -2px); } }
.res-table td { color: var(--fg-2); font-size: 0.9375rem; text-wrap: pretty; }
.res-table .res-meta { width: 1%; padding-left: 20px !important; white-space: nowrap; text-wrap: nowrap; text-align: right !important; }
.pill { display: inline-flex; align-items: center; white-space: nowrap; height: 24px; margin-left: 6px; padding: 0 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--fg-2); font-size: 0.75rem; font-weight: 500; }
.pill--use { border-color: var(--fg); color: var(--fg); }
.res-table tr:target th, .res-table tr:target td { background: var(--line); }
.res-empty { padding: 56px 0; text-align: center; color: var(--fg-2); }
.res-empty p { margin: 0 0 16px; }
@media (max-width: 760px) {
  .res-tools { top: 80px; padding: 10px; border-radius: 16px; }
  .res-chips { flex-wrap: nowrap; overflow-x: auto; margin: 10px -10px 0; padding: 0 10px; scrollbar-width: none; }
  .res-table tr { display: grid; grid-template-columns: 1fr; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .res-table th, .res-table td { width: auto; padding: 0; border: 0; }
  .res-table td { margin-top: 3px; }
  .res-table .res-meta { padding: 6px 0 0 !important; text-align: left !important; }
  .res-table.gl-table th { width: auto; }
  .res-meta .pill:first-child { margin-left: 0; }
}

/* icons: pack heads, light preview grids (outlined icons need a light ground in dark mode too) */
.pack { width: 100%; max-width: var(--max); margin: 0 auto; padding: clamp(40px, 6vw, 72px) var(--gut) 0; scroll-margin-top: 90px; }
.pack__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; margin-bottom: 20px; }
.pack__line { margin: 8px 0 0; color: var(--fg-2); }
.pack__formats { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.pack__formats li { padding: 4px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--fg-2); font-size: 0.8125rem; }
.pack__buy { display: flex; align-items: center; gap: 16px; }
.pack__price { margin: 0; color: var(--fg-2); font-size: 0.875rem; }
.pack__price span { margin-right: 4px; color: var(--fg); font-weight: 700; font-size: 1.75rem; letter-spacing: -0.03em; }
.btn--off { opacity: .5; cursor: default; }
.pack-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.pack-jump a { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; font-weight: 500; font-size: 0.875rem; }
.pack-jump a span { color: var(--fg-2); }
@media (hover: hover) and (pointer: fine) { .pack-jump a:hover { border-color: var(--fg-2); } }
.icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 4px; margin: 0; padding: 14px; list-style: none; border: 1px solid var(--line); border-radius: 20px; background: #fbfbfa; color: #55555b; }
.icon-grid:not(.is-open) li:nth-child(n+25) { display: none; }
.icon-grid li { display: grid; justify-items: center; gap: 6px; padding: 12px 6px 10px; border-radius: 12px; transition: background-color 200ms ease; }
.icon-grid img { width: 72px; height: 72px; object-fit: contain; transition: transform 300ms var(--ease); }
.icon-grid span { max-width: 100%; overflow: hidden; font-size: 0.75rem; white-space: nowrap; text-overflow: ellipsis; }
@media (hover: hover) and (pointer: fine) { .icon-grid li:hover { background: rgba(11,11,12,.05); } .icon-grid li:hover img { transform: scale(1.08); } }
.icon-more { margin-top: 12px; }
.license { width: 100%; max-width: var(--max); margin: 0 auto; padding: clamp(56px, 8vw, 96px) var(--gut) clamp(64px, 8vw, 104px); }
.license a { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.thanks .page-head { min-height: 50vh; }
.thanks__note { margin-top: 28px; color: var(--fg-2); }
.thanks__note a { color: var(--fg); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 560px) { .icon-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 8px; } .icon-grid:not(.is-open) li:nth-child(n+16) { display: none; } .icon-grid img { width: 60px; height: 60px; } }

/* glossary: term, definition, source */
.gl-table th { width: 22%; }
.gl-table dfn { font-style: normal; font-weight: 700; letter-spacing: -0.01em; }
.gl-table td { color: var(--fg); }
.gl-src { display: inline-flex; align-items: center; gap: 4px; color: var(--fg-2); font-size: 0.8125rem; }
.gl-src .ico { width: 12px; height: 12px; }
@media (hover: hover) and (pointer: fine) { .gl-src:hover { color: var(--fg); } }

/* footer: copyright left, links right (birju.dev) */
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; width: calc(100% - 2 * var(--gut)); max-width: var(--max); margin: 0 auto; padding: 12px 0 14px; border-top: 1px solid var(--line); color: var(--fg-2); font-size: 0.875rem; }
.foot__links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
@media (hover: hover) and (pointer: fine) { .foot a:hover { color: var(--fg); } }

@media (max-width: 1000px) {
  .press__quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .nav__more { display: none; }
  .founder { grid-template-columns: 1fr; }
  .photo-card { position: static; max-width: 420px; }
  .tile--wide a { grid-template-columns: 1fr; grid-template-areas: "shot" "text"; gap: 0; padding: 22px 22px 20px; }
  .tile--wide .tile__text { padding-top: 22px; }
  .tile--wide .tile__what { font-size: 1rem; margin-top: 6px; }
  .tile--wide .tile__name { font-size: clamp(1.5rem, 6vw, 2rem); }
}
@media (max-width: 760px) {
  .svc { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .svc li { padding: 14px 12px 16px; border-radius: 14px; }
  .svc p { font-size: 0.875rem; }
  .tiles { grid-template-columns: 1fr; gap: 16px; }
  .tile a { padding: 22px 22px 20px; border-radius: 20px; }
  .tile__text { padding-top: 22px; }
  .rows th, .rows td { display: block; width: auto; padding: 0; border: 0; }
  .rows tr { display: block; padding: 16px 0; border-top: 1px solid var(--line); }
  .rows tr:last-child { border-bottom: 1px solid var(--line); }
  .rows td { margin-top: 4px; }
  .rows tr:last-child th, .rows tr:last-child td { border-bottom: 0; }
  .rows .yr { text-align: left; padding-left: 0; }
}
@media (max-width: 560px) {
  .press__quotes { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .nav { padding-left: 16px; grid-template-columns: auto 1fr auto; gap: 4px; }
  .nav__mark { font-size: 1rem; }
  .nav__links { justify-content: center; gap: 0; }
  .nav__links a { padding: 8px 9px; font-size: 0.875rem; }
  .nav__cta { padding: 0 14px; font-size: 0.875rem; }
  .foot__links { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 4px 24px; }
  .nav__end { gap: 6px; }
  .nav__theme { width: 40px; height: 40px; }
  .nav__theme .ico { width: 16px; height: 16px; }
}
/* phones: links and Contact move into the menu button */
@media (max-width: 640px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav__links, .nav__cta { display: none; }
  .nav__menu { display: grid; }
}
@media (prefers-reduced-motion: reduce) {
  .js .tile { opacity: 1; transform: none; transition: none; }
  .tile__shot, .mail .ch, .mail__text { transition: none; }
  .mail .ch { animation: none !important; }
}
