/* ─── Reset & tokens ─────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --serif:  'Playfair Display', Georgia, serif;
    --sans:   'Inter', system-ui, sans-serif;
    --ink:    #080808;
    --paper:  #f2f0eb;
    --gold:   #c9a96e;
    --dim:    rgba(242,240,235,0.45);
    --ease:   cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--sans);
    background: var(--ink);
    color: var(--paper);
    overflow-x: hidden;
}

/* ─── HERO ───────────────────────────────────────────────────────── */
.hero {
    position: relative;
    height: 100svh;
    min-height: 620px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Photo layer — fixed to viewport so it stays put while text scrolls away */
.hero-photo {
    position: fixed;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.28) saturate(0.5);
    z-index: 0;
}

/* Multi-gradient vignette — fixed with the photo */
.hero-vignette {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 100% 70% at 50% 110%, rgba(8,8,8,0.98) 0%, transparent 55%),
        radial-gradient(ellipse 55%  120% at -5% 50%, rgba(8,8,8,0.75) 0%, transparent 55%),
        radial-gradient(ellipse 40%  60%  at 105% 0%, rgba(8,8,8,0.5)  0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
}

/* Soft mouse-following glow */
.hero-glow {
    position: absolute;
    top: 0; left: 0;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201,169,110,0.11) 0%, transparent 65%);
    transform: translate(-50%, -50%);
    filter: blur(48px);
    pointer-events: none;
    will-change: transform;
    z-index: 3;
}

/* Film grain overlay */
.hero-noise {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    opacity: 0.28;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
}

/* ── Nav ── */
.hero-nav {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 36px 52px;
    flex-shrink: 0;
}

.nav-wordmark {
    font-family: var(--serif);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--paper);
    opacity: 0.85;
}

.nav-links {
    display: flex;
    gap: 36px;
}

.nav-links a {
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(242,240,235,0.38);
    transition: color 0.25s;
}
.nav-links a:hover { color: var(--paper); }

/* ── Hero body — grows to fill, content sits at bottom-left ── */
.hero-body {
    position: relative;
    z-index: 5;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 52px 26svh; /* bottom padding keeps text above the sections overlap */
    will-change: transform, opacity;
    animation: heroIn 1.2s var(--ease) 0.1s both;
}

@keyframes heroIn {
    from { opacity: 0; transform: translateY(36px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 22px;
}

.eyebrow-line {
    display: block;
    width: 28px;
    height: 1px;
    background: var(--gold);
    flex-shrink: 0;
}

/* Big name */
.hero-title {
    font-family: var(--serif);
    font-size: clamp(4.5rem, 13vw, 11.5rem);
    line-height: 0.9;
    letter-spacing: -0.025em;
    display: flex;
    flex-direction: column;
    margin-bottom: 32px;
}

/* "SAMEERAN" — solid fill */
.title-solid {
    color: var(--paper);
}

/* "RAO" — outline only, editorial ghost effect */
.title-outline {
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(242,240,235,0.55);
    padding-left: 0.08em;
}

.hero-sub {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: 0.14em;
    color: rgba(242,240,235,0.42);
    font-style: italic;
    margin-bottom: 0;
}
.hero-sub .bull { color: var(--gold); opacity: 0.6; font-style: normal; }

/* ── Scroll hint — right side, vertical ── */
.scroll-hint {
    position: absolute;
    right: 44px;
    bottom: 64px;
    z-index: 6;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    animation: fadeIn 1.4s var(--ease) 1s both;
}

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

.scroll-text {
    font-size: 0.6rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(242,240,235,0.3);
    writing-mode: vertical-rl;
}

.scroll-line {
    display: block;
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, rgba(201,169,110,0.6), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { transform: scaleY(1);   opacity: 0.5; }
    50%       { transform: scaleY(1.3); opacity: 1; }
}

/* ─── SECTION CARDS ──────────────────────────────────────────────── */
.sections {
    position: relative;
    z-index: 20;          /* physically slides over the fixed photo+vignette */
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    height: 100svh;
    min-height: 520px;
    background: var(--ink);
    margin-top: -14svh;   /* overlap bottom of hero so both layers are visible together */
}

.section-card {
    position: relative;
    overflow: hidden;
}

.card-link {
    display: flex;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.07);
    filter: brightness(0.4) saturate(0.7);
    transition: transform 1s var(--ease), filter 0.8s ease;
    will-change: transform;
}
.section-card:hover .card-bg {
    transform: scale(1.13);
    filter: brightness(0.58) saturate(1.05);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(8,8,8,0.05) 0%,
        rgba(8,8,8,0.5)  55%,
        rgba(8,8,8,0.92) 100%
    );
    transition: opacity 0.5s ease;
}
.section-card:hover .card-overlay { opacity: 0.85; }

/* Dividers */
.section-card + .section-card::before {
    content: '';
    position: absolute;
    left: 0; top: 8%; bottom: 8%;
    width: 1px;
    background: rgba(255,255,255,0.05);
    z-index: 3;
}

.card-body {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 36px 34px 42px;
}

/* Large ghost number — top-right */
.card-num {
    position: absolute;
    top: 28px;
    right: 28px;
    font-family: var(--serif);
    font-size: 5.5rem;
    font-weight: 700;
    line-height: 1;
    color: rgba(255,255,255,0.035);
    letter-spacing: -0.04em;
    transition: color 0.6s ease;
    pointer-events: none;
}
.section-card:hover .card-num { color: rgba(255,255,255,0.07); }

.card-content {
    display: flex;
    flex-direction: column;
    gap: 9px;
    transform: translateY(10px);
    transition: transform 0.55s var(--ease);
}
.section-card:hover .card-content { transform: translateY(0); }

.card-tag {
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--gold);
}

.card-title {
    font-family: var(--serif);
    font-size: clamp(1.5rem, 2.4vw, 2.2rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--paper);
}

.card-desc {
    font-size: 0.82rem;
    font-weight: 300;
    line-height: 1.65;
    color: rgba(242,240,235,0.5);
    max-width: 22ch;
}

.card-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--paper);
    border-bottom: 1px solid rgba(201,169,110,0.45);
    padding-bottom: 2px;
    width: fit-content;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease 0.08s, transform 0.45s var(--ease) 0.08s, gap 0.3s ease, color 0.25s;
}
.card-cta svg { width: 14px; height: 14px; transition: transform 0.3s ease; }
.section-card:hover .card-cta { opacity: 1; transform: translateY(0); color: var(--gold); }
.section-card:hover .card-cta svg { transform: translateX(5px); }

/* ─── FOOTER ─────────────────────────────────────────────────────── */
.site-footer {
    position: relative;
    z-index: 20;
    padding: 24px 52px;
    text-align: center;
    font-size: 0.7rem;
    letter-spacing: 0.07em;
    color: rgba(242,240,235,0.18);
    background: var(--ink);
}

/* ─── RESPONSIVE ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .hero-nav { padding: 28px 28px; }
    .nav-links { gap: 22px; }
    .hero-body { padding: 0 28px 22svh; }
    .scroll-hint { display: none; }

    .sections {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(3, 52svh);
        height: auto;
        min-height: unset;
    }
    .section-card + .section-card::before {
        left: 8%; right: 8%; top: 0; bottom: unset;
        width: unset; height: 1px;
    }
    .card-cta { opacity: 1; transform: translateY(0); }
    .card-content { transform: translateY(0); }
    .card-body { padding: 24px 22px 32px; }
}

@media (max-width: 560px) {
    .hero-title { font-size: clamp(3.8rem, 17vw, 5.5rem); }
    .nav-links { display: none; }
}
