/* ════════════════════════════════════════════════════════════
   COSOREANU SPORT ADVISORY — sport-tech consultancy
   Type: Newsreader (serif display) + Space Grotesk (sans / UI)
   Theme: dark (default) + light, toggled on <html data-theme>
   ════════════════════════════════════════════════════════════ */

/* ── THEME TOKENS ──────────────────────────────────────────── */
:root {
  --ff-display: 'Newsreader', Georgia, serif;
  --ff-sans:    'Space Grotesk', system-ui, sans-serif;

  --maxw: 1280px;
  --pad: clamp(1.4rem, 5vw, 6rem);

  --r-sm: 4px;
  --r-md: 10px;
  --r-lg: 18px;

  --ease: cubic-bezier(.16, 1, .3, 1);
}

html[data-theme="dark"] {
  --bg:        #0a0f1a;
  --bg-2:      #0c1322;
  --surface:   #111a2c;
  --surface-2: #16203468;
  --text:      #eef2f9;
  --text-mut:  #8b96ad;
  --text-dim:  #5d6880;
  --line:      rgba(255,255,255,.09);
  --line-2:    rgba(255,255,255,.045);
  --accent:    #4f8bff;
  --accent-h:  #6fa0ff;
  --accent-soft: rgba(79,139,255,.14);
  --accent-glow: rgba(79,139,255,.32);
  --chip-bg:   rgba(255,255,255,.04);
  --nav-bg:    rgba(10,15,26,.72);
  --shadow:    0 30px 70px -30px rgba(0,0,0,.75);
  --grid:      rgba(255,255,255,.022);
  --placeholder: repeating-linear-gradient(135deg, #131d31 0 12px, #0f1729 12px 24px);
  color-scheme: dark;
}

html[data-theme="light"] {
  --bg:        #eef1f6;
  --bg-2:      #f6f8fb;
  --surface:   #ffffff;
  --surface-2: #ffffffcc;
  --text:      #0a1322;
  --text-mut:  #54607a;
  --text-dim:  #8a93a8;
  --line:      rgba(10,19,34,.12);
  --line-2:    rgba(10,19,34,.06);
  --accent:    #2563eb;
  --accent-h:  #1d4ed8;
  --accent-soft: rgba(37,99,235,.10);
  --accent-glow: rgba(37,99,235,.22);
  --chip-bg:   rgba(10,19,34,.03);
  --nav-bg:    rgba(238,241,246,.78);
  --shadow:    0 30px 60px -34px rgba(20,40,80,.4);
  --grid:      rgba(10,19,34,.03);
  --placeholder: repeating-linear-gradient(135deg, #e7ebf2 0 12px, #dfe4ee 12px 24px);
  color-scheme: light;
}

/* ── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* smooth theme cross-fade on color-bearing props only */
body, nav, section, footer,
.surface, .card, .service-card, .blog-card, .project-item,
.chip, .btn, input, textarea, .stat, .cred-item, .lang-btn, .theme-btn {
  transition: background-color .5s var(--ease), border-color .5s var(--ease), color .4s var(--ease), box-shadow .5s var(--ease);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--accent); color: #fff; }

/* ── LANGUAGE TOGGLE VISIBILITY ────────────────────────────── */
.lang-en .ro { display: none; }
.lang-ro .en { display: none; }

/* ── SHARED LAYOUT ─────────────────────────────────────────── */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
section { padding-block: clamp(5rem, 11vh, 9rem); position: relative; }
section[id] { scroll-margin-top: 80px; }

.eyebrow {
  font-size: .7rem; font-weight: 500;
  letter-spacing: .26em; text-transform: uppercase;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: .7rem;
}
.eyebrow::before {
  content: ''; width: 26px; height: 1px; background: var(--accent);
  display: inline-block; opacity: .7;
}
h2 {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(2.1rem, 4.4vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -.015em;
  max-width: 20ch;
  margin-top: 1.1rem;
}
h2 em, h1 em { font-style: italic; color: var(--accent); }
.section-head { margin-bottom: clamp(2.6rem, 5vw, 4rem); }
.lead {
  color: var(--text-mut); font-size: 1.02rem; line-height: 1.7;
  max-width: 52ch; margin-top: 1.3rem;
}

/* ── SCROLL PROGRESS ───────────────────────────────────────── */
.progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-h));
  z-index: 200; transition: width .1s linear;
}

/* ── NAV ───────────────────────────────────────────────────── */
nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem var(--pad);
  background: transparent;
  border-bottom: 1px solid transparent;
}
nav.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom-color: var(--line);
  padding-block: .85rem;
}
.nav-logo {
  display: flex; align-items: baseline; gap: .5rem;
  font-family: var(--ff-display); font-size: 1.32rem; letter-spacing: -.01em;
}
.nav-logo b { font-weight: 500; }
.nav-logo .mark {
  font-family: var(--ff-sans); font-weight: 700; font-size: .72rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--accent);
  border: 1px solid var(--accent); border-radius: 3px;
  padding: .18rem .42rem; line-height: 1;
}
.nav-links {
  display: flex; gap: 2.1rem; list-style: none;
  font-size: .82rem; font-weight: 400; letter-spacing: .02em;
}
.nav-links a { color: var(--text-mut); position: relative; padding-block: .3rem; }
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--accent); transition: width .35s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.nav-right { display: flex; align-items: center; gap: .6rem; }
.lang-btn, .theme-btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--chip-bg); border: 1px solid var(--line);
  color: var(--text-mut); border-radius: var(--r-sm);
  height: 36px;
}
.lang-btn { width: auto; padding-inline: .8rem; font-size: .74rem; font-weight: 500; letter-spacing: .12em; gap: .35rem; }
.lang-btn .cur { color: var(--text); }
.theme-btn { width: 36px; }
.theme-btn svg { width: 16px; height: 16px; }
.lang-btn:hover, .theme-btn:hover { border-color: var(--accent); color: var(--accent); }
.theme-btn .ico-sun { display: none; }
html[data-theme="light"] .theme-btn .ico-sun { display: block; }
html[data-theme="light"] .theme-btn .ico-moon { display: none; }

.nav-cta {
  display: inline-flex; align-items: center; gap: .5rem;
  height: 36px; padding-inline: 1.05rem;
  background: var(--accent); color: #fff; font-size: .78rem; font-weight: 500;
  letter-spacing: .03em; border-radius: var(--r-sm);
  transition: background-color .25s, transform .25s;
}
.nav-cta:hover { background: var(--accent-h); transform: translateY(-1px); }

/* mobile menu button */
.nav-burger { display: none; width: 36px; height: 36px; border: 1px solid var(--line);
  background: var(--chip-bg); border-radius: var(--r-sm); color: var(--text);
  align-items: center; justify-content: center; }

/* ── HERO ──────────────────────────────────────────────────── */
#hero { padding-top: clamp(8rem, 17vh, 12rem); padding-bottom: 0; overflow: clip; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 78% 12%, var(--accent-glow), transparent 70%),
    linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 100% 64px,
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 64px 100%;
  -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent);
          mask-image: linear-gradient(180deg, #000 60%, transparent);
  animation: glowdrift 16s ease-in-out infinite alternate;
}
@keyframes glowdrift { from { background-position: 0 0, 0 0, 0 0; } to { background-position: 6% -3%, 0 0, 0 0; } }

.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.18fr .82fr;
  gap: clamp(2rem, 5vw, 5rem); align-items: center;
}
.hero-eyebrow { margin-bottom: 1.7rem; }
h1 {
  font-family: var(--ff-display); font-weight: 400;
  font-size: clamp(2.8rem, 6.4vw, 5.6rem);
  line-height: 1.02; letter-spacing: -.022em;
  max-width: 15ch;
}
.hero-sub { margin-top: 1.8rem; color: var(--text-mut); font-size: 1.08rem; line-height: 1.7; max-width: 44ch; }
.hero-cta { margin-top: 2.6rem; display: flex; gap: .9rem; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.7rem; font-size: .82rem; font-weight: 500;
  letter-spacing: .04em; border-radius: var(--r-sm);
  border: 1px solid transparent;
}
.btn .arr { transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-h); transform: translateY(-2px); box-shadow: 0 14px 30px -12px var(--accent-glow); }
.btn-ghost { border-color: var(--line); color: var(--text); background: var(--chip-bg); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* hero portrait placeholder */
.hero-visual { position: relative; }
.portrait {
  position: relative; aspect-ratio: 4/5; border-radius: var(--r-lg);
  border: 1px solid var(--line); overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; display: block; }
.portrait:not(.has-photo) {
  background:
    radial-gradient(120% 80% at 50% 0%, var(--accent-soft), transparent 60%),
    var(--placeholder);
}
.portrait:not(.has-photo)::after {
  content: 'fotografie profesională'; position: absolute; inset: auto 0 1.1rem 0;
  text-align: center; font-family: var(--ff-sans); font-size: .66rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--text-dim);
}
.portrait .frame-corner { position: absolute; width: 22px; height: 22px; border: 1px solid var(--accent); }
.frame-corner.tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.frame-corner.br { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }

.float-chip {
  position: absolute; display: flex; flex-direction: column; gap: .15rem;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: .75rem 1rem; box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}
.float-chip .k { font-family: var(--ff-display); font-size: 1.35rem; color: var(--accent); line-height: 1; }
.float-chip .v { font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-mut); }
.float-chip.one { top: 12%; left: -8%; animation: floaty 6s ease-in-out infinite; }
.float-chip.two { bottom: 16%; right: -10%; animation: floaty 6s ease-in-out infinite .8s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* hero stats */
.hero-stats {
  position: relative; z-index: 1;
  margin-top: clamp(3.5rem, 7vh, 6rem); padding-top: 2.4rem;
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
}
.stat .stat-val { font-family: var(--ff-display); font-size: clamp(2.2rem, 3.6vw, 3rem); font-weight: 500; color: var(--text); line-height: 1; }
.stat .stat-val em { font-style: normal; color: var(--accent); }
.stat .stat-label { margin-top: .55rem; font-size: .74rem; letter-spacing: .06em; color: var(--text-mut); text-transform: uppercase; }

/* ── MARQUEE STRIP ─────────────────────────────────────────── */
.strip { border-block: 1px solid var(--line); background: var(--bg-2); overflow: hidden; padding-block: 1.1rem; }
.marquee { display: flex; gap: 3.5rem; white-space: nowrap; width: max-content; animation: marquee 28s linear infinite; }
.strip:hover .marquee { animation-play-state: paused; }
.marquee span { font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-mut); display: inline-flex; align-items: center; gap: 3.5rem; }
.marquee span::after { content: '◆'; color: var(--accent); font-size: .5rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── ABOUT ─────────────────────────────────────────────────── */
#about { background: var(--bg-2); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.about-text p { color: var(--text-mut); margin-bottom: 1.2rem; font-size: 1rem; line-height: 1.78; }
.about-text p strong { color: var(--text); font-weight: 500; }
.about-text .role-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.8rem; }
.role-tags .chip {
  font-size: .74rem; letter-spacing: .04em; padding: .42rem .85rem;
  border: 1px solid var(--line); border-radius: 100px; color: var(--text-mut);
  background: var(--chip-bg);
}
.credentials { display: flex; flex-direction: column; }
.cred-item {
  display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: start;
  padding: 1.25rem 0; border-bottom: 1px solid var(--line-2);
}
.cred-item:first-child { padding-top: 0; }
.cred-num { font-family: var(--ff-sans); font-size: .72rem; color: var(--text-dim); padding-top: .25rem; letter-spacing: .1em; }
.cred-title { font-size: .96rem; color: var(--text); font-weight: 400; line-height: 1.35; }
.cred-sub { font-size: .8rem; color: var(--text-mut); margin-top: .25rem; }

/* ── SERVICES ──────────────────────────────────────────────── */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.service-card {
  position: relative; padding: clamp(1.8rem, 3vw, 2.6rem) clamp(1.6rem, 2.4vw, 2.2rem);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; inset: 0; background: var(--accent-soft);
  opacity: 0; transition: opacity .35s var(--ease);
}
.service-card::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--accent); transition: width .4s var(--ease);
}
.service-card:hover::before { opacity: 1; }
.service-card:hover::after { width: 100%; }
.service-card > * { position: relative; z-index: 1; }
.service-num {
  font-family: var(--ff-display); font-size: 1rem; color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%;
  margin-bottom: 1.5rem; transition: border-color .3s, background-color .3s, color .3s;
}
.service-card:hover .service-num { border-color: var(--accent); background: var(--accent); color: #fff; }
.service-title { font-size: 1.12rem; font-weight: 500; margin-bottom: .65rem; letter-spacing: -.005em; }
.service-desc { font-size: .9rem; color: var(--text-mut); line-height: 1.65; }

/* ── PROJECTS ──────────────────────────────────────────────── */
#projects { background: var(--bg-2); }
.projects-list { border-top: 1px solid var(--line); }
.project-item {
  display: grid; grid-template-columns: 56px 1fr 1.6fr auto;
  gap: 1.6rem; align-items: center;
  padding: 1.7rem .4rem; border-bottom: 1px solid var(--line);
  position: relative;
}
.project-item::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--accent); transform: scaleY(0); transform-origin: bottom;
  transition: transform .35s var(--ease);
}
.project-item:hover::before { transform: scaleY(1); transform-origin: top; }
.project-item:hover { padding-left: 1.4rem; }
.proj-idx { font-family: var(--ff-display); font-size: 1.1rem; color: var(--text-dim); }
.proj-tag { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.proj-title { font-size: 1.1rem; font-weight: 400; }
.proj-sub { font-size: .82rem; color: var(--text-mut); margin-top: .25rem; }
.proj-arrow {
  width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: var(--text-mut);
  transition: all .3s var(--ease); flex-shrink: 0;
}
.project-item:hover .proj-arrow { border-color: var(--accent); background: var(--accent); color: #fff; transform: rotate(-45deg); }

/* ── BLOG ──────────────────────────────────────────────────── */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.blog-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 1.9rem 1.7rem; background: var(--surface-2);
}
.blog-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: var(--shadow); }
.blog-top { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.4rem; }
.blog-badge {
  font-size: .62rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); border: 1px solid var(--accent); border-radius: 100px;
  padding: .22rem .6rem;
}
.blog-read { font-size: .72rem; color: var(--text-dim); }
.blog-title { font-family: var(--ff-display); font-size: 1.35rem; font-weight: 400; line-height: 1.22; margin-bottom: .8rem; }
.blog-excerpt { font-size: .88rem; color: var(--text-mut); line-height: 1.6; flex: 1; }
.blog-link { margin-top: 1.5rem; display: inline-flex; align-items: center; gap: .5rem; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text); }
.blog-link .arr { color: var(--accent); transition: transform .3s var(--ease); }
.blog-card:hover .blog-link .arr { transform: translateX(5px); }

/* ── CONTACT ───────────────────────────────────────────────── */
#contact { background: var(--bg-2); }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.contact-info .lead { margin-top: 0; }
.contact-detail { display: flex; flex-direction: column; gap: .3rem; margin-top: 2.4rem; }
.contact-row {
  display: flex; align-items: center; gap: 1.1rem; padding: 1.05rem 0;
  border-bottom: 1px solid var(--line-2);
}
.contact-row .ic {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); color: var(--accent);
}
.contact-row .ic svg { width: 17px; height: 17px; }
.contact-row .c-k { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); }
.contact-row .c-v { font-size: .96rem; color: var(--text); }
.contact-row a:hover { color: var(--accent); }

.contact-form { display: flex; flex-direction: column; gap: 1.1rem; padding: clamp(1.6rem,3vw,2.4rem); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.form-field { display: flex; flex-direction: column; gap: .45rem; }
.form-field label { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-mut); }
.form-field input, .form-field textarea {
  background: var(--bg); border: 1px solid var(--line); color: var(--text);
  font-family: var(--ff-sans); font-size: .94rem; font-weight: 400;
  padding: .8rem 1rem; border-radius: var(--r-sm); outline: none;
  transition: border-color .25s, box-shadow .25s;
}
.form-field input:focus, .form-field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form-field textarea { min-height: 130px; resize: vertical; }
.contact-form .btn-primary { justify-content: center; margin-top: .3rem; }

/* ── FOOTER ────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--line); }
.footer-inner {
  padding-block: 2.6rem; display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 1.2rem;
}
.footer-copy { font-size: .78rem; color: var(--text-mut); }
.footer-social { display: flex; gap: 1.6rem; }
.footer-social a { font-size: .78rem; color: var(--text-mut); position: relative; }
.footer-social a:hover { color: var(--accent); }

/* ── SCROLL REVEAL ─────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ── MOBILE MENU ───────────────────────────────────────────── */
.nav-burger .ico-x { display: none; }
.nav-burger.open .ico-bars { display: none; }
.nav-burger.open .ico-x { display: block; }
.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: var(--bg);
  display: flex; flex-direction: column; justify-content: center;
  gap: .2rem; padding: 6rem var(--pad) var(--pad);
  transform: translateY(-12px); opacity: 0; pointer-events: none;
  transition: opacity .35s var(--ease), transform .45s var(--ease);
}
.mobile-menu.open { opacity: 1; transform: none; pointer-events: auto; }
.mobile-menu a {
  font-family: var(--ff-display); font-size: clamp(1.8rem, 8vw, 2.4rem);
  color: var(--text); padding: .75rem 0; border-bottom: 1px solid var(--line-2);
}
.mobile-menu a:active { color: var(--accent); }
.mobile-menu .mm-cta {
  margin-top: 1.6rem; border: none; background: var(--accent); color: #fff;
  font-family: var(--ff-sans); font-size: 1rem; font-weight: 500;
  text-align: center; padding: 1rem; border-radius: var(--r-sm);
}
html.menu-open, body.menu-open { overflow: hidden; }

/* ── RESPONSIVE ────────────────────────────────────────────── */
/* tablet / small laptop */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 320px; margin: .5rem auto 0; }
  .float-chip.one { left: -4%; }
  .float-chip.two { right: -4%; }
  .about-grid, .contact-inner { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
}

/* large phone / portrait tablet */
@media (max-width: 720px) {
  :root { --pad: 1.3rem; }
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  #hero { padding-top: 7rem; }
  h1 { max-width: 18ch; }
  .hero-sub { font-size: 1.04rem; max-width: none; }
  .hero-cta { gap: .7rem; }
  .btn { padding: .9rem 1.4rem; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 1.6rem 1rem; margin-top: 3rem; }
  .services-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .project-item { grid-template-columns: 30px 1fr auto; gap: 1rem; }
  .project-item .proj-tag { display: none; }
  .project-item:hover { padding-left: .8rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* small phone */
@media (max-width: 420px) {
  body { font-size: 15.5px; }
  .nav-logo { font-size: 1.15rem; }
  .nav-logo .mark { font-size: .62rem; padding: .16rem .34rem; }
  .hero-stats { gap: 1.4rem .8rem; }
  .stat .stat-val { font-size: 2rem; }
  .float-chip { padding: .6rem .8rem; }
  .float-chip .k { font-size: 1.15rem; }
  .float-chip.one { left: 0; top: 8%; }
  .float-chip.two { right: 0; bottom: 12%; }
  .hero-cta .btn { flex: 1; justify-content: center; }
  .contact-form { padding: 1.3rem; }
}

/* very small phone — stack hero CTA */
@media (max-width: 340px) {
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
  .reveal { transition: opacity .4s ease; transform: none; }
  html { scroll-behavior: auto; }
}
