:root {
  --paper: #f7f3ec;
  --paper-soft: #fbf8f3;
  --ink: #151513;
  --muted: #6f6a61;
  --line: rgba(22, 22, 19, 0.14);
  --line-dark: rgba(255, 255, 255, 0.18);
  --navy: #132834;
  --navy-deep: #0c1b24;
  --sand: #d8c8ad;
  --white: #ffffff;
  --radius: 0;
  --max: 1180px;
  --header-height: 82px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Manrope", Arial, sans-serif;
  --shadow: 0 22px 70px rgba(21, 21, 19, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: geometricPrecision;
}

body.is-locked {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
select,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 999;
  transform: translateY(-150%);
  background: var(--white);
  color: var(--ink);
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.intro {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  background: #050505;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.intro img {
  width: min(58vw, 340px);
  height: auto;
  animation: introPulse 1.35s ease-in-out infinite;
}

body.intro-finished .intro {
  opacity: 0;
  visibility: hidden;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 80;
  height: var(--header-height);
  background: rgba(9, 13, 14, 0.42);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  transition: background 0.25s ease, height 0.25s ease;
}

.site-header.is-scrolled {
  height: 72px;
  background: rgba(9, 13, 14, 0.82);
}

.nav {
  width: min(100% - 4rem, 1320px);
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(150px, 220px) 1fr auto;
  align-items: center;
  gap: 1.4rem;
}

.brand {
  justify-self: start;
  display: inline-flex;
  width: 152px;
  height: 58px;
  align-items: center;
}

.brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

.site-menu {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.25rem);
}

.site-menu a {
  position: relative;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.site-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.65rem;
  height: 1px;
  background: var(--sand);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.22s ease;
}

.site-menu a:hover,
.site-menu a:focus-visible {
  color: var(--white);
}

.site-menu a:hover::after,
.site-menu a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.language-control select {
  min-height: 42px;
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  padding: 0 0.8rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  outline: none;
}

.language-control option {
  color: var(--ink);
}

.catalog-button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 44px;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  padding: 0 1.15rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.catalog-button:hover,
.catalog-button:focus-visible,
.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.catalog-button--header {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.42);
}

.catalog-button--hero {
  margin-top: 1.6rem;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.52);
  background: rgba(19, 40, 52, 0.72);
}

.catalog-button[aria-disabled="true"] {
  cursor: not-allowed;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.08);
  padding: 0;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 1px;
  margin: 5px auto;
  background: var(--white);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #0b0b0a;
  color: var(--white);
}

.hero__media,
.hero__overlay {
  position: absolute;
  inset: 0;
}

.hero__media {
  background-image: url("assets/hero-textile-bg.jpg");
  background-size: cover;
  background-position: center right;
  transform: scale(1.01);
}

.hero__overlay {
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.88) 0%, rgba(5, 5, 5, 0.66) 34%, rgba(5, 5, 5, 0.2) 70%, rgba(5, 5, 5, 0.32) 100%),
    linear-gradient(180deg, rgba(5, 5, 5, 0.25) 0%, rgba(5, 5, 5, 0.05) 44%, rgba(5, 5, 5, 0.42) 100%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: min(100% - 4rem, 1320px);
  margin: 0 auto;
  padding: calc(var(--header-height) + 5rem) 0 5.5rem;
}

.hero__copy-block {
  max-width: 620px;
}

.section-line {
  display: block;
  width: 96px;
  height: 2px;
  background: var(--sand);
  margin-bottom: 1.3rem;
}

.section-line--short {
  width: 42px;
  margin: 1.35rem 0 1.15rem;
}

.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(4.6rem, 10vw, 8.8rem);
  font-weight: 600;
  line-height: 0.84;
  letter-spacing: 0.02em;
}

.hero-letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(24px);
}

body.intro-finished .hero-letter {
  animation: titleLetterIn 0.68s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero__slogan {
  margin: 1.35rem 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.1rem, 2vw, 1.62rem);
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.hero__eyebrow,
.eyebrow {
  margin: 0 0 0.55rem;
  color: var(--navy);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero__eyebrow {
  color: rgba(255, 255, 255, 0.92);
}

.hero__description {
  max-width: 520px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.98rem;
}

.pillars {
  background: var(--paper-soft);
  border-bottom: 1px solid var(--line);
}

.pillars__inner {
  width: min(100% - 4rem, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.pillar-card {
  min-height: 240px;
  padding: 2.5rem 2rem;
  text-align: center;
  border-left: 1px solid var(--line);
}

.pillar-card:last-child {
  border-right: 1px solid var(--line);
}

.pillar-card__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 0 auto 1rem;
  color: var(--navy);
}

.pillar-card__icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.pillar-card h3 {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pillar-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.7;
}

.pillar-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem 0.75rem;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.7;
  list-style: none;
}

.pillar-values li {
  min-width: 0;
  text-align: center;
}

.section {
  width: min(100% - 4rem, var(--max));
  margin: 0 auto;
  padding: 4.5rem 0;
}

.section__header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.2rem;
}

.section__header h2,
.solutions__content h2,
.contact__content h2,
.modal h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
}

.section__header h2 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--paper-soft);
}

.product-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.product-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.15rem 0.25rem 0;
}

.product-card h3 {
  margin: 0 0 0.45rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.product-card p {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.65;
}

.product-card a {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.45rem;
  margin-top: auto;
  color: var(--navy);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.product-card a::after {
  content: "→";
  font-size: 0.9rem;
  line-height: 1;
}

.product-details {
  width: min(100% - 4rem, var(--max));
  margin: -1rem auto 4.8rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.detail-card {
  padding: 1.65rem 1.4rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.32);
}

.detail-card span {
  display: block;
  margin-bottom: 0.7rem;
  color: var(--navy);
  font-weight: 800;
  font-size: 0.76rem;
}

.detail-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.detail-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.solutions {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 430px;
  background: var(--navy-deep);
  color: var(--white);
}

.solutions__image {
  min-height: 430px;
  background-image: linear-gradient(90deg, rgba(12, 27, 36, 0.1), rgba(12, 27, 36, 0.16)), url("assets/product-confeccion.jpg");
  background-size: cover;
  background-position: center;
}

.solutions__content {
  display: grid;
  align-content: center;
  padding: clamp(2rem, 5vw, 4rem);
}

.solutions__content .eyebrow {
  color: var(--sand);
}

.solutions__content h2 {
  max-width: 480px;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
}

.solutions__content p {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.72);
}

.btn--outline-light {
  justify-self: start;
  margin-top: 1rem;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn--outline-light:hover,
.btn--outline-light:focus-visible {
  background: var(--white);
  color: var(--navy-deep);
}

.contact {
  display: grid;
  justify-items: center;
}

.contact__content {
  max-width: 760px;
  text-align: center;
}

.contact__content h2 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
}

.contact__content p {
  color: var(--muted);
}

.btn--dark {
  margin-top: 0.75rem;
  background: var(--navy-deep);
  color: var(--white);
  border-color: var(--navy-deep);
}

.btn--dark:hover,
.btn--dark:focus-visible {
  background: var(--ink);
}

.btn--ghost {
  color: var(--ink);
  border-color: var(--line);
}

.contact__email {
  display: block;
  margin-top: 1rem;
  color: var(--navy);
  font-weight: 800;
}

.footer {
  background: #10100f;
  color: var(--white);
  padding: 3rem 0 1.4rem;
}

.footer__inner,
.footer__bottom {
  width: min(100% - 4rem, var(--max));
  margin: 0 auto;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr 1fr;
  gap: 2.4rem;
}

.footer__brand img {
  width: 160px;
  height: auto;
  margin-bottom: 1rem;
}

.footer p,
.footer span,
.footer a,
.footer button {
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.82rem;
}

.footer h2 {
  margin: 0 0 1rem;
  color: var(--white);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer__links,
.footer__contact {
  display: grid;
  align-content: start;
  gap: 0.42rem;
}

.footer button {
  width: fit-content;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.modal {
  width: min(92vw, 760px);
  max-height: min(86vh, 780px);
  border: 0;
  padding: 0;
  background: var(--paper-soft);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(8px);
}

.form-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden;
  clip-path: inset(50%);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
}

.contact-form,
.terms-content {
  position: relative;
  padding: clamp(1.4rem, 4vw, 2.5rem);
}

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-size: 1.45rem;
  line-height: 1;
}

.modal h2 {
  padding-right: 2.5rem;
  font-size: clamp(2rem, 5vw, 3rem);
}

.form-intro p:not(.eyebrow),
.terms-content p {
  color: var(--muted);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.4rem;
}

.form-grid label:first-child {
  grid-column: 1 / -1;
}

.contact-form label {
  display: grid;
  gap: 0.4rem;
  color: var(--ink);
  font-weight: 800;
  font-size: 0.86rem;
}

.contact-form input {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  padding: 0.75rem 0.9rem;
  outline: none;
}

.contact-form input:focus {
  border-color: var(--navy);
}

.form-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.form-status {
  min-height: 1.5rem;
  margin-bottom: 0;
  color: var(--navy);
  font-weight: 700;
}

.form-status.is-error {
  color: #9b2d20;
}

.form-status.is-success {
  color: #236b3c;
}

.terms-list {
  display: grid;
  gap: 1rem;
  max-height: min(58vh, 560px);
  overflow: auto;
  padding-right: 0.5rem;
}

.terms-list section {
  padding: 1rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.48);
}

.terms-list h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

@keyframes introPulse {
  0%, 100% { transform: scale(1); opacity: 0.86; }
  50% { transform: scale(1.035); opacity: 1; }
}

@keyframes titleLetterIn {
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1020px) {
  .nav {
    width: min(100% - 2rem, 1320px);
    grid-template-columns: auto 1fr auto;
  }

  .site-menu {
    position: fixed;
    top: calc(var(--header-height) - 1px);
    left: 0;
    right: 0;
    width: 100%;
    justify-self: stretch;
    box-sizing: border-box;
    display: grid;
    gap: 0;
    padding: 0.9rem max(2rem, calc((100vw - 1320px) / 2 + 2rem)) 1.15rem;
    border-top: 1px solid var(--line-dark);
    border-bottom: 1px solid var(--line-dark);
    background: rgba(9, 13, 14, 0.96);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }

  .site-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .site-header.is-scrolled .site-menu {
    top: 72px;
  }

  .site-menu a {
    padding: 0.85rem 0.65rem;
  }

  .site-menu a::after {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .catalog-button--header {
    display: none;
  }

  .product-grid,
  .product-details {
    grid-template-columns: repeat(2, 1fr);
  }

  .pillars__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pillar-card:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .pillar-card:nth-child(2) {
    border-right: 1px solid var(--line);
  }

  .pillar-card:last-child {
    grid-column: 1 / -1;
  }

  .solutions,
  .footer__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  :root {
    --header-height: 72px;
  }

  .site-menu {
    padding-inline: 1rem;
  }

  .nav,
  .hero__inner,
  .section,
  .pillars__inner,
  .product-details,
  .footer__inner,
  .footer__bottom {
    width: min(100% - 1.5rem, var(--max));
  }

  .brand {
    width: 116px;
  }

  .language-control select {
    min-height: 38px;
    padding-inline: 0.55rem;
  }

  .hero {
    min-height: 88svh;
  }

  .hero__media {
    background-position: 62% center;
  }

  .hero__overlay {
    background: linear-gradient(90deg, rgba(5,5,5,0.88), rgba(5,5,5,0.56));
  }

  .hero__inner {
    padding-top: calc(var(--header-height) + 4rem);
  }

  .hero__title {
    font-size: clamp(4.1rem, 20vw, 6.4rem);
  }

  .hero__slogan {
    letter-spacing: 0.18em;
  }

  .pillars__inner,
  .product-grid,
  .product-details,
  .form-grid,
  .form-actions {
    grid-template-columns: 1fr;
  }

  .pillar-card,
  .pillar-card:last-child {
    border-inline: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .solutions__image {
    min-height: 280px;
  }

  .footer__bottom {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .hero-letter {
    opacity: 1;
    transform: none;
  }
}

/* Responsive correction after visual QA */
@media (max-width: 680px) {
  html,
  body {
    overflow-x: hidden;
  }

  .nav {
    grid-template-columns: auto 1fr auto;
    gap: 0.45rem;
  }

  .brand {
    width: 104px;
  }

  .nav-actions {
    gap: 0.38rem;
  }

  .language-control select {
    min-width: 54px;
    min-height: 38px;
    padding-inline: 0.45rem;
  }

  .nav-toggle {
    display: block;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
  }

  .hero__copy-block {
    max-width: min(100%, 360px);
  }

  .hero__title {
    max-width: 100%;
    font-size: clamp(3.35rem, 16vw, 4.25rem);
    letter-spacing: 0;
    line-height: 0.9;
    white-space: nowrap;
  }

  .hero__slogan {
    max-width: 100%;
    font-size: 0.95rem;
    letter-spacing: 0.16em;
    line-height: 1.7;
  }

  .hero__description {
    max-width: 100%;
    font-size: 0.96rem;
  }

  .catalog-button--hero {
    max-width: 100%;
    padding-inline: 0.95rem;
    white-space: normal;
    text-align: center;
  }
}

@media (max-width: 400px) {
  .hero__title {
    font-size: clamp(3rem, 15vw, 3.7rem);
  }

  .hero__slogan {
    font-size: 0.88rem;
    letter-spacing: 0.12em;
  }
}


/* Header mobile alignment correction */
@media (max-width: 1020px) {
  .nav {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .nav-actions {
    min-width: 0;
    flex-shrink: 0;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 680px) {
  .nav {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .nav-actions {
    gap: 0.38rem;
    min-width: 0;
    flex-shrink: 0;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
}

/* Fixed right actions for responsive header */
@media (max-width: 1020px) {
  .nav-actions {
    position: fixed;
    top: 15px;
    right: 1rem;
    z-index: 80;
    width: 104px;
    justify-content: flex-end;
  }

  .language-control,
  .nav-toggle {
    flex: 0 0 auto;
  }

  .language-control select {
    width: 56px;
    text-align: center;
  }
}

@media (max-width: 680px) {
  .nav-actions {
    top: 16px;
    right: 0.75rem;
    width: 100px;
  }

  .language-control select {
    width: 54px;
  }
}

/* Explicit mobile controls: keep language and menu visible */
@media (max-width: 1020px) {
  .language-control {
    position: fixed;
    top: 15px;
    right: calc(1rem + 48px);
    z-index: 92;
  }

  .nav-toggle {
    position: fixed;
    top: 15px;
    right: 1rem;
    z-index: 93;
    display: inline-flex !important;
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 680px) {
  .language-control {
    top: 16px;
    right: calc(0.75rem + 44px);
  }

  .nav-toggle {
    top: 16px;
    right: 0.75rem;
    width: 38px;
    height: 38px;
  }
}

/* Requested refinements: cleaner first viewport, sharper header wordmark and scroll entrance */
.hero {
  min-height: 100svh;
}

.hero__inner {
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding-top: calc(var(--header-height) + 4rem);
  padding-bottom: 4.5rem;
}

.brand {
  width: 188px;
  height: 44px;
}

.scroll-reveal {
  opacity: 0;
  filter: blur(7px);
  transform: translateY(30px);
  transition:
    opacity 0.72s cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 0.72s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.72s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, filter, transform;
}

.scroll-reveal.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

.product-page {
  background: var(--paper);
}

.product-hero {
  min-height: 92svh;
  display: grid;
  align-items: center;
  padding: calc(var(--header-height) + 3rem) 0 5rem;
  background:
    linear-gradient(180deg, rgba(247, 243, 236, 0.82), rgba(247, 243, 236, 1)),
    radial-gradient(circle at 72% 22%, rgba(216, 200, 173, 0.34), transparent 32%);
}

.product-hero__inner {
  width: min(100% - 4rem, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}

.product-hero__copy {
  display: grid;
  align-content: center;
}

.product-hero__number {
  display: block;
  margin-bottom: 1.1rem;
  color: var(--navy);
  font-weight: 800;
  letter-spacing: 0.2em;
}

.product-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 8vw, 6.7rem);
  font-weight: 600;
  line-height: 0.94;
}

.product-hero p:not(.eyebrow) {
  max-width: 560px;
  color: var(--muted);
  font-size: 1rem;
}

.product-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1rem;
}

.product-hero__media {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--paper-soft);
  box-shadow: var(--shadow);
}

.product-hero__media img {
  width: 100%;
  aspect-ratio: 1.25;
  object-fit: cover;
}

.product-definition {
  padding-top: 0;
}

.definition-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.definition-grid--two {
  grid-template-columns: repeat(2, 1fr);
}

.definition-card {
  min-height: 260px;
  padding: clamp(1.4rem, 3vw, 2.3rem);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.38);
}

.definition-card span {
  display: block;
  margin-bottom: 1.2rem;
  color: var(--navy);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.definition-card h2 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  line-height: 1.02;
}

.definition-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 1020px) {
  .brand {
    width: 152px;
    height: 36px;
  }

  .product-hero__inner,
  .definition-grid {
    grid-template-columns: 1fr;
  }

  .product-hero {
    min-height: auto;
  }
}

@media (max-width: 680px) {
  .hero {
    min-height: 100svh;
  }

  .hero__inner {
    min-height: 100svh;
    padding-top: calc(var(--header-height) + 2.8rem);
    padding-bottom: 3.4rem;
  }

  .brand {
    width: 128px;
    height: 30px;
  }

  .product-hero__inner,
  .product-definition,
  .definition-grid {
    width: min(100% - 1.5rem, var(--max));
  }

  .product-hero {
    padding: calc(var(--header-height) + 2.6rem) 0 3rem;
  }

  .product-hero__actions {
    display: grid;
  }

  .product-hero__actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-reveal {
    opacity: 1;
    filter: none;
    transform: none;
  }
}

/* Header logo readability with original TEXORA PNG */
.brand {
  width: 168px;
  height: 64px;
}

@media (max-width: 1020px) {
  .brand {
    width: 142px;
    height: 54px;
  }
}

@media (max-width: 680px) {
  .brand {
    width: 118px;
    height: 45px;
  }
}
