/* ThirdPacket Technologies — redesign prototype
   Light theme. Accent palette is sampled from the original TP logo. */

/* ---------- Tokens ---------- */
:root {
    --bg: #ffffff;
    --bg-alt: #f5f7fa;
    --bg-deep: #0b1629;
    --surface: #ffffff;

    --border: rgba(11, 22, 41, 0.1);
    --border-strong: rgba(11, 22, 41, 0.18);

    --ink: #0b1629;
    --text: #0b1629;
    --text-muted: #4e5b72;
    --text-dim: #7c8798;

    --accent: #db4f0a;
    --accent-2: #f58220;
    --accent-3: #b23a05;
    --accent-ink: #b23a05;
    --accent-soft: rgba(219, 79, 10, 0.1);

    --grad: linear-gradient(120deg, #f58220 0%, #db4f0a 55%, #b23a05 100%);
    --grad-soft: linear-gradient(120deg, rgba(245, 130, 32, 0.07), rgba(219, 79, 10, 0.05));

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;

    --shadow-sm: 0 1px 2px rgba(11, 22, 41, 0.05), 0 10px 26px -16px rgba(11, 22, 41, 0.22);
    --shadow: 0 20px 46px -24px rgba(11, 22, 41, 0.34);

    --maxw: 1200px;
    --nav-h: 78px;

    --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 20px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

h1,
h2,
h3,
h4 {
    margin: 0;
    line-height: 1.15;
    letter-spacing: -0.025em;
    font-weight: 700;
}

p {
    margin: 0;
}

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

::selection {
    background: rgba(245, 130, 32, 0.25);
}

/* ---------- Layout ---------- */
.wrap {
    width: min(100% - 44px, var(--maxw));
    margin-inline: auto;
}

.section {
    position: relative;
    padding: clamp(72px, 9vw, 124px) 0;
}

.section--tight {
    padding: clamp(52px, 6vw, 84px) 0;
}

.section--alt {
    background: var(--bg-alt);
    border-block: 1px solid var(--border);
}

.section-head {
    max-width: 780px;
    margin-bottom: clamp(38px, 5vw, 60px);
}

.section-head--center {
    margin-inline: auto;
    text-align: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent-ink);
    margin-bottom: 18px;
}

.eyebrow::before {
    content: "";
    width: 26px;
    height: 2px;
    border-radius: 2px;
    background: var(--grad);
}

.section-head--center .eyebrow::before {
    display: none;
}

h1 {
    font-size: clamp(2.5rem, 5.8vw, 4.1rem);
    letter-spacing: -0.04em;
}

h2 {
    font-size: clamp(1.9rem, 3.6vw, 2.8rem);
    letter-spacing: -0.035em;
}

h3 {
    font-size: 1.2rem;
}

.lede {
    color: var(--text-muted);
    font-size: clamp(1.03rem, 1.5vw, 1.17rem);
    margin-top: 20px;
}

.gradient-text {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 24px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease,
        border-color 0.22s ease, color 0.22s ease;
    white-space: nowrap;
}

.btn svg {
    width: 17px;
    height: 17px;
    transition: transform 0.22s ease;
}

.btn:hover svg {
    transform: translateX(3px);
}

.btn--primary {
    background: var(--grad);
    color: #fff;
    box-shadow: 0 12px 26px -14px rgba(178, 58, 5, 0.85);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px -14px rgba(178, 58, 5, 0.9);
}

.btn--ghost {
    background: var(--surface);
    border-color: var(--border-strong);
    color: var(--ink);
}

.btn--ghost:hover {
    border-color: var(--accent);
    color: var(--accent-ink);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn--sm {
    padding: 10px 18px;
    font-size: 14px;
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 36px;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-ink);
    font-weight: 600;
    font-size: 15px;
}

.link-arrow svg {
    width: 16px;
    height: 16px;
    transition: transform 0.22s ease;
}

.link-arrow:hover svg {
    transform: translateX(4px);
}

/* ---------- Header / nav ---------- */
.header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    border-bottom: 1px solid transparent;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.header.is-stuck {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px) saturate(150%);
    border-bottom-color: var(--border);
    box-shadow: 0 8px 24px -22px rgba(11, 22, 41, 0.5);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: min(100% - 44px, var(--maxw));
    margin-inline: auto;
}

.brand {
    display: inline-flex;
    align-items: center;
}

.brand img {
    height: 42px;
    width: auto;
}

.nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav a {
    padding: 9px 14px;
    border-radius: 999px;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s ease, background 0.2s ease;
}

.nav a:hover {
    color: var(--ink);
    background: rgba(11, 22, 41, 0.05);
}

.nav a.is-active {
    color: var(--accent-ink);
    background: var(--accent-soft);
    font-weight: 600;
}

/* CTA inside the nav is mobile-only */
.nav .btn {
    display: none;
}

.header__cta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid var(--border-strong);
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
}

.nav-toggle span {
    position: relative;
    width: 18px;
    height: 1.8px;
    background: currentColor;
    transition: background 0.2s ease;
}

.nav-toggle span::before,
.nav-toggle span::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 1.8px;
    background: currentColor;
    transition: transform 0.25s ease;
}

.nav-toggle span::before {
    top: -6px;
}

.nav-toggle span::after {
    top: 6px;
}

body.nav-open .nav-toggle span {
    background: transparent;
}

body.nav-open .nav-toggle span::before {
    transform: translateY(6px) rotate(45deg);
}

body.nav-open .nav-toggle span::after {
    transform: translateY(-6px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: min(86vh, 820px);
    display: flex;
    align-items: center;
    padding: calc(var(--nav-h) + 56px) 0 80px;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(180deg, #fdf7f2 0%, #ffffff 72%);
    border-bottom: 1px solid var(--border);
}

.hero__canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    opacity: 0.7;
}

.hero__glow {
    position: absolute;
    z-index: -3;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
}

.hero__glow--a {
    width: 620px;
    height: 620px;
    top: -260px;
    right: -140px;
    background: radial-gradient(circle, rgba(245, 130, 32, 0.3), transparent 68%);
}

.hero__glow--b {
    width: 720px;
    height: 720px;
    bottom: -400px;
    left: -240px;
    background: radial-gradient(circle, rgba(219, 79, 10, 0.14), transparent 68%);
}

.hero__inner {
    max-width: 900px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 16px 7px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.chip b {
    color: var(--ink);
    font-weight: 600;
}

.chip__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(219, 79, 10, 0.15);
}

.hero h1 span {
    display: block;
}

.hero__lede {
    max-width: 680px;
}

.hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    margin-top: 52px;
    padding-top: 26px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 13.5px;
    font-family: var(--font-mono);
    letter-spacing: 0.02em;
}

.hero__meta b {
    color: var(--text-dim);
    font-weight: 500;
}

/* ---------- Stats ---------- */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.stat {
    background: var(--surface);
    padding: 34px 28px;
    text-align: center;
}

.stat__num {
    font-size: clamp(2.1rem, 4vw, 2.9rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat__label {
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 14px;
}

/* ---------- Cards / grids ---------- */
.grid {
    display: grid;
    gap: 22px;
}

.grid--2 {
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}

.grid--3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid--4 {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.card {
    position: relative;
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--grad-soft);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.card::after {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: var(--grad);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(219, 79, 10, 0.28);
    box-shadow: var(--shadow);
}

.card:hover::before,
.card:hover::after {
    opacity: 1;
    transform: scaleX(1);
}

.card > * {
    position: relative;
}

.card h3 {
    margin-bottom: 12px;
}

.card p {
    color: var(--text-muted);
    font-size: 15.5px;
}

.card__icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    border: 1px solid rgba(219, 79, 10, 0.2);
    background: var(--accent-soft);
    color: var(--accent-ink);
    margin-bottom: 22px;
}

.card__icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.card--feature {
    padding: 36px;
}

.card__index {
    position: absolute;
    top: 22px;
    right: 26px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-dim);
    letter-spacing: 0.08em;
}

/* Keep headings clear of the absolutely positioned index number */
.card__index ~ h3 {
    padding-right: 40px;
}

/* Bullet lists inside cards */
.tick-list {
    display: grid;
    gap: 10px;
    margin-top: 20px;
}

.tick-list li {
    position: relative;
    padding-left: 26px;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.55;
}

.tick-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: var(--grad);
}

.tick-list--cols {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 10px 28px;
}

/* ---------- Pills / badges ---------- */
.pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pill {
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    font-size: 14px;
    transition: border-color 0.25s ease, color 0.25s ease, transform 0.25s ease,
        box-shadow 0.25s ease;
}

.pill:hover {
    border-color: rgba(219, 79, 10, 0.4);
    color: var(--accent-ink);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* ---------- Split layout ---------- */
.split {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(34px, 5vw, 72px);
    align-items: center;
}

.split--top {
    align-items: start;
}

/* ---------- Timeline (contracts) ---------- */
.timeline {
    position: relative;
    display: grid;
    gap: 26px;
    padding-left: 34px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    border-radius: 2px;
    background: linear-gradient(to bottom, var(--accent-2), rgba(219, 79, 10, 0.35), transparent);
}

.timeline__item {
    position: relative;
}

.timeline__item::before {
    content: "";
    position: absolute;
    left: -33px;
    top: 8px;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    background: var(--bg);
}

.timeline__item::after {
    content: "";
    position: absolute;
    left: -28px;
    top: 13px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--grad);
}

.timeline__tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-ink);
    margin-bottom: 8px;
}

.timeline__item h3 {
    margin-bottom: 10px;
}

.timeline__item p {
    color: var(--text-muted);
    font-size: 15.5px;
}

/* ---------- Logo wall ---------- */
.logo-wall {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.logo-wall div {
    background: var(--surface);
    min-height: 100px;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: -0.01em;
    transition: background 0.25s ease, color 0.25s ease;
}

.logo-wall div:hover {
    background: var(--bg-alt);
    color: var(--ink);
}

/* ---------- Marquee ---------- */
.marquee {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee__track {
    display: flex;
    gap: 56px;
    width: max-content;
    animation: marquee 38s linear infinite;
}

.marquee span {
    color: var(--text-dim);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

@keyframes marquee {
    to {
        transform: translateX(-50%);
    }
}

/* ---------- CTA band ---------- */
.cta {
    position: relative;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: clamp(40px, 6vw, 68px);
    text-align: center;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background:
        radial-gradient(760px 300px at 50% 0%, rgba(245, 130, 32, 0.16), transparent 70%),
        var(--bg-alt);
}

.cta h2 {
    max-width: 700px;
    margin-inline: auto;
}

.cta p {
    max-width: 560px;
    margin: 18px auto 0;
    color: var(--text-muted);
}

.cta .btn-row {
    justify-content: center;
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
    position: relative;
    padding: calc(var(--nav-h) + 74px) 0 58px;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    background:
        radial-gradient(760px 340px at 12% 0%, rgba(245, 130, 32, 0.16), transparent 68%),
        radial-gradient(620px 300px at 88% 8%, rgba(219, 79, 10, 0.08), transparent 68%),
        linear-gradient(180deg, #fdf7f2, #ffffff 85%);
}

.page-hero h1 {
    font-size: clamp(2.1rem, 4.4vw, 3.25rem);
    max-width: 900px;
}

.page-hero .lede {
    max-width: 720px;
}

.crumbs {
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--text-dim);
    margin-bottom: 20px;
    letter-spacing: 0.04em;
}

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

/* ---------- Contact ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: clamp(28px, 4vw, 56px);
    align-items: start;
}

.form {
    display: grid;
    gap: 18px;
    padding: clamp(26px, 3.5vw, 40px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.field {
    display: grid;
    gap: 8px;
}

.field label {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: 0.01em;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 13px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-strong);
    background: var(--bg);
    color: var(--ink);
    font-family: inherit;
    font-size: 15px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
    min-height: 148px;
    resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
    color: var(--text-dim);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(219, 79, 10, 0.14);
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form__note {
    font-size: 13px;
    color: var(--text-dim);
}

.form__status {
    font-size: 14.5px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(219, 79, 10, 0.3);
    background: var(--accent-soft);
    color: var(--ink);
}

.form__status[hidden] {
    display: none;
}

.info-card {
    padding: 28px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.info-card + .info-card {
    margin-top: 20px;
}

.info-card h3 {
    font-size: 1.05rem;
    margin-bottom: 14px;
}

.info-card p,
.info-card a {
    color: var(--text-muted);
    font-size: 15.5px;
}

.info-card a:hover {
    color: var(--accent-ink);
}

.kv {
    display: grid;
    gap: 12px;
    margin-top: 4px;
}

.kv div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    font-size: 14.5px;
}

.kv div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.kv .k {
    color: var(--text-dim);
}

.kv .v {
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 13.5px;
    text-align: right;
}

.kv .v a:hover {
    color: var(--accent-ink);
}

/* ---------- Footer ---------- */
.footer {
    background: var(--bg-deep);
    color: rgba(255, 255, 255, 0.72);
    padding: 66px 0 32px;
}

.footer .brand img {
    height: 46px;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer__grid p {
    color: rgba(255, 255, 255, 0.66);
    font-size: 15px;
    margin-top: 18px;
    max-width: 320px;
}

.footer h4 {
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-2);
    margin-bottom: 16px;
    font-weight: 700;
}

.footer li + li {
    margin-top: 10px;
}

.footer li a {
    color: rgba(255, 255, 255, 0.72);
    font-size: 15px;
    transition: color 0.2s ease;
}

.footer li a:hover {
    color: var(--accent-2);
}

.footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 14px;
    margin-top: 52px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.5);
    font-size: 13.5px;
}

.social {
    display: flex;
    gap: 10px;
}

.social a {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    border: 1px solid var(--border-strong);
    color: var(--text-muted);
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.social a:hover {
    color: var(--accent-ink);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.footer .social a {
    border-color: rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.72);
}

.footer .social a:hover {
    color: var(--accent-2);
    border-color: var(--accent-2);
}

.social svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

/* ---------- Scroll reveal ---------- */
[data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--delay, 0ms);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

/* ---------- Skip link ---------- */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 12px;
    z-index: 200;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
}

.skip-link:focus {
    left: 22px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
    .split,
    .contact-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 880px) {
    .nav-toggle {
        display: inline-flex;
    }

    .header__cta .btn {
        display: none;
    }

    .nav {
        position: fixed;
        inset: var(--nav-h) 0 auto 0;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 18px 22px 26px;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(18px);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 24px 40px -30px rgba(11, 22, 41, 0.6);
        transform: translateY(-14px);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    }

    body.nav-open .nav {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .nav a {
        padding: 13px 14px;
        font-size: 16px;
        border-radius: 12px;
    }

    .nav .btn {
        display: inline-flex;
        margin-top: 12px;
        color: #fff;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 16px;
    }

    .wrap,
    .header__inner {
        width: min(100% - 32px, var(--maxw));
    }

    .brand img {
        height: 36px;
    }

    .hero {
        min-height: auto;
        padding-top: calc(var(--nav-h) + 44px);
    }

    .field-row,
    .footer__grid {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 24px;
    }

    .hero__meta {
        gap: 8px 18px;
        font-size: 12.5px;
    }
}

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

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }

    [data-reveal] {
        opacity: 1;
        transform: none;
    }
}
