/* ============================================================
   Sylvenson Richard — Personal Portfolio
   Design: Dark executive theme (black / navy / red accent)
   Author: JRiSpace | Sylvenson Richard
   ============================================================ */

:root {
  --bg: #07080c;
  --bg-alt: #0c0e15;
  --surface: #11141d;
  --surface-2: #171b27;
  --border: #232838;
  --text: #eef0f6;
  --text-dim: #9aa1b5;
  --text-faint: #6b7288;
  --accent: #e63946;
  --accent-soft: rgba(230, 57, 70, 0.12);
  --navy: #1d3557;
  --navy-soft: rgba(29, 53, 87, 0.35);
  --grad: linear-gradient(135deg, #e63946 0%, #b02a37 100%);
  --radius: 16px;
  --font: 'Inter', -apple-system, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #fff; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background .3s, padding .3s, box-shadow .3s;
}
.navbar.scrolled {
  background: rgba(7, 8, 12, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 10px 0;
  box-shadow: 0 1px 0 var(--border);
}
.nav-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.nav-logo {
  width: 46px; height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
  box-shadow: 0 0 18px rgba(230, 57, 70, 0.35);
}
.nav-brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.nav-brand-name { font-weight: 800; font-size: 1.02rem; letter-spacing: .3px; }
.nav-brand-name .accent { color: var(--accent); }
.nav-brand-sub { font-size: .7rem; color: var(--text-dim); letter-spacing: 1.6px; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.nav-cta {
  border: 1px solid var(--accent);
  color: var(--accent) !important;
}
.nav-cta:hover { background: var(--accent) !important; color: #fff !important; }

.nav-right { display: flex; align-items: center; gap: 14px; }
.lang-switcher {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 3px;
}
.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-family: var(--font);
  font-size: .72rem;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: 7px;
  cursor: pointer;
  transition: all .2s;
}
.lang-btn:hover { color: var(--text); }
.lang-btn.active { background: var(--accent); color: #fff; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 2px;
  transition: .3s;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 130px 0 80px;
  overflow: hidden;
}
.hero-bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%);
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}
.hero-glow-red {
  width: 420px; height: 420px;
  background: rgba(230, 57, 70, 0.14);
  top: -80px; right: -60px;
}
.hero-glow-blue {
  width: 520px; height: 520px;
  background: rgba(29, 53, 87, 0.45);
  bottom: -180px; left: -140px;
}
.hero-container {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 60px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .5px;
  color: #7ee2a8;
  background: rgba(126, 226, 168, .08);
  border: 1px solid rgba(126, 226, 168, .25);
  padding: 7px 16px;
  border-radius: 100px;
  margin-bottom: 26px;
}
.hero-badge::before {
  content: '';
  width: 7px; height: 7px;
  background: #7ee2a8;
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(126,226,168,.5); }
  50% { box-shadow: 0 0 0 6px rgba(126,226,168,0); }
}

.hero-hello { display: block; font-size: 1.1rem; font-weight: 500; color: var(--text-dim); margin-bottom: 4px; }
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.5vw, 4.3rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.5px;
  margin-bottom: 18px;
}
.hero-typing {
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  font-weight: 700;
  color: var(--accent);
  min-height: 2.2em;
  margin-bottom: 20px;
}
.hero-typing .cursor { animation: blink 1s step-end infinite; font-weight: 300; }
@keyframes blink { 50% { opacity: 0; } }

.hero-desc {
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 540px;
  margin-bottom: 34px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 46px; }
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 12px;
  font-family: var(--font);
  font-size: .95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 28px rgba(230, 57, 70, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(230, 57, 70, 0.45); }
.btn-ghost {
  color: var(--text);
  border: 1px solid var(--border);
  background: rgba(255,255,255,.02);
}
.btn-ghost:hover { border-color: var(--text-dim); transform: translateY(-2px); }

.hero-stats { display: flex; gap: 44px; }
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-size: 1.9rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff 30%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label { font-size: .78rem; color: var(--text-faint); letter-spacing: .6px; text-transform: uppercase; }

/* Hero portrait */
.hero-visual { position: relative; display: flex; justify-content: center; }
.portrait-frame { position: relative; width: min(380px, 100%); }
.portrait-ring {
  position: absolute;
  inset: -14px;
  border-radius: 28px;
  background: conic-gradient(from 180deg, var(--accent), transparent 30%, var(--navy) 55%, transparent 80%, var(--accent));
  animation: spin 8s linear infinite;
  opacity: .8;
}
@keyframes spin { to { transform: rotate(360deg); } }
.portrait-img {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
  display: block;
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(17, 20, 29, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 16px;
  box-shadow: 0 14px 40px rgba(0,0,0,.5);
  animation: floaty 5s ease-in-out infinite;
}
.float-card strong { display: block; font-size: .82rem; }
.float-card span:last-child { font-size: .72rem; color: var(--text-dim); }
.float-icon { font-size: 1.3rem; }
.float-card-1 { top: 8%; left: -12%; animation-delay: 0s; }
.float-card-2 { bottom: 22%; right: -14%; animation-delay: 1.4s; }
.float-card-3 { bottom: -4%; left: 4%; animation-delay: 2.6s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.scroll-hint {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 44px;
  border: 2px solid var(--text-faint);
  border-radius: 14px;
  display: flex;
  justify-content: center;
}
.scroll-hint span {
  width: 4px; height: 9px;
  background: var(--accent);
  border-radius: 2px;
  margin-top: 7px;
  animation: scrollDot 1.8s infinite;
}
@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { opacity: 0; }
}

/* ===== SECTIONS ===== */
.section { padding: 110px 0; position: relative; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head { max-width: 720px; margin-bottom: 60px; }
.section-tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  padding-left: 34px;
  position: relative;
}
.section-tag::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 24px; height: 2px;
  background: var(--accent);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.4px;
}

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 60px;
  align-items: start;
}
.about-text p { color: var(--text-dim); margin-bottom: 20px; font-size: 1.02rem; }
.about-points { list-style: none; margin-top: 26px; display: grid; gap: 12px; }
.about-points li {
  padding-left: 30px;
  position: relative;
  color: var(--text);
  font-size: .95rem;
  font-weight: 500;
}
.about-points li::before {
  content: '✓';
  position: absolute;
  left: 0;
  width: 20px; height: 20px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 6px;
  font-size: .72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-cards { display: grid; gap: 18px; }
.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  display: flex;
  gap: 16px;
  align-items: center;
  transition: transform .25s, border-color .25s;
}
.info-card:hover { transform: translateX(6px); border-color: rgba(230,57,70,.4); }
.info-icon {
  font-size: 1.6rem;
  width: 52px; height: 52px;
  flex-shrink: 0;
  background: var(--surface-2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.info-card h4 { font-size: .98rem; margin-bottom: 2px; }
.info-card p { font-size: .82rem; color: var(--text-dim); }

/* ===== EXPERTISE ===== */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.exp-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 28px;
  overflow: hidden;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.exp-card:hover {
  transform: translateY(-8px);
  border-color: rgba(230,57,70,.45);
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
}
.exp-card-featured {
  background: linear-gradient(160deg, var(--surface) 0%, #1a1020 100%);
  border-color: rgba(230,57,70,.35);
}
.exp-num {
  position: absolute;
  top: 14px; right: 20px;
  font-family: var(--font-display);
  font-size: 4.4rem;
  font-weight: 800;
  color: rgba(255,255,255,.04);
  line-height: 1;
}
.exp-icon {
  width: 58px; height: 58px;
  background: var(--accent-soft);
  border: 1px solid rgba(230,57,70,.25);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 22px;
}
.exp-card h3 { font-size: 1.18rem; margin-bottom: 12px; letter-spacing: -.2px; }
.exp-card p { color: var(--text-dim); font-size: .92rem; margin-bottom: 22px; }
.exp-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.exp-tags span {
  font-size: .7rem;
  font-weight: 600;
  color: var(--text-dim);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  padding: 4px 11px;
  border-radius: 100px;
}

/* ===== SERVICES ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.srv-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform .25s, border-color .25s;
}
.srv-card:hover { transform: translateY(-6px); border-color: rgba(230,57,70,.4); }
.srv-icon { font-size: 1.9rem; display: block; margin-bottom: 16px; }
.srv-card h4 { font-size: 1.02rem; margin-bottom: 8px; }
.srv-card p { color: var(--text-dim); font-size: .88rem; }

/* ===== PROCESS ===== */
.process-line {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.process-line::before {
  content: '';
  position: absolute;
  top: 26px; left: 8%; right: 8%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--navy));
  opacity: .35;
}
.process-step { text-align: center; position: relative; }
.step-dot {
  width: 52px; height: 52px;
  margin: 0 auto 18px;
  background: var(--surface);
  border: 2px solid var(--accent);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 8px var(--bg-alt);
}
.process-step h4 { margin-bottom: 8px; font-size: 1.02rem; }
.process-step p { color: var(--text-dim); font-size: .86rem; max-width: 220px; margin: 0 auto; }

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 60px;
  align-items: start;
}
.contact-info p { color: var(--text-dim); font-size: 1.05rem; margin-bottom: 30px; }
.contact-lines { display: grid; gap: 12px; }
.contact-line {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-size: .95rem;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 14px 18px;
  border-radius: 12px;
  transition: border-color .2s, transform .2s;
}
.contact-line:hover { border-color: var(--accent); transform: translateX(4px); }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
  display: grid;
  gap: 16px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--text);
  font-family: var(--font);
  font-size: .92rem;
  transition: border-color .2s;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(230,57,70,.12);
}

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 36px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-logo {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}
.footer-brand strong { display: block; font-size: .95rem; }
.footer-brand span { font-size: .75rem; color: var(--text-dim); }
.footer-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.footer-meta span { font-size: .78rem; color: var(--text-faint); }
.footer-sig strong { color: var(--accent); }

/* ===== MOBILE DRAWER NAV ===== */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 5, 8, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s;
  z-index: 90;
}
.nav-overlay.show { opacity: 1; pointer-events: auto; }

.drawer-head { display: none; }
.drawer-foot { display: none; }

/* ===== BOTTOM NAV (mobile) ===== */
.bottom-nav { display: none; }

body.nav-locked { overflow: hidden; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-container { grid-template-columns: 1fr; gap: 54px; }
  .hero-visual { order: -1; }
  .portrait-frame { width: min(300px, 78%); }
  .float-card-1 { left: -4%; }
  .float-card-2 { right: -4%; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .expertise-grid, .services-grid { grid-template-columns: 1fr 1fr; }
  .process-line { grid-template-columns: 1fr 1fr; gap: 40px; }
  .process-line::before { display: none; }
  .hero-title { font-size: clamp(2.4rem, 6vw, 3.4rem); }
}

@media (max-width: 680px) {
  /* ---- Base ---- */
  html { -webkit-text-size-adjust: 100%; }
  body { -webkit-tap-highlight-color: transparent; }
  .container { padding: 0 20px; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 42px; }
  .section-title { font-size: clamp(1.5rem, 6.4vw, 2rem); }

  /* ---- Navbar ---- */
  .navbar { padding: 14px 0; }
  .navbar.scrolled { padding: 10px 0; }
  .nav-container { padding: 0 18px; }
  .nav-logo { width: 40px; height: 40px; }
  .nav-brand-sub { display: none; }
  .nav-brand-name { font-size: .95rem; }
  .nav-right .lang-switcher { display: none; }

  /* ---- Bottom tab bar ---- */
  body { padding-bottom: 62px; }
  .bottom-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 80;
    background: rgba(9, 11, 16, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    padding: 5px 6px calc(5px + env(safe-area-inset-bottom));
  }
  .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 7px 2px 6px;
    text-decoration: none;
    color: var(--text-faint);
    font-size: .6rem;
    font-weight: 600;
    letter-spacing: .2px;
    border-radius: 10px;
    transition: color .2s, transform .2s;
    -webkit-tap-highlight-color: transparent;
  }
  .bottom-nav-item svg {
    width: 22px; height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .2s;
  }
  .bottom-nav-item:active { transform: scale(.92); }
  .bottom-nav-item.active { color: var(--accent); }
  .bottom-nav-item.active svg { stroke-width: 2.1; filter: drop-shadow(0 0 8px rgba(230,57,70,.45)); }
  .bottom-nav-item.active::after {
    content: '';
    position: absolute;
    top: -1px;
    width: 26px; height: 2px;
    background: var(--accent);
    border-radius: 0 0 3px 3px;
  }
  .bottom-nav-item { position: relative; }

  .nav-toggle {
    display: block;
    z-index: 110;
    width: 44px;
    height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border-radius: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
  }
  .nav-toggle span {
    width: 20px;
    height: 2px;
    margin: 0;
    transition: transform .3s, opacity .3s;
  }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* ---- Drawer ---- */
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    width: min(320px, 86vw);
    height: 100vh;
    height: 100dvh;
    padding: calc(24px + env(safe-area-inset-top)) 28px calc(28px + env(safe-area-inset-bottom));
    background: rgba(10, 12, 18, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: flex-start;
    gap: 4px;
    transform: translateX(105%);
    transition: transform .38s cubic-bezier(.32,.72,.28,1);
    border-left: 1px solid var(--border);
    box-shadow: -30px 0 80px rgba(0,0,0,.5);
    overflow-y: auto;
  }
  .nav-links.open { transform: translateX(0); }

  .drawer-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 4px 22px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--border);
  }
  .drawer-logo {
    width: 46px; height: 46px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
  }
  .drawer-head-text { display: flex; flex-direction: column; line-height: 1.3; }
  .drawer-head-text strong { font-size: 1rem; }
  .drawer-head-text strong .accent { color: var(--accent); }
  .drawer-head-text span { font-size: .7rem; color: var(--text-dim); letter-spacing: 1px; text-transform: uppercase; }

  .nav-links li { opacity: 0; transform: translateX(24px); }
  .nav-links.open li { animation: drawerIn .45s cubic-bezier(.22,.9,.35,1) forwards; }
  .nav-links.open li:nth-child(2) { animation-delay: .06s; }
  .nav-links.open li:nth-child(3) { animation-delay: .11s; }
  .nav-links.open li:nth-child(4) { animation-delay: .16s; }
  .nav-links.open li:nth-child(5) { animation-delay: .21s; }
  .nav-links.open li:nth-child(6) { animation-delay: .26s; }
  .nav-links.open li:nth-child(7) { animation-delay: .34s; }
  @keyframes drawerIn {
    to { opacity: 1; transform: translateX(0); }
  }

  .nav-links a:not(.drawer-mail) {
    display: block;
    font-size: 1.22rem;
    font-weight: 600;
    color: var(--text);
    padding: 15px 14px;
    border-radius: 12px;
  }
  .nav-links a:not(.drawer-mail):active { background: rgba(255,255,255,.06); }
  .nav-cta {
    text-align: center;
    border: 1px solid var(--accent);
    margin-top: 10px;
  }

  .drawer-foot {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: auto;
    padding-top: 26px;
    border-top: 1px solid var(--border);
  }
  .lang-switcher-mobile {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 4px;
  }
  .lang-switcher-mobile .lang-btn {
    flex: 1;
    padding: 10px 0;
    font-size: .8rem;
  }
  .drawer-mail {
    display: block;
    text-align: center;
    font-size: .85rem;
    color: var(--text-dim);
    text-decoration: none;
    padding: 10px;
  }

  /* ---- Hero ---- */
  .hero { padding: 112px 0 70px; }
  .hero-container { gap: 40px; }
  .hero-badge { font-size: .72rem; padding: 6px 14px; margin-bottom: 20px; }
  .hero-title { font-size: clamp(2.15rem, 9.5vw, 2.9rem); margin-bottom: 14px; }
  .hero-hello { font-size: 1rem; }
  .hero-typing { font-size: 1.18rem; min-height: 2em; margin-bottom: 16px; }
  .hero-desc { font-size: .98rem; margin-bottom: 28px; }
  .hero-actions { flex-direction: column; gap: 12px; margin-bottom: 38px; }
  .hero-actions .btn { width: 100%; text-align: center; padding: 16px 30px; }
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 8px;
  }
  .stat { align-items: center; text-align: center; }
  .stat + .stat { border-left: 1px solid var(--border); }
  .stat-num { font-size: 1.5rem; }
  .stat-label { font-size: .62rem; letter-spacing: .4px; padding: 0 4px; }

  .portrait-frame { width: min(270px, 82%); }
  .float-card { padding: 8px 13px; gap: 8px; }
  .float-card strong { font-size: .74rem; }
  .float-card span:last-child { font-size: .66rem; }
  .float-icon { font-size: 1.05rem; }
  .float-card-1 { left: -3%; top: 5%; }
  .float-card-2 { right: -3%; bottom: 20%; }
  .float-card-3 { left: 2%; bottom: -4%; }
  .scroll-hint { display: none; }

  /* ---- About ---- */
  .about-text p { font-size: .97rem; }
  .about-cards { gap: 12px; }
  .info-card { padding: 16px 18px; gap: 13px; }
  .info-card:hover { transform: none; }
  .info-icon { width: 44px; height: 44px; font-size: 1.3rem; border-radius: 10px; }

  /* ---- Expertise / Services ---- */
  .expertise-grid, .services-grid { grid-template-columns: 1fr; gap: 16px; }
  .exp-card { padding: 26px 22px; }
  .exp-card:hover { transform: none; }
  .exp-num { font-size: 3.4rem; }
  .exp-icon { width: 50px; height: 50px; font-size: 1.4rem; margin-bottom: 16px; }
  .exp-card h3 { font-size: 1.1rem; }
  .exp-card p { font-size: .9rem; }
  .srv-card { padding: 24px 22px; }
  .srv-card:hover { transform: none; }

  /* ---- Process: vertical ---- */
  .process-line {
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 420px;
    margin: 0 auto;
    position: relative;
    padding-left: 30px;
  }
  .process-line::before {
    display: block;
    top: 26px; bottom: 26px; left: 25px; right: auto;
    width: 2px; height: auto;
    background: linear-gradient(180deg, var(--accent), var(--navy));
  }
  .process-step {
    display: grid;
    grid-template-columns: 52px 1fr;
    column-gap: 18px;
    text-align: left;
    padding-bottom: 34px;
  }
  .process-step:last-child { padding-bottom: 0; }
  .step-dot {
    grid-row: 1 / 3;
    margin: 0;
    width: 52px; height: 52px;
    box-shadow: 0 0 0 8px var(--bg-alt);
  }
  .process-step h4 { grid-column: 2; margin-bottom: 6px; }
  .process-step p { grid-column: 2; margin: 0; max-width: none; }

  /* ---- Contact ---- */
  .contact-info p { font-size: .98rem; margin-bottom: 22px; }
  .contact-line { padding: 13px 15px; font-size: .88rem; }
  .contact-line:hover { transform: none; }
  .contact-form { padding: 24px 20px; }
  .form-row { grid-template-columns: 1fr; gap: 14px; }
  .contact-form input, .contact-form textarea { font-size: 16px; padding: 14px; }
  .contact-form .btn { width: 100%; padding: 16px; }

  /* ---- Footer ---- */
  .footer { padding: 30px 0; }
  .footer-inner { flex-direction: column; text-align: center; gap: 18px; }
  .footer-brand { flex-direction: column; gap: 10px; }
  .footer-brand div { display: flex; flex-direction: column; gap: 3px; }
  .footer-meta { align-items: center; gap: 6px; }
}

@media (max-width: 380px) {
  .portrait-frame { width: 88%; }
  .float-card-1 { left: 0; }
  .float-card-2 { right: 0; }
  .hero-title { font-size: 2rem; }
  .stat-num { font-size: 1.3rem; }
  .stat-label { font-size: .56rem; }
}

/* ===== REVEAL ANIMATION ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
}
