/*
Theme Name: Mohamed Nabil Signature Motion v1.7
Theme URI: https://example.com/mohamed-nabil-signature-motion
Author: OpenAI
Description: A glossy, motion-led WordPress portfolio for Mohamed Nabil — education consultant, teacher trainer, conference speaker, and global community builder.
Version: 1.7.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: mn-signature-motion
*/

:root {
  --ink: #0b1b4a;
  --ink-soft: #394766;
  --muted: #6b7390;
  --line: rgba(74, 91, 170, .14);
  --blue: #2f5cff;
  --violet: #8b5cf6;
  --lavender: #d9d7ff;
  --aqua: #54d8d2;
  --paper: #ffffff;
  --paper-soft: #f8f9ff;
  --glass: rgba(255, 255, 255, .68);
  --gradient: linear-gradient(115deg, #2348f0 0%, #6f58ff 52%, #b25ce8 100%);
  --shadow: 0 22px 70px rgba(49, 58, 132, .13);
  --content-max: 1500px;
  --shadow-soft: 0 12px 34px rgba(40, 55, 130, .09);
  --radius-lg: 42px;
  --radius-md: 28px;
  --radius-sm: 19px;
  --display: "Instrument Serif", Georgia, serif;
  --body: "DM Sans", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--body);
  background:
    radial-gradient(circle at 90% 0%, rgba(111, 88, 255, .12), transparent 27%),
    radial-gradient(circle at 10% 22%, rgba(47, 92, 255, .06), transparent 24%),
    #fff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(20, 42, 100, .018) 1px, transparent 1px), linear-gradient(90deg, rgba(20, 42, 100, .018) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.7), transparent 75%);
  z-index: -2;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }

.site-shell { width: min(var(--content-max), calc(100% - 32px)); margin: 0 auto; }

/* Header and horizontally scrolling translucent tabs */
.site-header {
  position: sticky;
  top: 14px;
  z-index: 1000;
  padding-top: 14px;
}
.nav-glass {
  min-height: 86px;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) 184px;
  align-items: center;
  gap: 18px;
  padding: 12px 15px 12px 24px;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,.94);
  background: rgba(255,255,255,.66);
  backdrop-filter: blur(23px) saturate(145%);
  box-shadow: 0 12px 40px rgba(47, 57, 125, .12), inset 0 1px 0 rgba(255,255,255,.95);
  overflow: hidden;
  position: relative;
}
.nav-glass::after {
  content: "";
  position: absolute;
  height: 1px;
  left: 4%; right: 4%; top: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.95), transparent);
}
.brand-signature { display: inline-flex; align-items: center; height: 62px; }
.brand-signature img { width: 155px; height: 64px; object-fit: contain; object-position: left center; }
.tabs-wrap { position: relative; min-width: 0; display: flex; align-items: center; gap: 7px; }
.tabs-scroller {
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  border: 1px solid rgba(108, 116, 201, .10);
  border-radius: 22px;
  background: rgba(255,255,255,.42);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.88);
  cursor: grab;
}
.tabs-scroller:active { cursor: grabbing; }
.tabs-scroller::-webkit-scrollbar { display: none; }
.tab-track { display: flex; align-items: center; width: max-content; padding: 6px; gap: 3px; }
.tab-link {
  position: relative;
  white-space: nowrap;
  padding: 12px 21px;
  border-radius: 16px;
  color: #28365b;
  font-weight: 650;
  letter-spacing: -.01em;
  transition: transform .25s ease, color .25s ease, background .25s ease, box-shadow .25s ease;
}
.tab-link:hover { color: var(--blue); transform: translateY(-1px); }
.tab-link.is-active {
  color: #4a38db;
  background: rgba(255,255,255,.86);
  box-shadow: 0 8px 20px rgba(73, 76, 160, .10), inset 0 0 0 1px rgba(118, 96, 255, .10);
}
.tab-arrow {
  flex: 0 0 auto;
  width: 35px; height: 35px;
  border: 1px solid rgba(99, 83, 220, .13);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--blue);
  background: rgba(255,255,255,.62);
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(55,60,140,.08);
  transition: transform .2s ease, background .2s ease;
}
.tab-arrow:hover { transform: scale(1.06); background: #fff; }
.header-cta, .button-primary, .button-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 16px;
  font-weight: 750;
  white-space: nowrap;
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}
.header-cta, .button-primary { color: #fff; background: var(--gradient); box-shadow: 0 12px 28px rgba(70, 69, 221, .22); }
.button-secondary { border: 1px solid rgba(47,92,255,.35); color: #243dca; background: rgba(255,255,255,.62); }
.header-cta:hover, .button-primary:hover, .button-secondary:hover { transform: translateY(-3px); box-shadow: 0 18px 36px rgba(70,69,221,.22); filter: saturate(1.08); }
.arrow-mark { font-size: 1.1em; transition: transform .25s ease; }
.button-book-call { min-width: 164px; }
.header-cta:hover .arrow-mark, .button-primary:hover .arrow-mark, .button-secondary:hover .arrow-mark { transform: translateX(5px); }

main { padding: 26px 0 80px; }
.page-section { margin: 24px 0; scroll-margin-top: 125px; }
.gloss-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,.96);
  background: rgba(255,255,255,.76);
  box-shadow: var(--shadow);
}
.gloss-panel::before {
  content: "";
  position: absolute;
  z-index: 3;
  pointer-events: none;
  left: 3%; right: 3%; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,1), rgba(110,102,255,.23), transparent);
}
.gloss-panel::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -30%;
  background: radial-gradient(circle at var(--glow-x, 80%) var(--glow-y, 10%), rgba(112,93,255,.14), transparent 34%);
  transition: background-position .3s ease;
}

.eyebrow { margin: 0 0 16px; color: #5d4de2; font-size: .84rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.display-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.35rem, 6.2vw, 6.8rem);
  line-height: .82;
  letter-spacing: -.047em;
  font-weight: 400;
  text-wrap: balance;
}
.display-title em, .gradient-word {
  font-style: italic;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-title { font-family: var(--display); font-size: clamp(2.35rem, 4.2vw, 4.5rem); line-height: .95; letter-spacing: -.03em; font-weight: 400; margin: 0; }
.section-title em { font-style: italic; background: var(--gradient); background-clip: text; -webkit-background-clip: text; color: transparent; }
.rule-accent { width: 112px; height: 4px; border-radius: 99px; background: var(--gradient); margin: 26px 0; transform-origin: left; }
.lead { font-size: clamp(1.06rem, 1.3vw, 1.28rem); line-height: 1.7; color: var(--ink-soft); }

/* Hero */
.hero { min-height: 720px; display: grid; grid-template-columns: minmax(0, .95fr) minmax(500px, 1.05fr); align-items: stretch; }
.hero-copy { position: relative; z-index: 5; padding: 78px 20px 58px 62px; display: flex; flex-direction: column; justify-content: center; }
.hero-copy::before {
  content: ""; position: absolute; z-index: -1; inset: 0 -52% 0 0;
  background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,.985) 56%, rgba(255,255,255,.70) 75%, transparent 100%);
}
.hero-visual { position: relative; min-height: 680px; overflow: hidden; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; object-position: 58% center; filter: saturate(.95) contrast(1.01); transform: scale(1.015); }
.hero-visual::before { content: ""; position: absolute; z-index: 2; inset: 0; background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,.05) 36%, transparent 70%), linear-gradient(0deg, rgba(255,255,255,.93), transparent 30%); }
.hero-visual::after { content: ""; position: absolute; z-index: 2; inset: 0; background: linear-gradient(135deg, rgba(49,72,255,.05), rgba(139,92,246,.18)); mix-blend-mode: soft-light; }
.role-line { margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 8px 11px; font-size: 1rem; font-weight: 750; color: #23375e; }
.role-line span:not(:last-child)::after { content: "•"; color: #8f61e8; margin-left: 11px; }
.hero-body { max-width: 640px; margin: 22px 0 0; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero-badges { position: absolute; right: 38px; bottom: 32px; z-index: 4; display: flex; gap: 10px; }
.mini-badge { padding: 13px 16px; border-radius: 17px; color: #fff; background: rgba(16,30,79,.60); backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,.37); box-shadow: 0 10px 26px rgba(4,13,46,.14); font-size: .88rem; font-weight: 760; }

/* Reusable layouts */
.section-pad { padding: clamp(52px, 6vw, 92px); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(35px, 5vw, 80px); align-items: center; }
.visual-card {
  position: relative; min-height: 590px; border-radius: 34px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.94); box-shadow: 0 22px 50px rgba(41,51,130,.13);
  background: #eef1ff;
}
.visual-card img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; transition: transform 1.1s cubic-bezier(.2,.7,.2,1); }
.visual-card:hover img { transform: scale(1.045); }
.visual-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(255,255,255,.74), transparent 36%), linear-gradient(120deg, rgba(85,70,255,.12), transparent 50%); }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 30px; }
.stat-card, .service-card, .project-card, .impact-card, .contact-card {
  position: relative;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,.93);
  background: rgba(255,255,255,.68);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-soft), inset 0 1px 0 #fff;
  overflow: hidden;
}
.stat-card { padding: 24px; min-height: 135px; }
.stat-number { font-family: var(--display); font-size: 3.2rem; line-height: .9; color: #5948e8; }
.stat-label { display: block; margin-top: 10px; color: #354363; font-weight: 700; line-height: 1.3; }

/* Services */
.services-head { max-width: 920px; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 46px; }
.service-card { min-height: 245px; padding: 28px; transition: transform .35s ease, box-shadow .35s ease; }
.service-card:hover { transform: translateY(-8px); box-shadow: 0 24px 48px rgba(62,63,156,.15); }
.icon-orb { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; color: white; font-size: 1.35rem; background: var(--gradient); box-shadow: 0 12px 28px rgba(83,76,230,.25); }
.service-card h3, .project-card h3 { margin: 24px 0 10px; font-size: 1.24rem; letter-spacing: -.02em; }
.service-card p, .project-card p { margin: 0; color: var(--muted); line-height: 1.65; }

/* Speaking */
.speaking-grid { display: grid; grid-template-columns: 1fr 1.12fr; gap: 18px; align-items: stretch; }
.speaking-copy { padding: clamp(42px, 5vw, 72px); }
.speaking-image { min-height: 650px; position: relative; overflow: hidden; border-radius: 34px; background: linear-gradient(180deg,#ffffff,#f6f8ff); }
.speaking-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; position: absolute; inset: 0; }
.speaking-image::after { content:""; position:absolute; inset:0; background: linear-gradient(90deg, rgba(255,255,255,.08), transparent 28%), linear-gradient(0deg, rgba(11,27,74,.20), transparent 38%); pointer-events:none; }
.topic-list { display: grid; gap: 10px; margin-top: 28px; }
.topic { display: flex; align-items: center; gap: 13px; padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.68); border: 1px solid rgba(76,92,192,.09); }
.topic::before { content: "↗"; width: 34px; height: 34px; border-radius: 50%; display:grid; place-items:center; color:#fff; background:var(--gradient); }

/* Projects and interactive horizontal cards */
.projects-intro { display:flex; justify-content:space-between; align-items:end; gap:30px; margin-bottom:36px; }
.projects-rail-wrap { position: relative; }
.projects-rail { display:flex; gap:17px; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none; padding: 4px 3px 24px; }
.projects-rail::-webkit-scrollbar { display:none; }
.project-card { min-width: min(420px, 84vw); scroll-snap-align:start; padding: 28px; transition: transform .35s ease; }
.project-card:hover { transform: translateY(-7px); }
.project-kicker { color: #6855e9; font-size: .78rem; font-weight: 800; letter-spacing:.12em; text-transform:uppercase; }
.project-card h3 { font-family: var(--display); font-size: clamp(1.7rem, 2.8vw, 2.2rem); font-weight:400; }
.project-arrow { margin-top: 28px; display:flex; justify-content:space-between; align-items:center; color:#433dd4; font-weight:800; }
.rail-buttons { display:flex; gap:9px; }
.rail-button { width:46px; height:46px; border-radius:50%; border:1px solid rgba(83,72,216,.18); background:rgba(255,255,255,.75); color:#3a37d0; cursor:pointer; box-shadow:var(--shadow-soft); }

/* Impact */
.impact-panel { padding: 42px; background: linear-gradient(130deg, rgba(27,47,151,.98), rgba(94,74,229,.95)); color:#fff; }
.impact-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:13px; }
.impact-card { min-height:160px; padding:24px; background:rgba(255,255,255,.10); border-color:rgba(255,255,255,.20); color:#fff; }
.impact-card .stat-number { color:#fff; }
.impact-card .stat-label { color:rgba(255,255,255,.78); }


/* Selected moments gallery */
.moments-head { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(300px,.85fr); gap:42px; align-items:end; margin-bottom:34px; }
.compact-title { max-width:920px; }
.moments-intro { margin:0; color:var(--ink-soft); line-height:1.7; font-size:1.06rem; max-width:560px; }
.moments-grid { display:grid; grid-template-columns:1.4fr .8fr .8fr; grid-template-rows:310px 310px; gap:16px; }
.moment-card { position:relative; overflow:hidden; margin:0; border-radius:26px; border:1px solid rgba(255,255,255,.95); background:#eef1ff; box-shadow:var(--shadow-soft); }
.moment-wide { grid-row:1 / span 2; }
.moment-card img { width:100%; height:100%; object-fit:cover; object-position:center; transition:transform .7s cubic-bezier(.2,.7,.2,1), filter .35s ease; }
.moment-card:hover img { transform:scale(1.035); filter:saturate(1.04) contrast(1.02); }
.moment-card figcaption { position:absolute; left:16px; right:16px; bottom:15px; z-index:2; padding:12px 14px; border-radius:15px; color:#fff; font-weight:750; font-size:.88rem; background:rgba(9,22,66,.52); border:1px solid rgba(255,255,255,.24); backdrop-filter:blur(12px); }
.moment-card::after { content:""; position:absolute; inset:0; background:linear-gradient(0deg,rgba(9,22,66,.30),transparent 45%); pointer-events:none; }

/* Contact */
.contact-layout { display:grid; grid-template-columns:.86fr 1.14fr; gap:0; min-height:720px; }
.contact-visual { position:relative; overflow:hidden; min-height:720px; }
.contact-visual img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center; }
.contact-visual::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg, transparent 50%, rgba(255,255,255,.92)), linear-gradient(0deg, rgba(255,255,255,.90), transparent 42%); }
.contact-copy { position:absolute; z-index:3; left:clamp(35px,6vw,82px); top:clamp(46px,7vw,100px); max-width:540px; }
.contact-form-wrap { padding: clamp(45px, 6vw, 85px); display:flex; align-items:center; }
.contact-card { width:100%; padding:30px; }
.contact-card h3 { font-family:var(--display); font-size:2.35rem; font-weight:400; margin:0 0 18px; }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.form-field { display:grid; gap:7px; }
.form-field.full { grid-column:1/-1; }
.form-field label { font-size:.78rem; text-transform:uppercase; letter-spacing:.08em; color:#5c6684; font-weight:800; }
.form-field input, .form-field select, .form-field textarea {
  width:100%; border:1px solid rgba(92,104,180,.15); background:rgba(255,255,255,.78); color:var(--ink); border-radius:14px; padding:14px 15px; outline:none; box-shadow:inset 0 1px 0 #fff; transition:border-color .2s ease, box-shadow .2s ease;
}
.form-field textarea { min-height:128px; resize:vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color:rgba(61,72,238,.50); box-shadow:0 0 0 4px rgba(77,83,235,.08); }
.form-submit { width:100%; border:0; cursor:pointer; margin-top:15px; }
.form-status { padding: 12px 15px; border-radius: 13px; margin-bottom: 14px; background:#eefbf2; color:#167244; font-weight:700; }

/* Footer */
.site-footer { padding: 10px 0 45px; }
.footer-panel { display:flex; align-items:center; justify-content:space-between; gap:25px; padding:24px 30px; border-radius:26px; background:rgba(255,255,255,.60); border:1px solid rgba(255,255,255,.9); box-shadow:var(--shadow-soft); backdrop-filter:blur(17px); }
.footer-signature img { width:150px; max-height:70px; object-fit:contain; }
.footer-links { display:flex; gap:18px; flex-wrap:wrap; color:#53607e; font-weight:650; }

/* Motion */
[data-reveal] { opacity:0; transform:translateY(32px); transition:opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
[data-reveal].is-visible { opacity:1; transform:none; }
[data-reveal-delay="1"] { transition-delay:.10s; }
[data-reveal-delay="2"] { transition-delay:.20s; }
[data-reveal-delay="3"] { transition-delay:.30s; }
[data-float] { animation:softFloat 5.5s ease-in-out infinite; }
@keyframes softFloat { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-9px); } }
@keyframes shimmer { from { transform:translateX(-130%); } to { transform:translateX(250%); } }
.shine::after { content:""; position:absolute; top:-40%; bottom:-40%; width:18%; background:linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent); transform:translateX(-150%) rotate(14deg); animation:shimmer 6.5s ease-in-out infinite; pointer-events:none; }
.progress-line { position:fixed; z-index:1100; top:0; left:0; height:3px; width:var(--page-progress,0%); background:var(--gradient); box-shadow:0 0 18px rgba(83,78,244,.5); }

/* WordPress */
.admin-bar .site-header { top:46px; }
.screen-reader-text { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

@media (max-width: 1160px) {
  .nav-glass { grid-template-columns: 150px minmax(0,1fr) 160px; padding-left:16px; }
  .brand-signature img { width:130px; }
  .hero { grid-template-columns: 1fr 1fr; min-height:680px; }
  .hero-copy { padding-left:50px; }
  .services-grid { grid-template-columns:repeat(2,1fr); }
  .impact-grid { grid-template-columns:repeat(2,1fr); }
  .moments-grid { grid-template-columns:1fr 1fr; grid-template-rows:420px 300px; }
  .moment-wide { grid-column:1 / -1; grid-row:auto; }
}
@media (max-width: 900px) {
  html { scroll-padding-top:100px; }
  .site-shell { width:min(100% - 18px, 760px); }
  .site-header { top:7px; padding-top:7px; }
  .nav-glass { grid-template-columns: 104px minmax(0,1fr); min-height:70px; border-radius:23px; padding:8px 10px; }
  .brand-signature img { width:100px; height:50px; }
  .header-cta { display:none; }
  .tab-arrow { display:none; }
  .tab-link { padding:10px 15px; font-size:.92rem; }
  main { padding-top:12px; }
  .gloss-panel { border-radius:30px; }
  .shine::after { animation:none; display:none; }
  .nav-glass, .tabs-scroller, .stat-card, .service-card, .project-card, .impact-card, .contact-card { backdrop-filter: blur(10px); }
  .hero { grid-template-columns:1fr; min-height:auto; }
  .hero-copy { padding:70px 28px 28px; }
  .hero-copy::before { inset:0; background:linear-gradient(180deg,#fff 0%,rgba(255,255,255,.97) 82%,rgba(255,255,255,.70) 100%); }
  .display-title { font-size:clamp(3rem, 13vw, 5.4rem); }
  .hero-visual { min-height:500px; }
  .hero-visual::before { background:linear-gradient(180deg,#fff 0%,transparent 24%), linear-gradient(0deg,rgba(255,255,255,.92),transparent 24%); }
  .hero-badges { left:18px; right:18px; bottom:18px; overflow-x:auto; }
  .two-col, .speaking-grid, .contact-layout { grid-template-columns:1fr; }
  .section-pad, .speaking-copy { padding:48px 25px; }
  .visual-card { min-height:500px; order:-1; }
  .stat-grid { grid-template-columns:1fr; }
  .services-grid { grid-template-columns:1fr; }
  .speaking-image { min-height:520px; }
  .projects-intro { align-items:start; flex-direction:column; }
  .moments-head { grid-template-columns:1fr; gap:18px; }
  .moments-grid { grid-template-columns:1fr 1fr; grid-template-rows:360px 280px; }
  .contact-visual { min-height:560px; }
  .contact-visual::after { background:linear-gradient(0deg,#fff 0%,rgba(255,255,255,.22) 35%,transparent 70%); }
  .contact-copy { top:36px; left:28px; right:28px; }
  .contact-form-wrap { padding:24px; }
  .form-grid { grid-template-columns:1fr; }
  .form-field.full { grid-column:auto; }
  .footer-panel { align-items:flex-start; flex-direction:column; }
}
@media (max-width: 560px) {
  .site-shell { width:calc(100% - 12px); }
  .nav-glass { grid-template-columns:86px minmax(0,1fr); border-radius:20px; }
  .brand-signature img { width:84px; }
  .hero-copy { padding:58px 20px 24px; }
  .display-title { font-size:clamp(2.6rem, 14vw, 4.3rem); }
  .section-title { font-size:clamp(2rem, 9vw, 3.2rem); }
  .role-line { font-size:.88rem; }
  .hero-actions { display:grid; grid-template-columns:1fr; }
  .button-primary, .button-secondary { width:100%; }
  .button-book-call { min-width: 0; }
  .hero-visual { min-height:425px; }
  .mini-badge { font-size:.75rem; }
  .section-pad, .speaking-copy { padding:40px 19px; }
  .impact-panel { padding:24px 17px; }
  .impact-grid { grid-template-columns:1fr; }
  .service-card { min-height:auto; }
  .project-card { min-width:88vw; }
  .moments-grid { grid-template-columns:1fr; grid-template-rows:none; }
  .moment-card, .moment-wide { min-height:300px; grid-column:auto; grid-row:auto; }
  .contact-card { padding:20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration:.001ms !important; animation-iteration-count:1 !important; scroll-behavior:auto !important; transition-duration:.001ms !important; }
  [data-reveal] { opacity:1; transform:none; }
}


/* ===== v1.3 interaction + horizontal deck refinements ===== */
:root { --deck-gap: 18px; }
html, body { max-width: 100%; }
body { overflow-x: hidden; }
.cursor-aura {
  position: fixed;
  left: -160px;
  top: -160px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle, rgba(120,94,255,.18) 0%, rgba(120,94,255,.10) 28%, rgba(120,94,255,0) 70%);
  filter: blur(10px);
  mix-blend-mode: multiply;
}
.cursor-aura-soft {
  width: 460px;
  height: 460px;
  left: -230px;
  top: -230px;
  background: radial-gradient(circle, rgba(82,215,228,.10) 0%, rgba(82,215,228,.05) 30%, rgba(82,215,228,0) 72%);
  filter: blur(18px);
  mix-blend-mode: multiply;
}
.panel-overlay {
  position: absolute;
  inset: -8%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--overlay-x, 70%) var(--overlay-y, 30%), rgba(106,91,255,.16), transparent 24%),
    radial-gradient(circle at calc(var(--overlay-x, 70%) + 8%) calc(var(--overlay-y, 30%) + 12%), rgba(86,216,211,.10), transparent 22%);
  filter: blur(12px);
  opacity: .96;
}
.hero-copy, .services-head, .speaking-copy, .contact-copy, .contact-form-wrap, .projects-intro, .projects-rail-wrap, .two-col, .moments-head, .moments-grid, .impact-grid { position: relative; z-index: 1; }
.display-title { font-size: clamp(3rem, 5vw, 5.65rem); line-height: .9; }
.section-title { font-size: clamp(2rem, 3.35vw, 3.95rem); line-height: .94; }
.hero-copy { padding-left: 72px; }
.hero-home-photo img { object-position: 73% center; }
.hero-badges { right: 26px; bottom: 22px; gap: 8px; }
.mini-badge { font-size: .8rem; padding: 12px 14px; }
.button-book-call { min-width: 0; }
.stat-grid.mini-stats { gap: 10px; }
.stat-card { padding: 18px 18px 16px; min-height: 110px; }
.stat-number { font-size: clamp(2rem, 3.3vw, 2.8rem); }
.stat-label { margin-top: 6px; font-size: .92rem; }
.visual-portrait { min-height: 540px; }
.visual-portrait img { object-position: center 18%; }
.services-grid-visual { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 34px; }
.service-card-visual { min-height: auto; padding: 0; overflow: hidden; }
.service-thumb { margin: 0; height: 126px; overflow: hidden; background: #eef1ff; }
.service-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.service-card-visual:hover .service-thumb img { transform: scale(1.04); }
.service-copy { padding: 16px 18px 18px; }
.service-card-visual h3 { margin: 0 0 8px; font-size: 1.03rem; line-height: 1.25; }
.service-card-visual p { font-size: .93rem; line-height: 1.55; }
.service-card-visual:nth-child(1) img { object-position: center 38%; }
.service-card-visual:nth-child(2) img { object-position: center 26%; }
.service-card-visual:nth-child(3) img { object-position: center 26%; }
.service-card-visual:nth-child(4) img { object-position: center 20%; }
.service-card-visual:nth-child(5) img { object-position: center 18%; }
.service-card-visual:nth-child(6) img { object-position: center 22%; }
.speaking-grid { gap: 14px; }
.speaking-copy { padding: clamp(34px, 4vw, 56px); }
.speaking-image { min-height: 100%; }
.speaking-image-real img { object-position: center 18%; }
.topic { padding: 11px 14px; font-size: .97rem; }
.projects-intro { margin-bottom: 24px; }
.project-card { min-width: min(360px, 64vw); padding: 24px; }
.project-card h3 { font-size: clamp(1.5rem, 2vw, 1.95rem); }
.impact-panel { padding: 34px; }
.compact-impact-head { margin-bottom: 18px; }
.impact-grid-compact { gap: 12px; }
.impact-card { min-height: 128px; padding: 18px; }
.impact-card .stat-number { font-size: clamp(2rem, 2.7vw, 3rem); }
.impact-card .stat-label { font-size: .94rem; }
.moments-grid-compact { grid-template-columns: 1.1fr .95fr .95fr; grid-template-rows: 240px 240px; gap: 14px; }
.moments-grid-compact .moment-card img { object-position: center 24%; }
.moments-grid-compact .moment-card:nth-child(1) img { object-position: 72% center; }
.moments-grid-compact .moment-card:nth-child(2) img { object-position: center 20%; }
.moments-grid-compact .moment-card:nth-child(3) img { object-position: center 14%; }
.moments-grid-compact .moment-card:nth-child(4) img { object-position: center 24%; }
.contact-layout { min-height: 100%; }
.contact-visual { min-height: 100%; }
.contact-visual img { object-position: center 24%; }
.contact-card { padding: 24px; }
.contact-card h3 { font-size: 2rem; }
.form-field input, .form-field select, .form-field textarea { padding: 12px 14px; }
.form-field textarea { min-height: 110px; }
.tab-link { transition: transform .25s ease, color .25s ease, background .25s ease, box-shadow .25s ease, opacity .25s ease; }
.rail-button:hover, .tab-arrow:hover, .topic:hover, .stat-card:hover, .impact-card:hover, .moment-card:hover { transform: translateY(-2px); }
.hero-copy, .hero-visual, .visual-card, .service-card-visual, .project-card, .impact-card, .moment-card, .contact-card { animation: cardLiftIn 1.1s cubic-bezier(.2,.7,.2,1) both; }
@keyframes cardLiftIn {
  from { opacity: 0; transform: translateY(24px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (min-width: 1101px) {
  body { overflow: hidden; }
  .site-header {
    position: fixed;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: min(var(--content-max), calc(100% - 32px));
    margin: 0;
  }
  main.slide-deck {
    width: calc(100vw - 12px);
    max-width: none;
    height: 100vh;
    display: flex;
    align-items: stretch;
    gap: var(--deck-gap);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 12px;
    padding: 118px 12px 14px 12px;
    margin: 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(93,84,228,.55) rgba(232,236,255,.75);
  }
  main.slide-deck::-webkit-scrollbar { height: 10px; }
  main.slide-deck::-webkit-scrollbar-thumb { background: rgba(93,84,228,.58); border-radius: 999px; }
  main.slide-deck::-webkit-scrollbar-track { background: rgba(232,236,255,.78); border-radius: 999px; }
  .page-section {
    flex: 0 0 calc(100vw - 24px);
    width: calc(100vw - 24px);
    height: calc(100vh - 144px);
    min-height: calc(100vh - 144px);
    margin: 0;
    scroll-margin-top: 0;
    scroll-snap-align: start;
    overflow: hidden;
  }
  .site-footer { display: none; }
  .hero { grid-template-columns: minmax(0, .98fr) minmax(470px, 1.02fr); min-height: 100%; }
  .hero-copy { padding-top: 56px; padding-bottom: 42px; }
  .hero-visual { min-height: 100%; }
  .section-pad { padding: 34px 38px; }
  .two-col { gap: 28px; }
  .speaking-grid { grid-template-columns: .94fr 1.06fr; min-height: 100%; }
  .projects-rail-wrap { overflow: hidden; }
  .projects-rail { padding-bottom: 10px; }
  .moments-section { display: flex; flex-direction: column; justify-content: center; }
  .impact-panel { display: flex; flex-direction: column; justify-content: center; }
}

@media (max-width: 1280px) and (min-width: 1101px) {
  .display-title { font-size: clamp(2.7rem, 4.2vw, 4.8rem); }
  .section-title { font-size: clamp(1.9rem, 2.8vw, 3.25rem); }
  .lead { font-size: 1rem; line-height: 1.62; }
  .services-grid-visual { gap: 12px; }
  .service-thumb { height: 108px; }
  .service-copy { padding: 14px 15px 16px; }
  .service-card-visual p { font-size: .89rem; }
  .moments-grid-compact { grid-template-rows: 208px 208px; }
  .impact-card { min-height: 112px; }
}

@media (max-width: 1100px) {
  .cursor-aura, .cursor-aura-soft { display: none; }
  .panel-overlay { display: none; }
}

@media (max-width: 900px) {
  .services-grid-visual { grid-template-columns: 1fr; }
  .service-thumb { height: 180px; }
  .moments-grid-compact { grid-template-columns: 1fr 1fr; grid-template-rows: 320px 250px; }
  .impact-grid-compact { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .impact-grid-compact { grid-template-columns: 1fr; }
  .moments-grid-compact { grid-template-columns: 1fr; grid-template-rows: none; }
  .service-thumb { height: 160px; }
}


/* ===== v1.4 premium polish ===== */
:root {
  --surface: rgba(255,255,255,.76);
  --surface-solid: #ffffff;
  --surface-soft: #f5f7ff;
  --surface-card: rgba(255,255,255,.72);
  --surface-border: rgba(255,255,255,.94);
  --nav-bg: rgba(255,255,255,.68);
  --focus-ring: rgba(80,83,235,.18);
  --cursor-ring: rgba(55,64,185,.66);
}
html { color-scheme: light; }
html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f4f6ff;
  --ink-soft: #ccd3ec;
  --muted: #9ca7ca;
  --line: rgba(164,174,232,.16);
  --paper: #080d19;
  --paper-soft: #10182b;
  --glass: rgba(12,19,38,.76);
  --surface: rgba(13,20,39,.82);
  --surface-solid: #0d1427;
  --surface-soft: #111a31;
  --surface-card: rgba(18,27,50,.82);
  --surface-border: rgba(173,184,255,.15);
  --nav-bg: rgba(9,15,30,.76);
  --shadow: 0 24px 80px rgba(0,0,0,.36);
  --shadow-soft: 0 14px 38px rgba(0,0,0,.25);
  --focus-ring: rgba(120,108,255,.24);
  --cursor-ring: rgba(183,190,255,.72);
}
html[data-theme="dark"] body {
  background:
    radial-gradient(circle at 90% 0%, rgba(112,91,255,.20), transparent 30%),
    radial-gradient(circle at 10% 22%, rgba(31,102,255,.10), transparent 28%),
    #070b15;
}
html[data-theme="dark"] body::before { opacity: .34; }
html[data-theme="dark"] .nav-glass,
html[data-theme="dark"] .tabs-scroller,
html[data-theme="dark"] .footer-panel {
  background: var(--nav-bg);
  border-color: rgba(164,174,232,.16);
  box-shadow: 0 16px 48px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.05);
}
html[data-theme="dark"] .tab-link { color: #cbd2ec; }
html[data-theme="dark"] .tab-link.is-active {
  color: #fff;
  background: rgba(115,95,255,.24);
  box-shadow: inset 0 0 0 1px rgba(172,161,255,.18), 0 8px 22px rgba(0,0,0,.18);
}
html[data-theme="dark"] .gloss-panel { background: var(--surface); border-color: var(--surface-border); }
html[data-theme="dark"] .hero-copy::before {
  background: linear-gradient(90deg, #0d1427 0%, rgba(13,20,39,.985) 58%, rgba(13,20,39,.72) 76%, transparent 100%);
}
html[data-theme="dark"] .hero-visual::before {
  background: linear-gradient(90deg, #0d1427 0%, rgba(13,20,39,.06) 38%, transparent 72%), linear-gradient(0deg, rgba(13,20,39,.94), transparent 31%);
}
html[data-theme="dark"] .role-line { color: #d9def4; }
html[data-theme="dark"] .button-secondary { color: #e5e9ff; background: rgba(20,29,55,.76); border-color: rgba(143,132,255,.42); }
html[data-theme="dark"] .stat-card,
html[data-theme="dark"] .service-card,
html[data-theme="dark"] .project-card,
html[data-theme="dark"] .impact-card,
html[data-theme="dark"] .contact-card,
html[data-theme="dark"] .topic,
html[data-theme="dark"] .moment-card {
  background: var(--surface-card);
  border-color: rgba(173,184,255,.14);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255,255,255,.04);
}
html[data-theme="dark"] .stat-label,
html[data-theme="dark"] .service-card p,
html[data-theme="dark"] .project-card p,
html[data-theme="dark"] .moments-intro,
html[data-theme="dark"] .footer-links { color: var(--muted); }
html[data-theme="dark"] .visual-card,
html[data-theme="dark"] .speaking-image { background: #11192e; }
html[data-theme="dark"] .contact-visual::after { background: linear-gradient(90deg, transparent 52%, rgba(13,20,39,.94)), linear-gradient(0deg, rgba(13,20,39,.90), transparent 44%); }
html[data-theme="dark"] .form-field input,
html[data-theme="dark"] .form-field select,
html[data-theme="dark"] .form-field textarea {
  background: rgba(8,14,28,.72);
  border-color: rgba(167,177,236,.16);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
html[data-theme="dark"] .form-field input:focus,
html[data-theme="dark"] .form-field select:focus,
html[data-theme="dark"] .form-field textarea:focus { box-shadow: 0 0 0 4px var(--focus-ring); }
html[data-theme="dark"] .brand-signature img,
html[data-theme="dark"] .footer-signature img { filter: brightness(0) invert(1) sepia(.1) saturate(1.3); }
html[data-theme="dark"] .theme-icon-sun { display: none; }
html[data-theme="dark"] .theme-icon-moon { display: block; }

/* Premium preloader */
.site-preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 64% 34%, rgba(125,99,255,.18), transparent 28%),
    linear-gradient(135deg, #ffffff, #f4f5ff 56%, #ffffff);
  opacity: 1;
  visibility: visible;
  transition: opacity .65s ease, visibility .65s ease;
}
html[data-theme="dark"] .site-preloader {
  background: radial-gradient(circle at 64% 34%, rgba(125,99,255,.25), transparent 30%), linear-gradient(135deg,#070b15,#11182d 58%,#070b15);
}
body.is-loaded .site-preloader { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-card { width: min(360px, 78vw); text-align: center; }
.preloader-card img { width: 220px; height: 120px; object-fit: contain; margin: 0 auto 20px; }
html[data-theme="dark"] .preloader-card img { filter: brightness(0) invert(1); }
.preloader-card p { margin: 14px 0 0; color: var(--muted); font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.preloader-track { height: 4px; border-radius: 999px; overflow: hidden; background: rgba(84,91,170,.10); }
.preloader-track span {
  display: block;
  width: 38%;
  height: 100%;
  border-radius: inherit;
  background: var(--gradient);
  animation: preloaderSweep 1.25s cubic-bezier(.65,0,.35,1) infinite;
}
@keyframes preloaderSweep { 0% { transform: translateX(-115%); } 100% { transform: translateX(360%); } }

/* Header actions and theme switch */
.nav-glass { grid-template-columns: 205px minmax(0,1fr) 226px; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; position: relative; z-index: 3; }
.theme-toggle {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(98,90,210,.14);
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: rgba(255,255,255,.62);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255,255,255,.86);
  cursor: pointer;
  transition: transform .25s ease, background .25s ease, border-color .25s ease;
}
html[data-theme="dark"] .theme-toggle { background: rgba(18,27,50,.78); border-color: rgba(165,175,236,.16); box-shadow: 0 10px 24px rgba(0,0,0,.22); }
.theme-toggle:hover { transform: translateY(-2px) rotate(5deg); }
.theme-icon { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-icon-moon { display: none; }

/* Custom cursor */
.cursor-dot, .cursor-ring {
  position: fixed;
  left: 0;
  top: 0;
  pointer-events: none;
  z-index: 10000;
  opacity: 0;
  transform: translate3d(-50px,-50px,0);
}
.cursor-dot { width: 6px; height: 6px; border-radius: 50%; background: #6858ff; box-shadow: 0 0 14px rgba(104,88,255,.6); }
.cursor-ring { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--cursor-ring); background: rgba(104,88,255,.04); backdrop-filter: blur(1px); transition: width .22s ease, height .22s ease, border-color .22s ease, background .22s ease, opacity .2s ease; }
body.cursor-ready .cursor-dot, body.cursor-ready .cursor-ring { opacity: 1; }
body.cursor-hover .cursor-ring { width: 58px; height: 58px; border-color: rgba(139,92,246,.86); background: rgba(139,92,246,.10); }
body.cursor-click .cursor-ring { width: 28px; height: 28px; }
body.cursor-text .cursor-dot, body.cursor-text .cursor-ring { opacity: 0; }

/* Deck navigation dots */
.deck-dots {
  position: fixed;
  z-index: 1200;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  gap: 10px;
  padding: 12px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.58);
  border: 1px solid rgba(255,255,255,.88);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
}
html[data-theme="dark"] .deck-dots { background: rgba(12,19,38,.66); border-color: rgba(164,174,232,.16); }
.deck-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(80,89,155,.28);
  cursor: pointer;
  transition: height .3s ease, background .3s ease, transform .3s ease;
}
.deck-dot:hover { transform: scale(1.35); }
.deck-dot.is-active { height: 28px; border-radius: 99px; background: var(--gradient); }

/* Stronger but controlled slide transitions */
@media (min-width: 1101px) {
  .page-section {
    opacity: var(--slide-opacity, 1);
    transform: translate3d(0, var(--slide-shift, 0px), 0) scale(var(--slide-scale, 1));
    filter: blur(var(--slide-blur, 0px));
    transform-origin: center center;
    transition: opacity .16s linear, transform .16s linear, filter .16s linear;
    will-change: transform, opacity, filter;
  }
  .page-section.is-current { box-shadow: 0 28px 88px rgba(50,55,140,.17); }
  html[data-theme="dark"] .page-section.is-current { box-shadow: 0 28px 88px rgba(0,0,0,.40); }
}

/* Micro interactions */
.button-primary, .button-secondary, .header-cta, .theme-toggle, .rail-button, .tab-arrow {
  position: relative;
  overflow: hidden;
  transform: translate3d(var(--mag-x,0), var(--mag-y,0), 0);
}
.button-primary::before, .button-secondary::before, .header-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 18%, rgba(255,255,255,.34) 48%, transparent 78%);
  transform: translateX(-130%);
  transition: transform .7s ease;
}
.button-primary:hover::before, .button-secondary:hover::before, .header-cta:hover::before { transform: translateX(130%); }
.service-card-visual, .project-card, .moment-card, .stat-card, .impact-card {
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service-card-visual::after, .project-card::after, .moment-card::before, .stat-card::after, .impact-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at var(--card-x,50%) var(--card-y,50%), rgba(255,255,255,.26), transparent 38%);
  opacity: 0;
  transition: opacity .25s ease;
}
.service-card-visual:hover::after, .project-card:hover::after, .moment-card:hover::before, .stat-card:hover::after, .impact-card:hover::after { opacity: 1; }
html[data-theme="dark"] .service-card-visual::after,
html[data-theme="dark"] .project-card::after,
html[data-theme="dark"] .moment-card::before,
html[data-theme="dark"] .stat-card::after,
html[data-theme="dark"] .impact-card::after { background: radial-gradient(circle at var(--card-x,50%) var(--card-y,50%), rgba(137,119,255,.18), transparent 40%); }
.tab-link::after {
  content: "";
  position: absolute;
  left: 20%;
  right: 20%;
  bottom: 5px;
  height: 2px;
  border-radius: 99px;
  background: var(--gradient);
  transform: scaleX(0);
  transition: transform .28s ease;
}
.tab-link:hover::after, .tab-link.is-active::after { transform: scaleX(1); }
.gloss-panel { transition: background .45s ease, border-color .45s ease, box-shadow .45s ease; }
body, .nav-glass, .tabs-scroller, .stat-card, .service-card, .project-card, .impact-card, .contact-card, .topic, .moment-card, .button-secondary, .form-field input, .form-field select, .form-field textarea { transition: background-color .45s ease, color .45s ease, border-color .45s ease, box-shadow .45s ease; }

@media (hover:hover) and (pointer:fine) {
  body, a, button { cursor: none; }
  input, textarea, select, label { cursor: text; }
}

@media (max-width: 1160px) {
  .nav-glass { grid-template-columns: 150px minmax(0,1fr) 198px; }
}
@media (max-width: 900px) {
  .nav-glass { grid-template-columns: 104px minmax(0,1fr) 48px; }
  .header-actions { justify-content: end; }
  .header-cta { display: none; }
  .theme-toggle { width: 43px; height: 43px; border-radius: 14px; }
  .deck-dots { display: none; }
  .site-preloader { min-height: 100dvh; }
  html[data-theme="dark"] .hero-copy::before { background: linear-gradient(180deg,#0d1427 0%,rgba(13,20,39,.98) 82%,rgba(13,20,39,.72) 100%); }
  html[data-theme="dark"] .hero-visual::before { background: linear-gradient(180deg,#0d1427 0%,transparent 24%), linear-gradient(0deg,rgba(13,20,39,.93),transparent 24%); }
  html[data-theme="dark"] .contact-visual::after { background: linear-gradient(0deg,#0d1427 0%,rgba(13,20,39,.24) 36%,transparent 72%); }
}
@media (max-width: 560px) {
  .nav-glass { grid-template-columns: 82px minmax(0,1fr) 42px; }
  .theme-toggle { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-preloader { display: none; }
  .cursor-dot, .cursor-ring, .cursor-aura, .cursor-aura-soft { display: none; }
  .page-section { opacity: 1 !important; transform: none !important; filter: none !important; }
}

/* v1.5 refinements: home image, interactive CV, richer impact */
.hero-home-photo img { object-position: center center; }
.hero-home-photo { align-items: stretch; }
.hero-home-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.02), rgba(255,255,255,.10) 28%, rgba(255,255,255,.04) 60%, rgba(255,255,255,0) 100%),
    linear-gradient(0deg, rgba(255,255,255,.06), transparent 28%);
  pointer-events: none;
}

.whoami-section { display:flex; align-items:center; }
.whoami-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
  gap: 24px;
  align-items: center;
}
.whoami-body {
  margin: 0;
  max-width: 760px;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.75;
}
.whoami-body strong { color: var(--ink); }
.whoami-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.whoami-tags span {
  padding: 11px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(72, 88, 186, .14);
  box-shadow: var(--shadow-soft);
  font-weight: 680;
  color: var(--ink);
  font-size: .92rem;
}
.social-row {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.80);
  border: 1px solid rgba(74, 91, 170, .16);
  box-shadow: var(--shadow-soft);
  font-size: .9rem;
  font-weight: 700;
  color: var(--ink);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.social-pill:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(52, 69, 154, .14);
  border-color: rgba(74, 91, 170, .28);
}
.social-pill svg { width: 16px; height: 16px; fill: currentColor; }
.whoami-board { padding: 18px; border-radius: 34px; }
.resume-sheet {
  border-radius: 28px;
  padding: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.86), rgba(248,249,255,.92));
  border: 1px solid rgba(255,255,255,.95);
  box-shadow: var(--shadow-soft);
}
.resume-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
}
.eyebrow-mini {
  color: #6a63ea;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .72rem;
  font-weight: 800;
}
.mini-link { color: #4e47de; font-weight: 800; font-size: .92rem; }
.resume-sheet h3 {
  margin: 0 0 18px;
  font-family: var(--display);
  font-size: clamp(2rem, 3vw, 2.55rem);
  font-weight: 400;
}
.resume-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.resume-item {
  min-height: 165px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(86, 98, 180, .12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95);
}
.resume-item.wide { grid-column: 1 / -1; min-height: 0; }
.resume-item.photo { padding: 0; overflow: hidden; }
.resume-item.photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 32%; }
.resume-kicker {
  display: inline-block;
  margin-bottom: 10px;
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #6f75a5;
  font-weight: 800;
}
.resume-item p,
.resume-item li { color: var(--ink-soft); line-height: 1.65; font-size: .95rem; }
.resume-item ul { margin: 0; padding-left: 18px; display: grid; gap: 8px; }
.resume-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.resume-metrics span {
  padding: 9px 11px;
  border-radius: 14px;
  background: rgba(95, 98, 240, .09);
  color: var(--ink);
  font-weight: 700;
  font-size: .9rem;
}

.impact-v2 { display: flex; align-items: center; }
.impact-layout-v2 {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, .98fr);
  gap: 26px;
  width: 100%;
  align-items: center;
}
.impact-copy-v2 .lead {
  max-width: 760px;
  color: rgba(255,255,255,.86);
}
.impact-grid-v2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}
.impact-grid-v2 .impact-card {
  min-height: 146px;
  padding: 20px 22px;
  border-radius: 22px;
  backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22);
}
.impact-grid-v2 .stat-number { font-size: clamp(2.4rem, 4vw, 3.35rem); }
.social-compact {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 24px;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.18);
}
.social-compact-label {
  display: block;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: .11em;
  font-size: .74rem;
  font-weight: 800;
  color: rgba(255,255,255,.82);
}
.social-mini-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.social-mini-list a {
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  font-weight: 680;
  font-size: .88rem;
  transition: transform .28s ease, background .28s ease;
}
.social-mini-list a:hover { transform: translateY(-3px); background: rgba(255,255,255,.18); }
.impact-visual-cluster {
  position: relative;
  min-height: 620px;
}
.impact-photo {
  position: absolute;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 24px 80px rgba(12, 18, 78, .22);
  background: rgba(255,255,255,.18);
}
.impact-photo img { width: 100%; height: 100%; object-fit: cover; }
.impact-photo-main {
  width: 58%; height: 62%; left: 0; top: 0;
}
.impact-photo-main img { object-position: center; }
.impact-photo-side {
  width: 42%; height: 50%; right: 0; top: 6%;
}
.impact-photo-side img { object-position: center 22%; }
.impact-photo-bottom {
  width: 66%; height: 42%; right: 6%; bottom: 2%;
}
.impact-photo-bottom img { object-position: center; }
.impact-note {
  position: absolute;
  left: 8%;
  bottom: 4%;
  z-index: 2;
  max-width: 56%;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(11, 20, 77, .62);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.94);
  font-size: .9rem;
  line-height: 1.55;
  font-weight: 650;
  backdrop-filter: blur(14px);
}

html[data-theme="dark"] .social-pill,
html[data-theme="dark"] .resume-item,
html[data-theme="dark"] .resume-sheet,
html[data-theme="dark"] .whoami-tags span {
  background: rgba(18, 24, 58, .74);
  border-color: rgba(255,255,255,.08);
  color: #eef2ff;
}
html[data-theme="dark"] .social-pill svg,
html[data-theme="dark"] .social-pill span { color: #eef2ff; }
html[data-theme="dark"] .resume-item p,
html[data-theme="dark"] .resume-item li,
html[data-theme="dark"] .whoami-body { color: rgba(240,243,255,.78); }
html[data-theme="dark"] .resume-kicker,
html[data-theme="dark"] .eyebrow-mini { color: #b8bbff; }
html[data-theme="dark"] .resume-metrics span { background: rgba(255,255,255,.06); color: #fff; }

@media (max-width: 1280px) {
  .whoami-layout,
  .impact-layout-v2 { grid-template-columns: 1fr; }
  .impact-visual-cluster { min-height: 520px; }
}
@media (max-width: 980px) {
  .resume-grid { grid-template-columns: 1fr; }
  .resume-item.wide { grid-column: auto; }
  .impact-grid-v2 { grid-template-columns: 1fr 1fr; }
  .impact-photo-main { width: 58%; }
  .impact-photo-side { width: 38%; }
  .impact-photo-bottom { width: 70%; }
}
@media (max-width: 767px) {
  .whoami-tags,
  .social-row,
  .social-mini-list { gap: 8px; }
  .social-pill,
  .social-mini-list a { font-size: .82rem; }
  .impact-grid-v2 { grid-template-columns: 1fr; }
  .impact-visual-cluster {
    min-height: auto;
    display: grid;
    gap: 14px;
  }
  .impact-photo,
  .impact-note {
    position: relative;
    inset: auto;
    width: 100%;
    max-width: none;
    height: 240px;
  }
  .impact-note { height: auto; left:auto; bottom:auto; }
}

/* v1.7 correction: real hero poster + separate CV and media slides */
.hero-poster-section {
  position: relative;
  display: grid;
  place-items: center;
  background: #fff;
}
.hero-poster-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: inherit;
}
.hero-poster-book {
  position: absolute;
  left: 6.9%;
  top: 74.8%;
  width: 13.6%;
  min-width: 160px;
  height: 6.6%;
  min-height: 54px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  font-weight: 800;
  font-size: clamp(.82rem, 1vw, 1rem);
  background: linear-gradient(115deg, #2348f0 0%, #6f58ff 52%, #9e5ce8 100%);
  box-shadow: 0 14px 34px rgba(70,69,221,.28);
  z-index: 4;
}
.hero-poster-explore {
  position: absolute;
  left: 21.3%;
  top: 74.8%;
  width: 12.8%;
  height: 6.6%;
  z-index: 4;
}
.hero-mobile-copy { display: none; }

.cv-section { display: flex; align-items: center; }
.cv-layout {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(300px,.75fr) minmax(260px,.65fr) minmax(420px,1.1fr);
  gap: 22px;
  align-items: center;
}
.cv-intro .lead { max-width: 540px; }
.cv-quick-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.cv-timeline { display: grid; gap: 10px; }
.cv-tab {
  width: 100%;
  text-align: left;
  padding: 16px 17px;
  border: 1px solid rgba(76,92,192,.12);
  border-radius: 18px;
  background: rgba(255,255,255,.70);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform .28s ease, background .28s ease, border-color .28s ease;
}
.cv-tab span { display: block; margin-bottom: 4px; color: #6a63ea; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; }
.cv-tab strong { font-size: .98rem; line-height: 1.3; }
.cv-tab:hover { transform: translateX(4px); }
.cv-tab.is-active {
  background: linear-gradient(120deg, rgba(48,72,239,.96), rgba(120,84,239,.94));
  color: #fff;
  border-color: transparent;
}
.cv-tab.is-active span { color: rgba(255,255,255,.75); }
.cv-detail-wrap {
  min-height: 430px;
  position: relative;
  border-radius: 30px;
  background: rgba(255,255,255,.74);
  border: 1px solid rgba(255,255,255,.94);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.cv-detail {
  position: absolute;
  inset: 0;
  padding: 34px;
  opacity: 0;
  transform: translateY(18px) scale(.985);
  pointer-events: none;
  transition: opacity .42s ease, transform .42s ease;
}
.cv-detail.is-active { opacity: 1; transform: none; pointer-events: auto; }
.cv-detail h3 { margin: 10px 0 14px; font-family: var(--display); font-size: clamp(2.1rem,3vw,3.2rem); font-weight: 400; line-height: .98; }
.cv-detail p { color: var(--ink-soft); font-size: 1.05rem; line-height: 1.72; }
.cv-chip-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.cv-chip-row span { padding: 10px 12px; border-radius: 999px; background: rgba(91,83,232,.09); color: var(--ink); font-weight: 700; font-size: .9rem; }

.media-section { display: flex; flex-direction: column; justify-content: center; }
.media-head {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 28px;
  align-items: end;
  margin-bottom: 26px;
}
.media-rail {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px 3px 16px;
}
.media-rail::-webkit-scrollbar { display: none; }
.media-card {
  flex: 0 0 min(360px, 68vw);
  min-height: 430px;
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  scroll-snap-align: start;
  border: 1px solid rgba(255,255,255,.95);
  box-shadow: var(--shadow-soft);
  background: #eef1ff;
  transition: transform .35s ease, box-shadow .35s ease;
}
.media-card:hover { transform: translateY(-7px); box-shadow: 0 26px 54px rgba(55,62,148,.17); }
.media-card img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: center 24%; transition: transform .7s ease; }
.media-card:hover img { transform: scale(1.04); }
.media-card::after { content:""; position:absolute; inset:0; background: linear-gradient(0deg, rgba(8,18,55,.86) 0%, rgba(8,18,55,.18) 48%, transparent 72%); }
.media-card div { position:absolute; z-index:2; left:22px; right:22px; bottom:22px; color:#fff; }
.media-card span { font-size:.76rem; letter-spacing:.12em; text-transform:uppercase; font-weight:800; color:rgba(255,255,255,.72); }
.media-card h3 { margin:8px 0 0; font-family:var(--display); font-size:2rem; line-height:1.02; font-weight:400; }

.contact-footer-strip {
  position: absolute;
  z-index: 4;
  left: 28px;
  right: 28px;
  bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.76);
  border: 1px solid rgba(255,255,255,.9);
  backdrop-filter: blur(15px);
  box-shadow: var(--shadow-soft);
}
.contact-footer-strip strong { display:block; color:var(--ink); }
.contact-footer-strip span { color:var(--muted); font-size:.84rem; }
.contact-footer-links { display:flex; flex-wrap:wrap; gap:10px; }
.contact-footer-links a { color:#4f49dd; font-weight:700; font-size:.84rem; }

html[data-theme="dark"] .cv-tab,
html[data-theme="dark"] .cv-detail-wrap { background: rgba(18,24,58,.74); border-color: rgba(255,255,255,.08); }
html[data-theme="dark"] .cv-detail p { color: rgba(240,243,255,.78); }
html[data-theme="dark"] .cv-chip-row span { background: rgba(255,255,255,.06); color:#fff; }
html[data-theme="dark"] .contact-footer-strip { background: rgba(18,24,58,.82); border-color: rgba(255,255,255,.08); }
html[data-theme="dark"] .contact-footer-strip strong { color:#fff; }

@media (max-width: 1280px) {
  .cv-layout { grid-template-columns: .8fr .72fr 1fr; }
  .cv-detail-wrap { min-height: 380px; }
  .cv-detail { padding: 26px; }
}
@media (max-width: 1100px) {
  .hero-poster-image { display:none; }
  .hero-poster-book,
  .hero-poster-explore { display:none; }
  .hero-poster-section { padding: 0; overflow:hidden; }
  .hero-poster-section::before {
    content:"";
    position:absolute;
    inset:0;
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.78)), url('assets/images/hero-stage.webp') center/cover no-repeat;
  }
  .hero-mobile-copy { position:relative; z-index:2; display:block; padding:64px 28px; }
  .cv-layout { grid-template-columns:1fr; }
  .cv-detail-wrap { min-height: 360px; }
  .media-head { grid-template-columns:1fr; }
  .contact-footer-strip { position:relative; left:auto; right:auto; bottom:auto; margin:18px; }
}
@media (max-width: 700px) {
  .cv-quick-actions { display:grid; }
  .cv-quick-actions a { width:100%; }
  .cv-detail-wrap { min-height: 430px; }
  .cv-detail { padding:22px; }
  .media-card { flex-basis: 84vw; min-height:380px; }
  .contact-footer-strip { align-items:flex-start; flex-direction:column; }
}
.hero-poster-frame {
  position: relative;
  width: min(100%, calc((100vh - 150px) * 1.7779));
  max-height: 100%;
  aspect-ratio: 1672 / 941;
  margin: 0 auto;
}
.hero-poster-frame .hero-poster-image { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; }
@media (max-width:1100px) { .hero-poster-frame { display:none; } }
