:root {
  --graphite: #414042;
  --ink: #242426;
  --muted: #66717d;
  --copper: #98613a;
  --copper-2: #c08654;
  --copper-3: #cf935d;
  --copper-dark: #6f452e;
  --copper-soft: #af7548;
  --paper: #f7f5f2;
  --white: #ffffff;
  --line: rgba(65, 64, 66, .14);
  --shadow: 0 24px 70px rgba(20, 24, 31, .14);
  --radius: 8px;
  --container: min(1180px, calc(100vw - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  line-height: 1.65;
}

body.is-ready .hero-logo,
body.is-ready .hero-lead,
body.is-ready .hero-copy,
body.is-ready .hero-actions {
  animation: heroFadeUp .85s cubic-bezier(.2, .8, .2, 1) both;
}

body.is-ready .hero-lead {
  animation-delay: .12s;
}

body.is-ready .hero-copy {
  animation-delay: .22s;
}

body.is-ready .hero-actions {
  animation-delay: .32s;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.site-quick-actions {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 15;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.language-toggle,
.home-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 40px;
  padding-inline: 12px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: var(--radius);
  color: var(--white);
  background: rgba(65, 64, 66, .52);
  box-shadow: 0 16px 34px rgba(20, 24, 31, .18);
  backdrop-filter: blur(12px);
  cursor: pointer;
  font-weight: 900;
  letter-spacing: 0;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.language-toggle {
  min-width: 70px;
}

.home-action {
  min-width: 116px;
}

.language-toggle svg,
.home-action svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: currentColor;
}

.language-toggle:hover,
.home-action:hover {
  transform: translateY(-2px);
  border-color: rgba(207, 147, 93, .68);
  background: rgba(152, 97, 58, .72);
}

html.language-transition-arrive,
html.language-transition-lock,
body.language-transition-out {
  overflow: hidden;
}

body.language-transition-out {
  cursor: progress;
}

body.language-transition-out .language-toggle {
  pointer-events: none;
}

.language-transition {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, visibility .18s ease;
}

.language-transition::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .14), transparent 13%),
    radial-gradient(circle at 50% 50%, rgba(192, 128, 84, .32), transparent 36%),
    linear-gradient(135deg, rgba(152, 97, 58, .12), rgba(207, 147, 93, .18));
  opacity: 0;
}

body.language-transition-out .language-transition,
html.language-transition-arrive .language-transition {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.language-transition-out .language-transition::before,
html.language-transition-arrive .language-transition::before {
  animation: transitionGlow .82s ease both;
}

.transition-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50.4%;
  background:
    linear-gradient(135deg, rgba(152, 97, 58, .96), rgba(207, 147, 93, .92)),
    #98613a;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), inset 0 0 80px rgba(80, 45, 27, .24);
}

.transition-panel::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, .32);
}

.transition-panel-left {
  left: 0;
  transform: translateX(-102%);
}

.transition-panel-left::before {
  right: 0;
}

.transition-panel-right {
  right: 0;
  transform: translateX(102%);
}

.transition-panel-right::before {
  left: 0;
}

body.language-transition-out .transition-panel-left {
  animation: transitionDoorCloseLeft .7s cubic-bezier(.72, 0, .22, 1) both;
}

body.language-transition-out .transition-panel-right {
  animation: transitionDoorCloseRight .7s cubic-bezier(.72, 0, .22, 1) both;
}

html.language-transition-arrive .transition-panel-left {
  animation: transitionDoorOpenLeft .78s cubic-bezier(.72, 0, .2, 1) both;
}

html.language-transition-arrive .transition-panel-right {
  animation: transitionDoorOpenRight .78s cubic-bezier(.72, 0, .2, 1) both;
}

.transition-core {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-areas:
    "mark"
    "title";
  grid-template-rows: 188px auto;
  place-items: center;
  row-gap: 14px;
  width: min(430px, calc(100vw - 34px));
  min-height: 260px;
  opacity: 0;
  transform: scale(.92);
  text-align: center;
}

body.language-transition-out .transition-core {
  animation: transitionCoreIn .58s .14s cubic-bezier(.2, .8, .2, 1) both;
}

html.language-transition-arrive .transition-core {
  animation: transitionCoreOut .5s .18s ease both;
}

.transition-logo-badge {
  position: relative;
  grid-area: mark;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 0 1px rgba(192, 128, 84, .28), 0 24px 70px rgba(80, 45, 27, .28), 0 0 52px rgba(207, 147, 93, .38);
}

.transition-logo-badge::before {
  content: "";
  position: absolute;
  inset: -11px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, rgba(207, 147, 93, .88), transparent 38%, rgba(255, 255, 255, .36), transparent 72%, rgba(152, 97, 58, .74), transparent);
  filter: blur(.2px);
  animation: transitionOrbit 1.1s linear infinite;
  z-index: -1;
}

.transition-logo-badge::after {
  content: "";
  position: absolute;
  inset: -28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: 0 0 34px rgba(192, 128, 84, .24);
}

.transition-logo-badge img {
  width: 78px;
  height: 78px;
  object-fit: contain;
}

.transition-orbit {
  position: relative;
  grid-area: mark;
  z-index: 1;
  width: 188px;
  height: 188px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  box-shadow: inset 0 0 26px rgba(152, 97, 58, .14);
  animation: transitionPulse 1.2s ease-in-out infinite;
}

.transition-title {
  grid-area: title;
  margin-top: 0;
  color: var(--white);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
  text-shadow: 0 10px 26px rgba(0, 0, 0, .42);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn,
.mini-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: var(--radius);
  font-weight: 800;
  letter-spacing: 0;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}

.btn {
  position: relative;
  overflow: hidden;
  padding: 13px 22px;
  border: 1px solid transparent;
}

.btn::after {
  content: "";
  position: absolute;
  inset: -40% auto -40% -70%;
  width: 42%;
  transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .38), transparent);
  transition: left .48s ease;
}

.btn:hover,
.mini-link:hover {
  transform: translateY(-2px);
}

.btn:hover::after {
  left: 125%;
}

.btn-small {
  min-height: 40px;
  padding: 10px 16px;
  color: var(--white);
  background: linear-gradient(135deg, var(--copper), var(--copper-3));
  box-shadow: 0 12px 28px rgba(152, 97, 58, .26);
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--copper), var(--copper-3));
  box-shadow: 0 16px 38px rgba(152, 97, 58, .26);
}

.btn-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .08);
}

.btn-reset {
  border: 0;
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  color: var(--white);
  background: #131416;
}

.hero-media,
.hero-grid,
.hero-precision {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image:
    linear-gradient(90deg, rgba(9, 10, 12, .96) 0%, rgba(14, 16, 19, .86) 38%, rgba(14, 16, 19, .22) 70%),
    linear-gradient(180deg, rgba(152, 97, 58, .2), rgba(8, 9, 10, .58)),
    image-set(
      url("../img/hero/memold-hero.webp") type("image/webp"),
      url("../img/hero/memold-hero.jpg") type("image/jpeg")
    );
  background-position: center, center, center right;
  background-size: 100% 100%, 100% 100%, cover;
  background-repeat: no-repeat;
  transform: scale(1.01);
}

.hero-grid {
  opacity: .5;
  background-image:
    linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: linear-gradient(90deg, #000 0%, transparent 82%);
}

.hero-precision {
  z-index: 1;
  pointer-events: none;
  opacity: .76;
  mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .18) 30%, #000 52%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .18) 30%, #000 52%);
}

.hero-precision svg {
  width: 100%;
  height: 100%;
}

.scan-beam {
  position: absolute;
  top: -30%;
  bottom: -30%;
  left: 46%;
  width: 18%;
  background:
    linear-gradient(90deg, transparent, rgba(207, 147, 93, .08), rgba(207, 147, 93, .28), rgba(255, 255, 255, .12), transparent);
  filter: blur(.5px);
  transform: translateX(-170%) skewX(-18deg);
  animation: scanBeam 5.4s cubic-bezier(.45, 0, .2, 1) infinite;
}

.precision-corner {
  position: absolute;
  width: 112px;
  height: 112px;
  opacity: .52;
}

.precision-corner::before,
.precision-corner::after {
  content: "";
  position: absolute;
  background: linear-gradient(90deg, rgba(207, 147, 93, .12), rgba(207, 147, 93, .78));
}

.precision-corner::before {
  width: 100%;
  height: 1px;
}

.precision-corner::after {
  width: 1px;
  height: 100%;
}

.corner-tl {
  top: 13%;
  right: 33%;
}

.corner-br {
  right: 8%;
  bottom: 15%;
  transform: rotate(180deg);
}

.trace-lines path,
.measure-lines path {
  fill: none;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.trace-lines path {
  stroke: url(#traceCopper);
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-dasharray: 980;
  stroke-dashoffset: 980;
  filter: drop-shadow(0 0 8px rgba(207, 147, 93, .35));
  animation: traceDraw 7.4s cubic-bezier(.42, 0, .18, 1) infinite;
}

.trace-lines path:nth-child(2) {
  animation-delay: -1.5s;
}

.trace-lines path:nth-child(3) {
  animation-delay: -3s;
}

.trace-lines path:nth-child(4) {
  animation-delay: -4.4s;
}

.measure-lines path {
  stroke: rgba(255, 255, 255, .18);
  stroke-width: 1;
  opacity: .55;
  animation: measureGlow 4.8s ease-in-out infinite;
}

.measure-lines path:nth-child(2) {
  animation-delay: -1.2s;
}

.measure-lines path:nth-child(3) {
  animation-delay: -2.1s;
}

.measure-lines path:nth-child(4) {
  animation-delay: -3s;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  align-items: center;
  gap: 56px;
  min-height: 100svh;
  padding-block: 74px 74px;
}

.hero-content {
  max-width: 860px;
}

.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;
}

.hero-logo {
  width: min(49.3vw, 646px);
  height: auto;
  margin-bottom: 38px;
  filter: drop-shadow(0 24px 45px rgba(0, 0, 0, .28));
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--copper-3);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(68px, 10.6vw, 132px);
  line-height: .9;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  color: var(--ink);
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  color: var(--ink);
  line-height: 1.16;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 720px;
  margin-bottom: 18px;
  font-size: clamp(25px, 3.2vw, 46px);
  font-weight: 750;
  line-height: 1.08;
}

.hero-copy {
  max-width: 660px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, .76);
  font-size: 18px;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: rgba(18, 20, 22, .36);
  transform: translateX(-50%);
  backdrop-filter: blur(10px);
}

.scroll-cue span {
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--copper-3);
  border-bottom: 2px solid var(--copper-3);
  transform: rotate(45deg);
  animation: scrollCue 1.4s ease-in-out infinite;
}

.mini-link {
  min-height: 38px;
  padding: 8px 12px;
  color: var(--white);
  background: rgba(255, 255, 255, .11);
}

.section-tight,
.brand-section,
.solutions,
.final-cta {
  padding-block: 96px;
}

.section-heading {
  max-width: 760px;
}

.section-heading.compact {
  max-width: 920px;
  margin-bottom: 34px;
}

.section-heading.centered {
  margin-inline: auto;
  margin-bottom: 44px;
  text-align: center;
}

.section-heading.centered p:not(.eyebrow) {
  max-width: 760px;
  margin-inline: auto;
  color: var(--muted);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  box-shadow: 0 20px 55px rgba(20, 24, 31, .08);
}

.stat-card,
.solution-card {
  background: var(--white);
}

.stat-card {
  position: relative;
  overflow: hidden;
  min-height: 245px;
  padding: 28px;
  transition: transform .25s ease, box-shadow .25s ease;
}

.stat-card::after,
.solution-card::after,
.brand-copy::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(135deg, rgba(207, 147, 93, .18), transparent 42%);
  transition: opacity .25s ease;
  pointer-events: none;
}

.stat-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 36px;
  color: var(--copper);
  border: 1px solid rgba(152, 97, 58, .28);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 900;
}

.stat-card h3,
.solution-card h3 {
  margin-bottom: 12px;
  font-size: 22px;
}

.stat-card p,
.solution-card p,
.brand-copy p,
.final-cta p {
  color: var(--muted);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 60px rgba(20, 24, 31, .1);
}

.stat-card:hover::after,
.solution-card:hover::after,
.brand-copy:hover::after {
  opacity: 1;
}

.brand-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(152, 97, 58, .08), rgba(207, 147, 93, .1)),
    var(--white);
}

.brand-section::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .58;
  background: url("../img/pattern/precision-grid.svg") center / 760px auto repeat;
  pointer-events: none;
}

.two-column {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 70px;
  align-items: start;
}

.brand-copy {
  position: relative;
  overflow: hidden;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 20px 60px rgba(20, 24, 31, .08);
  backdrop-filter: blur(12px);
}

.check-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 18px 0 0;
  margin: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 22px;
  color: var(--graphite);
  font-weight: 800;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .7em;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--copper), var(--copper-3));
  transform: rotate(45deg);
}

.solutions {
  background: var(--paper);
}

.not-found-page {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100svh;
  overflow: hidden;
  padding-block: 118px 96px;
  color: var(--white);
  background: #131416;
}

.not-found-page::before,
.not-found-page::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.not-found-page::before {
  background:
    linear-gradient(90deg, rgba(9, 10, 12, .96), rgba(14, 16, 19, .82) 56%, rgba(14, 16, 19, .52)),
    image-set(
      url("../img/hero/memold-hero.webp") type("image/webp"),
      url("../img/hero/memold-hero.jpg") type("image/jpeg")
    ) center right / cover no-repeat;
}

.not-found-page::after {
  opacity: .32;
  background-image:
    linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 76px 76px;
}

.not-found-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  text-align: center;
}

.not-found-logo {
  width: min(320px, 72vw);
  height: auto;
  margin: 0 auto 34px;
}

.not-found-page h1 {
  margin-bottom: 18px;
  color: var(--white);
  font-size: clamp(40px, 7vw, 78px);
  line-height: 1;
}

.not-found-page p:not(.eyebrow) {
  max-width: 620px;
  margin-inline: auto;
  color: rgba(255, 255, 255, .76);
  font-size: 18px;
}

.not-found-actions {
  justify-content: center;
  margin-top: 34px;
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.solution-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.solution-card::before {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin-bottom: 28px;
  background: linear-gradient(90deg, var(--copper), var(--copper-3));
}

.solution-card:hover {
  transform: translateY(-8px);
  border-color: rgba(152, 97, 58, .36);
  box-shadow: 0 20px 55px rgba(20, 24, 31, .1);
}

.solution-card.featured {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(64, 39, 27, .18), rgba(64, 39, 27, .04)),
    linear-gradient(135deg, #6f452e 0%, #98613a 24%, #af7548 48%, #c08654 72%, #cf935d 100%);
}

.solution-card.featured::before {
  background: var(--white);
}

.solution-card.featured h3,
.solution-card.featured p {
  color: var(--white);
}

.final-cta {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 78% 28%, rgba(255, 255, 255, .18), transparent 26%),
    linear-gradient(120deg, rgba(64, 39, 27, .42), rgba(64, 39, 27, .08)),
    linear-gradient(120deg, #5d3827 0%, #98613a 26%, #af7548 50%, #c08654 76%, #cf935d 100%);
}

.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .3;
  background-image:
    linear-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .1) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(90deg, transparent, #000 35%, #000);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 360px);
  gap: 52px;
  align-items: center;
}

.final-cta h2,
.final-cta p {
  color: var(--white);
}

.final-cta p {
  max-width: 720px;
  opacity: .76;
}

.line-break {
  display: block;
}

.cta-brand-card {
  display: grid;
  justify-items: center;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--radius);
  background: rgba(65, 64, 66, .24);
  box-shadow: 0 24px 70px rgba(64, 39, 27, .22);
  backdrop-filter: blur(14px);
  transition: transform .25s ease, border-color .25s ease, background .25s ease, box-shadow .25s ease;
}

.cta-brand-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, .38);
  background: rgba(65, 64, 66, .32);
  box-shadow: 0 30px 82px rgba(64, 39, 27, .28);
}

.cta-brand-card img {
  width: min(359px, 100%);
  height: auto;
}

.site-footer {
  color: rgba(255, 255, 255, .74);
  background: #414042;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr .62fr;
  gap: 42px;
  padding-block: 64px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.footer-logo {
  width: min(238px, 100%);
  height: auto;
  margin-bottom: 20px;
}

.footer-logo-link {
  display: inline-flex;
  width: fit-content;
}

.footer-logo-link:focus-visible {
  outline: 2px solid var(--copper-3);
  outline-offset: 6px;
}

.footer-brand p {
  max-width: 340px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, .74);
}

.footer-brand .brand-note {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  padding: 8px 12px;
  border: 1px solid rgba(207, 147, 93, .38);
  border-radius: var(--radius);
  color: var(--white);
  background: rgba(152, 97, 58, .18);
  font-size: 14px;
  white-space: nowrap;
}

.footer-contact {
  display: grid;
  gap: 12px;
  font-style: normal;
}

.footer-contact a {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 66px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .045);
}

.footer-contact a:hover,
.social-links a:hover {
  color: var(--copper-3);
  border-color: rgba(207, 147, 93, .55);
  background: rgba(152, 97, 58, .18);
}

.footer-contact small {
  display: block;
  margin-bottom: 2px;
  color: var(--copper-3);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.footer-icon,
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius);
  color: var(--white);
  background: linear-gradient(135deg, var(--copper), var(--copper-3));
  box-shadow: 0 14px 28px rgba(20, 24, 31, .16);
}

.footer-icon svg,
.social-links svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.footer-social h2 {
  margin-bottom: 18px;
  color: var(--white);
  font-size: 18px;
  line-height: 1.2;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-links a {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
  color: var(--white);
  background: rgba(255, 255, 255, .05);
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 12;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius);
  color: var(--white);
  background: linear-gradient(135deg, var(--copper), var(--copper-3));
  box-shadow: 0 16px 36px rgba(20, 24, 31, .24);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .25s ease, visibility .25s ease, transform .25s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px);
}

.back-to-top svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.copyright {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding-block: 18px;
  color: rgba(255, 255, 255, .68);
  font-size: 14px;
}

.footer-legal-links {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-legal-links a {
  color: rgba(255, 255, 255, .76);
  text-decoration: none;
  transition: color .2s ease;
}

.footer-legal-links a:hover {
  color: var(--copper-3);
}

.legal-hero {
  padding-block: 150px 78px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(20, 22, 25, .94), rgba(65, 64, 66, .9)),
    radial-gradient(circle at 18% 12%, rgba(207, 147, 93, .24), transparent 34%);
}

.legal-hero .container {
  max-width: 980px;
}

.legal-hero h1 {
  margin: 16px 0 18px;
  color: var(--white);
  font-size: clamp(42px, 6vw, 78px);
}

.legal-hero p:last-child {
  max-width: 760px;
  color: rgba(255, 255, 255, .74);
  font-size: 18px;
  line-height: 1.7;
}

.legal-section {
  padding-block: 82px 96px;
  background: var(--paper);
}

.legal-wrap {
  display: grid;
  gap: 18px;
  max-width: 980px;
}

.legal-block {
  padding: 30px;
  border: 1px solid rgba(65, 64, 66, .08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .74);
  box-shadow: 0 18px 50px rgba(20, 24, 31, .06);
}

.legal-block h2 {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: clamp(24px, 3vw, 34px);
}

.legal-block p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
}

.cookie-consent {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  width: min(356px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--radius);
  color: var(--white);
  background:
    radial-gradient(circle at 92% 10%, rgba(207, 147, 93, .16), transparent 32%),
    linear-gradient(135deg, rgba(54, 53, 55, .98), rgba(31, 32, 34, .98));
  box-shadow: 0 22px 70px rgba(20, 24, 31, .34);
  backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity .24s ease, visibility .24s ease, transform .24s ease;
}

.cookie-consent.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cookie-copy {
  padding: 16px 16px 20px;
}

.cookie-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin-bottom: 10px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, .08);
  font-size: 13px;
  font-weight: 900;
}

.cookie-copy strong {
  display: block;
  margin-bottom: 10px;
  color: var(--white);
  font-size: 22px;
  line-height: 1.18;
}

.cookie-copy p {
  color: rgba(255, 255, 255, .76);
  font-size: 14px;
  line-height: 1.65;
}

.cookie-copy a {
  color: var(--copper-3);
  font-weight: 800;
  text-decoration: none;
}

.cookie-preferences {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.cookie-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, .86);
  font-size: 14px;
  font-weight: 800;
}

.cookie-option input {
  accent-color: var(--copper-3);
}

.cookie-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .94);
}

.cookie-btn {
  min-height: 60px;
  border: 0;
  border-right: 1px solid rgba(65, 64, 66, .12);
  border-radius: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  letter-spacing: 0;
  padding: 0 14px;
  color: #414042;
  background: transparent;
}

.cookie-btn:last-child {
  border-right: 0;
}

.cookie-btn:not(.ghost) {
  color: var(--copper-dark);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .72s ease, transform .72s cubic-bezier(.2, .8, .2, 1);
}

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

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes transitionDoorCloseLeft {
  from {
    transform: translateX(-102%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes transitionDoorCloseRight {
  from {
    transform: translateX(102%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes transitionDoorOpenLeft {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-102%);
  }
}

@keyframes transitionDoorOpenRight {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(102%);
  }
}

@keyframes transitionCoreIn {
  from {
    opacity: 0;
    transform: scale(.88);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes transitionCoreOut {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(.96);
  }
}

@keyframes transitionGlow {
  0% {
    opacity: 0;
  }
  42% {
    opacity: 1;
  }
  100% {
    opacity: .72;
  }
}

@keyframes transitionOrbit {
  to {
    transform: rotate(360deg);
  }
}

@keyframes transitionPulse {
  0%,
  100% {
    opacity: .36;
    transform: scale(.92);
  }
  50% {
    opacity: .82;
    transform: scale(1.08);
  }
}

@keyframes scanBeam {
  0% {
    opacity: 0;
    transform: translateX(-190%) skewX(-18deg);
  }
  18% {
    opacity: .82;
  }
  56% {
    opacity: .5;
  }
  100% {
    opacity: 0;
    transform: translateX(360%) skewX(-18deg);
  }
}

@keyframes traceDraw {
  0% {
    opacity: 0;
    stroke-dashoffset: 980;
  }
  24% {
    opacity: .78;
  }
  52% {
    stroke-dashoffset: 0;
    opacity: .68;
  }
  82% {
    opacity: .15;
  }
  100% {
    opacity: 0;
    stroke-dashoffset: -180;
  }
}

@keyframes measureGlow {
  0%,
  100% {
    opacity: .18;
  }
  45% {
    opacity: .62;
  }
}

@keyframes scrollCue {
  0% {
    opacity: 0;
    transform: translateY(-8px) rotate(45deg);
  }
  45% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(9px) rotate(45deg);
  }
}

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

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .hero-logo,
  .hero-lead,
  .hero-copy,
  .hero-actions,
  .transition-panel,
  .transition-core,
  .transition-logo-badge::before,
  .transition-orbit,
  .trace-lines path,
  .measure-lines path,
  .scan-beam,
  .scroll-cue span {
    animation: none !important;
  }
}
