/* =========================================================
   Seema Pal — Portfolio
   Theme: white · navy · red (editorial, refined)
   ========================================================= */
:root {
  --navy-900: #071630;
  --navy-800: #0b1f3a;
  --navy-700: #13294b;
  --navy-600: #1f3a66;
  --navy-100: #e7ecf5;
  --red-600: #d62839;
  --red-700: #b51f2f;
  --red-100: #fde8ea;
  --white: #ffffff;
  --paper: #f6f7fb;
  --ink: #0f1b2d;
  --ink-2: #4a5872;
  --line: #e3e7ef;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;

  --radius-lg: 22px;
  --radius-md: 14px;
  --shadow-sm: 0 2px 10px rgba(11, 31, 58, .06);
  --shadow-md: 0 18px 40px -18px rgba(11, 31, 58, .28);
  --shadow-lg: 0 40px 80px -30px rgba(7, 22, 48, .45);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  font-size: 1.04rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--red-600); color: #fff; }
img { max-width: 100%; display: block; }
a { color: var(--navy-700); }
:focus-visible { outline: 3px solid var(--red-600); outline-offset: 3px; border-radius: 6px; }

/* ---------- Scroll progress ---------- */
.scroll-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 1100; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--red-600), var(--navy-600)); transform-origin: left; transform: scaleX(0); }

/* ---------- Buttons ---------- */
.btn { font-weight: 600; letter-spacing: .01em; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s, color .2s, border-color .2s; }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-lg-pill { border-radius: 999px; padding: .9rem 1.6rem; }
.btn-md-pill { border-radius: 999px; padding: .65rem 1.25rem; font-size: .95rem; }
.btn-sm-pill { border-radius: 999px; padding: .5rem 1.05rem; font-size: .9rem; }
.btn-navy { background: var(--navy-800); color: #fff; border: 1px solid var(--navy-800); }
.btn-navy:hover, .btn-navy:focus { background: var(--navy-600); border-color: var(--navy-600); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-red { background: var(--red-600); color: #fff; border: 1px solid var(--red-600); }
.btn-red:hover, .btn-red:focus { background: var(--red-700); border-color: var(--red-700); color: #fff; transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(214, 40, 57, .7); }
.btn-outline-red { color: var(--red-600); border: 1.5px solid var(--red-600); background: transparent; }
.btn-outline-red:hover, .btn-outline-red:focus { background: var(--red-600); color: #fff; transform: translateY(-2px); }
.btn-ghost { background: var(--navy-100); color: var(--navy-800); border: 1px solid transparent; }
.btn-ghost:hover { background: var(--navy-800); color: #fff; }

/* ---------- Navbar ---------- */
.site-nav { padding: 1.1rem 0; transition: padding .3s var(--ease), background-color .3s, box-shadow .3s; }
.site-nav.scrolled { padding: .6rem 0; background: rgba(255, 255, 255, .9); backdrop-filter: saturate(160%) blur(14px); box-shadow: 0 1px 0 var(--line), var(--shadow-sm); }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--navy-800); }
.brand-mark { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--navy-800); color: #fff; font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: 1.05rem; position: relative; }
.brand-mark::after { content: ""; position: absolute; top: -3px; right: -3px; width: 11px; height: 11px; border-radius: 50%; background: var(--red-600); border: 2px solid #fff; }
.brand-text { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; letter-spacing: -.01em; }
.site-nav .nav-link { color: var(--ink-2); font-weight: 500; padding: .5rem .85rem !important; position: relative; }
.site-nav .nav-link::after { content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .25rem; height: 2px; background: var(--red-600); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: var(--navy-800); }
.site-nav .nav-link:hover::after, .site-nav .nav-link.active::after { transform: scaleX(1); }
.navbar-toggler { border: 0; width: 44px; height: 44px; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 0 10px; border-radius: 12px; background: var(--navy-100); }
.navbar-toggler:focus { box-shadow: none; }
.toggler-line { display: block; height: 2px; background: var(--navy-800); border-radius: 2px; transition: transform .3s var(--ease); }
.navbar-toggler[aria-expanded="true"] .toggler-line:first-child { transform: translateY(4px) rotate(45deg); }
.navbar-toggler[aria-expanded="true"] .toggler-line:last-child { transform: translateY(-4px) rotate(-45deg); }
@media (max-width: 991.98px) {
  .site-nav { background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px); padding: .6rem 0; box-shadow: 0 1px 0 var(--line); }
  .navbar-collapse { padding: 1rem 0 .5rem; }
  .site-nav .nav-link::after { display: none; }
  .site-nav .nav-link { padding: .6rem .25rem !important; border-bottom: 1px solid var(--line); }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 8.5rem 0 6rem; overflow: hidden;
  background:
    radial-gradient(700px 420px at 92% 18%, rgba(214, 40, 57, .09), transparent 60%),
    radial-gradient(800px 600px at 70% 90%, rgba(31, 58, 102, .10), transparent 60%),
    var(--white); }
.hero-grid-bg { position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(11, 31, 58, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(11, 31, 58, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 30% 40%, #000 30%, transparent 75%); }
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-size: .85rem; font-weight: 600; color: var(--navy-700); background: var(--navy-100); padding: .45rem .95rem; border-radius: 999px; margin-bottom: 1.6rem; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #1fa363; box-shadow: 0 0 0 0 rgba(31, 163, 99, .5); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(31, 163, 99, 0); } 100% { box-shadow: 0 0 0 0 rgba(31, 163, 99, 0); } }
.hero-title { position: relative; z-index: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(2.8rem, 6.4vw, 5.2rem); line-height: 1.02; letter-spacing: -.03em; color: var(--navy-800); margin-bottom: 1rem; }
.hero-title em { font-style: italic; font-weight: 400; color: var(--navy-800); position: relative; white-space: nowrap; }
.hero-title em::after { content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .14em; background: var(--red-600); border-radius: 4px; transform: scaleX(0); transform-origin: left; animation: underline 1s .9s var(--ease) forwards; z-index: -1; opacity: .9; }
@keyframes underline { to { transform: scaleX(1); } }
.hero-role { font-size: clamp(1.25rem, 2.4vw, 1.6rem); color: var(--ink-2); margin-bottom: 1.25rem; }
.role-rotator { color: var(--red-600); font-weight: 700; display: inline-flex; align-items: center; }
.caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 3px; background: var(--red-600); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-lead { color: var(--ink-2); max-width: 34rem; font-size: 1.1rem; margin-bottom: 2rem; }
.hero-stats { display: grid; grid-template-columns: repeat(3, auto); gap: 2.25rem; margin: 2.75rem 0 0; padding-top: 1.75rem; border-top: 1px solid var(--line); max-width: 34rem; }
.hero-stats dt { font-family: var(--font-display); font-size: 2.4rem; font-weight: 600; color: var(--navy-800); line-height: 1; }
.hero-stats sup { font-size: .9rem; color: var(--red-600); margin-left: 2px; top: -1.1em; font-family: var(--font-body); }
.hero-stats dd { margin: .4rem 0 0; font-size: .86rem; color: var(--ink-2); line-height: 1.35; }

/* Hero stage composition */
.hero-stage { position: relative; aspect-ratio: 1 / .92; max-width: 600px; margin-inline: auto; }
.stage-ring { position: absolute; inset: 8% 6%; border-radius: 50%; border: 1.5px dashed rgba(11, 31, 58, .18); animation: spin 60s linear infinite; }
.stage-ring::before { content: ""; position: absolute; top: 8%; left: 14%; width: 14px; height: 14px; border-radius: 50%; background: var(--red-600); }
@keyframes spin { to { transform: rotate(360deg); } }
.stage-card { position: absolute; margin: 0; border-radius: var(--radius-md); overflow: hidden; background: #fff; box-shadow: var(--shadow-lg); }
.card-browser { width: 78%; left: 0; top: 10%; z-index: 2; border: 1px solid var(--line); }
.card-browser img { width: 100%; height: auto; }
.card-poster { width: 34%; right: 0; top: 0; z-index: 3; transform: rotate(5deg); border: 6px solid #fff; }
.card-video { width: 52%; right: 4%; bottom: 2%; z-index: 4; border: 6px solid #fff; }
.card-video img { width: 100%; height: auto; }
.play-chip { position: absolute; left: 50%; top: 45%; translate: -50% -50%; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: var(--red-600); font-size: 1.6rem; box-shadow: var(--shadow-md); }
.timeline { position: absolute; left: 10px; right: 10px; bottom: 10px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .35); overflow: hidden; }
.timeline i { display: block; height: 100%; width: 100%; background: var(--red-600); transform-origin: left; animation: progress 6s linear infinite; }
@keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.stage-tag { position: absolute; z-index: 5; display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; font-size: .85rem; padding: .5rem .9rem; border-radius: 999px; background: #fff; color: var(--navy-800); box-shadow: var(--shadow-md); }
.stage-tag i { color: var(--red-600); }
.tag-1 { left: -2%; bottom: 26%; animation: bob 5s ease-in-out infinite; }
.tag-2 { right: 30%; top: -2%; animation: bob 6s 1s ease-in-out infinite; }
.tag-3 { right: -3%; bottom: 42%; background: var(--navy-800); color: #fff; animation: bob 5.5s .5s ease-in-out infinite; }
.tag-3 i { color: #ff8a95; }
.float-a { animation: floatA 9s ease-in-out infinite; }
.float-b { animation: floatB 8s ease-in-out infinite; }
.float-c { animation: floatC 10s ease-in-out infinite; }
@keyframes floatA { 50% { transform: translateY(-10px); } }
@keyframes floatB { 0%, 100% { transform: rotate(5deg) translateY(0); } 50% { transform: rotate(3deg) translateY(12px); } }
@keyframes floatC { 50% { transform: translateY(-14px); } }
@keyframes bob { 50% { transform: translateY(-8px); } }

.scroll-cue { position: absolute; left: 50%; bottom: 1.6rem; translate: -50% 0; width: 26px; height: 42px; border: 2px solid rgba(11, 31, 58, .3); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--red-600); animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Page-load stagger */
.load-in { opacity: 0; transform: translateY(24px); animation: loadIn .9s var(--d, 0s) var(--ease) forwards; }
@keyframes loadIn { to { opacity: 1; transform: none; } }

/* ---------- Marquee ---------- */
.marquee { background: var(--navy-800); color: #fff; overflow: hidden; padding: 1.05rem 0; border-block: 4px solid var(--red-600); }
.marquee-track { display: flex; gap: 2rem; width: max-content; animation: marquee 38s linear infinite; font-family: var(--font-display); font-size: 1.35rem; font-style: italic; white-space: nowrap; }
.marquee-track i { font-style: normal; color: var(--red-600); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(5rem, 9vw, 8rem) 0; position: relative; }
.section-tint { background: var(--paper); }
.section-navy { background: radial-gradient(900px 500px at 85% 0%, rgba(214, 40, 57, .16), transparent 60%), linear-gradient(180deg, var(--navy-800), var(--navy-900)); color: #fff; overflow: hidden; }
.noise { position: absolute; inset: 0; opacity: .07; pointer-events: none; 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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.section-num { font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--red-600); margin-bottom: 1rem; display: flex; align-items: center; gap: .8rem; }
.section-num::before { content: ""; width: 34px; height: 2px; background: currentColor; }
.section-num.light { color: #ff7d89; }
.section-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.1rem, 4.4vw, 3.4rem); line-height: 1.08; letter-spacing: -.025em; color: var(--navy-800); margin: 0; }
.section-title em { font-style: italic; font-weight: 400; color: var(--red-600); }
.section-title.light { color: #fff; }
.section-title.light em { color: #ff8a95; }
.text-soft { color: rgba(255, 255, 255, .72); }
.text-muted-2 { color: var(--ink-2); }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- About ---------- */
.about-monogram { margin-top: 2.5rem; position: relative; aspect-ratio: 1 / 1; max-width: 340px; border-radius: 28px; background: linear-gradient(150deg, var(--navy-700), var(--navy-900)); display: grid; place-items: center; overflow: hidden; box-shadow: var(--shadow-lg); }
.about-monogram::before { content: ""; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: var(--red-600); right: -22%; bottom: -22%; opacity: .9; }
.about-monogram::after { content: ""; position: absolute; inset: 16px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 18px; }
.mono-letters { position: relative; font-family: var(--font-display); font-style: italic; font-size: clamp(6rem, 12vw, 9rem); color: #fff; line-height: 1; letter-spacing: -.04em; }
.mono-caption { position: absolute; left: 30px; bottom: 26px; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .75); }
.lead-serif { font-family: var(--font-display); font-size: clamp(1.35rem, 2.2vw, 1.7rem); line-height: 1.45; color: var(--navy-800); margin-bottom: 1.4rem; }
.about-copy p:not(.lead-serif) { color: var(--ink-2); }
.fact { display: flex; gap: 1rem; align-items: center; padding: 1rem 1.15rem; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; transition: border-color .25s, transform .25s var(--ease), box-shadow .25s; height: 100%; }
.fact:hover { border-color: rgba(214, 40, 57, .4); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.fact i { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--red-100); color: var(--red-600); font-size: 1.15rem; }
.fact small { display: block; color: var(--ink-2); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.fact strong { color: var(--navy-800); font-weight: 600; word-break: break-word; }
.process { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.process li { padding: 1.4rem 1.2rem 0 0; }
.process li + li { padding-left: 1.2rem; border-left: 1px solid var(--line); }
.process span { font-family: var(--font-display); font-style: italic; color: var(--red-600); font-size: 1.1rem; }
.process strong { display: block; color: var(--navy-800); font-size: 1.05rem; margin: .2rem 0 .25rem; }
.process p { margin: 0; font-size: .92rem; color: var(--ink-2); line-height: 1.5; }
@media (max-width: 575.98px) {
  .process { grid-template-columns: 1fr; }
  .process li + li { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); margin-top: 1.2rem; }
}

/* ---------- Skills ---------- */
.skill-card { height: 100%; padding: 2rem; border-radius: var(--radius-lg); background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .1); backdrop-filter: blur(4px); transition: transform .35s var(--ease), border-color .35s, background-color .35s; }
.skill-card:hover { transform: translateY(-6px); border-color: rgba(255, 138, 149, .45); background: rgba(255, 255, 255, .07); }
.skill-head { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.6rem; }
.skill-head h3 { font-family: var(--font-display); font-size: 1.5rem; margin: 0; color: #fff; }
.skill-icon { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 14px; background: var(--red-600); color: #fff; font-size: 1.35rem; box-shadow: 0 12px 24px -10px rgba(214, 40, 57, .8); }
.bars { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.05rem; }
.bars li { display: grid; grid-template-columns: 1fr auto; row-gap: .45rem; font-size: .95rem; color: rgba(255, 255, 255, .88); }
.bars li::after { content: attr(data-pct); font-size: .82rem; color: rgba(255, 255, 255, .55); grid-column: 2; grid-row: 1; }
.bars b { grid-column: 1 / -1; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .1); position: relative; overflow: hidden; }
.bars b::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #ff6b78, var(--red-600)); border-radius: inherit; transform-origin: left; transform: scaleX(0); transition: transform 1.4s var(--ease); }
.bars b.filled::before { transform: scaleX(var(--lvl, 0)); }
.soft-skills { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2.5rem; }
.soft-skills span { padding: .55rem 1.05rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2); font-size: .9rem; color: rgba(255, 255, 255, .85); transition: background-color .25s, color .25s, border-color .25s; }
.soft-skills span:hover { background: #fff; color: var(--navy-800); border-color: #fff; }

/* ---------- Website projects ---------- */
.project { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding: 3rem 0; }
.project + .project { border-top: 1px solid var(--line); }
.project-flip .project-media { order: 2; }
.project-media { position: relative; padding-bottom: 2rem; }
.browser-frame { display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; box-shadow: var(--shadow-lg); text-align: left; position: relative; cursor: zoom-in; transition: transform .5s var(--ease), box-shadow .5s; }
.browser-frame img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transition: transform 1.2s var(--ease); }
.browser-frame:hover { transform: translateY(-6px) rotate(-.4deg); }
.browser-frame:hover img { transform: scale(1.04); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: .6rem .85rem; background: #f2f4f8; border-bottom: 1px solid var(--line); position: relative; z-index: 1; }
.browser-bar span { width: 10px; height: 10px; border-radius: 50%; background: #d8dde6; }
.browser-bar span:first-child { background: var(--red-600); }
.browser-bar em { font-style: normal; font-size: .74rem; color: var(--ink-2); margin-left: .75rem; padding: .15rem .8rem; background: #fff; border-radius: 6px; border: 1px solid var(--line); }
.zoom-hint { position: absolute; right: 14px; bottom: 14px; z-index: 2; background: rgba(11, 31, 58, .88); color: #fff; font-size: .8rem; font-weight: 600; padding: .45rem .85rem; border-radius: 999px; opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s var(--ease); }
.browser-frame:hover .zoom-hint, .browser-frame:focus-visible .zoom-hint { opacity: 1; transform: none; }
.phone-float { position: absolute; right: -4%; bottom: -1rem; width: 24%; max-width: 170px; border-radius: 20px; border: 6px solid var(--navy-800); box-shadow: var(--shadow-lg); background: #fff; aspect-ratio: 9 / 19.5; object-fit: cover; object-position: top; }
.project-flip .phone-float { right: auto; left: -4%; }
.project-index { font-family: var(--font-display); font-style: italic; font-size: 4.5rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(11, 31, 58, .2); display: block; margin-bottom: .5rem; }
.project-kicker { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--red-600); margin-bottom: .45rem; }
.project-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--navy-800); letter-spacing: -.02em; margin-bottom: 1rem; }
.project-body p { color: var(--ink-2); }
.project-tags { list-style: none; padding: 0; margin: 1.25rem 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.project-tags li { font-size: .8rem; font-weight: 600; color: var(--navy-700); background: var(--navy-100); padding: .3rem .75rem; border-radius: 999px; }
.thumbs { display: flex; gap: .6rem; flex-wrap: wrap; }
.thumbs button { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; width: 84px; aspect-ratio: 16 / 10; background: var(--paper); transition: border-color .25s, transform .25s var(--ease); }
.thumbs button:hover { border-color: var(--red-600); transform: translateY(-3px); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 991.98px) {
  .project { grid-template-columns: 1fr; }
  .project-flip .project-media { order: 0; }
  .project-index { font-size: 3.2rem; }
}

/* ---------- Graphic design grid ---------- */
.filters { display: inline-flex; flex-wrap: wrap; gap: .4rem; padding: .35rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); float: right; }
.filters button { border: 0; background: transparent; font-weight: 600; font-size: .9rem; color: var(--ink-2); padding: .5rem 1rem; border-radius: 999px; transition: background-color .25s, color .25s; }
.filters button:hover { color: var(--navy-800); }
.filters button.active { background: var(--navy-800); color: #fff; }
@media (max-width: 991.98px) { .filters { float: none; } }
.design-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 240px; grid-auto-flow: dense; gap: 1.25rem; margin-top: 1rem; }
.design-item { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden; cursor: zoom-in; background: var(--navy-100); box-shadow: var(--shadow-sm); grid-row: span 1; transition: opacity .45s var(--ease), transform .45s var(--ease); }
.design-item.tall { grid-row: span 2; }
.design-item.wide { grid-column: span 2; grid-row: span 2; }
.design-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.design-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(7, 22, 48, .88)); opacity: 0; transition: opacity .4s; }
.design-item figcaption { position: absolute; left: 1.25rem; right: 1.25rem; bottom: 1.1rem; z-index: 1; color: #fff; transform: translateY(14px); opacity: 0; transition: transform .45s var(--ease), opacity .45s; }
.design-item figcaption span { display: block; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: #ff9aa4; font-weight: 700; }
.design-item figcaption strong { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; }
.design-item:hover img, .design-item:focus-visible img { transform: scale(1.06); }
.design-item:hover::after, .design-item:focus-visible::after, .design-item:hover figcaption, .design-item:focus-visible figcaption { opacity: 1; transform: none; }
.design-item.is-hidden { display: none; }
@media (hover: none) { .design-item::after, .design-item figcaption { opacity: 1; transform: none; } }
@media (max-width: 991.98px) { .design-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 210px; } }
@media (max-width: 575.98px) {
  .design-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .design-item, .design-item.tall, .design-item.wide { grid-column: auto; grid-row: auto; }
  .design-item img { height: auto; aspect-ratio: 4 / 3; }
  .design-item.tall img { aspect-ratio: 3 / 4; }
}

/* ---------- Video cards ---------- */
.video-card { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--navy-700); text-align: left; color: #fff; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); }
.video-card img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; transition: transform 1.1s var(--ease), filter .5s; }
.video-card.featured img { aspect-ratio: 16 / 10.6; }
.video-card.wide-strip img { aspect-ratio: 35 / 12; }
.video-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 22, 48, 0) 40%, rgba(7, 22, 48, .85)); pointer-events: none; }
.video-card:hover img { transform: scale(1.05); filter: saturate(1.1); }
.video-stack { display: grid; gap: 1.5rem; height: 100%; }
.video-play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; z-index: 2; width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center; background: var(--red-600); color: #fff; font-size: 2.1rem; box-shadow: 0 0 0 0 rgba(214, 40, 57, .55); transition: transform .35s var(--ease); animation: ring 2.4s infinite; }
.video-play i { margin-left: 4px; }
.video-play.sm { width: 56px; height: 56px; font-size: 1.5rem; }
.video-card:hover .video-play { transform: scale(1.12); }
@keyframes ring { 70% { box-shadow: 0 0 0 18px rgba(214, 40, 57, 0); } 100% { box-shadow: 0 0 0 0 rgba(214, 40, 57, 0); } }
.video-duration { position: absolute; top: 14px; right: 14px; z-index: 2; font-size: .78rem; font-weight: 700; padding: .25rem .6rem; border-radius: 6px; background: rgba(7, 22, 48, .75); letter-spacing: .04em; }
.video-meta { position: absolute; left: 1.4rem; bottom: 1.2rem; right: 1.4rem; z-index: 2; }
.video-meta small { display: block; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: #ff9aa4; font-weight: 700; }
.video-meta strong { font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; }
.video-card.featured .video-meta strong { font-size: 2rem; }
@media (max-width: 575.98px) { .video-card.wide-strip img { aspect-ratio: 16 / 9; } .video-card.featured .video-meta strong { font-size: 1.5rem; } }

/* ---------- Contact ---------- */
.contact-wrap { border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); background: #fff; }
.contact-side { position: relative; padding: clamp(2rem, 4vw, 3.5rem); color: #fff; background: radial-gradient(500px 300px at 100% 100%, rgba(214, 40, 57, .35), transparent 60%), linear-gradient(160deg, var(--navy-700), var(--navy-900)); }
.contact-side .section-title { margin-bottom: 1rem; }
.contact-list { list-style: none; padding: 0; margin: 2rem 0; display: grid; gap: 1.1rem; }
.contact-list li { display: flex; gap: 1rem; align-items: center; }
.contact-list li > span { width: 46px; height: 46px; flex: none; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: #ff8a95; font-size: 1.1rem; }
.contact-list small { display: block; color: rgba(255, 255, 255, .6); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; }
.contact-list a, .contact-list strong { color: #fff; text-decoration: none; font-weight: 600; word-break: break-word; }
.contact-list a:hover { color: #ff8a95; }
.contact-form-col { padding: clamp(2rem, 4vw, 3.5rem); display: flex; align-items: center; }
.contact-form-col form { width: 100%; }
.form-control, .form-select { border-radius: 12px; border-color: var(--line); background-color: var(--paper); }
.form-control:focus, .form-select:focus { border-color: var(--navy-600); background-color: #fff; box-shadow: 0 0 0 .22rem rgba(31, 58, 102, .14); }
.form-floating > label { color: var(--ink-2); }
.was-validated .form-control:invalid, .form-control.is-invalid { border-color: var(--red-600); }
.form-status { font-weight: 600; font-size: .95rem; }
.form-status.ok { color: #198754; }
.form-status.err { color: var(--red-600); }
#sendBtn[disabled] { opacity: .75; }
#sendBtn.loading .btn-label::after { content: "…"; }

/* ---------- Footer & to-top ---------- */
.site-footer { padding: 2.5rem 0; border-top: 1px solid var(--line); color: var(--ink-2); font-size: .95rem; }
.to-top { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 1030; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--red-600); color: #fff; font-size: 1.15rem; box-shadow: var(--shadow-md); opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease), background-color .2s; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--navy-800); }

/* ---------- Lightbox ---------- */
.lightbox .modal-content { background: var(--navy-900); color: #fff; border: 1px solid rgba(255, 255, 255, .1); border-radius: 20px; }
.lightbox .modal-title { font-family: var(--font-display); font-size: 1.4rem; }
.modal-backdrop.show { opacity: .82; background: var(--navy-900); }
.lb-stage { position: relative; display: grid; place-items: center; background: #050f22; border-radius: 14px; overflow: hidden; min-height: 50vh; }
.lb-stage img { max-height: 74vh; width: auto; max-width: 100%; object-fit: contain; animation: lbIn .45s var(--ease); }
@keyframes lbIn { from { opacity: 0; transform: scale(.97); } }
.lb-nav { position: absolute; top: 50%; translate: 0 -50%; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--navy-800); font-size: 1.2rem; display: grid; place-items: center; box-shadow: var(--shadow-md); transition: background-color .2s, color .2s; z-index: 2; }
.lb-nav:hover { background: var(--red-600); color: #fff; }
.lb-nav.prev { left: 12px; }
.lb-nav.next { right: 12px; }
.lb-dots { display: flex; justify-content: center; gap: .5rem; margin-top: 1rem; }
.lb-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: rgba(255, 255, 255, .3); transition: width .3s var(--ease), background-color .3s; }
.lb-dots button.active { width: 28px; border-radius: 6px; background: var(--red-600); }
.video-frame { border-radius: 14px; overflow: hidden; background: #050f22; }
.video-placeholder { position: absolute; inset: 0; display: grid; place-items: center; }
.video-placeholder img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.45); }
.video-placeholder div { position: relative; text-align: center; padding: 1.5rem; max-width: 30rem; }
.video-placeholder i { font-size: 2.6rem; color: #ff8a95; }
.video-placeholder p { margin: .75rem 0 1.25rem; color: rgba(255, 255, 255, .85); }

/* ---------- Responsive tweaks ---------- */
@media (max-width: 991.98px) {
  .hero { min-height: auto; padding: 7.5rem 0 5rem; }
  .hero-stage { max-width: 520px; margin-top: 1rem; }
  .scroll-cue { display: none; }
}
@media (max-width: 575.98px) {
  body { font-size: 1rem; }
  .hero-stats { gap: 1.25rem; }
  .hero-stats dt { font-size: 2rem; }
  .stage-tag { font-size: .75rem; padding: .4rem .7rem; }
  .phone-float { width: 28%; right: -2%; border-width: 4px; border-radius: 14px; }
  .project-flip .phone-float { left: -2%; }
  .marquee-track { font-size: 1.1rem; }
  .lb-nav { width: 38px; height: 38px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal, .load-in { opacity: 1; transform: none; }
}
