/* Pixel-fidelity layer for the approved 1055 x 1491 Mineral/Oxide mockup. */
@font-face {
  font-family: "Upex Sans";
  src: url("/assets/fonts/lato-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Upex Sans";
  src: url("/assets/fonts/lato-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Upex Editorial";
  src: url("/assets/fonts/cormorant-garamond.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
}

@font-face {
  font-family: "Upex Signature";
  src: url("/assets/fonts/mrs-saint-delafield-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Upex Editorial";
  src: url("/assets/fonts/cormorant-garamond-300.woff2") format("woff2");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

:root {
  --serif: "Upex Editorial", Georgia, "Times New Roman", serif;
  --sans: "Upex Sans", "Segoe UI", Arial, sans-serif;
}

.site-header { background: #0d0e0e; }
.shelves-section {
  background:
    linear-gradient(rgba(20, 22, 20, .60), rgba(19, 20, 18, .66)),
    #111310 url("/assets/mineral-oxide-texture.webp") center / cover no-repeat;
}
.shelf-card {
  background:
    linear-gradient(145deg, rgba(34, 35, 31, .64), rgba(25, 27, 24, .72)),
    #20221f url("/assets/mineral-oxide-texture.webp") center / cover no-repeat;
  border-color: #494942;
  box-shadow: 0 7px 18px rgba(0, 0, 0, .18), inset 0 1px rgba(255, 255, 255, .025);
}
.about-section {
  background:
    linear-gradient(90deg, rgba(181, 166, 154, .45), rgba(181, 166, 154, .45)),
    #c9b9ad url("/assets/about-mineral-paper.webp") center / cover no-repeat;
}
.capabilities-section {
  background:
    linear-gradient(rgba(26, 27, 26, .65), rgba(22, 23, 22, .68)),
    #151615 url("/assets/mineral-oxide-texture.webp") center / cover no-repeat;
}
.cap-card {
  background:
    linear-gradient(180deg, rgba(40, 48, 41, .74), rgba(34, 41, 35, .76)),
    #283029 url("/assets/mineral-oxide-texture.webp") center / cover no-repeat;
  border-color: #414a40;
  box-shadow: inset 0 1px rgba(255, 255, 255, .025), 0 5px 14px rgba(0, 0, 0, .12);
}
.site-footer { background: #101211; }

.contact-section {
  color: #211e1a;
  border-bottom: 1px solid rgba(34, 29, 25, .22);
  background:
    linear-gradient(90deg, rgba(209, 194, 181, .52), rgba(196, 179, 165, .4)),
    #c9b9ad url("/assets/about-mineral-paper.webp") center / cover no-repeat;
  padding: 34px 0 36px;
}
.contact-layout {
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(560px, 1.55fr);
  align-items: stretch;
  gap: clamp(36px, 4.7vw, 76px);
}
.contact-intro {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 9px 0 8px;
}
.contact-kicker {
  margin: 0 0 9px;
  color: #a75f40;
  font: 700 10px/1 var(--sans);
  letter-spacing: .2em;
}
.contact-intro h2 {
  max-width: 450px;
  margin: 0;
  color: #211e1a;
  font: 300 clamp(35px, 3vw, 47px)/.98 var(--serif);
  letter-spacing: -.035em;
}
.contact-intro .heading-rule { margin: 17px 0 15px; }
.contact-intro > p:last-of-type {
  max-width: 415px;
  margin: 0;
  color: #554c44;
  font: 400 12px/1.55 var(--sans);
}
.contact-mark {
  position: absolute;
  right: 3%;
  bottom: -9px;
  color: rgba(118, 78, 58, .08);
  font: 300 116px/1 var(--serif);
  pointer-events: none;
}
.contact-form {
  position: relative;
  padding: 26px 28px 23px;
  border: 1px solid rgba(94, 103, 91, .76);
  border-radius: 3px;
  color: #e6ded6;
  background:
    linear-gradient(135deg, rgba(42, 49, 42, .91), rgba(22, 25, 22, .96)),
    #222822 url("/assets/mineral-oxide-texture.webp") center / cover no-repeat;
  box-shadow:
    0 16px 30px rgba(48, 38, 31, .17),
    inset 0 1px rgba(255, 255, 255, .045);
}
.contact-form::before {
  content: "";
  position: absolute;
  top: 0;
  left: 28px;
  width: 60px;
  height: 2px;
  background: #bc704b;
}
.contact-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px 14px;
}
.field { display: grid; gap: 7px; min-width: 0; }
.field > span {
  color: #c9bfb5;
  font: 700 8.5px/1 var(--sans);
  letter-spacing: .13em;
  text-transform: uppercase;
}
.field input,
.field textarea {
  width: 100%;
  margin: 0;
  border: 0;
  border-bottom: 1px solid rgba(221, 208, 196, .3);
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: #f0e9e2;
  font: 400 12px/1.4 var(--sans);
  transition: border-color .18s ease, background-color .18s ease;
}
.field input { height: 35px; padding: 2px 1px 7px; }
.field textarea { min-height: 57px; padding: 7px 1px 8px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: #89857e; opacity: 1; }
.field input:focus,
.field textarea:focus { border-color: #cb7951; background: rgba(255, 255, 255, .014); }
.message-field { grid-column: 1 / -1; }
.consent-field {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 16px;
  color: #aaa39b;
  font: 400 9px/1.45 var(--sans);
}
.consent-field input {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  margin: 0;
  accent-color: #b96c46;
}
.consent-field a {
  color: #d69776;
  text-decoration: underline;
  text-decoration-color: rgba(214, 151, 118, .5);
  text-underline-offset: 2px;
}
.form-submit-row {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  align-items: center;
  gap: 15px;
  margin-top: 15px;
}
.contact-submit {
  height: 39px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border: 1px solid #bd704b;
  color: #fff;
  background: #ba6d48;
  cursor: pointer;
  font: 700 10px/1 var(--sans);
  transition: background-color .18s ease, transform .18s ease;
}
.contact-submit:hover { background: #c67a53; transform: translateY(-1px); }
.contact-submit:disabled { cursor: wait; opacity: .64; transform: none; }
.form-status { margin: 0; color: #c8c0b8; font: 400 9.5px/1.4 var(--sans); }
.form-status:empty { display: none; }
.form-status.is-success { color: #aebd9d; }
.form-status.is-error { color: #e3a184; }
.form-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.legal-page {
  min-height: 100vh;
  background:
    linear-gradient(rgba(18, 20, 18, .7), rgba(15, 17, 15, .78)),
    #111310 url("/assets/mineral-oxide-texture.webp") center / cover fixed;
}
.legal-header {
  height: 72px;
  display: flex;
  align-items: center;
  padding: 0 clamp(28px, 5vw, 76px);
  border-bottom: 1px solid var(--line);
  background: #0d0e0e;
}
.legal-shell {
  width: min(calc(100% - 48px), 820px);
  margin: 0 auto;
  padding: clamp(58px, 8vw, 96px) 0;
}
.legal-shell h1 {
  margin: 0;
  color: #e8e0d8;
  font: 300 clamp(46px, 7vw, 72px)/1 var(--serif);
  letter-spacing: -.04em;
}
.legal-lead { max-width: 620px; margin: 15px 0 0; color: #aaa198; font-size: 14px; }
.legal-shell > .heading-rule { margin: 24px 0 35px; }
.legal-content { display: grid; gap: 25px; }
.legal-content section { padding-bottom: 23px; border-bottom: 1px solid rgba(225, 213, 201, .12); }
.legal-content h2 { margin: 0 0 7px; color: #ddd4cb; font: 400 24px/1.1 var(--serif); }
.legal-content p { max-width: 720px; margin: 0; color: #a9a198; font-size: 12px; line-height: 1.65; }
.legal-back { display: inline-block; margin-top: 30px; color: #c87a54; font-size: 11px; }

.flag {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  aspect-ratio: 1;
  border-radius: 50%;
}
.lang[data-locale="pt-br"] .flag::before {
  width: 8px;
  height: 8px;
  left: 3.5px;
  top: 3.5px;
}
.lang[data-locale="pt-br"] .flag::after {
  left: 5px;
  top: 5px;
}
.lang[data-locale="es"] .flag::before {
  top: 6px;
}
.shelf-icon .line-icon {
  stroke-width: 1.75;
}
.signature {
  display: block;
  margin: 13px 0 0 7px;
  font-family: "Upex Signature", cursive;
  font-size: 27px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  transform: none;
}

/* Keep the approved portrait untouched; only its responsive crop changes. */
.hero-image,
.about-photo {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #28221e;
}
.hero-image::before,
.about-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #28221e url("/assets/leonardo-approved-portrait.webp") center / cover no-repeat;
}
.hero-image img,
.about-photo img {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 0;
  width: auto;
  max-width: none;
  height: 100%;
  transform: translateX(-50%);
  object-fit: contain;
  object-position: center center;
  filter: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
}
.hero-image::after {
  content: none;
}
.hero-image {
  container-type: size;
}
.hero-image::before {
  content: none;
}
.hero-image img {
  inset: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  transform: none;
  object-fit: cover;
  object-position: center;
  -webkit-mask-image: none;
  mask-image: none;
}
.about-photo::before {
  content: none;
}
.about-photo img {
  inset: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  transform: none;
  object-fit: cover;
  object-position: center;
  -webkit-mask-image: none;
  mask-image: none;
}

/* The source portrait is 543:485. Anchor near the top as soon as a wider
   panel begins cropping vertically, while preserving the exact 1055px mockup. */
@container (min-aspect-ratio: 9 / 8) {
  .hero-image img {
    object-position: center top;
  }
}

@media (min-width: 901px) {
  .site-header { height: 62px; }
  .header-inner {
    width: 100%; max-width: 1055px; padding-inline: 38px;
    grid-template-columns: 170px 1fr auto; gap: 18px;
  }
  .wordmark { font-size: 31px; letter-spacing: -.035em; }
  .main-nav {
    justify-self: stretch; justify-content: center; gap: 27px;
    font-size: 11px; transform: translateX(-46px);
  }
  .main-nav a { height: 62px; }
  .main-nav a:first-child::after { bottom: 14px; }
  .language-switcher { justify-self: end; gap: 8px; }
  .lang { height: 27px; min-width: 58px; padding-inline: 8px; font-size: 10px; }
  .lang:first-child { min-width: 72px; }

  .hero {
    width: 100%; max-width: 1055px; height: 485px;
    grid-template-columns: 48.53% 51.47%;
  }
  .hero-copy {
    padding: 48px 48px 45px 54px;
    background: linear-gradient(135deg, rgba(20, 22, 20, .55), rgba(15, 16, 15, .28)),
      #111312 url("/assets/mineral-oxide-texture.webp") center / cover no-repeat;
  }
  .hero-copy::before {
    opacity: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='4' seed='11'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.62'/%3E%3C/svg%3E");
    background-size: 220px 220px; mix-blend-mode: soft-light;
  }
  .hero-copy::after {
    background: transparent;
  }
  .hero-copy > * { transform: translateY(10px); }
  .eyebrow { margin-bottom: 3px; font-size: 11px; letter-spacing: .17em; }
  .hero h1 { font-size: 76px; line-height: .94; font-weight: 300; letter-spacing: -.045em; color: #ded7d0; }
  .hero-lead { max-width: 410px; margin: 16px 0 15px; font-size: 25px; line-height: 1.08; font-weight: 300; color: #d4cdc6; }
  .short-rule { width: 50px; margin: 4px 0 18px; }
  .hero-body { max-width: 380px; font-size: 13px; line-height: 1.42; }
  .hero-actions { gap: 17px; margin-top: 22px; }
  .btn { min-width: 188px; height: 40px; padding-inline: 18px; font-size: 11px; }
  .btn.secondary { min-width: 146px; }

  .section-shell { width: calc(100% - 80px); max-width: 975px; }
  .shelves-section { height: 274px; padding: 18px 0 20px; }
  .section-title-row { margin-bottom: 10px; }
  .section-title-row h2 { font-size: 29px; line-height: 1; }
  .heading-rule { width: 42px; margin-top: 9px; }
  .shelves-grid { gap: 8px; }
  .shelf-card { height: 186px; padding: 17px 15px 14px; }
  .shelf-icon { width: 50px; height: 50px; margin-bottom: 17px; }
  .shelf-card h3 { margin-bottom: 5px; font-size: 18px; }
  .shelf-card p { font-size: 11px; line-height: 1.34; }
  .card-arrow { right: 16px; bottom: 15px; }

  .about-section { height: 263px; padding: 18px 0; }
  .about-grid {
    width: calc(100% - 120px); max-width: 935px;
    grid-template-columns: 264px 255px 1fr; gap: 32px;
  }
  .about-photo { height: 226px; }
  .about-copy { transform: translateY(6px); }
  .about-kicker { margin-bottom: 4px; }
  .about-copy h2 { font-size: 32px; }
  .about-copy .short-rule.dark { margin-top: 14px; }
  .about-copy p:not(.about-kicker) { font-size: 12px; line-height: 1.42; }
  .signature { margin-top: 13px; font-size: 27px; }
  .values { padding-left: 30px; gap: 11px; }
  .value-item { grid-template-columns: 44px 1fr; }
  .value-icon { width: 40px; height: 40px; padding: 9px; }
  .value-item strong { font-size: 15px; }
  .value-item small { font-size: 9px; }

  .capabilities-section { height: 206px; padding: 18px 0 20px; }
  .capabilities-section .section-shell { width: calc(100% - 76px); max-width: 979px; }
  .capabilities-section .section-title-row { padding-left: 6px; }
  .capabilities-section .section-title-row { margin-bottom: 7px; }
  .capabilities-section .heading-rule { margin-top: 6px; }
  .cap-grid { gap: 8px; }
  .cap-card { height: 57px; }
  .cap-card strong { font-size: 14px; }

  .contact-section { min-height: 320px; }

  .site-footer { height: 201px; padding: 10px 0 42px; }
  .footer-grid { grid-template-columns: 229px 238px 120px 174px 118px; gap: 24px; }
  .footer-wordmark { font-size: 23px; }
  .brand-seal { width: 90px; height: 90px; }
  .seal-wrap { justify-content: flex-start; margin-top: 10px; }
  .copyright { left: 38px; bottom: 31px; }

  .cookie-banner {
    left: auto; right: 38px; transform: none;
    width: 728px; min-height: 65px; bottom: 9px;
    padding: 10px 17px; gap: 20px;
  }
  .cookie-banner p { font-size: 9.5px; line-height: 1.4; }
  .cookie-actions { gap: 10px; }
  .cookie-actions button { min-width: 94px; height: 33px; padding: 0 12px; }

}

@media (min-width: 1056px) {
  .header-inner, .hero { max-width: none; }
  .header-inner { padding-inline: clamp(38px, 3.6vw, 68px); }
  .hero {
    height: clamp(485px, 42vw, 640px);
    grid-template-columns: minmax(500px, 48.53%) minmax(0, 1fr);
  }
  .hero-copy { padding-left: clamp(54px, 5.1vw, 98px); }
  .hero h1 { font-size: 76px; }
  .hero-lead { max-width: 500px; font-size: 25px; }
  .hero-body { max-width: 500px; font-size: clamp(12px, .88vw, 14px); }
  .section-shell { width: calc(100% - 80px); max-width: 1360px; }
  .capabilities-section .section-shell { width: calc(100% - 80px); max-width: 1360px; }
  .about-grid {
    width: calc(100% - 120px); max-width: 1320px;
    grid-template-columns: minmax(264px, 315px) 255px 1fr;
  }
  .footer-grid { grid-template-columns: 1.15fr 1.18fr .7fr .7fr 118px; }
}

@media (min-width: 1440px) {
  .section-shell,
  .capabilities-section .section-shell,
  .about-grid {
    width: calc(100% - 196px);
    max-width: none;
  }
  .shelves-section, .about-section, .capabilities-section, .site-footer { height: auto; }
  .shelves-section { min-height: 292px; padding-block: 22px 24px; }
  .shelf-card { height: 194px; }
  .about-section { min-height: 285px; padding-block: 22px; }
  .about-grid { min-height: 241px; }
  .about-photo { height: 241px; }
  .capabilities-section { min-height: 218px; padding-block: 20px 22px; }
  .contact-section { min-height: 332px; padding-block: 36px 38px; }
  .site-footer { min-height: 216px; }
}

@media (max-width: 900px) {
  .hero { width: 100%; }
  .hero-copy { padding-inline: clamp(28px, 7vw, 58px); }
  .hero-image { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .06); }
  .about-photo { height: auto; aspect-ratio: 264 / 226; }
  .section-shell { width: calc(100% - clamp(32px, 8vw, 64px)); }
  .shelves-section { padding-block: 28px; }
  .shelves-grid { gap: 12px; }
  .about-section { padding-block: 28px; }
  .capabilities-section { padding-block: 28px; }
  .contact-section { padding-block: 34px; }
  .contact-layout { grid-template-columns: 1fr; gap: 25px; }
  .contact-intro h2 { max-width: 620px; }
  .contact-intro > p:last-of-type { max-width: 600px; }
  .contact-mark { display: none; }
  .site-footer { padding-top: 28px; }
}

@media (max-width: 620px) {
  .site-header { position: relative; }
  .header-inner { min-height: 68px; }
  .wordmark { font-size: 27px; }
  .hero-copy { min-height: 430px; }
  .hero-image { height: min(100vw, 470px); }
  .hero-image img {
    -webkit-mask-image: none;
    mask-image: none;
  }
  .section-title-row h2 { font-size: 28px; }
  .shelves-grid { grid-template-columns: 1fr; }
  .shelf-card { min-height: 154px; height: auto; }
  .about-photo { height: auto; aspect-ratio: 264 / 226; }
  .cap-card { min-height: 60px; height: auto; }
  .contact-fields { grid-template-columns: 1fr; }
  .message-field { grid-column: auto; }
  .contact-form { padding: 24px 20px 22px; }
  .form-submit-row { grid-template-columns: 1fr; }
  .contact-submit { width: 100%; }
  .footer-grid { gap: 24px 18px; }
}

/* About institutional expansion: preserve the approved visual system while
   giving the narrative and pillars the horizontal space they require. */
.about-copy { transform: none; }
.about-copy .about-body {
  display: grid;
  gap: 12px;
}
.about-copy .about-body p {
  max-width: none;
  margin: 0;
  color: #514940;
  font-size: 12px;
  line-height: 1.55;
}
.about-copy .about-body p:last-child {
  color: #342e29;
  font-weight: 700;
}
.about-copy .signature { margin-top: 18px; }

@media (min-width: 1320px) {
  .about-section {
    height: auto;
    min-height: 0;
    padding: 32px 0 34px;
  }
  .about-grid {
    width: calc(100% - clamp(120px, 10.2vw, 196px));
    max-width: none;
    height: auto;
    min-height: 0;
    grid-template-columns: minmax(270px, 340px) minmax(500px, 700px) minmax(330px, 1fr);
    gap: clamp(28px, 3vw, 56px);
    align-items: start;
  }
  .about-photo {
    width: 100%;
    height: auto;
    aspect-ratio: 1353 / 1162;
    align-self: start;
  }
  .about-copy { align-self: start; padding-top: 3px; }
  .about-copy h2 { font-size: 32px; }
  .about-copy .short-rule.dark { margin: 14px 0 18px; }
  .values {
    height: auto;
    min-height: 100%;
    align-self: stretch;
    align-content: start;
    gap: 20px;
    padding: 8px 0 8px clamp(30px, 2.5vw, 46px);
  }
  .value-item {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
  }
  .value-icon { width: 40px; height: 40px; padding: 9px; }
  .value-item strong { font-size: 16px; }
  .value-item small { margin-top: 3px; font-size: 10px; line-height: 1.4; }
}

@media (min-width: 1800px) {
  .values {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 34px;
  }
}

@media (min-width: 901px) and (max-width: 1319px) {
  .about-section { height: auto; padding: 28px 0 30px; }
  .about-grid {
    width: calc(100% - 80px);
    max-width: none;
    height: auto;
    grid-template-columns: 264px minmax(0, 1fr);
    gap: 30px 34px;
    align-items: start;
  }
  .about-photo {
    width: 100%;
    height: auto;
    aspect-ratio: 1353 / 1162;
  }
  .about-copy { align-self: start; padding-top: 3px; }
  .about-copy .short-rule.dark { margin: 14px 0 18px; }
  .values {
    grid-column: 1 / -1;
    height: auto;
    border-top: 1px solid var(--line-dark);
    border-left: 0;
    padding: 22px 0 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 34px;
  }
  .value-item { grid-template-columns: 44px minmax(0, 1fr); gap: 11px; }
  .value-item small { margin-top: 2px; font-size: 10px; line-height: 1.4; }
}

@media (max-width: 900px) {
  .about-section { height: auto; }
  .about-grid { height: auto; align-items: start; }
  .about-copy { align-self: start; }
  .about-copy .short-rule.dark { margin-bottom: 18px; }
  .about-copy .about-body p { font-size: 12px; line-height: 1.55; }
  .values { height: auto; }
  .value-item small { font-size: 10px; line-height: 1.4; }
}
