/* Montvera LLC website styles */

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --tint: #f3f4f6;
  --navy: #0f1e36;
  --navy-2: #1b2d4b;
  --ink: #2e333a;
  --muted: #5b636e;
  --rule: #dcdfe4;
  --rule-strong: #c5cad2;
  --brass: #b8975f;
  --brass-ink: #86672f;
  --on-navy: #c9d0dc;
  --error: #a3352b;

  --sans: "Manrope", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --display: var(--sans);

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(4rem, 9vw, 7.5rem);
  --content: 1240px;
}

/* Base ------------------------------------------------------------------ */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem); line-height: 1.08; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.7rem, 1.25rem + 1.5vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 1.05rem + 0.3vw, 1.25rem); font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--navy);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  text-decoration-color: var(--brass);
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
a:hover { color: var(--brass-ink); }

:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

address { font-style: normal; }

.lead {
  font-size: clamp(1.125rem, 1.03rem + 0.4vw, 1.35rem);
  line-height: 1.55;
  color: var(--navy);
  font-weight: 500;
  letter-spacing: -0.005em;
}

.muted { color: var(--muted); }
.small { font-size: 0.875rem; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; color: #fff; }

/* Layout ---------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: calc(var(--content) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); }
.section--tint { background: var(--tint); }
.section--tight { padding-block: calc(var(--section) * 0.6); }
.section--flush-top { padding-top: 0; }

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
.section-head > div { max-width: 40rem; }
.section-head p { margin-top: 1rem; color: var(--muted); }
.section-head > a { font-weight: 500; white-space: nowrap; }

/* Header ---------------------------------------------------------------- */

.utility {
  background: var(--navy);
  color: var(--on-navy);
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
}
.utility .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 2.25rem;
}
.utility a { color: #fff; text-decoration: none; }
.utility a:hover { text-decoration: underline; color: #fff; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.site-header.is-scrolled { box-shadow: 0 12px 30px -20px rgba(15, 30, 54, 0.4); }
.site-header .container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 4.75rem;
}

.brand { display: inline-flex; margin: 0; line-height: 0; }
.brand img { width: auto; height: 40px; }

.nav ul {
  display: flex;
  gap: clamp(1rem, 1.7vw, 1.9rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav a {
  position: relative;
  display: block;
  padding: 0.4rem 0;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.05, 0.7, 0.1, 1);
}
.nav a:hover { color: var(--navy); }
.nav a:hover::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--navy); }
.nav a[aria-current="page"]::after { background: var(--brass); transform: scaleX(1); }

.nav-mobile { display: none; }
.nav-mobile summary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  padding: 0 0.9rem;
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  color: var(--navy);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile summary svg { width: 18px; height: 18px; }
.nav-mobile .icon-close { display: none; }
.nav-mobile[open] .icon-open { display: none; }
.nav-mobile[open] .icon-close { display: block; }
.nav-mobile nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--rule);
  box-shadow: 0 18px 30px -22px rgba(15, 30, 54, 0.45);
}
.nav-mobile ul { margin: 0; padding: 0.25rem var(--gutter) 1rem; list-style: none; }
.nav-mobile a {
  display: block;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--rule);
  color: var(--navy);
  font-weight: 500;
  text-decoration: none;
}
.nav-mobile li:last-child a { border-bottom: 0; }
.nav-mobile a[aria-current="page"] { color: var(--brass-ink); }

@media (max-width: 1080px) {
  .nav { display: none; }
  .nav-mobile { display: block; }
}

/* Buttons --------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0 1.6rem;
  border: 1px solid var(--navy);
  border-radius: 2px;
  font: 500 0.9375rem/1.2 var(--sans);
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-2); border-color: var(--navy-2); color: #fff; }
.btn--ghost { background: transparent; color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn--light { border-color: rgba(255, 255, 255, 0.7); background: transparent; color: #fff; }
.btn--light:hover { background: #fff; border-color: #fff; color: var(--navy); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Home: hero ------------------------------------------------------------ */

.hero { padding-block: clamp(3rem, 7vw, 6.5rem) clamp(5rem, 9vw, 8rem); }
.hero .container { align-items: center; }
.hero__copy { grid-column: 1 / span 6; }
.hero__copy h1 {
  font-size: clamp(2.5rem, 1.5rem + 3.4vw, 4.1rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.hero__sub {
  max-width: 33em;
  margin-top: 1.75rem;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.2rem);
}
.hero__copy .actions { margin-top: 2.25rem; }

.hero__media { grid-column: 8 / span 5; position: relative; }
.hero__photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--navy);
}
.hero__inset {
  position: absolute;
  top: 2.5rem;
  left: -24%;
  width: 46%;
  margin: 0;
  border: 6px solid #fff;
  background: #fff;
  box-shadow: 0 24px 48px -28px rgba(15, 30, 54, 0.55);
}
.hero__inset img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.register {
  position: absolute;
  left: -34%;
  bottom: -3.25rem;
  width: min(23rem, 88%);
  padding: 1.4rem 1.6rem 1.3rem;
  background: #fff;
  border: 1px solid var(--rule);
  border-top: 3px solid var(--brass);
  box-shadow: 0 30px 60px -30px rgba(15, 30, 54, 0.45);
}
.register h2 { font-size: 1.3rem; margin-bottom: 0.85rem; }
.register dl {
  display: grid;
  grid-template-columns: auto 1fr;
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.4;
}
.register dt,
.register dd { padding: 0.6rem 0; border-top: 1px solid var(--rule); }
.register dt { padding-right: 1.1rem; color: var(--muted); }
.register dd { margin: 0; color: var(--navy); font-weight: 500; }
.register__link { display: inline-block; margin-top: 0.9rem; font-size: 0.875rem; font-weight: 500; }

@media (prefers-reduced-motion: no-preference) {
  .hero__copy > * { animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero__copy > :nth-child(2) { animation-delay: 0.1s; }
  .hero__copy > :nth-child(3) { animation-delay: 0.2s; }
  .hero__inset { animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.35s both; }
  .register { animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.55s both; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* Home: intro and roles ------------------------------------------------- */

.split__aside { grid-column: 1 / span 4; }
.split__aside h2 + p { margin-top: 1.25rem; }
.split__main { grid-column: 6 / span 7; }
.split__main .lead { margin-bottom: 1.25em; }

.roles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gutter);
  margin: clamp(3rem, 6vw, 5rem) 0 0;
  padding: 0;
  list-style: none;
}
.roles li { padding-top: 1.25rem; border-top: 1px solid var(--navy); }
.roles h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.roles p { color: var(--muted); font-size: 0.9375rem; }

/* Product categories ---------------------------------------------------- */

.categories {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gutter);
  margin: 0;
  padding: 0;
  list-style: none;
}
.category img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #e4e7eb;
}
.category h3 { margin: 1.25rem 0 0.5rem; font-size: 1.35rem; }
.category h3 a { text-decoration: none; }
.category h3 a:hover { text-decoration: underline; }
.category p { color: var(--muted); font-size: 0.9375rem; }

/* Home: transaction sequence -------------------------------------------- */

.sequence {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sequence li {
  position: relative;
  padding-top: 1.4rem;
  /* drawn as a background so the line can grow during the reveal */
  background: linear-gradient(var(--rule-strong), var(--rule-strong)) no-repeat 0 0 / 100% 1px;
}
.sequence li::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brass);
}
.sequence .num {
  display: block;
  margin-bottom: 0.7rem;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--brass-ink);
}
.sequence h3 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0;
}

/* Dark band with trade flow --------------------------------------------- */

.band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: var(--section);
  background:
    radial-gradient(60rem 30rem at 85% 20%, rgba(184, 151, 95, 0.12), rgba(184, 151, 95, 0) 65%),
    radial-gradient(50rem 30rem at 0% 100%, rgba(27, 45, 75, 0.9), rgba(27, 45, 75, 0) 70%),
    var(--navy);
  color: var(--on-navy);
}
.band h2 { color: #fff; }
.band__copy { max-width: 40rem; }
.band__copy p { margin-top: 1.25rem; }
.band .btn { margin-top: 3rem; }

.flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4.5rem;
  margin: clamp(2.5rem, 5vw, 4rem) 0 0;
  padding: 0;
  list-style: none;
}
.flow li {
  position: relative;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
}
.flow li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 2.15rem;
  right: -3.6rem;
  width: 2.6rem;
  height: 1px;
  background: var(--brass);
}
.flow li:not(:last-child)::before {
  content: "";
  position: absolute;
  top: calc(2.15rem - 4px);
  right: -3.6rem;
  width: 8px;
  height: 8px;
  border-top: 1px solid var(--brass);
  border-right: 1px solid var(--brass);
  transform: rotate(45deg);
}
.flow .flow__self { border-top: 2px solid var(--brass); }
.flow__role {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--brass);
  font-size: 0.875rem;
  font-weight: 500;
}
.flow__place {
  display: block;
  font-size: clamp(1.15rem, 1.05rem + 0.45vw, 1.4rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: #fff;
}

.flow--light li { border-top-color: var(--rule-strong); }
.flow--light .flow__self { border-top-color: var(--brass); }
.flow--light .flow__role { color: var(--brass-ink); }
.flow--light .flow__place { color: var(--navy); }

/* Checklists ------------------------------------------------------------ */

.checklist {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}
.checklist li {
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--rule);
}
.checklist svg { width: 1.25rem; height: 1.25rem; margin-top: 0.2rem; color: var(--brass-ink); }

.dash-list { margin: 1rem 0 0; padding: 0; list-style: none; }
.dash-list li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.75rem;
  border-bottom: 1px solid var(--rule);
}
.dash-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.3rem;
  width: 0.9rem;
  height: 1px;
  background: var(--brass);
}

/* Call to action -------------------------------------------------------- */

.cta .container { align-items: end; }
.cta__text { grid-column: 1 / span 6; }
.cta__text p { margin-top: 1rem; color: var(--muted); }
.cta__actions {
  grid-column: 8 / span 5;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}
.cta__email {
  font-size: clamp(1.3rem, 1rem + 1.1vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-decoration: none;
  border-bottom: 1px solid var(--brass);
  overflow-wrap: anywhere;
}

/* Inner pages ----------------------------------------------------------- */

.page-head { padding-block: clamp(3rem, 7vw, 6rem) clamp(2.25rem, 4.5vw, 3.75rem); }
.page-head h1 { max-width: 15em; }
.page-head .lead { max-width: 36em; margin-top: 1.5rem; }
.page-head .meta { margin-top: 1.25rem; color: var(--muted); font-size: 0.9375rem; }
.page-head .actions { margin-top: 2rem; }

.banner { margin: 0 auto; }
.banner img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  background: var(--navy);
}

.text-col { max-width: 40rem; }

.about__text { grid-column: 1 / span 6; }
.about__text p:first-child { margin-top: 0; }
.about__aside { grid-column: 8 / span 5; }

.panel { padding: clamp(1.5rem, 3vw, 2.25rem); background: var(--tint); }
.panel h2 { font-size: 1.5rem; margin-bottom: 1.25rem; }

.facts {
  display: grid;
  grid-template-columns: minmax(8rem, auto) 1fr;
  margin: 0;
  border-top: 1px solid var(--navy);
}
.facts dt,
.facts dd { padding: 0.85rem 0; border-bottom: 1px solid var(--rule-strong); }
.facts dt { padding-right: 1.25rem; color: var(--muted); font-size: 0.875rem; line-height: 1.6; }
.facts dd { margin: 0; color: var(--navy); font-weight: 500; overflow-wrap: anywhere; }
.panel .facts dt { color: #535b66; }

.pillars {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--gutter);
  margin: 0;
  padding: 0;
  list-style: none;
}
.pillars li { padding-top: 1.1rem; border-top: 1px solid var(--navy); }
.pillars h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.pillars p { color: #535b66; font-size: 0.9375rem; }

/* Products page */

.products { border-bottom: 1px solid var(--rule); }
.product {
  align-items: center;
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
  border-top: 1px solid var(--rule);
  scroll-margin-top: 6rem;
}
.product > * { grid-row: 1; }
.product__media { grid-column: 1 / span 5; }
.product__body { grid-column: 7 / span 5; }
.product:nth-child(even) .product__media { grid-column: 8 / span 5; }
.product:nth-child(even) .product__body { grid-column: 2 / span 5; }
.product__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #e4e7eb; }
.product h2 { margin-bottom: 1rem; }
.product p { max-width: 30em; }
.product__link { display: inline-block; margin-top: 1.25rem; font-weight: 500; }

.note {
  max-width: 52rem;
  padding: 1.5rem 1.75rem;
  border-left: 3px solid var(--brass);
  background: var(--tint);
}
.note h2 { font-size: 1.3rem; margin-bottom: 0.6rem; }
.note + .small { margin-top: 1.25rem; }

/* How we work page */

.ledger { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--navy); }
.ledger li {
  display: grid;
  grid-template-columns: 5rem minmax(0, 4fr) minmax(0, 7fr);
  gap: var(--gutter);
  align-items: baseline;
  padding-block: clamp(1.75rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--rule);
}
.ledger .num {
  font-size: clamp(1.75rem, 1.5rem + 0.9vw, 2.4rem);
  font-weight: 700;
  line-height: 1;
  color: var(--brass-ink);
}
.ledger h2 { font-size: clamp(1.35rem, 1.2rem + 0.6vw, 1.75rem); }

.model {
  padding: clamp(2rem, 5vw, 4rem);
  background: var(--navy);
  border-top: 3px solid var(--brass);
  color: var(--on-navy);
}
.model__title { grid-column: 1 / span 4; color: #fff; }
.model__text { grid-column: 6 / span 7; }
.model__text p { font-size: 1.125rem; }

/* Topic rows (markets, compliance) */

.topic {
  padding-block: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--rule);
}
.topic:first-child { border-top: 0; padding-top: 0; }
.topic__title { grid-column: 1 / span 4; }
.topic__title h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); }
.topic__body { grid-column: 6 / span 7; }
.topic__wide { grid-column: 1 / -1; }
.topic__wide .flow { margin-top: 1rem; }
.section-head--ruled { padding-top: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--rule); }

/* Legal pages */

.prose { max-width: 46rem; }
.prose h2 { margin: 2.75rem 0 1rem; font-size: clamp(1.4rem, 1.25rem + 0.5vw, 1.7rem); }
.prose h2:first-child { margin-top: 0; }
.prose ul { margin: 0 0 1em; padding-left: 1.25rem; }
.prose li { margin-bottom: 0.4rem; }
.prose li::marker { color: var(--brass-ink); }

/* Contact page and form ------------------------------------------------- */

.contact__details { grid-column: 1 / span 4; }
.contact__form { grid-column: 6 / span 7; scroll-margin-top: 6rem; }
.contact__details h2,
.contact__form h2 { font-size: 1.6rem; margin-bottom: 1.5rem; }
.contact__details .facts { grid-template-columns: 1fr; }
.contact__details .facts dt { padding-bottom: 0; border-bottom: 0; }
.contact__details .facts dd { padding-top: 0.15rem; }

.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem 1.5rem;
}
.field { display: flex; flex-direction: column; gap: 0.45rem; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { color: var(--navy); font-size: 0.9375rem; font-weight: 500; }
.field .optional { color: var(--muted); font-weight: 400; }
.field input,
.field textarea {
  width: 100%;
  min-height: 3.1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}
.field textarea { min-height: 10rem; resize: vertical; line-height: 1.55; }
.field input:hover,
.field textarea:hover { border-color: #9aa2ad; }
.field input:focus,
.field textarea:focus { outline: 2px solid var(--brass); outline-offset: 0; border-color: var(--navy); }
.field .hint { color: var(--muted); font-size: 0.8125rem; }
.field.has-error input,
.field.has-error textarea { border-color: var(--error); }
.field .error-text { color: var(--error); font-size: 0.875rem; }

.hp-field {
  position: absolute !important;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__footer { grid-column: 1 / -1; display: grid; gap: 1.25rem; }
.form__notice {
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--brass);
  background: var(--tint);
  color: var(--ink);
  font-size: 0.9375rem;
}
.form__privacy { color: var(--muted); font-size: 0.875rem; }
.form__footer .btn { justify-self: start; min-width: 12rem; }

.form-status {
  grid-column: 1 / -1;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--navy);
  background: var(--tint);
  color: var(--navy);
  font-weight: 500;
}
.form-status--error { border-left-color: var(--error); background: #fbf1f0; color: #7d2820; }
.form-status:focus { outline: none; }

/* Photography components ------------------------------------------------ */

.roles--media li { padding-top: 0; border-top: 0; }
.roles--media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #e4e7eb; }
.roles--media h3 { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--navy); }

.product__gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}
.product__gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #e4e7eb; }

.ledger--media li {
  grid-template-columns: 4rem minmax(0, 3fr) minmax(0, 5fr) minmax(0, 3fr);
  align-items: center;
}
.ledger__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #e4e7eb; }

.photo-trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gutter);
  margin: 0;
  padding: 0;
  list-style: none;
}
.photo-trio img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #e4e7eb; }

.aside-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-top: 2rem; }
.contact__photo { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; margin-bottom: 2rem; }

@media (max-width: 960px) {
  .hero__inset { display: none; }
  .ledger--media li { grid-template-columns: 3.5rem minmax(0, 1fr); }
  .ledger--media .ledger__img { grid-column: 2; max-width: 24rem; }
}

@media (max-width: 640px) {
  .photo-trio { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photo-trio li:first-child { grid-column: 1 / -1; }
  .product__gallery { gap: 0.5rem; }
  .site-header .brand img { height: 32px; }
}

/* Footer ---------------------------------------------------------------- */

.site-footer {
  padding-block: clamp(3.5rem, 6vw, 5rem) 2rem;
  background: var(--navy);
  color: var(--on-navy);
  font-size: 0.9375rem;
  line-height: 1.7;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1.5fr 1.2fr 0.8fr;
  gap: var(--gutter);
}
.site-footer h2 {
  margin-bottom: 0.9rem;
  color: #fff;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.site-footer .brand { margin-bottom: 1.1rem; }
.site-footer .brand img { height: 36px; }
.site-footer a { color: #fff; text-decoration-color: rgba(184, 151, 95, 0.7); }
.site-footer a:hover { color: var(--brass); }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li + li { margin-top: 0.35rem; }
.site-footer .label { color: #9aa6b8; }
.footer-bottom {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #9aa6b8;
  font-size: 0.8125rem;
}

/* Responsive ------------------------------------------------------------ */

@media (max-width: 1100px) {
  .sequence { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 2.5rem; }
  .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 2.5rem; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; }
}

@media (max-width: 960px) {
  .grid-12 { grid-template-columns: minmax(0, 1fr); }
  .grid-12 > * { grid-column: 1 / -1 !important; }
  .product > * { grid-row: auto; }

  .hero__media { max-width: 34rem; margin-top: 1rem; }
  .register {
    position: relative;
    left: auto;
    bottom: auto;
    width: min(23rem, 92%);
    margin: -4.5rem 0 0 auto;
  }

  .roles,
  .categories { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.75rem; }

  .flow { grid-template-columns: minmax(0, 1fr); gap: 3.25rem; }
  .flow li:not(:last-child)::after {
    top: auto;
    bottom: -2.5rem;
    right: auto;
    left: 0.25rem;
    width: 1px;
    height: 1.75rem;
  }
  .flow li:not(:last-child)::before {
    top: auto;
    bottom: -2.55rem;
    right: auto;
    left: calc(0.25rem - 4px);
    transform: rotate(135deg);
  }

  .cta__actions { margin-top: 0.5rem; }
  .product__media { max-width: 32rem; }
  .ledger li { grid-template-columns: 3.5rem minmax(0, 1fr); row-gap: 0.75rem; }
  .ledger li p { grid-column: 2; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .utility .container { justify-content: center; }
  .utility span { display: none; }
  .roles,
  .categories,
  .sequence,
  .pillars,
  .footer-grid,
  .form { grid-template-columns: minmax(0, 1fr); }
  .banner img { aspect-ratio: 4 / 3; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts dt { padding-bottom: 0; border-bottom: 0; }
  .facts dd { padding-top: 0.15rem; }
  .form__footer .btn { width: 100%; }
}

/* Premium texture -------------------------------------------------------
   A dotted world map (only Georgia, the registered location, is marked),
   fading dot grids behind tinted sections, and a brass rule above titles. */

.section-head h2::before,
.split__aside > h2::before,
.band__copy > h2::before,
.cta__text > h2::before,
.page-head h1::before {
  content: "";
  display: block;
  width: 2.75rem;
  height: 2px;
  margin-bottom: 1.25rem;
  background: linear-gradient(90deg, var(--brass), rgba(184, 151, 95, 0));
}

.hero,
.page-head,
.section--tint,
.band,
.site-footer { position: relative; isolation: isolate; }
.hero,
.site-footer { overflow: hidden; }

.hero {
  background:
    radial-gradient(70rem 36rem at 0% 0%, rgba(184, 151, 95, 0.07), rgba(184, 151, 95, 0) 60%),
    var(--paper);
}

.section--tint::before,
.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgba(15, 30, 54, 0.2) 1.1px, transparent 1.6px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 50% 80% at 100% 0%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 50% 80% at 100% 0%, #000 0%, transparent 75%);
}
.cta::before {
  -webkit-mask-image: radial-gradient(ellipse 45% 90% at 0% 100%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 45% 90% at 0% 100%, #000 0%, transparent 75%);
}

.dotmap {
  position: absolute;
  z-index: -1;
  aspect-ratio: 1810 / 680;
  pointer-events: none;
}
.dotmap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/dot-map-navy.svg") center / 100% 100% no-repeat;
  opacity: var(--map-opacity, 0.08);
}
.dotmap--light::before { background-image: url("../img/dot-map-white.svg"); }

.dotmap__pin {
  position: absolute;
  left: 59.61%;
  top: 27.43%;
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border-radius: 50%;
  background: var(--brass);
  box-shadow: 0 0 0 4px rgba(184, 151, 95, 0.25);
}
.dotmap__pin::after {
  content: "";
  position: absolute;
  inset: -8px;
  border: 1px solid var(--brass);
  border-radius: 50%;
  animation: ping 2.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
.dotmap__label {
  position: absolute;
  left: calc(59.61% + 18px);
  top: 27.43%;
  transform: translateY(-50%);
  padding: 0.3rem 0.65rem;
  border: 1px solid rgba(184, 151, 95, 0.5);
  background: rgba(15, 30, 54, 0.7);
  color: #ecdfc5;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.dotmap--hero { left: -8%; top: 50%; width: 84%; transform: translateY(-44%); --map-opacity: 0.075; }
.dotmap--band { right: -6%; top: 6%; width: 68%; --map-opacity: 0.2; }
.dotmap--footer { right: -12%; bottom: -18%; width: 72%; --map-opacity: 0.05; }

.map-panel {
  position: relative;
  isolation: isolate;
  aspect-ratio: 1810 / 680;
  margin-top: 1.5rem;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.map-panel .dotmap { inset: 1.5rem 0; width: auto; aspect-ratio: auto; z-index: 0; --map-opacity: 0.3; }
.map-panel .dotmap__label { background: #fff; color: var(--brass-ink); border-color: rgba(134, 103, 47, 0.35); }

@keyframes ping {
  0% { transform: scale(0.5); opacity: 0.9; }
  80%, 100% { transform: scale(2.4); opacity: 0; }
}

/* Brand marquee under the hero */
.marquee { overflow: hidden; background: var(--paper); }
.marquee__track { display: flex; width: max-content; animation: marquee 90s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__list { display: flex; gap: 6px; margin: 0; padding: 0 6px 0 0; list-style: none; }
.marquee__list li { flex: none; width: clamp(180px, 18vw, 280px); }
.marquee__list img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #e4e7eb; }

@keyframes marquee {
  to { transform: translateX(-50%); }
}

@media (max-width: 960px) {
  .dotmap--hero { top: 2rem; left: -30%; width: 160%; transform: none; }
  .dotmap--band { top: auto; bottom: 4%; right: -30%; width: 130%; }
}

@media (max-width: 640px) {
  .dotmap--band .dotmap__label { display: none; }
  .map-panel .dotmap__label { left: auto; right: calc(40.39% + 18px); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; }
}

/* Motion ----------------------------------------------------------------
   Premium personality: one entrance curve (--ease-enter), three durations,
   and a single entry pattern (rise and fade). Primary layer: content blocks
   rise into place. Secondary: photos unveil and lines draw. Ambient: the hero
   photo breathes and the dark band's dot map drifts with the scroll (main.js). */

:root {
  --ease-enter: cubic-bezier(0.05, 0.7, 0.1, 1);
  --ease-move: cubic-bezier(0.4, 0, 0.2, 1);
  --t-quick: 180ms;
  --t-base: 450ms;
  --t-slow: 900ms;
}

/* Containers that crop a zoomed photo */
.media,
.hero__frame,
.banner,
.product__media,
.marquee__list li,
.photo-trio li,
.product__gallery li { overflow: hidden; }

.media img,
.banner img,
.product__media img,
.marquee__list img,
.photo-trio img,
.product__gallery img { transition: transform 1.2s var(--ease-move); }

@media (hover: hover) {
  .category:hover .media img,
  .roles--media li:hover .media img,
  .product__media:hover img,
  .marquee__list li:hover img,
  .photo-trio li:hover img,
  .product__gallery li:hover img { transform: scale(1.06); }
}

.btn { transition: background-color var(--t-quick) ease, color var(--t-quick) ease, border-color var(--t-quick) ease, transform var(--t-quick) var(--ease-move), box-shadow var(--t-base) var(--ease-move); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -14px rgba(15, 30, 54, 0.6); }
.btn:active { transform: translateY(0) scale(0.98); box-shadow: none; }

@media (prefers-reduced-motion: no-preference) {
  /* Page load: hero photo settles, then breathes slowly */
  .hero__photo { animation: settle 1.8s var(--ease-enter) both, breathe 18s ease-in-out 1.8s infinite alternate; }

  /* Inner pages: heading block rises, banner settles */
  .page-head .container > * { animation: rise var(--t-slow) var(--ease-enter) both; }
  .page-head .container > :nth-child(2) { animation-delay: 0.08s; }
  .page-head .container > :nth-child(3) { animation-delay: 0.16s; }
  .banner img { animation: settle 1.8s var(--ease-enter) 0.1s both; }

  /* Scroll reveal (main.js adds .reveal only to blocks below the fold) */
  .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity var(--t-slow) var(--ease-enter), transform var(--t-slow) var(--ease-enter);
    transition-delay: var(--reveal-delay, 0ms);
  }
  .reveal.is-visible { opacity: 1; transform: none; }

  /* Secondary: photos inside a revealing block unveil upward */
  .reveal img { clip-path: inset(18% 0 0 0); transition: clip-path 1.3s var(--ease-enter); transition-delay: calc(var(--reveal-delay, 0ms) + 80ms); }
  .reveal.is-visible img { clip-path: inset(0 0 0 0); }

  /* Secondary: the transaction timeline draws from left to right */
  .sequence li.reveal {
    background-size: 0 1px;
    transition: opacity var(--t-slow) var(--ease-enter), transform var(--t-slow) var(--ease-enter), background-size 1s var(--ease-enter);
    transition-delay: var(--reveal-delay, 0ms);
  }
  .sequence li.reveal.is-visible { background-size: 100% 1px; }

  /* Secondary: trade-flow arrows extend once their market appears */
  .flow li.reveal:not(:last-child)::after {
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.8s var(--ease-enter);
    transition-delay: calc(var(--reveal-delay, 0ms) + 350ms);
  }
  .flow li.reveal.is-visible:not(:last-child)::after { transform: none; }
  .flow li.reveal:not(:last-child)::before { opacity: 0; transition: opacity 0.3s ease; transition-delay: calc(var(--reveal-delay, 0ms) + 900ms); }
  .flow li.reveal.is-visible:not(:last-child)::before { opacity: 1; }
}

@media (prefers-reduced-motion: no-preference) and (max-width: 960px) {
  .flow li.reveal:not(:last-child)::after { transform: scaleY(0); transform-origin: top; }
}

@keyframes settle {
  from { transform: scale(1.12); }
  to { transform: scale(1); }
}

@keyframes breathe {
  from { transform: scale(1); }
  to { transform: scale(1.05); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .btn:hover { transform: none; }
}
