/* ============================================================
   DataFly Systems — shared stylesheet
   Aesthetic: sleek dark tech, navy + cyan, circuit motifs
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@600;700;800&family=Manrope:wght@300;400;500;600;700&display=swap');

:root {
  --bg:        #081424;
  --bg-2:      #0b1f3a;
  --panel:     #0e2745;
  --panel-2:   #102d50;
  --line:      rgba(110, 180, 230, 0.14);
  --ink:       #eaf4ff;
  --muted:     #9fb6cf;
  --muted-2:   #6f8aa8;
  --cyan:      #34d1e0;
  --cyan-2:    #4fc3f7;
  --blue:      #5b8def;
  --grad:      linear-gradient(120deg, #5b8def 0%, #34d1e0 100%);
  --grad-soft: linear-gradient(120deg, rgba(91,141,239,.18), rgba(52,209,224,.18));
  --shadow:    0 24px 60px -20px rgba(0, 10, 30, .8);
  --radius:    18px;
  --maxw:      1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Manrope', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* atmospheric background layers */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 600px at 82% -5%, rgba(52,209,224,.16), transparent 60%),
    radial-gradient(800px 700px at 8% 0%, rgba(91,141,239,.18), transparent 55%),
    radial-gradient(1200px 900px at 50% 120%, rgba(16,45,80,.6), transparent 60%),
    var(--bg);
}
/* slow-drifting aurora — replaces the grid for depth without the template look */
.aurora { position: fixed; inset: -20vmax; z-index: -1; pointer-events: none; overflow: hidden; }
.aurora span { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; will-change: transform; }
.aurora .a1 { width: 46vmax; height: 46vmax; left: -6vmax; top: -8vmax;
  background: radial-gradient(circle, rgba(52,209,224,.30), transparent 65%); animation: drift1 28s ease-in-out infinite; }
.aurora .a2 { width: 40vmax; height: 40vmax; right: -8vmax; top: 4vmax;
  background: radial-gradient(circle, rgba(91,141,239,.30), transparent 65%); animation: drift2 34s ease-in-out infinite; }
@keyframes drift1 { 0%,100% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(6vmax,4vmax,0) scale(1.12); } }
@keyframes drift2 { 0%,100% { transform: translate3d(0,0,0) scale(1.05); } 50% { transform: translate3d(-5vmax,3vmax,0) scale(.92); } }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ---------- typography ---------- */
h1, h2, h3 { font-family: 'Syne', sans-serif; line-height: 1.06; letter-spacing: -.02em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .76rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--cyan); opacity: .7; }

.grad-text {
  background: var(--grad);
  background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 7s linear infinite;
}
@keyframes shimmer { to { background-position: 220% center; } }

/* ---------- nav ---------- */
header.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(8, 20, 36, .72);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand img { height: 38px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  font-size: .94rem; font-weight: 500; color: var(--muted);
  padding: 9px 16px; border-radius: 10px; transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--ink); background: rgba(255,255,255,.04); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: ""; display: block; height: 2px; margin-top: 5px; border-radius: 2px; background: var(--grad);
}
.nav-cta {
  margin-left: 10px;
  background: var(--grad); color: #04101f !important; font-weight: 700 !important;
  padding: 10px 20px !important; border-radius: 11px !important;
}
.nav-cta:hover { filter: brightness(1.08); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--ink);
  width: 44px; height: 40px; border-radius: 10px; font-size: 1.2rem; cursor: pointer; }

/* ---------- buttons ---------- */
.btn {
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  position: relative; isolation: isolate;
  font-family: 'Manrope'; font-weight: 700; font-size: .98rem;
  padding: 14px 26px; border-radius: 12px; border: 0;
  transition: filter .4s var(--ease), box-shadow .4s var(--ease), color .4s var(--ease);
  will-change: transform;
}
.btn-primary { background: var(--grad); color: #04101f; box-shadow: 0 12px 30px -12px rgba(52,209,224,.55); }
.btn-primary:hover { filter: brightness(1.08); box-shadow: 0 20px 48px -14px rgba(52,209,224,.7); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn .arr { transition: transform .4s var(--ease); }
.btn:hover .arr { transform: translateX(5px); }
/* magnetic wrapper keeps transforms isolated from CSS hover */
.magnetic { display: inline-flex; will-change: transform; }

/* ---------- sections ---------- */
section { position: relative; }
.section-pad { padding: 92px 0; }
.section-head { max-width: 680px; margin-bottom: 54px; }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
.section-head p { color: var(--muted); margin-top: 16px; font-size: 1.08rem; }

/* ---------- hero ---------- */
.hero { padding: 78px 0 96px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); font-weight: 800; }
.hero p.lead { color: var(--muted); font-size: 1.18rem; max-width: 520px; margin: 26px 0 36px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 34px; margin-top: 48px; }
.hero-stats .stat strong { font-family: 'Syne'; font-size: 1.7rem; display: block; }
.hero-stats .stat span { color: var(--muted-2); font-size: .82rem; letter-spacing: .04em; }

/* hero logo panel (rectangle) */
.hero-visual { position: relative; justify-self: center; width: 100%; max-width: 520px;
  border: 1px solid var(--line); border-radius: 24px; overflow: hidden;
  background: linear-gradient(165deg, var(--panel), var(--bg-2));
  box-shadow: var(--shadow); padding: clamp(36px, 6vw, 60px) clamp(28px, 5vw, 56px);
  display: grid; place-items: center; }
.hero-visual::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(460px 240px at 50% 0%, rgba(52,209,224,.16), transparent 62%); }
.hero-visual img { position: relative; z-index: 1; width: 100%; max-width: 380px; }

.portrait { position: relative; justify-self: center; }
.portrait .ring {
  position: relative; width: 360px; height: 360px; border-radius: 50%;
  padding: 5px; background: var(--grad);
  box-shadow: 0 30px 80px -20px rgba(52,209,224,.45);
}
.portrait .ring img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
  border: 5px solid var(--bg-2); position: relative; z-index: 1; }
.portrait .ring::before {
  content: ""; position: absolute; inset: -7px; border-radius: 50%; z-index: 0;
  background: conic-gradient(from 0deg, var(--cyan), var(--blue), var(--cyan), var(--blue), var(--cyan));
  filter: blur(7px); opacity: .55; animation: spin 9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.portrait .halo { position: absolute; inset: -40px; border-radius: 50%;
  background: radial-gradient(circle, rgba(52,209,224,.22), transparent 65%); z-index: -1; }
.chip {
  position: absolute; display: flex; align-items: center; gap: 9px;
  background: rgba(14,39,69,.92); border: 1px solid var(--line); backdrop-filter: blur(8px);
  padding: 11px 15px; border-radius: 13px; font-size: .85rem; font-weight: 600; box-shadow: var(--shadow);
}
.chip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.chip.c1 { top: 18px; left: -34px; animation: float 6s ease-in-out infinite; }
.chip.c2 { bottom: 40px; right: -42px; animation: float 6s ease-in-out infinite .8s; }
.chip.c3 { bottom: -10px; left: 30px; animation: float 7s ease-in-out infinite .4s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- cards ---------- */
.grid { display: grid; gap: 22px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card, .pub, .about-card, .panel, form.contact {
  --mx: 50%; --my: 50%;
}
.card {
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
  position: relative; overflow: hidden; will-change: transform;
  transition: border-color .4s cubic-bezier(0.16,1,0.3,1);
}
/* fluid glowing border that reveals toward the cursor */
.glow::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: radial-gradient(220px circle at var(--mx) var(--my),
              rgba(52,209,224,.85), rgba(91,141,239,.35) 40%, transparent 62%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .45s cubic-bezier(0.16,1,0.3,1); pointer-events: none; z-index: 2;
}
.glow::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 0;
  background: radial-gradient(300px circle at var(--mx) var(--my), rgba(52,209,224,.12), transparent 55%);
  opacity: 0; transition: opacity .45s cubic-bezier(0.16,1,0.3,1); pointer-events: none;
}
.glow:hover::before, .glow:hover::after { opacity: 1; }
.glow:hover { border-color: rgba(52,209,224,.32); }
.card .ico {
  width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid var(--line); margin-bottom: 20px; color: var(--cyan);
}
.card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .98rem; }
.card .num { font-family: 'Syne'; font-weight: 800; font-size: .9rem; color: var(--muted-2);
  position: absolute; top: 24px; right: 26px; }
.card > * , .panel > * { position: relative; z-index: 1; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.about-card { background: linear-gradient(180deg, var(--panel), var(--bg-2)); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 34px; }
.about-card .role { color: var(--cyan); font-weight: 600; margin-bottom: 22px; }
.about-text p { color: var(--muted); margin-bottom: 20px; font-size: 1.06rem; }
.about-text p strong { color: var(--ink); font-weight: 600; }
.about-portrait { margin: 0 0 26px; position: relative; max-width: 380px;
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--shadow); }
.about-portrait img { width: 100%; display: block; aspect-ratio: 1 / 1; object-fit: cover; }
.about-portrait figcaption { position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 18px 14px; font-size: .9rem; font-weight: 600; color: var(--ink);
  background: linear-gradient(transparent, rgba(6,16,30,.9)); }
.cred { display: flex; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.cred:first-of-type { border-top: 0; }
.cred .k { color: var(--cyan); font-weight: 700; font-family: 'Syne'; }
.tags { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 8px; }
.tag { font-size: .82rem; color: var(--muted); padding: 6px 13px; border: 1px solid var(--line);
  border-radius: 20px; background: rgba(255,255,255,.02); }

/* ---------- publications ---------- */
.pub { display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: center;
  background: linear-gradient(180deg, var(--panel), var(--bg-2)); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 32px; transition: border-color .25s, transform .25s; }
.pub:hover { border-color: rgba(52,209,224,.4); transform: translateY(-4px); }
.pub .badge { width: 64px; height: 64px; border-radius: 15px; display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid var(--line); color: var(--cyan); flex-shrink: 0; }
.pub .kind { font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--cyan); }
.pub h3 { font-size: 1.4rem; margin: 6px 0 8px; }
.pub p { color: var(--muted); font-size: .98rem; max-width: 60ch; }
.pub .go { color: var(--cyan); font-weight: 700; white-space: nowrap; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.contact-info h2 { font-size: clamp(2rem,4vw,2.9rem); }
.contact-info p { color: var(--muted); margin: 18px 0 30px; font-size: 1.08rem; }
.contact-list { display: grid; gap: 14px; }
.contact-list a, .contact-list div { display: flex; align-items: center; gap: 14px; color: var(--muted);
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 13px;
  background: rgba(255,255,255,.02); transition: border-color .2s, color .2s; }
.contact-list a:hover { border-color: var(--cyan); color: var(--ink); }
.contact-list .ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: var(--grad-soft); color: var(--cyan); flex-shrink: 0; }

form.contact { background: linear-gradient(180deg, var(--panel), var(--bg-2)); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 34px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%; background: rgba(4,12,24,.6); border: 1px solid var(--line); color: var(--ink);
  border-radius: 11px; padding: 13px 15px; font-family: 'Manrope'; font-size: .98rem; transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(52,209,224,.16); }
.field textarea { resize: vertical; min-height: 130px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size: .82rem; color: var(--muted-2); margin-top: 14px; }
.form-success { display: none; align-items: center; gap: 12px; color: var(--cyan); font-weight: 600;
  background: var(--grad-soft); border: 1px solid var(--line); padding: 14px 18px; border-radius: 12px; margin-top: 18px; }

/* ---------- cta banner ---------- */
.cta-banner { background: linear-gradient(120deg, var(--panel-2), var(--bg-2));
  border: 1px solid var(--line); border-radius: 26px; padding: 56px; text-align: center;
  position: relative; overflow: hidden; }
.cta-banner::before { content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 50% -30%, rgba(52,209,224,.22), transparent 60%); }
.cta-banner h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); position: relative; }
.cta-banner p { color: var(--muted); margin: 16px auto 30px; max-width: 540px; position: relative; }
.cta-banner .btn { position: relative; }

/* ---------- footer ---------- */
footer.site { border-top: 1px solid var(--line); margin-top: 40px; padding: 56px 0 36px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
footer img.logo { height: 42px; margin-bottom: 16px; }
footer p.about { color: var(--muted); max-width: 38ch; font-size: .95rem; }
footer h4 { font-family: 'Syne'; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted-2); margin-bottom: 16px; }
footer .fcol a { display: block; color: var(--muted); padding: 6px 0; font-size: .95rem; transition: color .2s; }
footer .fcol a:hover { color: var(--cyan); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: .86rem; }

/* ---------- LinkedIn / social button ---------- */
.btn-linkedin { position: relative; overflow: hidden; background: #0a66c2; color: #fff; }
.btn-linkedin:hover { transform: translateY(-2px); filter: brightness(1.1); }
.btn-linkedin svg { width: 18px; height: 18px; fill: currentColor; }
.btn-linkedin::after {
  content: ""; position: absolute; top: 0; left: -130%; width: 55%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.4), transparent);
  transform: skewX(-20deg); animation: sheen 4s ease-in-out infinite;
}
@keyframes sheen { 0%, 55% { left: -130%; } 100% { left: 170%; } }
.socials { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.social-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--muted); background: rgba(255,255,255,.02);
  transition: color .2s, border-color .2s, transform .2s; }
.social-ico svg { width: 19px; height: 19px; fill: currentColor; }
.social-ico:hover { color: var(--cyan); border-color: var(--cyan); transform: translateY(-3px); }

/* ============================================================
   MOTION LAYER — GSAP-driven (states set here, animated in app.js)
   ============================================================ */

/* Split-text: each word masked in an overflow-hidden wrapper */
.line-mask { display: inline-block; overflow: hidden; vertical-align: top;
  padding: .08em .03em .2em; margin: -.08em 0 -.2em; }
.line-mask .word { display: inline-block; will-change: transform; }
/* gradient/ink lives on a non-transformed inner span so WebKit paints background-clip:text */
.line-mask .ink { display: inline-block; }

/* Pre-hide animated elements only when JS is active (no flash, graceful no-JS) */
.has-js .hero .eyebrow,
.has-js .hero h1,
.has-js .hero .lead,
.has-js .hero-cta,
.has-js .hero-stats,
.has-js .hero-visual,
.has-js .section-head .eyebrow,
.has-js .section-head h2,
.has-js .section-head p,
.has-js .card,
.has-js .pub,
.has-js .about-card,
.has-js .about-text > *,
.has-js .cta-banner .eyebrow,
.has-js .cta-banner h2,
.has-js .cta-banner p,
.has-js .cta-banner .btn,
.has-js .contact-info .eyebrow,
.has-js .contact-info h2,
.has-js .contact-info p,
.has-js .contact-list,
.has-js .socials,
.has-js .showcase-head h2,
.has-js form.contact { opacity: 0; }

/* ============================================================
   HORIZONTAL SHOWCASE (core services scroll experience)
   ============================================================ */
.showcase { position: relative; background: linear-gradient(180deg, transparent, rgba(10,28,52,.35), transparent); }
.showcase-pin { min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
  gap: 30px; overflow: hidden; padding: 56px 0; }
.showcase-head { max-width: 820px; }
.showcase-head h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); }
.showcase-head p { color: var(--muted); margin-top: 14px; font-size: 1.06rem; }
.showcase-track { display: flex; gap: 26px; padding: 0 max(28px, 8vw); will-change: transform; }
.panel {
  flex: 0 0 min(76vw, 430px); min-height: min(54vh, 430px);
  display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(165deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line); border-radius: 22px; padding: 36px;
  position: relative; overflow: hidden; will-change: transform, filter;
  filter: brightness(.78) saturate(.85); transition: filter .1s linear;
}
.panel .panel-idx { font-family: 'Syne'; font-weight: 800; font-size: 3.4rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(110,180,230,.35); }
.panel .panel-ico { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid var(--line); color: var(--cyan); font-size: 1.3rem; margin-bottom: 18px; }
.panel h3 { font-size: 1.7rem; margin-bottom: 12px; }
.panel p { color: var(--muted); font-size: 1rem; }
.panel-body { margin-top: auto; }
.panel.is-center { filter: brightness(1.05) saturate(1.1); border-color: rgba(52,209,224,.4); }
.panel-end { align-items: flex-start; justify-content: center; gap: 22px;
  background: linear-gradient(150deg, var(--panel-2), var(--bg-2)); }
.panel-end h3 { font-size: 1.9rem; }
.showcase-progress { height: 3px; width: min(86%, 980px); margin: 8px auto 0;
  background: var(--line); border-radius: 3px; overflow: hidden; }
.showcase-progress span { display: block; height: 100%; width: 0%;
  background: var(--grad); border-radius: 3px; }
.showcase-hint { color: var(--muted-2); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase;
  display: flex; align-items: center; gap: 10px; margin-top: 4px; }

/* ---------- respect reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; }
  .has-js [style] , .has-js .hero h1, .has-js .card, .has-js .pub,
  .has-js .panel, .has-js .reveal { opacity: 1 !important; transform: none !important; }
  .panel { filter: none !important; }
}

/* ---------- responsive ---------- */
/* ---- tablet & below ---- */
@media (max-width: 900px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .portrait, .hero-visual { order: -1; }
  .hero-visual { max-width: 420px; padding: 30px 26px; }
  .cols-3, .cols-2 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 26px; }
  .pub { grid-template-columns: auto 1fr; }
  .pub .go { grid-column: 2; }
  .nav-links { position: fixed; inset: 76px 0 auto 0; flex-direction: column; gap: 0;
    background: rgba(8,20,36,.98); border-bottom: 1px solid var(--line); padding: 12px 24px 22px;
    display: none; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 6px; width: 100%; }
  .nav-cta { margin: 8px 0 0; text-align: center; }
  .menu-btn { display: block; }
  .two { grid-template-columns: 1fr; }
  .hero { padding: 30px 0 40px; }
  .hero-stats { flex-wrap: wrap; gap: 22px 30px; margin-top: 30px; }
  .section-pad { padding: 52px 0; }
  .section-head { margin-bottom: 30px; }
  .about-portrait { margin: 0 auto 24px; }
  .cta-banner { padding: 38px 26px; }
  /* horizontal showcase collapses to a lightweight vertical stack on mobile */
  .showcase-pin { min-height: auto; padding: 40px 0; gap: 22px; }
  .showcase-track { flex-direction: column; padding: 0 24px; gap: 16px; transform: none !important; }
  .panel { flex: 0 0 auto; width: 100%; min-height: auto; padding: 28px; filter: none !important; }
  .panel .panel-idx { font-size: 2.6rem; }
  .showcase-progress, .showcase-hint { display: none; }
}

/* ---- phones ---- */
@media (max-width: 620px) {
  .wrap { padding: 0 20px; }
  .eyebrow { margin-bottom: 14px; }
  .hero { padding: 22px 0 30px; }
  .hero h1 { font-size: 2.1rem; line-height: 1.1; }
  .hero p.lead { font-size: 1rem; margin: 18px 0 24px; }
  .hero-cta { gap: 10px; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero-visual { max-width: 340px; padding: 26px 22px; }
  .hero-visual img { max-width: 280px; }
  .hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; margin-top: 26px; }
  .hero-stats .stat strong { font-size: 1.35rem; }
  .section-pad { padding: 42px 0; }
  .section-head { margin-bottom: 24px; }
  .section-head h2 { font-size: 1.85rem; }
  .section-head p { font-size: 1rem; margin-top: 12px; }
  .showcase-head h2 { font-size: 1.85rem; }
  .showcase-track { padding: 0 20px; }
  .panel { padding: 24px; }
  .panel h3 { font-size: 1.35rem; }
  .panel .panel-ico { width: 48px; height: 48px; margin-bottom: 14px; }
  .card, .about-card, form.contact { padding: 24px; }
  .pub { padding: 22px; gap: 16px; }
  .pub h3 { font-size: 1.2rem; }
  .cta-banner { padding: 30px 22px; border-radius: 20px; }
  .cta-banner h2 { font-size: 1.6rem; }
  .contact-info h2 { font-size: 1.95rem; }
  .foot-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
}
