/* ═══════════════════════════════════════════════
   CASTRO RESTORAN — style.css
═══════════════════════════════════════════════ */

/* ─── Tokens ─── */
:root {
  --primary:    #2EC4B6;
  --accent:     #E63946;
  --bg:         #F8F9FA;
  --hover:      #FFD166;
  --dark:       #111111;
  --text:       #333333;
  --text-light: #888888;
  --white:      #ffffff;

  --font-head: 'Anton', sans-serif;
  --font-body: 'Poppins', sans-serif;

  --radius: 12px;
  --radius-sm: 6px;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --nav-h: 72px;
  --section-pad: clamp(72px, 10vw, 120px);
  --container: 1200px;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Remove focus outline on hash-link targets (sections) */
section:focus, section:focus-visible { outline: none; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, select, textarea { font: inherit; }

/* ─── Utility ─── */
.container {
  width: min(var(--container), 100% - 40px);
  margin-inline: auto;
}

.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
}

.section-label--light { color: var(--hover); }

.section-title {
  font-family: var(--font-head);
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: var(--dark);
}

.section-title--light { color: var(--white); }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 60px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s, color 0.2s;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(230, 57, 70, 0.3);
}

.btn--primary:hover {
  background: #c62f3c;
  box-shadow: 0 8px 30px rgba(230, 57, 70, 0.4);
}

.btn--ghost {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.5);
  backdrop-filter: blur(8px);
}

.btn--ghost:hover {
  background: rgba(255,255,255,0.2);
  border-color: var(--white);
}

.btn--outline {
  background: transparent;
  color: var(--dark);
  border: 1.5px solid var(--dark);
}

.btn--outline:hover {
  background: var(--dark);
  color: var(--white);
}

.btn--full { width: 100%; justify-content: center; }

/* ─── Scroll animations ─── */
.reveal-up,
.reveal-right {
  opacity: 0;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal-up { transform: translateY(40px); }
.reveal-right { transform: translateX(50px); }

.reveal-up.visible,
.reveal-right.visible {
  opacity: 1;
  transform: none;
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* ═══════════════════════════════════════════════
   NAV
═══════════════════════════════════════════════ */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--nav-h);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), backdrop-filter 0.4s;
}

.nav.scrolled {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: min(var(--container), 100% - 40px);
  margin-inline: auto;
}

.nav__logo img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  opacity: 0;
  transition: opacity 0.4s var(--ease), box-shadow 0.2s;
}

.nav:hover .nav__logo img,
.nav.scrolled .nav__logo img {
  opacity: 1;
}

.nav__logo:hover img { opacity: 1; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__link {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  border-radius: 60px;
  transition: color 0.2s, background 0.2s;
}

.nav.scrolled .nav__link { color: var(--dark); }

.nav__link:hover { background: rgba(255,255,255,0.12); }
.nav.scrolled .nav__link:hover { background: var(--bg); color: var(--primary); }

.nav__link--order {
  color: var(--white);
  font-weight: 600;
  border: 1.5px solid rgba(255,255,255,0.4);
  border-radius: 60px;
  transition: background 0.2s, color 0.2s, border-color 0.2s !important;
}

.nav.scrolled .nav__link--order {
  color: var(--accent);
  border-color: rgba(230,57,70,0.3);
}

.nav__link--order:hover,
.nav.scrolled .nav__link--order:hover {
  background: var(--accent) !important;
  color: var(--white) !important;
  border-color: var(--accent) !important;
}

.nav__link--cta {
  background: var(--accent);
  color: var(--white) !important;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
}

.nav__link--cta:hover {
  background: #c62f3c !important;
  transform: translateY(-1px);
}

/* Burger */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s, background 0.3s;
}

.nav.scrolled .nav__burger span { background: var(--dark); }

.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════ */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  will-change: transform;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.05);
  animation: heroZoom 8s var(--ease) forwards;
}

@keyframes heroZoom {
  to { transform: scale(1); }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.45) 0%,
    rgba(0,0,0,0.2) 50%,
    rgba(0,0,0,0.6) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(var(--container), 100% - 40px);
  margin-inline: auto;
  padding-top: var(--nav-h);
}

.hero__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--hover);
  margin-bottom: 20px;
}

.hero__headline {
  font-family: var(--font-head);
  font-size: clamp(52px, 9vw, 120px);
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--white);
  margin-bottom: 20px;
}

.hero__sub {
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(255,255,255,0.82);
  font-weight: 300;
  margin-bottom: 40px;
  max-width: 460px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero elements use CSS animation directly — no transition/observer needed */
.hero .reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: none;
  animation: fadeUp 0.8s var(--ease) forwards;
}

/* Non-hero .reveal-up use transition + JS observer */
:not(.hero) > .reveal-up,
.reveal-up:not(.hero *) {
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.hero .delay-1 { animation-delay: 0.3s; }
.hero .delay-2 { animation-delay: 0.5s; }
.hero .delay-3 { animation-delay: 0.7s; }

@keyframes fadeUp {
  to { opacity: 1; transform: none; }
}

/* Hero scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-dot {
  width: 28px;
  height: 44px;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 14px;
  position: relative;
}

.scroll-dot::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--white);
  border-radius: 2px;
  animation: scrollBounce 1.8s infinite;
}

@keyframes scrollBounce {
  0%, 100% { top: 6px; opacity: 1; }
  80% { top: 22px; opacity: 0; }
}

/* ═══════════════════════════════════════════════
   ABOUT
═══════════════════════════════════════════════ */
.about {
  padding-block: var(--section-pad);
  background: var(--white);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about__desc {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  margin-block: 24px 36px;
  max-width: 480px;
}

.about__visual {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  overflow: hidden;
}

.about__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease);
}

.about__visual:hover .about__photo {
  transform: scale(1.04);
}

.badge-text {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
}

/* ═══════════════════════════════════════════════
   FEATURES
═══════════════════════════════════════════════ */
.features {
  padding-block: var(--section-pad);
  background: var(--bg);
}

.features__header {
  text-align: center;
  margin-bottom: 64px;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 32px;
  border: 1px solid rgba(0,0,0,0.05);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
  border-color: var(--primary);
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  color: var(--primary);
  margin-bottom: 24px;
}

.feature-card__title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 20px;
  color: var(--dark);
  margin-bottom: 12px;
}

.feature-card__desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-light);
}

/* ═══════════════════════════════════════════════
   MENU SECTION
═══════════════════════════════════════════════ */
.menu-section {
  position: relative;
  padding-block: var(--section-pad);
  overflow: hidden;
}

.menu-section__bg {
  position: absolute;
  inset: 0;
  background: var(--dark);
  z-index: 0;
}

.menu-section__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(46, 196, 182, 0.15) 0%, transparent 70%);
}

.menu-section .container {
  position: relative;
  z-index: 1;
}

.menu-section__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
}

.menu-section__inner .section-label { margin-bottom: 16px; }
.menu-section__inner .section-title { margin-bottom: 20px; }

.menu-section__sub {
  font-size: 17px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 40px;
  max-width: 420px;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════
   STATS
═══════════════════════════════════════════════ */
.stats {
  padding-block: 72px;
  background: var(--white);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}

.stat { display: flex; flex-direction: column; align-items: center; }

.stat__num, .stat__suffix {
  font-family: var(--font-head);
  font-size: clamp(48px, 6vw, 80px);
  line-height: 1;
  color: var(--accent);
  display: inline;
}

.stat__num { transition: none; }

.stat__label {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-light);
  letter-spacing: 0.04em;
}

/* ═══════════════════════════════════════════════
   RESERVATION
═══════════════════════════════════════════════ */
.reservation {
  padding-block: var(--section-pad);
  background: var(--bg);
}

.reservation__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.reservation__sub {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-light);
  margin-block: 20px 36px;
}

.reservation__contact {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 500;
  color: var(--dark);
  transition: color 0.2s;
}

.contact-item svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
  flex-shrink: 0;
}

.contact-item:hover { color: var(--primary); }

/* Form */
.reservation__form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: 0 4px 40px rgba(0,0,0,0.06);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  letter-spacing: 0.02em;
}

.form-group label span {
  font-weight: 400;
  color: var(--text-light);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1.5px solid rgba(0,0,0,0.1);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--dark);
  background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(46, 196, 182, 0.15);
}

.form-group input.error,
.form-group select.error {
  border-color: var(--accent);
}

.form-group textarea { resize: vertical; min-height: 90px; }

.form-note {
  text-align: center;
  font-size: 13px;
  color: var(--text-light);
  margin-top: 16px;
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.75);
  padding-top: 72px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer__brand img {
  margin-bottom: 16px;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.footer__brand p { font-size: 14px; line-height: 1.6; }

.footer__col h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}

.footer__col ul { display: flex; flex-direction: column; gap: 10px; }

.footer__col a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}

.footer__col a:hover { color: var(--primary); }

.footer__hours li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
}

.footer__bottom {
  padding-block: 24px;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.3);
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — TABLET (≤ 1024px)
═══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .about__grid { gap: 48px; }
  .reservation__inner { gap: 48px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — MOBILE (≤ 768px)
═══════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* ── Nav ── */
  .nav__burger { display: flex; }

  /* Dark bar when menu is open */
  .nav:has(.nav__burger.open) {
    background: #111111 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* Logo always visible on mobile */
  .nav__logo img { opacity: 1 !important; }

  /* Full-screen overlay
     position: absolute (ne fixed!) — backdrop-filter na .nav
     pravi containing block za fixed descendante na iOS Safari */
  .nav__links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    height: calc(100vh - var(--nav-h));
    height: calc(100svh - var(--nav-h));
    background: #111111;
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 32px 24px;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav__links.open { transform: translateX(0); }

  /* Individual links */
  .nav__link {
    display: block;
    font-size: 18px;
    font-weight: 500;
    color: rgba(255,255,255,0.8) !important;
    padding: 14px 32px;
    width: 100%;
    max-width: 300px;
    text-align: center;
    border-radius: 60px;
    border: 1.5px solid rgba(255,255,255,0.15) !important;
    transition: background 0.2s, color 0.2s;
  }
  .nav__link:hover,
  .nav__link:active { background: rgba(255,255,255,0.08); color: var(--white) !important; }

  .nav__link--order {
    border: 1.5px solid rgba(255,255,255,0.25) !important;
    border-radius: 60px !important;
    color: var(--white) !important;
  }
  .nav__link--cta {
    background: var(--accent) !important;
    color: var(--white) !important;
    border-radius: 60px;
    border: none !important;
  }
  /* Targetiramo <li> direktno — margin na <a> ne utiče na flex spacing */
  .nav__links li:nth-child(3) { margin-top: 0; }
  .nav__links li:nth-child(4) { margin-top: 0; }
  .nav__link:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
  .nav__link:focus:not(:focus-visible) { outline: none; }

  /* ── Hero ── */
  .hero__headline { font-size: clamp(40px, 11vw, 64px); }
  .hero__actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero__actions .btn { width: 100%; justify-content: center; }

  /* ── About ── */
  .about__grid { grid-template-columns: 1fr; gap: 32px; }
  .about__visual { aspect-ratio: 4/3; order: -1; }

  /* ── Features ── */
  .features__grid { grid-template-columns: 1fr; gap: 16px; }
  .feature-card { padding: 28px 24px; }

  /* ── Stats ── */
  .stats__grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .stat__num, .stat__suffix { font-size: clamp(32px, 8vw, 56px); }

  /* ── Reservation ── */
  .reservation__inner { grid-template-columns: 1fr; gap: 40px; }
  .reservation__form { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; }

  /* ── Footer ── */
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — SMALL MOBILE (≤ 480px)
═══════════════════════════════════════════════ */
@media (max-width: 480px) {
  :root { --section-pad: 60px; }
  .hero__headline { font-size: 40px; }
  .section-title { font-size: 30px; }
  .btn { padding: 13px 24px; font-size: 14px; }
  .reservation__form { padding: 24px 16px; }
  .footer__grid { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ═══════════════════════════════════════════════
   STORY — 2-panel scrollytelling
═══════════════════════════════════════════════ */
.story { position: relative; }

.story__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  contain: paint;
}

.story__spacer { height: 200vh; }

.story__panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s var(--ease);
  pointer-events: none;
}
.story__panel.active {
  opacity: 1;
  pointer-events: auto;
}

.story__bg {
  width: 100%;
  height: 115%;
  object-fit: cover;
  display: block;
  will-change: transform;
}

.story__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.72) 0%,
    rgba(0,0,0,0.28) 60%,
    transparent 100%
  );
}

.story__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 clamp(24px, 8vw, 120px);
  max-width: 680px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s var(--ease) 0.2s, transform 0.55s var(--ease) 0.2s;
}
.story__panel.active .story__content {
  opacity: 1;
  transform: translateY(0);
}

.story__label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
}

.story__title {
  font-family: var(--font-head);
  font-size: clamp(52px, 7vw, 96px);
  line-height: 1;
  color: var(--white);
  margin-bottom: 20px;
}

.story__sub {
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(255,255,255,0.75);
  max-width: 420px;
}

.story__cta { margin-top: 36px; width: fit-content; }

.story__dots {
  position: absolute;
  right: clamp(20px, 4vw, 48px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 10;
}
.story__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, transform 0.3s;
}
.story__dot.active {
  background: var(--primary);
  transform: scale(1.4);
}

.story__bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255,255,255,0.15);
  z-index: 10;
}
.story__bar-fill {
  height: 100%;
  background: var(--primary);
  width: 0%;
  transition: width 0.08s linear;
}

@media (max-width: 768px) {
  .story__overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 55%, transparent 100%);
  }
  .story__content {
    justify-content: flex-end;
    padding: 0 24px 72px;
    max-width: 100%;
  }
  .story__dots { right: 16px; }
}

/* ─── Mobile performance ─── */
@media (max-width: 768px) {
  /* Kill heroZoom on mobile — GPU layer not worth it */
  .hero__bg img {
    animation: none;
    transform: none !important;
  }
  /* No parallax wrapper transform on mobile */
  .hero__bg { will-change: auto; }

  /* Disable hover card lift on touch */
  .feature-card:hover {
    transform: none;
    box-shadow: none;
    border-color: rgba(0,0,0,0.05);
  }

  /* Story: no parallax → static height image */
  .story__bg { will-change: auto; }
}

/* Disable hover effects on touch devices */
@media (hover: none) {
  .btn:hover { transform: none; }
  .about__visual:hover .about__photo { transform: none; }
  .feature-card:hover { transform: none; box-shadow: none; border-color: rgba(0,0,0,0.05); }
}

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
