/* ==========================================================================
   InnoLink stylesheet
   Version: 1.0.0
   Date: 2026-11-05
   Owner: Ingo Neumann, InnoLink
   Reference: https://innolink.trade (live, read 2026-11-05)

   What this file is: the design system of innolink.trade, extracted from the
   live page and hardened. The class names match the live markup, so adoption is
   a single change: remove the <style> block from index.html and link this file.
   No markup rewrite is needed for v1.

   Order of the file:
     1. @font-face
     2. @layer declaration (reset, tokens, base, layout, components, utilities)
     3. Tokens: primitive, semantic, legacy aliases, type scale, spacing, motion
     4. Reset
     5. Base
     6. Layout
     7. Components
     8. Utilities
     9. Preference and media layers (reduced motion, contrast, print, dark)

   Rules for anyone editing this file:
     - Components consume semantic tokens. Raw hex values appear only in the
       primitive block.
     - No @import. Fonts are declared here, the page preloads them.
     - No !important outside the utility layer.
     - Every new component states its own container or media behaviour.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Fonts
   Inter variable and JetBrains Mono variable, served from /fonts.
   font-display: swap keeps text visible during load. The two files are
   preloaded in <head> so the request is not discovered late.
   -------------------------------------------------------------------------- */

/* tokens:begin fontface, generated from standards/brand/tokens.json */
@font-face {
  font-family: "InnoSans";
  src: url("/fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "InnoMono";
  src: url("/fonts/jetbrains-mono-var.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

/* tokens:end fontface */

/* The fallback face that stands in while InnoSans loads, or when it cannot.
   size-adjust is the ratio of Inter's average lowercase advance to Arial's,
   calibrated in the browser on five representative strings from this page: the
   fallback ran 6.46 percent wide at 100 percent, so 106.46 makes the two faces
   occupy the same line. The ascent and descent are Inter's own, from the font. Without these three numbers the swap shifts every line of text,
   which is the layout shift the page used to take for granted. */
@font-face {
  font-family: "InnoSans Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 106.46%;
  ascent-override: 96.88%;
  descent-override: 24.12%;
  line-gap-override: 0%;
}

/* --------------------------------------------------------------------------
   2. Layer order
   Declared once, at the top. Order decides precedence, specificity decides
   inside a layer. A later layer always wins, so a component rule never needs
   to out-specify a utility rule by accident.
   -------------------------------------------------------------------------- */

/* `responsive` sits last on purpose: a media-query override must outrank the
   component rule it rewrites, and layer order decides that, not specificity. */
@layer reset, tokens, base, layout, components, utilities, responsive;

/* --------------------------------------------------------------------------
   3a. Tokens: primitive
   Plain values with no meaning attached. Nothing in the site consumes these
   directly except the semantic layer below.
   -------------------------------------------------------------------------- */

@layer tokens {
  :root {
    /* tokens:begin color, generated from standards/brand/tokens.json */
    --paper-100: #fffefb;
    --paper-200: #f6f5f1;
    --paper-300: #e8e5dc;
    --ink-900: #0d0e10;
    --ink-800: #101010;
    --ink-700: #2c2d2a;
    --ink-600: #4a4d46;
    --line-200: #dedbd2;
    --line-400: #86847a;
    --line-500: #b9b6ac;
    --green-600: #1f6f4a;
    --green-700: #17553a;
    --green-800: #0f4a2e;
    --green-glow: #07c160;
    /* tokens:end color */

    /* ----------------------------------------------------------------------
       3b. Tokens: semantic
       Named by role. A theme change touches this block only.
       ---------------------------------------------------------------------- */
    --bg: var(--paper-200);
    --surface: color-mix(in srgb, var(--paper-100) 80%, transparent);
    --surface-solid: var(--paper-100);
    --surface-sunk: var(--paper-300);
    --surface-inverse: var(--ink-900);

    --text: var(--ink-800);
    --text-soft: var(--ink-700);
    --text-muted: var(--ink-600);
    --text-on-inverse: var(--paper-200);
    --text-on-inverse-muted: var(--line-500);

    --rule: var(--line-200);
    --rule-strong: var(--line-400);

    /* Transparent surfaces get their own token, so a theme swap never paints
       light paper onto a dark page. */
    --shell-tint: var(--paper-200);
    --header-tint: var(--paper-200);
    --scrim: var(--paper-200);
    --btn-ghost-bg: var(--paper-200);

    --brand: var(--green-600);
    --brand-strong: var(--green-700);
    --brand-deep: var(--green-800);
    --brand-glow: var(--green-glow);

    --focus-ring: var(--green-700);
    --focus-ring-width: 2px;
    --focus-ring-offset: 3px;

    /* ----------------------------------------------------------------------
       3c. Legacy aliases
       The names used by the live page. Kept so the extracted rules run
       unchanged. New code uses the semantic names above.
       ---------------------------------------------------------------------- */
    --paper: var(--bg);
    --ink: var(--text);
    --ink-soft: var(--text-soft);
    --muted: var(--text-muted);
    --line: var(--rule);
    --card: var(--surface-solid);
    --accent: var(--brand);
    --accent-mid: var(--brand-strong);
    --accent-deep: var(--brand-deep);
    --accent-text: var(--brand-strong);
    --dark: var(--surface-inverse);

    /* ----------------------------------------------------------------------
       3d. Type
       Fluid scale. Each step is clamp(min, preferred, max) with the preferred
       value built from rem plus vw, so zoom still works. The ratio between the
       min and the max of every step stays under 2.5, which keeps WCAG 1.4.4
       (resize text to 200%) satisfiable.
       ---------------------------------------------------------------------- */
    /* tokens:begin fonts, generated from standards/brand/tokens.json */
    --sans: "InnoSans", "InnoSans Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    --mono: "InnoMono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    /* tokens:end fonts */

    --step--1: clamp(0.8125rem, 0.79rem + 0.11vw, 0.875rem); /* 13 to 14 */
    --step-0: clamp(1rem, 0.95rem + 0.25vw, 1.125rem); /* 16 to 18 */
    --step-1: clamp(1.1875rem, 1.1rem + 0.44vw, 1.375rem); /* 19 to 22 */
    --step-2: clamp(1.375rem, 1.2rem + 0.87vw, 1.75rem); /* 22 to 28 */
    --step-3: clamp(1.75rem, 1.42rem + 1.65vw, 2.5rem); /* 28 to 40 */
    --step-4: clamp(2.125rem, 1.6rem + 2.6vw, 3.25rem); /* 34 to 52 */
    --step-5: clamp(2.5rem, 1.55rem + 4.7vw, 4.75rem); /* 40 to 76 */

    --leading-tight: 0.98;
    --leading-heading: 1.08;
    --leading-body: 1.58;
    --tracking-display: -0.03em;
    --tracking-heading: -0.02em;
    --tracking-label: 0.08em;

    /* ----------------------------------------------------------------------
       3e. Space, size, shape
       ---------------------------------------------------------------------- */
    --space-3xs: 0.25rem;
    --space-2xs: 0.5rem;
    --space-xs: 0.75rem;
    --space-s: 1rem;
    --space-m: 1.5rem;
    --space-l: 2rem;
    --space-xl: clamp(2rem, 1.5rem + 2vw, 3rem);
    --space-2xl: clamp(3rem, 2rem + 4vw, 5rem);

    --pad: clamp(1.25rem, 4vw, 2.75rem); /* legacy name, still used by .shell */
    --gutter: 1rem;
    --block-gap: clamp(3.5rem, 2.5rem + 5vw, 6.5rem);
    /* Hooks a component can override without a new class. */
    --flow-space: 1em;
    --cluster-gap: var(--space-2xs);

    --shell-max: 72.5rem; /* 1160px */
    --measure: 68ch;
    --measure-narrow: 46ch;

    /* Component geometry scale. Exact rem values, so browser zoom scales them.
       Layout rhythm uses the named --space-* tokens; component detail uses
       this numeric primitive scale. */
    /* One weight for every rule, border and hairline in the file. Raise it to
       0.5px on high density screens, or lower it, in this one place. */
    --hairline: 1px;
    --dot-size: calc(var(--hairline) * 3);

    --size-1: 0.125rem; /* 2 */
    --size-2: 0.25rem; /* 4 */
    --size-3: 0.375rem; /* 6 */
    --size-4: 0.5rem; /* 8 */
    --size-5: 0.625rem; /* 10 */
    --size-6: 0.75rem; /* 12 */
    --size-7: 0.875rem; /* 14 */
    --size-8: 1rem; /* 16 */
    --size-9: 1.25rem; /* 20 */
    --size-10: 1.5rem; /* 24 */
    --size-11: 1.75rem; /* 28 */
    --size-12: 2rem; /* 32 */
    --size-13: 2.25rem; /* 36 */
    --size-14: 2.75rem; /* 44 */

    --radius: 0.125rem;
    --radius-sm: 0.1875rem; /* 3 */
    --radius-m: 0.25rem;
    --radius-pill: 999px;
    --brand-line: 0.125rem;
    --header-h: 4rem;
    --target-min: var(--size-14); /* 44px, touch target floor */

    /* Breakpoints. CSS cannot read a custom property inside @media, so these
       document the two values and the media queries repeat them in rem. */
    --bp-mobile: 45rem; /* 720px */
    --bp-tablet: 61.25rem; /* 980px */

    /* ----------------------------------------------------------------------
       3f. Motion
       ---------------------------------------------------------------------- */
    --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
    --dur-fast: 150ms;
    --dur-base: 200ms;
    --dur-slow: 640ms;

    /* ----------------------------------------------------------------------
       3g. Elevation and layering
       ---------------------------------------------------------------------- */
    --z-bg: 0;
    --z-base: 1;
    --z-header: 20;
    --z-overlay: 40;
    --z-skip: 60;
  }
}

/* --------------------------------------------------------------------------
   4. Reset
   Small and opinionated. It removes browser defaults that fight the layout,
   nothing more.
   -------------------------------------------------------------------------- */

@layer reset {
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

  * {
    margin: 0;
  }

  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scrollbar-gutter: stable;
  }

  body {
    min-height: 100dvh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
  }

  img,
  picture,
  video,
  canvas,
  svg {
    display: block;
    max-width: 100%;
  }

  input,
  button,
  textarea,
  select {
    font: inherit;
    color: inherit;
  }

  button {
    background: none;
    border: 0;
    cursor: pointer;
  }

  h1,
  h2,
  h3,
  h4 {
    text-wrap: balance;
  }

  p,
  li {
    text-wrap: pretty;
  }

  ul[class],
  ol[class] {
    list-style: none;
    padding: 0;
  }

  :where(a) {
    color: inherit;
  }
}

/* --------------------------------------------------------------------------
   5. Base
   -------------------------------------------------------------------------- */

@layer base {
  html {
    background: var(--bg);
    scroll-behavior: smooth;
    /* Anchors land below the sticky header instead of under it. */
    scroll-padding-top: calc(var(--header-h) + var(--space-s));
  }

  body {
    position: relative;
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: var(--step-0);
    line-height: var(--leading-body);
    font-synthesis-weight: none;
    overflow-x: hidden;
  }

  :root {
    accent-color: var(--brand);
    scrollbar-color: var(--rule-strong) transparent;
  }

  :focus-visible {
    outline: var(--focus-ring-width) solid var(--focus-ring);
    outline-offset: var(--focus-ring-offset);
    border-radius: var(--radius);
  }

  /* A two tone ring stays visible on paper, on cards and on the dark panel. */
  .panel.contact :focus-visible {
    outline-color: var(--text-on-inverse);
  }

  ::placeholder {
    color: var(--text-muted);
    opacity: 1;
  }

  ::selection {
    background: var(--brand-strong);
    color: var(--paper);
  }

  ::target-text {
    background: color-mix(in srgb, var(--brand) 20%, transparent);
  }

  h1,
  h2,
  h3 {
    font-weight: 600;
    color: var(--text);
  }

  h1 {
    font-size: var(--step-5);
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-display);
    max-width: 16ch;
  }

  h1 em {
    font-style: normal;
    color: var(--accent-mid);
  }

  h2 {
    font-size: var(--step-3);
    line-height: var(--leading-heading);
    letter-spacing: var(--tracking-heading);
    max-width: 22ch;
  }

  h3 {
    font-size: var(--step-1);
    letter-spacing: -0.01em;
  }

  p {
    color: var(--text-soft);
  }

  a {
    color: inherit;
    text-underline-offset: 0.18em;
    text-decoration-thickness: var(--hairline);
  }

  /* Long identifiers, mail addresses and Chinese entity names must not
     overflow their container. */
  p,
  h1,
  h2,
  h3,
  li {
    overflow-wrap: break-word;
  }
}

/* --------------------------------------------------------------------------
   6. Layout
   -------------------------------------------------------------------------- */

@layer layout {
  .shell {
    max-width: var(--shell-max);
    margin-inline: auto;
    padding-inline: var(--pad);
  }

  main.shell {
    position: relative;
    z-index: var(--z-base);
    overflow: hidden;
    padding: clamp(1.375rem, 2.4vw, 2.125rem) var(--pad) clamp(1.625rem, 3vw, 2.5rem);
    background: radial-gradient(
        58% 42% at 82% 6%,
        color-mix(in srgb, var(--brand) 10%, transparent),
        transparent 68%
      ),
      color-mix(in srgb, var(--shell-tint) 66%, transparent);
    border: var(--hairline) solid var(--rule);
  }

  /* Paper grain. One inline SVG, no extra request, decorative only. */
  main.shell::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  }

  section {
    margin-block-end: var(--block-gap);
    scroll-margin-top: calc(var(--header-h) + var(--space-s));
  }

  .bento {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gutter);
    row-gap: clamp(1.25rem, 3vw, 3rem);
  }

  .split {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: var(--gutter);
  }

  .hero {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: clamp(1.5rem, 3.6vw, 3rem);
    align-items: center;
    padding-block: clamp(3rem, 7vw, 5.75rem) clamp(2rem, 4vw, 3.25rem);
  }

  /* Vertical rhythm for prose blocks without per-element margins. */
  .flow > * + * {
    margin-block-start: var(--flow-space, 1em);
  }

  .cluster {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--cluster-gap, var(--space-2xs));
  }
}

/* --------------------------------------------------------------------------
   7. Components
   -------------------------------------------------------------------------- */

@layer components {
  /* Background photograph --------------------------------------------------- */
  .bgpic {
    position: fixed;
    inset: 0;
    z-index: var(--z-bg);
    pointer-events: none;
  }

  .bgpic img {
    inline-size: 100%;
    block-size: 100%;
    object-fit: cover;
  }

  /* A single scrim replaces the stack of text-shadows the page used to need.
     Text keeps its contrast against whatever photograph sits behind it. */
  .bgpic::after {
    content: "";
    position: absolute;
    inset: 0;
    background: color-mix(in srgb, var(--scrim) 34%, transparent);
  }

  /* Top bar ----------------------------------------------------------------- */
  .top {
    position: sticky;
    inset-block-start: 0;
    z-index: var(--z-header);
    background: color-mix(in srgb, var(--header-tint) 90%, transparent);
    backdrop-filter: blur(var(--size-5)) saturate(120%);
    border-block-end: var(--hairline) solid var(--rule);
  }

  .top .shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-s);
    min-block-size: var(--header-h);
  }

  .brand {
    display: flex;
    align-items: center;
    gap: var(--size-5);
    text-decoration: none;
  }

  .brand svg {
    flex: none;
  }

  .mark {
    font-weight: 650;
    letter-spacing: -0.02em;
    font-size: 1.0625rem;
  }

  .nav,
  nav[aria-label],
  .top nav {
    display: flex;
    align-items: center;
    gap: clamp(0.875rem, 2vw, 1.5rem);
  }

  .nav a,
  .top nav a {
    display: inline-flex;
    align-items: center;
    /* 24px minimum target width, 44px height for touch. WCAG 2.2 SC 2.5.8. */
    min-block-size: var(--target-min);
    padding-inline: var(--size-1);
    color: var(--text-soft);
    text-decoration: none;
    font-size: 0.90625rem;
  }

  .nav a:hover,
  .top nav a:hover {
    color: var(--accent-text);
  }

  .nav a[aria-current="page"],
  .top nav a[aria-current="page"] {
    color: var(--text);
    box-shadow: inset 0 calc(var(--hairline) * -2) 0 var(--brand);
  }

  /* Mono label -------------------------------------------------------------- */
  .mono,
  .eyebrow,
  .num,
  .credit,
  .portcap,
  .entity {
    font-family: var(--mono);
    font-feature-settings: "tnum" 1;
    letter-spacing: var(--tracking-label);
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 500;
  }

  .mono {
    font-size: 0.75rem;
  }

  .eyebrow {
    display: flex;
    align-items: center;
    gap: var(--size-5);
    margin-block-end: var(--space-m);
    font-size: 0.75rem;
  }

  .eyebrow::before {
    content: "";
    inline-size: var(--size-11);
    block-size: var(--hairline);
    background: currentColor;
    opacity: 0.5;
  }

  /* Hero -------------------------------------------------------------------- */
  .hero-copy {
    position: relative;
  }

  .hero p.lede,
  .lede {
    font-size: var(--step-1);
    line-height: 1.45;
    color: var(--text-soft);
    max-width: var(--measure-narrow);
    margin-block: 0 var(--space-l);
  }

  .hero-globe {
    margin: 0;
  }

  .hero-globe canvas,
  .globe {
    inline-size: 100%;
    block-size: clamp(18.75rem, 33vw, 27.5rem);
  }

  .hero-globe noscript img {
    inline-size: 100%;
    block-size: auto;
  }

  /* Buttons ----------------------------------------------------------------- */
  .cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2xs);
  }

  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--size-4);
    min-block-size: var(--target-min);
    padding: 0.8125rem var(--size-9);
    background: var(--ink);
    color: var(--paper);
    border: var(--hairline) solid transparent;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: transform var(--dur-fast) ease, background var(--dur-fast) ease,
      color var(--dur-fast) ease, border-color var(--dur-fast) ease;
  }

  .btn:hover {
    background: var(--accent-deep);
    transform: translateY(calc(var(--size-1) * -1));
  }

  .btn:active {
    transform: none;
  }

  .btn.ghost {
    background: color-mix(in srgb, var(--btn-ghost-bg) 78%, transparent);
    color: var(--ink);
    border-color: var(--rule-strong);
  }

  .btn.ghost:hover {
    background: transparent;
    border-color: var(--ink);
  }

  /* Notice strip ------------------------------------------------------------ */
  .strip {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2xs) var(--space-m);
    padding: var(--size-7) 1.125rem;
    margin-block-end: var(--block-gap);
    background: var(--surface);
    border: var(--hairline) solid var(--rule);
    border-radius: var(--radius-m);
    font-size: var(--step--1);
    color: var(--text-soft);
  }

  .strip span {
    display: inline-flex;
    align-items: center;
    gap: var(--size-5);
  }

  .strip span::after {
    content: "";
    inline-size: var(--dot-size);
    block-size: var(--dot-size);
    border-radius: 50%;
    background: var(--rule-strong);
  }

  .strip span:last-child::after {
    display: none;
  }

  /* Photo band -------------------------------------------------------------- */
  .band,
  .portband {
    margin-block-end: var(--block-gap);
  }

  .band picture,
  .portband picture {
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface-sunk);
  }

  .band img,
  .portband img {
    inline-size: 100%;
    block-size: clamp(13.75rem, 32vw, 25rem);
    object-fit: cover;
  }

  .credit,
  .portcap {
    margin-block-start: var(--size-5);
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
  }

  .portcap {
    display: flex;
    justify-content: space-between;
    gap: var(--space-xs);
  }

  /* Section head ------------------------------------------------------------ */
  .head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--size-11);
    margin-block-end: var(--space-xl);
  }

  /* When there is no supporting paragraph the heading keeps the grid anyway,
     so the baseline does not jump between sections. */
  .head:not(:has(p)) {
    justify-content: flex-start;
  }

  .head p {
    margin: 0;
    color: var(--muted);
    font-size: var(--step--1);
    max-width: 36ch;
  }

  /* Cards ------------------------------------------------------------------- */
  .card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--space-2xs);
    grid-column: span 4;
    padding: var(--size-10) var(--size-10) 1.625rem;
    background: var(--surface);
    border: var(--hairline) solid var(--rule);
    border-radius: var(--radius);
    overflow: hidden;
    container-type: inline-size;
    transition: transform var(--dur-base) ease, border-color var(--dur-base) ease;
  }

  .card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    block-size: var(--brand-line);
    background: linear-gradient(90deg, var(--accent), transparent 70%);
    opacity: 0;
    transition: opacity var(--dur-base) ease;
  }

  .card:hover {
    transform: translateY(calc(var(--size-1) * -1));
    border-color: var(--rule-strong);
  }

  .card:hover::before {
    opacity: 1;
  }

  /* Hover is an enhancement, never the only signal. */
  .card:focus-within {
    border-color: var(--rule-strong);
  }

  .card:focus-within::before {
    opacity: 1;
  }

  .card.wide {
    grid-column: span 6;
  }

  .card .num {
    font-size: 0.6875rem;
  }

  .card h3 {
    font-size: var(--step-1);
    margin-block-start: var(--size-1);
  }

  .card p {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.9375rem;
    line-height: 1.55;
  }

  /* The card reacts to its own width, so the same component works in a wide
     grid slot and in a narrow sidebar. */
  @container (min-width: 30rem) {
    .card {
      padding: var(--size-11) 1.875rem 1.875rem;
    }
  }

  /* Panels ------------------------------------------------------------------ */
  .panel {
    border-radius: var(--radius);
    padding: clamp(1.5rem, 3.4vw, 2.375rem);
  }

  .panel h2 {
    margin-block-end: var(--size-7);
  }

  .panel p {
    margin-block: 0 var(--size-6);
    color: var(--text-soft);
  }

  .panel.about {
    background: color-mix(in srgb, var(--surface-solid) 86%, transparent);
    border: var(--hairline) solid var(--rule);
  }

  .panel.contact {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.625rem;
    overflow: hidden;
    background: var(--surface-inverse);
    color: var(--text-on-inverse);
  }

  .panel.contact h2 {
    color: var(--text-on-inverse);
  }

  .panel.contact p {
    color: var(--text-on-inverse-muted);
  }

  .panel.contact::after {
    content: "";
    position: absolute;
    inset: auto -20% -60% 40%;
    block-size: 20rem;
    background: radial-gradient(
      closest-side,
      color-mix(in srgb, var(--brand-glow) 45%, transparent),
      transparent 70%
    );
    pointer-events: none;
  }

  .panel.contact .btn {
    align-self: flex-start;
    position: relative;
    z-index: 1;
    background: var(--paper);
    color: var(--ink);
  }

  .panel.contact .btn:hover {
    background: var(--accent-deep);
    color: var(--paper);
  }

  .entity {
    margin-block-start: var(--space-m);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    /* Chinese entity name: keep the characters upright and readable. */
    text-transform: none;
    line-height: 1.5;
  }

  /* Footer ------------------------------------------------------------------ */
  .foot,
  footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--space-s);
    padding-block: var(--size-10) var(--target-min);
    border-block-start: var(--hairline) solid var(--rule);
    color: var(--text-muted);
    font-size: var(--step--1);
  }

  /* Form fields (new in v1, for the requirement form) ------------------------ */
  .field {
    display: grid;
    gap: var(--size-3);
  }

  .field > label {
    font-family: var(--mono);
    font-size: 0.6875rem;
    letter-spacing: var(--tracking-label);
    text-transform: uppercase;
    color: var(--text-muted);
  }

  .field > input,
  .field > textarea,
  .field > select {
    min-block-size: var(--target-min);
    padding: var(--size-5) var(--size-6);
    background: var(--surface-solid);
    border: var(--hairline) solid var(--rule-strong);
    border-radius: var(--radius);
    font-size: var(--step-0);
    transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
  }

  .field > textarea {
    min-block-size: 8rem;
    resize: vertical;
  }

  .field > input:hover,
  .field > textarea:hover,
  .field > select:hover {
    border-color: var(--ink);
  }

  .field > input,
  .field > textarea,
  .field > select {
    caret-color: var(--brand);
  }

  .field > input:focus-visible,
  .field > textarea:focus-visible,
  .field > select:focus-visible {
    border-color: var(--focus-ring);
    outline-offset: var(--hairline);
  }

  .field:has(input[aria-invalid="true"]) > label {
    color: var(--accent-text);
  }

  .hint {
    font-size: var(--step--1);
    color: var(--text-muted);
  }

  code {
    font-family: var(--mono);
    font-size: 0.8125rem;
    letter-spacing: 0;
    padding: var(--hairline) var(--size-2);
    background: color-mix(in srgb, var(--brand) 8%, transparent);
    border-radius: var(--radius);
    color: var(--text-soft);
    overflow-wrap: break-word;
  }

  /* Prose: long form content ------------------------------------------------ */
  .prose {
    max-inline-size: var(--measure);
  }

  .prose > * + * {
    margin-block-start: var(--flow-space, 1em);
  }

  .prose h2,
  .prose h3 {
    margin-block-start: var(--size-12);
  }

  .prose a {
    color: var(--brand-strong);
    text-decoration-thickness: var(--hairline);
  }

  .prose a:hover {
    text-decoration-thickness: calc(var(--hairline) * 2);
  }

  .prose ul,
  .prose ol {
    display: grid;
    gap: var(--size-3);
    padding-inline-start: 1.25em;
  }

  .prose ul {
    list-style: disc;
  }

  .prose ol {
    list-style: decimal;
  }

  .prose li::marker {
    color: var(--brand);
    font-family: var(--mono);
    font-size: 0.85em;
  }

  .prose blockquote {
    margin-inline: 0;
    padding-inline-start: var(--size-9);
    border-inline-start: var(--brand-line) solid var(--brand);
    color: var(--text-soft);
    font-size: var(--step-1);
    line-height: 1.45;
  }

  .prose blockquote p {
    color: inherit;
  }

  .prose figure {
    margin: 0;
  }

  .prose figcaption {
    margin-block-start: var(--size-5);
    font-family: var(--mono);
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
  }

  .prose hr {
    border: 0;
    border-block-start: var(--hairline) solid var(--rule);
    margin-block: var(--space-xl);
  }

  /* A narrow screen scrolls the table, never the page. */
  .table-scroll {
    max-inline-size: 100%;
    overflow-x: auto;
  }

  .prose table {
    inline-size: 100%;
    border-collapse: collapse;
    font-size: var(--step--1);
    font-variant-numeric: tabular-nums;
  }

  .prose caption {
    padding-block-end: var(--size-3);
    color: var(--text-muted);
    font-size: var(--step--1);
    text-align: start;
  }

  .prose th,
  .prose td {
    padding: var(--size-5) var(--size-6);
    text-align: start;
    vertical-align: top;
    border-block-end: var(--hairline) solid var(--rule);
  }

  .prose thead th {
    font-family: var(--mono);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: var(--tracking-label);
    text-transform: uppercase;
    color: var(--text-muted);
    border-block-end-color: var(--rule-strong);
  }

  .prose tbody tr:hover {
    background: color-mix(in srgb, var(--brand) 6%, transparent);
  }

  .prose tfoot td {
    border-block-end: 0;
    font-weight: 600;
  }

  /* Swatch row, style guide only -------------------------------------------- */
  .swatches {
    display: flex;
    gap: var(--size-3);
    margin-block-start: auto;
    padding-block-start: var(--space-2xs);
  }

  .swatches span {
    inline-size: 2.125rem;
    block-size: 2.125rem;
    border-radius: var(--radius);
    border: var(--hairline) solid var(--rule);
  }

  /* Skip link --------------------------------------------------------------- */
  .skip {
    position: absolute;
    inset-block-start: var(--space-2xs);
    inset-inline-start: var(--space-2xs);
    z-index: var(--z-skip);
    padding: var(--size-5) var(--size-8);
    background: var(--ink);
    color: var(--paper);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transform: translateY(-200%);
    transition: transform var(--dur-fast) ease;
  }

  .skip:focus-visible {
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   8. Utilities
   The only layer allowed to use !important, and only where a utility has to
   beat a component for a one-off case.
   -------------------------------------------------------------------------- */

@layer utilities {
  .visually-hidden {
    position: absolute !important;
    inline-size: var(--hairline);
    block-size: var(--hairline);
    margin: calc(var(--hairline) * -1);
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }

  .measure {
    max-inline-size: var(--measure);
  }

  .measure-narrow {
    max-inline-size: var(--measure-narrow);
  }

  .text-muted {
    color: var(--text-muted);
  }

  .on-dark {
    --text: var(--text-on-inverse);
    --text-soft: var(--text-on-inverse);
    --text-muted: var(--text-on-inverse-muted);
    --rule: color-mix(in srgb, var(--paper-200) 24%, transparent);
    color: var(--text-on-inverse);
  }

  .no-wrap {
    text-wrap: nowrap;
  }
}

/* --------------------------------------------------------------------------
   9. Preferences, media and print
   These rules rewrite components, so they live in the last layer.
   -------------------------------------------------------------------------- */

@layer responsive {
  @media (prefers-reduced-motion: no-preference) {
    .hero > *,
    .card,
    .split > * {
      animation: rise var(--dur-slow) var(--ease-out) both;
    }

    .hero > *:nth-child(2) {
      animation-delay: 70ms;
    }

    .card:nth-child(2) {
      animation-delay: 40ms;
    }
    .card:nth-child(3) {
      animation-delay: 80ms;
    }
    .card:nth-child(4) {
      animation-delay: 120ms;
    }
    .card:nth-child(5) {
      animation-delay: 160ms;
    }
    .card:nth-child(6) {
      animation-delay: 200ms;
    }
    .card:nth-child(7) {
      animation-delay: 240ms;
    }
  }

  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(var(--size-7));
    }
    to {
      opacity: 1;
      transform: none;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    html {
      scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
      scroll-behavior: auto !important;
    }
  }

  /* Users who ask for more contrast get stronger rules and a heavier ring. */
  @media (prefers-contrast: more) {
    :root {
      --rule: var(--line-400);
      --text-muted: var(--ink-800);
      --focus-ring-width: calc(var(--hairline) * 3);
    }

    .card,
    .strip,
    .panel.about {
      border-width: calc(var(--hairline) * 2);
    }
  }

  /* Windows high contrast mode drops author colours. Keep the structure. */
  @media (forced-colors: active) {
    .card,
    .panel,
    .strip,
    .btn {
      border: var(--hairline) solid CanvasText;
    }

    .card::before,
    .panel.contact::after,
    main.shell::after {
      display: none;
    }
  }

  @media (max-width: 61.25rem) { /* --bp-tablet */
    .hero {
      grid-template-columns: 1fr;
      align-items: start;
    }

    .hero-globe {
      max-width: 32.5rem;
    }

    .split {
      grid-template-columns: 1fr;
    }

    main.shell {
      padding-inline: var(--size-8);
    }
  }

  @media (max-width: 45rem) { /* --bp-mobile */
    h1 {
      font-size: var(--step-4);
      letter-spacing: -0.02em;
      max-width: none;
    }

    .btn {
      font-size: 1rem;
      padding: 0.9375rem 1.375rem;
    }

    .hero-globe canvas,
    .globe {
      block-size: 22.5rem;
    }

    .card {
      padding: 1.375rem var(--size-9) var(--size-10);
    }

    .bento {
      grid-template-columns: 1fr;
    }

    .card,
    .card.wide {
      grid-column: span 1;
    }

    .head {
      flex-direction: column;
      align-items: start;
      gap: var(--size-5);
    }

    .nav a,
    .top nav a {
      font-size: 0.84375rem;
    }

    /* A crowded bar wraps instead of pushing the page sideways. */
    .top .shell {
      flex-wrap: wrap;
      row-gap: var(--size-1);
      padding-block: var(--size-3);
    }

    .nav,
    .top nav {
      flex-wrap: wrap;
      justify-content: flex-end;
    }
  }


  /* Engines without color-mix() drop the declaration above and land here.
     The values are the same colours as plain rgba, and they are the light set,
     because an engine without color-mix() also lacks light-dark(). */
  @supports not (color: color-mix(in srgb, red, blue)) {
    main.shell {
      background: radial-gradient(58% 42% at 82% 6%, rgba(31, 111, 74, 0.1), rgba(31, 111, 74, 0) 68%),
        rgba(246, 245, 241, 0.66);
    }

    .bgpic::after {
      background: rgba(246, 245, 241, 0.34);
    }

    .top {
      background: rgba(246, 245, 241, 0.9);
      backdrop-filter: none;
    }

    .card,
    .strip {
      background: rgba(255, 254, 251, 0.8);
    }

    .btn.ghost {
      background: rgba(246, 245, 241, 0.78);
    }

    .panel.about {
      background: rgba(255, 254, 251, 0.86);
    }

    .panel.contact::after {
      background: radial-gradient(closest-side, rgba(7, 193, 96, 0.45), rgba(7, 193, 96, 0) 70%);
    }

    code {
      background: rgba(31, 111, 74, 0.08);
    }

    .prose tbody tr:hover {
      background: rgba(31, 111, 74, 0.06);
    }

    .on-dark {
      --rule: rgba(246, 245, 241, 0.24);
    }

    ::target-text {
      background: rgba(31, 111, 74, 0.2);
    }
  }

  /* Print: paper, ink, links written out. */
  @media print {
    :root {
      --bg: #fff;
      --text: #000;
      --text-soft: #000;
      --text-muted: #333;
      --rule: #999;
    }

    .top,
    .bgpic,
    .hero-globe,
    .skip {
      display: none;
    }

    main.shell {
      border: 0;
      background: none;
    }

    a[href^="http"]::after {
      content: " (" attr(href) ")";
      font-size: 0.75em;
      word-break: break-all;
    }

    .card,
    .panel {
      break-inside: avoid;
    }
  }
}

/* --------------------------------------------------------------------------
   10. Dark theme
   The page follows the operating system. An explicit choice on <html> wins:
   data-theme="light" pins paper, data-theme="dark" pins the inverse.

   The mechanism is color-scheme plus light-dark(), which reads the computed
   color-scheme of the element that holds the token. The light values declared
   above stay as the fallback for engines without light-dark().
   -------------------------------------------------------------------------- */

@layer tokens {
  @supports (color: light-dark(#000, #fff)) {
    :root {
      color-scheme: light dark;

      --bg: light-dark(#f6f5f1, #0d0e10);
      --surface: light-dark(
        color-mix(in srgb, #fffefb 80%, transparent),
        color-mix(in srgb, #f6f5f1 6%, transparent)
      );
      --surface-solid: light-dark(#fffefb, #16181a);
      --surface-sunk: light-dark(#e8e5dc, #101113);
      --surface-inverse: light-dark(#0d0e10, #f6f5f1);

      --shell-tint: light-dark(#f6f5f1, #101114);
      --header-tint: light-dark(#f6f5f1, #0d0e10);
      --scrim: light-dark(#f6f5f1, #0d0e10);
      --btn-ghost-bg: light-dark(#f6f5f1, #1a1c1f);

      --text: light-dark(#101010, #f2f1ec);
      --text-soft: light-dark(#2c2d2a, #d8d6cd);
      --text-muted: light-dark(#4a4d46, #a8a69d);
      --text-on-inverse: light-dark(#f6f5f1, #101010);
      --text-on-inverse-muted: light-dark(#b9b6ac, #4a4d46);

      --rule: light-dark(#dedbd2, #2b2d30);
      --rule-strong: light-dark(#86847a, #6b6a60);

      --brand: light-dark(#1f6f4a, #4f9d74);
      --brand-strong: light-dark(#17553a, #6fbf94);
      --brand-deep: light-dark(#0f4a2e, #3d7f5d);

      --focus-ring: light-dark(#17553a, #6fbf94);
    }

    /* The explicit choice. Same specificity as :root, declared later. */
    [data-theme="light"] {
      color-scheme: light;
    }

    [data-theme="dark"] {
      color-scheme: dark;
    }
  }
}

/* --------------------------------------------------------------------------
   Pinned to the live page, per Ingo's ruling of 2026-11-06.
   The fluid scale above is the target; these four values match what
   innolink.trade renders today, so the swap changes nothing visible.
   Remove this block when the sizes are allowed to move.
   -------------------------------------------------------------------------- */

@layer responsive {
  body {
    font-size: 17.5px;
  }

  h2 {
    font-size: clamp(24px, 2.8vw, 34px);
  }

  .hero p.lede,
  .lede {
    font-size: clamp(17.5px, 1.55vw, 20.5px);
  }

  .card h3 {
    font-size: 20px;
  }

  .foot,
  footer {
    font-size: 13.5px;
  }
}
