/* ============================================================
   HOME · Studio Eapen single-page
   hero · marquee · services · work · process · testimonial
   ============================================================ */

/* ───────── HERO (side illustration · content in negative space) ───────── */
.hero {
    position: relative;
    min-height: 100vh;
    padding: 138px 4.5% 96px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* illustration anchored to the right; left + top edges fade into the gradient */
.hero-illu-bg {
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: min(64%, 880px);
    z-index: 0;
    pointer-events: none;
}
.hero-illu-bg img {
    position: absolute;
    right: 0; bottom: 0;
    width: 100%; height: 92%;
    object-fit: contain;
    object-position: bottom right;
    filter: contrast(1.02) saturate(1.05);
    -webkit-mask-image:
        linear-gradient(90deg, transparent 0%, #000 38%),
        linear-gradient(180deg, transparent 0%, #000 22%);
    -webkit-mask-composite: source-in;
    mask-image:
        linear-gradient(90deg, transparent 0%, #000 38%),
        linear-gradient(180deg, transparent 0%, #000 22%);
    mask-composite: intersect;
    animation: heroBreath 18s ease-in-out infinite;
}
@keyframes heroBreath { 0%,100%{ transform: scale(1);} 50%{ transform: scale(1.02);} }

.hero-illu-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(to right, var(--paper) 0%, transparent 50%),
        linear-gradient(to bottom, var(--paper) 0%, transparent 30%),
        linear-gradient(to top, var(--paper) 0%, transparent 20%);
    pointer-events: none;
}

.hero-illu-bg .badge {
    position: absolute; top: 23%; right: 21%;
    background: var(--accent); color: var(--cream);
    font-family: var(--font-display); font-weight: 900; font-size: 13px;
    width: 96px; height: 96px; border-radius: 50%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    transform: rotate(-12deg); text-align: center; line-height: 1; letter-spacing: -0.01em;
    box-shadow: var(--shadow-sm); z-index: 3;
    animation: floaty 6s ease-in-out infinite;
}
.hero-illu-bg .badge span {
    display: block; font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase;
    font-family: var(--font-body); font-weight: 500; margin-top: 4px;
}
@keyframes floaty { 0%,100%{ transform: rotate(-12deg) translateY(0);} 50%{ transform: rotate(-12deg) translateY(-12px);} }

/* warm gradient veils: cream over the copy side + soft glows */
.hero-scrim {
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background:
        linear-gradient(180deg, var(--paper) 0%, var(--paper) 5%, transparent 35%),
        radial-gradient(900px 600px at 10% 22%, rgba(232,90,42,0.10), transparent 60%),
        radial-gradient(700px 520px at 96% 82%, rgba(244,162,97,0.20), transparent 65%),
        linear-gradient(90deg, var(--paper) 0%, var(--paper) 30%, rgba(245,239,230,0.55) 48%, rgba(245,239,230,0) 70%);
}

.hero-grid { position: relative; z-index: 2; max-width: 1400px; margin: 0 auto; width: 100%; }
.hero-grid .kicker, .hero-grid h1, .hero-copy { max-width: 58%; }

.kicker {
    display: inline-flex; align-items: center; gap: 14px;
    font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase;
    color: var(--ink-soft); margin-bottom: 28px;
}
.kicker .dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%,100%{ opacity: 1; transform: scale(1);} 50%{ opacity: .5; transform: scale(.7);} }

.hero h1 {
    font-family: var(--font-display);
    font-weight: 900;
    line-height: 0.85;
    letter-spacing: -0.055em;
    font-size: clamp(40px, 7vw, 100px);
}
.hero h1 .row { display: flex; align-items: baseline; gap: 0.25em; flex-wrap: wrap; }
.hero h1 em { font-style: italic; font-weight: 300; color: var(--accent); font-size: 0.85em; }
.hero h1 .hero-tagline { font-size: 0.46em; font-weight: 300; font-style: italic; color: var(--ink-soft); margin-top: 12px; letter-spacing: -0.03em; }
.hero h1 .strike { position: relative; }
.hero h1 .strike::after {
    content: ""; position: absolute; left: -2%; right: -2%; top: 55%;
    height: 0.08em; background: var(--accent); transform-origin: left; transform: scaleX(0);
}
.hero h1 .strike.is-struck::after { animation: strike 0.7s cubic-bezier(.7,.1,.2,1) forwards; }
@keyframes strike { to { transform: scaleX(1); } }

.hero-copy { margin-top: 38px; }
.hero-copy > p { max-width: 480px; font-size: 17px; line-height: 1.55; color: var(--ink-soft); margin-bottom: 26px; }
.hero-copy > p strong { color: var(--ink); font-weight: 700; }

.hero-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.btn-primary {
    background: var(--ink); color: var(--cream);
    padding: 17px 26px; border-radius: 999px;
    font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500;
    display: inline-flex; align-items: center; gap: 12px;
    border: 1.5px solid var(--ink);
    transition: background .35s, border-color .35s, transform .35s;
}
.btn-primary:hover { background: var(--accent); border-color: var(--accent); color: var(--cream); transform: translateY(-2px); }
.btn-primary.ghost { background: transparent; color: var(--ink); }
.btn-primary.ghost:hover { background: var(--ink); color: var(--cream); }
.btn-primary .arr { display: inline-block; transition: transform .35s; }
.btn-primary:hover .arr { transform: translateX(4px) rotate(-45deg); }
.scribble { font-family: var(--font-hand); color: var(--accent); font-size: 24px; font-weight: 700; display: flex; align-items: center; gap: 8px; }

/* marquee */
.marquee {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    border-top: 1.5px solid var(--ink);
    border-bottom: 1.5px solid var(--ink);
    padding: 16px 0; overflow: hidden; background: var(--paper-2); z-index: 2;
}
.marquee-track {
    display: flex; gap: 60px; width: max-content;
    animation: marqScroll 32s linear infinite; white-space: nowrap;
    font-family: var(--font-display); font-weight: 900; font-size: 34px; letter-spacing: -0.02em; font-style: italic;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 60px; }
.marquee-track .star { color: var(--accent); font-style: normal; }
@keyframes marqScroll { to { transform: translateX(-50%); } }

/* ───────── SECTION COMMON ───────── */
.sec {
    position: relative;
    padding: clamp(80px, 11vw, 140px) 4.5%;
}
.wrap { max-width: 1400px; margin: 0 auto; }
.sec-label {
    display: inline-flex; align-items: center; gap: 12px;
    font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase;
    color: var(--ink-soft); margin-bottom: 24px;
}
.sec-label::before { content: ""; width: 34px; height: 1.5px; background: var(--accent); }
.sec-title {
    font-family: var(--font-display); font-weight: 900;
    font-size: clamp(44px, 7.5vw, 110px); line-height: 0.9; letter-spacing: -0.04em; max-width: 1100px;
}
.sec-title em { font-style: normal; font-weight: 300; color: var(--accent); }

/* ───────── SERVICES ───────── */
.services { background: var(--paper-2); color: var(--ink); }
.services .sec-label { color: var(--ink-faint); }
.services .sec-label::before { background: var(--accent-2); }
.services .sec-title em { color: var(--accent-2); }
.svc-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    margin-top: 70px; border-top: 1px solid rgba(255,255,255,0.10);
}
.svc {
    padding: 42px 30px;
    border-bottom: 1px solid rgba(255,255,255,0.10);
    border-right: 1px solid rgba(255,255,255,0.10);
    position: relative; overflow: hidden; cursor: default; transition: background .4s;
}
.svc:hover { background: #221c18; }
.svc .num { font-family: var(--font-display); font-style: normal; font-weight: 300; color: var(--accent-2); font-size: 16px; margin-bottom: 56px; display: block; }
.svc h3 { font-family: var(--font-display); font-weight: 900; font-size: 30px; letter-spacing: -0.02em; margin-bottom: 16px; line-height: 1; }
.svc p { color: var(--ink-faint); font-size: 14px; line-height: 1.6; }
.svc .pl { position: absolute; top: 30px; right: 30px; font-size: 24px; color: var(--accent-2); transition: transform .4s; }
.svc:hover .pl { transform: rotate(135deg); }

/* ───────── WORK ───────── */
.work { background: var(--paper); }
.work-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 30px; margin-bottom: 70px; }
.work-head .work-blurb { max-width: 340px; color: var(--ink-soft); font-size: 15px; line-height: 1.6; }
.work-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 26px; }
.proj {
    position: relative; cursor: pointer; overflow: hidden;
    border-radius: 16px; background: var(--paper-2);
    text-decoration: none; color: var(--ink);
    box-shadow: var(--shadow-sm);
    will-change: transform;
}
.proj .thumb { aspect-ratio: 4/3; overflow: hidden; position: relative; }
.proj .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.proj:hover .thumb img { transform: scale(1.05); }
.proj-meta { padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.proj-meta h4 { font-family: var(--font-display); font-weight: 900; font-size: 23px; letter-spacing: -0.02em; }
.proj-meta .tag { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft); white-space: nowrap; }
.proj .ix {
    position: absolute; top: 16px; left: 16px;
    background: rgba(26,23,21,0.85); color: var(--cream);
    font-family: var(--font-display); font-style: normal; font-weight: 500; font-size: 13px;
    padding: 6px 12px; border-radius: 99px; z-index: 2; backdrop-filter: blur(6px);
}
.proj.span7 { grid-column: span 7; }
.proj.span5 { grid-column: span 5; }
.proj.span12 { grid-column: span 12; }
.proj.span12 .thumb { aspect-ratio: 21/9; }
@media (max-width: 900px) {
    .proj.span7, .proj.span5, .proj.span12 { grid-column: span 12; }
    .proj.span12 .thumb { aspect-ratio: 4/3; }
}

/* ───────── PROCESS ───────── */
.process { background: var(--paper-2); }
.steps { margin-top: 70px; border-top: 1.5px solid var(--ink); }
.step {
    display: grid; grid-template-columns: 120px 1fr 1fr 80px; gap: 40px;
    padding: 40px 0; border-bottom: 1.5px solid var(--ink); align-items: center;
    transition: padding .4s;
}
.step:hover { padding-left: 14px; }
.step .stnum { font-family: var(--font-display); font-style: normal; font-weight: 300; font-size: 48px; color: var(--accent); }
.step h3 { font-family: var(--font-display); font-weight: 900; font-size: 40px; letter-spacing: -0.03em; line-height: 1; }
.step p { color: var(--ink-soft); font-size: 15px; line-height: 1.6; max-width: 380px; }
.step .step-arr { justify-self: end; font-size: 32px; transition: transform .4s, color .4s; }
.step:hover .step-arr { transform: translate(6px,-6px) rotate(-45deg); color: var(--accent); }
@media (max-width: 760px) {
    .step { grid-template-columns: 56px 1fr; gap: 16px; }
    .step p, .step .step-arr { grid-column: 2; }
    .step h3 { font-size: 26px; }
    .step .step-arr { display: none; }
}

/* ───────── TESTIMONIAL ───────── */
.quote { padding: clamp(90px,14vw,160px) 4.5%; text-align: center; position: relative; }
.quote::before {
    content: "\201C"; position: absolute; top: 40px; left: 50%; transform: translateX(-50%);
    font-family: var(--font-display); font-size: 240px; color: var(--accent); opacity: 0.18; line-height: 1;
}
.quote blockquote {
    font-family: var(--font-display); font-weight: 400; font-style: normal;
    font-size: clamp(26px, 4.4vw, 56px); line-height: 1.15; letter-spacing: -0.02em;
    max-width: 1100px; margin: 0 auto; position: relative;
}
.quote blockquote em { color: var(--accent); font-weight: 900; }
.quote cite { display: block; margin-top: 34px; font-style: normal; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft); }

/* ───────── RESPONSIVE ───────── */
@media (max-width: 940px) {
    .hero-illu-bg { width: 108%; right: -8%; }
    .hero-illu-bg img { height: 70%; opacity: 0.45; }
    .hero-illu-bg .badge { display: none; }
    .hero-scrim {
        background:
            linear-gradient(180deg, var(--paper) 0%, var(--paper) 5%, transparent 35%),
            radial-gradient(700px 500px at 90% 16%, rgba(244,162,97,0.20), transparent 65%),
            linear-gradient(180deg, var(--paper) 0%, rgba(245,239,230,0.35) 42%, rgba(245,239,230,0.65) 100%);
    }
    .hero-grid .kicker, .hero-grid h1, .hero-copy { max-width: 100%; }
    .hero { padding-top: 130px; }
}
