:root {
    --ice: #eef5fa;
    --ice-deep: #dfeaf3;
    --ink: #0b1c2d;
    --ink-soft: #3a5166;
    --muted: #5a7186;
    --line: rgba(11, 28, 45, 0.12);
    --signal: #0b8ec9;
    --signal-deep: #066a9e;
    --white: #ffffff;
    --hero-ink: #f4f9fc;

    --font-display: "Bricolage Grotesque", Georgia, serif;
    --font-body: "Figtree", system-ui, sans-serif;
    --font-brand: "Montserrat", "Figtree", system-ui, sans-serif;

    --header-h: 4.25rem;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --space: clamp(1.25rem, 4vw, 2.5rem);
    --max: 1120px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--ice);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a {
    color: inherit;
}

ul,
ol {
    list-style: none;
}

.eyebrow {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--signal-deep);
    margin-bottom: 0.85rem;
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.12;
}

h2 {
    font-size: clamp(2rem, 4.4vw, 3.1rem);
    margin-bottom: 1rem;
}

h3 {
    font-size: clamp(1.3rem, 2.3vw, 1.7rem);
    margin-bottom: 0.75rem;
}

.section__lede {
    font-size: 1.12rem;
    color: var(--muted);
    max-width: 36rem;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--header-h);
    transition: background 0.35s var(--ease), border-color 0.35s, backdrop-filter 0.35s;
    border-bottom: 1px solid transparent;
}

.site-header.is-scrolled,
.site-header.is-solid {
    background: rgba(238, 245, 250, 0.9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom-color: var(--line);
}

.site-header.is-hero .nav__wordmark,
.site-header.is-hero .nav__links a {
    color: var(--hero-ink);
}

.site-header.is-hero .nav__links a:hover {
    color: #fff;
}

.site-header.is-hero .nav__toggle span {
    background: var(--hero-ink);
}

.site-header.is-hero:not(.is-scrolled) .nav__cta {
    background: rgba(255, 255, 255, 0.16);
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.nav {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--space);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.nav__mark {
    width: 2.15rem;
    height: 2.15rem;
    object-fit: contain;
    border-radius: 7px;
    flex-shrink: 0;
}

.nav__wordmark {
    font-family: var(--font-brand);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    text-transform: lowercase;
    color: var(--ink);
    transition: color 0.3s;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.nav__links a {
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ink-soft);
    transition: color 0.25s;
}

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

.nav__cta {
    padding: 0.5rem 1.05rem;
    background: var(--ink);
    color: var(--white) !important;
    border-radius: 7px;
}

.nav__cta:hover {
    background: var(--signal-deep) !important;
}

.nav__toggle {
    display: none;
    width: 2.4rem;
    height: 2.4rem;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.nav__toggle span {
    display: block;
    width: 1.3rem;
    height: 2px;
    background: var(--ink);
    transition: transform 0.3s var(--ease);
}

.nav__toggle.is-open span:first-child {
    transform: translateY(4px) rotate(45deg);
}

.nav__toggle.is-open span:last-child {
    transform: translateY(-4px) rotate(-45deg);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.95rem 1.55rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
}

.btn--primary {
    background: var(--ink);
    color: var(--white);
}

.btn--primary:hover {
    background: var(--signal-deep);
    transform: translateY(-2px);
}

.btn--ghost {
    background: transparent;
    color: var(--hero-ink);
    border: 1px solid rgba(255, 255, 255, 0.45);
}

.hero .btn--ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.section .btn--ghost {
    color: var(--ink);
    border-color: var(--line);
}

.btn--block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.65;
    cursor: wait;
    transform: none;
}

/* Hero — full bleed */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    align-items: end;
    padding: calc(var(--header-h) + 3rem) var(--space) clamp(3.5rem, 8vw, 5.5rem);
    color: var(--hero-ink);
    overflow: hidden;
}

.hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.08);
    animation: hero-drift 22s ease-in-out infinite alternate;
}

.hero__veil {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(8, 24, 42, 0.55) 0%, rgba(8, 24, 42, 0.32) 42%, rgba(8, 24, 42, 0.8) 100%),
        linear-gradient(90deg, rgba(8, 24, 42, 0.58) 0%, transparent 58%);
}

.hero__pulse {
    position: absolute;
    left: 62%;
    top: 42%;
    width: min(48vw, 520px);
    height: min(48vw, 520px);
    border: 1px solid rgba(160, 230, 255, 0.35);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulse-ring 6.5s var(--ease) infinite;
    pointer-events: none;
}

.hero__pulse--delay {
    animation-delay: 2.2s;
    width: min(36vw, 380px);
    height: min(36vw, 380px);
    border-color: rgba(120, 210, 240, 0.28);
}

@keyframes pulse-ring {
    0% {
        opacity: 0.55;
        transform: translate(-50%, -50%) scale(0.72);
    }
    70% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.25);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.25);
    }
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: var(--max);
    width: 100%;
    margin: 0 auto;
}

.hero__brand {
    font-family: var(--font-brand);
    font-size: clamp(3.4rem, 10vw, 6.2rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    text-transform: lowercase;
    line-height: 0.92;
    margin-bottom: 1rem;
    animation: rise 1s var(--ease) both;
}

.hero__headline {
    font-size: clamp(1.55rem, 3.4vw, 2.35rem);
    font-weight: 600;
    max-width: 18ch;
    margin-bottom: 1.1rem;
    color: rgba(244, 249, 252, 0.95);
    animation: rise 1s var(--ease) 0.12s both;
}

.hero__lede {
    font-size: 1.12rem;
    max-width: 34rem;
    color: rgba(244, 249, 252, 0.78);
    margin-bottom: 2rem;
    animation: rise 1s var(--ease) 0.22s both;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    animation: rise 1s var(--ease) 0.32s both;
}

.hero .btn--primary {
    background: #fff;
    color: var(--ink);
}

.hero .btn--primary:hover {
    background: var(--ice);
    color: var(--ink);
}

@keyframes hero-drift {
    from {
        transform: scale(1.08) translate(0, 0);
    }
    to {
        transform: scale(1.14) translate(-1.5%, 1%);
    }
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* Sections */
.section {
    padding: clamp(4.5rem, 10vw, 7.5rem) var(--space);
    max-width: var(--max);
    margin: 0 auto;
}

.section__intro {
    margin-bottom: clamp(2.5rem, 6vw, 3.75rem);
    max-width: 40rem;
}

/* Product */
.product__stage {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(1.75rem, 4vw, 3rem);
    align-items: center;
}

.product__copy p {
    color: var(--muted);
    margin-bottom: 1.25rem;
}

.product__points {
    display: grid;
    gap: 0.55rem;
    margin-bottom: 1.75rem;
}

.product__points li {
    position: relative;
    padding-left: 1.1rem;
    color: var(--ink-soft);
}

.product__points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    background: var(--signal);
    border-radius: 1px;
}

.product__panel {
    position: relative;
    display: block;
    min-height: 340px;
    text-decoration: none;
    color: var(--hero-ink);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.45s var(--ease);
}

.product__panel:hover {
    transform: translateY(-4px);
}

.product__image {
    width: 100%;
    height: 100%;
    min-height: 340px;
    object-fit: cover;
    object-position: center;
    transition: transform 1.1s var(--ease);
}

.product__panel:hover .product__image {
    transform: scale(1.04);
}

.product__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    background: linear-gradient(180deg, rgba(8, 30, 36, 0.05) 20%, rgba(8, 30, 36, 0.78) 100%);
}

.product__url {
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: lowercase;
    opacity: 0.8;
    margin-bottom: 0.75rem;
}

.product__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 0.35rem;
}

.product__sub {
    color: rgba(244, 249, 252, 0.82);
    margin-bottom: 1.5rem;
}

.product__cta {
    font-weight: 600;
}

/* Services */
.services__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.5rem, 4vw, 2.5rem);
}

.services__item {
    padding-top: 1.35rem;
    border-top: 2px solid var(--ink);
}

.services__num {
    display: block;
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--signal);
    letter-spacing: 0.06em;
    margin-bottom: 0.9rem;
}

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

/* Concepts */
.concept {
    display: grid;
    gap: 1.75rem;
}

.concept--featured {
    grid-template-columns: 1.15fr 1fr;
    align-items: center;
    gap: clamp(1.5rem, 4vw, 3rem);
    margin-bottom: clamp(2.5rem, 6vw, 4rem);
    padding-bottom: clamp(2.5rem, 6vw, 4rem);
    border-bottom: 1px solid var(--line);
}

.concept__media {
    overflow: hidden;
    border-radius: 4px;
    background: var(--ice-deep);
}

.concept__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 3;
    transition: transform 1.1s var(--ease);
}

.concept:hover .concept__media img {
    transform: scale(1.03);
}

.concept--featured .concept__media img {
    aspect-ratio: 16 / 11;
    min-height: 260px;
}

.concept__label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--signal);
    margin-bottom: 0.55rem;
}

.concept__body p {
    color: var(--muted);
    margin-bottom: 1.15rem;
}

.concept__points {
    display: grid;
    gap: 0.55rem;
}

.concept__points li {
    position: relative;
    padding-left: 1.1rem;
    color: var(--ink-soft);
    font-size: 0.98rem;
}

.concept__points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    background: var(--signal);
    border-radius: 1px;
}

.concept-stack {
    display: flex;
    flex-direction: column;
}

.concept--row {
    grid-template-columns: minmax(200px, 280px) 1fr;
    align-items: center;
    gap: clamp(1.25rem, 3vw, 2.5rem);
    padding: 1.85rem 0;
    border-bottom: 1px solid var(--line);
}

.concept--row:first-child {
    border-top: 1px solid var(--line);
}

.concept--row .concept__media img {
    aspect-ratio: 1;
}

/* About */
.about__story {
    max-width: 40rem;
}

.about__story p {
    color: var(--muted);
    font-size: 1.08rem;
}

.about__story p + p {
    margin-top: 1rem;
}

/* Contact */
.contact__layout {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}

.contact__email {
    display: inline-block;
    margin-top: 1.5rem;
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2.8vw, 1.7rem);
    font-weight: 700;
    color: var(--signal-deep);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.25s;
    word-break: break-all;
}

.contact__email:hover {
    border-bottom-color: var(--signal);
}

.contact__note {
    margin-top: 0.75rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.contact__form {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: clamp(1.5rem, 3vw, 2.15rem);
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.field label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.optional {
    font-weight: 400;
    color: var(--muted);
}

.field__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.char-count {
    font-size: 0.8rem;
    color: var(--muted);
}

input,
textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--ink);
    background: var(--ice);
    border: 1px solid var(--line);
    border-radius: 8px;
    transition: border-color 0.25s, background 0.25s;
    resize: vertical;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--signal);
    background: var(--white);
}

.form__status {
    font-size: 0.95rem;
    font-weight: 500;
    min-height: 1.4em;
    color: var(--signal-deep);
}

.form__status.is-error {
    color: #b42318;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--line);
    padding: 2rem var(--space);
}

.site-footer__inner {
    max-width: var(--max);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.site-footer p {
    color: var(--muted);
    font-size: 0.9rem;
}

.footer__name {
    font-family: var(--font-brand);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    text-transform: lowercase;
}

.site-footer .nav__mark {
    width: 1.85rem;
    height: 1.85rem;
}

/* Reveal */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}

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

.reveal-delay-1 {
    transition-delay: 0.1s;
}
.reveal-delay-2 {
    transition-delay: 0.2s;
}

@media (prefers-reduced-motion: reduce) {
    .hero__image,
    .hero__pulse,
    .reveal,
    .hero__brand,
    .hero__headline,
    .hero__lede,
    .hero__actions {
        animation: none !important;
        transition: none !important;
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 960px) {
    .product__stage,
    .services__list,
    .concept--featured,
    .concept--row,
    .contact__layout {
        grid-template-columns: 1fr;
    }

    .concept--row .concept__media {
        max-width: 280px;
    }

    .hero {
        align-items: center;
        padding-top: calc(var(--header-h) + 2rem);
    }

    .hero__headline {
        max-width: none;
    }
}

@media (max-width: 720px) {
    .nav__toggle {
        display: flex;
    }

    .nav__links {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        padding: 0.5rem var(--space) 1.35rem;
        background: rgba(238, 245, 250, 0.97);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--line);
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.4s var(--ease), opacity 0.35s;
    }

    .nav__links.is-open {
        transform: none;
        opacity: 1;
        pointer-events: auto;
    }

    .nav__links a {
        display: block;
        padding: 0.85rem 0;
        border-bottom: 1px solid var(--line);
        color: var(--ink-soft) !important;
    }

    .nav__cta {
        margin-top: 0.75rem;
        text-align: center;
        border: none !important;
        background: var(--ink) !important;
        color: #fff !important;
    }

    .site-header.is-hero .nav__wordmark {
        color: var(--hero-ink);
    }

    .site-header.is-hero.is-scrolled .nav__wordmark,
    .site-header.is-solid .nav__wordmark {
        color: var(--ink);
    }

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

    .site-footer__inner {
        flex-direction: column;
        text-align: center;
    }
}
