:root {
    --bg: #f4efe7;
    --bg-soft: #fbf7f1;
    --surface: rgba(255, 255, 255, 0.72);
    --surface-strong: #fffdf9;
    --text: #13261d;
    --text-soft: #4f645b;
    --line: rgba(19, 38, 29, 0.12);
    --accent: #ff6b2c;
    --accent-deep: #d24a14;
    --accent-alt: #0f766e;
    --shadow: 0 24px 80px rgba(19, 38, 29, 0.12);
    --radius: 28px;
    --radius-sm: 18px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Instrument Sans', sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(255, 107, 44, 0.18), transparent 28%),
        radial-gradient(circle at 85% 15%, rgba(15, 118, 110, 0.14), transparent 22%),
        linear-gradient(180deg, #f8f3eb 0%, #f3ede3 48%, #f8f5ef 100%);
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: linear-gradient(rgba(19, 38, 29, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(19, 38, 29, 0.03) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(circle at center, black 45%, transparent 90%);
    pointer-events: none;
    z-index: -1;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

.site-shell {
    min-height: 100vh;
}

.container {
    width: min(calc(100% - 2rem), var(--container));
    margin: 0 auto;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(16px);
    background: rgba(248, 243, 235, 0.72);
    border-bottom: 1px solid rgba(19, 38, 29, 0.08);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 16px 36px rgba(255, 107, 44, 0.28);
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.brand-copy strong,
.site-nav a,
.button,
h1,
h2,
h3,
.metric-card strong,
.timeline-item span,
.footer-title {
    font-family: 'Space Grotesk', sans-serif;
}

.brand-copy small {
    color: var(--text-soft);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.site-nav a {
    position: relative;
    font-size: 0.95rem;
}

.site-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -0.35rem;
    width: 100%;
    height: 2px;
    transform: scaleX(0);
    transform-origin: left;
    background: var(--accent);
    transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a[aria-current='page']::after {
    transform: scaleX(1);
}

.site-nav a[aria-current='page'] {
    color: var(--accent-deep);
}

.nav-toggle {
    display: none;
    border: 0;
    background: transparent;
    padding: 0.35rem;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--text);
    margin: 5px 0;
}

.hero {
    padding: 5rem 0 3rem;
}

.page-hero {
    padding: 4.4rem 0 1.5rem;
}

.page-hero-compact {
    padding-bottom: 0.5rem;
}

.hero-grid,
.contact-grid,
.capability-grid,
.process-grid,
.footer-grid,
.intro-grid,
.showcase {
    display: grid;
    gap: 2rem;
}

.hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    min-height: calc(100vh - 120px);
}

.eyebrow,
.section-kicker,
.pillar-eyebrow {
    margin: 0 0 1rem;
    color: var(--accent-deep);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    font-weight: 700;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 12ch;
    margin-bottom: 1rem;
    font-size: clamp(3rem, 7vw, 6.2rem);
    line-height: 0.95;
    letter-spacing: -0.06em;
}

h2 {
    max-width: 14ch;
    margin-bottom: 0;
    font-size: clamp(2rem, 4.3vw, 3.6rem);
    line-height: 1;
    letter-spacing: -0.05em;
}

h3 {
    font-size: 1.3rem;
    margin-bottom: 0.6rem;
}

.hero-text,
.section-lead,
.service-card p,
.pillar-card p,
.showcase-points p,
.timeline-item p,
.contact-copy p,
.footer-copy,
.form-state p {
    color: var(--text-soft);
    font-size: 1.02rem;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0.9rem 1.5rem;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-2px);
}

.button-primary {
    background: linear-gradient(135deg, var(--accent), #ff8a59);
    color: white;
    box-shadow: 0 18px 40px rgba(255, 107, 44, 0.28);
}

.button-secondary {
    border-color: rgba(19, 38, 29, 0.12);
    background: rgba(255, 255, 255, 0.48);
}

.button-wide {
    width: 100%;
}

.metric-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.metric-card,
.service-card,
.pillar-card,
.timeline-item,
.contact-form,
.showcase,
.stack-card {
    border: 1px solid var(--line);
    background: var(--surface);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
}

.metric-card {
    padding: 1.2rem;
    border-radius: 22px;
}

.metric-card strong {
    display: block;
    font-size: 2rem;
    margin-bottom: 0.35rem;
}

.metric-card span {
    color: var(--text-soft);
    font-size: 0.95rem;
}

.hero-panel {
    position: relative;
}

.panel-orbit {
    position: absolute;
    inset: 12% 8% auto auto;
    width: 240px;
    height: 240px;
    border: 1px dashed rgba(19, 38, 29, 0.14);
    border-radius: 50%;
    animation: spin 20s linear infinite;
}

.hero-stack {
    position: relative;
    padding: 4rem 0 2rem;
}

.stack-card {
    position: relative;
    padding: 1.5rem;
    border-radius: var(--radius);
}

.stack-card p,
.stack-card span {
    margin-bottom: 0.65rem;
    color: var(--text-soft);
}

.stack-card strong {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.65rem;
    line-height: 1.1;
    margin-bottom: 0.7rem;
}

.stack-card-primary {
    z-index: 1;
    padding-bottom: 2.75rem;
    background: linear-gradient(180deg, #fffaf2, rgba(255, 255, 255, 0.86));
}

.stack-card-media {
    padding: 1rem;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 239, 231, 0.92));
}

.stack-card-media img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: calc(var(--radius) - 10px);
    object-fit: contain;
}

.stack-card-shift {
    max-width: 88%;
    z-index: 2;
    margin: -1.1rem 0 0 auto;
    background: linear-gradient(180deg, rgba(15, 118, 110, 0.1), rgba(255, 255, 255, 0.86));
}

.stack-card-inline {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 1rem;
    background: rgba(19, 38, 29, 0.9);
    color: white;
}

.stack-card-inline span {
    margin: 0;
    padding: 0.45rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.82);
}

.intro-band {
    padding: 1rem 0 2rem;
}

.intro-grid {
    grid-template-columns: 0.5fr 1fr;
    align-items: start;
    padding: 2rem;
    border-top: 1px solid var(--line);
}

.section {
    padding: 3.5rem 0;
}

.section-tight {
    padding-top: 1rem;
}

.section-alt {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0));
}

.section-accent {
    position: relative;
}

.section-accent::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 107, 44, 0.08), rgba(15, 118, 110, 0.06));
    pointer-events: none;
}

.section-heading {
    display: grid;
    gap: 0.6rem;
    margin-bottom: 2rem;
}

.page-hero-head {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.8fr);
    gap: 2rem;
    align-items: center;
}

.page-hero-head h1 {
    max-width: 10.5ch;
    margin-bottom: 1rem;
    font-size: clamp(2.8rem, 6vw, 5rem);
}

.page-hero-head .section-lead {
    max-width: 58ch;
    margin-bottom: 0;
}

.page-hero-side {
    display: grid;
    gap: 1rem;
    justify-items: end;
}

.page-crumbs {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
    padding: 0.95rem 1.2rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.58);
    color: var(--text-soft);
    white-space: nowrap;
}

.page-crumbs strong {
    color: var(--text);
}

.page-hero-media {
    width: min(100%, 520px);
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: calc(var(--radius) + 6px);
    background: linear-gradient(180deg, rgba(255, 252, 247, 0.9), rgba(245, 249, 247, 0.82));
    box-shadow: var(--shadow);
}

.page-hero-media img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 22px;
    object-fit: cover;
}

.product-overview {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
    gap: 1.4rem;
    align-items: start;
    margin-bottom: 1.4rem;
    padding: 1.5rem;
    border: 1px solid var(--line);
    border-radius: calc(var(--radius) + 4px);
    background: linear-gradient(135deg, rgba(255, 248, 241, 0.92), rgba(246, 252, 250, 0.76));
    box-shadow: var(--shadow);
}

.product-overview-copy h2 {
    max-width: 18ch;
    margin-bottom: 0.9rem;
    font-size: clamp(1.4rem, 2.2vw, 2rem);
    line-height: 1.04;
}

.product-overview-copy .section-lead {
    max-width: 46ch;
    margin-bottom: 0;
    font-size: 0.98rem;
}

.product-overview-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    align-self: start;
}

.product-overview-stats article {
    display: grid;
    align-content: start;
    gap: 0.35rem;
    min-height: 184px;
    padding: 1.35rem 1.2rem;
    border: 1px solid rgba(19, 38, 29, 0.08);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.72);
}

.product-overview-stats strong {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 3.6vw, 2.9rem);
    line-height: 1;
}

.product-overview-stats span {
    color: var(--text-soft);
    font-size: 0.95rem;
    line-height: 1.45;
}

.service-grid,
.pillar-grid,
.timeline,
.showcase-points,
.product-grid {
    display: grid;
    gap: 1.25rem;
}

.service-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
}

.pillar-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card,
.pillar-card,
.timeline-item,
.contact-form,
.product-card {
    padding: 1.6rem;
    border-radius: var(--radius);
}

.product-card {
    display: grid;
    gap: 1rem;
    min-height: 100%;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 251, 246, 0.7));
    box-shadow: var(--shadow);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
    overflow: hidden;
}

.product-card:hover,
.product-card:focus-within {
    transform: translateY(-4px);
    border-color: rgba(19, 38, 29, 0.18);
    box-shadow: 0 28px 90px rgba(19, 38, 29, 0.16);
}

.product-card-media {
    position: relative;
    overflow: hidden;
    padding: 0.85rem;
    border-radius: 24px;
    min-height: 250px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(245, 238, 228, 0.9));
}

.product-card-media::after {
    content: '';
    position: absolute;
    inset: auto -18% -28% auto;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    filter: blur(2px);
}

.product-card-media img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1200 / 760;
    object-fit: contain;
    border-radius: 18px;
}

.product-card-lottie {
    display: block;
    width: 100%;
    aspect-ratio: 1200 / 760;
    border-radius: 18px;
}

.product-card-chip,
.product-card-index {
    position: absolute;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    backdrop-filter: blur(10px);
}

.product-card-chip {
    top: 1.15rem;
    left: 1.15rem;
    padding: 0.5rem 0.85rem;
    background: rgba(19, 38, 29, 0.82);
    color: white;
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.product-card-index {
    top: 1.15rem;
    right: 1.15rem;
    justify-content: center;
    min-width: 2.5rem;
    padding: 0.45rem 0.75rem;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(19, 38, 29, 0.1);
    color: var(--text);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
}

.product-card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    padding: 0 0.15rem;
}

.product-card-features span {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.7rem;
    background: rgba(255, 253, 249, 0.86);
    border: 1px solid rgba(19, 38, 29, 0.08);
    border-radius: 999px;
    color: var(--text);
    font-size: 0.78rem;
    line-height: 1.2;
    max-width: 100%;
}

.product-card-copy h3 {
    margin-bottom: 0.75rem;
    font-size: clamp(1.18rem, 1.4vw, 1.35rem);
    line-height: 1.12;
    overflow-wrap: anywhere;
}

.product-card-copy p {
    margin-bottom: 0;
    color: var(--text-soft);
    line-height: 1.7;
}

.product-card-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(19, 38, 29, 0.08);
}

.product-card-footer span {
    color: var(--text-soft);
    font-size: 0.9rem;
}

.product-card-footer a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    background: rgba(19, 38, 29, 0.92);
    color: white;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.92rem;
}

.tone-amber .product-card-media {
    background: linear-gradient(145deg, rgba(255, 234, 220, 0.94), rgba(255, 248, 241, 0.88));
}

.tone-teal .product-card-media {
    background: linear-gradient(145deg, rgba(214, 241, 238, 0.94), rgba(246, 252, 250, 0.88));
}

.tone-slate .product-card-media {
    background: linear-gradient(145deg, rgba(225, 231, 235, 0.94), rgba(248, 249, 251, 0.9));
}

.service-icon {
    display: inline-block;
    width: 42px;
    height: 42px;
    margin-bottom: 1rem;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 107, 44, 0.18), rgba(15, 118, 110, 0.18));
}

.capability-grid,
.process-grid,
.contact-grid,
.footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
}

.showcase {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    align-items: start;
    gap: 2.5rem;
    padding: 2rem;
    border-radius: calc(var(--radius) + 6px);
}

.showcase-copy {
    max-width: 560px;
}

.showcase-copy h2 {
    max-width: 9ch;
    margin-bottom: 1rem;
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 0.92;
}

.showcase-copy .section-lead {
    max-width: 34ch;
    margin-bottom: 0;
}

.capability-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.45fr);
    gap: 3rem;
}

.capability-grid > * {
    min-width: 0;
}

.capability-grid .section-heading {
    max-width: 480px;
    margin-bottom: 0;
}

.pillar-grid {
    min-width: 0;
    align-items: stretch;
}

.pillar-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 100%;
    padding: 2rem 1.9rem;
    border-radius: 30px;
    background: rgba(255, 253, 249, 0.88);
}

.pillar-eyebrow {
    margin-bottom: 1.5rem;
    color: #586c64;
    font-size: 0.9rem;
    letter-spacing: 0.16em;
}

.pillar-card h3 {
    margin-bottom: 1rem;
    font-size: clamp(1.85rem, 2.1vw, 2.3rem);
    line-height: 1.14;
    letter-spacing: -0.04em;
}

.pillar-card p:last-child {
    margin-bottom: 0;
}

.showcase-points {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-self: stretch;
}

.showcase-points article,
.footer-label {
    color: var(--text-soft);
}

.showcase-points article {
    padding: 1.4rem 1.25rem 1.35rem;
    border-top: 3px solid rgba(255, 107, 44, 0.38);
    border-radius: 22px;
    background: rgba(255, 252, 247, 0.72);
}

.showcase-points strong {
    display: block;
    margin-bottom: 0.55rem;
    color: #546a62;
    font-size: 1.05rem;
    line-height: 1.18;
}

.showcase-points p {
    margin-bottom: 0;
    font-size: 1rem;
    line-height: 1.7;
}

.timeline-item {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 1rem;
    align-items: start;
}

.timeline-item span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 107, 44, 0.16), rgba(15, 118, 110, 0.2));
    font-size: 1.2rem;
}

.contact-meta {
    display: grid;
    gap: 0.8rem;
    margin-top: 2rem;
}

.contact-form {
    display: grid;
    gap: 1rem;
}

.contact-form label {
    display: grid;
    gap: 0.55rem;
}

.contact-form span {
    font-size: 0.92rem;
    color: var(--text-soft);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid rgba(19, 38, 29, 0.14);
    border-radius: 18px;
    padding: 0.95rem 1rem;
    background: rgba(255, 255, 255, 0.78);
    color: var(--text);
}

.contact-form textarea {
    resize: vertical;
}

.form-state {
    padding: 0.8rem 1rem;
    border-radius: 18px;
}

.form-state-error {
    background: rgba(190, 24, 24, 0.08);
    color: #991b1b;
}

.form-state-success {
    background: rgba(21, 128, 61, 0.1);
    color: #166534;
}

.footer {
    padding: 1.5rem 0 2.5rem;
}

.footer-grid {
    padding-top: 1.75rem;
    border-top: 1px solid var(--line);
}

.footer-title {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.footer a {
    display: block;
    margin-bottom: 0.55rem;
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 500ms ease, transform 500ms ease;
}

.reveal-delay {
    transition-delay: 120ms;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1080px) {
    .hero-grid,
    .page-hero-head,
    .product-overview,
    .intro-grid,
    .capability-grid,
    .process-grid,
    .contact-grid,
    .showcase,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .service-grid,
    .pillar-grid,
    .showcase-points,
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .showcase {
        grid-template-columns: 1fr;
    }

    .page-hero-side {
        justify-items: start;
    }

    .product-overview-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hero-grid {
        min-height: auto;
        padding-top: 2rem;
    }
}

@media (max-width: 760px) {
    .site-nav {
        position: absolute;
        top: calc(100% + 0.65rem);
        right: 1rem;
        display: none;
        width: min(280px, calc(100vw - 2rem));
        padding: 1rem;
        border: 1px solid var(--line);
        border-radius: 22px;
        background: rgba(255, 250, 244, 0.96);
        box-shadow: var(--shadow);
    }

    .site-nav.is-open {
        display: grid;
        gap: 1rem;
    }

    .nav-toggle {
        display: block;
    }

    .metric-row,
    .service-grid,
    .pillar-grid,
    .showcase-points,
    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-overview-stats {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 3rem;
    }

    h1 {
        max-width: none;
        font-size: clamp(2.8rem, 15vw, 4.4rem);
    }

    h2 {
        max-width: none;
    }

    .page-hero {
        padding-top: 3rem;
    }

    .page-crumbs {
        white-space: normal;
    }

    .page-hero-media {
        width: 100%;
    }

    .product-card-media {
        min-height: 220px;
    }

    .product-card-media img {
        height: auto;
    }

    .product-card-footer {
        align-items: stretch;
    }

    .stack-card-shift {
        max-width: 100%;
        margin-left: 0;
    }

    .timeline-item {
        grid-template-columns: 1fr;
    }
}
