/* ─── Page Loader ────────────────────────────────────────────── */
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f0c08;
    transition: opacity 700ms cubic-bezier(0.32, 0.72, 0, 1),
                visibility 700ms cubic-bezier(0.32, 0.72, 0, 1);
}

.page-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.loader-logo {
    width: 120px;
    height: auto;
    opacity: 0.92;
    filter: brightness(10);
}

.loader-track {
    width: 160px;
    height: 2px;
    border-radius: 2px;
    background: rgba(255, 250, 240, 0.12);
    overflow: hidden;
}

.loader-fill {
    height: 100%;
    width: 0%;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--tea), var(--sage));
    transition: width 300ms cubic-bezier(0.32, 0.72, 0, 1);
}

.loader-label {
    margin: 0;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 250, 240, 0.44);
}

/* ─── Variables ──────────────────────────────────────────────── */
:root {
    --ink: #15120d;
    --ink-soft: #463d32;
    --muted: #71695f;
    --paper: #f8f1e5;
    --paper-strong: #fffaf0;
    --porcelain: rgba(255, 250, 240, 0.78);
    --sage: #68713b;
    --sage-deep: #3f4a20;
    --moss: #78815a;
    --tea: #b48461;
    --copper: #8f5f4e;
    --hairline: rgba(56, 48, 38, 0.1);
    --hairline-light: rgba(255, 250, 240, 0.28);
    --mass: cubic-bezier(0.32, 0.72, 0, 1);
    --slow: 820ms var(--mass);
    --soft-shadow: 0 34px 110px rgba(37, 31, 23, 0.13);
    --ambient-shadow: 0 18px 70px rgba(88, 74, 53, 0.1);
}

* {
    box-sizing: border-box;
}

html {
    /* scroll-behavior:smooth removed — interferes with custom wheel handlers */
    scroll-behavior: auto;
    /* Hint compositor that the page paints often */
    overflow-x: hidden;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
    line-height: 1.55;
    text-rendering: geometricPrecision;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 30;
    pointer-events: none;
    opacity: 0.035;
    background-image:
        repeating-radial-gradient(circle at 12% 18%, rgba(21, 18, 13, 0.45) 0 0.7px, transparent 0.8px 4px),
        repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.25) 0 1px, transparent 1px 5px);
    mix-blend-mode: multiply;
}

/* Single fixed-attachment background on body. Sections paint over this with translucent overlays. */
.snap-layout {
    background:
        linear-gradient(90deg, rgba(17, 15, 10, 0.46), rgba(17, 15, 10, 0.18)),
        url("dal-lake-floating-market.jpg"),
        url("https://upload.wikimedia.org/wikipedia/commons/c/cb/Floating_market_on_Dal_Lake%2C_Srinagar.jpg");
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    background-color: #1a1410;
}

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

button,
input,
textarea {
    font: inherit;
}

.site-header {
    position: fixed;
    top: 24px;
    left: 50%;
    z-index: 20;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
    width: min(1060px, calc(100% - 40px));
    min-height: 68px;
    padding: 8px 10px 8px 12px;
    border-radius: 999px;
    background: rgba(255, 250, 240, 0.68);
    box-shadow: 0 20px 80px rgba(22, 18, 12, 0.13), inset 0 1px 1px rgba(255, 255, 255, 0.75);
    transform: translateX(-50%);
    backdrop-filter: blur(22px) saturate(1.12);
}

.brand {
    display: inline-grid;
    width: 112px;
    height: 50px;
    place-items: center;
    overflow: hidden;
    border-radius: 999px;
}

.brand img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(14px, 2.4vw, 34px);
    color: rgba(21, 18, 13, 0.72);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.nav-links a {
    position: relative;
    padding: 11px 0;
    transition: color var(--slow), transform var(--slow);
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 5px;
    height: 1px;
    background: currentColor;
    opacity: 0;
    transform: scaleX(0.25);
    transition: transform var(--slow), opacity var(--slow);
}

.nav-links a:hover {
    color: var(--sage-deep);
    transform: translateY(-1px);
}

.nav-links a:hover::after {
    opacity: 0.55;
    transform: scaleX(1);
}

.menu-toggle {
    display: none;
    position: relative;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    color: var(--ink);
    background: rgba(21, 18, 13, 0.05);
    cursor: pointer;
}

.menu-toggle span {
    position: absolute;
    left: 12px;
    width: 18px;
    height: 1px;
    background: currentColor;
    transform-origin: center;
    transition: transform var(--slow), opacity var(--slow);
}

.menu-toggle span:first-child {
    top: 16px;
}

.menu-toggle span:last-child {
    top: 25px;
}

body.menu-open .menu-toggle span:first-child {
    transform: translateY(4.5px) rotate(45deg);
}

body.menu-open .menu-toggle span:last-child {
    transform: translateY(-4.5px) rotate(-45deg);
}

.nav-cta,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 48px;
    padding: 8px 8px 8px 20px;
    border-radius: 999px;
    border: 0;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: transform var(--slow), box-shadow var(--slow), background var(--slow), color var(--slow);
}

.nav-cta i,
.button i {
    display: inline-grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 50%;
    font-style: normal;
    transition: transform var(--slow), background var(--slow);
}

.magnetic:hover {
    transform: translateY(-2px) scale(1.012);
}

.magnetic:active {
    transform: scale(0.98);
}

.magnetic:hover i {
    transform: translate(4px, -1px) scale(1.05);
}

.nav-cta,
.button.primary {
    color: var(--paper-strong);
    background: linear-gradient(135deg, #303814, #66703a);
    box-shadow: 0 18px 46px rgba(63, 74, 32, 0.22), inset 0 1px 1px rgba(255, 255, 255, 0.16);
}

.nav-cta i,
.button.primary i {
    background: rgba(255, 250, 240, 0.14);
}

.button.secondary {
    color: var(--paper-strong);
    background: rgba(255, 250, 240, 0.12);
    box-shadow: inset 0 0 0 1px rgba(255, 250, 240, 0.26);
}

.button.secondary i {
    background: rgba(255, 250, 240, 0.12);
}

.snap-layout main {
    isolation: isolate;
}

.section-band {
    padding: clamp(132px, 12vw, 180px) clamp(22px, 6vw, 96px) clamp(84px, 9vw, 132px);
}

.glass-page {
    position: sticky;
    top: 0;
    min-height: 100dvh;
    overflow: hidden;
    isolation: isolate;
    /* Paint isolation: each section paints in its own layer, no cross-section repaints */
    contain: layout paint style;
    /* GPU-promoted layer so the section composites independently */
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    /* Shadow REMOVED — 120px blur on a sticky transforming element is the primary repaint cost */
}

.glass-page::before {
    content: "";
    position: absolute;
    inset: 18px;
    z-index: -2;
    border-radius: 38px;
    background:
        linear-gradient(145deg, rgba(255, 250, 240, 0.78), rgba(241, 230, 212, 0.56)),
        radial-gradient(circle at 14% 10%, rgba(180, 132, 97, 0.15), transparent 30%);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.56), var(--soft-shadow);
}

.glass-page::after {
    content: "";
    position: absolute;
    inset: 26px;
    z-index: -1;
    border-radius: 30px;
    box-shadow: inset 0 0 0 1px var(--hairline-light);
    pointer-events: none;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 0.72fr) minmax(260px, 0.28fr);
    align-items: center;
    gap: clamp(28px, 7vw, 100px);
    /* Tinted overlay over body's fixed bg — no separate image fetch */
    background:
        linear-gradient(135deg, rgba(23, 15, 8, 0.78), rgba(40, 28, 16, 0.65) 50%, rgba(15, 12, 7, 0.55));
    background-position: center;
    background-size: cover;
}

.hero::before {
    inset: 18px;
    background: linear-gradient(90deg, rgba(255, 250, 240, 0.12), rgba(255, 250, 240, 0.02));
}

.hero-copy {
    max-width: 900px;
}

.eyebrow,
.section-label {
    display: inline-flex;
    align-items: center;
    width: max-content;
    margin: 0 0 20px;
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--sage-deep);
    background: rgba(255, 250, 240, 0.58);
    box-shadow: inset 0 0 0 1px rgba(63, 74, 32, 0.1);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: #edf0bd;
    background: rgba(255, 250, 240, 0.13);
    box-shadow: inset 0 0 0 1px rgba(255, 250, 240, 0.2);
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2 {
    font-family: "Cormorant Garamond", Georgia, serif;
    line-height: 0.93;
    letter-spacing: 0;
}

h1 {
    max-width: 940px;
    margin-bottom: 28px;
    color: var(--paper-strong);
    font-size: clamp(48px, 5.3rem, 120px);
    font-weight: 700;
    text-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

@media (max-width: 1040px) {
    h1 {
        font-size: clamp(42px, 7vw, 5.3rem);
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: clamp(32px, 8vw, 3.5rem);
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: clamp(28px, 6vw, 2.8rem);
    }
}

h2 {
    margin-bottom: 0;
    font-size: clamp(46px, 6.4vw, 94px);
    font-weight: 700;
}

h3 {
    letter-spacing: 0;
}

.hero-text {
    max-width: 660px;
    margin-bottom: 38px;
    color: rgba(255, 250, 240, 0.82);
    font-size: clamp(17px, 1.65vw, 22px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.image-credit {
    position: absolute;
    right: clamp(30px, 6vw, 96px);
    bottom: 34px;
    margin: 0;
    color: rgba(255, 250, 240, 0.66);
    font-size: 11px;
}

.story {
   /* Solid opaque base + gradient overlay. No fixed-attachment image (body provides that). */
   background:
        linear-gradient(135deg, rgba(252, 244, 234, 0.92), rgba(245, 235, 220, 0.88)),
        #f4ead8;
   background-position: center;
   background-size: cover;
}

.story-stage {
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(330px, 0.92fr);
    gap: clamp(34px, 7vw, 112px);
    align-items: center;
    min-height: calc(100dvh - 220px);
}

.story-anchor {
    max-width: 650px;
}

.story-anchor p,
.section-heading p,
.why-intro p {
    color: var(--ink-soft);
    font-size: clamp(17px, 1.6vw, 21px);
}

.story-scenes {
    display: flex;
    flex-direction: column;
    perspective: 1200px;
}

.story-shell,
.service-shell,
.why-shell,
.team-card,
.contact-form,
.contact-details p {
    padding: 7px;
    border-radius: 30px;
    background: rgba(255, 250, 240, 0.3);
    box-shadow: inset 0 0 0 1px rgba(56, 48, 38, 0.08), var(--ambient-shadow);
}

/* Overlap: card 2 covers 25% of card 1, card 3 covers 20% of card 2 */
.story-shell:nth-child(2) {
    margin-top: clamp(-52px, -4.2vw, -44px);
    z-index: 2;
}

.story-shell:nth-child(3) {
    margin-top: clamp(-44px, -3.6vw, -36px);
    z-index: 3;
}

.story-scene,
.service-card,
.why-item,
.team-card-inner {
    min-height: 100%;
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(255, 250, 240, 0.88), rgba(243, 232, 213, 0.72));
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.7);
}

.story-scene {
    padding: clamp(24px, 3vw, 38px);
}

.story-scene span,
.service-number,
.team-role {
    display: inline-flex;
    margin-bottom: 18px;
    color: var(--copper);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.story-scene h3 {
    max-width: 520px;
    margin-bottom: 12px;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 0.98;
}

.story-scene p {
    margin-bottom: 0;
    color: var(--muted);
}

/* services — vibrant growth, sage-forward */
.services {
    /* Solid opaque base — prevents previous section bleed-through during sticky stacking */
    background:
        linear-gradient(135deg, rgba(230, 238, 220, 0.92), rgba(215, 227, 200, 0.88)),
        #e2ebd6;
    background-position: center;
    background-size: cover;
    min-height: 100dvh;
    padding: clamp(80px, 8vw, 100px) clamp(22px, 6vw, 96px) clamp(60px, 6vw, 80px) !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: clamp(5px, 4vw, 10px);
}

.section-heading h2 {
    max-width: 680px;
    font-size: clamp(32px, 4vw, 56px);
    margin-bottom: 0;
}

.section-heading p {
    max-width: 380px;
    margin-bottom: 0;
    font-size: clamp(14px, 1.2vw, 17px);
}

/* ─── Services Grid — 4 Cards Per Row, Fits in 100vh ──────────── */
.service-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    padding: 24px 0 0;
}

.service-shell {
    perspective: 1000px;
    height: 100%;
    transition: transform 500ms cubic-bezier(0.32, 0.72, 0, 1);
}

.service-shell:hover {
    transform: translateY(-6px);
}

/* ─── Card Container with Flip Effect ──────────────────────────── */
.service-card {
    position: relative;
    width: 100%;
    height: 240px;
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(255, 250, 240, 0.94), rgba(253, 247, 235, 0.90));
    box-shadow: 0 8px 32px rgba(61, 51, 35, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 250, 240, 0.6);
    padding: 20px;
    transition: all 500ms cubic-bezier(0.32, 0.72, 0, 1);
    transform-style: preserve-3d;
    cursor: pointer;
}

.service-shell:hover .service-card {
    box-shadow: 0 16px 48px rgba(61, 51, 35, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.8);
    background: linear-gradient(145deg, rgba(255, 250, 240, 0.98), rgba(253, 247, 235, 0.95));
}

/* ─── Front Face (Title + Number) ──────────────────────────────── */
.service-card-front {
    position: absolute;
    inset: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: opacity 400ms cubic-bezier(0.32, 0.72, 0, 1),
                transform 400ms cubic-bezier(0.32, 0.72, 0, 1);
    border-radius: 20px;
    z-index: 2;
}

.service-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(104, 113, 59, 0.12);
    color: var(--sage-deep);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.12em;
    margin: 0;
    transition: all 400ms cubic-bezier(0.32, 0.72, 0, 1);
}

.service-card-front h3 {
    margin: 0;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 700;
    line-height: 1.2;
    color: var(--ink);
    transition: color 400ms cubic-bezier(0.32, 0.72, 0, 1);
}

/* ─── Back Face (Description) ─────────────────────────────────── */
.service-card-back {
    position: absolute;
    inset: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 20px;
    opacity: 0;
    transform: rotateY(180deg);
    transition: opacity 400ms cubic-bezier(0.32, 0.72, 0, 1),
                transform 400ms cubic-bezier(0.32, 0.72, 0, 1);
    z-index: 1;
}

.service-card-back p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
    transition: color 400ms cubic-bezier(0.32, 0.72, 0, 1);
}

.service-link {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--sage-deep);
    transition: all 400ms cubic-bezier(0.32, 0.72, 0, 1);
}

/* ─── Hover: Show Back, Hide Front ────────────────────────────── */
.service-shell:hover .service-card-front {
    opacity: 0;
    transform: rotateY(-180deg);
}

.service-shell:hover .service-card-back {
    opacity: 1;
    transform: rotateY(0deg);
}

.service-shell:hover .service-number {
    background: var(--sage-deep);
    color: rgba(255, 250, 240, 0.96);
}

.service-shell:hover .service-card-front h3 {
    color: var(--sage-deep);
}

.service-shell:hover .service-card-back p {
    color: var(--ink-soft);
}

.service-shell:hover .service-link {
    color: var(--tea);
    transform: translateX(3px);
}

/* ─── Responsive ───────────────────────────────────────────────── */
@media (max-width: 1040px) {
    .service-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }

    .service-card {
        height: 220px;
    }
}

@media (max-width: 768px) {
    .service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        padding: 24px 0;
    }

    .service-card {
        height: 200px;
        padding: 16px;
    }

    .service-card-front,
    .service-card-back {
        padding: 16px;
    }

    .service-card-front h3 {
        font-size: clamp(16px, 2vw, 20px);
    }

    .service-card-back p {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .service-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .service-card {
        height: 180px;
    }
}

.why {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(330px, 0.78fr);
    gap: clamp(34px, 7vw, 112px);
    align-items: center;
    color: var(--paper-strong);
    /* Solid opaque base — fully covers previous section, no bleed-through */
    background:
        linear-gradient(145deg, #11130c, #2d361d);
    background-position: center;
    background-size: cover;
}

@media (max-width: 1040px) {
    .why {
        padding: clamp(100px, 10vw, 140px) clamp(22px, 6vw, 96px) !important;
        gap: clamp(24px, 5vw, 48px);
    }
}

.why::before {
    background:
        radial-gradient(circle at 18% 22%, rgba(180, 132, 97, 0.16), transparent 28%),
        linear-gradient(145deg, rgba(18, 20, 12, 0.96), rgba(45, 54, 29, 0.92));
}

.why h2 {
    color: var(--paper-strong);
}

.why .section-label {
    color: #edf0bd;
    background: rgba(255, 250, 240, 0.08);
    box-shadow: inset 0 0 0 1px rgba(255, 250, 240, 0.12);
}

.why-intro p {
    max-width: 580px;
    color: rgba(255, 250, 240, 0.72);
}

.why-list {
    display: grid;
    gap: 18px;
}

@media (max-width: 768px) {
    .why-list {
        gap: 20px;
    }
}

.why-shell {
    background: rgba(255, 250, 240, 0.07);
}

.why-item {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 16px;
    padding: 22px;
    background: rgba(255, 250, 240, 0.07);
}

@media (max-width: 768px) {
    .why-item {
        padding: 24px;
        gap: 18px;
    }
}

.why-item span {
    width: 9px;
    height: 9px;
    margin-top: 8px;
    border-radius: 50%;
    background: var(--tea);
}

.why-item p {
    margin-bottom: 0;
    color: rgba(255, 250, 240, 0.8);
}

/* closing — uses same sticky model as siblings, no special overrides */
.closing {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 34px;
    min-height: 100dvh;
    /* Solid opaque base — no bleed-through from why-us above */
    background:
        linear-gradient(135deg, rgba(248, 241, 229, 0.94), rgba(240, 230, 215, 0.92)),
        #f3ead7;
    background-position: center;
    background-size: cover;
    padding: clamp(80px, 10vw, 132px) clamp(22px, 6vw, 96px);
}

.closing p {
    max-width: 780px;
    margin: 0;
    color: var(--ink);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(42px, 6vw, 86px);
    font-weight: 700;
    line-height: 0.94;
}

.page-hero,
.contact-page {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.58fr);
    gap: clamp(34px, 7vw, 110px);
    align-items: end;
    padding-top: clamp(132px, 12vw, 180px);
    background:
        linear-gradient(135deg, rgba(248, 241, 229, 0.92), rgba(255, 250, 240, 0.8)),
        url("dal-lake-floating-market.jpg");
    background-position: center;
    background-size: cover;
}

.page-hero {
    min-height: 78dvh;
}

.page-hero h1,
.contact-page h1 {
    color: var(--ink);
    text-shadow: none;
}

.page-lead {
    max-width: 620px;
    margin-bottom: 0;
    color: var(--ink-soft);
    font-size: clamp(17px, 1.6vw, 21px);
}

.team-section {
    background: var(--paper-strong);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.team-card {
    min-height: 310px;
    transition: transform var(--slow), box-shadow var(--slow);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: inset 0 0 0 1px rgba(56, 48, 38, 0.1), 0 36px 90px rgba(61, 51, 35, 0.15);
}

.team-card-inner {
    padding: 24px;
}

.team-avatar {
    display: grid;
    width: 68px;
    height: 68px;
    margin-bottom: 28px;
    place-items: center;
    border-radius: 50%;
    color: var(--paper-strong);
    background: linear-gradient(135deg, var(--sage-deep), var(--moss));
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 34px;
    font-weight: 700;
}

.team-card h3 {
    margin-bottom: 12px;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 30px;
    line-height: 1;
}

.team-card p:last-child {
    margin-bottom: 0;
    color: var(--muted);
}

.contact-page {
    align-items: start;
    min-height: 100dvh;
}

.contact-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    max-width: 640px;
    margin-top: 34px;
}

.contact-details p {
    margin: 0;
    color: var(--muted);
}

.contact-details strong {
    color: var(--ink);
}

.contact-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    background: rgba(255, 250, 240, 0.34);
}

.contact-form label,
.form-alert,
.contact-form button {
    margin: 0 0;
}

.contact-form label {
    display: grid;
    gap: 8px;
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 0;
    border-radius: 20px;
    padding: 15px 16px;
    color: var(--ink);
    background: rgba(255, 250, 240, 0.76);
    box-shadow: inset 0 0 0 1px rgba(56, 48, 38, 0.1), inset 0 1px 1px rgba(255, 255, 255, 0.65);
    outline: none;
    transition: box-shadow var(--slow), background var(--slow), transform var(--slow);
}

.contact-form textarea {
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    background: rgba(255, 250, 240, 0.96);
    box-shadow: inset 0 0 0 1px rgba(63, 74, 32, 0.36), 0 0 0 5px rgba(104, 113, 59, 0.1);
    transform: translateY(-1px);
}

.full-field,
.form-alert,
.contact-form button {
    grid-column: 1 / -1;
}

.form-alert {
    padding: 14px 16px;
    border-radius: 22px;
    font-size: 14px;
    font-weight: 800;
}

.form-alert p {
    margin: 0;
}

.form-alert p + p {
    margin-top: 6px;
}

.form-alert.success {
    color: #2f5d43;
    background: rgba(223, 239, 228, 0.82);
}

.form-alert.error {
    color: #7d3f33;
    background: rgba(244, 225, 218, 0.82);
}

/* service cards — override residual snap layout */
.service-grid {
    overflow: visible;
}

.service-shell {
    overflow: visible;
}

/* Why Us hover */
.why-shell {
    transition: transform 520ms cubic-bezier(0.32,0.72,0,1),
                box-shadow 520ms cubic-bezier(0.32,0.72,0,1),
                background 520ms cubic-bezier(0.32,0.72,0,1);
    cursor: default;
}

.why-shell:hover {
    transform: translateY(-8px) scale(1.018);
    background: rgba(255, 250, 240, 0.14);
    box-shadow: inset 0 0 0 1px rgba(255, 250, 240, 0.2),
                0 28px 70px rgba(0, 0, 0, 0.22);
}

.why-shell:hover .why-item {
    background: rgba(255, 250, 240, 0.11);
}

.why-shell:hover .why-item p {
    color: rgba(255, 250, 240, 0.96);
}

/* ─── Footer ──────────────────────────────────────────────────── */
.site-footer {
    /* Solid opaque base — no fixed bg, no flicker */
    background: linear-gradient(135deg, #1f1810, #322a1e);
    color: rgba(255, 250, 240, 0.88);
    padding: clamp(64px, 10vw, 120px) clamp(22px, 6vw, 96px);
    border-top: 1px solid rgba(180, 132, 97, 0.2);
    position: relative;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: clamp(48px, 8vw, 96px);
    max-width: 1400px;
    margin: 0 auto 64px;
}

.footer-section h3,
.footer-section h4 {
    margin: 0 0 16px;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(20px, 2.2vw, 32px);
    font-weight: 700;
    color: rgba(255, 250, 240, 0.96);
}

.footer-section h4 {
    font-size: clamp(14px, 1.4vw, 18px);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 250, 240, 0.72);
}

.footer-section p {
    margin: 0 0 12px;
    line-height: 1.6;
    font-size: 14px;
    color: rgba(255, 250, 240, 0.74);
}

.footer-section p:last-child {
    margin-bottom: 0;
}

.footer-contact {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 250, 240, 0.14);
}

.footer-contact a {
    color: var(--tea);
    font-weight: 600;
    transition: color 300ms cubic-bezier(0.32,0.72,0,1);
}

.footer-contact a:hover {
    color: rgba(255, 250, 240, 0.96);
}

.footer-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.footer-section a {
    color: rgba(255, 250, 240, 0.72);
    font-size: 14px;
    transition: color 300ms cubic-bezier(0.32,0.72,0,1), transform 300ms cubic-bezier(0.32,0.72,0,1);
}

.footer-section a:hover {
    color: rgba(255, 250, 240, 0.96);
    transform: translateX(4px);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 250, 240, 0.1);
    max-width: 1400px;
    margin: 0 auto;
}

.footer-bottom p {
    margin: 0;
    font-size: 12px;
    color: rgba(255, 250, 240, 0.56);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 12px;
    color: rgba(255, 250, 240, 0.56);
    transition: color 300ms cubic-bezier(0.32,0.72,0,1);
}

.footer-links a:hover {
    color: rgba(255, 250, 240, 0.88);
}

@media (max-width: 1040px) {
    .footer-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-bottom: 48px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .footer-links {
        flex-direction: column;
        gap: 12px;
    }

    .site-footer {
        padding: 48px clamp(16px, 4vw, 24px) 32px;
    }
}

.reveal {
    opacity: 0;
    /* translate3d() promotes to GPU compositor layer. No filter:blur — that runs on main thread. */
    transform: translate3d(0, 42px, 0);
    transition: opacity 800ms var(--mass), transform 800ms var(--mass);
    will-change: transform, opacity;
    backface-visibility: hidden;
}

.reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

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

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

    .reveal {
        opacity: 1;
        transform: none;
        filter: none;
    }
}

@media (max-width: 1040px) {
    .hero,
    .story-stage,
    .why,
    .page-hero,
    .contact-page {
        grid-template-columns: 1fr;
    }

    .service-grid,
    .team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .service-shell:nth-child(1),
    .service-shell:nth-child(6) {
        grid-column: span 1;
    }

    .section-heading {
        align-items: start;
        flex-direction: column;
    }
}

@media (max-width: 760px) {
    .site-header {
        top: 14px;
        width: calc(100% - 24px);
        grid-template-columns: auto auto auto;
        gap: 8px;
        padding: 7px;
    }

    .brand {
        width: 96px;
        height: 46px;
    }

    .menu-toggle {
        display: inline-grid;
        grid-column: 2;
        grid-row: 1;
    }

    .nav-cta {
        grid-column: 3;
        grid-row: 1;
        min-height: 42px;
        padding-left: 14px;
    }

    .nav-cta i {
        width: 28px;
        height: 28px;
    }

    .nav-links {
        position: fixed;
        left: 12px;
        right: 12px;
        top: 84px;
        display: grid;
        gap: 4px;
        padding: 22px;
        border-radius: 32px;
        background: rgba(255, 250, 240, 0.86);
        box-shadow: 0 28px 90px rgba(22, 18, 12, 0.18), inset 0 1px 1px rgba(255, 255, 255, 0.75);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px) scale(0.98);
        transition: opacity var(--slow), transform var(--slow);
        backdrop-filter: blur(24px) saturate(1.12);
    }

    body.menu-open .nav-links {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0) scale(1);
    }

    .nav-links a {
        padding: 14px 8px;
        font-size: 18px;
        opacity: 0;
        transform: translateY(18px);
        transition: opacity 700ms var(--mass), transform 700ms var(--mass), color var(--slow);
    }

    body.menu-open .nav-links a {
        opacity: 1;
        transform: translateY(0);
    }

    body.menu-open .nav-links a:nth-child(1) {
        transition-delay: 80ms;
    }

    body.menu-open .nav-links a:nth-child(2) {
        transition-delay: 130ms;
    }

    body.menu-open .nav-links a:nth-child(3) {
        transition-delay: 180ms;
    }

    body.menu-open .nav-links a:nth-child(4) {
        transition-delay: 230ms;
    }

    .section-band {
        padding: 112px 16px 62px;
    }

    .glass-page {
        position: relative;
        min-height: 100dvh;
    }

    .glass-page::before {
        inset: 8px;
        border-radius: 28px;
    }

    .glass-page::after {
        inset: 14px;
        border-radius: 22px;
    }

    h1 {
        font-size: clamp(54px, 17vw, 76px);
    }

    h2 {
        font-size: clamp(42px, 13vw, 64px);
    }

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

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .closing {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0;
        min-height: 70dvh;
        padding: clamp(60px, 10vw, 100px) clamp(22px, 6vw, 96px);
    }

    .closing p {
        text-align: center;
        max-width: 560px;
        font-size: clamp(32px, 4.5vw, 48px);
        margin-bottom: 40px;
        line-height: 1.15;
    }

    .closing .button {
        width: 72%;
        margin: 0 auto;
    }

    .button {
        width: 100%;
    }

    .story-shell,
    .story-shell:nth-child(1),
    .story-shell:nth-child(2),
    .story-shell:nth-child(3),
    .service-shell:nth-child(3),
    .service-shell:nth-child(5) {
        transform: none;
    }

    .service-grid,
    .team-grid,
    .contact-details,
    .contact-form {
        grid-template-columns: 1fr;
    }

    .service-shell {
        min-height: 0;
    }

    .service-number {
        margin-bottom: 34px;
    }

    .image-credit {
        left: 20px;
        right: auto;
        bottom: 22px;
    }
}
