/* ==========================================================================
   ContactBharat — Site Styles
   Concept: "Airmail for professional reach" — beige paper, postage stamps,
   postmarks and envelopes, with scroll-driven storytelling.
   ========================================================================== */

:root {
    /* Paper & ink */
    --bg: #F3ECE0;
    --bg-sand: #EAE0CE;
    --bg-paper: #FBF7F0;
    --ink: #2A241D;
    --ink-deep: #1E1914;
    --ink-soft: #5E5447;
    --muted: #8A7E6D;
    --line: rgba(42, 36, 29, 0.12);
    --line-light: rgba(243, 236, 224, 0.16);

    /* Postal accents */
    --accent: #C2622F;        /* terracotta / airmail red */
    --accent-hover: #A8501F;
    --accent-soft: #F3DCC8;
    --indigo: #2F3C7E;        /* postmark ink */
    --olive: #5F6E2F;         /* verified */
    --olive-soft: #E1E4C9;
    --danger: #B23A26;        /* returned to sender */

    /* Type */
    --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-hand: 'Caveat', 'Segoe Print', cursive;
    --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;

    /* Layout & motion */
    --container: 1280px;
    --gutter: clamp(20px, 4vw, 48px);
    --radius: 22px;
    --radius-sm: 12px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
    --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);

    --airmail: repeating-linear-gradient(135deg, var(--accent) 0 12px, var(--bg-paper) 12px 20px, var(--indigo) 20px 32px, var(--bg-paper) 32px 40px);
}

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

html {
    -webkit-text-size-adjust: 100%;
    overflow-x: clip;
}

html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

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

/* Paper grain */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 999;
    pointer-events: none;
    opacity: 0.35;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.16 0 0 0 0 0.14 0 0 0 0 0.11 0 0 0 0.09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

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

button,
input {
    font: inherit;
    color: inherit;
}

::selection {
    background: var(--accent);
    color: var(--bg-paper);
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

h3 {
    letter-spacing: -0.01em;
}

h1 em, h2 em, h3 em,
.brand-name em,
.statement-text em,
.footer-wordmark em {
    font-style: italic;
    font-weight: 300;
    color: var(--accent);
}

.hand {
    font-family: var(--font-hand);
    font-weight: 700;
    line-height: 1;
}

.mono {
    font-family: var(--font-mono);
}

.env-k {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
}

/* --------------------------------------------------------------------------
   Buttons & links
   -------------------------------------------------------------------------- */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 26px;
    border: 0;
    border-radius: 100px;
    font-weight: 600;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    overflow: hidden;
    isolation: isolate;
    transition: color 0.4s var(--ease), transform 0.4s var(--ease);
    will-change: transform;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    transform: translateY(101%);
    transition: transform 0.5s var(--ease);
}

.btn:hover::before {
    transform: translateY(0);
}

.btn-arrow {
    display: inline-block;
    transition: transform 0.4s var(--ease);
}

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

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

.btn-dark::before {
    background: var(--accent);
}

.btn-accent {
    background: var(--accent);
    color: var(--bg-paper);
}

.btn-accent::before {
    background: var(--ink);
}

.btn-sm {
    padding: 11px 20px;
    font-size: 14px;
}

.btn-lg {
    padding: 19px 34px;
    font-size: 16px;
}

.link-underline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--ink);
    padding-bottom: 3px;
    background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat;
    transition: background-size 0.5s var(--ease);
}

.link-underline:hover {
    background-size: 0 1.5px;
    background-position: 100% 100%;
}

/* --------------------------------------------------------------------------
   Custom cursor (fine pointers only, added by JS)
   -------------------------------------------------------------------------- */
.cursor-dot,
.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1001;
    pointer-events: none;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    margin: -3px 0 0 -3px;
    background: var(--accent);
}

.cursor-ring {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin: -19px 0 0 -19px;
    border: 1px solid rgba(42, 36, 29, 0.45);
    transition: opacity 0.3s ease, width 0.4s var(--ease), height 0.4s var(--ease), margin 0.4s var(--ease), background-color 0.3s ease, border-color 0.3s ease;
}

.cursor-ring span {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--bg-paper);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.has-cursor .cursor-dot,
.has-cursor .cursor-ring {
    opacity: 1;
}

.cursor-ring.is-hover {
    width: 64px;
    height: 64px;
    margin: -32px 0 0 -32px;
    border-color: transparent;
    background: rgba(194, 98, 47, 0.16);
}

.cursor-ring.has-label {
    width: 78px;
    height: 78px;
    margin: -39px 0 0 -39px;
    background: var(--ink);
}

.cursor-ring.has-label span {
    opacity: 1;
}

.cursor-hidden .cursor-dot,
.cursor-hidden .cursor-ring {
    opacity: 0;
}

/* --------------------------------------------------------------------------
   Loader
   -------------------------------------------------------------------------- */
/*
   Timeline (seconds):
   0.0  envelope appears, flap open      1.4  stamp drops in
   0.5  letter slides into the envelope  1.65 VERIFIED postmark thumps
   1.05 flap folds shut (3D)             2.0  envelope flies off top-right
   2.35 screen shrinks into the spot the envelope flew to, revealing the page
*/
.loader {
    --ew: min(300px, 72vw);
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 34px;
    background:
        radial-gradient(circle at 50% 45%, rgba(194, 98, 47, 0.18), transparent 55%),
        var(--ink);
    color: var(--bg);
    clip-path: circle(150% at 50% 50%);
    animation: loaderOut 0.8s var(--ease-in-out) 2.35s forwards;
}

.ld-stage {
    animation: ldFly 0.55s cubic-bezier(0.55, 0, 0.75, 0.2) 2s forwards;
}

.ld-envelope {
    position: relative;
    width: var(--ew);
    height: calc(var(--ew) * 0.62);
    perspective: 800px;
    opacity: 0;
    animation: ldIn 0.6s var(--ease) 0.05s forwards;
}

.ld-back,
.ld-front,
.ld-frame {
    position: absolute;
    inset: 0;
}

.ld-back {
    z-index: 0;
    border-radius: 6px;
    background: #EFE4D0;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.55);
}

.ld-flap {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;
    height: 58%;
    background: linear-gradient(180deg, #E4D5BC, #D9C7A9);
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    transform-origin: 50% 0;
    transform: rotateX(180deg);
    animation: ldFlap 0.4s var(--ease-in-out) 1.05s forwards;
}

.ld-letter {
    position: absolute;
    left: 8%;
    right: 8%;
    top: 8%;
    z-index: 2;
    height: 84%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 9%;
    gap: 10px;
    border-radius: 4px;
    background: var(--bg-paper);
    box-shadow: 0 -6px 16px -8px rgba(0, 0, 0, 0.3);
    transform: translateY(-78%);
    opacity: 0;
    animation:
        fadeIn 0.3s ease 0.25s forwards,
        ldLetter 0.55s var(--ease-in-out) 0.5s forwards;
}

.ld-brand {
    font-family: var(--font-serif);
    font-size: calc(var(--ew) * 0.085);
    color: var(--ink);
    letter-spacing: -0.02em;
    line-height: 1;
}

.ld-brand em {
    font-style: italic;
    font-weight: 300;
    color: var(--accent);
}

.ld-lines {
    display: grid;
    gap: 6px;
    width: 46%;
}

.ld-lines i {
    height: 3px;
    border-radius: 3px;
    background: var(--bg-sand);
}

.ld-lines i:nth-child(2) { width: 80%; }
.ld-lines i:nth-child(3) { width: 60%; }

.ld-front {
    z-index: 3;
    border-radius: 6px;
    background: linear-gradient(180deg, #EADDC7, #E3D3B8);
    /* Side + bottom flaps: the letter only shows through the top "V" until the flap closes */
    clip-path: polygon(0 0, 50% 64%, 100% 0, 100% 100%, 0 100%);
}

.ld-frame {
    z-index: 5;
    border: 6px solid transparent;
    border-image: repeating-linear-gradient(135deg, var(--accent) 0 10px, var(--bg-paper) 10px 16px, var(--indigo) 16px 26px, var(--bg-paper) 26px 32px) 6;
    pointer-events: none;
}

.ld-stamp {
    position: absolute;
    top: 13%;
    right: 7%;
    z-index: 6;
    width: 16%;
    aspect-ratio: 0.82;
    padding: 3px;
    background: radial-gradient(circle, transparent 1.8px, var(--bg-paper) 2.2px) -3px -3px / 6px 6px;
    opacity: 0;
    transform: scale(2.2) rotate(24deg);
    animation: ldStamp 0.4s var(--ease-back) 1.4s forwards;
}

.ld-stamp span {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    background: var(--accent);
}

.ld-stamp .logo-mark {
    width: 74%;
    height: auto;
}

.ld-postmark {
    position: absolute;
    left: 9%;
    bottom: 9%;
    z-index: 6;
    width: 30%;
    color: var(--indigo);
    opacity: 0;
    transform: scale(1.9) rotate(-30deg);
    animation: ldPostmark 0.45s var(--ease-back) 1.65s forwards;
}

.ld-postmark svg {
    width: 100%;
    height: auto;
    overflow: visible;
}

.ld-postmark circle {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
}

.ld-pm-ring {
    fill: currentColor;
    font-family: var(--font-sans);
    font-size: 9.5px;
    font-weight: 800;
}

.ld-pm-mid {
    fill: currentColor;
    font-size: 24px;
    font-weight: 700;
}

.ld-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    width: var(--ew);
    margin-bottom: -20px;
    animation: ldFade 0.3s ease 2s forwards;
}

.ld-status {
    white-space: nowrap;
    font-family: var(--font-hand);
    font-size: 22px;
    font-weight: 700;
    color: var(--accent-soft);
}

.ld-count {
    font-family: var(--font-mono);
    font-size: 13px;
    color: rgba(243, 236, 224, 0.55);
    visibility: hidden;
}

.js .ld-count {
    visibility: visible;
}

.ld-bar {
    width: var(--ew);
    height: 2px;
    background: var(--line-light);
    overflow: hidden;
    animation: ldFade 0.3s ease 2s forwards;
}

.ld-bar span {
    display: block;
    height: 100%;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    animation: ldBar 1.9s cubic-bezier(0.65, 0, 0.35, 1) 0.15s forwards;
}

.skip-loader .loader {
    display: none;
}

@keyframes fadeIn { to { opacity: 1; } }

@keyframes ldIn {
    from { opacity: 0; transform: translateY(30px) scale(0.88) rotate(-4deg); }
    to { opacity: 1; transform: none; }
}

@keyframes ldLetter {
    to { transform: translateY(8%); }
}

/* Flap swaps layers when edge-on (90deg) so it closes in front of the letter */
@keyframes ldFlap {
    0% { transform: rotateX(180deg); z-index: 1; }
    49% { z-index: 1; }
    50% { z-index: 4; }
    100% { transform: rotateX(0deg); z-index: 4; }
}

@keyframes ldStamp {
    to { opacity: 1; transform: scale(1) rotate(6deg); }
}

@keyframes ldPostmark {
    0% { opacity: 0; transform: scale(1.9) rotate(-30deg); }
    60% { opacity: 0.9; transform: scale(0.92) rotate(-14deg); }
    100% { opacity: 0.85; transform: scale(1) rotate(-14deg); }
}

@keyframes ldFly {
    0% { transform: none; }
    20% { transform: translate(-2vw, 2vh) rotate(4deg); }
    100% { transform: translate(38vw, -48vh) rotate(-22deg) scale(0.3); opacity: 0; }
}

@keyframes ldBar {
    to { transform: scaleX(1); }
}

@keyframes ldFade {
    to { opacity: 0; }
}

@keyframes loaderOut {
    to {
        clip-path: circle(0% at 88% 6%);
        visibility: hidden;
    }
}

/* --------------------------------------------------------------------------
   Scroll progress
   -------------------------------------------------------------------------- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    height: 2px;
    pointer-events: none;
}

.scroll-progress span {
    display: block;
    height: 100%;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 22px 0;
    transition: transform 0.6s var(--ease), padding 0.4s var(--ease), background-color 0.4s ease, box-shadow 0.4s ease;
}

.site-header.is-scrolled {
    padding: 12px 0;
    background: rgba(243, 236, 224, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 var(--line);
}

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

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

/* Logo mark (rendered by the logo_mark() helper) */
.logo-mark {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    overflow: visible;
}

.brand .logo-mark {
    transition: transform 0.5s var(--ease);
}

.logo-dot {
    transform-box: fill-box;
    transform-origin: center;
    transition: transform 0.5s var(--ease-back);
}

/* On hover the stamp tilts and the dot "gets reached" — it pulls into the C */
.brand:hover .logo-mark {
    transform: rotate(-6deg) scale(1.04);
}

.brand:hover .logo-dot {
    transform: translateX(-3px) scale(1.15);
}

.brand-name {
    font-family: var(--font-serif);
    font-size: 23px;
    letter-spacing: -0.02em;
}


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

.nav-link {
    position: relative;
    font-size: 15px;
    font-weight: 500;
    color: var(--ink-soft);
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 1.5px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.45s var(--ease);
}

.nav-link:hover {
    color: var(--ink);
}

.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.menu-toggle {
    display: none;
    position: relative;
    z-index: 120;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--bg-paper);
    cursor: pointer;
}

.menu-toggle span {
    position: absolute;
    left: 14px;
    right: 14px;
    height: 1.5px;
    background: var(--ink);
    transition: transform 0.45s var(--ease), top 0.45s var(--ease);
}

.menu-toggle span:first-child { top: 19px; }
.menu-toggle span:last-child { top: 26px; }

.nav-open .menu-toggle span:first-child {
    top: 22px;
    transform: rotate(45deg);
}

.nav-open .menu-toggle span:last-child {
    top: 22px;
    transform: rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Shared section styles
   -------------------------------------------------------------------------- */
.section {
    position: relative;
    padding: clamp(90px, 13vw, 170px) 0;
}

.section-sand {
    background: var(--bg-sand);
}

.section-head {
    max-width: 900px;
    margin-bottom: clamp(48px, 7vw, 84px);
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.section-label b {
    font-weight: 600;
}

.section-label span {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 15px;
    letter-spacing: 0;
    color: var(--accent);
}

.section-label::after {
    content: '';
    width: 44px;
    height: 1px;
    background: currentColor;
    opacity: 0.4;
}

.section-label-light {
    color: rgba(243, 236, 224, 0.7);
}

.section-title {
    font-size: clamp(40px, 6.2vw, 84px);
}

.lead {
    font-family: var(--font-serif);
    font-size: clamp(22px, 2.4vw, 30px);
    line-height: 1.35;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    margin-bottom: 28px;
    border: 1px solid var(--line);
    border-radius: 100px;
    background: rgba(251, 247, 240, 0.6);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.eyebrow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--olive);
    animation: pulse 2.2s ease-out infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(95, 110, 47, 0.5); }
    70%, 100% { box-shadow: 0 0 0 10px rgba(95, 110, 47, 0); }
}

/* --------------------------------------------------------------------------
   Postage stamp & postmark (shared)
   -------------------------------------------------------------------------- */
.stamp {
    flex-shrink: 0;
    padding: 7px;
    /* Perforated edge: holes punched through a paper-coloured frame */
    background: radial-gradient(circle at 50% 50%, transparent 3.2px, var(--bg-paper) 3.6px) -5px -5px / 10px 10px;
    filter: drop-shadow(0 6px 10px rgba(42, 36, 29, 0.15));
    transform: rotate(4deg);
}

.stamp-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 96px;
    height: 116px;
    padding: 10px 6px;
    border: 2px solid rgba(251, 247, 240, 0.55);
    outline: 4px solid var(--accent);
    background: var(--accent);
    color: var(--bg-paper);
    text-align: center;
}

.stamp-inner .logo-mark {
    width: 36px;
    height: 36px;
}

.stamp-sm .stamp-inner .logo-mark {
    width: 40px;
    height: 40px;
}

.stamp-text {
    font-family: var(--font-serif);
    font-size: 15px;
    line-height: 1;
}

.stamp-value {
    margin-top: 2px;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.85;
}

.stamp-sm .stamp-inner {
    width: 62px;
    height: 74px;
}

.stamp-sm .stamp-inner svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.postmark-svg {
    width: 100%;
    height: auto;
    overflow: visible;
}

.postmark-svg .pm-ring {
    fill: currentColor;
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.postmark-svg .pm-center {
    fill: currentColor;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.06em;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: 140px 0 110px;
    overflow: hidden;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.hero-shape-1 {
    top: -12%;
    right: -10%;
    width: clamp(380px, 48vw, 720px);
    aspect-ratio: 1;
    background: radial-gradient(circle at 35% 35%, #F0D5BC 0%, rgba(240, 213, 188, 0) 68%);
}

.hero-shape-2 {
    bottom: -20%;
    left: -12%;
    width: clamp(300px, 36vw, 540px);
    aspect-ratio: 1;
    background: radial-gradient(circle at 50% 50%, #E2E3C6 0%, rgba(226, 227, 198, 0) 68%);
}

.hero-cancel {
    position: absolute;
    top: 110px;
    right: -60px;
    width: min(620px, 55vw);
    color: var(--indigo);
    opacity: 0.08;
    pointer-events: none;
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: clamp(40px, 6vw, 90px);
}

.hero-title {
    font-size: clamp(44px, 5.6vw, 82px);
    line-height: 1.04;
    margin-bottom: 30px;
}

/* Inline pills inside the headline */
.h-chip {
    display: inline-grid;
    place-items: center;
    height: 0.78em;
    min-width: 0.78em;
    padding: 0 0.16em;
    margin: 0 0.04em;
    border-radius: 0.2em;
    font-family: var(--font-sans);
    font-size: 0.82em;
    font-weight: 700;
    font-style: normal;
    letter-spacing: -0.04em;
    line-height: 1;
    vertical-align: 0.02em;
    transform: rotate(-6deg);
}

.h-chip-li {
    background: #0A66C2;
    color: #fff;
    font-size: 0.6em;
    height: 1.05em;
    min-width: 1.05em;
}

.h-chip-at {
    background: var(--olive-soft);
    color: var(--olive);
    font-size: 0.6em;
    height: 1.05em;
    min-width: 1.05em;
    border-radius: 50%;
    transform: rotate(8deg);
}

.hero-lead {
    font-family: var(--font-serif);
    font-size: clamp(22px, 2.2vw, 28px);
    line-height: 1.3;
    margin-bottom: 16px;
}

.hero-text {
    max-width: 580px;
    color: var(--ink-soft);
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px 28px;
    margin-bottom: 34px;
}

.hero-audience {
    max-width: 560px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    font-size: 15px;
    line-height: 1.7;
    color: var(--muted);
}

/* Rotating audience word */
.rotator {
    position: relative;
    display: inline-block;
    height: 1.4em;
    vertical-align: bottom;
    overflow: hidden;
    color: var(--accent);
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.2em;
    transition: width 0.5s var(--ease);
}

.rotator span {
    position: absolute;
    left: 0;
    top: 0;
    white-space: nowrap;
    transform: translateY(110%);
    transition: transform 0.6s var(--ease);
}

.rotator span.is-active {
    position: relative;
    transform: none;
}

.rotator span.is-leaving {
    transform: translateY(-110%);
}

/* Word split mask */
.w {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    padding: 0.04em 0.02em 0.1em;
    margin: -0.04em -0.02em -0.1em;
}

.w > span {
    display: inline-block;
}

/* --------------------------------------------------------------------------
   Hero envelope demo
   -------------------------------------------------------------------------- */
.hero-visual {
    position: relative;
}

.envelope {
    position: relative;
    padding: 10px;
    border-radius: 18px;
    background: var(--airmail);
    box-shadow: 0 50px 90px -40px rgba(42, 36, 29, 0.45);
    transform: rotate(-2deg);
}

.env-paper {
    position: relative;
    padding: 26px 28px 28px;
    border-radius: 10px;
    background: var(--bg-paper);
    overflow: hidden;
}

.env-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.env-from {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.env-from .hand {
    font-size: 30px;
    color: var(--ink-soft);
}

.env-address {
    margin: 22px 0 18px;
}

.env-to {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    margin-top: 6px;
    padding-bottom: 10px;
    border-bottom: 1.5px solid var(--ink);
    font-size: clamp(14px, 1.35vw, 17px);
    white-space: nowrap;
    overflow: hidden;
}

.env-to .mono {
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.4s ease;
}

.envelope.is-email .env-to .mono {
    color: var(--olive);
    font-weight: 500;
}

.env-li {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    fill: #0A66C2;
    transition: transform 0.4s var(--ease), opacity 0.3s ease;
}

.envelope.is-email .env-li {
    transform: scale(0);
    width: 0;
    opacity: 0;
}

.caret {
    flex-shrink: 0;
    width: 1.5px;
    height: 20px;
    background: var(--ink);
    animation: blink 1s steps(1) infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.env-name {
    margin-top: 10px;
    font-size: 14px;
    color: var(--muted);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.5s ease, transform 0.5s var(--ease);
}

.env-name.is-shown {
    opacity: 1;
    transform: none;
}

.env-checks {
    list-style: none;
    display: grid;
    gap: 10px;
    max-width: 260px;
}

.env-checks li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--muted);
    transition: color 0.3s ease;
}

.env-checks i {
    position: relative;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--line);
    border-radius: 50%;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.env-checks li.is-active i {
    border-color: var(--bg-sand);
    border-top-color: var(--accent);
    animation: spin 0.7s linear infinite;
}

.env-checks li.is-done {
    color: var(--ink);
}

.env-checks li.is-done i {
    border-color: var(--olive);
    background: var(--olive);
    animation: none;
}

.env-checks li.is-done i::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid var(--bg-paper);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.env-postmark {
    position: absolute;
    right: 18px;
    bottom: 14px;
    width: 210px;
    color: var(--indigo);
    opacity: 0;
    transform: scale(1.8) rotate(-24deg);
    mix-blend-mode: multiply;
    pointer-events: none;
}

.envelope.is-stamped .env-postmark {
    animation: stampDown 0.5s var(--ease-back) forwards;
}

.envelope.is-clearing .env-postmark,
.envelope.is-clearing .env-note {
    opacity: 0 !important;
    transition: opacity 0.4s ease;
    animation: none;
}

@keyframes stampDown {
    0% { opacity: 0; transform: scale(1.8) rotate(-24deg); }
    60% { opacity: 0.9; transform: scale(0.94) rotate(-12deg); }
    100% { opacity: 0.85; transform: scale(1) rotate(-12deg); }
}

.env-note {
    position: absolute;
    right: 168px;
    top: 74px;
    font-size: 30px;
    color: var(--accent);
    transform: rotate(-8deg);
    clip-path: inset(0 100% 0 0);
    transition: clip-path 0.7s var(--ease) 0.35s;
}

.envelope.is-stamped .env-note {
    clip-path: inset(0 0 0 0);
}

.env-tag {
    position: absolute;
    left: 50%;
    top: 12px;
    transform: translateX(-50%);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    opacity: 0.7;
}

/* Rotating circular badge */
.circle-badge {
    position: absolute;
    left: -60px;
    bottom: -70px;
    display: grid;
    place-items: center;
    width: 132px;
    height: 132px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--bg);
    box-shadow: 0 20px 40px -18px rgba(42, 36, 29, 0.5);
    transition: transform 0.5s var(--ease);
}

.circle-badge:hover {
    transform: scale(1.06);
}

.circle-text {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    animation: rotate 16s linear infinite;
}

.circle-text text {
    fill: currentColor;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.circle-arrow {
    font-size: 26px;
    color: var(--accent);
    animation: nudge 2s var(--ease) infinite;
}

@keyframes rotate { to { transform: rotate(360deg); } }

@keyframes nudge {
    0%, 100% { transform: translateY(-3px); }
    50% { transform: translateY(5px); }
}

/* --------------------------------------------------------------------------
   Marquee
   -------------------------------------------------------------------------- */
.marquee {
    position: relative;
    z-index: 2;
    overflow: hidden;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--bg-paper);
    transition: transform 0.6s var(--ease);
}

.marquee-row {
    padding: 22px 0;
}

.marquee-row-alt {
    padding: 14px 0;
    background: var(--ink);
    color: var(--bg);
}

.marquee-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: marquee 40s linear infinite;
}

.marquee-reverse {
    animation-direction: reverse;
    animation-duration: 30s;
}

.marquee span {
    padding: 0 30px;
    font-family: var(--font-serif);
    font-size: clamp(28px, 3.6vw, 48px);
    font-style: italic;
    font-weight: 300;
    white-space: nowrap;
}

.marquee i {
    font-style: normal;
    font-size: 20px;
    color: var(--accent);
}

.marquee b {
    padding: 0 26px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.marquee em {
    font-style: normal;
    color: var(--accent);
}

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

/* --------------------------------------------------------------------------
   The Problem — pinned network canvas
   -------------------------------------------------------------------------- */
.void {
    position: relative;
    background: var(--bg);
}

.void-pin {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.void-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.void-ui {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
    min-height: 100vh;
    padding-top: 120px;
    padding-bottom: 60px;
    pointer-events: none;
}

.void-ui a {
    pointer-events: auto;
}

.void-title {
    max-width: 760px;
    font-size: clamp(40px, 5.6vw, 80px);
}

.vt {
    display: block;
}

.void-steps {
    position: relative;
    max-width: 520px;
}

.void-step {
    padding: 26px 28px;
    border-radius: var(--radius);
    background: rgba(251, 247, 240, 0.82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid var(--line);
}

.void-step + .void-step {
    margin-top: 16px;
}

.void-step p:not(.lead) {
    margin-top: 12px;
    font-size: 15px;
    color: var(--ink-soft);
}

.void-clock {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 8px 14px;
    border-radius: 100px;
    background: var(--ink);
    color: var(--bg);
    font-size: 14px;
}

.void-clock svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: var(--accent);
    stroke-width: 2;
    stroke-linecap: round;
}

.void-clock b {
    font-family: var(--font-mono);
    font-weight: 500;
}

.void-step .void-bridge {
    font-family: var(--font-hand);
    font-size: 28px !important;
    color: var(--accent) !important;
    line-height: 1.1;
}

.void-pair {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.void-pair span {
    padding: 6px 12px;
    border-radius: 8px;
    background: var(--ink);
    color: var(--bg);
    font-size: 14px;
    font-weight: 600;
}

.void-pair span:last-child {
    background: var(--olive);
}

.void-progress {
    display: none;
}

/* Pinned mode (GSAP available): steps cross-fade in one spot */
.void.is-pinned .void-steps {
    min-height: 300px;
}

.void.is-pinned .void-step {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.6s var(--ease);
}

.void.is-pinned .void-step.is-active {
    opacity: 1;
    transform: none;
}

.void.is-pinned .vt-2 {
    clip-path: inset(0 100% 0 0);
    transition: clip-path 0.9s var(--ease);
}

.void.is-pinned.is-step-1 .vt-2,
.void.is-pinned.is-step-2 .vt-2 {
    clip-path: inset(0 0 -0.2em 0);
}

.void.is-pinned .void-progress {
    position: absolute;
    right: var(--gutter);
    top: 50%;
    display: grid;
    gap: 10px;
    transform: translateY(-50%);
}

.void-progress i {
    width: 3px;
    height: 34px;
    border-radius: 3px;
    background: var(--line);
    transition: background-color 0.3s ease;
}

.void-progress i.is-active {
    background: var(--accent);
}

/* --------------------------------------------------------------------------
   Statement (scroll scrub)
   -------------------------------------------------------------------------- */
.statement {
    padding: clamp(90px, 12vw, 160px) 0;
}

.statement-text {
    max-width: 1120px;
    font-family: var(--font-serif);
    font-size: clamp(36px, 5.6vw, 80px);
    line-height: 1.12;
    letter-spacing: -0.02em;
}

.sw {
    opacity: 0.14;
    transition: opacity 0.25s linear;
}

/* --------------------------------------------------------------------------
   Stop Guessing — returned letters
   -------------------------------------------------------------------------- */
/* Letters slide in from the right — keep them from widening the page */
.guess {
    overflow: hidden;
}

.guess-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(40px, 6vw, 90px);
    align-items: center;
}

.maybe-list {
    list-style: none;
    display: grid;
    gap: 6px;
    margin: 26px 0 38px;
}

.maybe-list li {
    font-family: var(--font-serif);
    font-size: clamp(22px, 2.3vw, 30px);
    line-height: 1.25;
}

.maybe-list span {
    background: linear-gradient(var(--danger), var(--danger)) 0 55% / 0 2px no-repeat;
    transition: background-size 0.7s var(--ease), color 0.5s ease;
}

.guess-grid.is-in .maybe-list li:nth-child(2) span {
    background-size: 100% 2px;
    color: var(--muted);
    transition-delay: 1.3s;
}

.guess-grid.is-in .maybe-list li:nth-child(3) span {
    background-size: 100% 2px;
    color: var(--muted);
    transition-delay: 2.1s;
}

.verify-note {
    padding: 26px 28px;
    border-left: 3px solid var(--olive);
    border-radius: 0 var(--radius) var(--radius) 0;
    background: var(--bg-paper);
}

.verify-note p {
    margin-bottom: 14px;
    color: var(--ink-soft);
}

.verify-note strong {
    color: var(--ink);
}

/* Letter stack */
.letters {
    position: relative;
    display: grid;
    gap: 18px;
}

.letter {
    position: relative;
    padding: 24px 26px;
    border-radius: 14px;
    background: var(--bg-paper);
    border: 1px solid var(--line);
    box-shadow: 0 18px 40px -26px rgba(42, 36, 29, 0.35);
    overflow: hidden;
}

.letter::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 6px;
    background: var(--airmail);
}

.letter-to {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px 12px;
}

.letter-to code {
    font-family: var(--font-mono);
    font-size: clamp(14px, 1.4vw, 17px);
    color: var(--ink);
    word-break: break-all;
}

.letter-lines {
    display: grid;
    gap: 8px;
    max-width: 55%;
    margin-top: 16px;
}

.letter-lines i {
    height: 5px;
    border-radius: 5px;
    background: var(--bg-sand);
}

.letter-lines i:nth-child(2) { width: 80%; }
.letter-lines i:nth-child(3) { width: 55%; }

.pm-stamp {
    position: absolute;
    right: 22px;
    bottom: 18px;
    padding: 6px 14px;
    border: 2.5px solid currentColor;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transform: rotate(-8deg);
    mix-blend-mode: multiply;
}

.pm-maybe { color: var(--indigo); border-style: dashed; }
.pm-return { color: var(--danger); }
.pm-ok { color: var(--olive); }

.l2, .l3 {
    background: #F8F1E9;
}

.l4 {
    border-color: rgba(95, 110, 47, 0.35);
    box-shadow: 0 30px 60px -30px rgba(42, 36, 29, 0.45);
}

.letter-postmark {
    position: absolute;
    right: 120px;
    top: 50%;
    width: 92px;
    color: var(--olive);
    opacity: 0.55;
    transform: translateY(-50%) rotate(-14deg);
}

/* Letter animation (JS adds .is-in to the grid) */
.js .letter {
    opacity: 0;
    transform: translateX(60px) rotate(2deg);
    transition: opacity 0.8s var(--ease), transform 0.9s var(--ease);
}

.js .pm-stamp {
    opacity: 0;
    transform: scale(2) rotate(-20deg);
}

.guess-grid.is-in .letter {
    opacity: 1;
    transform: none;
}

.guess-grid.is-in .l2 { transition-delay: 0.6s; }
.guess-grid.is-in .l3 { transition-delay: 1.4s; }
.guess-grid.is-in .l4 { transition-delay: 2.3s; transform: rotate(-1.2deg); }

.guess-grid.is-in .pm-stamp {
    animation: stampIn 0.5s var(--ease-back) forwards;
}

.guess-grid.is-in .l1 .pm-stamp { animation-delay: 0.5s; }
.guess-grid.is-in .l2 .pm-stamp { animation-delay: 1.2s; }
.guess-grid.is-in .l3 .pm-stamp { animation-delay: 2s; }
.guess-grid.is-in .l4 .pm-stamp { animation-delay: 3s; }

@keyframes stampIn {
    0% { opacity: 0; transform: scale(2) rotate(-20deg); }
    60% { opacity: 1; transform: scale(0.92) rotate(-8deg); }
    100% { opacity: 1; transform: scale(1) rotate(-8deg); }
}

/* --------------------------------------------------------------------------
   Use cases — postcards
   -------------------------------------------------------------------------- */
.cases {
    position: relative;
    padding: clamp(90px, 12vw, 150px) 0;
    overflow: hidden;
}

.cases-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: clamp(40px, 5vw, 64px);
}

.cases-side {
    max-width: 380px;
}

.cases-side p {
    font-size: 18px;
    color: var(--ink-soft);
}

.cases-count {
    display: inline-block;
    margin-top: 18px;
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--muted);
}

.cases-count b {
    font-weight: 500;
    color: var(--accent);
}

/* Default (no pin): native horizontal swipe */
.cases-viewport {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 24px 0 40px;
}

.cases-viewport::-webkit-scrollbar {
    display: none;
}

.cases-track {
    display: flex;
    gap: clamp(20px, 2.4vw, 34px);
    width: max-content;
    padding: 0 max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
}

.postcard {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: min(560px, 84vw);
    min-height: 340px;
    border-radius: 14px;
    background: var(--bg-paper);
    border: 1px solid var(--line);
    box-shadow: 0 30px 60px -36px rgba(42, 36, 29, 0.45);
    scroll-snap-align: center;
    transform: rotate(var(--r));
    transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}

.postcard:hover {
    transform: rotate(0deg) translateY(-8px);
    box-shadow: 0 40px 70px -36px rgba(42, 36, 29, 0.55);
}

.pc-left {
    display: flex;
    flex-direction: column;
    padding: 30px 28px;
    border-right: 1.5px dashed var(--line);
}

.pc-num {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 64px;
    line-height: 1;
    color: var(--accent);
    margin-bottom: auto;
}

.pc-left h3 {
    margin: 26px 0 10px;
    font-size: clamp(26px, 2.4vw, 32px);
}

.pc-left p {
    font-size: 15px;
    color: var(--ink-soft);
}

.pc-right {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px 24px 30px;
}

.pc-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.pc-postmark {
    width: 92px;
    color: var(--indigo);
    opacity: 0.5;
    transform: rotate(-14deg);
    margin-top: 18px;
}

.pc-address {
    display: grid;
    gap: 10px;
}

.pc-address .hand {
    font-size: 30px;
    color: var(--ink);
}

.pc-address i {
    height: 1.5px;
    background: var(--line);
}

/* Pinned mode (desktop + GSAP) */
.cases.is-pinned {
    padding: 0;
}

.cases.is-pinned .cases-pin {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    padding: 110px 0 40px;
}

.cases.is-pinned .cases-viewport {
    overflow: visible;
    scroll-snap-type: none;
}

/* --------------------------------------------------------------------------
   CTA — letter form
   -------------------------------------------------------------------------- */
.cta {
    position: relative;
    padding: clamp(100px, 13vw, 170px) 0;
    background: var(--ink);
    color: var(--bg);
    overflow: hidden;
}

.cta-shape {
    position: absolute;
    top: -30%;
    right: -15%;
    width: clamp(420px, 55vw, 820px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(194, 98, 47, 0.32), transparent 65%);
    pointer-events: none;
}

.cta-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 90px);
    align-items: center;
}

.cta-title {
    font-size: clamp(42px, 5.4vw, 80px);
    margin-bottom: 28px;
}

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

.cta-text {
    max-width: 520px;
    font-size: 18px;
    color: rgba(243, 236, 224, 0.72);
}

.letter-wrap {
    position: relative;
}

.letter-form {
    padding: 10px;
    border-radius: 18px;
    background: var(--airmail);
    transform: rotate(1.5deg);
    transform-origin: 50% 0;
    transition: transform 0.9s var(--ease-in-out), opacity 0.6s ease 0.4s;
}

.lf-paper {
    padding: 28px 30px 26px;
    border-radius: 10px;
    background: var(--bg-paper);
    color: var(--ink);
}

.lf-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.lf-title {
    font-family: var(--font-hand);
    font-size: 36px;
    font-weight: 700;
    color: var(--accent);
    transform: rotate(-3deg);
}


.lf-field {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: baseline;
    gap: 4px 14px;
    padding: 16px 0 8px;
    border-bottom: 1.5px solid var(--ink);
}

.lf-field input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    font-family: var(--font-mono);
    font-size: 16px;
    color: var(--ink);
}

.lf-field input::placeholder {
    color: rgba(42, 36, 29, 0.32);
}

.lf-field small {
    grid-column: 2;
    font-size: 12px;
    color: var(--muted);
}

.lf-field:focus-within {
    border-bottom-color: var(--accent);
}

.lf-send {
    width: 100%;
    margin-top: 26px;
}

.btn-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(251, 247, 240, 0.35);
    border-top-color: var(--bg-paper);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.is-loading .btn-spinner { display: inline-block; }
.is-loading .btn-arrow { display: none; }

.find-note {
    margin-top: 16px;
    font-size: 12.5px;
    color: var(--muted);
}

.find-note a {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Sent: letter folds and flies off */
.letter-form.is-sent {
    transform: perspective(900px) rotateX(70deg) translateY(-120px) scale(0.6) rotate(-6deg);
    opacity: 0;
    pointer-events: none;
}

.find-message {
    display: none;
    margin-top: 18px;
    padding: 16px 20px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 500;
}

.find-message.is-success {
    display: block;
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    margin: 0;
    padding: 28px;
    text-align: center;
    transform: translateY(-50%);
    font-family: var(--font-hand);
    font-size: 32px;
    line-height: 1.2;
    color: var(--accent-soft);
    animation: fadeIn 0.8s ease 0.8s both;
}

.find-message.is-error {
    display: block;
    background: rgba(178, 58, 38, 0.22);
    color: #F2B8A6;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
    position: relative;
    padding: clamp(70px, 9vw, 110px) 0 32px;
    background: var(--ink-deep);
    color: var(--bg);
    overflow: hidden;
}

.airmail-stripe {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 10px;
    background: var(--airmail);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.6fr repeat(3, 1fr);
    gap: 40px;
    padding-bottom: 60px;
}

.footer-brand p {
    max-width: 340px;
    margin-top: 20px;
    font-size: 15px;
    color: rgba(243, 236, 224, 0.6);
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 15px;
}

.footer-col h4 {
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(243, 236, 224, 0.45);
}

.footer-col a,
.footer-col span {
    color: rgba(243, 236, 224, 0.82);
    width: fit-content;
    word-break: break-word;
}

.footer-col a {
    background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
    transition: background-size 0.4s var(--ease), color 0.3s ease;
}

.footer-col a:hover {
    color: var(--bg);
    background-size: 100% 1px;
}

.footer-wordmark {
    font-family: var(--font-serif);
    font-size: clamp(56px, 15.5vw, 230px);
    font-weight: 300;
    line-height: 0.9;
    letter-spacing: -0.05em;
    white-space: nowrap;
    color: transparent;
    -webkit-text-stroke: 1px rgba(243, 236, 224, 0.35);
    user-select: none;
}

.footer-wordmark em {
    color: transparent;
    -webkit-text-stroke: 1px rgba(194, 98, 47, 0.7);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    padding-top: 26px;
    margin-top: 30px;
    border-top: 1px solid var(--line-light);
    font-size: 13px;
    color: rgba(243, 236, 224, 0.5);
}

/* --------------------------------------------------------------------------
   Legal pages
   -------------------------------------------------------------------------- */
.legal-hero {
    padding: 170px 0 60px;
    border-bottom: 1px solid var(--line);
}

.legal-hero h1 {
    font-size: clamp(44px, 7vw, 96px);
    margin-bottom: 18px;
}

.legal-hero p {
    color: var(--ink-soft);
}

.legal-body {
    max-width: 800px;
    padding: 70px 0 130px;
}

.legal-body h2 {
    margin: 52px 0 16px;
    font-size: clamp(26px, 3vw, 34px);
}

.legal-body h2:first-child {
    margin-top: 0;
}

.legal-body h3 {
    margin: 26px 0 10px;
    font-size: 21px;
}

.legal-body p,
.legal-body li {
    color: var(--ink-soft);
}

.legal-body p + p {
    margin-top: 14px;
}

.legal-body ul {
    display: grid;
    gap: 8px;
    margin: 14px 0;
    padding-left: 22px;
}

.legal-body li::marker {
    color: var(--accent);
}

.legal-body strong {
    color: var(--ink);
}

.legal-body a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-callout {
    margin: 22px 0;
    padding: 22px 26px;
    border-radius: 16px;
    background: var(--bg-paper);
    border: 1px solid var(--line);
}

.legal-callout p {
    color: var(--ink);
}

mark.todo {
    padding: 1px 6px;
    border-radius: 6px;
    background: var(--accent-soft);
    color: var(--accent-hover);
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   Reveal states (only when JS is running)
   -------------------------------------------------------------------------- */
.js [data-reveal] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s var(--ease), transform 1s var(--ease);
    transition-delay: var(--d, 0s);
}

[data-reveal="mask"] {
    padding-bottom: 0.12em;
}

.js [data-reveal="mask"] {
    opacity: 1;
    transform: translateY(60px);
    clip-path: inset(0 0 100% 0);
    transition: clip-path 1.2s var(--ease), transform 1.2s var(--ease);
    transition-delay: var(--d, 0s);
}

.js [data-reveal].is-in {
    opacity: 1;
    transform: none;
    clip-path: inset(0 0 0 0);
}

/* Hero entrance waits for the loader */
.js .hero-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s var(--ease), transform 1s var(--ease);
    transition-delay: var(--d, 0s);
}

.js [data-split]:not(.is-split) {
    visibility: hidden;
}

.js [data-split] .w > span {
    transform: translateY(110%);
    transition: transform 1.1s var(--ease);
    transition-delay: calc(var(--wi, 0) * 0.06s + 0.15s);
}

.is-ready .hero-in {
    opacity: 1;
    transform: none;
}

.is-ready [data-split] .w > span {
    transform: none;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 960px) {
    .hero-grid,
    .guess-grid,
    .cta-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 130px;
    }

    .hero-visual {
        max-width: 540px;
        margin: 20px 0 30px auto;
        width: 100%;
    }

    .cases-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .letter-form {
        transform: none;
    }
}

@media (max-width: 820px) {
    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        inset: 0;
        z-index: 110;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 26px;
        padding: 0 var(--gutter);
        background: var(--bg);
        clip-path: inset(0 0 100% 0);
        transition: clip-path 0.8s var(--ease-in-out);
    }

    .nav-open .main-nav {
        clip-path: inset(0 0 0 0);
    }

    .main-nav .nav-link {
        font-family: var(--font-serif);
        font-size: 42px;
        color: var(--ink);
    }

    .main-nav .btn {
        margin-top: 12px;
    }

    .nav-open {
        overflow: hidden;
    }

    .nav-open .site-header {
        transform: none;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
    }

    .void-ui {
        padding-top: 100px;
        padding-bottom: 36px;
    }

    .void.is-pinned .void-steps {
        min-height: 360px;
    }

    .void.is-pinned .void-progress {
        display: none;
    }
}

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

    .env-paper {
        padding: 20px 18px 26px;
    }

    .stamp-inner {
        width: 78px;
        height: 94px;
    }

    .stamp-text {
        font-size: 13px;
    }

    .env-postmark {
        width: 160px;
        right: 6px;
    }

    .env-note {
        top: 82px;
        right: 118px;
        font-size: 24px;
    }

    .void-title {
        font-size: 34px;
    }

    .circle-badge {
        left: auto;
        right: -8px;
        bottom: -60px;
        width: 104px;
        height: 104px;
    }

    .postcard {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .pc-left {
        border-right: 0;
        border-bottom: 1.5px dashed var(--line);
    }

    .pc-num {
        font-size: 48px;
    }

    .letter-postmark {
        display: none;
    }

    .pm-stamp {
        position: static;
        display: inline-block;
        margin-top: 14px;
    }

    .letter-lines {
        max-width: 100%;
    }

    .lf-paper {
        padding: 22px 20px;
    }

    .lf-field {
        grid-template-columns: 1fr;
    }

    .lf-field small {
        grid-column: 1;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0s !important;
    }

    .loader {
        display: none;
    }

    .sw {
        opacity: 1 !important;
    }
}
