:root {
    --paper: #fff7f9;
    --paper-2: #ffe7ec;
    --paper-3: #fff0f3;
    --panel: #ffffff;
    --ink: #171114;
    --ink-2: #2b171d;
    --muted: #62575c;
    --quiet: #807177;
    --line: rgba(43, 23, 29, .13);
    --line-strong: rgba(43, 23, 29, .25);
    --accent: #bc2032;
    --accent-2: #c92f45;
    --accent-soft: rgba(255, 92, 111, .13);
    --accent-strong: #9f2335;
    --complement: #2f7673;
    --shadow: 0 24px 60px rgba(95, 35, 45, .10);
    --max: 1180px;
    --measure: 760px;
    --radius: 22px;
    --header-h: 46px;
    --header-offset: 72px;
  }

  html[data-theme="dark"] {
    --paper: #120b0e;
    --paper-2: #1d1115;
    --paper-3: #211318;
    --panel: #1a0f13;
    --ink: #fff0f3;
    --ink-2: #ffffff;
    --muted: #d8c1c7;
    --quiet: #a99299;
    --line: rgba(255, 240, 243, .14);
    --line-strong: rgba(255, 240, 243, .27);
    --accent: #ff6a7c;
    --accent-2: #ff9aa7;
    --accent-soft: rgba(255, 92, 111, .18);
    --accent-strong: #ffb6c0;
    --complement: #5cc8c2;
    --shadow: 0 28px 70px rgba(0, 0, 0, .36);
  }

  * { box-sizing: border-box; }

  html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-offset, 72px) + 12px);
    background: var(--paper);
  }

  body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }

  body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    opacity: .75;
    background:
      linear-gradient(90deg, rgba(43, 23, 29, .042) 1px, transparent 1px),
      linear-gradient(180deg, rgba(43, 23, 29, .032) 1px, transparent 1px);
    background-size: clamp(34px, 5vw, 64px) clamp(34px, 5vw, 64px);
    mask-image: linear-gradient(180deg, black, transparent 68%);
  }

  html[data-theme="dark"] body::before {
    opacity: .42;
    background:
      linear-gradient(90deg, rgba(255, 240, 243, .052) 1px, transparent 1px),
      linear-gradient(180deg, rgba(255, 240, 243, .042) 1px, transparent 1px);
  }

  a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
    transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease;
  }

  a:hover { color: var(--accent); }

  img {
    max-width: 100%;
    display: block;
  }

  :focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 4px;
  }

  .skip-link {
    position: absolute;
    left: -999px;
    top: 1rem;
    background: var(--ink);
    color: var(--paper);
    padding: .75rem 1rem;
    z-index: 20;
  }

  .skip-link:focus { left: 1rem; }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--paper) 94%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transform: translateY(0);
    transition: transform .26s ease;
    will-change: transform;
  }

  .site-header.is-hidden {
    transform: translateY(-100%);
  }

  .nav {
    font-family: "Poppins", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    max-width: var(--max);
    min-height: var(--header-h);
    margin: 0 auto;
    padding: .55rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
  }

  .brand {
    display: inline-flex;
    align-items: center;
    gap: .72rem;
    text-decoration: none;
    min-width: 0;
  }

  .brand img {
    width: 34px;
    height: 34px;
  }

  .brand span {
  font-family: "Poppins", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 500;
  letter-spacing: -.02em;
  font-size: 1.5rem;
  white-space: nowrap;
}

  .nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
  }

  .nav-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    color: var(--muted);
    font-size: .92rem;
  }

  .nav-links a {
    text-decoration: none;
    position: relative;
  }

  .nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -.34rem;
    height: 1px;
    transform: scaleX(0);
    transform-origin: left;
    background: currentColor;
    transition: transform .22s ease;
  }

  .nav-links a:hover::after {
    transform: scaleX(1);
  }

  .theme-toggle {
    display: inline-grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border: 1px solid var(--line-strong);
    background: var(--paper-3);
    color: var(--ink);
    border-radius: 999px;
    padding: 0;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(95, 35, 45, .08);
  }

  html[data-theme="dark"] .theme-toggle {
    box-shadow: none;
  }

  .theme-toggle:hover {
    color: var(--accent);
    border-color: color-mix(in srgb, var(--accent) 50%, var(--line-strong));
    background: color-mix(in srgb, var(--paper-3) 80%, var(--accent-soft));
    transform: translateY(-1px);
  }

  .icon-wrap {
    position: relative;
    width: 24px;
    height: 24px;
  }

  .theme-icon {
    position: absolute;
    inset: 0;
    width: 24px;
    height: 24px;
    transition: opacity .22s ease, transform .22s ease;
  }

  .icon-sun {
    opacity: 0;
    transform: scale(.8) rotate(-18deg);
  }

  .icon-moon {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }

  html[data-theme="dark"] .icon-sun {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }

  html[data-theme="dark"] .icon-moon {
    opacity: 0;
    transform: scale(.8) rotate(18deg);
  }

  main {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 1.25rem;
  }

  .hero {
    min-height: calc(100svh - var(--header-h));
    display: grid;
    align-items: center;
    padding: clamp(4.5rem, 9vw, 8rem) 0 clamp(4rem, 7vw, 6rem);
    border-top: 0;
  }

  .hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 340px);
    gap: clamp(2rem, 7vw, 6rem);
    align-items: end;
  }

  .hero-copy {
    max-width: 930px;
  }

  .eyebrow {
    margin: 0 0 1rem;
    color: var(--accent);
    font-size: .76rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    font-weight: 700;
  }

  h1, h2, h3, p { margin-top: 0; }

  h1 {
    font-size: clamp(2.7rem, 8.2vw, 7.35rem);
    line-height: .88;
    letter-spacing: -.085em;
    max-width: 1060px;
    margin-bottom: 1.35rem;
    font-weight: 700;
  }

  .title-accent {
    color: var(--accent);
  }

  .lead {
    font-size: clamp(1.06rem, 1.65vw, 1.32rem);
    max-width: 820px;
    color: var(--muted);
    line-height: 1.66;
    margin-bottom: 1.65rem;
  }

  .hero-points {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .62rem .95rem;
    max-width: 860px;
    margin: 1.4rem 0 2rem;
    padding: 0;
    list-style: none;
  }

  .hero-points li {
    display: flex;
    gap: .55rem;
    color: var(--muted);
    font-size: .98rem;
  }

  .hero-points li::before {
    content: "";
    width: .52rem;
    height: .52rem;
    border-radius: 99px;
    margin-top: .58rem;
    background: var(--accent);
    flex: 0 0 auto;
  }

  .availability {
    max-width: 860px;
    margin: -.5rem 0 1.55rem;
    color: var(--quiet);
    font-size: .94rem;
    line-height: 1.55;
  }

  .cta-row {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    margin-top: 1.7rem;
  }

  .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: .78rem 1.12rem;
    border: 1px solid var(--ink);
    background: var(--ink);
    color: var(--paper);
    text-decoration: none;
    font-weight: 650;
    border-radius: 999px;
    box-shadow: 0 14px 28px rgba(95, 35, 45, .14);
  }

  html[data-theme="dark"] .button {
    box-shadow: none;
  }

  .button.secondary {
    background: transparent;
    color: var(--ink);
    border-color: var(--line-strong);
    box-shadow: none;
  }

  .button:hover {
    color: var(--paper);
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-1px);
  }

  .button.secondary:hover {
    color: var(--ink);
    background: var(--accent-soft);
    border-color: var(--accent);
  }

  .hero-panel {
    position: sticky;
    bottom: 2rem;
    align-self: end;
    border-left: 1px solid var(--line-strong);
    padding-left: 1.25rem;
    color: var(--quiet);
    transform: translateY(calc(var(--hero-y, 0) * -18px));
  }

  .hero-panel b {
    display: block;
    color: var(--ink);
    font-size: clamp(2.5rem, 7vw, 4.7rem);
    line-height: .9;
    letter-spacing: -.08em;
    margin-bottom: .75rem;
  }

  .hero-panel span {
    display: block;
    max-width: 24ch;
    font-size: .93rem;
    line-height: 1.45;
  }

  section {
    padding: clamp(4.25rem, 8vw, 7.4rem) 0;
    border-top: 1px solid var(--line);
    scroll-margin-top: calc(var(--header-offset, 72px) + 12px);
  }

  .section-top {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: clamp(1.3rem, 5vw, 3.8rem);
    align-items: start;
    margin-bottom: clamp(2rem, 5vw, 3.25rem);
  }

  .section-label {
    color: var(--accent);
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
    font-size: .72rem;
    margin: .42rem 0 0;
  }

  h2 {
    font-size: clamp(2rem, 4.9vw, 4rem);
    line-height: 1.1;
    letter-spacing: -.065em;
    margin-bottom: .95rem;
    font-weight: 700;
    max-width: 920px;
  }

  h3 {
    font-size: 1.13rem;
    line-height: 1.24;
    letter-spacing: -.028em;
    margin-bottom: .55rem;
    font-weight: 700;
  }

  .intro-copy {
    color: var(--muted);
    font-size: 1.06rem;
    max-width: 830px;
    margin-bottom: 0;
  }

  .service-grid,
  .capability-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
  }

  .service-card,
  .capability {
    background: var(--panel);
    padding: clamp(1.1rem, 2.2vw, 1.55rem);
    min-height: 250px;
  }

  .service-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .service-card.featured {
    background: color-mix(in srgb, var(--accent-soft) 62%, var(--panel));
  }

  .service-card p,
  .capability p,
  .case p,
  .timeline p,
  .target-card p,
  .fit-card p {
    color: var(--muted);
    margin-bottom: 0;
  }

  .mini-list {
    margin: 1.15rem 0 0;
    padding: 0;
    color: var(--muted);
    font-size: .92rem;
    line-height: 1.5;
    list-style: none;
  }

  .mini-list li {
    margin: .22rem 0;
    padding-left: 1rem;
    position: relative;
  }

  .mini-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .72em;
    width: .36rem;
    height: 1px;
    background: currentColor;
    opacity: .72;
  }

  .capability .number {
    display: inline-flex;
    width: 2.05rem;
    height: 2.05rem;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--paper);
    background: var(--ink);
    font-weight: 700;
    font-size: .86rem;
    margin-bottom: 1rem;
  }

  .capability:nth-child(2) .number,
  .capability:nth-child(3) .number {
    background: var(--accent);
  }

  .capability:nth-child(4) .number {
    background: var(--accent-soft);
    color: var(--ink);
    border: 1px solid var(--line);
  }

  .proof-strip {
    display: grid;
    grid-template-columns: 1.25fr 1fr 1fr 1fr;
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
  }

  .proof {
    background: var(--ink);
    color: var(--paper);
    padding: clamp(1.25rem, 3vw, 2rem);
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: clamp(.95rem, 1.9vw, 1.25rem);
  }

  .proof:nth-child(2),
  .proof:nth-child(3) {
    background: color-mix(in srgb, var(--ink) 88%, var(--accent));
  }

  .proof:nth-child(4) {
    background: color-mix(in srgb, var(--ink) 78%, var(--accent));
  }

  .proof b {
    display: block;
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: .9;
    letter-spacing: -.06em;
    margin-bottom: 0;
  }

  .proof span {
    color: color-mix(in srgb, var(--paper) 82%, transparent);
    font-size: .94rem;
    line-height: 1.5;
  }

  .case-list {
    display: grid;
    gap: clamp(1.3rem, 3vw, 2rem);
  }

  .case {
    display: grid;
    grid-template-columns: minmax(260px, .82fr) minmax(0, 1fr);
    gap: clamp(1.25rem, 4vw, 2.4rem);
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
  }

  .case:nth-child(even) {
    grid-template-columns: minmax(0, 1fr) minmax(260px, .82fr);
  }

  .case:nth-child(even) .case-visual {
    order: 2;
  }

  .case-visual {
    align-self: start;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--paper-2);
    min-height: 0;
    min-width: 0;
    overflow: hidden;
    isolation: isolate;
  }

  .case-visual img {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    cursor: default;
  }

  .case-body {
    min-width: 0;
    padding: clamp(1.35rem, 4vw, 2.45rem);
    align-self: center;
  }

  .case-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-bottom: 1rem;
  }

  .pill {
    border: 1px solid var(--line);
    background: var(--paper-3);
    color: var(--muted);
    border-radius: 999px;
    padding: .28rem .62rem;
    font-size: .8rem;
    line-height: 1.2;
  }

  .case h3 {
    font-size: clamp(1.35rem, 2.5vw, 2rem);
    max-width: 620px;
  }

  .detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .9rem;
    margin-top: 1.45rem;
  }

  .detail-grid div {
    border-top: 1px solid var(--line);
    padding-top: .85rem;
  }

  .detail-grid b {
    display: block;
    margin-bottom: .3rem;
    font-size: .92rem;
  }

  .detail-grid span {
    color: var(--muted);
    font-size: .91rem;
    line-height: 1.45;
  }

  .timeline {
    display: grid;
    gap: 1rem;
  }

  .timeline-item {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: clamp(1.3rem, 5vw, 3.5rem);
    border-top: 1px solid var(--line);
    padding-top: 1.35rem;
  }

  .timeline-item:first-child {
    border-top: 0;
    padding-top: 0;
  }

  .timeline time,
  .timeline .place {
    color: var(--quiet);
    font-size: .9rem;
  }

  .timeline .place {
    display: block;
    margin-top: .2rem;
  }

  .tag-list {
    list-style: none;
    padding: 0;
    margin: .95rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
  }

  .tag-list li {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: .28rem .58rem;
    font-size: .82rem;
    color: var(--muted);
    background: var(--panel);
  }

  .fit-grid,
  .target-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
  }

  .fit-card,
  .target-card {
    background: var(--panel);
    padding: clamp(1.1rem, 2.2vw, 1.55rem);
  }

  .fit-card.featured,
  .target-card.featured {
    background: var(--panel);
  }

  .split {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
    gap: clamp(1.3rem, 5vw, 3.8rem);
    align-items: start;
  }

  .about-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(1.25rem, 3vw, 1.75rem);
    box-shadow: var(--shadow);
  }

  .about-card p {
    color: var(--muted);
  }

  .about-card p:last-child {
    margin-bottom: 0;
  }

  .contact {
    padding-bottom: 5rem;
  }

  .contact-panel {
    background: var(--ink);
    color: var(--paper);
    border-radius: var(--radius);
    padding: clamp(1.6rem, 5vw, 3.7rem);
    position: relative;
    overflow: hidden;
  }

  .contact-panel::before {
    content: "";
    position: absolute;
    inset: 1rem;
    border: 1px solid color-mix(in srgb, var(--paper) 18%, transparent);
    border-radius: calc(var(--radius) - .5rem);
    pointer-events: none;
  }

  .contact-panel > * {
    position: relative;
    z-index: 1;
  }

  .contact-panel .eyebrow {
    color: var(--accent-2);
  }

  .contact-panel h2 {
    max-width: 900px;
  }

  .contact-panel p {
    color: color-mix(in srgb, var(--paper) 82%, transparent);
    max-width: 820px;
  }

  .contact-panel .button {
    background: var(--paper);
    color: var(--ink);
    border-color: var(--paper);
    box-shadow: none;
  }

  .contact-panel .button.secondary {
    background: transparent;
    color: var(--paper);
    border-color: color-mix(in srgb, var(--paper) 38%, transparent);
  }

  .contact-panel .button:hover {
    background: var(--accent-2);
    border-color: var(--accent-2);
    color: var(--ink);
  }

  .contact-panel .button.secondary:hover {
    background: color-mix(in srgb, var(--paper) 10%, transparent);
    color: var(--paper);
  }

  .footer {
    max-width: var(--max);
    margin: 0 auto;
    padding: 2rem 1.25rem 3rem;
    color: var(--quiet);
    font-size: .9rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    border-top: 1px solid var(--line);
  }

  .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition:
      opacity .72s cubic-bezier(.2, .8, .2, 1),
      transform .72s cubic-bezier(.2, .8, .2, 1);
  }

  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  .scroll-text {
    display: inline-block;
    padding-bottom: .12em;
    background-image: linear-gradient(90deg, var(--ink), var(--ink));
    background-size: calc(var(--text-progress, 0) * 100%) calc(100% + .25em);
    background-repeat: no-repeat;
    background-position: left top;
    color: color-mix(in srgb, var(--ink) 28%, transparent);
    -webkit-background-clip: text;
    background-clip: text;
  }

  @media (max-width: 1040px) {
    .hero-inner,
    .case,
    .case:nth-child(even),
    .split {
      grid-template-columns: 1fr;
    }

    .case:nth-child(even) .case-visual {
      order: 0;
    }

    .hero-panel {
      position: static;
      display: grid;
      grid-template-columns: auto minmax(0, 1fr);
      gap: 1rem;
      align-items: end;
      max-width: 620px;
      border-left: 0;
      border-top: 1px solid var(--line-strong);
      padding-left: 0;
      padding-top: 1.25rem;
    }

    .hero-panel b {
      margin-bottom: 0;
    }

    .service-grid,
    .capability-grid,
    .proof-strip,
    .fit-grid,
    .target-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }

  @media (max-width: 760px) {
    :root {
      --header-h: auto;
    }

    body {
      font-size: 15.5px;
    }

    .nav {
      align-items: flex-start;
      flex-direction: column;
      gap: .85rem;
      padding: .85rem 1rem;
    }

    .nav-right {
      width: 100%;
      align-items: flex-start;
      gap: .8rem;
      flex-direction: column-reverse;
    }

    .nav-links {
      justify-content: flex-start;
      gap: .7rem;
      font-size: .88rem;
    }

    .theme-toggle {
      align-self: flex-start;
    }

    main {
      padding: 0 1rem;
    }

    .hero {
      min-height: auto;
      padding-top: 3.4rem;
    }

    .hero-points,
    .section-top,
    .timeline-item {
      grid-template-columns: 1fr;
    }

    .section-top {
      gap: .9rem;
    }

    .service-grid,
    .capability-grid,
    .proof-strip,
    .detail-grid,
    .fit-grid,
    .target-grid {
      grid-template-columns: 1fr;
    }

    .service-card,
    .capability,
    .proof {
      min-height: auto;
    }

    .button {
      width: 100%;
    }

    .case {
      border-radius: 16px;
    }

    .case-body {
      min-width: 0;
      padding: 1.25rem;
    }

    h1 {
      font-size: clamp(2.35rem, 14vw, 4.35rem);
    }

    h2 {
      font-size: clamp(1.95rem, 10vw, 3rem);
    }

    .hero-panel {
      grid-template-columns: 1fr;
      gap: .4rem;
    }

    .hero-panel b {
      font-size: 3.4rem;
    }

    .contact-panel::before {
      inset: .7rem;
    }
  }

  @media (max-width: 410px) {
    .nav-links a {
      font-size: .84rem;
    }

    .brand span {
      font-size: 1.25rem;
    }

    .brand img {
      width: 30px;
      height: 30px;
    }

    .theme-toggle {
      width: 44px;
      height: 44px;
    }
  }


  @media (max-width: 760px) {
    .nav {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: center;
      gap: .55rem .75rem;
      padding: .55rem 1rem .5rem;
    }

    .brand {
      grid-column: 1;
      grid-row: 1;
      min-width: 0;
    }

    .brand span {
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .nav-right {
      display: contents;
    }

    .theme-toggle {
      grid-column: 2;
      grid-row: 1;
      align-self: center;
      justify-self: end;
      width: 48px;
      height: 48px;
    }

    .nav-links {
      grid-column: 1 / -1;
      grid-row: 2;
      width: 100%;
      display: flex;
      flex-wrap: nowrap;
      justify-content: space-between;
      gap: .45rem;
      overflow-x: auto;
      padding: .08rem 0 .06rem;
      white-space: nowrap;
      scrollbar-width: none;
      -webkit-overflow-scrolling: touch;
    }

    .nav-links::-webkit-scrollbar {
      display: none;
    }

    .nav-links a::after {
      bottom: -.18rem;
    }

    .hero-panel {
      display: grid;
      grid-template-columns: auto minmax(0, 1fr);
      gap: 1rem;
      align-items: center;
      max-width: none;
      border: 1px solid var(--line);
      border-radius: 18px;
      background: var(--panel);
      padding: 1rem;
      margin-top: .25rem;
      box-shadow: none;
    }

    .hero-panel b {
      font-size: clamp(2.7rem, 16vw, 4rem);
      line-height: .88;
      margin: 0;
    }

    .hero-panel span {
      max-width: none;
      font-size: .94rem;
      line-height: 1.45;
    }
  }

  @media (max-width: 360px) {
    .nav-links {
      font-size: .82rem;
      gap: .38rem;
    }

    .hero-panel {
      gap: .8rem;
      padding: .9rem;
    }

    .hero-panel b {
      font-size: 2.55rem;
    }

    .hero-panel span {
      font-size: .88rem;
    }
  }

  .theme-toggle {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    max-width: 52px;
    max-height: 52px;
    aspect-ratio: 1;
    border: 1px solid var(--line-strong);
    background: transparent;
    color: var(--ink);
    border-radius: 999px;
    padding: 0;
    line-height: 1;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(95, 35, 45, .08);
  }

  .theme-toggle:hover {
    color: var(--accent);
    border-color: color-mix(in srgb, var(--accent) 48%, var(--line-strong));
    background: color-mix(in srgb, var(--panel) 84%, var(--accent-soft));
    transform: translateY(-1px);
  }

  html[data-theme="dark"] .theme-toggle {
    background: var(--paper-3);
    box-shadow: none;
  }

  .icon-wrap,
  .theme-icon {
    width: 18px;
    height: 18px;
  }

  .icon-wrap {
    position: relative;
    display: block;
  }

  .theme-icon {
    position: absolute;
    inset: 0;
    transition: opacity .22s ease, transform .22s ease;
  }

  .icon-sun {
    opacity: 0;
    transform: scale(.78) rotate(-18deg);
  }

  .icon-moon {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }

  html[data-theme="dark"] .icon-sun {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }

  html[data-theme="dark"] .icon-moon {
    opacity: 0;
    transform: scale(.78) rotate(18deg);
  }

  @media (max-width: 760px) {
    .theme-toggle {
      width: 32px;
      height: 32px;
      min-width: 32px;
      min-height: 32px;
      max-width: 46px;
      max-height: 46px;
    }

    .icon-wrap,
    .theme-icon {
      width: 17px;
      height: 17px;
    }
  }

  .btt-button {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 90;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: color-mix(in srgb, var(--panel) 88%, transparent);
    color: var(--ink);
    font: inherit;
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 12px 26px rgba(95, 35, 45, .12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition:
      opacity .22s ease,
      visibility .22s ease,
      transform .22s ease,
      color .18s ease,
      border-color .18s ease,
      background-color .18s ease;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .btt-button.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .btt-button:hover {
    color: var(--accent);
    border-color: color-mix(in srgb, var(--accent) 48%, var(--line-strong));
    background: color-mix(in srgb, var(--panel) 84%, var(--accent-soft));
    transform: translateY(-2px);
  }

  html[data-theme="dark"] .btt-button {
    box-shadow: none;
  }

  @media (max-width: 760px) {
    .btt-button {
      right: .85rem;
      bottom: .85rem;
      width: 38px;
      height: 38px;
      font-size: 1rem;
    }
  }

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

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

    .reveal {
      opacity: 1;
      transform: none;
    }

    .case-visual img {
      transform: none;
    }

    .scroll-text {
      background-image: none;
      color: var(--ink);
    }
  }


/* APAC product support update */
.hero { min-height: auto; padding: clamp(2.5rem,5vw,4.5rem) 0 3.5rem; }
.hero-inner { grid-template-columns: minmax(0,1fr) 235px; gap: 3rem; align-items: center; }
h1 { font-size: clamp(2.65rem,4.7vw,4.1rem); line-height: 1.04; letter-spacing: -.055em; }
.hero .lead { font-size: 1.1rem; line-height: 1.6; margin-bottom: 1rem; }
.hero-panel b { font-size: clamp(2.8rem,4.5vw,4.3rem); letter-spacing: -.055em; }
.hero-panel span { max-width: none; }
.hero .availability { margin: 1rem 0; }
.reveal { opacity: 1; transform: none; }
.scroll-text { background: none; color: var(--ink); }

section, article[id] { scroll-margin-top: calc(var(--header-offset) + 20px); }

@media (max-width: 1040px) {
 .hero-inner { grid-template-columns: 1fr; gap: 1.5rem; }
 .hero-panel { max-width: none; }
}
@media (max-width: 760px) {
 .hero { padding-top: 2.2rem; }
 .hero-panel b { font-size: 2.7rem; }
 h1 { font-size: clamp(2.35rem,9vw,3.4rem); }
}
