/* ==========================================================================
   E-Space Coffee & Craft Beer — Home page (static demo)
   Layout mirrors gordonsnewyorkpizza.vn; colours/type follow the E-Space
   brand guidelines (Dec 2024).
   ========================================================================== */

/* ---------- Brand tokens ---------- */
:root {
  --midnight: #1D1D1D;
  --latte:    #C0AD8D;
  --linen:    #F7F3EB;
  --sand:     #D7C9B9;
  --olive:    #776F4F;
  --earth:    #A16D47;
  --white:    #FFFFFF;

  /* Role colours (--bg, --text, --primary, --accent, --inverse-*, …) live in
     css/theme.css; the base and midnight projects differ only in that file */

  --font-head: "Poppins", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-body: "Poppins", "Segoe UI", Helvetica, Arial, sans-serif;

  --container: 1140px;
  --container-wide: 1300px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .3s; }
a:hover { color: var(--accent-text); }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 14px; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--primary);
  margin: 0;
  line-height: 1.1;
}
h2 { font-size: 52px; text-transform: uppercase; letter-spacing: -2px; line-height: 1em; }
h6 { font-size: 15px; text-transform: uppercase; letter-spacing: -0.2px; }
.skip-link { position: absolute; left: -9999px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container--wide { max-width: var(--container-wide); }
.text-center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Buttons (reference kit: 14px/500 uppercase, 1px border, 12px 22px) ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0;
  line-height: 1.2;
  color: var(--primary);
  background: transparent;
  border: 1px solid var(--primary);
  border-radius: 0;
  padding: 12px 22px;
  cursor: pointer;
  transition: background-color .3s, color .3s, border-color .3s;
}
.btn:hover, .btn:focus-visible { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.btn--accent { color: var(--accent-text); border-color: var(--accent-text); }
.btn--accent:hover, .btn--accent:focus-visible { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn--sm { font-size: 11px; padding: 7px 14px; }
.btn--light { color: var(--inverse-text); border-color: var(--inverse-text); }
.btn--light:hover { background: var(--inverse-text); color: var(--inverse-bg); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
  padding: 15px 40px;                       /* reference header is full width, ~30-50px from the edges */
  transition: box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: 0 4px 18px rgba(29, 29, 29, .08); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-left, .header-right { flex: 1 1 0; display: flex; align-items: center; }
.header-right { justify-content: flex-end; gap: 5px; }
.header-center { flex: 0 0 auto; }

.main-nav ul { display: flex; align-items: center; }
.main-nav a {
  display: block;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0;
  color: color-mix(in srgb, var(--text) 50%, transparent);
  padding: 0 20px 0 0;
  line-height: 60px;
}
.main-nav a:hover, .main-nav .is-active > a { color: var(--text); }
.main-nav__close { display: none; }

/* Brand lock-up (vertical primary logo, small use) */
.brand { display: inline-flex; flex-direction: column; align-items: center; gap: 1px; color: var(--logo); }
.brand:hover { color: var(--logo); }
.brand__mark { width: 46px; height: 46px; }
.brand__word {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -1px;
  line-height: 1;
  text-transform: lowercase;
}
.brand__word .dot { display: inline-block; width: .18em; height: .18em; background: currentColor; border-radius: 50%; vertical-align: middle; margin: 0 .08em 0 .1em; position: relative; top: -.08em; }
.brand__tag {
  font-family: var(--font-head);
  font-size: 7.5px;
  letter-spacing: .4px;
  line-height: 1;
  margin-top: 2px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--logo);
}
.brand__tag svg { width: 7px; height: 7px; }

.social-icons { display: flex; align-items: center; gap: 5px; }
.social-icons a {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text);
  background: var(--bg);
}
.social-icons a:hover { color: var(--accent); }
.social-icons svg { width: 20px; height: 20px; fill: currentColor; }
.social-icons--sm a { width: 28px; height: 28px; }
.social-icons--sm svg { width: 16px; height: 16px; }

.header-contact {
  display: inline-flex;
  align-items: center;
  margin-left: 10px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  border: 1px solid var(--latte);
  padding: 9px 14px;
  transition: background-color .3s, color .3s, border-color .3s;
}
.header-contact:hover, .header-contact:focus-visible { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.header-contact__icon { display: none; width: 18px; height: 18px; fill: currentColor; }   /* icon-only on mobile */

.hamburger {
  display: none;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.hamburger span { display: block; height: 2px; background: var(--text); }

/* ---------- Hero ---------- */
.hero { padding: 64px 20px 70px; overflow: hidden; }
.hero__title {
  text-align: center;
  font-size: 98px;
  line-height: 1em;
  letter-spacing: -2px;
  margin: 0 auto;
  max-width: 1300px;
}
.hero__title .alt { color: var(--heading-alt); display: block; }
.hero__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  max-width: var(--container);
  margin: -10px auto 0;                     /* art tucks up under the title, like the reference slice */
}
.hero__col--left { flex: 0 0 25%; display: flex; flex-direction: column; align-items: center; gap: 40px; text-align: center; }
.hero__col--left h6 { font-size: 20px; line-height: 1.3; letter-spacing: -0.5px; text-wrap: balance; }
.hero__art { flex: 1 1 0; min-width: 0; display: flex; justify-content: center; }
.hero__art svg { width: 100%; max-width: 520px; height: auto; animation: hero-float 6s ease-in-out infinite; }
.hero__art svg { stroke: var(--art-ink); }                       /* outline + ground shadow follow the theme */
.hero__art [fill="#D7C9B9"] { fill: var(--art-shadow); }
.hero__col--right { flex: 0 0 29%; display: flex; flex-direction: column; gap: 26px; }
.hero__col--right > p { font-size: 16px; line-height: 1.6; margin: 0; }
.hero__grid { display: flex; justify-content: space-between; gap: 20px; }
.hero__grid > div { flex: 1 1 0; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.hero__grid h6 { font-size: 18px; line-height: 1.2; letter-spacing: -0.4px; }
.hero__grid .spacer { height: 18px; }
.hero .btn { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.hero .btn:hover, .hero .btn:focus-visible { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.hero .btn--sm { font-size: 12px; padding: 10px 18px; }
@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) { .hero__art svg { animation: none; } }

/* ---------- Feature sections (photo grids) ---------- */
.feature { display: flex; flex-wrap: wrap; }
.feature__text {
  flex: 0 0 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px 7%;
}
.feature__title {
  font-size: 52px;
  line-height: 1em;
  letter-spacing: -2px;
  padding: 16px;
  border: 2px solid var(--accent);
}
.feature__divider { height: 30px; width: 100%; }
.feature__text p { max-width: 560px; font-size: 14px; line-height: 1.7; margin: 0; }
.feature__img {
  flex: 0 0 50%;
  height: 545px;
  border: 6px solid var(--frame);
  background-color: var(--band);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.feature__img--sm { flex: 0 0 25%; height: 360px; }
.feature__row { display: flex; flex-wrap: wrap; width: 100%; }
.feature--reverse .feature__text { order: 2; }
.feature--reverse .feature__img--big { order: 1; }
.feature--reverse .feature__row { order: 3; }
.feature--about .feature__img--big { height: 500px; }
.feature--about .feature__title { border: 0; padding: 0; }
.feature__kicker { font-weight: 700; text-transform: uppercase; font-size: 14px; margin: 26px 0 6px; }
.feature__text .hl { color: var(--accent-text); font-weight: 700; }
.feature--about .btn { margin-top: 22px; }

/* ---------- Highlights band ---------- */
.highlights { background: var(--inverse-bg); padding: 60px 0 0; }
.highlights__title {
  color: var(--inverse-heading);
  text-align: center;
  font-size: 44px;
  letter-spacing: -1px;
  margin: 0 20px 50px;
}
.highlights__title .word-hl { position: relative; display: inline-block; color: var(--inverse-em); padding: 0 .1em; }
.highlights__title .word-hl svg {
  position: absolute;
  left: 0;
  bottom: -0.22em;
  width: 100%;
  height: .45em;
  overflow: visible;
}
.highlights__title .word-hl path {
  fill: none;
  stroke: var(--inverse-stroke);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  transition: stroke-dashoffset 1.2s ease .3s;
}
.highlights__title .word-hl.is-drawn path { stroke-dashoffset: 0; }
.poster-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.poster {
  border: 6px solid var(--inverse-bg);
  aspect-ratio: 722 / 1024;
  overflow: hidden;
  background: var(--band);
}
.poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.poster:hover img { transform: scale(1.03); }
.poster--brand {
  background: var(--latte);
  color: var(--midnight);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 9% 9% 8%;
}
.poster--brand .poster__mark { width: 22%; }
.poster--brand .poster__big {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(22px, 2.6vw, 48px);
  line-height: .95;
  letter-spacing: -1px;
  text-transform: uppercase;
}
.poster--brand .poster__big span { display: block; font-size: .62em; letter-spacing: 0; color: var(--earth); margin-top: .5em; }
.poster--brand .poster__note { font-size: clamp(11px, .9vw, 14px); line-height: 1.5; color: var(--midnight); border-top: 1px solid var(--midnight); padding-top: 10px; }
.poster--brand .poster__note strong { font-family: var(--font-head); text-transform: lowercase; font-size: 1.3em; letter-spacing: -.5px; }

/* ---------- Products ---------- */
.products { padding: 70px 20px 60px; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  max-width: var(--container);
  margin: 0 auto 36px;
}
.product {
  border: 1px solid var(--accent);
  padding: 16px 14px 18px;
  text-align: center;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text);
  transition: box-shadow .3s, transform .3s;
}
.product:hover { box-shadow: 0 12px 30px rgba(29, 29, 29, .1); transform: translateY(-2px); color: var(--text); }
.product__img { width: 100%; aspect-ratio: 1; overflow: hidden; }
.product__img img { width: 100%; height: 100%; object-fit: cover; }
.product__name { font-family: var(--font-head); font-size: 13px; font-weight: 700; text-transform: uppercase; color: var(--accent-text); letter-spacing: -.2px; line-height: 1.3; }
.product__price { display: inline-block; border: 1px solid var(--accent); color: var(--accent-text); font-size: 12px; padding: 4px 12px; line-height: 1.3; }

/* ---------- Reviews ---------- */
.reviews { padding: 50px 20px 70px; }
.reviews__title { text-align: center; margin: 0 0 40px; }
.ti-widget { display: flex; gap: 16px; max-width: 1060px; margin: 0 auto 34px; align-items: stretch; }
.ti-summary {
  flex: 0 0 230px;
  background: var(--surface);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(29, 29, 29, .08);
  padding: 18px 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.ti-summary__logo { width: 40px; height: 40px; flex: 0 0 40px; border: 1px solid var(--line); border-radius: 6px; display: flex; align-items: center; justify-content: center; }
.ti-summary__logo svg { width: 22px; height: 22px; }
.ti-summary__name { font-weight: 700; font-size: 13px; line-height: 1.3; margin: 0 0 4px; }
.ti-stars { display: inline-flex; gap: 2px; }
.ti-stars svg { width: 14px; height: 14px; fill: var(--accent); }
.ti-summary__count { font-size: 11px; color: var(--muted); margin: 4px 0 10px; }
.ti-summary .btn { font-size: 11px; padding: 6px 12px; }
.ti-track { flex: 1 1 auto; overflow: hidden; }
.ti-cards { display: flex; gap: 16px; transition: transform .6s ease; will-change: transform; }
.ti-card {
  flex: 0 0 calc((100% - 32px) / 3);
  background: var(--surface);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(29, 29, 29, .08);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 150px;
}
.ti-card__head { display: flex; align-items: center; gap: 10px; }
.ti-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--linen);
}
.ti-card__name { font-weight: 700; font-size: 13px; line-height: 1.2; }
.ti-card__time { font-size: 11px; color: var(--muted); }
.ti-card__g { margin-left: auto; width: 16px; height: 16px; }
.ti-card__text { font-size: 12.5px; line-height: 1.55; color: var(--text); margin: 0; }
.ti-card__badge { font-size: 10px; color: var(--muted); margin-top: auto; }

/* ---------- Locations ---------- */
.locate { background: var(--band); padding: 70px 20px 70px; }
.locate__top { display: flex; align-items: center; gap: 100px; max-width: var(--container-wide); margin: 0 auto 50px; }   /* same 1300 band as the Contact page */
.locate__intro { flex: 1 1 50%; min-width: 0; }
.locate__intro h2 { margin: 0 0 20px; }
.locate__intro h2 .u { position: relative; display: inline-block; }
.locate__intro h2 .u::after { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .09em; background: var(--accent); }
.locate__intro p { max-width: 380px; }
.locate__map { flex: 1 1 50%; min-width: 0; border: 2px solid var(--accent); padding: 14px; background: var(--bg); }
.locate__map h6 { text-align: center; margin: 0 0 12px; }
.map-frame { width: 100%; border: 0; display: block; filter: grayscale(1) contrast(1.05); background: #e8e2d8; }
.locate__map .map-frame { height: 500px; }
.branches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; max-width: var(--container-wide); margin: 0 auto; padding: 0 10px; }
.branch .map-frame { height: 300px; border: 2px solid var(--accent); }
.branch h6 { margin: 20px 0 12px; }
.branch ul { display: flex; flex-direction: column; gap: 6px; }
.branch li { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; }
.branch li svg { width: 14px; height: 14px; flex: 0 0 14px; margin-top: 3px; fill: var(--accent); }
.branch .btn { margin-top: 18px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--inverse-bg); color: var(--inverse-text); padding: 80px 20px 50px; }
.footer__inner { max-width: var(--container-wide); margin: 0 auto; }
.footer__top { display: flex; flex-wrap: wrap; row-gap: 20px; }
.footer__brand { flex: 0 0 50%; }
.footer-logo { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; color: var(--inverse-logo); }
.footer-logo:hover { color: var(--inverse-logo); }
.footer-logo__mark { width: 150px; height: 150px; }
.footer-logo__word { font-family: var(--font-head); font-weight: 700; font-size: 44px; letter-spacing: -2px; line-height: 1; text-transform: lowercase; }
.footer-logo__word .dot { display: inline-block; width: .18em; height: .18em; background: currentColor; border-radius: 50%; vertical-align: middle; margin: 0 .08em 0 .1em; position: relative; top: -.08em; }
.footer-logo__tag { font-family: var(--font-head); font-size: 13px; letter-spacing: .5px; display: inline-flex; align-items: center; gap: 8px; }
.footer-logo__tag svg { width: 11px; height: 11px; }
.footer__cols { flex: 0 0 50%; display: flex; justify-content: flex-end; }
.footer__col { flex: 0 0 50%; }
.footer__col h6 { color: var(--inverse-heading); margin: 0 0 14px; }
.footer__col li { display: flex; gap: 8px; align-items: flex-start; color: var(--inverse-text); font-size: 14px; padding-bottom: 5px; }
.footer__col li svg { width: 14px; height: 14px; flex: 0 0 14px; fill: var(--inverse-text); margin-top: 3px; }
.footer__col a { color: var(--inverse-text); }
.footer__col a:hover { color: var(--inverse-heading); }
.footer__divider { border-top: 1px solid color-mix(in srgb, var(--inverse-text) 40%, transparent); margin: 20px 0 15px; }
.footer__tagline {
  text-align: center;
  color: var(--inverse-text);
  font-size: 20px;
  letter-spacing: -1px;
  text-transform: uppercase;
  margin: 0 0 20px;
}
.footer__bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; }
.footer__copy { font-family: var(--font-head); font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--inverse-heading); }
.footer__legal { font-size: 11px; color: color-mix(in srgb, var(--inverse-text) 60%, transparent); margin: 26px 0 0; text-align: right; }
.site-footer .social-icons a { background: var(--linen); color: var(--midnight); }
.site-footer .social-icons a:hover { background: var(--latte); }

/* ---------- Page title band (inner pages: About, Contact; reference #EBEBEB band, 240px, 30px gutters) ---------- */
.page-title { padding: 0 30px; }
.page-title__band {
  min-height: 240px;
  max-width: none;
  background: var(--band);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
  text-align: center;
}
.page-title__heading {
  font-size: 52px;
  line-height: 1em;
  letter-spacing: -2px;
  text-transform: uppercase;
}
.breadcrumb { display: flex; align-items: center; gap: 15px; margin: 0; padding: 0; list-style: none; font-size: 14px; line-height: 1.6; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 15px; color: var(--crumb); }
.breadcrumb a { color: var(--crumb); }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb svg { width: 14px; height: 14px; color: var(--crumb); }

/* ---------- Fixed UI ---------- */
/* Phone on top, back-to-top underneath; the back-to-top collapses to 0 height until scrolled */
.float-actions { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.float-phone {
  position: relative;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--olive); color: var(--linen);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(29, 29, 29, .18);
  transition: background-color .3s, transform .3s;
}
.float-phone::before, .float-phone::after {    /* pulsing rings */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--olive);
  animation: phone-ring 2.4s ease-out infinite;
  pointer-events: none;
}
.float-phone::after { animation-delay: 1.2s; }
.float-phone:hover, .float-phone:focus-visible { background: var(--accent); color: var(--on-accent); transform: scale(1.08); }
.float-phone:hover::before, .float-phone:hover::after { border-color: var(--accent); }
.float-phone svg { width: 22px; height: 22px; fill: currentColor; animation: phone-shake 3.6s ease-in-out infinite; }

.float-top {
  position: relative;
  width: 48px; height: 0; margin-top: -12px; border-radius: 50%;
  border: 0; padding: 0; cursor: pointer;
  background: var(--primary); color: var(--on-primary);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(29, 29, 29, .18);
  opacity: 0; visibility: hidden; transform: scale(.4);
  transition: height .35s ease, margin-top .35s ease, opacity .3s, visibility .3s, transform .35s cubic-bezier(.34, 1.56, .64, 1), background-color .3s;
}
.float-top::before {                             /* scroll-progress ring, --progress set in main.js */
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(var(--accent) calc(var(--progress, 0) * 360deg), rgba(161, 109, 71, .2) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
}
.float-top.is-visible { height: 48px; margin-top: 0; opacity: 1; visibility: visible; transform: none; }
.float-top:hover, .float-top:focus-visible { background: var(--accent); }
.float-top svg { width: 18px; height: 18px; transform: rotate(180deg); }
.float-top:hover svg, .float-top:focus-visible svg { animation: arrow-up .8s ease-in-out infinite; }

@keyframes phone-ring {
  0% { transform: scale(1); opacity: .7; }
  100% { transform: scale(1.75); opacity: 0; }
}
@keyframes phone-shake {
  0%, 12%, 100% { transform: rotate(0); }
  2%, 6%, 10% { transform: rotate(-14deg); }
  4%, 8% { transform: rotate(14deg); }
}
@keyframes arrow-up {
  0%, 100% { transform: rotate(180deg) translateY(0); }
  50% { transform: rotate(180deg) translateY(4px); }
}
@media (prefers-reduced-motion: reduce) {
  .float-phone::before, .float-phone::after, .float-phone svg, .float-top:hover svg { animation: none; }
  .float-phone::before, .float-phone::after { opacity: 0; }
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .12s; }
.reveal[data-delay="2"] { transition-delay: .24s; }
.reveal[data-delay="3"] { transition-delay: .36s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .page-title { padding: 0 20px; }
  .page-title__band { min-height: 300px; }
  .page-title__heading { font-size: 37px; letter-spacing: -1px; }
  h2 { font-size: 37px; letter-spacing: -1px; }
  .hero__title { font-size: 66px; letter-spacing: -1px; }
  .hero__row { margin-top: 30px; gap: 24px; }
  .hero__col--left { flex: 0 0 100%; order: 1; gap: 24px; }
  .hero__art { flex: 0 0 100%; order: 2; }
  .hero__art svg { max-width: 400px; }
  .hero__col--right { flex: 0 0 100%; order: 3; text-align: center; max-width: 560px; margin: 0 auto; }
  .hero__grid > div { align-items: center; }
  .hero { padding-bottom: 50px; }
  .feature__title { font-size: 37px; letter-spacing: -1px; }
  .feature__text { flex: 0 0 100%; padding: 40px 20px 30px; }
  .feature__img--big { flex: 0 0 100%; height: 420px; order: 2 !important; }
  .feature--reverse .feature__text { order: 1; }
  .feature__img--sm { flex: 0 0 50%; height: 260px; }
  .poster-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .ti-widget { flex-direction: column; }
  .ti-summary { flex: 0 0 auto; }
  .ti-card { flex: 0 0 calc((100% - 16px) / 2); }
  .locate__top { flex-direction: column; align-items: stretch; gap: 30px; }
  .locate__intro { flex: 0 0 auto; }
  .locate__map .map-frame { height: 380px; }
  .branches { grid-template-columns: 1fr; max-width: 560px; }
  .footer__brand, .footer__cols { flex: 0 0 100%; justify-content: center; text-align: center; }
  .footer__brand { display: flex; justify-content: center; }
  .footer__col li { justify-content: center; }
  .footer__legal { text-align: center; }
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
  .page-title { padding: 0 16px; }
  .page-title__band { min-height: 0; padding: 34px 16px; gap: 8px; }
  .page-title__heading { font-size: 32px; letter-spacing: -1px; }
  .breadcrumb { flex-wrap: wrap; justify-content: center; gap: 8px; font-size: 13px; }
  .breadcrumb li { gap: 8px; }
  .breadcrumb svg { width: 12px; height: 12px; }
  h2 { font-size: 30px; }
  .hero { padding-top: 40px; }
  .hero__title { font-size: 32px; }
  .hero__col--left h6 { font-size: 16px; }
  .hero__art svg { max-width: 300px; }
  .hero__grid { gap: 12px; }
  .hero__grid h6 { font-size: 16px; }
  .feature__title { font-size: 30px; }
  .feature__img--big { height: 300px; }
  .feature__img--sm { height: 200px; }
  .highlights { padding-top: 40px; }
  .highlights__title { font-size: 28px; margin-bottom: 30px; }
  .poster-grid { grid-template-columns: 1fr 1fr; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .ti-card { flex: 0 0 100%; }
  .footer__cols { flex-direction: column; gap: 24px; }
  .footer__col { flex: 0 0 auto; }
  .footer__bottom { justify-content: center; text-align: center; }
  .footer__tagline { font-size: 16px; }

  /* Header → hamburger */
  /* equal side columns keep the logo dead centre; both side buttons are 42px squares */
  .site-header { padding: 8px 16px; }
  .hamburger { display: flex; }
  .header-left { order: 1; flex: 1 1 0; }
  .header-center { order: 2; flex: 0 0 auto; display: flex; justify-content: center; }
  .header-right { order: 3; flex: 1 1 0; }
  .social-icons { display: none; }
  .header-contact { margin-left: 0; width: 42px; height: 42px; padding: 0; justify-content: center; }
  .header-contact__icon { display: block; }
  .header-contact__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  /* horizontal lock-up: mark beside the wordmark + tagline */
  .brand { display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 7px; row-gap: 3px; align-items: center; }
  .brand__mark { grid-row: 1 / 3; width: 36px; height: 36px; }
  .brand__word { font-size: 22px; align-self: end; }
  .brand__tag { margin-top: 0; align-self: start; font-size: 7px; }
  .main-nav {
    position: fixed;
    inset: 0 30% 0 0;
    background: var(--bg);
    border-right: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
    padding: 70px 24px 24px;
    transform: translateX(-100%);
    transition: transform .35s ease;
    z-index: 110;
  }
  .main-nav.is-open { transform: none; }
  .main-nav ul { flex-direction: column; align-items: flex-start; }
  .main-nav a { line-height: 48px; font-size: 15px; }
  .main-nav__close {
    display: block;
    position: absolute;
    top: 14px;
    right: 14px;
    background: none;
    border: 1px solid var(--text);
    color: var(--text);
    padding: 6px 10px;
    font: 600 12px var(--font-head);
    text-transform: uppercase;
    cursor: pointer;
  }
  .float-actions { right: 12px; bottom: 12px; }
}
