/* ============================================================
   KCS Fine Foods — design tokens
   ============================================================ */
:root {
  /* brand colors, pulled from the company mark */
  --ink: #1b1813;
  --ink-soft: #2c2821;
  --rust: #a8552a;
  --rust-deep: #823f1d;
  --gold: #c2954c;
  --gold-soft: #e4c88f;
  --olive: #4b5330;
  --olive-soft: #717a4d;

  --parchment: #ece0c9;
  --parchment-soft: #f6efdf;
  --paper: #fbf8f1;
  --line: rgba(27, 24, 19, 0.14);
  --line-dark: rgba(251, 248, 241, 0.16);
  --ivory: #faf5e9;

  --shadow-soft: 0 24px 60px -32px rgba(27, 24, 19, 0.45);

  --font-display: "Fraunces", "Iowan Old Style", serif;
  --font-body: "Work Sans", -apple-system, "Segoe UI", sans-serif;

  --fs-xs: 0.8rem;
  --fs-sm: 0.95rem;
  --fs-base: clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
  --fs-md: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem);
  --fs-lg: clamp(1.5rem, 1.3rem + 1vw, 2.1rem);
  --fs-xl: clamp(2.2rem, 1.8rem + 2vw, 3.4rem);
  --fs-2xl: clamp(2.8rem, 2.1rem + 3.5vw, 5.2rem);

  --container: 1240px;
  --gutter: clamp(1.25rem, 3vw, 3rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* ============================================================
   Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }
input, textarea { font: inherit; }

::selection { background: var(--rust); color: var(--ivory); }

:focus-visible {
  outline: 2.5px solid var(--rust);
  outline-offset: 3px;
}

.skip-link:focus {
  left: 1rem !important;
  top: 1rem !important;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--rust);
  letter-spacing: 0.01em;
}
.eyebrow::before {
  content: "";
  width: 1.6em;
  height: 1.5px;
  background: currentColor;
  opacity: 0.6;
}

.section-head {
  max-width: 44rem;
  margin-bottom: clamp(2.5rem, 2rem + 2vw, 4.5rem);
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-xl);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-top: 0.6rem;
}
.section-head p {
  margin-top: 1.1rem;
  max-width: 38ch;
  color: var(--ink-soft);
  font-size: var(--fs-md);
}
.section-head.on-dark h2 { color: var(--ivory); }
.section-head.on-dark p { color: rgba(250, 245, 233, 0.72); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.7rem;
  border-radius: 2px;
  font-weight: 600;
  font-size: var(--fs-sm);
  transition: transform 0.35s var(--ease), background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.btn-primary {
  background: var(--rust);
  color: var(--ivory);
  box-shadow: 0 14px 30px -14px rgba(168, 85, 42, 0.65);
}
.btn-primary:hover { background: var(--rust-deep); transform: translateY(-2px); }
.btn-ghost {
  border: 1.5px solid currentColor;
  color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--ivory); transform: translateY(-2px); }
.btn-ghost.on-dark { color: var(--ivory); }
.btn-ghost.on-dark:hover { background: var(--ivory); color: var(--ink); }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.35rem 0;
  transition: padding 0.4s var(--ease), background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header.is-scrolled {
  padding: 0.75rem 0;
  background: rgba(251, 248, 241, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.brand img { width: 38px; height: 38px; }
.brand-word {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
}
.brand-word em {
  font-style: normal;
  color: var(--rust);
}
.brand-tag {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--olive);
  margin-top: 0.15rem;
}

.main-nav { display: flex; align-items: center; gap: 2.2rem; }
.main-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  padding: 0.2rem 0;
}
.main-nav a::after {
  content: "";
  position: absolute; left: 0; right: 100%; bottom: -2px;
  height: 1.5px; background: var(--rust);
  transition: right 0.3s var(--ease);
}
.main-nav a:hover::after { right: 0; }
.nav-cta {
  background: var(--ink);
  color: var(--ivory);
  padding: 0.65rem 1.3rem;
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 2px;
}
.nav-cta:hover { background: var(--rust); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.4rem;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); transition: transform 0.3s ease, opacity 0.3s ease; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--ivory);
  overflow: hidden;
}
.hero-media {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.08);
  animation: hero-settle 2.4s var(--ease) forwards;
}
@keyframes hero-settle { to { transform: scale(1); } }
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(0deg, rgba(14, 12, 9, 0.88) 0%, rgba(14, 12, 9, 0.52) 42%, rgba(14, 12, 9, 0.28) 68%, rgba(14, 12, 9, 0.46) 100%);
}
.hero-content {
  position: relative; z-index: 1;
  width: 100%;
  padding-block: clamp(6rem, 10vh, 8rem) clamp(3.5rem, 7vh, 5.5rem);
}
.hero-eyebrow {
  display: flex; align-items: center; gap: 0.9rem;
  font-size: var(--fs-sm); font-weight: 600;
  color: var(--gold-soft);
  opacity: 0;
}
.hero-eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold-soft);
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-2xl);
  line-height: 1.02;
  letter-spacing: -0.015em;
  max-width: 15ch;
  margin-top: 0.9rem;
}
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line span {
  display: block;
  transform: translateY(110%);
  animation: line-up 1.1s var(--ease) forwards;
}
@keyframes line-up { to { transform: translateY(0); } }

.hero-sub {
  margin-top: 1.6rem;
  max-width: 34rem;
  font-size: var(--fs-md);
  color: rgba(250, 245, 233, 0.82);
  opacity: 0;
}
.hero-actions {
  margin-top: 2.4rem;
  display: flex; flex-wrap: wrap; gap: 1rem;
  opacity: 0;
}
.hero-meta {
  margin-top: clamp(3rem, 6vh, 4.5rem);
  display: flex; flex-wrap: wrap; gap: clamp(1.75rem, 4vw, 3.5rem);
  border-top: 1px solid var(--line-dark);
  padding-top: 1.6rem;
  opacity: 0;
}
.hero-meta .stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--ivory);
}
.hero-meta .stat span {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: rgba(250, 245, 233, 0.62);
}

.hero-eyebrow, .hero-sub, .hero-actions, .hero-meta {
  animation: fade-up 1s var(--ease) forwards;
}
.hero-eyebrow { animation-delay: 0.9s; }
.hero h1 .line:nth-child(1) span { animation-delay: 0.15s; }
.hero h1 .line:nth-child(2) span { animation-delay: 0.3s; }
.hero-sub { animation-delay: 1.15s; }
.hero-actions { animation-delay: 1.35s; }
.hero-meta { animation-delay: 1.55s; }
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.scroll-cue {
  position: absolute; right: var(--gutter); bottom: 2.4rem; z-index: 1;
  display: flex; align-items: center; gap: 0.6rem;
  color: rgba(250, 245, 233, 0.65);
  font-size: 0.75rem; letter-spacing: 0.06em;
  writing-mode: vertical-rl;
  opacity: 0;
  animation: fade-up 1s var(--ease) forwards;
  animation-delay: 1.8s;
}
.scroll-cue::after {
  content: "";
  width: 1px; height: 46px;
  background: linear-gradient(var(--gold-soft), transparent);
}

@media (prefers-reduced-motion: reduce) {
  .hero-media img { animation: none; transform: none; }
  .hero-eyebrow, .hero-sub, .hero-actions, .hero-meta, .scroll-cue, .hero h1 .line span {
    animation: none; opacity: 1; transform: none;
  }
}

/* ============================================================
   About
   ============================================================ */
.about {
  background: var(--parchment);
  padding-block: clamp(5rem, 9vh, 8rem);
}
.about .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.about-copy p { margin-top: 1.25rem; max-width: 42ch; color: var(--ink-soft); }
.about-copy p:first-of-type { margin-top: 1.4rem; }
.about-locations {
  margin-top: 2.2rem;
  display: flex; flex-direction: column; gap: 1.1rem;
}
.about-locations .loc {
  display: flex; gap: 1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}
.about-locations .loc b {
  display: block; font-size: 0.78rem; letter-spacing: 0.05em;
  color: var(--rust); min-width: 7.5rem;
}
.about-locations .loc span { color: var(--ink-soft); font-size: 0.95rem; }

.about-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.about-visual img { width: 100%; height: 100%; object-fit: cover; }
.about-visual .tag {
  position: absolute; left: 1.4rem; bottom: 1.4rem;
  background: var(--paper);
  padding: 0.9rem 1.2rem;
  max-width: 13rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
  box-shadow: var(--shadow-soft);
}
.about-visual .tag b { display: block; color: var(--ink); font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; margin-bottom: 0.15rem; }

.chip-duo {
  display: flex;
  margin-bottom: 1.1rem;
}
.chip-duo img {
  width: 3rem; height: 3rem;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--paper);
  box-shadow: 0 6px 16px -6px rgba(27,24,19,0.35);
}
.chip-duo img:last-child { margin-left: -0.9rem; }

/* ============================================================
   Catalogue (products)
   ============================================================ */
.catalogue { background: var(--paper); padding-block: clamp(5rem, 9vh, 8.5rem); }
.cat-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.cat-list { border-top: 1px solid var(--line); }
.cat-row {
  display: grid;
  grid-template-columns: 3.2rem 1fr auto;
  gap: 1.4rem;
  align-items: start;
  padding: clamp(1.4rem, 3vw, 2.2rem) 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.cat-row .num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--gold);
  padding-top: 0.3rem;
}
.cat-row h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.7rem);
  transition: color 0.3s ease;
}
.cat-row p {
  margin-top: 0.6rem;
  max-width: 42ch;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.cat-row .arrow {
  align-self: center;
  width: 2.2rem; height: 2.2rem;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.4s var(--ease), border-color 0.3s ease, background 0.3s ease;
  flex-shrink: 0;
}
.cat-row .arrow svg { width: 14px; height: 14px; }
.cat-row:hover h3, .cat-row.is-active h3 { color: var(--rust); }
.cat-row:hover .arrow, .cat-row.is-active .arrow {
  background: var(--rust); border-color: var(--rust); transform: rotate(45deg);
}
.cat-row:hover .arrow svg path, .cat-row.is-active .arrow svg path { stroke: var(--ivory); }

.cat-frame {
  position: sticky; top: 7rem;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: var(--shadow-soft);
  background: var(--ink);
}
.cat-frame img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.6s var(--ease), transform 0.9s var(--ease);
}
.cat-frame img.is-active { opacity: 1; transform: scale(1); }
.cat-frame .frame-label {
  position: absolute; left: 1.3rem; bottom: 1.3rem; z-index: 1;
  color: var(--ivory);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  background: rgba(14,12,9,0.55);
  padding: 0.5rem 0.8rem;
}

/* mobile: inline images instead of hover frame */
.cat-row-image {
  display: none;
  grid-column: 1 / -1;
  margin-top: 1rem;
  aspect-ratio: 16/10;
  overflow: hidden;
  border-radius: 2px;
}
.cat-row-image img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   Export route
   ============================================================ */
.export { background: var(--ink); color: var(--ivory); padding-block: clamp(5rem, 9vh, 8.5rem); overflow: hidden; }
.export-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.export-copy p { margin-top: 1.2rem; max-width: 36ch; color: rgba(250,245,233,0.74); }
.export-points { margin-top: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.export-points li { display: flex; gap: 0.8rem; align-items: flex-start; font-size: 0.95rem; color: rgba(250,245,233,0.86); }
.export-points li svg { flex-shrink: 0; margin-top: 0.2rem; width: 16px; height: 16px; }

.route-map { position: relative; }
.route-svg { width: 100%; height: auto; }
.route-path {
  fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round;
}
.route-node circle.dot { fill: var(--gold); }
.route-node circle.pulse {
  fill: none; stroke: var(--gold); stroke-width: 1; opacity: 0;
}
.route-node.active circle.pulse { animation: pulse 2.2s ease-out infinite; }
@keyframes pulse {
  from { r: 6; opacity: 0.8; }
  to { r: 22; opacity: 0; }
}
.route-label { font-family: var(--font-body); font-size: 11px; fill: var(--ivory); font-weight: 600; }
.route-label.origin { fill: var(--gold-soft); }
.route-sub { font-size: 9.5px; fill: rgba(250,245,233,0.55); }

@media (prefers-reduced-motion: reduce) {
  .route-node.active circle.pulse { animation: none; }
}

/* ============================================================
   Gallery
   ============================================================ */
.gallery { background: var(--parchment); padding-block: clamp(5rem, 9vh, 8.5rem); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 14vw;
  gap: 0.9rem;
}
.gallery-grid figure {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}
.gallery-grid img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.gallery-grid figure:hover img { transform: scale(1.06); }
.gallery-grid figcaption {
  position: absolute; left: 0.9rem; bottom: 0.8rem;
  color: var(--ivory);
  font-size: 0.78rem;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.gallery-grid figure::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(14,12,9,0.6), transparent 55%);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.gallery-grid figure:hover figcaption,
.gallery-grid figure:hover::after { opacity: 1; }

.g-1 { grid-column: span 3; grid-row: span 2; }
.g-2 { grid-column: span 3; grid-row: span 1; }
.g-3 { grid-column: span 2; grid-row: span 1; }
.g-4 { grid-column: span 2; grid-row: span 2; }
.g-5 { grid-column: span 2; grid-row: span 1; }

/* ============================================================
   CTA band
   ============================================================ */
.cta-band {
  position: relative;
  padding-block: clamp(4.5rem, 8vh, 7rem);
  color: var(--ivory);
  text-align: left;
  overflow: hidden;
}
.cta-band .bg { position: absolute; inset: 0; z-index: 0; }
.cta-band .bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-band .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(14,12,9,0.92) 10%, rgba(14,12,9,0.65) 70%); }
.cta-band .container { position: relative; z-index: 1; max-width: 38rem; }
.cta-band h2 { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-lg); line-height: 1.15; }
.cta-band p { margin-top: 1rem; color: rgba(250,245,233,0.78); max-width: 34ch; }
.cta-band .hero-actions { margin-top: 2rem; }

/* ============================================================
   Contact
   ============================================================ */
.contact { background: var(--paper); padding-block: clamp(5rem, 9vh, 8.5rem); }
.contact-layout { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(2.5rem, 6vw, 5rem); }
.contact-cards { display: flex; flex-direction: column; gap: 1rem; }
.contact-card {
  border: 1px solid var(--line);
  padding: 1.6rem 1.7rem;
  display: flex; gap: 1.1rem; align-items: flex-start;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.contact-card:hover { border-color: var(--rust); transform: translateX(4px); }
.contact-card .icon {
  width: 2.5rem; height: 2.5rem; flex-shrink: 0;
  border-radius: 50%;
  background: var(--parchment-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--rust);
}
.contact-card .icon svg { width: 18px; height: 18px; }
.contact-card h4 { font-size: 0.78rem; letter-spacing: 0.05em; color: var(--rust); font-weight: 600; }
.contact-card p, .contact-card a { margin-top: 0.3rem; font-size: 0.98rem; color: var(--ink); line-height: 1.5; }
.contact-card a:hover { color: var(--rust); }

.contact-map { border-radius: 2px; overflow: hidden; margin-top: 1rem; box-shadow: var(--shadow-soft); aspect-ratio: 16/10; }
.contact-map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.3) sepia(0.12); }

.contact-form { background: var(--parchment-soft); padding: clamp(1.8rem, 3vw, 2.6rem); border-radius: 2px; }
.contact-form h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; }
.contact-form p.lead { margin-top: 0.5rem; color: var(--ink-soft); font-size: 0.92rem; }
.form-grid { margin-top: 1.6rem; display: grid; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-size: 0.78rem; font-weight: 600; color: var(--ink-soft); }
.field input, .field textarea, .field select {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 0.75rem 0.9rem;
  font-size: 0.95rem;
  color: var(--ink);
  border-radius: 1px;
  transition: border-color 0.25s ease;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--rust); }
.field textarea { resize: vertical; min-height: 7rem; }
.form-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 0.4rem; flex-wrap: wrap; gap: 1rem; }
.form-note { font-size: 0.8rem; color: var(--ink-soft); max-width: 22rem; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--ink); color: rgba(250,245,233,0.75); padding-block: 3.5rem 2rem; }
.footer-top { display: grid; grid-template-columns: 1.3fr 0.7fr 0.7fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--line-dark); }
.footer-brand .brand-word { color: var(--ivory); }
.footer-brand .brand-word em { color: var(--gold); }
.footer-brand p { margin-top: 1rem; max-width: 26ch; font-size: 0.9rem; }
.footer-col h5 { color: var(--ivory); font-size: 0.78rem; letter-spacing: 0.05em; margin-bottom: 1rem; }
.footer-col li { margin-bottom: 0.65rem; font-size: 0.9rem; }
.footer-col a:hover { color: var(--gold-soft); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 1.6rem; font-size: 0.8rem; flex-wrap: wrap; gap: 0.8rem; }
.footer-bottom a:hover { color: var(--gold-soft); }

.back-to-top {
  position: fixed; right: 1.6rem; bottom: 1.6rem; z-index: 90;
  width: 3rem; height: 3rem; border-radius: 50%;
  background: var(--ink); color: var(--ivory);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-soft);
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: var(--rust); }

.whatsapp-float {
  position: fixed; left: 1.6rem; bottom: 1.6rem; z-index: 90;
  width: 3.4rem; height: 3.4rem; border-radius: 50%;
  background: #25d366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 30px -10px rgba(37, 211, 102, 0.55);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.whatsapp-float::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid #25d366;
  animation: whatsapp-pulse 2.8s ease-out infinite;
}
.whatsapp-float:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -8px rgba(37, 211, 102, 0.65); }
@keyframes whatsapp-pulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.55); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .whatsapp-float::before { animation: none; }
}
@media (max-width: 560px) {
  .whatsapp-float { width: 3rem; height: 3rem; left: 1.1rem; bottom: 1.1rem; }
  .back-to-top { width: 2.7rem; height: 2.7rem; right: 1.1rem; bottom: 1.1rem; }
}

/* ============================================================
   Reveal-on-scroll (used sparingly, for section heads only)
   ============================================================ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .main-nav { position: fixed; inset: 0 0 0 30%; background: var(--paper); flex-direction: column; justify-content: center; align-items: flex-start; gap: 1.8rem; padding: 2rem var(--gutter); transform: translateX(100%); transition: transform 0.45s var(--ease); box-shadow: -20px 0 50px rgba(0,0,0,0.15); }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav a { font-size: 1.3rem; }
  .nav-toggle { display: flex; }
  .nav-cta { margin-top: 0.5rem; }

  .about .container, .cat-layout, .export-layout, .contact-layout { grid-template-columns: 1fr; }
  .cat-frame { display: none; }
  .cat-row-image { display: block; }
  .about-visual { order: -1; aspect-ratio: 16/10; }
  .form-row { grid-template-columns: 1fr; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 42vw; }
  .g-1, .g-2, .g-3, .g-4, .g-5 { grid-column: span 1; grid-row: span 1; }
  .g-1 { grid-column: span 2; grid-row: span 2; }

  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .hero h1 { max-width: 12ch; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 65vw; }
  .g-1 { grid-row: span 1; }
}
