/*
Theme Name: Pano Velho Institucional
Theme URI: https://panovelho.com.br/
Author: Pano Velho
Description: Tema institucional exclusivo da Pano Velho Jeans, sem dependência de construtores visuais.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.0
Text Domain: pano-velho
*/

:root {
  --ink: oklch(25% 0.045 256);
  --forest: oklch(35% 0.064 256);
  --forest-deep: oklch(22% 0.042 256);
  --denim: oklch(46% 0.105 258);
  --electric: oklch(68% 0.145 259);
  --copper: oklch(68% 0.145 259);
  --paper: oklch(97% 0.008 255);
  --paper-warm: oklch(93.5% 0.014 255);
  --white: oklch(99% 0.004 255);
  --line: oklch(82% 0.018 255);
  --muted: oklch(49% 0.03 256);
  --display: "Maia", "Sora", Arial, sans-serif;
  --body: "Archivo", Arial, sans-serif;
  --gutter: clamp(20px, 4vw, 68px);
  --section-y: clamp(88px, 12vw, 180px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

body.admin-bar .site-header { top: 32px; }

.page-shell {
  min-height: 70vh;
  padding: clamp(140px, 16vw, 220px) var(--gutter) var(--section-y);
}

.page-shell > article { width: min(780px, 100%); margin: 0 auto; }
.page-shell h1 { margin: 0 0 42px; font: 500 clamp(2.8rem, 7vw, 5.8rem)/.98 var(--display); }
.page-shell h2 { margin: 48px 0 14px; font: 500 clamp(1.5rem, 3vw, 2.2rem)/1.1 var(--display); }
.page-shell a { text-decoration: underline; text-underline-offset: 4px; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

:focus-visible {
  outline: 3px solid var(--electric);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--white);
  background: var(--forest-deep);
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

[id] { scroll-margin-top: 84px; }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(148px, .65fr) 1.25fr auto;
  width: 100%;
  min-height: 78px;
  align-items: center;
  color: var(--ink);
  background: oklch(99% 0.004 255 / .97);
  border-bottom: 1px solid oklch(25% 0.045 256 / .14);
  transition: min-height 300ms var(--ease), box-shadow 300ms var(--ease);
}

.site-header.is-scrolled {
  min-height: 66px;
  box-shadow: 0 10px 32px oklch(25% 0.045 256 / .09);
}

.brand {
  display: flex;
  height: 100%;
  align-items: center;
  padding: 0 var(--gutter);
  border-right: 1px solid oklch(25% 0.045 256 / .14);
}

.brand img { width: clamp(150px, 14vw, 192px); }

.site-nav {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 3vw, 48px);
  font-size: .76rem;
  font-weight: 600;
}

.site-nav a {
  position: relative;
  display: grid;
  height: 100%;
  align-items: center;
  white-space: nowrap;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  content: "";
  background: var(--copper);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 260ms var(--ease);
}

.site-nav a:hover::after { transform: scaleX(1); }

.header-cta,
.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1;
  transition: color 250ms var(--ease), background 250ms var(--ease), transform 250ms var(--ease);
}

.header-cta {
  height: 100%;
  min-width: 220px;
  color: var(--white);
  background: var(--forest);
  border-radius: 0;
}

.header-cta:hover { background: var(--denim); }
.button:hover { transform: translateY(-2px); }
.button-light { color: var(--forest-deep); background: var(--white); }
.button-light:hover { color: var(--white); background: var(--copper); }
.button-dark { color: var(--white); background: var(--forest-deep); }
.button-dark:hover { background: var(--denim); }

.nav-toggle { display: none; }

.hero {
  position: relative;
  display: grid;
  min-height: max(720px, 100svh);
  align-items: end;
  overflow: hidden;
  padding: 148px var(--gutter) clamp(56px, 7vw, 100px);
  color: var(--white);
  background: var(--forest-deep);
}

.hero-background,
.hero-background::after {
  position: absolute;
  inset: 0;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  animation: hero-scale 1.7s var(--ease) both;
}

.hero-background::after {
  content: "";
  background:
    linear-gradient(90deg, oklch(18% 0.05 256 / .94) 0%, oklch(18% 0.05 256 / .73) 36%, oklch(18% 0.05 256 / .1) 74%),
    linear-gradient(180deg, oklch(18% 0.05 256 / .18) 45%, oklch(18% 0.05 256 / .82) 100%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(900px, 78vw);
}

.hero-kicker {
  display: flex;
  gap: 18px;
  align-items: center;
  margin: 0 0 clamp(26px, 4vw, 48px);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-kicker span + span::before {
  display: inline-block;
  width: 34px;
  height: 1px;
  margin: 0 18px 3px 0;
  content: "";
  background: var(--copper);
}

.hero h1 {
  max-width: 1020px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(4rem, 7.5vw, 8.3rem);
  font-weight: 500;
  letter-spacing: 0;
  line-height: .88;
}

.hero h1 strong {
  color: var(--copper);
  font-weight: 500;
}

.hero-lead {
  max-width: 550px;
  margin: clamp(30px, 4vw, 46px) 0 0;
  color: oklch(96% 0.008 255 / .86);
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  line-height: 1.55;
}

.hero-actions,
.visit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  margin-top: 30px;
}

.text-link {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid currentColor;
  font-size: .78rem;
  font-weight: 700;
}

.hero-aside {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(56px, 7vw, 100px);
  z-index: 2;
  display: grid;
  grid-template-columns: 30px auto;
  gap: 8px 14px;
  width: 215px;
  padding-top: 18px;
  border-top: 1px solid oklch(96% 0.008 255 / .5);
  font-size: .76rem;
}

.hero-aside span { color: var(--copper); font-weight: 700; }
.hero-aside p { margin: 0; font-weight: 600; }

.ticker {
  overflow: hidden;
  color: var(--white);
  background: var(--denim);
  background-image: url("assets/pano-velho-isotipo.svg");
  background-size: 42px 42px;
  background-blend-mode: soft-light;
  border-block: 1px solid oklch(98% 0.006 255 / .18);
}

.ticker-track {
  display: flex;
  width: max-content;
  align-items: center;
  padding: 18px 0;
  animation: ticker 28s linear infinite;
}

.ticker span {
  padding: 0 24px;
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.1vw, 2rem);
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
}

.ticker i { width: 7px; height: 7px; background: var(--copper); transform: rotate(45deg); }

.section { padding: var(--section-y) var(--gutter); }

.section-index {
  color: var(--muted);
  font-size: .69rem;
  font-weight: 700;
  text-transform: uppercase;
}

.manifest {
  position: relative;
  display: grid;
  grid-template-columns: .42fr 1.45fr .72fr;
  gap: clamp(30px, 5vw, 82px);
  align-items: start;
  background: var(--paper);
}

.manifest::after {
  position: absolute;
  right: 3vw;
  bottom: 2vw;
  width: min(28vw, 420px);
  aspect-ratio: 1;
  content: "";
  background: url("assets/pano-velho-isotipo.svg") center / contain no-repeat;
  opacity: .035;
  pointer-events: none;
}

.display-statement {
  max-width: 920px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.4rem, 6vw, 7rem);
  font-weight: 500;
  letter-spacing: 0;
  line-height: .96;
}

.display-statement em {
  color: var(--denim);
  font-style: normal;
}

.manifest-copy {
  display: grid;
  gap: 24px;
  align-self: end;
  padding-bottom: 8px;
  color: var(--muted);
  font-size: .97rem;
}

.manifest-copy p { margin: 0; }

.brand-film {
  position: relative;
  min-height: min(78vw, 900px);
  overflow: hidden;
  color: var(--white);
  background: var(--forest-deep);
}

.brand-film video,
.brand-film-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.brand-film video { object-fit: cover; }
.brand-film-shade { background: linear-gradient(90deg, oklch(16% 0.05 256 / .8), oklch(16% 0.05 256 / .16) 70%), linear-gradient(180deg, transparent 48%, oklch(16% 0.05 256 / .72)); }

.brand-film-copy {
  position: absolute;
  bottom: clamp(48px, 8vw, 120px);
  left: var(--gutter);
  z-index: 2;
  max-width: 850px;
}

.brand-film-copy > p { margin: 0 0 22px; color: var(--copper); font-size: .7rem; font-weight: 700; text-transform: uppercase; }
.brand-film-copy h2 { margin: 0; font-family: var(--display); font-size: clamp(4.2rem, 7.6vw, 8.6rem); font-weight: 500; line-height: .9; }
.brand-film-copy > span { display: block; max-width: 500px; margin-top: 30px; color: oklch(96% 0.008 255 / .78); }

.film-toggle {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(48px, 8vw, 120px);
  z-index: 3;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  color: var(--white);
  background: transparent;
  border: 1px solid oklch(98% 0.006 255 / .65);
  border-radius: 50%;
  cursor: pointer;
}

.film-toggle:hover { color: var(--forest-deep); background: var(--white); }

.factory {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  min-height: 820px;
  color: var(--white);
  background: var(--forest);
}

.factory-photo {
  position: relative;
  min-height: 720px;
  overflow: hidden;
}

.factory-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.82) contrast(1.04);
  transition: transform 900ms var(--ease);
}

.factory-photo:hover img { transform: scale(1.025); }

.factory-photo::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 65%, oklch(16% 0.04 256 / .68));
}

.factory-photo > p {
  position: absolute;
  bottom: 28px;
  left: var(--gutter);
  z-index: 1;
  margin: 0;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.factory-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.factory-content .section-index { color: oklch(91% 0.015 255 / .62); }

.factory h2,
.quality h2,
.reseller h2,
.visit h2,
.contact h2 {
  margin: 28px 0 0;
  font-family: var(--display);
  font-size: clamp(3.2rem, 5.2vw, 6rem);
  font-weight: 500;
  letter-spacing: 0;
  line-height: .96;
}

.factory-content > p {
  max-width: 610px;
  margin: 34px 0 0;
  color: oklch(95% 0.01 255 / .76);
}

.factory-list { margin: 48px 0 0; border-top: 1px solid oklch(96% 0.008 255 / .2); }
.factory-list div { display: grid; grid-template-columns: .45fr 1fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid oklch(96% 0.008 255 / .2); }
.factory-list dt { font-family: var(--display); font-size: 1.3rem; font-weight: 500; }
.factory-list dd { margin: 0; color: oklch(95% 0.01 255 / .68); font-size: .86rem; }

.credentials {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 0 var(--gutter);
  background: var(--paper-warm);
  border-bottom: 1px solid var(--line);
}

.credential { min-height: 210px; padding: 36px clamp(20px, 3vw, 48px); border-left: 1px solid var(--line); }
.credential:last-child { border-right: 1px solid var(--line); }
.credential span { display: block; margin-bottom: 30px; color: var(--copper); font-size: .68rem; font-weight: 700; }
.credential strong { display: block; font-family: var(--display); font-size: clamp(1.7rem, 2.2vw, 2.6rem); font-weight: 500; line-height: 1.05; }
.credential p { margin: 10px 0 0; color: var(--muted); font-size: .78rem; }

.quality { background: var(--white); }

.quality-heading {
  display: grid;
  grid-template-columns: .4fr 1.3fr .6fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(52px, 8vw, 112px);
}

.quality-heading h2 { margin: 0; color: var(--forest); }
.quality-heading > p { max-width: 360px; margin: 0; color: var(--muted); }

.quality-stories {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}

.story { margin: 0; }
.story-tall { grid-row: span 2; }
.story-wide { display: grid; grid-template-columns: 1.1fr .9fr; align-items: end; }

.story img {
  width: 100%;
  aspect-ratio: 1.3 / 1;
  object-fit: cover;
  background: var(--paper-warm);
  filter: saturate(.86);
}

.story-tall img { aspect-ratio: .82 / 1; object-position: center 18%; }
.story-wide img { aspect-ratio: 1 / .76; }

.story figcaption {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 2px 16px;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  margin-top: 16px;
}

.story figcaption span { grid-row: span 2; color: var(--copper); font-size: .7rem; font-weight: 700; }
.story figcaption strong { font-family: var(--display); font-size: 1.55rem; font-weight: 500; line-height: 1; }
.story figcaption p { margin: 8px 0 0; color: var(--muted); font-size: .86rem; }
.story-wide figcaption { padding: 28px 0 0 28px; border-top: 0; }

.quality-note {
  max-width: 560px;
  margin: 68px 0 0 auto;
  padding-top: 18px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: .78rem;
}

.business-value {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(50px, 9vw, 150px);
  background: var(--paper-warm);
}

.business-heading { position: sticky; top: 118px; align-self: start; }
.business-heading h2 { margin: 30px 0 0; color: var(--forest); font-family: var(--display); font-size: clamp(3.5rem, 5.8vw, 6.7rem); font-weight: 500; line-height: .94; }
.business-heading > p { max-width: 560px; margin: 34px 0 0; color: var(--muted); }
.business-list { border-top: 1px solid var(--line); }
.business-list article { display: grid; grid-template-columns: 42px .75fr 1fr; gap: clamp(18px, 3vw, 42px); align-items: start; padding: clamp(30px, 4vw, 54px) 0; border-bottom: 1px solid var(--line); }
.business-list article > span { color: var(--copper); font-size: .68rem; font-weight: 700; }
.business-list h3 { margin: 0; font-family: var(--display); font-size: clamp(1.6rem, 2.2vw, 2.6rem); font-weight: 500; line-height: 1.05; }
.business-list p { margin: 0; color: var(--muted); font-size: .86rem; }

.reseller {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  color: var(--ink);
  background: oklch(89% 0.055 258);
}

.reseller-intro { padding-right: clamp(42px, 7vw, 110px); }
.reseller-intro h2 { color: var(--forest-deep); }
.reseller-intro > p { max-width: 590px; margin: 30px 0 0; }
.reseller-intro .button { margin-top: 36px; }

.reseller-notes { margin-top: 48px; border-top: 1px solid oklch(25% 0.045 256 / .28); }
.reseller-notes p { display: grid; grid-template-columns: 34px 1fr; gap: 18px; margin: 0; padding: 16px 0; border-bottom: 1px solid oklch(25% 0.045 256 / .28); font-size: .82rem; }
.reseller-notes span { color: var(--forest); font-size: .68rem; font-weight: 700; }

.lead-panel { position: relative; display: grid; align-items: center; overflow: hidden; padding: clamp(54px, 8vw, 112px) clamp(24px, 6vw, 92px); color: var(--white); background: var(--forest-deep); }
.lead-panel::after { position: absolute; right: -7%; bottom: -7%; width: 42%; aspect-ratio: 1; content: ""; background: url("assets/pano-velho-isotipo.svg") center / contain no-repeat; filter: brightness(0) invert(1); opacity: .035; pointer-events: none; }
.lead-form { position: relative; z-index: 1; }
.lead-form { display: grid; grid-template-columns: 1fr 140px; gap: 22px 18px; width: 100%; max-width: 720px; }
.field { display: grid; gap: 8px; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: .7rem; font-weight: 700; text-transform: uppercase; }
.field label span { color: oklch(96% 0.008 255 / .5); font-weight: 400; text-transform: none; }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 0;
  color: var(--white);
  background: transparent;
  border: 0;
  border-bottom: 1px solid oklch(96% 0.008 255 / .35);
  border-radius: 0;
}
.field textarea { resize: vertical; }
.field select { color-scheme: dark; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-bottom-color: var(--copper); outline: 0; }
.field input:user-invalid,
.field select:user-invalid,
.field textarea:user-invalid { border-bottom-color: oklch(72% .17 28); }
.consent { display: flex; grid-column: 1 / -1; gap: 12px; align-items: flex-start; color: oklch(96% 0.008 255 / .7); font-size: .72rem; cursor: pointer; }
.consent input { flex: 0 0 auto; width: 17px; height: 17px; margin-top: 2px; accent-color: var(--copper); }
.lead-submit { grid-column: 1 / -1; width: 100%; margin-top: 8px; cursor: pointer; }
.form-status { grid-column: 1 / -1; min-height: 20px; margin: 0; color: var(--copper); font-size: .74rem; }

.reseller-flow {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--forest-deep);
}

.reseller-flow li {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 28px;
  align-content: center;
  min-height: 240px;
  padding: 46px clamp(34px, 5vw, 76px);
  color: var(--white);
  border-bottom: 1px solid oklch(96% 0.008 255 / .15);
}

.reseller-flow li:last-child { border-bottom: 0; }
.reseller-flow li > span { color: var(--copper); font-size: .76rem; font-weight: 700; }
.reseller-flow h3 { margin: 0; font-family: var(--display); font-size: clamp(2rem, 3vw, 3.4rem); font-weight: 500; line-height: 1; }
.reseller-flow p { max-width: 480px; margin: 14px 0 0; color: oklch(95% 0.01 255 / .68); font-size: .88rem; }

.visit {
  position: relative;
  display: grid;
  min-height: 780px;
  align-items: center;
  overflow: hidden;
  padding: var(--section-y) var(--gutter);
  color: var(--white);
  background: var(--denim);
}

.visit-media,
.visit-media::after { position: absolute; inset: 0; }
.visit-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; filter: saturate(.72); }
.visit-media::after { content: ""; background: linear-gradient(90deg, oklch(14% 0.05 252 / .94) 0%, oklch(14% 0.05 252 / .68) 45%, oklch(14% 0.05 252 / .08) 80%); }
.visit-copy { position: relative; z-index: 1; max-width: 740px; }
.section-index-light { color: oklch(96% 0.008 255 / .65); }
.visit h2 { font-size: clamp(4.6rem, 8.5vw, 9.6rem); }
.visit-copy > p { max-width: 540px; margin: 30px 0 0; color: oklch(96% 0.008 255 / .8); }
.visit-address { display: grid; gap: 3px; margin-top: 26px; font-style: normal; }
.visit-address strong { color: var(--copper); font-family: var(--display); font-size: 1.25rem; font-weight: 500; }
.visit-address small { margin-top: 8px; color: oklch(96% 0.008 255 / .64); }

.contact {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(44px, 8vw, 140px);
  color: var(--white);
  background: var(--denim);
}

.contact .section-index { color: oklch(96% 0.008 255 / .64); }
.contact h2 { max-width: 900px; }
.contact-action { align-self: end; }
.contact-action > p { max-width: 420px; margin: 0 0 32px; color: oklch(96% 0.008 255 / .72); }

.contact-whatsapp {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 26px 56px 26px 0;
  border-block: 1px solid oklch(96% 0.008 255 / .28);
}

.contact-whatsapp span { font-size: .7rem; font-weight: 700; text-transform: uppercase; }
.contact-whatsapp strong { font-family: var(--display); font-size: clamp(2.2rem, 4vw, 4.2rem); font-weight: 600; line-height: 1; }
.contact-whatsapp b { position: absolute; right: 0; top: 50%; font-size: 2rem; transform: translateY(-50%); }
.contact-secondary { display: flex; flex-wrap: wrap; gap: 18px 32px; margin-top: 24px; color: oklch(96% 0.008 255 / .72); font-size: .76rem; }
.contact-secondary a:hover { color: var(--white); }

.site-footer {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--forest-deep);
  padding: 0 var(--gutter);
}

.site-footer::after { position: absolute; right: -4%; bottom: -34%; width: min(36vw, 520px); aspect-ratio: 1; content: ""; background: url("assets/pano-velho-isotipo.svg") center / contain no-repeat; filter: brightness(0) invert(1); opacity: .035; pointer-events: none; }
.footer-top, .footer-bottom { position: relative; z-index: 1; }

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 42px;
  align-items: center;
  min-height: 240px;
  border-bottom: 1px solid oklch(96% 0.008 255 / .18);
}

.footer-brand img { width: 180px; filter: brightness(0) invert(1); }
.footer-top p { margin: 0; font-family: var(--display); font-size: 1.7rem; font-weight: 500; line-height: 1.05; }
.back-top { font-size: .75rem; font-weight: 700; }
.back-top span { margin-left: 12px; color: var(--copper); }

.footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 36px;
  align-items: center;
  min-height: 92px;
  color: oklch(96% 0.008 255 / .56);
  font-size: .68rem;
}

.footer-bottom nav { display: flex; gap: 22px; }
.footer-bottom > span:last-child { text-align: right; }

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 900ms var(--ease), transform 900ms var(--ease);
}

.reveal.is-visible { opacity: 1; transform: translateY(0); }

@keyframes hero-scale { from { transform: scale(1.05); } to { transform: scale(1); } }
@keyframes ticker { to { transform: translateX(-50%); } }

@media (max-width: 1040px) {
  .site-header { grid-template-columns: 1fr auto; min-height: 70px; }
  .brand { border-right: 0; }
  .nav-toggle {
    display: grid;
    width: 70px;
    height: 70px;
    gap: 6px;
    place-content: center;
    color: var(--white);
    background: var(--forest);
    border: 0;
  }
  .nav-toggle span { display: block; width: 23px; height: 2px; background: currentColor; transition: transform 250ms var(--ease); }
  .site-header.is-open .nav-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  .site-header.is-open .nav-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .site-nav, .header-cta { display: none; }
  .site-header.is-open { background: var(--paper); }
  .site-header.is-open .site-nav {
    position: fixed;
    top: 70px;
    left: 0;
    display: flex;
    width: 100%;
    height: calc(100svh - 70px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    padding: 32px var(--gutter) 110px;
    color: var(--white);
    background: var(--forest-deep);
  }
  .site-header.is-open .site-nav a { width: 100%; height: auto; padding: 16px 0; border-bottom: 1px solid oklch(96% 0.008 255 / .16); font-family: var(--display); font-size: clamp(2.2rem, 8vw, 3.8rem); }
  .site-header.is-open .site-nav a::after { display: none; }
  .hero { min-height: 860px; }
  .hero-copy { width: min(740px, 86vw); }
  .hero-aside { display: none; }
  .manifest { grid-template-columns: .3fr 1.4fr; }
  .manifest-copy { grid-column: 2; max-width: 620px; }
  .factory { grid-template-columns: 1fr; }
  .factory-photo { min-height: 620px; }
  .factory-content { min-height: 720px; }
  .quality-heading { grid-template-columns: .3fr 1fr; }
  .quality-heading > p { grid-column: 2; }
  .credentials { grid-template-columns: repeat(2, 1fr); }
  .business-value { grid-template-columns: 1fr; }
  .business-heading { position: static; }
  .reseller { grid-template-columns: 1fr; }
  .reseller-intro { padding-right: var(--gutter); }
  .contact { grid-template-columns: 1fr; }
  .contact-action { max-width: 680px; }
}

@media (max-width: 700px) {
  body.admin-bar .site-header { top: 46px; }
  :root { --section-y: 84px; }
  .brand { padding-left: 18px; }
  .brand img { width: 136px; }
  .hero { min-height: 100svh; padding-top: 116px; padding-bottom: 48px; }
  .hero-background img { object-position: 61% center; }
  .hero-background::after { background: linear-gradient(180deg, oklch(18% 0.05 256 / .48), oklch(18% 0.05 256 / .9) 72%, oklch(18% 0.05 256 / .98)); }
  .hero-copy { width: 100%; }
  .hero-kicker { align-items: flex-start; flex-direction: column; gap: 5px; margin-bottom: 30px; }
  .hero-kicker span + span::before { display: none; }
  .hero h1 { font-size: clamp(3.2rem, 14.5vw, 5.5rem); line-height: .94; }
  .hero-lead { max-width: 92%; margin-top: 26px; }
  .hero-actions, .visit-actions { align-items: flex-start; flex-direction: column; gap: 16px; }
  .button { width: 100%; }
  .manifest { grid-template-columns: 1fr; gap: 30px; }
  .manifest-copy { grid-column: 1; }
  .display-statement { font-size: clamp(3.2rem, 14vw, 5.2rem); }
  .factory-photo { min-height: 500px; }
  .factory-content { min-height: 0; }
  .factory h2, .quality h2, .reseller h2, .visit h2, .contact h2 { font-size: clamp(3rem, 13vw, 5rem); }
  .factory-list div { grid-template-columns: 1fr; gap: 3px; }
  .brand-film { min-height: 720px; }
  .brand-film video { object-position: 58% center; }
  .brand-film-copy { right: var(--gutter); }
  .brand-film-copy h2 { font-size: clamp(3.7rem, 16vw, 5.8rem); }
  .film-toggle { bottom: 30px; width: 50px; height: 50px; }
  .credentials { grid-template-columns: 1fr; }
  .credential { min-height: 160px; border-right: 1px solid var(--line); }
  .quality-heading { grid-template-columns: 1fr; gap: 24px; }
  .quality-heading > p { grid-column: 1; }
  .quality-stories { grid-template-columns: 1fr; }
  .story-tall { grid-row: auto; }
  .story-tall img, .story img { aspect-ratio: .92 / 1; }
  .story-wide { display: block; }
  .story-wide img { aspect-ratio: 1.2 / 1; }
  .story-wide figcaption { padding: 22px 0 0; border-top: 1px solid var(--line); }
  .quality-note { margin-top: 48px; }
  .business-list article { grid-template-columns: 32px 1fr; }
  .business-list article p { grid-column: 2; }
  .lead-form { grid-template-columns: 1fr; }
  .field, .field-wide, .consent, .lead-submit, .form-status { grid-column: 1; }
  .reseller-flow li { min-height: 210px; grid-template-columns: 38px 1fr; gap: 12px; padding-inline: 22px; }
  .visit { min-height: 720px; }
  .visit-media img { object-position: 56% center; }
  .visit-media::after { background: linear-gradient(180deg, oklch(14% 0.05 252 / .26), oklch(14% 0.05 252 / .92) 68%); }
  .contact-whatsapp { padding-right: 42px; }
  .contact-whatsapp strong { font-size: clamp(2.15rem, 11vw, 3.4rem); overflow-wrap: anywhere; }
  .footer-top { grid-template-columns: 1fr; align-content: center; min-height: 340px; }
  .footer-bottom { grid-template-columns: 1fr; gap: 14px; padding: 28px 0; }
  .footer-bottom > span:last-child { text-align: left; }
}

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