:root {
  color-scheme: light;
  --page: #fbfbfa;
  --surface: #ffffff;
  --ink: #1b1c1b;
  --muted: #686b66;
  --faint: #6f726c;
  --line: #e5e6e2;
  --line-strong: #d4d6d1;
  --wash: #f1f2ef;
  --live: #278a57;
  --header: rgba(251, 251, 250, .9);
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  --shell: 760px;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #151615;
  --surface: #1a1b1a;
  --ink: #efefec;
  --muted: #a3a69f;
  --faint: #8e918a;
  --line: #2c2e2b;
  --line-strong: #3a3c38;
  --wash: #20221f;
  --live: #5cbd86;
  --header: rgba(21, 22, 21, .9);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { position: relative; isolation: isolate; margin: 0; overflow-x: clip; background: var(--page); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body.menu-open { overflow: hidden; }
body > main, body > footer { position: relative; z-index: 1; }
.context-field { position: fixed; z-index: 0; inset: 0; width: 100%; height: 100%; pointer-events: none; }
a { color: inherit; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { background: var(--ink); color: var(--page); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.skip-link { position: fixed; z-index: 999; top: 1rem; left: 1rem; padding: .6rem .9rem; background: var(--ink); color: var(--page); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.shell { width: min(calc(100% - 48px), var(--shell)); margin-inline: auto; }

.site-header { position: sticky; z-index: 100; top: 0; background: var(--header); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.nav-shell { min-height: 64px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 1.7rem; border-bottom: 1px solid var(--line); }
.brand { width: max-content; display: inline-flex; align-items: baseline; gap: .65rem; text-decoration: none; }
.brand-word { font-size: .88rem; font-weight: 720; letter-spacing: -.035em; }
.brand-word::after { content: "."; }
.brand-context { color: var(--muted); font-size: .7rem; }
.main-nav { display: flex; align-items: center; gap: 1.25rem; }
.main-nav a { color: var(--muted); font-size: .75rem; text-decoration: none; }
.main-nav a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: .35rem; }
.account-link { padding: .28rem .48rem; color: var(--muted); font-size: .66rem; text-decoration: none; white-space: nowrap; }
.account-link:hover { color: var(--ink); }
.account-link[data-authenticated="true"]::before { content: ""; width: 5px; height: 5px; display: inline-block; margin-right: .4rem; border-radius: 50%; background: var(--live); vertical-align: .08em; }
.language-link { min-width: 30px; height: 30px; display: inline-grid; place-items: center; border-radius: 50%; color: var(--muted); font-family: var(--mono); font-size: .5rem; text-decoration: none; }
.language-link:hover, .icon-button:hover, .menu-toggle:hover { background: var(--wash); color: var(--ink); }
.icon-button, .menu-toggle { width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.icon-button svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.moon-icon, :root[data-theme="dark"] .sun-icon { display: none; }
:root[data-theme="dark"] .moon-icon { display: block; }
.menu-toggle { position: relative; display: none; }
.menu-toggle span { position: absolute; width: 13px; height: 1px; background: currentColor; transition: transform 150ms ease, top 150ms ease; }
.menu-toggle span:first-child { top: 11px; }
.menu-toggle span:last-child { top: 18px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 15px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 15px; transform: rotate(-45deg); }

.home-hero { padding: 6.3rem 0 5.4rem; }
.availability { margin: 0 0 1.4rem; color: var(--muted); font-size: .72rem; }
.status-dot { width: 6px; height: 6px; display: inline-block; margin-right: .55rem; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 3px color-mix(in srgb, var(--live) 12%, transparent); }
.home-hero h1 { margin: 0; font-size: clamp(2.05rem, 7vw, 3.25rem); font-weight: 660; line-height: 1.13; letter-spacing: -.05em; }
.home-intro { max-width: 610px; margin: 1.25rem 0 0; color: var(--muted); font-size: 1rem; line-height: 1.9; }
.home-links { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1.35rem 0 0; font-size: .76rem; }
.home-links a, .home-about a { text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.home-links a:hover, .home-about a:hover { text-decoration-color: var(--ink); }
.now-strip { display: grid; grid-template-columns: 100px 1fr; gap: 1.5rem; padding: 0 0 5.5rem; scroll-margin-top: 88px; }
.now-strip h2 { margin: 0; font-size: .78rem; font-weight: 650; }
.now-strip p { margin: 0; color: var(--muted); font-size: .78rem; }
.now-strip a { color: var(--ink); text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.now-strip a:hover { text-decoration-color: var(--ink); }
.archive-strip { padding: 0 0 5.5rem; scroll-margin-top: 88px; }
.list-heading { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: .7rem; border-bottom: 1px solid var(--line-strong); }
.list-heading h2 { margin: 0; font-size: .8rem; font-weight: 650; letter-spacing: -.01em; }
.list-heading > span { color: var(--faint); font-family: var(--mono); font-size: .57rem; }
.archive-links { display: flex; flex-direction: column; }
.archive-links a { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: .85rem .25rem; border-bottom: 1px solid var(--line); text-decoration: none; }
.archive-links a > span { display: flex; flex-direction: column; gap: .12rem; }
.archive-links strong { font-size: .8rem; font-weight: 600; }
.archive-links small { color: var(--muted); font-size: .69rem; }
.archive-links b { color: var(--faint); font-family: var(--mono); font-size: .54rem; font-weight: 400; }
.archive-links a:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.home-about { display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; gap: 1.5rem; align-items: baseline; padding-bottom: 6rem; }
.home-about h2 { margin: 0; font-size: .78rem; font-weight: 650; }
.home-about p { margin: 0; color: var(--muted); font-size: .76rem; }
.home-about a { font-size: .68rem; white-space: nowrap; }

.site-footer { padding: 1.7rem 0; border-top: 1px solid var(--line); }
.footer-grid { display: flex; justify-content: space-between; gap: 2rem; color: var(--faint); font-size: .59rem; }
.footer-grid > div { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-grid a { text-underline-offset: 3px; }

@media (max-width: 700px) {
  .context-field { opacity: .92; }
  .shell { width: min(calc(100% - 36px), var(--shell)); }
  .nav-shell { grid-template-columns: 1fr auto; }
  .brand-context { display: none; }
  .main-nav { position: fixed; inset: 64px 0 auto; min-height: calc(100svh - 64px); display: flex; flex-direction: column; align-items: flex-start; gap: 0; padding: 1.2rem 18px; border-top: 1px solid var(--line); background: var(--page); transform: translateX(100%); visibility: hidden; transition: transform 180ms ease, visibility 180ms ease; }
  .main-nav.open { transform: translateX(0); visibility: visible; }
  .main-nav a { width: 100%; padding: .9rem 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: .9rem; }
  .nav-actions { grid-column: 2; grid-row: 1; gap: .2rem; }
  .account-link { padding-inline: .35rem; }
  .menu-toggle { display: grid; }
  .home-hero { padding-block: 4.8rem 4.4rem; }
  .now-strip { grid-template-columns: 1fr; gap: .65rem; padding-bottom: 4.5rem; }
  .archive-strip { padding-bottom: 4.5rem; }
  .archive-links a { align-items: flex-start; }
  .archive-links b { display: none; }
  .home-about { grid-template-columns: 1fr; gap: .7rem; }
  .footer-grid { flex-direction: column; gap: .65rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Projects page: compact rows with project marks, not a marketing grid. */
.products-page { padding-top: 1px; }
.products-intro { padding: 5.8rem 0 4.5rem; }
.products-intro .availability { font-family: var(--mono); font-size: .66rem; text-transform: uppercase; }
.products-intro h1 { margin: 0; font-size: clamp(2.05rem, 7vw, 3.25rem); font-weight: 660; line-height: 1.13; letter-spacing: -.05em; }
.products-intro > p:last-child { max-width: 610px; margin: 1.25rem 0 0; color: var(--muted); font-size: 1rem; line-height: 1.9; }
.product-section { padding: 0 0 5.5rem; }
.product-list { display: flex; flex-direction: column; }
.product-card { position: relative; z-index: 0; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto 14px; gap: 1rem; align-items: center; min-height: 88px; padding: .9rem .25rem; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding 160ms ease, border-color 160ms ease; }
.product-card::before { content: ""; position: absolute; inset: 5px -12px; z-index: -1; border-radius: 8px; background: var(--wash); opacity: 0; transform: scale(.985); transition: opacity 160ms ease, transform 160ms ease; }
.product-card:hover { border-color: transparent; }
.product-card:hover::before { opacity: 1; transform: scale(1); }
.product-logo { width: 40px; height: 40px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid var(--line-strong); border-radius: 10px; background: color-mix(in srgb, var(--surface) 76%, transparent); color: var(--ink); transition: border-color 160ms ease, background 160ms ease, color 160ms ease; }
.product-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.product-card:hover .product-logo { border-color: var(--ink); background: var(--ink); color: var(--page); }
.product-copy { min-width: 0; display: flex; flex-direction: column; gap: .13rem; }
.product-copy strong { overflow: hidden; font-size: .86rem; font-weight: 610; letter-spacing: -.015em; text-overflow: ellipsis; white-space: nowrap; }
.product-copy small { overflow: hidden; color: var(--muted); font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.product-meta { display: flex; align-items: center; gap: .4rem; color: var(--faint); font-family: var(--mono); font-size: .54rem; white-space: nowrap; }
.product-meta i { width: 5px; height: 5px; border-radius: 50%; background: var(--live); }
.row-arrow { color: var(--faint); font-size: .75rem; opacity: 0; transform: translate(-3px, 3px); transition: opacity 160ms ease, transform 160ms ease; }
.product-card:hover .row-arrow { opacity: 1; transform: none; }
.path-note { margin: 1rem 0 0; color: var(--faint); font-size: .72rem; line-height: 1.7; }

/* Product detail: a public field note with one clear route into the system. */
.product-detail { padding-top: 1px; }
.detail-back { display: inline-block; margin-top: 2.2rem; color: var(--faint); font-size: .68rem; text-decoration: none; }
.detail-back:hover { color: var(--ink); }
.detail-hero { padding: 4.7rem 0 4.4rem; }
.detail-identity { display: flex; align-items: center; gap: .85rem; margin-bottom: 1.45rem; }
.detail-identity .product-logo { width: 46px; height: 46px; }
.detail-domain { margin: 0; color: var(--faint); font-family: var(--mono); font-size: .58rem; letter-spacing: .02em; text-transform: uppercase; }
.detail-hero h1 { max-width: 680px; margin: 0; font-size: clamp(2.15rem, 7vw, 3.55rem); font-weight: 660; line-height: 1.08; letter-spacing: -.055em; }
.detail-lead { max-width: 650px; margin: 1.35rem 0 0; color: var(--muted); font-size: 1rem; line-height: 1.9; }
.detail-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1.7rem; }
.detail-actions a { min-height: 38px; display: inline-flex; align-items: center; padding: .55rem .85rem; border: 1px solid var(--line-strong); border-radius: 7px; font-size: .7rem; text-decoration: none; }
.detail-actions .detail-primary { border-color: var(--ink); background: var(--ink); color: var(--page); }
.detail-actions .detail-disabled { min-height: 38px; display: inline-flex; align-items: center; padding: .55rem .85rem; border: 1px solid var(--line); border-radius: 7px; color: var(--faint); font-size: .7rem; cursor: not-allowed; }
.detail-actions a:hover { transform: translateY(-1px); }
.detail-section { padding: 0 0 4.8rem; scroll-margin-top: 88px; }
.detail-list { display: flex; flex-direction: column; }
.detail-list article { padding: 1.15rem .25rem; border-bottom: 1px solid var(--line); }
.detail-list h3 { margin: 0; font-size: .84rem; font-weight: 620; }
.detail-list p { margin: .2rem 0 0; color: var(--muted); font-size: .74rem; line-height: 1.75; }
.access-note { display: grid; grid-template-columns: 105px minmax(0, 1fr); gap: 1.5rem; margin-bottom: 5.5rem; padding: 1.15rem 0; border-block: 1px solid var(--line-strong); }
.access-note strong { font-size: .72rem; font-weight: 620; }
.access-note p { margin: 0; color: var(--muted); font-size: .72rem; line-height: 1.75; }

@media (max-width: 700px) {
  .products-intro { padding-block: 4.4rem 3.8rem; }
  .product-section { padding-bottom: 4.5rem; }
  .product-card { grid-template-columns: 40px minmax(0, 1fr) 12px; gap: .8rem; min-height: 80px; }
  .product-meta { display: none; }
  .row-arrow { opacity: 1; transform: none; }
  .detail-back { margin-top: 1.5rem; }
  .detail-hero { padding-block: 3.6rem 3.8rem; }
  .access-note { grid-template-columns: 1fr; gap: .35rem; }
}
