@font-face {
  font-family: Orbitron;
  src: url("assets/orbitron.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --font-sans: "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
  /* Comprehensive shared typography ramp */
  --type-large-title: 600 clamp(38px, 4.6vw, 56px)/1.08 var(--font-sans);
  --type-title-1: 600 clamp(26px, 2.8vw, 34px)/1.18 var(--font-sans);
  --type-title-2: 600 22px/1.25 var(--font-sans);
  --type-title-3: 600 16px/1.3 var(--font-sans);
  --type-body-1: 400 16px/1.62 var(--font-sans);
  --type-body-2: 400 14px/1.55 var(--font-sans);
  --type-caption: 500 12px/1.35 var(--font-sans);
  --type-quote: italic 400 clamp(20px, 2.1vw, 24px)/1.45 var(--font-serif);
  /* Legacy aliases mapped to the shared ramp */
  --type-title: var(--type-title-3);
  --type-body: var(--type-body-2);
  --type-meta: var(--type-caption);
  --paper: #121512;
  --ink: #e4e9df;
  --muted: #b3bdb0;
  --meta-soft: #7f8d7c;
  --line: #546958;
  --surface: #0c1a13;
  --table-head-bg: rgba(255, 255, 255, 0.05);
  --raised: #243027;
  --state-hover: #1a2e23;
  --state-pressed: #253f31;
  --state-border-hover: #56a882;
  --accent: #32e296;
  --accent-hover: #5cf0af;
  --accent-pressed: #85f6c4;
  --accent-ink: #081e13;
  --focus-ring: #6ff5bc;
  --visual: #152c21;
  --grid: #33513c;
  --glow: #32e29622;
  --spectrum-red: #ff8080;
  --spectrum-orange: #ffbd67;
  --spectrum-yellow: #ffe77a;
  --spectrum-green: #83e59b;
  --spectrum-cyan: #7ddde5;
  --spectrum-blue: #91b9ff;
  --spectrum-violet: #d6a0ff;
  --spectrum-pink: #ff8eca;
  --purple: var(--accent);
  --lavender: var(--raised);
}

:root[data-theme="light"] {
  color-scheme: light;
  --paper: #f1f3ed;
  --ink: #0c1a13;
  --muted: #56624f;
  --meta-soft: #5a6653;
  --line: #75866a;
  --surface: #ffffff;
  --table-head-bg: rgba(12, 26, 19, 0.045);
  --raised: #e2e8dd;
  --state-hover: #e6eee8;
  --state-pressed: #d4e2d9;
  --state-border-hover: #227753;
  --accent: #227753;
  --accent-hover: #1b6345;
  --accent-pressed: #144f36;
  --accent-ink: #ffffff;
  --focus-ring: #227753;
  --visual: #cde2d4;
  --grid: #91b9a2;
  --glow: #22775324;
  --bg-grid: rgba(23, 33, 26, .065);
  --spectrum-red: #af2333;
  --spectrum-orange: #a14b00;
  --spectrum-yellow: #756000;
  --spectrum-green: #176b37;
  --spectrum-cyan: #006873;
  --spectrum-blue: #285ab7;
  --spectrum-violet: #7941b2;
  --spectrum-pink: #a52b70;
}

body {
  background-color: var(--paper);
  background-image: radial-gradient(circle, var(--bg-grid, rgba(242, 245, 239, .055)) 0.85px, transparent 0.85px);
  background-size: 16px 16px;
  background-position: center top;
  color: var(--ink);
}

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.skip { background: var(--accent); color: var(--accent-ink); }
.eyebrow, .concept-label, .article-note, .article-meta dt { color: var(--muted); }
.container { max-width: 1280px; }

.portfolio-intro {
  position: relative;
  isolation: isolate;
  padding: 64px 0 56px;
}

.portfolio-intro::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -40px 10% 0;
  background: radial-gradient(ellipse at 50% 25%, var(--glow), transparent 65%);
  pointer-events: none;
}

.intro-circuit {
  position: absolute;
  z-index: -1;
  bottom: 8px;
  left: 0;
  width: 100%;
  height: 190px;
  color: var(--line);
  opacity: .6;
  pointer-events: none;
}

.intro-portrait {
  padding: 9px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 0 60px var(--glow);
}

.intro-portrait .portrait { width: 104px; height: 104px; }

.portfolio-intro h1 {
  max-width: 100%;
  margin: 30px 0 18px;
  font: 700 clamp(38px, 7.8vw, 88px)/1.15 Orbitron, "Bahnschrift", sans-serif;
  letter-spacing: .025em;
  text-transform: uppercase;
}

.intro-description {
  max-width: 505px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.intro-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.button, .theme-toggle, .anim-toggle {
  border: 1px solid var(--accent);
  border-radius: 3px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 600;
  min-height: 48px;
  padding: 12px 18px;
  text-decoration: none;
}

.button.secondary, .theme-toggle, .anim-toggle {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}

.button:hover, .project-row:hover .project-open { box-shadow: 0 0 24px var(--glow); }
.button.secondary:hover, .theme-toggle:hover, .anim-toggle:hover { background: var(--raised); border-color: var(--accent); }
.button-count { padding: 0 0 0 16px; border-left: 1px solid var(--line); font-family: Consolas, monospace; }

.portfolio-work .project-filters { gap: 8px; margin: 12px 0 32px; }
.portfolio-work #project-count { width: 1px; margin: -1px; }
.project-filters button {
  min-height: 40px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font: 12px Consolas, monospace;
  padding: 10px 18px;
}

.project-filters button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.project-filters button:hover:not([aria-pressed="true"]) { background: var(--raised); color: var(--ink); }
.project-list { gap: 24px; }
.project-row {
  grid-template-columns: 1.15fr 1fr;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
}

.project-row:hover, .project-row:focus-visible { border-color: var(--accent); box-shadow: 0 0 36px var(--glow); }
.project-row:hover h3 { text-decoration: none; }
.project-visual {
  min-height: 360px;
  border-right: 1px solid var(--line);
  background-color: var(--visual);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 40px 40px;
}

.project-copy { padding: 34px; align-items: stretch; }
.project-tags { gap: 7px; color: var(--muted); }
.project-tags li { border: 1px solid var(--line); border-radius: 2px; color: var(--muted); font: 10px Consolas, monospace; }
.project-copy h3 { margin: 22px 0 10px; font: 600 13px/1.5 Orbitron, "Bahnschrift", sans-serif; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.project-copy > p { max-width: none; margin: 0; color: var(--ink); font-size: clamp(20px, 2.2vw, 26px); line-height: 1.45; letter-spacing: -.4px; }
.project-copy .concept-label { font: 11px/1.5 Consolas, monospace; margin-top: 12px; }
.project-open {
  min-height: 48px;
  width: 100%;
  margin-top: 28px;
  padding: 12px 16px;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 2px;
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 650;
}

.project-open .round-arrow { width: auto; height: auto; border: 0; border-radius: 0; font-size: 18px; }
.preview-window { color: #152f23; border-color: #70927d; box-shadow: 0 20px 50px #001c2240; }
.mini-tiles div { color: #45653e; }
.poster { background: #164b35; color: #efffd3; }
.poster::after { background: #c7f7a8; }
.poster strong, .project-visual .poster strong { font-family: Orbitron, sans-serif; font-size: 30px; }
.swatch-strip i { background: #c7f7a8; }
.swatch-strip i:nth-child(2) { background: #599778; }
.swatch-strip i:nth-child(3) { background: #eef9e5; }
.phone, .token-board { color: #24362b; }
.phone { border-color: #264b37; }
.token-button { background: #126744; color: #ffffff; }
.token-colors i { background: #257b58; }
.token-colors i:nth-child(2) { background: #90b8a0; }
.token-colors i:nth-child(3) { background: #d3e6dc; }
.token-colors i:nth-child(4) { background: #b8d596; }

.contact-section { border-color: var(--line); }
.booking { border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
.booking-note, .request-summary, .calendar-status, .day-heading > span { color: var(--muted); }
.day-heading, .day-heading time { color: var(--ink); }
.day-heading:hover:not(:disabled), .day-heading[aria-pressed="true"] { background: var(--raised); }
.day-heading:disabled { color: var(--muted); }
.time-slot { background: var(--raised); color: var(--ink); border-color: var(--line); border-radius: 2px; }
.time-slot:hover:not(:disabled) { background: var(--raised); border-color: var(--accent); }
.time-slot:disabled { background: var(--paper); color: var(--muted); border-color: var(--line); text-decoration: line-through; }
.time-slot[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.contact-form input, .contact-form textarea { border-color: var(--line); border-radius: 2px; background: var(--surface); color: var(--ink); }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--muted); opacity: 1; }
.contact-form input:focus-visible, .contact-form textarea:focus-visible { outline-color: var(--accent); }
.site-footer { max-width: 1280px; border-color: var(--line); align-items: center; color: var(--muted); }
.theme-toggle, .anim-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; min-height: 44px; padding: 10px; flex-shrink: 0; cursor: pointer; }
.theme-toggle svg, .anim-toggle svg { width: 22px; height: 22px; }

.site-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 16px;
  padding: 32px 4.5% 0;
}
.site-topbar .landing-name {
  grid-area: auto;
  color: var(--ink);
}
.site-topbar .landing-contact {
  grid-area: auto;
}
.project-article {
  max-width: none;
  margin: 0;
  padding: 40px 4.5% 72px;
  color: var(--ink);
  font: var(--type-body-2);
}
.project-article,
.project-article * {
  text-transform: none !important;
}
.article-layout {
  display: grid;
  grid-template-columns: 184px minmax(0, 1fr);
  gap: clamp(56px, 7vw, 112px);
  align-items: start;
}
.article-content {
  min-width: 0;
  max-width: 1120px;
}
.article-content > #overview,
.article-content > .case-section {
  scroll-margin-top: 84px;
}
.article-toc {
  position: sticky;
  top: 32px;
  align-self: start;
}
.article-toc-heading {
  font: var(--type-caption);
  color: var(--muted);
  margin: 0 0 14px;
  padding-left: 14px;
}
.article-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
  border-left: 1px solid var(--line);
}
.article-toc-btn {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  border-left: 2px solid transparent;
  margin-left: -1px;
  padding: 8px 0 8px 14px;
  font: var(--type-body-2);
  color: var(--muted);
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease;
}
.article-toc-btn:hover {
  color: var(--ink);
}
.article-toc-btn[aria-current="true"] {
  color: var(--ink);
  border-left-color: var(--accent);
}
.article-toc-mobile {
  display: none;
}
.article-toc-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  font: var(--type-body-2);
  color: var(--ink);
  background-color: var(--table-head-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.5 4.5L6 8L9.5 4.5' stroke='%239aa69a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 38px 10px 14px;
  cursor: pointer;
}
.article-toc-select option {
  background: var(--paper);
  color: var(--ink);
}
@media (max-width: 960px) {
  .article-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .article-toc {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--paper);
    padding: 12px 0;
    margin: -12px 0 4px;
  }
  .article-toc-desktop {
    display: none;
  }
  .article-toc-mobile {
    display: block;
  }
}

/* Editorial magazine spread: hero intro left + visual right on large screens */
.article-spread {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 4.5vw, 68px);
  align-items: start;
  padding-bottom: 72px;
  border: 0;
}
.article-spread .article-header {
  margin: 0;
  padding: 0;
  border: 0;
}
.project-article .article-meta,
.project-article .article-note,
.project-article .article-excerpt,
.project-article details {
  border: 0;
}
.article-spread .article-cover {
  margin: 0;
  position: sticky;
  top: 28px;
}
.article-spread .article-cover .project-visual {
  min-height: 440px;
  border-radius: 14px;
}

/* Simplified typography ramp on project pages:
   3 core reading tokens (--type-title-2, --type-body-2, --type-caption)
   plus Title (--type-large-title) and Quote (--type-quote) exceptions. */
.project-article .article-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  font: var(--type-caption);
  color: var(--muted);
}
.project-article .article-breadcrumb .breadcrumb-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  text-decoration: none;
  font: var(--type-caption);
  transition: color .15s ease;
}
.project-article .article-breadcrumb .breadcrumb-back:hover {
  color: var(--ink);
}
.project-article .article-breadcrumb .breadcrumb-sep {
  color: var(--meta-soft);
}
.project-article .article-breadcrumb .breadcrumb-current {
  color: var(--ink);
}
.project-article .article-header h1 {
  font: var(--type-large-title);
  letter-spacing: -.03em;
  color: var(--ink);
  margin: 0 0 18px;
}
.project-article .article-subtitle {
  font: var(--type-body-2);
  color: var(--muted);
  margin: 0 0 24px;
  max-width: 58ch;
}
.project-article .case-section {
  padding: 64px 0;
  border: 0;
}
.project-article .article-spread + .case-section {
  padding-top: 24px;
}
.project-article .case-section > h2,
.project-article .editorial-split-text h2 {
  font: var(--type-title-2);
  letter-spacing: -.02em;
  color: var(--ink);
  margin: 0 0 18px;
  max-width: 34ch;
}
.project-article .case-section > h2:empty {
  display: none;
}
.project-article .editorial-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.project-article .editorial-two-col-main p {
  margin: 0;
  color: var(--ink);
}
.project-article .editorial-two-col-main .quote {
  margin: 20px 0 0 12px;
}
.project-article .metric strong {
  font: var(--type-title-2);
  letter-spacing: -.02em;
  color: var(--ink);
}
.project-article .quote {
  font: var(--type-body-2);
  border-left: 2px solid var(--accent);
  padding: 2px 0 2px 20px;
  margin: 24px 0 24px 12px;
  max-width: 58ch;
  background: transparent;
  border-radius: 0;
  color: var(--ink);
}
.project-article .project-tags li {
  font: var(--type-caption);
  letter-spacing: .01em;
}
.project-article .case-section h3,
.project-article .article-excerpt h2,
.project-article .panel h3,
.project-article .solution-grid h3,
.project-article .journey h3,
.project-article .screen h3,
.project-article .review-copy h3,
.project-article summary,
.project-article strong,
.project-article .article-excerpt strong {
  font: var(--type-body-2);
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--ink);
}
.project-article .article-excerpt p,
.project-article .article-excerpt li,
.project-article .case-section p,
.project-article .case-section li,
.project-article .editorial-prose,
.project-article .editorial-prose p,
.project-article .editorial-split-text > p,
.project-article .panel p,
.project-article .panel li,
.project-article .review-copy dd,
.project-article .arch-box,
.project-article .notice,
.project-article .prompt,
.project-article .source-list,
.project-article .source-list li,
.project-article .metric p,
.project-article td,
.project-article code,
.project-article .case-end a,
.project-article .case-end button {
  font: var(--type-body-2);
}
.project-article .case-section > p,
.project-article details > p {
  max-width: 64ch;
}
.project-article .eyebrow,
.project-article .article-meta dt,
.project-article .article-meta dd,
.project-article .article-note,
.project-article figcaption,
.project-article p.caption,
.project-article .case-section p.caption,
.project-article .case-section .caption,
.project-article .case-section p.source,
.project-article .case-section .source,
.project-article .source,
.project-article th,
.project-article .arch-box small,
.project-article .arch-arrow,
.project-article .status,
.project-article .metric small,
.project-article .bar-label,
.project-article .bar-label span,
.project-article .round-switch button,
.project-article .review-copy dt,
.project-article .quote small {
  font: var(--type-caption);
  letter-spacing: 0;
}
.article-subtitle, .lede, .article-meta dd, .project-article .case-section .caption,
.project-article .case-section .source, .project-article .review-copy dd { color: var(--muted); }

.project-article .case-section p.caption,
.project-article .case-section .caption,
.project-article p.caption,
.project-article .caption {
  font: var(--type-caption) !important;
  letter-spacing: 0;
}
/* Equal multi-column editorial prose: plain borderless text columns, never card blocks */
.project-article .two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 48px;
}
.project-article .solution-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 40px;
  margin-top: 24px;
}
.project-article .solution-grid article,
.project-article .panel,
.project-article .editorial-split-text .journey article,
.project-article .journey article {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.project-article .panel h3,
.project-article .solution-grid h3,
.project-article .journey h3 {
  margin: 0 0 8px;
}
.project-article .panel p,
.project-article .solution-grid p,
.project-article .journey p {
  margin: 0 0 10px;
  color: var(--muted);
}
.project-article .panel p:last-child,
.project-article .solution-grid p:last-child,
.project-article .journey p:last-child {
  margin-bottom: 0;
}
/* Smooth editorial prose columns (2 equal columns on large screens, 1 on mobile) */
.project-article .article-prose-cols {
  columns: 2 340px;
  column-gap: 48px;
}
.project-article .article-prose-cols p {
  margin: 0 0 18px;
  color: var(--ink);
  break-inside: avoid;
}
.project-article .article-prose-cols p:last-child {
  margin-bottom: 0;
}
.project-article .article-prose-cols strong {
  font-weight: 400;
  color: var(--ink);
}
.project-article .editorial-split-text p {
  margin: 0 0 16px;
  color: var(--ink);
  max-width: 56ch;
}
.project-article .editorial-split-text p:last-child {
  margin-bottom: 0;
}
.project-article .case-section th {
  font: var(--type-caption);
  color: var(--muted);
}
.project-article .case-section td,
.project-article .case-section td code,
.project-article .source-list code {
  font: var(--type-body-2);
}
.project-article .article-header .article-excerpt p,
.project-article .article-header .article-excerpt li,
.project-article .article-header .article-excerpt strong {
  font: var(--type-body-2);
  font-weight: 400;
  color: var(--ink);
}
.project-article .article-header .article-excerpt h2 {
  font: var(--type-caption);
  color: var(--muted);
  margin: 0 0 8px;
}
.project-article .quote {
  margin: 28px 0 0;
}
.project-article details {
  margin-top: 20px;
}
.project-article details summary {
  font: var(--type-caption);
  color: var(--muted);
}
@media (max-width: 960px) {
  .project-article .article-prose-cols {
    columns: 1;
  }
}

/* Editorial split columns: visual on left or right + digestible prose column beside it */
.editorial-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
  margin-bottom: 32px;
}
.editorial-split--reverse {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
}
.editorial-split--reverse .editorial-split-media {
  order: -1;
}
.editorial-split-text {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}
.editorial-split-text > p {
  margin: 0;
  max-width: 58ch;
}
.editorial-split-media {
  min-width: 0;
  position: sticky;
  top: 28px;
}
.editorial-split-media .architecture,
.editorial-split-media .work-art,
.editorial-split-media .motion-demo,
.editorial-split-media .panel {
  margin-top: 0;
}
.editorial-columns {
  columns: 2 320px;
  column-gap: 44px;
}
.editorial-columns > * {
  break-inside: avoid;
}
.editorial-break {
  margin: 32px 0;
}
.project-article .article-header .article-list {
  margin: 0 0 24px;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  max-width: 58ch;
}
.project-article .article-header .article-list li {
  font: var(--type-body-2);
  color: var(--ink);
}
.project-article .article-header .article-meta.quote {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 24px;
  margin: 24px 0 0 12px;
  padding: 2px 0 2px 20px;
  border-left: 2px solid var(--accent);
  max-width: 58ch;
}
.project-article .article-header .article-meta.quote dt,
.project-article .article-header .article-meta.quote dd {
  font: var(--type-body-2);
  margin: 0;
}
.project-article .article-header .article-meta.quote dt {
  color: var(--muted);
  margin-bottom: 2px;
}
.project-article .article-header .article-meta.quote dd {
  color: var(--ink);
}
.project-article .editorial-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  max-width: 56ch;
}
.project-article .editorial-list li {
  font: var(--type-body-2);
  color: var(--ink);
}
.project-article .architecture-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-top: 44px;
}
.project-article .architecture-flow .arch-arrow {
  padding: 0 4px;
  text-align: center;
}
.project-article .kpi-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 40px;
  margin: 28px 0 28px;
}
.project-article .kpi-item {
  border-left: 2px solid var(--accent);
  padding: 2px 0 2px 16px;
}
.project-article .kpi-item strong {
  display: block;
  font: var(--type-title-2);
  color: var(--ink);
  margin-bottom: 4px;
}
.project-article .kpi-item span {
  display: block;
  font: var(--type-body-2);
  color: var(--muted);
}
.project-article .bar-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 48px;
  margin-top: 8px;
}
@media (max-width: 960px) {
  .project-article .article-header .article-meta.quote,
  .project-article .editorial-header-row,
  .project-article .editorial-two-col {
    grid-template-columns: 1fr;
  }
  .project-article .architecture-flow {
    grid-template-columns: 1fr;
  }
}
.project-article .table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 44px 0 8px;
}
.project-article .case-section > p + .architecture,
.project-article .case-section > p + .work-art,
.project-article .case-section > p + .screen-row,
.project-article .case-section > p + .motion-demo,
.project-article .case-section > p + figure {
  margin-top: 44px;
}
.project-article .table-wrap table {
  min-width: 0;
  width: 100%;
  border-collapse: collapse;
  background: transparent;
}
.project-article .table-wrap thead th {
  background: var(--table-head-bg);
  border: 0;
  padding: 14px 20px;
  text-align: left;
  vertical-align: bottom;
  font: var(--type-caption);
  color: var(--muted);
}
.project-article .table-wrap thead th:first-child {
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
}
.project-article .table-wrap thead th:last-child {
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
}
.project-article .table-wrap tbody td {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 20px;
  text-align: left;
  vertical-align: top;
  font: var(--type-body-2);
  color: var(--muted);
}
.project-article .table-wrap tbody td:first-child {
  color: var(--ink);
  white-space: nowrap;
  padding-right: 32px;
}

/* Minimal borderless footer shared across landing and project pages */
.site-footer {
  max-width: none;
  margin: 0;
  padding: 36px 4.5% 40px;
  border: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px 24px;
  font: var(--type-caption);
  color: var(--muted);
}
.footer-contact {
  display: flex;
  align-items: center;
  justify-self: start;
}
.footer-contact-trigger {
  background: transparent;
  border: 0;
  padding: 0;
  font: var(--type-caption);
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  min-height: 26px;
  cursor: pointer;
}
.footer-contact-trigger:hover {
  color: var(--accent);
}
.footer-copy {
  margin: 0;
  font: var(--type-caption);
  color: var(--meta-soft);
  text-align: center;
}
.footer-social {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 20px;
}
.footer-social a {
  font: var(--type-caption);
  color: var(--ink);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 4px;
  transition: color .15s ease;
}
.footer-social a:hover {
  color: var(--accent);
}
@media (max-width: 640px) {
  .site-footer {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 14px;
  }
  .footer-copy {
    text-align: left;
  }
  .footer-social {
    justify-self: start;
  }
}

@media (max-width: 960px) {
  .article-spread,
  .editorial-split,
  .editorial-split--reverse,
  .project-article .two-col {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .project-article .solution-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .editorial-split--reverse .editorial-split-media {
    order: 0;
  }
  .article-spread .article-cover,
  .editorial-split-media {
    position: static;
  }
  .article-spread .article-cover .project-visual {
    min-height: 280px;
  }
  .editorial-columns {
    columns: 1;
  }
}
@media (max-width: 640px) {
  .project-article .solution-grid,
  .project-article .editorial-split-text .journey {
    grid-template-columns: 1fr;
  }
}
.project-article .case-section p, .project-article .panel li { color: var(--ink); }
.project-article .case-section .source, .project-article .case-section .caption { color: var(--muted); }
.project-article .notice, .notice { background: var(--raised); border-color: var(--accent); color: var(--ink); }
th { background: var(--raised); color: var(--muted); }
td { color: var(--ink); }
.architecture { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; }
.arch-box, .arch-box.nexus, .screen { background: var(--raised); color: var(--ink); border-color: var(--line); }
.arch-box small, .arch-arrow { color: var(--muted); }
.panel { background: var(--surface); border-color: var(--line); }
.panel p, .panel li, .prompt, .source, .source-list li { color: var(--muted); }
.status { background: var(--raised); color: var(--ink); border: 1px solid var(--line); }
.status.pending { background: var(--raised); color: var(--muted); }
.round-switch button { background: var(--surface); color: var(--ink); border-color: var(--line); border-radius: 2px; }
.round-switch button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.about-block { background: var(--raised); color: var(--ink); border-radius: 4px; }
.empty-field { color: var(--muted); border-color: var(--line); }
.bar-track { background: var(--raised); }
.bar-fill { background: var(--muted); }
.bar-fill.after { background: var(--accent); }

.is-landing .site-footer { display: none; }
body:has(.contact-modal[open]) { overflow: hidden; }
.landing-shell {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  grid-template-rows: auto 1fr auto;
  column-gap: clamp(40px, 7vw, 120px);
  row-gap: 18px;
  padding: 32px 4.5% 28px;
}

.landing-name {
  grid-area: 1 / 1;
  justify-self: start;
  align-self: center;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  text-decoration: none;
  text-transform: uppercase;
  font: 700 26px/1 "Nippo", "Bahnschrift", sans-serif;
  letter-spacing: .04em;
  white-space: nowrap;
}

.landing-contact { grid-area: 1 / 2; justify-self: end; align-self: center; display: flex; align-items: center; gap: 4px; }
.landing-contact .button {
  margin-left: 12px;
  min-height: 44px;
  border-radius: 12px;
  font: var(--type-meta);
  letter-spacing: .02em;
  color: #062116;
  border: 1px solid rgba(114, 244, 190, .42);
  background:
    radial-gradient(120% 140% at 14% 18%, rgba(255, 224, 152, .42) 0%, transparent 54%),
    radial-gradient(110% 130% at 88% 82%, rgba(92, 166, 255, .44) 0%, transparent 58%),
    linear-gradient(128deg, #27d68d 0%, #36e49b 44%, #22bfa4 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .36),
    0 8px 22px rgba(34, 198, 134, .22);
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}
.landing-contact .button:hover {
  transform: translateY(-1px);
  filter: brightness(1.08) saturate(1.05);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .48),
    0 12px 26px rgba(34, 198, 134, .30);
}
.landing-contact .button:active {
  transform: translateY(0);
  filter: brightness(1.16) saturate(1.04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .56),
    0 6px 16px rgba(34, 198, 134, .24);
}
.landing-contact .button:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}
:root[data-theme="light"] .landing-contact .button {
  color: #062417;
  border-color: rgba(16, 158, 98, .26);
  background:
    radial-gradient(120% 140% at 14% 18%, rgba(255, 255, 255, .44) 0%, transparent 52%),
    radial-gradient(110% 130% at 88% 82%, rgba(98, 198, 255, .36) 0%, transparent 58%),
    linear-gradient(128deg, #34e098 0%, #26d48a 48%, #22c4a8 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .48),
    0 8px 20px rgba(24, 181, 112, .22);
}
:root[data-theme="light"] .landing-contact .button:hover {
  filter: brightness(0.95) saturate(1.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .36),
    0 10px 24px rgba(24, 181, 112, .28);
}
:root[data-theme="light"] .landing-contact .button:active {
  transform: translateY(0);
  filter: brightness(0.89) saturate(1.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .24),
    0 4px 12px rgba(24, 181, 112, .22);
}
.landing-contact .theme-toggle,
.landing-contact .anim-toggle { background: transparent; border: 0; color: var(--muted); transition: background .16s ease, color .16s ease; }
.landing-contact .theme-toggle:hover,
.landing-contact .anim-toggle:hover { background: var(--state-hover); color: var(--ink); }
.landing-contact .theme-toggle:active,
.landing-contact .anim-toggle:active { background: var(--state-pressed); color: var(--ink); }
.landing-contact .theme-toggle:focus-visible,
.landing-contact .anim-toggle:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
:root[data-animations-paused="true"] .expertise-gradient,
:root[data-animations-paused="true"] .crystal-caustic,
:root[data-animations-paused="true"] .motion-demo.is-playing .motion-orbit,
:root[data-animations-paused="true"] .typewriter-cursor,
:root[data-animations-paused="true"] #type-highlight.is-highlighted {
  animation-play-state: paused !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.landing-intro { grid-area: 2 / 1; align-self: start; min-width: 0; max-width: 540px; position: relative; }
.landing-intro p { max-width: 500px; margin: 0; font: 400 15px/1.55 var(--font-sans); color: var(--muted); }
.expertise-gradient {
  display: inline-block;
  line-height: 1.2;
  padding: 0 .04em .12em 0;
  margin: 0 -.04em -.12em 0;
  color: var(--spectrum-orange);
}
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .expertise-gradient {
    background-image: linear-gradient(90deg, var(--spectrum-red), var(--spectrum-orange), var(--spectrum-yellow), var(--spectrum-green), var(--spectrum-cyan), var(--spectrum-blue), var(--spectrum-violet), var(--spectrum-pink), var(--spectrum-red));
    background-size: 400% 100%;
    background-repeat: repeat-x;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: expertise-flow 12s linear infinite;
  }
}
/* Shift one full gradient tile for a seamless loop at 400% background size. */
@keyframes expertise-flow { from { background-position: 0% 50%; } to { background-position: 133.333333% 50%; } }
.landing-preview { margin: 0; width: 100%; }
.landing-preview .project-visual { height: 340px; min-height: 0; padding: 26px; gap: 22px; border: 1px solid var(--line); border-radius: 4px; }
.landing-preview .poster { transform: rotate(-9deg) scale(1.05); }
.landing-preview .token-board { transform: rotate(-6deg) scale(1.05); }
.landing-preview figcaption { margin-top: 12px; font-size: 11px; color: var(--muted); }
.landing-preview figcaption .project-tags { margin-bottom: 8px; }
.inline-project-preview { display: none; margin: 0; }
.inline-project-preview figcaption { margin-top: 12px; }
.project-excerpt { display: none; }
.landing-left {
  grid-area: 2 / 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  min-width: 0;
  padding-top: 0;
}
.landing-left .landing-intro {
  grid-area: auto;
  pointer-events: auto;
}
.landing-socials {
  position: fixed;
  right: 4.5%;
  bottom: 24px;
  height: 30px;
  justify-content: center;
  z-index: 4;
}
.landing-work-list {
  display: flex;
  flex-direction: column;
  gap: 64px;
  width: 100%;
  scroll-margin-top: 24px;
  padding-bottom: 72px;
}
.area-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter-pill {
  padding: 7px 14px;
  border-radius: 999px;
  font: var(--type-meta);
  letter-spacing: .01em;
  color: var(--muted);
  background: rgba(24, 30, 24, .55);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
:root[data-theme="light"] .filter-pill {
  background: rgba(255, 255, 255, .86);
}
.filter-pill:hover:not([aria-pressed="true"]) {
  color: var(--ink);
  background: var(--state-hover);
  border-color: var(--state-border-hover);
}
.filter-pill:active:not([aria-pressed="true"]) {
  color: var(--ink);
  background: var(--state-pressed);
  border-color: var(--accent);
}
.filter-pill:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}
.filter-pill[aria-pressed="true"],
:root[data-theme="light"] .filter-pill[aria-pressed="true"] {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: var(--accent);
}
.filter-pill[aria-pressed="true"]:hover,
:root[data-theme="light"] .filter-pill[aria-pressed="true"]:hover {
  color: var(--accent-ink);
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}
.filter-pill[aria-pressed="true"]:active,
:root[data-theme="light"] .filter-pill[aria-pressed="true"]:active {
  color: var(--accent-ink);
  background: var(--accent-pressed);
  border-color: var(--accent-pressed);
}
.portfolio-cards-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.portfolio-project-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
  padding: 12px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink);
  background: rgba(0, 0, 0, .34);
  border: 1px solid transparent;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition: transform .22s ease, background .22s ease, border-color .22s ease, box-shadow .22s ease;
}
:root[data-theme="light"] .portfolio-project-card {
  background: rgba(255, 255, 255, .92);
  border-color: rgba(23, 33, 26, .06);
}
.portfolio-project-card:hover {
  transform: translateY(-2px);
  background: var(--state-hover);
  border-color: var(--state-border-hover);
  box-shadow: 0 14px 32px rgba(0, 0, 0, .52), 0 3px 10px rgba(0, 0, 0, .32);
}
.portfolio-project-card:active {
  transform: translateY(0);
  background: var(--state-pressed);
  border-color: var(--accent);
}
.portfolio-project-card:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  border-color: var(--accent);
}
:root[data-theme="light"] .portfolio-project-card:hover {
  background: var(--state-hover);
  border-color: var(--state-border-hover);
  box-shadow: 0 12px 28px rgba(23, 33, 26, .12), 0 3px 8px rgba(23, 33, 26, .07);
}
:root[data-theme="light"] .portfolio-project-card:active {
  background: var(--state-pressed);
  border-color: var(--accent);
}
.portfolio-card-thumb {
  width: 100%;
  height: var(--card-thumb-h, 110px);
  border-radius: 9px;
  overflow: hidden;
  border: 1px solid var(--line);
  position: relative;
  flex-shrink: 0;
}
.card-abstract-thumb {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background-color: var(--visual);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 20px 20px;
  background-position: center center;
}
.card-abstract-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(75% 75% at 50% 50%, rgba(50, 226, 150, .08) 0%, transparent 72%);
  pointer-events: none;
}
.card-abstract-thumb svg {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .32));
}
.portfolio-card-thumb .card-thumb-visual {
  position: absolute;
  inset: 0;
  min-height: 0;
  height: 100%;
  width: 100%;
  padding: 8px;
  gap: 6px;
  border: 0;
}
.portfolio-card-thumb .preview-window { transform: scale(.46); transform-origin: center; width: 210%; }
.portfolio-card-thumb .poster { transform: rotate(-7deg) scale(.54); }
.portfolio-card-thumb .motion-orbit { transform: scale(.60); }
.portfolio-card-thumb .phone { transform: rotate(-6deg) scale(.48); }
.portfolio-card-thumb .phone:nth-child(2) { transform: translateY(6px) rotate(6deg) scale(.48); }
.portfolio-card-thumb .token-board { transform: rotate(-5deg) scale(.60); }
.portfolio-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.portfolio-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.portfolio-card-head h3 {
  margin: 0;
  font: var(--type-title);
  letter-spacing: -.015em;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in srgb, var(--ink) 45%, transparent);
  transition: text-decoration-color .2s ease;
}
.portfolio-project-card:hover .portfolio-card-head h3,
.portfolio-project-card:focus-visible .portfolio-card-head h3 {
  text-decoration-color: var(--accent);
}
.portfolio-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font: var(--type-body);
  color: var(--muted);
}
.portfolio-card-meta > span:not(.meta-sep) {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.portfolio-card-meta .meta-sep {
  flex: 0 0 auto;
  opacity: .5;
}
.portfolio-card-desc {
  margin: 0;
  font: 400 13px/1.55 var(--font-sans);
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-mobile-tags {
  display: none;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}
.card-mobile-tag {
  font: var(--type-meta);
  line-height: 1.2;
  color: var(--muted);
  background: rgba(255, 255, 255, .06);
  border: 0;
  border-radius: 6px;
  padding: 4px 9px;
  white-space: nowrap;
}
:root[data-theme="light"] .card-mobile-tag {
  background: rgba(23, 33, 26, .055);
}

.portfolio-pagination {
  position: fixed;
  left: 4.5%;
  bottom: 24px;
  z-index: 4;
}
.pagination-pill {
  display: inline-flex;
  align-items: center;
  height: 30px;
  border-radius: 999px;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: hidden;
}
.page-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color .16s ease, background .16s ease, opacity .16s ease;
}
.page-arrow:hover:not(:disabled) {
  background: var(--state-hover);
  color: var(--ink);
}
.page-arrow:active:not(:disabled) {
  background: var(--state-pressed);
  color: var(--ink);
}
.page-arrow:focus-visible:not(:disabled) {
  outline: 2px solid var(--focus-ring);
  outline-offset: -2px;
  color: var(--ink);
}
.page-arrow:disabled {
  opacity: .32;
  cursor: default;
}
.pagination-status {
  padding: 0 11px;
  font: var(--type-meta);
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  user-select: none;
}

.landing-composition#work { padding: 0; border: 0; }
.landing-composition {
  grid-area: 2 / 2;
  position: sticky;
  top: 220px;
  margin-top: 220px;
  align-self: start;
  justify-self: center;
  width: 100%;
  height: min(740px, calc(100svh - 240px));
  min-height: 520px;
}
.project-hover-preview {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 580px;
  max-height: calc(100svh - 140px);
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  border-radius: 16px;
  background: #141916;
  border: 1px solid var(--line);
  box-shadow: 0 24px 56px rgba(0, 0, 0, .55), 0 4px 16px rgba(0, 0, 0, .32);
  opacity: 0;
  transform: translateY(8px) scale(.985);
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
  overflow: hidden;
}
:root[data-theme="light"] .project-hover-preview {
  background: #ffffff;
  border-color: rgba(23, 33, 26, .10);
  box-shadow: 0 20px 48px rgba(23, 33, 26, .12), 0 4px 14px rgba(23, 33, 26, .06);
}
.project-hover-preview.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.hover-preview-media {
  position: relative;
  width: 100%;
  flex: 1 1 auto;
  min-height: 200px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--line) 45%, transparent);
}
.hover-preview-media .hover-preview-visual {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 18px;
  border: 0;
}
.hover-preview-media .preview-window { transform: scale(.86); transform-origin: center; }
.hover-preview-media .poster { transform: rotate(-6deg) scale(1.02); }
.hover-preview-media .motion-orbit { transform: scale(1.08); }
.hover-preview-media .phone { transform: rotate(-5deg) scale(.86); }
.hover-preview-media .phone:nth-child(2) { transform: translateY(8px) rotate(5deg) scale(.86); }
.hover-preview-media .token-board { transform: rotate(-4deg) scale(1.02); }
.hover-preview-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 2px 0 4px;
}
.hover-kpi {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 12px;
  min-width: 0;
}
.hover-kpi:first-child { padding-left: 0; }
.hover-kpi:last-child { padding-right: 0; }
.hover-kpi + .hover-kpi {
  border-left: 1px solid color-mix(in srgb, var(--line) 32%, transparent);
}
.hover-kpi-label {
  font: var(--type-meta);
  color: var(--meta-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hover-kpi-val {
  font: 600 21px/1.15 var(--font-sans);
  letter-spacing: -.02em;
  color: var(--ink);
}
.hover-kpi-delta {
  font: var(--type-meta);
  color: var(--accent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hover-preview-mid {
  display: grid;
  grid-template-columns: 0.96fr 1.14fr;
  gap: 18px;
  flex: 0 0 auto;
  padding-top: 2px;
}
.hover-preview-insights {
  padding-left: 18px;
  border-left: 1px solid color-mix(in srgb, var(--line) 32%, transparent);
}
.hover-preview-block h4 {
  margin: 0 0 7px;
  font: var(--type-title);
  letter-spacing: -.015em;
  color: var(--ink);
}
.hover-preview-goal {
  margin: 0;
  font: var(--type-body);
  color: var(--muted);
}
.hover-insights-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font: var(--type-body);
  color: var(--muted);
}
.hover-insights-list li {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  line-height: 1.42;
}
.hover-insights-list .insight-check {
  margin-top: 3px;
  color: var(--accent);
  flex: 0 0 auto;
}
.hover-preview-footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  margin: auto 0 0;
  padding-top: 12px;
  border-top: 1px solid color-mix(in srgb, var(--line) 32%, transparent);
}
.hover-preview-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font: var(--type-meta);
  color: var(--ink);
}
.hover-preview-meta-pill svg {
  flex: 0 0 auto;
  color: var(--accent);
}
.hover-preview-meta-pill span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.crystal-stage {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0;
  isolation: isolate;
  touch-action: manipulation;
  transition: opacity .18s ease;
}
.landing-composition:has(.project-hover-preview.is-visible) .crystal-stage {
  opacity: 0;
}
.crystal-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
}
.composition-callouts {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  overflow: visible;
}
.callout-item {
  transition: opacity .16s ease;
}
.callout-line {
  fill: none;
  stroke: rgba(236, 241, 233, .88);
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.callout-dot {
  fill: #f4f7f2;
  stroke: rgba(18, 21, 18, .65);
  stroke-width: 1.5;
}
.callout-label {
  fill: #f4f7f2;
  font: 650 12px/1 "Segoe UI", Arial, sans-serif;
  letter-spacing: .09em;
  text-transform: uppercase;
  paint-order: stroke;
  stroke: var(--paper);
  stroke-width: 4.5px;
  stroke-linejoin: round;
}
:root[data-theme="light"] .callout-line {
  stroke: rgba(23, 33, 26, .82);
}
:root[data-theme="light"] .callout-dot {
  fill: #17211a;
  stroke: rgba(241, 243, 237, .85);
}
:root[data-theme="light"] .callout-label {
  fill: #17211a;
}

.landing-name, .landing-contact {
  position: relative;
  z-index: 3;
}
.area-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
}
.area-card-tags li {
  font: 500 9.5px/1.2 "Segoe UI", Arial, sans-serif;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 4px;
  color: var(--muted);
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line);
}
:root[data-theme="light"] .area-card-tags li {
  background: rgba(23, 33, 26, .04);
}

.landing-projects { grid-area: 2 / 2; align-self: center; width: 100%; max-width: 520px; justify-self: end; }
.landing-projects#work { padding: 0; border: 0; }
.landing-projects h2 { font: 500 10px/1.5 "Segoe UI", sans-serif; text-transform: uppercase; letter-spacing: 1.7px; color: var(--muted); margin: 0 0 16px; }
.project-index { margin: 0; padding: 0; list-style: none; }
.project-index-item { display: block; padding: 24px 0; text-decoration: none; border-top: 1px solid var(--line); }
.project-index > li:last-child .project-index-item { border-bottom: 1px solid var(--line); }
.project-index-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 9px; }
.project-index-heading h3 { font: 550 22px/1.25 "Segoe UI", Arial, sans-serif; letter-spacing: -.6px; margin: 0; }
.project-index-copy { min-width: 0; }
.project-index-description { margin: 0; font-size: 12px; line-height: 1.6; color: var(--muted); }
.project-index-heading > span:last-child { margin-left: auto; font-size: 19px; transition: transform .2s; }
.index-concept { font-size: 9px; color: var(--muted); }
.project-index-item:hover h3 { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.project-index-item:hover .project-index-heading > span:last-child { transform: translate(3px, -3px); }
.is-landing .project-tags { gap: 10px; }
.is-landing .project-tags li { font: 9px/1.5 "Segoe UI", sans-serif; letter-spacing: .4px; padding: 0; border: 0; text-transform: uppercase; }
.is-landing .project-tags li + li::before { content: "/"; margin-right: 10px; }
.landing-floor { display: contents; }
.landing-socials { grid-row: 3; grid-column: 1 / -1; justify-self: start; align-self: center; text-align: left; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.landing-socials nav { display: flex; align-items: center; gap: 24px; }
.landing-socials a,
.landing-socials [role="link"] { display: inline-flex; align-items: center; font: var(--type-meta); line-height: 1; color: var(--muted); text-decoration: underline dotted; text-underline-offset: 5px; transition: color 140ms ease; }
.landing-socials a { cursor: pointer; }
.landing-socials a:hover { color: var(--ink); }
.landing-socials [role="link"] { cursor: not-allowed; }
.landing-socials [aria-hidden] { margin-left: 6px; }

.contact-modal {
  width: min(760px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100svh - 40px);
  padding: 28px 32px;
  overflow: auto;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .55);
  font-family: var(--font-sans);
}
:root[data-theme="light"] .contact-modal {
  box-shadow: 0 26px 72px rgba(23, 33, 26, .18);
}
.contact-modal::backdrop { background: rgba(8, 12, 9, .72); backdrop-filter: blur(8px); }
.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  background: transparent;
  color: var(--muted);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: color .16s ease, background .16s ease;
}
.modal-close:hover {
  color: var(--ink);
  background: var(--state-hover);
}
.modal-close:active {
  color: var(--ink);
  background: var(--state-pressed);
}
.modal-close:focus-visible {
  color: var(--ink);
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}
.contact-dialog-head {
  margin: 0 44px 24px 0;
}
.contact-dialog-head h2,
.contact-confirm-body h2 {
  margin: 0;
  font: 600 20px/1.25 var(--font-sans);
  letter-spacing: -.015em;
  color: var(--ink);
}
.contact-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1.02fr;
  gap: 44px;
  align-items: stretch;
}
.contact-calendar-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.contact-fields-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  height: 100%;
}
.cal-card,
.slots-card {
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
}
.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 20px;
  margin-bottom: 12px;
}
.cal-heading-group {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}
.cal-month {
  font: var(--type-body);
  font-weight: 600;
  line-height: 20px;
  color: var(--ink);
}
.cal-month em {
  font-style: normal;
  color: var(--accent);
}
.cal-navs {
  display: flex;
  align-items: center;
  gap: 4px;
}
.cal-nav {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: color .14s ease, background .14s ease, opacity .14s ease;
}
.cal-nav.cal-nav-next {
  justify-content: center;
  width: 26px;
  height: 26px;
}
.cal-nav:disabled {
  opacity: .28;
  cursor: not-allowed;
}
.cal-nav:hover:not(:disabled) { color: var(--ink); background: var(--state-hover); }
.cal-nav:active:not(:disabled) { color: var(--ink); background: var(--state-pressed); }
.cal-nav:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.cal-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.cal-day-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 10px 4px;
  border-radius: 10px;
  border: 0;
  background: rgba(255, 255, 255, .06);
  color: var(--ink);
  font: var(--type-meta);
  cursor: pointer;
  transition: background .14s ease, color .14s ease;
}
:where(:root[data-theme="light"]) .cal-day-tile {
  background: rgba(12, 26, 19, .055);
}
.cal-tile-wd {
  color: var(--muted);
}
.cal-tile-num {
  color: var(--ink);
}
.cal-day-tile:hover:not(:disabled):not(.is-selected) {
  background: var(--state-hover);
}
.cal-day-tile:active:not(:disabled):not(.is-selected) {
  background: var(--state-pressed);
}
.cal-day-tile.is-selected {
  background: var(--accent);
  color: var(--accent-ink);
}
.cal-day-tile.is-selected .cal-tile-wd,
.cal-day-tile.is-selected .cal-tile-num {
  color: var(--accent-ink);
}
.cal-day-tile.is-selected:hover:not(:disabled) {
  background: var(--accent-hover);
}
.cal-day-tile.is-selected:active:not(:disabled) {
  background: var(--accent-pressed);
}
.cal-day-tile:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  text-align: center;
}
.cal-wd {
  font: var(--type-meta);
  color: var(--meta-soft);
  padding: 4px 0 6px;
}
.cal-day {
  height: 34px;
  border-radius: 8px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: var(--type-meta);
  cursor: pointer;
  transition: background .14s ease, color .14s ease;
}
.cal-day:hover:not(:disabled):not(.is-selected) {
  background: var(--state-hover);
  color: var(--ink);
}
.cal-day:active:not(:disabled):not(.is-selected) {
  background: var(--state-pressed);
  color: var(--ink);
}
.cal-day.is-selected {
  background: var(--accent);
  color: var(--accent-ink);
}
.cal-day.is-selected:hover:not(:disabled) {
  background: var(--accent-hover);
  color: var(--accent-ink);
}
.cal-day.is-selected:active:not(:disabled) {
  background: var(--accent-pressed);
  color: var(--accent-ink);
}
.cal-day:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}
.cal-day:disabled {
  color: var(--meta-soft);
  opacity: .34;
  cursor: not-allowed;
}
.cal-day.cal-day-outside {
  opacity: .22;
}
.slots-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 20px;
  margin-bottom: 10px;
}
.slots-label {
  font: var(--type-body);
  font-weight: 600;
  line-height: 20px;
  color: var(--ink);
}
.slots-label em {
  font-style: normal;
  color: var(--accent);
}
.slots-tz { color: var(--meta-soft); }
.slots-carousel-wrap {
  position: relative;
}
.slots-carousel {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 2px 0 4px;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 24px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 24px), transparent 100%);
}
.slots-carousel.is-at-start {
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 24px), transparent 100%);
  mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 24px), transparent 100%);
}
.slots-carousel.is-at-end {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 100%);
}
.slots-carousel::-webkit-scrollbar {
  display: none;
}
.slot-chip {
  flex: 0 0 auto;
  scroll-snap-align: start;
  min-width: 78px;
  padding: 9px 11px;
  border-radius: 8px;
  border: 0;
  background: rgba(255, 255, 255, .06);
  color: var(--ink);
  font: var(--type-meta);
  white-space: nowrap;
  cursor: pointer;
  transition: background .14s ease, color .14s ease;
}
:where(:root[data-theme="light"]) .slot-chip {
  background: rgba(12, 26, 19, .055);
}
.slot-chip:hover:not(:disabled):not([aria-pressed="true"]) {
  background: var(--state-hover);
  color: var(--ink);
}
.slot-chip:active:not(:disabled):not([aria-pressed="true"]) {
  background: var(--state-pressed);
  color: var(--ink);
}
.slot-chip[aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-ink);
}
.slot-chip[aria-pressed="true"]:hover:not(:disabled) {
  background: var(--accent-hover);
  color: var(--accent-ink);
}
.slot-chip[aria-pressed="true"]:active:not(:disabled) {
  background: var(--accent-pressed);
  color: var(--accent-ink);
}
.slot-chip:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}
.slot-chip:disabled {
  color: var(--meta-soft);
  opacity: .46;
  text-decoration: line-through;
  cursor: not-allowed;
}
.field-group {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font: var(--type-meta);
  color: var(--ink);
}
.field-control {
  position: relative;
  display: flex;
  width: 100%;
  border-radius: 10px;
}
.field-group.field-grow .field-control {
  flex: 1 1 auto;
}
.field-stream {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}
.field-stream .stream-path {
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: var(--stream-len, 160) var(--stream-gap, 420);
  stroke-dashoffset: var(--stream-len, 160);
  opacity: 0;
  transition: opacity .16s ease, stroke-dashoffset 0s linear .16s;
}
.field-stream .stream-thin {
  stroke-width: 0.9;
}
.field-stream .stream-core {
  stroke-width: 1.85;
}
.field-control:focus-within .stream-path {
  stroke-dashoffset: var(--stream-end, -20);
  opacity: 1;
  transition: stroke-dashoffset .56s cubic-bezier(0.08, 0.92, 0.18, 1), opacity .12s ease;
}
.field-group > span {
  line-height: 20px;
}
.field-group.field-grow {
  flex: 1 1 auto;
}
.field-group em { font-style: normal; color: var(--accent); }
.field-group small { font: inherit; color: var(--meta-soft); }
.field-group input,
.field-group textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--line) 50%, transparent);
  background: rgba(0, 0, 0, .28);
  color: var(--ink);
  font: var(--type-body);
  resize: none;
  transition: border-color .14s ease, background .14s ease;
}
.field-group.field-grow textarea {
  flex: 1 1 auto;
  min-height: 96px;
}
:root[data-theme="light"] .field-group input,
:root[data-theme="light"] .field-group textarea {
  background: rgba(12, 26, 19, .035);
}
.field-group input:hover:not(:focus),
.field-group textarea:hover:not(:focus) {
  border-color: var(--state-border-hover);
}
.field-group input::placeholder,
.field-group textarea::placeholder {
  color: var(--meta-soft);
  opacity: .9;
}
.field-group input:focus,
.field-group textarea:focus {
  outline: none;
}
:root[data-input-modality="keyboard"] .field-group input:focus,
:root[data-input-modality="keyboard"] .field-group textarea:focus {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}
.contact-dialog-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding-top: 0;
  border-top: 0;
}
.button-ghost {
  padding: 10px 16px;
  border-radius: 12px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: var(--type-meta);
  cursor: pointer;
  transition: color .16s ease, background .16s ease;
}
.button-ghost:hover { color: var(--ink); background: var(--state-hover); }
.button-ghost:active { color: var(--ink); background: var(--state-pressed); }
.button-ghost:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.contact-submit-btn {
  min-height: 40px;
  padding: 10px 20px;
  border-radius: 12px;
  font: var(--type-meta);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #062116;
  border: 1px solid rgba(114, 244, 190, .42);
  background:
    radial-gradient(120% 140% at 14% 18%, rgba(255, 224, 152, .42) 0%, transparent 54%),
    radial-gradient(110% 130% at 88% 82%, rgba(92, 166, 255, .44) 0%, transparent 58%),
    linear-gradient(128deg, #27d68d 0%, #36e49b 44%, #22bfa4 100%);
  cursor: pointer;
  transition: opacity .16s ease, transform .16s ease, filter .16s ease, background .16s ease;
}
.contact-submit-btn:hover:not(:disabled) {
  filter: brightness(1.08) saturate(1.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .48), 0 8px 20px rgba(34, 198, 134, .28);
}
.contact-submit-btn:active:not(:disabled) {
  filter: brightness(1.16) saturate(1.04);
  transform: translateY(0);
}
.contact-submit-btn:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}
:root[data-theme="light"] .contact-submit-btn {
  color: #ffffff;
  background:
    radial-gradient(120% 140% at 14% 18%, rgba(255, 210, 140, .28) 0%, transparent 52%),
    radial-gradient(110% 130% at 88% 82%, rgba(86, 138, 228, .38) 0%, transparent 56%),
    linear-gradient(128deg, #127d53 0%, #179464 48%, #157c76 100%);
}
:root[data-theme="light"] .contact-submit-btn:hover:not(:disabled) {
  filter: brightness(0.92) saturate(1.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 8px 20px rgba(20, 132, 88, .26);
}
:root[data-theme="light"] .contact-submit-btn:active:not(:disabled) {
  filter: brightness(0.84) saturate(1.08);
}
.contact-submit-btn:disabled {
  opacity: 1;
  filter: none;
  box-shadow: none;
  cursor: not-allowed;
  background: #1b3127;
  border-color: rgba(84, 105, 88, .45);
  color: #6b8073;
}
:root[data-theme="light"] .contact-submit-btn:disabled {
  background: #cfe0d7;
  border-color: rgba(117, 134, 106, .35);
  color: #6d8376;
}
.contact-confirm-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 6px;
}
.confirm-badge {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(50, 226, 150, .14);
  color: var(--accent);
  border: 1px solid rgba(50, 226, 150, .35);
}
.confirm-copy {
  margin: 0;
  font: var(--type-body);
  color: var(--muted);
  max-width: 60ch;
}
.confirm-packages-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

/* =========================================================================
   PACKAGES & TIMELINE INFOGRAPHIC PAGE (#packages)
   ========================================================================= */
.packages-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 32px 4.5% 72px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  font-family: var(--font-sans);
}
.packages-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 16px;
}
.packages-intro h1 {
  margin: 0 0 8px;
  font: 600 24px/1.2 var(--font-sans);
  letter-spacing: -.02em;
  color: var(--ink);
}
.packages-intro p {
  margin: 0;
  max-width: 64ch;
  font: var(--type-body);
  color: var(--muted);
}
.packages-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.package-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.package-card:hover {
  transform: translateY(-2px);
  background: var(--state-hover);
  border-color: var(--state-border-hover);
}
.package-card:active {
  transform: translateY(0);
  background: var(--state-pressed);
  border-color: var(--accent);
}
.package-card:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}
.package-card.is-selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 14px 32px rgba(0, 0, 0, .28);
}
.package-card.is-selected:hover {
  background: var(--state-hover);
  border-color: var(--accent-hover);
}
.package-card.is-selected:active {
  background: var(--state-pressed);
  border-color: var(--accent-pressed);
}
.package-card-art {
  height: 96px;
  border-radius: 12px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  background-color: var(--visual);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 22px 22px;
  background-position: center center;
}
.package-card-art svg {
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .30));
}
.package-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.package-card-head h3 {
  margin: 0;
  font: var(--type-title);
  color: var(--ink);
}
.package-card-est {
  font: var(--type-meta);
  color: var(--muted);
  white-space: nowrap;
}
.package-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font: var(--type-meta);
}
.package-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.package-checklist li.is-included { color: var(--accent); }
.package-checklist li.is-excluded { color: var(--meta-soft); opacity: .75; }
.pkg-mark {
  flex: 0 0 14px;
  font-weight: 700;
}
.pkg-timeline-panel {
  padding: 24px 28px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.pkg-timeline-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.pkg-timeline-eyebrow {
  display: block;
  font: var(--type-meta);
  letter-spacing: .08em;
  color: var(--accent);
  margin-bottom: 4px;
}
.pkg-timeline-head h2 {
  margin: 0;
  font: var(--type-title);
  color: var(--ink);
}
.pkg-timeline-total {
  font: var(--type-meta);
  color: var(--muted);
}
.pkg-timeline-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  position: relative;
}
.pkg-timeline-track::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 24px;
  right: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--line));
  opacity: .55;
  pointer-events: none;
}
.pkg-timeline-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pkg-step-node {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.pkg-step-num {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  border: 2px solid var(--accent);
  color: var(--accent);
  font: var(--type-meta);
  font-weight: 700;
  position: relative;
  z-index: 1;
}
.pkg-step-dur {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--raised);
  color: var(--ink);
  font: var(--type-meta);
}
.pkg-timeline-step h3 {
  margin: 0;
  font: var(--type-title);
  color: var(--ink);
}
.pkg-timeline-step p {
  margin: 0;
  font: var(--type-body);
  color: var(--muted);
}
@media (max-width: 1024px) {
  .packages-grid,
  .pkg-timeline-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pkg-timeline-track::before { display: none; }
}
@media (max-width: 720px) {
  .contact-modal-grid { grid-template-columns: 1fr; }
  .packages-grid,
  .pkg-timeline-track { grid-template-columns: 1fr; }
}

/* =========================================================================
   DESIGN SYSTEM & TOKEN AUDIT PAGE (#tokens)
   ========================================================================= */
.tokens-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 4.5% 88px;
  display: flex;
  flex-direction: column;
  gap: 36px;
  font-family: var(--font-sans);
}
.tokens-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 16px;
}
.tokens-intro {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 78ch;
}
.tokens-intro h1 {
  margin: 0;
  font: 600 24px/1.2 var(--font-sans);
  letter-spacing: -.02em;
  color: var(--ink);
}
.tokens-intro p {
  margin: 0;
  font: var(--type-body);
  color: var(--muted);
}
.tokens-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.tokens-jump a {
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font: var(--type-meta);
  text-decoration: none;
  transition: border-color .16s ease, color .16s ease, background .16s ease;
}
.tokens-jump a:hover {
  background: var(--state-hover);
  border-color: var(--state-border-hover);
  color: var(--ink);
}
.tokens-jump a:active {
  background: var(--state-pressed);
  border-color: var(--accent);
  color: var(--ink);
}
.tokens-jump a:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  color: var(--ink);
}
.tokens-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  scroll-margin-top: 24px;
}
.tokens-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.tokens-section-head h2 {
  margin: 0;
  font: 600 18px/1.25 var(--font-sans);
  letter-spacing: -.015em;
  color: var(--ink);
}
.tokens-section-head span {
  font: var(--type-meta);
  color: var(--meta-soft);
}
.tokens-card-wrap {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  overflow: hidden;
}
.tokens-table-wrap {
  overflow-x: auto;
}
.tokens-table {
  width: 100%;
  border-collapse: collapse;
  font: var(--type-body);
  min-width: 720px;
}
.tokens-table thead th {
  text-align: left;
  padding: 12px 16px;
  background: var(--raised);
  color: var(--muted);
  font: var(--type-meta);
  letter-spacing: .05em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}
.tokens-table tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 45%, transparent);
  vertical-align: middle;
  color: var(--ink);
}
.tokens-table tbody tr:last-child td {
  border-bottom: 0;
}
.tokens-table tbody tr.tokens-group-row td {
  padding: 9px 16px;
  background: color-mix(in srgb, var(--raised) 55%, transparent);
  color: var(--accent);
  font: var(--type-meta);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.tok-code {
  display: inline-block;
  font: 500 12px/1.35 Consolas, ui-monospace, monospace;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--raised);
  color: var(--ink);
  white-space: nowrap;
}
.tokens-type-table {
  min-width: 0;
  table-layout: auto;
}
.tokens-type-table thead th,
.tokens-type-table tbody td {
  padding: 12px 12px;
}
.tokens-type-table .tok-code {
  white-space: normal;
  word-break: break-word;
}
.tokens-type-table .tok-where {
  min-width: 150px;
  max-width: 240px;
}
.tok-where {
  font: 400 13px/1.45 var(--font-sans);
  color: var(--muted);
}
.tok-where code {
  font: 500 11.5px/1.3 Consolas, ui-monospace, monospace;
  color: var(--ink);
}
.tok-swatch-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 168px;
}
.tok-swatch {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(128, 128, 128, .35);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  background-image:
    linear-gradient(45deg, rgba(128,128,128,.2) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(128,128,128,.2) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(128,128,128,.2) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(128,128,128,.2) 75%);
  background-size: 8px 8px;
  background-position: 0 0, 0 4px, 4px -4px, -4px 0;
}
.tok-swatch > i {
  position: absolute;
  inset: 0;
  display: block;
}
.tok-hex {
  font: 500 12px/1.35 Consolas, ui-monospace, monospace;
  color: var(--ink);
  word-break: break-word;
}
.tok-spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.tok-comp-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  min-width: 0;
  overflow: hidden;
}
.tok-comp-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 10px;
}
.tok-comp-head h3 {
  margin: 0;
  font: var(--type-title);
  color: var(--ink);
}
.tok-comp-stage {
  min-height: 112px;
  padding: 18px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--line) 65%, transparent);
  min-width: 0;
  overflow-x: auto;
  background-color: var(--paper);
  background-image: radial-gradient(circle, var(--bg-grid, rgba(242, 245, 239, .055)) 0.85px, transparent 0.85px);
  background-size: 16px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}
.tok-comp-specs {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}
.tok-comp-specs div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.tok-comp-specs dt {
  font: 600 11px/1.2 var(--font-sans);
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--meta-soft);
}
.tok-comp-specs dd {
  margin: 0;
  font: 400 12.5px/1.45 var(--font-sans);
  color: var(--muted);
  word-break: break-word;
}
.tok-comp-specs dd code {
  font: 500 11.5px/1.35 Consolas, ui-monospace, monospace;
  color: var(--ink);
}
.tok-mini-card {
  width: 240px;
  pointer-events: none;
}
.tok-mini-card .portfolio-card-thumb {
  height: 76px;
}
.tok-mini-modal {
  width: 100%;
  max-width: 300px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .55);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
:root[data-theme="light"] .tok-mini-modal {
  box-shadow: 0 26px 72px rgba(23, 33, 26, .18);
}
.tok-mini-preview {
  width: 100%;
  max-width: 310px;
  padding: 14px;
  border-radius: 16px;
  background: #141916;
  border: 1px solid var(--line);
  box-shadow: 0 24px 56px rgba(0, 0, 0, .55), 0 4px 16px rgba(0, 0, 0, .32);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
:root[data-theme="light"] .tok-mini-preview {
  background: #ffffff;
  border-color: rgba(23, 33, 26, .10);
  box-shadow: 0 20px 48px rgba(23, 33, 26, .12), 0 4px 14px rgba(23, 33, 26, .06);
}
.tok-type-sample {
  color: var(--ink);
  white-space: nowrap;
}
.tok-audit-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.tok-audit-note {
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tok-audit-note h3 {
  margin: 0;
  font: var(--type-title);
  color: var(--ink);
}
.tok-audit-note p {
  margin: 0;
  font: 400 13px/1.55 var(--font-sans);
  color: var(--muted);
}
.tok-audit-note code {
  font: 500 11.5px/1.3 Consolas, ui-monospace, monospace;
  color: var(--accent);
}
@media (max-width: 960px) {
  .tok-spec-grid,
  .tok-audit-notes { grid-template-columns: 1fr; }
}

@media (max-width: 850px) {
  .project-row { grid-template-columns: 1fr 1fr; }
  .project-copy { padding: 26px; }
  .landing-contact { gap: 12px; }
  .landing-contact .button { font-size: 11px; padding: 10px 12px; gap: 18px; }
  .landing-intro p { font-size: 13px; }
  .project-index-heading h3 { font-size: 19px; }
}

@media (max-width: 600px) {
  .portfolio-intro { padding: 42px 0 38px; }
  .portfolio-intro h1 { font-size: clamp(30px, 9.5vw, 52px); margin: 26px 0 18px; letter-spacing: .01em; }
  .intro-portrait .portrait { width: 88px; height: 88px; }
  .intro-description { max-width: 350px; font-size: 14px; }
  .intro-circuit { height: 130px; opacity: .4; }
  .intro-actions { gap: 10px; }
  .intro-actions .button { padding: 12px 14px; gap: 18px; font-size: 12px; }
  .project-filters button { padding: 9px 13px; font-size: 11px; }
  .project-row { grid-template-columns: 1fr; }
  .project-visual { min-height: 260px; border-right: 0; border-bottom: 1px solid var(--line); }
  .project-copy { padding: 24px; }
  .project-copy h3 { font-size: 12px; margin: 20px 0 10px; }
  .project-copy > p { margin: 0; font-size: 23px; }
  .project-open { margin-top: 24px; }
  .site-footer { gap: 18px; }
  .contact-modal { width: calc(100% - 20px); max-height: calc(100svh - 20px); padding: 24px 18px; }
  .modal-close { right: 14px; top: 14px; }
  .contact-modal .section-head { margin: 0 68px 22px 0; }
  .contact-modal .section-head h2 { font-size: 24px; }
}

@media (max-width: 760px) {
  .landing-shell {
    position: relative;
    isolation: isolate;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    padding: 26px 6% 36px;
    gap: 26px;
  }
  .landing-shell::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 260px;
    pointer-events: none;
    z-index: 0;
    background:
      radial-gradient(62% 85% at 14% 0%, rgba(40, 180, 128, .17) 0%, transparent 72%),
      radial-gradient(58% 82% at 54% 4%, rgba(92, 118, 224, .15) 0%, transparent 72%),
      radial-gradient(56% 78% at 90% 0%, rgba(240, 124, 92, .13) 0%, transparent 70%);
  }
  :root[data-theme="light"] .landing-shell::before {
    background:
      radial-gradient(62% 85% at 14% 0%, rgba(40, 180, 128, .18) 0%, transparent 72%),
      radial-gradient(58% 82% at 54% 4%, rgba(92, 118, 224, .16) 0%, transparent 72%),
      radial-gradient(56% 78% at 90% 0%, rgba(240, 134, 92, .15) 0%, transparent 70%);
  }
  .landing-name { grid-area: 1 / 1; font-size: 18px; letter-spacing: .035em; }
  .landing-contact { grid-area: 1 / 1; gap: 8px; }
  .landing-contact .button { gap: 8px; }
  .landing-intro { grid-area: auto; padding-top: 4px; }
  .landing-intro h1 { font-size: clamp(30px, 8.5vw, 48px); letter-spacing: -.055em; margin-bottom: 22px; }
  .landing-intro p { max-width: 440px; font: 400 14px/1.55 var(--font-sans); }
  .landing-left { grid-area: 2 / 1; position: relative; z-index: 1; gap: 22px; }
  .landing-work-list { gap: 22px; padding-bottom: 6px; }
  .landing-composition { display: none; }
  .project-hover-preview { display: none !important; }
  .portfolio-cards-stack { grid-template-columns: 1fr; gap: 10px; }
  .portfolio-project-card { padding: 14px; gap: 12px; }
  .portfolio-card-thumb { width: 100%; height: 150px; }
  .portfolio-card-meta { display: none; }
  .portfolio-card-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .card-mobile-tags { display: flex; }
  .landing-floor {
    grid-area: 3 / 1;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: nowrap;
    margin-top: 4px;
  }
  .portfolio-pagination { position: static; margin: 0; display: inline-flex; align-items: center; }
  .project-index-item { padding: 24px 0; }
  .landing-socials { position: static; z-index: 1; margin: 0; height: 30px; align-self: center; justify-content: center; }
  .landing-socials nav { gap: 16px; }
  .inline-project-preview { display: block; margin-top: 16px; }
  .inline-project-image { height: 240px; min-height: 0; padding: 24px; gap: 22px; border: 1px solid var(--line); border-radius: 4px; }
  .inline-project-image .poster { transform: rotate(-9deg) scale(.85); }
  .inline-project-image .token-board { transform: rotate(-6deg) scale(1); }
  .inline-project-image .phone { transform: rotate(-7deg) scale(.85); }
  .inline-project-image .phone:nth-child(2) { transform: translateY(12px) rotate(7deg) scale(.85); }
}

@media (min-width: 1920px) {
  .landing-shell { grid-template-columns: minmax(0, .95fr) minmax(0, 1.15fr); column-gap: 80px; }
  .crystal-facet-link { padding: 10px 16px 10px 18px; }
  .crystal-facet-link .facet-name { font-size: 14px; }
  .crystal-facet-link .facet-count { font-size: 10.5px; }
}

.article-back,
.site-footer a,
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
}

@media (max-width: 480px) {
  .landing-contact {
    gap: 2px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .landing-contact .button {
    margin-left: 6px;
    padding: 8px 10px;
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .expertise-gradient,
  .crystal-caustic,
  .motion-orbit,
  .motion-orbit::before,
  .motion-orbit::after,
  .typewriter-cursor {
    animation: none !important;
  }
}
@media (forced-colors: active) { .expertise-gradient { animation: none; background: none; color: CanvasText; -webkit-text-fill-color: CanvasText; } }

@media print {
  :root, :root[data-theme] { --ink: #102f24; --paper: #ffffff; --muted: #4d6658; --surface: #ffffff; --raised: #e0eee4; --accent: #05734b; }
  .intro-circuit, .theme-toggle, .anim-toggle { display: none; }
  body { background: var(--paper); }
  .contact-modal, .landing-contact { display: none; }
}
