/* ============================================================
   Sanghmitra — Editorial Light Redesign
   Design system: Instrument Serif (display) + Inter (body/UI)
   Navy-on-white palette, hairline borders, fade-rise motion.
   ============================================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
#about, #skills, #experience, #instagram { scroll-margin-top: 90px; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }

/* ---------- Design tokens ---------- */
:root {
    --ink: #0f172a;
    --ink-muted: hsl(215, 25%, 32%);
    --ink-soft: #64748b;
    --bg: #ffffff;
    --bg-soft: #f8fafc;
    --line: #e5e7eb;
    --line-soft: #f1f5f9;
    --cta-bg: #000000;
    --cta-fg: #ffffff;
    --accent: #b45309;

    --font-serif: 'Instrument Serif', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --container: 1240px;
    --radius: 20px;
    --radius-sm: 12px;

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

body {
    font-family: var(--font-sans);
    color: var(--ink-muted);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.eyebrow {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
    text-align: center;
}

.section-title, .section-title-lg {
    font-family: var(--font-serif);
    font-weight: 400;
    color: var(--ink);
    text-align: center;
    letter-spacing: -0.02em;
    line-height: 1.05;
}
.section-title { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 16px; }
.section-title-lg { font-size: clamp(2.6rem, 6.5vw, 4.6rem); margin-bottom: 16px; }
.section-title em, .section-title-lg em { font-style: italic; color: var(--accent); }

.section-desc {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 56px;
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    color: var(--ink-soft);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 32px;
    border-radius: 9999px;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    transition: transform .3s var(--ease), background-color .3s var(--ease), border-color .3s var(--ease);
}
.btn:hover { transform: scale(1.03); }
.btn-primary { background: var(--cta-bg); color: var(--cta-fg); }
.btn-primary:hover { background: #1f2937; }
.btn-ghost { border: 1.5px solid rgba(15, 23, 42, .25); color: var(--ink); background: rgba(255,255,255,.5); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--ink); background: #fff; }
.btn-sm { padding: 10px 22px; font-size: 14px; }
.btn-block { width: 100%; justify-content: center; margin-top: 8px; }

/* ---------- Reveal / fade-rise motion ---------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Loader ---------- */
.loader {
    position: fixed; inset: 0; z-index: 999;
    background: var(--bg);
    display: flex; align-items: center; justify-content: center;
    transition: opacity .5s var(--ease), visibility .5s var(--ease);
}
.loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-mark {
    font-family: var(--font-serif);
    font-size: 56px;
    color: var(--ink);
    animation: loaderPulse 1.1s ease-in-out infinite;
}
@keyframes loaderPulse { 0%,100% { opacity: .25; } 50% { opacity: 1; } }

/* ---------- Nav ---------- */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 200;
    transition: background-color .4s var(--ease), border-color .4s var(--ease), padding .4s var(--ease), box-shadow .4s var(--ease);
    padding: 22px 0;
    border-bottom: 1px solid transparent;
}
.nav.sticky {
    background: rgba(255,255,255,.86);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom-color: var(--line);
    padding: 14px 0;
    box-shadow: 0 4px 24px rgba(15,23,42,.05);
}
.nav-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
}
.nav-logo {
    font-family: var(--font-serif);
    font-size: 26px;
    color: var(--ink);
    grid-column: 1;
    justify-self: start;
}
.nav-links {
    display: flex;
    gap: 40px;
    grid-column: 2;
    justify-self: center;
}
.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-muted);
    transition: color .25s var(--ease);
    position: relative;
}
.nav-links a:hover { color: var(--ink); }
.nav-actions { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 14px; }
.nav-cta { display: inline-flex; }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px; height: 32px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); transition: transform .3s var(--ease), opacity .3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 4px;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s var(--ease), padding .4s var(--ease);
}
.mobile-menu.open { max-height: 420px; padding: 18px 24px 22px; }
.mobile-menu a:not(.btn) {
    padding: 12px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--line-soft);
    color: var(--ink);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--bg-soft);
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-video { width: 100%; height: 100%; object-fit: cover; }
.hero-scrim {
    position: absolute; inset: 0;
    background:
        radial-gradient(120% 90% at 50% 38%, rgba(255,255,255,.35) 0%, rgba(255,255,255,.72) 55%, rgba(255,255,255,.92) 100%),
        linear-gradient(180deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,.25) 30%, rgba(255,255,255,.6) 100%);
}
.hero-content {
    position: relative; z-index: 2;
    max-width: 840px;
    margin: 0 auto;
    padding: 140px 24px 40px;
    text-align: center;
}
.hero-title {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: clamp(48px, 9vw, 88px);
    line-height: .95;
    letter-spacing: -2.4px;
    color: var(--ink);
    margin-bottom: 22px;
}
.hero-subtitle {
    font-size: clamp(15px, 1.6vw, 18.5px);
    color: var(--ink-muted);
    max-width: 620px;
    margin: 0 auto 40px;
    line-height: 1.5;
}
.hero-cta { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-detail {
    font-family: var(--font-sans);
    font-size: 12.5px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink-soft);
    display: flex; align-items: center; justify-content: center; gap: 10px;
}
.hero-detail-sep { opacity: .5; }

.scroll-indicator {
    position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
    z-index: 2;
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft);
    animation: floatY 2.6s ease-in-out infinite;
}
.scroll-mouse {
    width: 22px; height: 34px; border: 1.5px solid rgba(15,23,42,.35); border-radius: 12px;
    display: flex; justify-content: center; padding-top: 6px;
}
.scroll-dot { width: 4px; height: 8px; border-radius: 2px; background: var(--ink); animation: scrollDot 1.6s ease-in-out infinite; }
@keyframes floatY { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -8px); } }
@keyframes scrollDot { 0% { opacity: 1; transform: translateY(0); } 70%,100% { opacity: 0; transform: translateY(10px); } }

/* ---------- Mission ---------- */
.mission { padding: 130px 0 100px; }
.mission-statement {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: clamp(1.7rem, 4vw, 2.85rem);
    line-height: 1.28;
    text-align: center;
    color: var(--ink);
    max-width: 900px;
    margin: 0 auto 72px;
}
.mission-statement em { color: var(--accent); font-style: italic; }

.stat-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 720px;
    margin: 0 auto;
    border-top: 1px solid var(--line);
}
.stat {
    flex: 1 1 150px;
    text-align: center;
    padding: 28px 16px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.stat:last-child { border-right: none; }
.stat-label {
    display: block;
    font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
    color: var(--ink-soft); margin-bottom: 8px;
}
.stat-value { font-family: var(--font-serif); font-size: 26px; color: var(--ink); }

/* ---------- Skills ---------- */
.skills { padding: 100px 0; background: var(--bg-soft); }
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 980px;
    margin: 0 auto;
}
.skill-card {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 34px 30px;
    transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.skill-card:hover { border-color: rgba(15,23,42,.28); transform: translateY(-4px); box-shadow: 0 20px 40px rgba(15,23,42,.06); }
.skill-card-icon {
    width: 46px; height: 46px; border-radius: 50%;
    background: var(--bg-soft); border: 1px solid var(--line);
    display: flex; align-items: center; justify-content: center;
    color: var(--ink); font-size: 17px; margin-bottom: 20px;
}
.skill-card h3 { font-family: var(--font-serif); font-weight: 400; font-size: 22px; color: var(--ink); margin-bottom: 16px; }
.skill-card ul li {
    padding: 9px 0;
    border-top: 1px solid var(--line-soft);
    font-size: 14.5px;
    color: var(--ink-muted);
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.skill-card ul li:first-child { border-top: none; }
.skill-card ul li::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: var(--accent); font-size: 10px; margin-right: 10px; }
.skill-card ul li span { font-size: 12px; color: var(--ink-soft); white-space: nowrap; }

/* ---------- Experience / editorial cards ---------- */
.experience { padding: 110px 0; }
.editorial-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    max-width: 1120px;
    margin: 20px auto 0;
}
.editorial-card {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 40px 34px;
    transition: box-shadow .4s var(--ease), border-color .4s var(--ease);
    will-change: transform;
}
.editorial-card:hover { box-shadow: 0 30px 60px rgba(15,23,42,.08); border-color: rgba(15,23,42,.22); }
.editorial-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.editorial-card-num { font-family: var(--font-serif); font-size: 15px; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 9999px; padding: 4px 12px; }
.editorial-card-tag { font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); display: inline-flex; align-items: center; gap: 8px; }
.editorial-card h3 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--ink); margin-bottom: 14px; letter-spacing: -.01em; }
.editorial-card-intro { font-size: 15px; color: var(--ink-muted); line-height: 1.6; margin-bottom: 28px; }

.play-list { display: flex; flex-direction: column; gap: 18px; margin-bottom: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.play-list h4 { font-family: var(--font-serif); font-weight: 400; font-size: 19px; color: var(--ink); margin-bottom: 4px; }
.play-list p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.55; }

.video-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.video-tiles-grid { grid-template-columns: repeat(2, 1fr); }
.video-tile {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    text-align: left;
}
.video-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.video-tile:hover img { transform: scale(1.06); }
.play-badge {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 42px; height: 42px; border-radius: 50%;
    background: rgba(255,255,255,.92);
    color: var(--ink);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
    box-shadow: 0 8px 20px rgba(15,23,42,.18);
    transition: transform .3s var(--ease);
}
.video-tile:hover .play-badge { transform: translate(-50%, -50%) scale(1.1); }
.video-tile-title {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 8px 10px;
    font-size: 11.5px; font-weight: 500; color: #fff;
    background: linear-gradient(0deg, rgba(15,23,42,.75), transparent);
}
.video-tile-title small { display: block; font-weight: 400; opacity: .8; font-size: 10px; }

/* ---------- Connect / Instagram ---------- */
.connect { padding: 110px 0; background: var(--bg-soft); }
.instagram-card {
    max-width: 580px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    min-height: 200px;
    overflow: hidden;
}
/* Instagram's own embed brings its own white card, border-radius and
   shadow (via the inline style on the blockquote) — this wrapper just
   gives it room and keeps it centered, it doesn't box it again.
   embed.js replaces the blockquote with its own <iframe> carrying a
   fixed inline pixel width that ignores the container — override it. */
.instagram-card iframe.instagram-media {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

/* ---------- Footer ---------- */
.footer { padding: 90px 0 30px; border-top: 1px solid var(--line); overflow: hidden; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 30px; margin-bottom: 60px; }
.footer-logo { font-family: var(--font-serif); font-size: 30px; color: var(--ink); margin-bottom: 8px; }
.footer-tagline { font-size: 14px; color: var(--ink-soft); max-width: 320px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; text-align: right; }
.footer-links a { font-size: 14.5px; color: var(--ink-muted); display: inline-flex; align-items: center; gap: 8px; transition: color .25s var(--ease); }
.footer-links a:hover { color: var(--accent); }

.footer-wordmark {
    font-family: var(--font-serif);
    font-size: clamp(3.5rem, 13vw, 9rem);
    line-height: .8;
    color: var(--ink);
    opacity: .06;
    text-align: center;
    white-space: nowrap;
    user-select: none;
    margin-bottom: 40px;
}
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding-top: 24px; border-top: 1px solid var(--line-soft); }
.footer-bottom p { font-size: 13px; color: var(--ink-soft); }
.footer-nav { display: flex; gap: 22px; }
.footer-nav a { font-size: 13px; color: var(--ink-soft); transition: color .25s var(--ease); }
.footer-nav a:hover { color: var(--ink); }

/* ---------- Sticky contact bar ---------- */
.sticky-contact {
    position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(120%);
    z-index: 150;
    display: flex; align-items: center; gap: 4px;
    background: rgba(15,23,42,.92);
    backdrop-filter: blur(10px);
    border-radius: 9999px;
    padding: 6px;
    box-shadow: 0 20px 40px rgba(15,23,42,.25);
    transition: transform .5s var(--ease);
}
.sticky-contact.visible { transform: translateX(-50%) translateY(0); }
.sticky-contact a { display: flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 9999px; font-size: 13.5px; font-weight: 500; color: #fff; transition: background-color .25s var(--ease); }
.sticky-contact a:hover { background: rgba(255,255,255,.14); }
.sticky-sep { width: 1px; height: 18px; background: rgba(255,255,255,.2); }

/* ---------- Video modal ---------- */
.video-modal { position: fixed; inset: 0; z-index: 500; display: flex; align-items: center; justify-content: center; padding: 24px; }
.video-modal[hidden] { display: none; }
.video-modal-backdrop { position: absolute; inset: 0; background: rgba(15,23,42,.82); backdrop-filter: blur(4px); }
.video-modal-dialog { position: relative; z-index: 1; width: 100%; max-width: 920px; }
.video-modal-frame { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; border-radius: 16px; overflow: hidden; }
.video-modal-frame iframe { width: 100%; height: 100%; border: 0; }
.video-modal-close {
    position: absolute; top: -46px; right: 0;
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,.12); color: #fff; font-size: 22px; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    transition: background-color .25s var(--ease);
}
.video-modal-close:hover { background: rgba(255,255,255,.25); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .nav-links, .nav-cta { display: none; }
    .nav-toggle { display: flex; }
    .mobile-menu { display: flex; }

    .editorial-cards { grid-template-columns: 1fr; }
    .video-tiles-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
    .skills-grid { grid-template-columns: 1fr; }
    .hero-content { padding-top: 120px; }
    .stat-row { border-top: none; }
    .stat { flex: 1 1 45%; border: none; border-bottom: 1px solid var(--line); }
    .footer-top { flex-direction: column; }
    .footer-links { align-items: flex-start; text-align: left; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
    .video-tiles, .video-tiles-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .editorial-card { padding: 28px 22px; }
    .hero-cta { flex-direction: column; width: 100%; }
    .hero-cta .btn { width: 100%; justify-content: center; }
}
