/* Antropy site styles. The privacy and 404 pages add privacy.css on top. */
@layer reset, base, layout, components, responsive, motion;

@layer reset {
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }
  html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
  }
  body {
    margin: 0;
  }
  button,
  input,
  select,
  textarea {
    font: inherit;
  }
  button,
  a,
  select,
  textarea {
    -webkit-tap-highlight-color: transparent;
  }
  button {
    cursor: pointer;
  }
  a {
    color: inherit;
    text-decoration: none;
  }
  h1,
  h2,
  h3,
  h4,
  p {
    margin: 0;
  }
  svg {
    display: block;
    max-width: 100%;
  }
  button,
  input,
  select,
  textarea {
    border-radius: 0;
  }
  [hidden] {
    display: none !important;
  }
}

@layer base {
  :root {
    color-scheme: dark;
    --ink: #101411;
    --paper: #f0f1e8;
    --acid: #d1f59a;
    --muted: #a5aca1;
    --line: rgb(240 241 232 / 17%);
    --dark-line: rgb(16 20 17 / 20%);
    --gutter: clamp(24px, 4.6vw, 88px);
    --sans:
      "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei",
      sans-serif;
    --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  }
  body {
    background: var(--ink);
    color: var(--paper);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }
  ::selection {
    color: var(--ink);
    background: var(--acid);
  }
  :focus-visible {
    outline: 2px solid var(--acid);
    outline-offset: 5px;
  }
  section[id],
  main[id] {
    scroll-margin-top: 100px;
  }
  button {
    color: inherit;
  }
  .site-shell {
    width: 100%;
    overflow: clip;
  }
  .eyebrow,
  .coordinate,
  .panel-label,
  .status-chip,
  .case-type,
  .case-state,
  .visual-label,
  .map-caption,
  .hero-foot small,
  .method-number,
  .footer-note {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0.09em;
    text-transform: uppercase;
  }
  .eyebrow {
    color: var(--acid);
  }
  .eyebrow::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 11px;
    background: currentColor;
    vertical-align: 2px;
  }
  .accent {
    color: var(--acid);
  }
  .skip-link {
    position: fixed;
    top: 12px;
    left: 20px;
    z-index: 100;
    padding: 12px 18px;
    transform: translateY(-160%);
    color: var(--ink);
    background: var(--acid);
  }
  .skip-link:focus {
    transform: translateY(0);
  }
}

@layer layout {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    min-height: 78px;
    padding: 0 var(--gutter);
    border-bottom: 1px solid var(--line);
    background: rgb(16 20 17 / 94%);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
  }
  .brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
    font-size: 25px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.065em;
  }
  .brand-symbol {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    color: var(--acid);
  }
  .brand-symbol svg {
    width: 100%;
    height: 100%;
  }
  .brand-symbol {
    font-family: Arial, sans-serif;
    font-size: 32px;
    font-weight: 300;
    line-height: 1;
    letter-spacing: 0;
  }
  .brand-symbol > span {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 26px;
    height: 2px;
    background: currentColor;
  }
  .brand-period {
    color: var(--acid);
  }
  .brand-symbol:empty::before {
    content: "";
    width: 19px;
    height: 19px;
    border: 2px solid currentColor;
    transform: rotate(45deg);
  }
  .brand-symbol:empty::after {
    content: "";
    position: absolute;
    width: 7px;
    height: 7px;
    background: currentColor;
  }
  .nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-left: auto;
  }
  .nav-links a {
    position: relative;
    padding: 29px 0 26px;
    color: #c1c6bb;
    font-size: 12px;
    line-height: 1.6;
    transition: color 180ms ease;
  }
  .nav-links a::after {
    content: "";
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--acid);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 180ms ease;
  }
  .nav-links a:hover {
    color: var(--acid);
  }
  .nav-links a:hover::after {
    transform: scaleX(1);
  }
  .header-tools {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: 8px;
  }
  .language-switch {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border: 1px solid var(--line);
  }
  .language-switch > span {
    color: #4c5845;
    font-size: 10px;
  }
  .language-switch button {
    min-width: 32px;
    min-height: 29px;
    padding: 5px 6px;
    border: 0;
    color: var(--muted);
    background: transparent;
    font-family: var(--mono);
    font-size: 10px;
    line-height: 1.2;
  }
  .language-switch button[aria-pressed="true"],
  .language-switch button.active {
    color: var(--ink);
    background: var(--acid);
  }
  .language-switch button:hover {
    color: var(--paper);
    background: #333b2b;
  }
  .language-switch button[aria-pressed="true"]:hover {
    color: var(--ink);
    background: var(--acid);
  }
  .menu-toggle {
    display: none;
  }
  .hero {
    position: relative;
    padding: 28px var(--gutter) 0;
  }
  .hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background-image:
      linear-gradient(rgb(240 241 232 / 2.8%) 1px, transparent 1px),
      linear-gradient(90deg, rgb(240 241 232 / 2.8%) 1px, transparent 1px);
    background-size: 88px 88px;
    mask-image: linear-gradient(90deg, transparent 25%, black);
    pointer-events: none;
  }
  .hero-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }
  .coordinate {
    color: #89967f;
    white-space: nowrap;
  }
  .hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    min-height: 494px;
    padding: 28px 0 42px;
  }
  .hero-copy {
    position: relative;
    z-index: 2;
    padding: 12px 0;
  }
  .hero h1 {
    max-width: 760px;
    font-size: clamp(58px, 6.5vw, 104px);
    font-weight: 400;
    line-height: 0.99;
    letter-spacing: -0.067em;
    text-wrap: balance;
  }
  .hero h1 .accent {
    display: block;
  }
  .hero h1 > br {
    display: none;
  }
  .hero-description {
    max-width: 430px;
    margin-top: 26px;
    color: #b1b8ac;
    font-size: 15px;
    line-height: 1.7;
  }
  .hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 29px;
  }
  .hero-visual {
    position: relative;
    min-width: 0;
    height: 428px;
    isolation: isolate;
  }
  .hero-visual::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 4% -8%;
    background: radial-gradient(
      ellipse,
      rgb(185 230 136 / 7%) 0,
      transparent 65%
    );
    pointer-events: none;
  }
  #system-map {
    position: absolute;
    width: 116%;
    max-width: none;
    height: 108%;
    left: -8%;
    top: -4%;
    overflow: visible;
  }
  #system-map text {
    font-family: var(--mono);
    letter-spacing: 0.025em;
  }
  .visual-label {
    position: absolute;
    top: -4px;
    right: 0;
    color: var(--muted);
    font-size: 9px;
  }
  .map-caption {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    left: 0;
    right: 0;
    bottom: -15px;
    color: #8d9787;
    font-size: 9px;
  }
  .map-caption > span {
    flex: 1;
    min-width: 0;
  }
  .map-demo {
    position: absolute;
    right: 0;
    bottom: 24px;
    color: #899a7a;
    font-family: var(--mono);
    font-size: 8px;
    line-height: 1.4;
    letter-spacing: 0.09em;
  }
  .motion-toggle {
    position: static;
    flex: 0 0 auto;
    min-height: 30px;
    padding: 6px 9px;
    border: 1px solid var(--line);
    color: #9da694;
    background: var(--ink);
    font-family: var(--mono);
    font-size: 9px;
    line-height: 1.4;
  }
  .motion-toggle:hover {
    border-color: var(--acid);
    color: var(--acid);
  }
  .hero-foot {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .hero-foot > div {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 20px 24px;
  }
  .hero-foot > div:first-child {
    padding-left: 0;
  }
  .hero-foot > div + div {
    border-left: 1px solid var(--line);
  }
  .hero-foot small {
    color: #99aa8c;
    font-size: 9px;
  }
  .hero-foot span {
    font-size: 12px;
    color: #d6dacd;
  }
  .capabilities,
  .method {
    padding: 100px var(--gutter);
  }
  .section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.7fr);
    column-gap: 64px;
    row-gap: 20px;
    margin-bottom: 44px;
  }
  .section-heading .eyebrow {
    grid-column: 1 / -1;
  }
  .section-heading h2 {
    max-width: 790px;
    font-size: clamp(38px, 4.2vw, 66px);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -0.055em;
    white-space: pre-line;
    text-wrap: balance;
  }
  .section-heading > p:not(.eyebrow) {
    align-self: end;
    max-width: 410px;
    padding-bottom: 3px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
  }
  .evidence {
    padding: 90px var(--gutter) 96px;
    color: var(--ink);
    background: var(--paper);
  }
  .evidence .eyebrow {
    color: #45543a;
  }
  .evidence .section-heading > p:not(.eyebrow) {
    color: #646c5e;
  }
  .evidence :focus-visible {
    outline-color: var(--ink);
  }
  .method {
    padding-top: 92px;
    padding-bottom: 74px;
  }
  .contact {
    position: relative;
    display: grid;
    justify-items: start;
    gap: 26px;
    padding: 78px var(--gutter) 88px;
    border-top: 1px solid var(--line);
    background: #1b2419;
    overflow: hidden;
    isolation: isolate;
  }
  .contact-symbol {
    position: absolute;
    z-index: -1;
    top: 27px;
    right: 6%;
    color: rgb(209 245 154 / 5%);
    font-weight: 200;
    font-size: 450px;
    line-height: 1;
    pointer-events: none;
  }
  .contact h2 {
    width: 100%;
    max-width: 920px;
    font-size: clamp(46px, 6.2vw, 90px);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.055em;
    white-space: pre-line;
    text-wrap: balance;
  }
  .contact > p:not(.eyebrow) {
    max-width: 545px;
    color: #b3bfaa;
    font-size: 14px;
    line-height: 1.8;
  }
  .contact-note {
    max-width: 500px;
    color: #849577;
    font-size: 10px;
    line-height: 1.7;
  }
  .contact-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 12px;
  }
  .contact-address {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.02em;
  }
  footer {
    padding: 39px var(--gutter) 22px;
  }
  .footer-top {
    display: flex;
    align-items: center;
    gap: 36px;
    padding-bottom: 32px;
  }
  .footer-top > p {
    max-width: 370px;
    color: #778170;
    font-size: 11px;
  }
  .footer-top .brand {
    font-size: 21px;
  }
  .footer-top .brand-symbol {
    width: 21px;
    height: 21px;
  }
  .footer-links {
    display: flex;
    gap: 22px;
    margin-left: auto;
    font-size: 11px;
    color: #a3ac9a;
  }
  .footer-links a:hover {
    color: var(--acid);
  }
  .footer-bottom {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 26px;
    padding-top: 17px;
    border-top: 1px solid var(--line);
    color: #94a087;
    font-family: var(--mono);
    font-size: 9px;
    line-height: 1.7;
  }
  .footer-bottom > span {
    flex: 0 0 auto;
  }
  .footer-note {
    color: #94a087;
    font-size: 9px;
    letter-spacing: 0.035em;
    text-transform: none;
  }
}

@layer components {
  .button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    min-height: 49px;
    padding: 14px 19px;
    border: 1px solid var(--line);
    color: var(--paper);
    background: transparent;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    text-align: left;
    transition:
      background 180ms ease,
      border-color 180ms ease,
      color 180ms ease;
  }
  .button svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
  }
  .button.primary {
    color: var(--ink);
    border-color: var(--acid);
    background: var(--acid);
  }
  .button.primary:hover {
    border-color: #e4ffc0;
    background: #e4ffc0;
  }
  .button.primary:focus-visible {
    outline-color: var(--paper);
  }
  .button.secondary {
    color: #d2d8c9;
  }
  .button.secondary:hover {
    border-color: #748068;
    background: #1d2519;
  }
  .workflow-console {
    display: grid;
    grid-template-columns: minmax(235px, 0.8fr) minmax(0, 2.35fr);
    border: 1px solid var(--line);
  }
  .workflow-tabs {
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--line);
  }
  .flow-tab {
    position: relative;
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) 14px;
    align-content: center;
    align-items: start;
    column-gap: 12px;
    row-gap: 7px;
    flex: 1;
    width: 100%;
    min-height: 120px;
    padding: 23px 22px;
    border: 0;
    color: #b0baa5;
    background: #141a14;
    text-align: left;
    transition:
      background 180ms ease,
      color 180ms ease;
  }
  .flow-tab + .flow-tab {
    border-top: 1px solid var(--line);
  }
  .flow-tab:hover {
    background: #202a1c;
  }
  .flow-tab:focus-visible {
    z-index: 2;
    outline-offset: -5px;
  }
  .tab-number {
    padding-top: 2px;
    font-family: var(--mono);
    font-size: 10px;
    opacity: 0.5;
  }
  .tab-copy {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
    gap: 8px;
  }
  .tab-title {
    display: block;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.25;
  }
  .tab-subtitle {
    display: block;
    font-size: 10px;
    line-height: 1.5;
    opacity: 0.7;
  }
  .tab-arrow {
    grid-column: 3;
    grid-row: 1;
    font-size: 17px;
    line-height: 1;
    opacity: 0.45;
  }
  .flow-tab[aria-selected="true"],
  .flow-tab.active {
    color: var(--ink);
    background: var(--acid);
  }
  .flow-tab[aria-selected="true"] .tab-arrow,
  .flow-tab.active .tab-arrow {
    opacity: 1;
  }
  .flow-tab[aria-selected="true"]:focus-visible {
    outline-color: var(--ink);
  }
  .workflow-panel {
    position: relative;
    min-width: 0;
    padding: 29px 34px 24px;
    background: #141a14;
  }
  .panel-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 25px;
  }
  .panel-label {
    color: #96a788;
    font-size: 9px;
  }
  .status-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    border: 1px solid #415336;
    color: #aec39a;
    font-size: 8px;
    letter-spacing: 0.055em;
  }
  .status-chip::before {
    content: "";
    width: 4px;
    height: 4px;
    flex: 0 0 auto;
    background: var(--acid);
  }
  .workflow-panel h3 {
    max-width: 680px;
    font-size: clamp(27px, 2.4vw, 40px);
    font-weight: 400;
    line-height: 1.13;
    letter-spacing: -0.045em;
  }
  #flow-description {
    max-width: 640px;
    margin-top: 13px;
    color: #a5b09d;
    font-size: 12px;
    line-height: 1.7;
  }
  .flow-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin: 29px 0 27px;
    border-top: 1px solid #405235;
    border-bottom: 1px solid var(--line);
  }
  .flow-step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    min-height: 120px;
    padding: 15px 16px;
  }
  .flow-step:first-child {
    padding-left: 0;
  }
  .flow-step + .flow-step {
    border-left: 1px solid var(--line);
  }
  .step-number {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #7f936d;
    font-family: var(--mono);
    font-size: 9px;
  }
  .step-number::before {
    content: "";
    width: 4px;
    height: 4px;
    border: 1px solid #7f936d;
  }
  .flow-step strong {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
  }
  .flow-step small {
    color: #8e9a83;
    font-size: 10px;
    line-height: 1.55;
  }
  .flow-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .flow-bottom h4 {
    margin-bottom: 8px;
    color: var(--acid);
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 0.075em;
    text-transform: uppercase;
  }
  .flow-bottom p {
    color: #a6b19d;
    font-size: 11px;
    line-height: 1.65;
  }
  .panel-note {
    margin-top: 24px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    color: #92a286;
    font-size: 9px;
    line-height: 1.6;
  }
  .case-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--dark-line);
  }
  .case-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 29px 28px 0;
  }
  .case-card:first-child {
    padding-left: 0;
  }
  .case-card:last-child {
    padding-right: 0;
  }
  .case-card + .case-card {
    border-left: 1px solid var(--dark-line);
  }
  .case-type {
    margin-bottom: 14px;
    color: #738066;
    font-size: 9px;
    letter-spacing: 0.07em;
  }
  .case-card h3 {
    min-height: 64px;
    font-size: 27px;
    font-weight: 400;
    line-height: 1.13;
    letter-spacing: -0.045em;
  }
  .case-art {
    position: relative;
    display: grid;
    place-items: center;
    height: 166px;
    margin: 25px 0 23px;
    overflow: hidden;
    border: 1px solid rgb(16 20 17 / 11%);
    background: #e5e8dc;
    background-image:
      linear-gradient(rgb(16 20 17 / 3.5%) 1px, transparent 1px),
      linear-gradient(90deg, rgb(16 20 17 / 3.5%) 1px, transparent 1px);
    background-size: 22px 22px;
  }
  .case-art::after {
    content: "+";
    position: absolute;
    top: 6px;
    right: 9px;
    color: #92a17f;
    font-family: var(--mono);
    font-size: 12px;
  }
  .case-art svg {
    width: 100%;
    height: 100%;
  }
  .case-art svg text {
    font-family: var(--mono);
  }
  .case-result {
    margin-bottom: 12px;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.015em;
  }
  .case-card > p:not(.case-type):not(.case-result):not(.case-state) {
    color: #66705d;
    font-size: 12px;
    line-height: 1.75;
  }
  .case-state {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: auto;
    padding-top: 25px;
    color: #4a593d;
    font-size: 9px;
    letter-spacing: 0.035em;
  }
  .case-state::before {
    content: "";
    width: 5px;
    height: 5px;
    flex: 0 0 auto;
    background: #748e5a;
  }
  .method-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--line);
  }
  .method-grid article {
    min-width: 0;
    padding: 26px 35px 25px 0;
  }
  .method-grid article + article {
    padding-left: 30px;
    border-left: 1px solid var(--line);
  }
  .method-number {
    display: block;
    margin-bottom: 28px;
    color: #7f926c;
    font-size: 12px;
  }
  .method-grid h3 {
    margin-bottom: 12px;
    font-size: 25px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.035em;
  }
  .method-grid p {
    max-width: 330px;
    color: #9ea993;
    font-size: 12px;
    line-height: 1.8;
  }
  .principles {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px 31px;
    margin-top: 30px;
    padding-top: 21px;
    border-top: 1px solid var(--line);
  }
  .principles span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #88987a;
    font-family: var(--mono);
    font-size: 9px;
    line-height: 1.5;
  }
  .principles span::before {
    content: "+";
    color: var(--acid);
  }
  #brief-dialog {
    width: min(740px, calc(100% - 32px));
    max-height: calc(100dvh - 48px);
    margin: auto;
    padding: 32px;
    overflow-y: auto;
    border: 1px solid #566c44;
    color: var(--paper);
    background: #141a14;
    box-shadow: 0 30px 120px rgb(0 0 0 / 55%);
  }
  #brief-dialog::backdrop {
    background: rgb(5 10 6 / 80%);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }
  .dialog-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
  }
  .dialog-header h2 {
    max-width: 490px;
    font-size: 33px;
    font-weight: 400;
    line-height: 1.13;
    letter-spacing: -0.04em;
  }
  .dialog-header .eyebrow {
    margin-bottom: 12px;
  }
  .icon-button {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    min-width: 36px;
    min-height: 36px;
    padding: 7px;
    border: 1px solid var(--line);
    color: #c2cbb7;
    background: transparent;
    font-size: 20px;
    line-height: 1;
  }
  .icon-button:hover {
    color: var(--ink);
    background: var(--acid);
  }
  #brief-form {
    display: grid;
    gap: 18px;
  }
  #brief-form label {
    display: grid;
    gap: 8px;
    color: #c6cfbb;
    font-size: 12px;
    line-height: 1.5;
  }
  #brief-form > label + select,
  #brief-form > label + textarea {
    margin-top: -10px;
  }
  #brief-form select,
  #brief-form textarea,
  #brief-form input {
    display: block;
    width: 100%;
    min-height: 46px;
    padding: 12px;
    border: 1px solid #3e4e34;
    color: var(--paper);
    background: #0d120d;
    font-size: 14px;
    line-height: 1.5;
  }
  #brief-form textarea {
    min-height: 110px;
    resize: vertical;
  }
  #brief-form textarea::placeholder,
  #brief-form input::placeholder {
    color: #6c7b60;
  }
  #brief-form select {
    padding-right: 34px;
  }
  .form-note {
    color: #8b9a7e;
    font-size: 11px;
    line-height: 1.7;
  }
  .brief-output {
    margin-top: 20px;
    padding: 17px;
    border: 1px solid #526742;
    background: #1c2718;
  }
  .brief-output pre {
    margin: 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    color: #cfddbe;
    font-family: var(--mono);
    font-size: 11px;
    line-height: 1.8;
  }
  .dialog-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 23px;
  }
  .copy-status {
    min-height: 20px;
    margin-top: 12px;
    color: var(--acid);
    font-size: 11px;
    line-height: 1.5;
  }
  body:has(#brief-dialog[open]) {
    overflow: hidden;
  }
}

@layer responsive {
  @media (min-width: 1720px) {
    :root {
      --gutter: max(88px, calc((100vw - 1600px) / 2));
    }
    .hero-layout {
      min-height: 570px;
    }
    .hero-visual {
      height: 480px;
    }
  }
  html[lang^="zh"] .hero h1 {
    max-width: 690px;
    font-size: clamp(54px, 5.8vw, 88px);
    line-height: 1.15;
    letter-spacing: -0.055em;
  }
  html[lang^="zh"] .hero-description {
    max-width: 415px;
    font-size: 14px;
    line-height: 1.95;
  }
  html[lang^="zh"] .section-heading h2,
  html[lang^="zh"] .contact h2 {
    line-height: 1.2;
    letter-spacing: -0.035em;
  }
  html[lang^="zh"] .eyebrow,
  html[lang^="zh"] .panel-label {
    letter-spacing: 0.12em;
  }
  html[lang^="zh"] .case-card h3 {
    line-height: 1.3;
  }
  @media (max-width: 1100px) {
    :root {
      --gutter: 34px;
    }
    .nav-links {
      gap: 22px;
    }
    .site-header {
      gap: 22px;
    }
    .hero-layout {
      grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr);
      min-height: 475px;
    }
    .hero h1 {
      font-size: clamp(58px, 6.8vw, 74px);
    }
    .hero-visual {
      height: 370px;
    }
    .hero-description {
      max-width: 370px;
      font-size: 13px;
    }
    .hero-actions {
      gap: 10px;
    }
    .hero-actions .button {
      gap: 15px;
      padding: 13px 15px;
      font-size: 11px;
    }
    .section-heading {
      column-gap: 40px;
    }
    .workflow-console {
      grid-template-columns: 245px minmax(0, 1fr);
    }
    .workflow-panel {
      padding: 26px;
    }
    .flow-tab {
      column-gap: 8px;
      padding: 22px 17px;
    }
    .tab-title {
      font-size: 14px;
    }
    .flow-steps {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .flow-step {
      min-height: 107px;
    }
    .flow-step:nth-child(3) {
      padding-left: 0;
      border-left: 0;
    }
    .flow-step:nth-child(n + 3) {
      border-top: 1px solid var(--line);
    }
    .case-card {
      padding-right: 20px;
      padding-left: 20px;
    }
    .case-card h3 {
      min-height: 57px;
      font-size: 23px;
    }
    .case-art {
      height: 148px;
    }
    .case-result {
      font-size: 15px;
    }
  }
  @media (max-width: 800px) {
    :root {
      --gutter: 26px;
    }
    .site-header {
      min-height: 69px;
    }
    .brand {
      font-size: 23px;
    }
    .nav-links {
      gap: 16px;
    }
    .nav-links a {
      font-size: 11px;
    }
    .header-tools {
      margin-left: 0;
    }
    .hero {
      padding-top: 22px;
    }
    .hero-layout {
      grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.9fr);
      gap: 0;
      min-height: 443px;
      padding-top: 25px;
    }
    .hero h1 {
      font-size: 54px;
    }
    html[lang^="zh"] .hero h1 {
      font-size: 47px;
    }
    .hero-description {
      font-size: 12px;
    }
    .hero-visual {
      height: 330px;
    }
    .hero-actions {
      gap: 12px;
    }
    .hero-actions .button.secondary {
      min-height: 35px;
      padding: 5px 0;
      border-color: transparent;
    }
    .hero-foot > div {
      padding: 18px 15px;
    }
    .hero-foot span {
      font-size: 11px;
    }
    .coordinate {
      display: none;
    }
    .visual-label {
      font-size: 8px;
    }
    .map-caption {
      font-size: 8px;
    }
    .motion-toggle {
      font-size: 8px;
    }
    .capabilities,
    .method {
      padding-top: 75px;
      padding-bottom: 75px;
    }
    .section-heading {
      grid-template-columns: minmax(0, 1fr);
      gap: 17px;
      margin-bottom: 32px;
    }
    .section-heading h2 {
      max-width: 590px;
      font-size: 45px;
    }
    .section-heading > p:not(.eyebrow) {
      max-width: 490px;
    }
    .workflow-console {
      grid-template-columns: minmax(0, 1fr);
    }
    .workflow-tabs {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      border-right: 0;
      border-bottom: 1px solid var(--line);
    }
    .flow-tab {
      min-height: 106px;
      padding: 20px;
    }
    .flow-tab + .flow-tab {
      border-top: 0;
    }
    .flow-tab:nth-child(2n) {
      border-left: 1px solid var(--line);
    }
    .flow-tab:nth-child(n + 3) {
      border-top: 1px solid var(--line);
    }
    .workflow-panel {
      padding: 30px;
    }
    .flow-steps {
      grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .flow-step {
      min-height: 120px;
      padding-right: 12px;
      padding-left: 12px;
    }
    .flow-step:nth-child(3) {
      padding-left: 12px;
      border-left: 1px solid var(--line);
    }
    .flow-step:nth-child(n + 3) {
      border-top: 0;
    }
    .evidence {
      padding-top: 75px;
      padding-bottom: 75px;
    }
    .case-card {
      padding-right: 14px;
      padding-left: 14px;
    }
    .case-card h3 {
      min-height: 54px;
      font-size: 21px;
    }
    .case-art {
      height: 128px;
      margin-top: 20px;
    }
    .case-result {
      font-size: 14px;
    }
    .case-card > p:not(.case-type):not(.case-result):not(.case-state) {
      font-size: 11px;
    }
    .case-state {
      font-size: 8px;
    }
    .method-grid article {
      padding-right: 20px;
    }
    .method-grid article + article {
      padding-left: 20px;
    }
    .method-grid h3 {
      font-size: 22px;
    }
    .contact {
      padding-top: 64px;
      padding-bottom: 70px;
    }
    .contact h2 {
      font-size: 56px;
    }
    .footer-top {
      gap: 24px;
    }
    .footer-top > p {
      max-width: 260px;
      font-size: 10px;
    }
  }
  @media (max-width: 620px) {
    :root {
      --gutter: 22px;
    }
    section[id],
    main[id] {
      scroll-margin-top: 84px;
    }
    .site-header {
      min-height: 66px;
      gap: 16px;
    }
    .brand {
      gap: 10px;
      font-size: 22px;
    }
    .brand-symbol {
      width: 24px;
      height: 24px;
    }
    .header-tools {
      gap: 12px;
      margin-left: auto;
    }
    .language-switch button {
      min-width: 28px;
      min-height: 29px;
      font-size: 9px;
    }
    .menu-toggle {
      display: inline-flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 5px;
      width: 34px;
      min-height: 36px;
      padding: 7px;
      border: 1px solid var(--line);
      color: var(--paper);
      background: transparent;
      font-size: 11px;
    }
    .menu-toggle > span {
      display: block;
      width: 17px;
      height: 1px;
      background: currentColor;
      transition: transform 180ms ease;
    }
    .site-header.menu-open .menu-toggle > span:first-child {
      transform: translateY(3px) rotate(45deg);
    }
    .site-header.menu-open .menu-toggle > span:last-child {
      transform: translateY(-3px) rotate(-45deg);
    }
    .menu-toggle svg {
      width: 17px;
      height: 17px;
    }
    .nav-links {
      position: absolute;
      top: 100%;
      right: 0;
      left: 0;
      display: none;
      flex-direction: column;
      align-items: stretch;
      gap: 0;
      margin: 0;
      padding: 13px var(--gutter) 18px;
      border-bottom: 1px solid #536744;
      background: #141b13;
      box-shadow: 0 16px 30px rgb(0 0 0 / 20%);
    }
    .site-header.menu-open .nav-links {
      display: flex;
    }
    .nav-links a {
      padding: 15px 0;
      border-bottom: 1px solid var(--line);
      font-size: 15px;
    }
    .nav-links a:last-child {
      border-bottom: 0;
    }
    .nav-links a::after {
      display: none;
    }
    .hero {
      padding-top: 24px;
    }
    .hero-topline .eyebrow {
      font-size: 9px;
      letter-spacing: 0.055em;
    }
    .hero-layout {
      display: flex;
      flex-direction: column;
      align-items: stretch;
      gap: 17px;
      min-height: 0;
      padding: 29px 0 28px;
    }
    .hero-copy {
      padding: 0;
    }
    .hero h1 {
      max-width: 510px;
      font-size: clamp(49px, 11.7vw, 70px);
      line-height: 1.01;
      letter-spacing: -0.063em;
    }
    html[lang^="zh"] .hero h1 {
      max-width: 470px;
      font-size: clamp(42px, 10.7vw, 62px);
      line-height: 1.18;
    }
    .hero-description {
      max-width: 440px;
      margin-top: 21px;
      font-size: 14px;
      line-height: 1.75;
    }
    html[lang^="zh"] .hero-description {
      font-size: 14px;
      line-height: 1.9;
    }
    .hero-actions {
      gap: 19px;
      margin-top: 24px;
    }
    .hero-actions .button {
      min-height: 47px;
      padding: 13px 15px;
      font-size: 11px;
    }
    .hero-actions .button.secondary {
      min-height: 38px;
      padding: 5px 0;
    }
    .hero-visual {
      height: 260px;
      margin-top: 5px;
    }
    #system-map {
      width: 100%;
      max-width: 490px;
      height: 100%;
      top: 0;
      left: 50%;
      transform: translateX(-50%);
    }
    .visual-label {
      top: 0;
      font-size: 8px;
    }
    .map-caption {
      bottom: -10px;
      font-size: 7px;
    }
    .map-caption > span {
      max-width: none;
    }
    .map-demo {
      bottom: 25px;
      font-size: 7px;
    }
    .motion-toggle {
      min-height: 29px;
      font-size: 8px;
    }
    .hero-foot {
      grid-template-columns: minmax(0, 1fr);
    }
    .hero-foot > div {
      display: grid;
      grid-template-columns: 93px minmax(0, 1fr);
      align-items: baseline;
      gap: 13px;
      padding: 13px 0;
    }
    .hero-foot > div + div {
      border-left: 0;
      border-top: 1px solid var(--line);
    }
    .hero-foot small {
      font-size: 8px;
    }
    .hero-foot span {
      font-size: 13px;
    }
    .capabilities,
    .method {
      padding-top: 65px;
      padding-bottom: 65px;
    }
    .section-heading {
      gap: 17px;
      margin-bottom: 28px;
    }
    .section-heading h2 {
      font-size: clamp(35px, 9.2vw, 46px);
      line-height: 1.08;
    }
    .section-heading > p:not(.eyebrow) {
      font-size: 14px;
      line-height: 1.75;
    }
    .eyebrow {
      font-size: 9px;
    }
    .workflow-tabs {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .flow-tab {
      grid-template-columns: 17px minmax(0, 1fr);
      column-gap: 7px;
      min-height: 118px;
      padding: 17px 13px;
    }
    .tab-number {
      font-size: 8px;
    }
    .tab-title {
      font-size: 14px;
      line-height: 1.3;
    }
    .tab-subtitle {
      font-size: 11px;
    }
    .tab-arrow {
      display: none;
    }
    .workflow-panel {
      padding: 23px 19px;
    }
    .panel-top {
      gap: 10px;
      margin-bottom: 21px;
    }
    .panel-label {
      font-size: 8px;
    }
    .status-chip {
      padding: 4px 6px;
      font-size: 7px;
    }
    .workflow-panel h3 {
      font-size: 28px;
      line-height: 1.14;
    }
    #flow-description {
      margin-top: 13px;
      font-size: 14px;
    }
    .flow-steps {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      margin-top: 24px;
      margin-bottom: 23px;
    }
    .flow-step {
      gap: 8px;
      min-height: 117px;
      padding: 15px 12px;
    }
    .flow-step:nth-child(3) {
      padding-left: 0;
      border-left: 0;
    }
    .flow-step:nth-child(n + 3) {
      border-top: 1px solid var(--line);
    }
    .flow-step strong {
      font-size: 13px;
    }
    .flow-step small {
      font-size: 12px;
    }
    .flow-bottom {
      grid-template-columns: minmax(0, 1fr);
      gap: 20px;
    }
    .flow-bottom p {
      font-size: 14px;
    }
    .panel-note {
      font-size: 12px;
    }
    .evidence {
      padding-top: 63px;
      padding-bottom: 61px;
    }
    .case-grid {
      grid-template-columns: minmax(0, 1fr);
    }
    .case-card,
    .case-card:first-child,
    .case-card:last-child {
      padding: 26px 0 30px;
    }
    .case-card + .case-card {
      border-top: 1px solid var(--dark-line);
      border-left: 0;
    }
    .case-card:last-child {
      padding-bottom: 0;
    }
    .case-type {
      margin-bottom: 12px;
      font-size: 9px;
    }
    .case-card h3 {
      min-height: 0;
      font-size: 29px;
    }
    .case-art {
      height: 181px;
      margin: 22px 0 20px;
    }
    .case-result {
      font-size: 18px;
    }
    .case-card > p:not(.case-type):not(.case-result):not(.case-state) {
      font-size: 14px;
    }
    .case-state {
      padding-top: 20px;
      font-size: 11px;
    }
    .method-grid {
      grid-template-columns: minmax(0, 1fr);
    }
    .method-grid article,
    .method-grid article + article {
      display: grid;
      grid-template-columns: 36px minmax(0, 1fr);
      column-gap: 18px;
      padding: 27px 0;
      border-left: 0;
    }
    .method-grid article + article {
      border-top: 1px solid var(--line);
    }
    .method-number {
      grid-column: 1;
      grid-row: 1 / 3;
      margin-bottom: 0;
      padding-top: 4px;
      font-size: 11px;
    }
    .method-grid h3 {
      grid-column: 2;
      margin-bottom: 11px;
      font-size: 24px;
    }
    .method-grid p {
      grid-column: 2;
      max-width: none;
      font-size: 14px;
    }
    .principles {
      align-items: flex-start;
      flex-direction: column;
      gap: 13px;
      margin-top: 0;
    }
    .principles span {
      font-size: 9px;
    }
    .contact {
      gap: 23px;
      padding-top: 61px;
      padding-bottom: 66px;
    }
    .contact h2 {
      font-size: clamp(40px, 11vw, 60px);
      line-height: 1.08;
    }
    html[lang^="zh"] .contact h2,
    html[lang^="zh"] .section-heading h2 {
      width: 100%;
      max-width: none;
    }
    .contact > p:not(.eyebrow) {
      font-size: 14px;
      line-height: 1.8;
    }
    .contact-symbol {
      display: none;
    }
    .contact-note {
      font-size: 12px;
    }
    .contact-actions {
      width: 100%;
      margin-top: 4px;
    }
    .contact-actions .button {
      flex: 1 1 100%;
    }
    footer {
      padding-top: 31px;
    }
    .footer-top {
      align-items: flex-start;
      flex-wrap: wrap;
      gap: 18px 22px;
      padding-bottom: 26px;
    }
    .footer-top .brand {
      font-size: 22px;
    }
    .footer-top > p {
      flex: 1 1 160px;
      max-width: none;
      font-size: 10px;
    }
    .footer-links {
      flex: 1 1 100%;
      margin-left: 0;
      font-size: 11px;
    }
    .footer-note {
      font-size: 11px;
      line-height: 1.8;
    }
    .footer-bottom {
      align-items: flex-start;
      flex-direction: column;
      gap: 11px;
      font-size: 8px;
    }
    #brief-dialog {
      width: calc(100% - 24px);
      max-height: calc(100dvh - 24px);
      padding: 23px 20px;
    }
    .dialog-header {
      gap: 14px;
    }
    .dialog-header h2 {
      font-size: 28px;
    }
    #brief-form select,
    #brief-form textarea,
    #brief-form input {
      font-size: 16px;
    }
    .form-note {
      font-size: 12px;
    }
    .dialog-actions {
      gap: 10px;
    }
    .dialog-actions .button {
      gap: 15px;
      padding-right: 15px;
      padding-left: 15px;
      font-size: 11px;
    }
  }
  @media (max-width: 359px) {
    :root {
      --gutter: 17px;
    }
    .hero h1 {
      font-size: 45px;
    }
    html[lang^="zh"] .hero h1 {
      font-size: 39px;
    }
    .hero-actions {
      gap: 12px;
    }
    .hero-actions .button {
      font-size: 10px;
    }
    .flow-tab {
      padding-right: 10px;
      padding-left: 10px;
    }
    .tab-title {
      font-size: 12px;
    }
    .workflow-panel {
      padding-right: 16px;
      padding-left: 16px;
    }
    .panel-top {
      align-items: flex-start;
      flex-direction: column;
    }
  }
}

@layer motion {
  @keyframes orbit-turn {
    to {
      transform: rotate(360deg);
    }
  }
  @keyframes signal-flow {
    to {
      stroke-dashoffset: -88;
    }
  }
  #system-map .orbit {
    transform-box: view-box;
    transform-origin: 310px 260px;
    animation: orbit-turn 70s linear infinite;
  }
  #system-map .orbit:nth-child(even) {
    animation-direction: reverse;
    animation-duration: 94s;
  }
  #system-map .signal {
    stroke-dasharray: 4 18;
    animation: signal-flow 9s linear infinite;
  }
  body.motion-paused #system-map .orbit,
  body.motion-paused #system-map .signal {
    animation-play-state: paused;
  }
  @media (prefers-reduced-motion: reduce) {
    html {
      scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
      animation: none !important;
      transition: none !important;
    }
  }
}
