/* =============================================================================
   SeaLinkr — landing stylesheet
   Visual language adapted from the corp.upside.kr design system:
   Pretendard Variable, floating pill header, ultra-tight display typography,
   inset rounded surfaces, split-arrow buttons, asymmetric section headings,
   soft-radius cards and monospace meta labels — recoloured to the SeaLinkr
   teal/navy brand ramp.
   ========================================================================== */

@font-face {
    font-family: 'Pretendard Variable';
    src: url('../fonts/PretendardVariable.woff2') format('woff2');
    font-weight: 45 920;
    font-style: normal;
    font-display: swap;
}

/* -----------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */

:root {
    color-scheme: light;

    /* Surfaces */
    --bg: #ffffff;
    --paper: #f5f5f5;
    --paper-2: #ededed;
    --ink: #0a0a0a;
    --muted: #737373;
    --faint: #d0d0d0;
    --line: rgba(10, 10, 10, 0.08);
    --line-strong: rgba(10, 10, 10, 0.14);

    /* Brand ramp — teal water into the logo navy */
    --brand: #176b87;
    --brand-bright: #2fb6c9;
    --brand-mint: #7de2d6;
    --brand-deep: #022c52;
    --night: #061c2b;

    /* Type */
    --font-sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont,
        'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', system-ui, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
    --font-serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;

    /* Motion */
    --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

:root[data-theme='dark'] {
    color-scheme: dark;

    --bg: #0a0a0a;
    --paper: #171717;
    --paper-2: #202020;
    --ink: #f2f2f2;
    --muted: #a3a3a3;
    --faint: #3d3d3d;
    --line: rgba(245, 245, 245, 0.10);
    --line-strong: rgba(245, 245, 245, 0.18);

    --brand-deep: #04223e;
    --night: #050f18;
}

/* -----------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

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

body.sl-body {
    margin: 0;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 16px;
    font-synthesis-weight: none;
    line-height: 1.5;
    text-rendering: optimizeLegibility;
    word-break: keep-all;
    overflow-wrap: anywhere;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.sl-body a {
    color: inherit;
    text-decoration: none;
}

.sl-body button {
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.sl-body img,
.sl-body svg,
.sl-body canvas {
    display: block;
    max-width: 100%;
}

.sl-body h1,
.sl-body h2,
.sl-body h3,
.sl-body p {
    margin: 0;
    text-wrap: pretty;
}

.sl-body h1,
.sl-body h2 {
    text-wrap: balance;
}

::selection {
    background: var(--brand-bright);
    color: #04202c;
}

:focus-visible {
    outline: 2px solid var(--brand-bright);
    outline-offset: 4px;
    border-radius: 4px;
}

.sl-skip {
    position: fixed;
    z-index: 10000;
    top: 12px;
    left: 50%;
    padding: 12px 20px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--bg);
    font-size: 0.8rem;
    font-weight: 600;
    translate: -50% -200%;
    transition: translate 0.2s ease;
}

.sl-skip:focus-visible {
    translate: -50% 0;
}

/* -----------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */

.sl-wrap {
    width: calc(100% - 80px);
    max-width: 1360px;
    margin-inline: auto;
}

.sl-section {
    position: relative;
    padding: 128px 0;
    background: var(--bg);
    color: var(--ink);
}

.sl-section--tight {
    padding-top: 32px;
}

.sl-section--flush-bottom {
    padding-bottom: 40px;
}

/* Monospace meta chip */
.sl-tag {
    display: inline-flex;
    width: max-content;
    align-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    padding: 8px 14px;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.sl-tag--dark {
    border-color: rgba(255, 255, 255, 0.18);
    color: #d2d2d2;
}

/* Monospace code label pinned to the bottom of a card */
.sl-code {
    display: block;
    margin-top: auto;
    padding-top: 24px;
    color: #999;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Asymmetric heading: narrow tag column, wide headline column */
.sl-heading {
    display: grid;
    grid-template-columns: minmax(180px, 0.42fr) minmax(0, 1.58fr);
    gap: clamp(48px, 12vw, 190px);
    align-items: start;
}

.sl-heading__content h2 {
    max-width: 800px;
    font-size: clamp(2.8rem, 5vw, 5.6rem);
    font-weight: 400;
    letter-spacing: -0.09em;
    line-height: 0.98;
}

.sl-heading__content p {
    max-width: 580px;
    margin: 56px 0 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.7;
}

.sl-heading__content .sl-textlink {
    margin-top: 26px;
}

.sl-heading--dark .sl-heading__content p {
    color: #b6b6b6;
}

/* -----------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

/* Split button: label chip + separate arrow chip, borrowed from upside's
   .up-button. The arrow chip rolls on hover. */
.sl-btn {
    display: inline-flex;
    min-height: 44px;
    align-items: stretch;
    gap: 4px;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: translate 0.18s ease, scale 0.18s ease;
}

.sl-btn > span:first-child {
    display: inline-flex;
    align-items: center;
    border-radius: 10px;
    padding: 0 20px;
    white-space: nowrap;
}

.sl-btn__arrow {
    position: relative;
    display: grid;
    overflow: hidden;
    width: 44px;
    flex-shrink: 0;
    place-items: center;
    border-radius: 10px;
    font-size: 1.1rem;
}

.sl-btn:hover {
    translate: 0 -2px;
}

.sl-btn:active {
    translate: 0 0;
    scale: 0.98;
}

.sl-btn--dark > span:first-child {
    background: var(--ink);
    color: var(--bg);
}

.sl-btn--dark .sl-btn__arrow {
    background: var(--ink);
    color: var(--bg);
}

.sl-btn--light > span:first-child {
    border: 1px solid rgba(10, 10, 10, 0.08);
    background: #ffffff;
    color: #0a0a0a;
}

.sl-btn--light .sl-btn__arrow {
    background: var(--brand-deep);
    color: #ffffff;
}

.sl-btn--ghost > span:first-child {
    border: 1px solid var(--line-strong);
    color: var(--ink);
}

.sl-btn--ghost .sl-btn__arrow {
    border: 1px solid var(--line-strong);
    color: var(--ink);
}

.sl-btn--ghost:hover > span:first-child,
.sl-btn--ghost:hover .sl-btn__arrow {
    border-color: var(--ink);
}

/* Rolling arrow: two glyphs on a track, swapped on hover */
.sl-roll {
    position: relative;
    display: block;
    overflow: hidden;
    width: 1em;
    height: 1em;
    line-height: 1;
}

.sl-roll__track {
    position: absolute;
    inset: 0;
    transition: translate 0.45s var(--ease-out-quint);
}

.sl-roll__glyph {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
}

.sl-roll__glyph--b {
    translate: -100% 100%;
}

.sl-btn:hover .sl-roll__track,
.sl-textlink:hover .sl-roll__track,
.sl-update:hover .sl-roll__track,
.sl-iconlink:hover .sl-roll__track {
    translate: 100% -100%;
}

/* Underline text link */
.sl-textlink {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid currentColor;
    padding-bottom: 8px;
    color: var(--ink);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.sl-textlink--muted {
    border-color: var(--line-strong);
    color: var(--muted);
}

.sl-textlink--muted:hover {
    border-color: var(--ink);
    color: var(--ink);
}

.sl-textlink--onDark {
    color: var(--brand-mint);
}

/* Small square icon link */
.sl-iconlink {
    display: grid;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    place-items: center;
    border-radius: 10px;
    background: var(--paper);
    color: var(--ink);
    font-size: 0.95rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.sl-iconlink:hover {
    background: var(--ink);
    color: var(--bg);
}

/* -----------------------------------------------------------------------------
   Header — detached floating pill
   -------------------------------------------------------------------------- */

.sl-header {
    position: fixed;
    z-index: 9998;
    top: 20px;
    left: 50%;
    width: min(calc(100% - 40px), 1024px);
    border: 1px solid color-mix(in srgb, var(--ink) 7%, transparent);
    border-radius: 26px;
    background: var(--bg);
    box-shadow:
        0 24px 48px -18px color-mix(in srgb, var(--brand) 34%, transparent),
        0 10px 26px -12px rgba(0, 0, 0, 0.28);
    color: var(--ink);
    translate: -50% 0;
    animation: sl-header-drop 0.7s var(--ease-out-expo) both;
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.sl-header.is-scrolled {
    box-shadow:
        0 28px 60px -20px color-mix(in srgb, var(--brand) 46%, transparent),
        0 12px 30px -12px rgba(0, 0, 0, 0.36);
}

@keyframes sl-header-drop {
    from {
        opacity: 0;
        translate: -50% -18px;
    }
    to {
        opacity: 1;
        translate: -50% 0;
    }
}

.sl-header__shell {
    display: flex;
    height: 80px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0 16px;
}

.sl-header__brand {
    display: flex;
    min-width: 132px;
    align-items: center;
    margin-left: 16px;
}

.sl-header__logo {
    width: 132px;
    height: auto;
    object-fit: contain;
    transition: filter 0.3s ease;
}

:root[data-theme='dark'] .sl-header__logo {
    filter: brightness(0) invert(1);
}

.sl-header__links {
    display: flex;
    align-items: center;
    gap: 2px;
}

.sl-header__links a {
    border-radius: 999px;
    padding: 10px 16px;
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 500;
    transition: background-color 0.18s ease;
}

.sl-header__links a:hover,
.sl-header__links a.is-active {
    background: color-mix(in srgb, var(--ink) 6%, transparent);
}

.sl-header__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sl-header__toggle {
    display: grid;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    place-items: center;
    border-radius: 12px;
    background: color-mix(in srgb, var(--ink) 5%, transparent);
    color: var(--ink);
    transition: background-color 0.18s ease;
}

.sl-header__toggle:hover {
    background: color-mix(in srgb, var(--ink) 10%, transparent);
}

.sl-header__toggle svg {
    width: 17px;
    height: 17px;
}

.sl-header__toggle .sl-icon-moon {
    display: none;
}

:root[data-theme='dark'] .sl-header__toggle .sl-icon-sun {
    display: none;
}

:root[data-theme='dark'] .sl-header__toggle .sl-icon-moon {
    display: block;
}

.sl-header__start {
    display: inline-flex;
    align-items: center;
    border-radius: 14px;
    font-size: 0.82rem;
    font-weight: 600;
    transition: translate 0.18s ease;
}

.sl-header__start span {
    border-radius: 14px;
    padding: 13px 19px;
    background: var(--ink);
    color: var(--bg);
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

.sl-header__start:hover {
    translate: 0 -2px;
}

.sl-header__menu {
    display: none;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 12px;
}

.sl-header__menu-icon {
    position: relative;
    display: flex;
    width: 22px;
    height: 12px;
    flex-direction: column;
    justify-content: space-between;
}

.sl-header__menu-icon span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: var(--ink);
    transform-origin: center;
    transition: translate 0.25s var(--ease-out-quint), rotate 0.25s var(--ease-out-quint);
}

.sl-header.is-open .sl-header__menu-icon span:first-child {
    translate: 0 5px;
    rotate: 45deg;
}

.sl-header.is-open .sl-header__menu-icon span:last-child {
    translate: 0 -5px;
    rotate: -45deg;
}

.sl-header__mobile {
    display: none;
    flex-direction: column;
    padding: 0 24px 20px;
}

.sl-header__mobile a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    padding: 16px 0;
    color: var(--ink);
    font-size: 0.95rem;
    font-weight: 500;
}

.sl-header__mobile a span:last-child {
    color: var(--muted);
}

/* -----------------------------------------------------------------------------
   Hero — inset rounded surface
   -------------------------------------------------------------------------- */

.sl-hero {
    min-height: 100dvh;
    padding: 10px;
    background: var(--bg);
}

.sl-hero__surface {
    position: relative;
    min-height: calc(100dvh - 20px);
    overflow: hidden;
    border-radius: 30px;
    /* Static mesh acts as the WebGL fallback and as the paint before the
       shader's first frame. */
    background:
        radial-gradient(ellipse at 55% 52%, rgba(125, 226, 214, 0.5) 0%, rgba(47, 182, 201, 0.34) 24%, transparent 52%),
        radial-gradient(ellipse at 92% 14%, rgba(2, 44, 82, 0.9), transparent 46%),
        radial-gradient(ellipse at 8% 85%, rgba(4, 28, 43, 0.9), transparent 48%),
        linear-gradient(130deg, #06283a, #176b87 52%, #062a3d);
    color: #ffffff;
}

.sl-hero__surface::after {
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(110deg, rgba(4, 12, 18, 0.28), transparent 52%, rgba(255, 255, 255, 0.08));
    content: '';
    pointer-events: none;
}

.sl-shader {
    position: absolute;
    z-index: 0;
    inset: 0;
    width: 100%;
    height: 100%;
}

.sl-hero__content {
    position: relative;
    z-index: 2;
    display: flex;
    min-height: calc(100dvh - 20px);
    flex-direction: column;
    justify-content: space-between;
    padding: 150px 30px 30px;
    pointer-events: none;
}

.sl-hero__content .sl-btn,
.sl-hero__content a {
    pointer-events: auto;
}

.sl-hero__title {
    max-width: 18ch;
    font-size: clamp(2.75rem, 7.75vw, 7.75rem);
    font-weight: 500;
    letter-spacing: -0.075em;
    line-height: 0.95;
}

.sl-hero__bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.sl-hero__bottom p {
    max-width: 490px;
    font-size: clamp(1rem, 1.5vw, 1.45rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.9);
}

/* Vertical editorial rail on the right edge — kept clear of the CTA row. */
.sl-hero__meta {
    position: absolute;
    z-index: 2;
    top: 50%;
    right: 26px;
    display: flex;
    gap: 26px;
    color: rgba(255, 255, 255, 0.45);
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    writing-mode: vertical-rl;
    translate: 0 -50%;
    pointer-events: none;
}

/* Masked line-by-line headline reveal */
.sl-line-mask {
    display: block;
    overflow: hidden;
    padding-bottom: 0.06em;
    margin-bottom: -0.04em;
}

.sl-line {
    display: block;
    translate: 0 110%;
    animation: sl-line-rise 1s var(--ease-out-expo) both;
    will-change: transform;
}

.sl-line-mask:nth-of-type(1) .sl-line { animation-delay: 0.15s; }
.sl-line-mask:nth-of-type(2) .sl-line { animation-delay: 0.27s; }
.sl-line-mask:nth-of-type(3) .sl-line { animation-delay: 0.39s; }

@keyframes sl-line-rise {
    to {
        translate: 0 0;
    }
}

.sl-fade-up {
    opacity: 0;
    translate: 0 18px;
    animation: sl-fade-up 0.9s var(--ease-out-expo) both;
}

.sl-fade-up--1 { animation-delay: 0.55s; }
.sl-fade-up--2 { animation-delay: 0.68s; }

@keyframes sl-fade-up {
    to {
        opacity: 1;
        translate: 0 0;
    }
}

/* Per-character weight response to the pointer */
.sl-prox {
    display: inline-block;
    font-variation-settings: 'wght' 500;
    transition: font-variation-settings 0.14s ease-out;
    will-change: font-variation-settings;
}

/* -----------------------------------------------------------------------------
   Story — pinned scroll narrative
   -------------------------------------------------------------------------- */

.sl-story {
    position: relative;
    background: var(--bg);
}

.sl-story__intro {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
    padding: 34px 0;
}

.sl-story__intro h2 {
    max-width: 560px;
    font-size: clamp(2rem, 3.4vw, 3.7rem);
    font-weight: 400;
    letter-spacing: -0.08em;
    line-height: 1.03;
}

.sl-story__track {
    position: relative;
    min-height: 3300px;
}

.sl-story__sticky {
    position: sticky;
    top: 0;
    height: 100dvh;
    overflow: hidden;
    padding-top: 150px;
}

/* The counter is positioned against the content column, not the viewport. */
.sl-story__sticky > .sl-wrap {
    position: relative;
    height: 100%;
}

.sl-story__progress {
    position: absolute;
    z-index: 3;
    inset-inline: 0;
    top: 0;
    height: 1px;
    background: var(--line);
}

.sl-story__progress i {
    display: block;
    width: 0;
    height: 100%;
    background: var(--brand);
}

.sl-story__counter {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
}

.sl-story__counter i {
    font-style: normal;
    color: var(--faint);
}

.sl-story__counter small {
    position: absolute;
    top: 34px;
    left: 0;
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    white-space: nowrap;
}

.sl-story__message {
    position: relative;
    z-index: 2;
    width: 72%;
    min-height: 370px;
    margin-left: 27%;
}

.sl-story__frame {
    position: absolute;
    top: 0;
    left: 0;
    max-width: 980px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease;
}

.sl-story__frame.is-active {
    opacity: 1;
    visibility: inherit;
}

.sl-story__frame p {
    color: var(--faint);
    font-size: clamp(2.4rem, 5vw, 5.3rem);
    font-weight: 400;
    letter-spacing: -0.085em;
    line-height: 0.98;
}

.sl-scrub {
    color: var(--faint);
    transition: color 0.25s ease;
}

.sl-scrub.is-lit {
    color: var(--ink);
}

.sl-story__wave {
    position: absolute;
    z-index: 0;
    right: -8%;
    bottom: 0;
    left: -8%;
    height: 58%;
    opacity: 0.94;
    pointer-events: none;
}

.sl-story__wave canvas {
    width: 100%;
    height: 100%;
}

/* -----------------------------------------------------------------------------
   Cards — services and principles
   -------------------------------------------------------------------------- */

.sl-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 92px;
}

.sl-card {
    display: flex;
    min-width: 0;
    min-height: 360px;
    flex-direction: column;
    border-radius: 18px;
    padding: 32px;
    background: var(--paper);
    color: var(--ink);
    transition: background-color 0.4s var(--ease-out-quint), translate 0.4s var(--ease-out-quint);
}

.sl-card:hover {
    translate: 0 -4px;
}

.sl-card.is-featured {
    background: var(--brand-deep);
    color: #ffffff;
}

.sl-card.is-featured .sl-card__icon {
    background: rgba(255, 255, 255, 0.12);
    color: var(--brand-mint);
}

.sl-card.is-featured p,
.sl-card.is-featured .sl-code {
    color: rgba(255, 255, 255, 0.68);
}

.sl-card__icon {
    display: grid;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    place-items: center;
    border-radius: 10px;
    background: color-mix(in srgb, var(--ink) 8%, transparent);
    color: var(--ink);
    transition: rotate 0.5s var(--ease-out-quint), scale 0.5s var(--ease-out-quint);
}

.sl-card:hover .sl-card__icon {
    rotate: -6deg;
    scale: 1.06;
}

.sl-card__icon svg {
    width: 20px;
    height: 20px;
}

.sl-card__body {
    margin-top: 20px;
}

.sl-card h3 {
    margin: 0 0 10px;
    font-size: clamp(1.35rem, 2vw, 2rem);
    font-weight: 500;
    letter-spacing: -0.06em;
    line-height: 1.15;
}

.sl-card p {
    max-width: 330px;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.65;
}

/* -----------------------------------------------------------------------------
   Capabilities — oversized rounded dark block
   -------------------------------------------------------------------------- */

.sl-capabilities {
    margin: 10px;
    border-radius: 48px;
    background: var(--night);
    color: #f5f5f5;
}

.sl-capabilities__inner {
    padding: 112px 0;
}

.sl-capabilities__rule {
    height: 1px;
    margin-top: 26px;
    background: rgba(255, 255, 255, 0.14);
}

.sl-capabilities__panel {
    display: grid;
    grid-template-columns: 1.35fr 0.9fr;
    gap: 16px;
    margin-top: 60px;
    border-radius: 18px;
    padding: 12px;
    background: var(--bg);
    color: var(--ink);
}

.sl-capabilities__intro {
    display: flex;
    min-height: 270px;
    flex-direction: column;
    align-items: flex-start;
    padding: 28px;
}

.sl-capabilities__intro h3 {
    font-size: clamp(2.2rem, 3.4vw, 3.6rem);
    font-weight: 500;
    letter-spacing: -0.09em;
    line-height: 1;
}

.sl-capabilities__intro p {
    max-width: 44ch;
    margin: 22px 0 28px;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.sl-capabilities__intro .sl-textlink {
    margin-top: auto;
}

.sl-capabilities__mark {
    display: grid;
    min-height: 270px;
    place-items: center;
    border-radius: 16px;
    padding: 24px;
    background: var(--ink);
}

.sl-capabilities__mark img {
    width: min(230px, 70%);
    height: auto;
    filter: brightness(0) invert(1);
}

:root[data-theme='dark'] .sl-capabilities__mark img {
    filter: none;
}

.sl-stack {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    justify-items: center;
    gap: 36px 40px;
    margin-top: 82px;
}

/* Capped width keeps the corner brackets hugging the wordmark instead of
   drifting out to the grid cell edges. */
.sl-stack span {
    position: relative;
    display: grid;
    width: min(100%, 182px);
    min-height: 84px;
    place-items: center;
    padding: 22px 12px;
    color: #cfcfcf;
    font-size: clamp(1rem, 1.6vw, 1.4rem);
    font-weight: 500;
    letter-spacing: -0.03em;
    text-align: center;
    transition: color 0.3s ease;
}

.sl-stack span:hover {
    color: var(--brand-mint);
}

.sl-stack span::before,
.sl-stack span::after {
    position: absolute;
    width: 10px;
    height: 10px;
    border-color: #4f5b63;
    content: '';
    transition: border-color 0.3s ease;
}

.sl-stack span::before {
    top: 0;
    left: 0;
    border-top: 1px solid;
    border-left: 1px solid;
}

.sl-stack span::after {
    right: 0;
    bottom: 0;
    border-right: 1px solid;
    border-bottom: 1px solid;
}

.sl-stack span:hover::before,
.sl-stack span:hover::after {
    border-color: var(--brand-bright);
}

/* Typographic variety across the stack grid, upside-style. The letterforms
   change but the casing never does — these are product names. */
.sl-stack span[data-type='mono'] {
    font-family: var(--font-mono);
    font-size: clamp(0.9rem, 1.35vw, 1.2rem);
    font-weight: 400;
    letter-spacing: 0.01em;
}

.sl-stack span[data-type='serif'] {
    font-family: var(--font-serif);
    font-weight: 500;
    letter-spacing: -0.01em;
}

.sl-stack span[data-type='italic'] {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 500;
}

.sl-stack span[data-type='caps'] {
    font-weight: 700;
    letter-spacing: -0.04em;
}

.sl-stack span[data-type='light'] {
    font-weight: 300;
    letter-spacing: -0.01em;
}

/* -----------------------------------------------------------------------------
   Updates
   -------------------------------------------------------------------------- */

.sl-updates {
    padding-bottom: 104px;
}

.sl-update {
    position: relative;
    display: block;
    width: 58%;
    margin-top: 100px;
    border-top: 1px solid var(--line-strong);
    border-bottom: 1px solid var(--line-strong);
    padding: 42px 0 36px;
    transition: padding-inline 0.3s var(--ease-out-quint);
}

.sl-update:hover {
    padding-inline: 14px;
}

.sl-update__meta {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.sl-update h3 {
    margin: 28px 0 12px;
    max-width: 28ch;
    font-size: clamp(1.35rem, 2vw, 2rem);
    font-weight: 500;
    letter-spacing: -0.06em;
    line-height: 1.15;
}

.sl-update p {
    max-width: 62ch;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.sl-update__arrow {
    position: absolute;
    top: 32px;
    right: 0;
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 10px;
    background: var(--paper);
    color: var(--ink);
    font-size: 0.95rem;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.sl-update:hover .sl-update__arrow {
    background: var(--ink);
    color: var(--bg);
}

/* -----------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.sl-faq {
    padding-top: 64px;
    padding-bottom: 128px;
}

.sl-faq__list {
    margin-top: 82px;
    margin-left: 9%;
}

.sl-faq-item {
    border-top: 1px solid var(--line-strong);
}

.sl-faq-item:last-child {
    border-bottom: 1px solid var(--line-strong);
}

.sl-faq-item summary {
    display: grid;
    grid-template-columns: 64px 1fr 44px;
    align-items: center;
    padding: 25px 8px;
    cursor: pointer;
    list-style: none;
    transition: background-color 0.3s ease;
}

.sl-faq-item summary::-webkit-details-marker {
    display: none;
}

.sl-faq-item summary:hover {
    background: color-mix(in srgb, var(--ink) 3%, transparent);
}

.sl-faq-item__number {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-variant-numeric: tabular-nums;
}

.sl-faq-item__question {
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: -0.03em;
}

.sl-faq-item__plus {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    justify-self: end;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    color: var(--muted);
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1;
    transition: rotate 0.45s var(--ease-out-quint), border-color 0.25s ease, color 0.25s ease;
}

.sl-faq-item[open] .sl-faq-item__plus {
    rotate: 45deg;
    border-color: var(--ink);
    color: var(--ink);
}

.sl-faq-item__answer {
    overflow: hidden;
    padding-left: 64px;
}

.sl-faq-item__answer p {
    max-width: 72ch;
    margin: 0 0 30px;
    padding-right: 44px;
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.75;
}

/* -----------------------------------------------------------------------------
   Final CTA
   -------------------------------------------------------------------------- */

.sl-final {
    padding: 10px;
    background: var(--bg);
}

.sl-final__surface {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    border-radius: 30px;
    background:
        radial-gradient(ellipse at 50% 60%, rgba(125, 226, 214, 0.42) 0%, rgba(47, 182, 201, 0.28) 26%, transparent 54%),
        radial-gradient(ellipse at 88% 10%, rgba(2, 44, 82, 0.92), transparent 48%),
        linear-gradient(140deg, #06283a, #14607c 54%, #052435);
    color: #ffffff;
}

.sl-final__surface::after {
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(110deg, rgba(4, 12, 18, 0.3), transparent 55%, rgba(255, 255, 255, 0.07));
    content: '';
    pointer-events: none;
}

.sl-final__content {
    position: relative;
    z-index: 2;
    display: flex;
    min-height: 560px;
    flex-direction: column;
    justify-content: space-between;
    padding: 56px 58px 44px;
    pointer-events: none;
}

.sl-final__content a {
    pointer-events: auto;
}

.sl-final__content h2 {
    max-width: 20ch;
    font-size: clamp(2.6rem, 6vw, 5.8rem);
    font-weight: 500;
    letter-spacing: -0.085em;
    line-height: 0.95;
}

.sl-final__bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-top: 40px;
}

.sl-final__bottom p {
    max-width: 34ch;
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(1rem, 1.5vw, 1.45rem);
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.45;
}

/* -----------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.sl-footer {
    padding: 112px 0 30px;
    background: var(--bg);
    color: var(--ink);
}

.sl-footer__inner {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 0.7fr);
    gap: 36px;
    min-height: 240px;
}

.sl-footer__brand img {
    width: 150px;
    height: auto;
}

:root[data-theme='dark'] .sl-footer__brand img {
    filter: brightness(0) invert(1);
}

.sl-footer__brand p {
    max-width: 30ch;
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.7;
}

.sl-footer__column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.sl-footer__column h3 {
    margin: 0 0 8px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.sl-footer__column a {
    color: var(--muted);
    font-size: 0.86rem;
    transition: color 0.18s ease;
}

.sl-footer__column a:hover {
    color: var(--ink);
}

.sl-footer__bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    border-top: 1px solid var(--line);
    padding-top: 24px;
    color: var(--muted);
    font-size: 0.75rem;
}

.sl-footer__bottom div {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 22px;
}

/* -----------------------------------------------------------------------------
   Scroll reveal
   -------------------------------------------------------------------------- */

.sl-reveal {
    opacity: 0;
    translate: 0 22px;
    transition:
        opacity 0.8s var(--ease-out-expo),
        translate 0.8s var(--ease-out-expo);
}

.sl-reveal.is-visible {
    opacity: 1;
    translate: 0 0;
}

/* -----------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1200px) {
    .sl-header {
        width: min(calc(100% - 40px), 760px);
    }

    .sl-header__brand {
        min-width: 0;
        margin-left: 6px;
    }

    .sl-header__logo {
        width: 116px;
    }

    .sl-header__links a {
        padding-inline: 12px;
    }

    .sl-stack {
        gap: 32px 36px;
    }
}

@media (max-width: 1100px) {
    .sl-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sl-capabilities__panel {
        grid-template-columns: 1fr;
    }

    .sl-update {
        width: 78%;
    }
}

@media (max-width: 850px) {
    .sl-wrap {
        width: calc(100% - 40px);
    }

    .sl-header {
        top: 12px;
        width: calc(100% - 24px);
        max-width: none;
        overflow: hidden;
        border-radius: 22px;
    }

    .sl-header__shell {
        height: 72px;
        padding: 0 20px;
    }

    .sl-header__logo {
        width: 124px;
    }

    .sl-header__links,
    .sl-header__start {
        display: none;
    }

    .sl-header__actions {
        margin-left: auto;
    }

    .sl-header__menu {
        display: grid;
    }

    .sl-header.is-open .sl-header__mobile {
        display: flex;
    }

    .sl-hero {
        padding: 0;
    }

    .sl-hero__surface {
        min-height: 100dvh;
        border-radius: 0 0 30px 30px;
    }

    .sl-hero__content {
        min-height: 100dvh;
        padding: 132px 22px 26px;
    }

    .sl-hero__title {
        max-width: 16ch;
        font-size: clamp(2.6rem, 11vw, 5rem);
    }

    .sl-hero__bottom {
        display: block;
    }

    .sl-hero__bottom p {
        max-width: 34ch;
        margin-bottom: 22px;
        font-size: 1.05rem;
    }

    .sl-hero__meta {
        display: none;
    }

    .sl-section {
        padding: 92px 0;
    }

    .sl-heading {
        display: block;
    }

    .sl-heading__content {
        margin-top: 30px;
    }

    .sl-heading__content h2 {
        font-size: clamp(2.4rem, 11vw, 4.2rem);
    }

    .sl-heading__content p {
        margin-top: 30px;
    }

    .sl-story__intro {
        display: block;
        padding-top: 28px;
    }

    .sl-story__intro h2 {
        font-size: clamp(1.9rem, 8vw, 3rem);
    }

    .sl-story__intro .sl-btn {
        margin-top: 24px;
    }

    .sl-story__track {
        min-height: 2400px;
    }

    .sl-story__sticky {
        padding-top: 128px;
    }

    .sl-story__message {
        width: 100%;
        margin-left: 0;
        padding-top: 76px;
    }

    .sl-story__frame p {
        font-size: clamp(2rem, 9vw, 3.6rem);
    }

    .sl-card-grid {
        grid-template-columns: 1fr;
        margin-top: 56px;
    }

    .sl-card {
        min-height: 300px;
    }

    .sl-capabilities {
        margin: 0;
        border-radius: 0 0 30px 30px;
    }

    .sl-capabilities__inner {
        padding: 84px 0;
    }

    .sl-capabilities__panel {
        margin-top: 44px;
    }

    .sl-capabilities__intro {
        min-height: 0;
        padding: 22px;
    }

    .sl-capabilities__mark {
        min-height: 220px;
    }

    .sl-stack {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 20px;
        margin-top: 54px;
    }

    .sl-stack span {
        min-height: 72px;
        font-size: 0.95rem;
    }

    .sl-updates {
        padding-bottom: 96px;
    }

    .sl-update {
        width: 100%;
        margin-top: 56px;
        padding-top: 34px;
    }

    .sl-update h3 {
        margin-top: 22px;
    }

    .sl-update__arrow {
        top: 26px;
    }

    .sl-faq {
        padding-top: 40px;
        padding-bottom: 92px;
    }

    .sl-faq__list {
        margin-top: 52px;
        margin-left: 0;
    }

    .sl-faq-item summary {
        grid-template-columns: 40px 1fr 40px;
        padding-inline: 0;
    }

    .sl-faq-item__question {
        font-size: 0.98rem;
    }

    .sl-faq-item__answer {
        padding-left: 40px;
    }

    .sl-faq-item__answer p {
        padding-right: 0;
        font-size: 0.92rem;
    }

    .sl-final {
        padding: 0;
    }

    .sl-final__surface {
        min-height: 560px;
        border-radius: 30px 30px 0 0;
    }

    .sl-final__content {
        min-height: 560px;
        padding: 44px 22px 26px;
    }

    .sl-final__content h2 {
        max-width: 14ch;
        font-size: clamp(2.4rem, 12vw, 4.4rem);
    }

    .sl-final__bottom {
        display: block;
    }

    .sl-final__bottom p {
        max-width: none;
        margin-bottom: 24px;
        font-size: 1rem;
    }

    .sl-footer {
        padding: 82px 0 24px;
    }

    .sl-footer__inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 48px 24px;
        min-height: 0;
    }

    .sl-footer__brand {
        grid-column: span 2;
    }

    .sl-footer__bottom {
        display: block;
    }

    .sl-footer__bottom div {
        justify-content: flex-start;
        margin-top: 16px;
    }
}

@media (max-width: 560px) {
    .sl-hero__title {
        letter-spacing: -0.055em;
    }

    .sl-final__content h2 {
        letter-spacing: -0.06em;
    }

    .sl-stack {
        grid-template-columns: 1fr;
    }

    .sl-btn {
        font-size: 0.7rem;
    }

    .sl-btn > span:first-child {
        padding: 0 16px;
    }
}

/* -----------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

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

    .sl-header,
    .sl-line,
    .sl-fade-up {
        animation: none;
        opacity: 1;
        translate: -50% 0;
    }

    .sl-line,
    .sl-fade-up {
        translate: 0 0;
    }

    .sl-reveal {
        opacity: 1;
        translate: 0 0;
        transition: none;
    }

    .sl-prox,
    .sl-scrub,
    .sl-card,
    .sl-card__icon,
    .sl-roll__track,
    .sl-update,
    .sl-faq-item__plus {
        transition: none;
    }

    .sl-story__track {
        min-height: 0;
    }

    .sl-story__sticky {
        position: static;
        height: auto;
        padding-bottom: 80px;
    }

    .sl-story__message {
        width: 100%;
        min-height: 0;
        margin-left: 0;
    }

    .sl-story__frame {
        position: static;
        opacity: 1;
        visibility: visible;
        margin-bottom: 48px;
    }

    .sl-scrub {
        color: var(--ink);
    }

    .sl-story__counter,
    .sl-story__wave,
    .sl-story__progress {
        display: none;
    }
}
