/* ============================================================
   Pratik Parida — Portfolio
   Cinematic Noir, reimagined: immersive, tactile, futuristic.
   ============================================================ */

:root {
  --cream: #e6e2df;
  --cream-dim: #c8c7b4;
  --cream-bright: #fbf7e4;
  --primary-c: #dedbc8;
  --charcoal-1: #0c0c0c;
  --charcoal-2: #141312;
  --charcoal-3: #1c1b1a;
  --line: rgba(225, 224, 204, 0.10);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

body {
  font-family: 'Almarai', sans-serif;
  background: #000;
  color: var(--cream);
  -webkit-font-smoothing: antialiased;
  cursor: auto;
}

/* Lenis manages scrolling; keep native fallback smooth */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

.font-serif-italic { font-family: 'Instrument Serif', serif; font-style: italic; }

::selection { background: rgba(222, 219, 200, 0.25); color: #fff; }

/* ---------- Ambient animated gradient field ---------- */
/* ---------- Ambient gradient field (no filter:blur — cheap soft glows) ---------- */
.ambient-field {
  position: fixed; inset: 0; z-index: -2; overflow: hidden;
  background: #000; pointer-events: none; contain: strict;
}
.ambient-blob { position: absolute; border-radius: 50%; opacity: 0.55; will-change: transform; }
.blob-a { width: 64vw; height: 64vw; top: -18vw; left: -14vw;
  background: radial-gradient(circle, rgba(139,92,246,0.22), transparent 62%);
  animation: drift-a 34s var(--ease) infinite alternate; }
.blob-b { width: 58vw; height: 58vw; bottom: -20vw; right: -12vw;
  background: radial-gradient(circle, rgba(34,211,238,0.16), transparent 62%);
  animation: drift-b 40s var(--ease) infinite alternate; }
.blob-c { width: 50vw; height: 50vw; top: 34%; left: 50%;
  background: radial-gradient(circle, rgba(244,114,182,0.14), transparent 62%);
  animation: drift-c 46s var(--ease) infinite alternate; }
@keyframes drift-a { to { transform: translate3d(12vw, 16vh, 0); } }
@keyframes drift-b { to { transform: translate3d(-10vw, -12vh, 0); } }
@keyframes drift-c { to { transform: translate3d(-14vw, 10vh, 0); } }

.grain-global {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.035;
  background-image:
    repeating-radial-gradient(circle at 0 0, transparent 0, #000 1px),
    repeating-linear-gradient(#201f1e, #201f1e);
}
.noise-overlay {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.05; mix-blend-mode: overlay;
  background-image:
    repeating-radial-gradient(circle at 0 0, transparent 0, #000 1px),
    repeating-linear-gradient(#201f1e, #201f1e);
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%; z-index: 100;
  background: linear-gradient(90deg, transparent, var(--cream-bright), var(--cream-dim));
  box-shadow: 0 0 12px rgba(222, 219, 200, 0.6);
}

/* ---------- Custom cursor ---------- */
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none; border-radius: 50%; opacity: 0; will-change: transform; }
.cursor-dot { width: 6px; height: 6px; background: var(--cream-bright); transform: translate(-50%, -50%); }
.cursor-ring { width: 34px; height: 34px; border: 1px solid rgba(222, 219, 200, 0.5);
  transform: translate(-50%, -50%); transition: width .3s var(--ease), height .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease); }
.cursor-ring.is-hover { width: 60px; height: 60px; background: rgba(222, 219, 200, 0.08); border-color: rgba(222, 219, 200, 0.8); }
@media (hover: hover) and (pointer: fine) {
  .cursor-active * { cursor: none !important; }
  .cursor-dot, .cursor-ring { opacity: 1; }
}

/* ---------- Nav ---------- */
.nav-shell { position: fixed; top: 0; left: 0; right: 0; z-index: 90; display: flex; justify-content: center;
  padding: 1.25rem 1rem; transition: transform .5s var(--ease); }
.nav-shell.nav-hidden { transform: translateY(-130%); }
.nav-inner {
  display: flex; align-items: center; gap: 1.5rem;
  background: rgba(20, 19, 18, 0.6); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--line); border-radius: 9999px; padding: 0.5rem 0.6rem 0.5rem 1.4rem;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,0.8);
}
.nav-link { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--cream-dim); opacity: 0.7; transition: opacity .4s ease, color .4s ease; position: relative; }
.nav-link:hover { opacity: 1; color: var(--cream-bright); }
.nav-link.is-active { opacity: 1; color: var(--cream-bright); }
.nav-link.is-active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--cream-bright); }

/* ---------- Buttons ---------- */
.btn-primary, .btn-ghost, .btn-text {
  display: inline-flex; align-items: center; gap: 0.6rem; border-radius: 9999px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  transition: all .5s var(--ease); white-space: nowrap; will-change: transform;
}
.btn-primary { padding: 0.85rem 1.5rem; background: var(--primary-c); color: #000; }
.btn-primary:hover { box-shadow: 0 0 45px -6px rgba(222, 219, 200, 0.55); transform: translateY(-1px); }
.btn-ghost { padding: 0.85rem 1.4rem; border: 1px solid rgba(222, 219, 200, 0.4); color: var(--primary-c); }
.btn-ghost:hover { background: var(--primary-c); color: #000; }
.btn-text { padding: 0.85rem 0.5rem; color: var(--cream-dim); }
.btn-text:hover { color: var(--cream-bright); }

/* ---------- Hero ---------- */
.hero-frame { box-shadow: 0 40px 120px -40px rgba(0,0,0,0.9); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #7CFC9B;
  box-shadow: 0 0 12px #7CFC9B; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero-name .line { display: block; overflow: hidden; }
.hero-name .word { display: inline-block; transform: translateY(110%); animation: rise-word 1.1s var(--ease) forwards; }
.hero-name .line:nth-child(1) .word { animation-delay: 0.15s; }
.hero-name .line:nth-child(2) .word { animation-delay: 0.32s; }
.hero-name sup { font-size: 0.4em; vertical-align: super; }
@keyframes rise-word { to { transform: translateY(0); } }

.hero-rise { opacity: 0; transform: translateY(26px); animation: rise-fade 1s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes rise-fade { to { opacity: 1; transform: translateY(0); } }

.role-rotator { position: relative; display: inline-block; min-width: 8ch; }
.role-rotator .role { display: inline-block; }
.scroll-bob { animation: bob 1.8s var(--ease) infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* ---------- Marquee ---------- */
.marquee { display: flex; gap: 4rem; width: max-content; animation: scroll-x 38s linear infinite; will-change: transform; }
.marquee:hover { animation-play-state: paused; }
.marquee span { font-family: 'Instrument Serif', serif; font-size: clamp(1.4rem, 3vw, 2.4rem);
  color: var(--cream-dim); opacity: 0.45; white-space: nowrap; transition: opacity .4s ease, color .4s ease; }
.marquee span:hover { opacity: 1; color: var(--cream-bright); }
@keyframes scroll-x { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Section scaffolding ---------- */
.section-pad { padding-top: clamp(6rem, 12vh, 10rem); padding-bottom: clamp(6rem, 12vh, 10rem); }
.section-pad-sm { padding-top: clamp(3rem, 6vh, 5rem); padding-bottom: clamp(3rem, 6vh, 5rem); }
.kicker { font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cream-dim); }
.kicker::before { content: '—'; margin-right: 0.6rem; color: rgba(222,219,200,0.4); }
.section-title { font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.06; letter-spacing: -0.02em; font-weight: 700; color: var(--cream-bright); }

/* ---------- Glass cards / chips ---------- */
.glass-card {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, rgba(30,30,30,0.92), rgba(13,13,13,0.94));
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(225,224,204,0.06), 0 30px 70px -40px rgba(0,0,0,0.9);
}
.chip {
  display: inline-flex; align-items: center; padding: 0.4rem 0.9rem; border-radius: 9999px;
  background: rgba(54,53,51,0.55); border: 1px solid var(--line); color: #e1e0cc;
  font-size: 12px; font-weight: 600; letter-spacing: 0.03em; white-space: nowrap;
  transition: background .4s ease, color .4s ease, transform .4s var(--ease);
}
.chip:hover { background: rgba(222,219,200,0.92); color: #000; transform: translateY(-2px); }

/* ---------- Tilt ---------- */
.tilt { transition: transform .5s var(--ease), border-color .5s ease; transform-style: preserve-3d; }
.tilt::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .5s ease;
  background: radial-gradient(circle at var(--mx,50%) var(--my,0%), rgba(222,219,200,0.16), transparent 45%); }
.tilt:hover::after { opacity: 1; }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(1, 1fr); gap: 1rem; }
@media (min-width: 768px) { .bento { grid-template-columns: repeat(3, 1fr); } }
.bento-cell { position: relative; overflow: hidden; border-radius: 2rem; padding: 2rem;
  display: flex; flex-direction: column; gap: 1.1rem; min-height: 230px; }
.bento-cell.span-2 { grid-column: span 1; }
@media (min-width: 768px) { .bento-cell.span-2 { grid-column: span 2; } }
.bento-cell.feature { background: linear-gradient(150deg, rgba(43,42,40,0.85), rgba(20,19,18,0.9));
  border-color: rgba(222,219,200,0.18); }
.bento-icon { width: 52px; height: 52px; border-radius: 1rem; display: grid; place-items: center;
  background: rgba(222,219,200,0.08); border: 1px solid var(--line); color: var(--cream-dim); }

/* ---------- Experience ---------- */
.exp-stage-card { position: relative; }
.exp-num { font-family: 'Instrument Serif', serif; font-size: clamp(4rem, 10vw, 7rem); line-height: 1;
  color: rgba(222,219,200,0.12); }
.exp-card { cursor: default; transition: border-color .5s ease, background .5s ease, transform .5s var(--ease); }
.exp-card.is-active { border-color: rgba(222,219,200,0.3); }
.exp-progress { position: relative; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.exp-progress > i { position: absolute; inset: 0 100% 0 0; background: var(--cream-bright); transition: right .6s var(--ease); }

/* ---------- Work / case cards ---------- */
.case-card { position: relative; overflow: hidden; border-radius: 2rem; }
.case-cover { position: relative; height: 220px; overflow: hidden; display: flex; align-items: flex-end; padding: 1.5rem; }
.case-cover .case-num { font-family: 'Instrument Serif', serif; font-size: 5rem; line-height: 0.8; color: rgba(0,0,0,0.35); }
.case-card:hover .case-cover::before { transform: scale(1.1) rotate(2deg); }
.case-cover::before { content: ''; position: absolute; inset: -10%; transition: transform 1.2s var(--ease); }
.g1::before { background: radial-gradient(circle at 30% 20%, #2b2a28, #0c0c0c 70%), linear-gradient(120deg, rgba(222,219,200,0.18), transparent); }
.g2::before { background: radial-gradient(circle at 70% 30%, #34322c, #0c0c0c 70%), linear-gradient(120deg, rgba(200,199,180,0.2), transparent); }
.g3::before { background: radial-gradient(circle at 40% 70%, #2a2c30, #0c0c0c 70%), linear-gradient(120deg, rgba(160,180,200,0.16), transparent); }
.g4::before { background: radial-gradient(circle at 60% 40%, #302a2a, #0c0c0c 70%), linear-gradient(120deg, rgba(222,200,190,0.16), transparent); }
.g5::before { background: radial-gradient(circle at 30% 60%, #2c302a, #0c0c0c 70%), linear-gradient(120deg, rgba(190,210,180,0.16), transparent); }
.g6::before { background: radial-gradient(circle at 70% 70%, #2e2c34, #0c0c0c 70%), linear-gradient(120deg, rgba(200,190,220,0.16), transparent); }

/* ---------- Impact ---------- */
.impact-shell { background: linear-gradient(180deg, #181716, #0a0a0a); border: 1px solid var(--line); }
.metric-cell { background: rgba(10,10,10,0.85); padding: 2rem; display: flex; flex-direction: column; gap: 0.5rem;
  transition: background .5s ease; }
.metric-cell:hover { background: var(--charcoal-2); }
.metric-num { font-size: clamp(2.4rem, 4vw, 3.4rem); font-weight: 700; letter-spacing: -0.02em; color: var(--cream-bright); }

/* ---------- Reveals ---------- */
.reveal-up { opacity: 0; transform: translateY(42px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal-up.visible { opacity: 1; transform: translateY(0); }
.char-reveal span { opacity: 0.16; transition: opacity .12s linear; }
.char-reveal span.revealed { opacity: 1; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .ambient-blob, .marquee, .status-dot, .scroll-bob { animation: none !important; }
  .hero-name .word { transform: none !important; animation: none !important; }
  .hero-rise, .reveal-up { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  .char-reveal span { opacity: 1 !important; }
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
  .cursor-dot, .cursor-ring { display: none; }
  .nav-inner { padding-left: 1rem; gap: 0.75rem; }
}

/* ---------- Case cover generative motif ---------- */
.case-card { cursor: pointer; }
.case-svg { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform 1.2s var(--ease); }
.case-card:hover .case-svg, .case-hero:hover .case-svg { transform: scale(1.08); }
.case-cover .case-num, .case-hero .case-num { color: rgba(255,255,255,0.92); text-shadow: 0 2px 30px rgba(0,0,0,0.5); position: relative; z-index: 2; }
.case-cover .chip, .case-cover .case-hint, .case-cover .case-grid, .case-cover .case-ring { z-index: 2; }
.case-grid { position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(225,224,204,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(225,224,204,0.06) 1px, transparent 1px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(circle at 72% 28%, #000, transparent 78%);
  mask-image: radial-gradient(circle at 72% 28%, #000, transparent 78%); }
.case-ring { position: absolute; top: -40px; right: -40px; width: 200px; height: 200px; border-radius: 50%;
  border: 1px solid rgba(222,219,200,0.25); pointer-events: none; transition: transform 1.2s var(--ease); }
.case-ring::after { content: ''; position: absolute; inset: 26px; border-radius: 50%; border: 1px solid rgba(222,219,200,0.16); }
.case-card:hover .case-ring { transform: scale(1.15) rotate(20deg); }
.case-hint { position: absolute; bottom: 1.5rem; right: 1.5rem; display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #fff;
  background: rgba(0,0,0,0.45); border: 1px solid rgba(222,219,200,0.3); border-radius: 9999px; padding: 0.4rem 0.9rem;
  opacity: 0; transform: translateY(6px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.case-card:hover .case-hint { opacity: 1; transform: translateY(0); }

/* ---------- Case study modal ---------- */
.case-modal { position: fixed; inset: 0; z-index: 200; display: none; }
.case-modal.open { display: flex; align-items: center; justify-content: center; padding: 1.25rem; }
.case-modal-backdrop { position: absolute; inset: 0; background: rgba(5,5,8,0.88); opacity: 0; transition: opacity .35s var(--ease); }
.case-modal.open .case-modal-backdrop { opacity: 1; }
.case-modal-panel {
  position: relative; width: min(860px, 100%); max-height: 88vh; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  background: linear-gradient(180deg, #141312, #0a0a0a); border: 1px solid var(--line);
  border-radius: 1.75rem; box-shadow: 0 50px 130px -30px rgba(0,0,0,0.95);
  transform: translateY(26px) scale(0.96); opacity: 0;
  transition: transform .45s var(--ease), opacity .45s var(--ease); padding-bottom: 2.5rem; }
.case-modal.open .case-modal-panel { transform: none; opacity: 1; }
.case-modal-panel::-webkit-scrollbar { width: 8px; }
.case-modal-panel::-webkit-scrollbar-thumb { background: rgba(222,219,200,0.2); border-radius: 8px; }
.case-hero { position: relative; height: 240px; overflow: hidden; border-radius: 1.75rem 1.75rem 0 0; }
.case-cover .case-index, .case-hero .case-index { position: absolute; top: 1rem; left: 1.3rem; z-index: 3;
  font-family: 'Instrument Serif', serif; font-size: 1.8rem; color: #fff; opacity: 0.92; text-shadow: 0 2px 16px rgba(0,0,0,0.55); }
.case-tag { position: absolute; top: 1.1rem; right: 1.1rem; z-index: 3; }
body.modal-open .ambient-blob, body.modal-open .marquee { animation-play-state: paused; }
.case-close { position: absolute; top: 1.25rem; right: 1.25rem; z-index: 5; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(0,0,0,0.5); border: 1px solid rgba(222,219,200,0.3); color: #fff;
  backdrop-filter: blur(8px); transition: background .4s ease, transform .4s var(--ease); }
.case-close:hover { background: var(--primary-c); color: #000; transform: rotate(90deg); }
.case-body { padding: 2rem 2rem 0; }
@media (min-width: 768px) { .case-body { padding: 2.5rem 3rem 0; } }
.case-section-label { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cream-dim); margin-bottom: 0.6rem; }
.case-step { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.case-step-n { font-family: 'Instrument Serif', serif; font-size: 1.4rem; color: var(--cream-dim); min-width: 2ch; }
.case-result { background: rgba(222,219,200,0.05); border: 1px solid var(--line); border-radius: 1.25rem; padding: 1.25rem; }
.case-result .v { font-size: 1.8rem; font-weight: 700; color: var(--cream-bright); letter-spacing: -0.02em; }
body.modal-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .case-modal-panel, .case-modal-backdrop { transition: none !important; }
  .case-ring { transition: none !important; }
}

/* ---------- Portrait / brand visual ---------- */
.portrait-frame { position: relative; width: 100%; max-width: 320px; aspect-ratio: 1; border-radius: 1.75rem; overflow: hidden;
  border: 1px solid var(--line); box-shadow: 0 30px 80px -40px rgba(99,102,241,0.5), inset 0 1px 0 rgba(255,255,255,0.06); }
.portrait-frame svg { display: block; transition: transform 1.4s var(--ease); }
.portrait-frame:hover svg { transform: scale(1.06) rotate(-1deg); }
.portrait-frame::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 120%, rgba(0,0,0,0.5), transparent 60%); }

/* ---------- Story: profile card ---------- */
.profile-card { position: relative; overflow: hidden; }
.profile-glow { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 82% -10%, rgba(99,102,241,0.20), transparent 55%); }
.profile-avatar { width: 84px; height: 84px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  border: 1px solid var(--line); box-shadow: 0 0 36px -10px rgba(99,102,241,0.6); }
.profile-avatar svg { display: block; width: 100%; height: 100%; }
.profile-status { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0.95rem; border-radius: 9999px;
  background: rgba(124,252,155,0.07); border: 1px solid rgba(124,252,155,0.22); }
.profile-facts { display: flex; flex-direction: column; }
.fact-row { display: flex; align-items: center; gap: 0.85rem; padding: 0.72rem 0; border-bottom: 1px solid var(--line); }
.fact-row:last-child { border-bottom: none; }
.fact-row .material-symbols-outlined { font-size: 18px; color: var(--cream-dim); }
.fact-label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cream-dim); opacity: 0.6; }
.fact-value { margin-left: auto; font-size: 14px; color: var(--cream); text-align: right; }
.profile-link { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--cream-dim); transition: background .4s ease, color .4s ease, transform .4s var(--ease); }
.profile-link:hover { background: var(--primary-c); color: #000; transform: translateY(-2px); }

/* ---------- Story: pull-quote + principles ---------- */
.pull-quote { position: relative; padding-left: 1.6rem; margin: 0; }
.pull-quote::before { content: ''; position: absolute; left: 0; top: 0.25em; bottom: 0.25em; width: 3px; border-radius: 3px;
  background: linear-gradient(180deg, #a855f7, #6366f1, #22d3ee); }
.principle { display: flex; flex-direction: column; transition: transform .5s var(--ease), border-color .5s ease; }
.principle:hover { transform: translateY(-4px); border-color: rgba(222,219,200,0.22); }
.principle-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(222,219,200,0.06); border: 1px solid var(--line); color: var(--cream-dim); }

/* ---------- Brightened hero video ---------- */
.hero-video { filter: brightness(1.32) contrast(1.05) saturate(1.12); }

/* ---------- Experience timeline (horizontal, alternating) ---------- */
.tl-h { position: relative; }
.tl-hgrid { position: relative; display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.tl-hitem { position: relative; }
.tl-hnode { display: none; }
.tl-date { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent, #dedbc8); }
.tl-hcard { position: relative; cursor: pointer; padding: 1.5rem; border-radius: 1.5rem; transition: transform .5s var(--ease), border-color .5s ease; }
.tl-hcard:hover { border-color: rgba(222,219,200,0.28); }
.tl-logo { width: 46px; height: 46px; border-radius: 12px; overflow: hidden; flex-shrink: 0; display: grid; place-items: center;
  background: #f4f4f0; box-shadow: 0 8px 22px -10px var(--accent, #000); }
.tl-logo .logo-img { width: 70%; height: 70%; object-fit: contain; }
.tl-logo .logo-mono { width: 100%; height: 100%; place-items: center; font-family: 'Almarai', sans-serif; font-weight: 800; font-size: 15px; }
.tl-more { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 1.1rem; font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent, #dedbc8); }
.tl-more .material-symbols-outlined { transition: transform .4s var(--ease); }
.tl-hcard:hover .tl-more .material-symbols-outlined { transform: translateX(3px); }

@media (min-width: 1024px) {
  .tl-hgrid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
  .tl-hgrid::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 2px; transform: translateY(-50%);
    background: linear-gradient(90deg, transparent, rgba(222,219,200,0.25) 6%, rgba(222,219,200,0.25) 94%, transparent); }
  .tl-hitem { display: grid; grid-template-rows: 1fr auto 1fr; min-height: 520px; }
  .tl-top { display: flex; align-items: flex-end; justify-content: center; padding-bottom: 1.6rem; }
  .tl-bot { display: flex; align-items: flex-start; justify-content: center; padding-top: 1.6rem; }
  .tl-hcard { width: 100%; }
  .tl-hnode { display: block; justify-self: center; align-self: center; width: 14px; height: 14px; border-radius: 50%; position: relative; z-index: 2;
    background: var(--accent, #dedbc8); box-shadow: 0 0 0 5px rgba(10,10,10,0.7), 0 0 20px 2px var(--accent, #dedbc8); }
  .tl-hitem::after { content: ''; position: absolute; left: 50%; transform: translateX(-50%); width: 2px; background: var(--accent, #dedbc8); opacity: 0.5; z-index: 1; }
  .tl-hitem.above::after { bottom: 50%; height: 1.6rem; }
  .tl-hitem.below::after { top: 50%; height: 1.6rem; }
}
@media (max-width: 1023px) {
  .tl-hitem { display: flex; flex-direction: column; gap: 0.4rem; }
  .tl-hitem.above .tl-top { order: 2; }
  .tl-hitem.above .tl-bot { order: 1; }
  .tl-date { margin-bottom: 0.25rem; }
}

/* ---------- Toolkit chips (logo + name) ---------- */
.tool-chip { display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.5rem 0.9rem; border-radius: 9999px; flex-shrink: 0;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.9); font-size: 13px; font-weight: 600; white-space: nowrap; }
.tool-logo-box { width: 24px; height: 24px; border-radius: 6px; background: #fff; display: grid; place-items: center; flex-shrink: 0; }
.tool-logo-box img { width: 16px; height: 16px; object-fit: contain; }
.tool-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cream-dim); flex-shrink: 0; }

/* ---------- Liquid glass + features grid ---------- */


.liquid-glass, .glass-tile { position: relative; overflow: hidden; }
.liquid-glass { background: rgba(255,255,255,0.01); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.1); }
.glass-tile { width: 56px; height: 56px; flex-shrink: 0; border-radius: 0.75rem; display: grid; place-items: center;
  background: rgba(255,255,255,0.05); box-shadow: inset 0 1px 1px rgba(255,255,255,0.12); color: rgba(255,255,255,0.85); }
@media (min-width: 768px) { .glass-tile { width: 64px; height: 64px; } }
.liquid-glass::before, .glass-tile::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.4px;
  background: linear-gradient(180deg, rgba(255,255,255,0.45) 0%, rgba(255,255,255,0.15) 20%, rgba(255,255,255,0) 40%, rgba(255,255,255,0) 60%, rgba(255,255,255,0.15) 80%, rgba(255,255,255,0.45) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); mask-composite: exclude; pointer-events: none; }
.feat-label { display: flex; align-items: center; gap: 0.5rem; text-transform: uppercase; letter-spacing: 0.22em; font-size: 11px; color: rgba(255,255,255,0.7); }
.feat-label .material-symbols-outlined { font-size: 14px; }

/* Marquee rows */
.marquee-mask { overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent); mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent); }
.marquee-track { display: flex; gap: 0.75rem; width: max-content; }
@keyframes marquee-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes marquee-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.animate-marquee-left { animation: marquee-left 22s linear infinite; }
.animate-marquee-right { animation: marquee-right 26s linear infinite; }

/* Soft-light noise for #324444 cards */
.grain-card { position: relative; overflow: hidden; }
.grain-card::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.5; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 240px 240px; }
.grain-card > * { position: relative; z-index: 1; }

@media (prefers-reduced-motion: reduce) {
  .animate-marquee-left, .animate-marquee-right { animation: none !important; }
}



/* ---------- Experience modal hero ---------- */
.exp-hero { position: relative; display: flex; align-items: center; gap: 1.25rem; padding: 2.25rem 2.25rem 1.75rem;
  border-radius: 1.75rem 1.75rem 0 0; overflow: hidden; background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent); }
.exp-hero::before { content: ''; position: absolute; inset: 0; opacity: 0.5; pointer-events: none;
  background: radial-gradient(circle at 14% 0%, var(--accent, #6366f1), transparent 60%); }
.exp-hero-logo { position: relative; z-index: 1; width: 72px; height: 72px; border-radius: 18px; overflow: hidden; flex-shrink: 0;
  background: #f4f4f0; display: grid; place-items: center; box-shadow: 0 12px 32px -8px var(--accent, #000); }
.exp-hero-logo .logo-img { width: 64%; height: 64%; object-fit: contain; }
.exp-hero-logo .logo-mono { width: 100%; height: 100%; place-items: center; font-family: 'Almarai', sans-serif; font-weight: 800; font-size: 24px; }
.exp-hero > div { position: relative; z-index: 1; }

/* =============================================================
   Case Studies — premium bento (pixel-dissolve, magnetic squares,
   parallax floaters, marquee footer)
   ============================================================= */

/* DM Sans */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500&display=swap');

.cs-section { position: relative; background: #fff; color: #000; font-family: 'DM Sans', sans-serif; overflow: hidden; }

/* Floating parallax squares */
.cs-floaters { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.cs-sq { position: absolute; background: #000; will-change: transform; }

/* Header */
.cs-header { position: relative; padding: 5rem 1.5rem 2.5rem; text-align: center; }
@media (min-width: 640px)  { .cs-header { padding: 7rem 2.5rem 2.5rem; } }
@media (min-width: 1024px) { .cs-header { padding: 10rem 4rem 2.5rem; } }
.cs-badge { display: inline-block; background: #000; color: #fff; font-size: 13px; font-weight: 500; letter-spacing: 0.06em; padding: 0.35rem 1rem; margin-bottom: 1.25rem; }
.cs-heading { font-size: clamp(1.8rem, 3.2vw, 2.8rem); font-weight: 300; line-height: 1.25; letter-spacing: -0.02em; color: #000; }
.cs-heading span { color: rgba(0,0,0,0.4); }

/* Grid */
.cs-grid { display: grid; gap: 1rem; max-width: 1280px; margin: 0 auto; padding: 0 1.5rem 4rem; }
@media (min-width: 640px)  { .cs-grid { padding: 0 2.5rem 4rem; } }
@media (min-width: 768px)  { .cs-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .cs-grid { padding: 0 4rem 4rem; } }

/* Cards */
.cs-card { position: relative; aspect-ratio: 4/3; overflow: hidden; cursor: pointer; }
.cs-card-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(0.22,1,0.36,1); }
.cs-card:hover .cs-card-img { transform: scale(1.06); }

/* Pixel-dissolve overlay */
.cs-pixels { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: repeat(8, 1fr); z-index: 1; pointer-events: none; }
.cs-px { background: rgba(0,0,0,0.82); transform: scale(0); opacity: 0; transition-property: transform, opacity; transition-duration: 0.25s; transition-timing-function: cubic-bezier(0.22,1,0.36,1); }
.cs-card:hover .cs-px { transform: scale(1); opacity: 1; }

/* Magnetic squares */
.cs-mag { position: absolute; background: #000; z-index: 2; pointer-events: none; transition: transform 0.6s cubic-bezier(0.22,1,0.36,1); will-change: transform; }

/* Plus button */
.cs-plus { position: absolute; top: 1rem; right: 1rem; z-index: 10; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,0.35); color: #fff; font-size: 1.1rem; line-height: 1; }

/* Info plate */
.cs-info { position: absolute; bottom: 0; left: 0; background: #fff; padding: 0.6rem 1rem 0.75rem; z-index: 20; max-width: 72%; }
.cs-info-title { font-size: clamp(1.3rem, 2.2vw, 1.9rem); font-weight: 400; line-height: 1.15; color: #000; }
.cs-info-meta { display: flex; gap: 1rem; margin-top: 0.35rem; }
.cs-info-cat { font-size: 12px; color: rgba(0,0,0,0.6); }
.cs-info-yr  { font-size: 12px; font-weight: 500; color: #000; }

/* Footer */
.cs-footer { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem 1.5rem; display: flex; flex-direction: column; gap: 2rem; }
@media (min-width: 640px)  { .cs-footer { padding: 0 2.5rem 1.5rem; } }
@media (min-width: 768px)  { .cs-footer { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
@media (min-width: 1024px) { .cs-footer { padding: 0 4rem 1.5rem; } }
.cs-foot-left { max-width: 26rem; }
.cs-foot-plus { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(0,0,0,0.2); font-size: 1.1rem; margin-bottom: 1rem; cursor: pointer; }
.cs-foot-body { font-size: 14px; line-height: 1.7; color: rgba(0,0,0,0.6); }
.cs-cta { display: inline-flex; align-items: flex-end; margin-top: 1.5rem; }
.cs-cta-label { display: inline-flex; align-items: center; gap: 10px; border: 1px solid rgba(0,0,0,0.2); background: #000; padding: 0.5rem 0.75rem; font-size: 1rem; font-weight: 500; color: #fff; transition: background 0.3s ease; }
.cs-cta:hover .cs-cta-label { background: rgba(0,0,0,0.85); }
.cs-cta-arrow { width: 24px; height: 24px; background: #000; display: grid; place-items: center; margin-bottom: 1.5rem; transition: margin-bottom 0.3s cubic-bezier(0.22,1,0.36,1); }
.cs-cta:hover .cs-cta-arrow { margin-bottom: 2.25rem; }

/* Marquee */
.cs-marquee-wrap { flex: 1; overflow: hidden; border-top: 1px solid rgba(0,0,0,0.1); }
@media (min-width: 768px) { .cs-marquee-wrap { border-top: none; margin-left: 3rem; } }
@keyframes marqueeProjects { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-projects { display: flex; width: max-content; animation: marqueeProjects 28s linear infinite; padding: 1.25rem 0; }
.marquee-projects:hover { animation-play-state: paused; }
.cs-logo-item { display: flex; flex-shrink: 0; align-items: center; gap: 0.625rem; padding: 0 2rem; }
.cs-logo-name { white-space: nowrap; font-size: 14px; font-weight: 500; letter-spacing: 0.04em; color: rgba(0,0,0,0.8); }

/* Section reveal */
.cs-reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1); }
.cs-reveal.visible { opacity: 1; transform: none; }
.cs-card-wrap { opacity: 0; transform: translateY(30px); transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1); }
.cs-card-wrap.visible { opacity: 1; transform: none; }

/* =============================================================
   Case Studies v2 — dark cards, blue-blob glow, all 6 shown
   ============================================================= */
.bc-section { position: relative; background: transparent; padding: 4rem 1rem 5rem; }
@media (min-width: 768px) { .bc-section { padding: 6rem 2.5rem 6rem; } }

.bc-head { position: relative; max-width: 1400px; margin: 0 auto 3rem; padding: 3rem 1.5rem; text-align: center; overflow: hidden; border-radius: 1.5rem; }
.bc-head-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.22; }
.bc-head-overlay { position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, rgba(0,0,0,0.35), #000 82%); }
.bc-heading { position: relative; z-index: 1; font-weight: 300; letter-spacing: -0.04em; font-size: clamp(1.9rem, 4vw, 3rem); color: #fff; }

.bc-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; max-width: 80rem; margin: 0 auto; }
@media (min-width: 640px)  { .bc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .bc-grid { grid-template-columns: repeat(3, 1fr); } }

.bc-card { position: relative; overflow: hidden; border-radius: 1rem; background: #0a0a0a; border: 1px solid rgba(255,255,255,0.07);
  cursor: pointer; display: flex; flex-direction: column; min-height: 420px; transition: transform .5s var(--ease), border-color .5s ease; }
.bc-card:hover { transform: translateY(-5px); border-color: rgba(96,130,220,0.45); }
.bc-blob { position: absolute; width: 320px; height: 320px; border-radius: 50%; z-index: 0; pointer-events: none;
  background: radial-gradient(circle, rgba(30,58,138,0.55), transparent 70%); }
.bc-blob.blob-tl { top: -130px; left: -130px; }
.bc-blob.blob-br { bottom: -130px; right: -130px; }
.bc-media { position: relative; z-index: 1; height: 185px; overflow: hidden; }
.bc-media .case-svg { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform 1s var(--ease); }
.bc-card:hover .bc-media .case-svg { transform: scale(1.06); }
.bc-plus { position: absolute; top: 1rem; right: 1rem; z-index: 3; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.3); color: #fff; font-size: 1.1rem; line-height: 1; }
.bc-body { position: relative; z-index: 1; padding: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.bc-cat { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.bc-title { font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: 300; letter-spacing: -0.02em; color: #fff; line-height: 1.2; }
.bc-outcome { font-size: 13px; line-height: 1.6; color: rgba(255,255,255,0.7); }
.bc-more { margin-top: auto; padding-top: 0.85rem; display: inline-flex; align-items: center; gap: 0.4rem; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.85); }
.bc-more .material-symbols-outlined { transition: transform .4s var(--ease); }
.bc-card:hover .bc-more .material-symbols-outlined { transform: translate(3px, -3px); }

.bc-foot { max-width: 80rem; margin: 3rem auto 0; display: flex; flex-direction: column; gap: 1.5rem; align-items: flex-start; }
@media (min-width: 768px) { .bc-foot { flex-direction: row; align-items: center; justify-content: space-between; } }
.bc-foot p { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,0.6); max-width: 32rem; }
.bc-cta { display: inline-flex; align-items: center; gap: 0; flex-shrink: 0; }
.bc-cta > span:first-child { display: inline-flex; align-items: center; background: #fff; color: #000; font-size: 14px; font-weight: 600; padding: 0.7rem 1.2rem; border-radius: 9999px 0 0 9999px; }
.bc-cta-arrow { display: grid; place-items: center; background: #fff; color: #000; width: 44px; height: 44px; border-radius: 0 9999px 9999px 0; border-left: 1px solid rgba(0,0,0,0.1); transition: background .4s ease, color .4s ease; }
.bc-cta:hover .bc-cta-arrow { background: #1e3a8a; color: #fff; }
.bc-cta:hover > span:first-child { background: #f0f0f0; }

/* ---------- Capabilities: expertise categories ---------- */
.exp-cat + .exp-cat { padding-top: 0.9rem; border-top: 1px solid rgba(255,255,255,0.08); }
.exp-cat-label { display: flex; align-items: center; gap: 0.45rem; color: #fff; font-size: 13px; font-weight: 600; letter-spacing: 0.02em; }
.exp-cat-label .material-symbols-outlined { font-size: 14px; color: rgba(255,255,255,0.5); }
.exp-cat-skills { color: rgba(255,255,255,0.62); font-size: 12px; line-height: 1.55; margin-top: 0.3rem; }

/* ---------- Tighter section spacing ---------- */
.pad-tight-bottom { padding-bottom: 3rem !important; }
.pad-tight-top { padding-top: 3rem !important; }

/* ---------- Education bento (2 boxes) ---------- */
.edu-bento { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 768px) { .edu-bento { grid-template-columns: repeat(2, 1fr); } }
.edu-card { position: relative; overflow: hidden; border-radius: 1.25rem; border: 1px solid rgba(255,255,255,0.1);
  background: linear-gradient(160deg, rgba(28,28,28,0.9), rgba(12,12,12,0.92)); padding: 2rem; min-height: 260px;
  display: flex; flex-direction: column; gap: 1.1rem; transition: transform .35s var(--ease), box-shadow .35s ease, border-color .35s ease; }
.edu-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.2); box-shadow: 0 16px 44px -20px rgba(0,0,0,0.8); }
.edu-dots { position: absolute; inset: 0; opacity: 0; transition: opacity .35s ease; pointer-events: none;
  background-image: radial-gradient(circle at center, rgba(255,255,255,0.06) 1px, transparent 1px); background-size: 5px 5px; }
.edu-card:hover .edu-dots { opacity: 1; }
.edu-row { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; }
.edu-icon { width: 46px; height: 46px; border-radius: 0.8rem; display: grid; place-items: center; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.08); }
.edu-icon .material-symbols-outlined { font-size: 24px; }
.edu-status { font-size: 11px; font-weight: 600; letter-spacing: 0.04em; padding: 0.3rem 0.75rem; border-radius: 0.5rem; background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7); }
.edu-body { position: relative; z-index: 1; }
.edu-title { font-size: clamp(1.15rem, 1.8vw, 1.4rem); font-weight: 500; letter-spacing: -0.01em; color: #fff; line-height: 1.25; }
.edu-school { font-size: 0.95rem; color: var(--cream-dim); margin-top: 0.35rem; }
.edu-desc { font-size: 0.9rem; line-height: 1.65; color: rgba(255,255,255,0.62); margin-top: 0.75rem; }
.edu-tags { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: auto; }
.edu-tags span { font-size: 0.72rem; padding: 0.28rem 0.65rem; border-radius: 0.45rem; background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.55); transition: background .25s ease; }
.edu-card:hover .edu-tags span { background: rgba(255,255,255,0.1); }

/* ---------- Education compact cards (stacked) ---------- */
.edu-card-sm { position: relative; overflow: hidden; border-radius: 1rem; border: 1px solid rgba(255,255,255,0.1);
  background: linear-gradient(160deg, rgba(28,28,28,0.9), rgba(12,12,12,0.92)); padding: 1.25rem 1.4rem;
  transition: transform .35s var(--ease), border-color .35s ease, box-shadow .35s ease; }
.edu-card-sm:hover { transform: translateY(-3px); border-color: rgba(255,255,255,0.2); box-shadow: 0 12px 32px -18px rgba(0,0,0,0.8); }
.edu-card-sm:hover .edu-dots { opacity: 1; }
.edu-card-sm .edu-icon { width: 42px; height: 42px; }
.edu-card-sm .edu-title { font-size: 1rem; font-weight: 500; color: #fff; line-height: 1.2; }
.edu-card-sm .edu-school { font-size: 0.85rem; color: var(--cream-dim); margin-top: 0.25rem; }
.edu-card-sm .edu-meta-line { font-size: 0.72rem; color: rgba(255,255,255,0.5); margin-top: 0.3rem; letter-spacing: 0.03em; }

/* ---------- Certifications: clean verified list ---------- */
.cert-stack { min-height: 0; }
.cert-list { display: flex; flex-direction: column; gap: 0.75rem; }
.cert-item { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; border-radius: 0.9rem;
  border: 1px solid rgba(255,255,255,0.09); background: linear-gradient(160deg, rgba(28,28,28,0.88), rgba(12,12,12,0.92));
  transition: transform .3s var(--ease), border-color .3s ease, box-shadow .3s ease; }
.cert-item:hover { transform: translateX(4px); border-color: rgba(255,255,255,0.2); box-shadow: 0 10px 28px -18px rgba(0,0,0,0.8); }
.cert-ico { width: 42px; height: 42px; border-radius: 0.7rem; display: grid; place-items: center; flex-shrink: 0;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.08); }
.cert-ico .material-symbols-outlined { font-size: 22px; }
.cert-text { flex: 1; min-width: 0; }
.cert-name { font-size: 0.95rem; font-weight: 500; color: #fff; line-height: 1.25; }
.cert-sub { font-size: 0.78rem; color: rgba(255,255,255,0.55); margin-top: 0.15rem; }
.cert-check { color: #34d399; font-size: 20px; flex-shrink: 0; opacity: 0.85; }

/* ---------- Accessibility: skip link + keyboard focus ---------- */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 300; background: var(--cream-bright); color: #000;
  padding: 0.65rem 1.1rem; border-radius: 0 0 0.5rem 0; font-weight: 700; font-size: 13px; letter-spacing: 0.02em; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid #8b9bff; outline-offset: 3px; border-radius: 4px; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 2px solid #8b9bff; outline-offset: 3px; }

/* ---------- How I operate — glowing feature cards ---------- */
.principles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 640px) {
  .principles-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}
.principle-wrap {
  position: relative;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}
/* The blurred glow behind the card */
.principle-glow {
  position: absolute;
  inset: 0;
  height: 100%;
  border-radius: 40px;
  opacity: 0.55;
  filter: blur(45px);
  pointer-events: none;
  z-index: 0;
}
/* The card itself with gradient border */
.principle-card {
  position: relative;
  z-index: 1;
  border-radius: 40px;
  border: 8px solid transparent;
  overflow: hidden;
  transition: transform .5s var(--ease), opacity .5s ease;
}
.principle-wrap:hover .principle-card { transform: translateY(-6px); }
.principle-inner {
  width: 100%;
  height: 100%;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 220px;
}
@media (min-width: 640px) {
  .principle-inner { min-height: 260px; }
}
.principle-icon {
  width: auto !important;
  height: auto !important;
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  font-size: 32px !important;
  color: rgba(255,255,255,0.9);
  font-variation-settings: 'FILL' 0, 'wght' 250;
}
.principle-title {
  font-size: 1.2rem;
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.015em;
  margin-bottom: 0.65rem;
  line-height: 1.3;
}
.principle-desc {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(156,163,175,1);
  font-weight: 400;
}

/* ---------- Profile avatar photo ---------- */
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center top; border-radius: 50%; }

/* ---------- Mobile & readability optimizations ---------- */
/* Lighter description text for comfortable reading on dark cards */
.principle-desc { color: rgba(191,197,207,0.92); }

@media (max-width: 768px) {
  /* Reduce heavy blur/glow on phones so the page paints smoothly */
  .principle-glow { filter: blur(28px); opacity: 0.42; }
  .principle-wrap { max-width: 340px; }
  /* Guarantee the hero headline never overflows small screens */
  .hero-name { word-break: break-word; }
}

/* Extra safety against horizontal scroll on small screens */
@media (max-width: 640px) {
  .section-pad, .section-pad-sm { overflow-x: clip; }
}
