:root {
  --ground: #15100D;
  --ground-2: #1E1613;
  --ground-3: #261C18;
  --bone: #F4EBDD;
  --muted: #B9A28B;
  --gold: #E2A95B;
  --gold-soft: #F3D3A0;
  --line: rgba(244,235,221,0.18);
  --gx: clamp(20px, 4vw, 64px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { background: var(--ground); }
body {
  margin: 0;
  background: var(--ground);
  color: var(--bone);
  font-family: Jost, "Helvetica Neue", Arial, sans-serif;
  font-weight: 300;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.serif { font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif; }

/* ---------- full-height screens (heroes and single-screen pages) ---------- */
.screen {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
  padding: calc(96px + env(safe-area-inset-top, 0px)) var(--gx) calc(64px + env(safe-area-inset-bottom, 0px));
}
.screen.short { min-height: 78vh; min-height: 78svh; }
.screen img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.screen::after { content: ""; position: absolute; inset: 0; z-index: -1; }
.screen.home img.bg { object-position: center 45%; }
.screen.home::after {
  background:
    linear-gradient(90deg, rgba(21,16,13,0.6) 0%, rgba(21,16,13,0.3) 45%, rgba(21,16,13,0) 70%),
    linear-gradient(180deg, rgba(21,16,13,0.35) 0%, rgba(21,16,13,0) 30%, rgba(21,16,13,0) 55%, rgba(21,16,13,1) 100%);
}
.screen.desert img.bg { object-position: center 40%; }
.screen.desert::after {
  background:
    linear-gradient(90deg, rgba(21,16,13,0.82) 0%, rgba(21,16,13,0.5) 50%, rgba(21,16,13,0.15) 100%),
    linear-gradient(180deg, rgba(21,16,13,0.45) 0%, rgba(21,16,13,0.1) 35%, rgba(21,16,13,1) 100%);
}
.screen.legends img.bg { object-position: center 40%; }
.screen.legends::after {
  background:
    linear-gradient(90deg, rgba(21,16,13,0.8) 0%, rgba(21,16,13,0.45) 50%, rgba(21,16,13,0.1) 100%),
    linear-gradient(180deg, rgba(21,16,13,0.4) 0%, rgba(21,16,13,0) 35%, rgba(21,16,13,1) 100%);
}
.screen.story img.bg { object-position: 25% 30%; }
.screen.story::after {
  background:
    linear-gradient(90deg, rgba(21,16,13,0.9) 0%, rgba(21,16,13,0.82) 55%, rgba(21,16,13,0.74) 82%, rgba(21,16,13,0.3) 100%),
    linear-gradient(180deg, rgba(21,16,13,0.25) 0%, rgba(21,16,13,0) 35%, rgba(21,16,13,0.6) 100%);
}
.screen.contact img.bg { object-position: 30% 55%; }
.screen.contact::after {
  background:
    linear-gradient(90deg, rgba(21,16,13,0.72) 0%, rgba(21,16,13,0.4) 40%, rgba(21,16,13,0.15) 100%),
    linear-gradient(180deg, rgba(21,16,13,0.3) 0%, rgba(21,16,13,0.05) 40%, rgba(21,16,13,0.6) 100%);
}

/* ---------- header / footer ---------- */
.top {
  position: absolute; left: 0; right: 0; top: 0; z-index: 3;
  padding: calc(30px + env(safe-area-inset-top, 0px)) var(--gx) 0;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
}
.wordmark { font-size: 15px; font-weight: 400; letter-spacing: 0.42em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px clamp(18px, 2.6vw, 40px); }
.nav a {
  font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase; text-decoration: none;
  color: var(--bone); opacity: 0.85; padding-bottom: 6px; border-bottom: 1px solid transparent; white-space: nowrap;
}
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; border-bottom-color: var(--gold); }
.nav a:focus-visible, .wordmark:focus-visible, .btn:focus-visible, .brand-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.foot {
  position: absolute; left: var(--gx); right: var(--gx); bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 3;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--bone); opacity: 0.8;
}
.foot .tag { display: flex; align-items: center; gap: 16px; }
.foot .tag::before { content: ""; width: 40px; height: 1px; background: var(--bone); }
.foot .copy { color: var(--muted); letter-spacing: 0.2em; }
.scroll-hint {
  position: absolute; left: var(--gx); bottom: calc(28px + env(safe-area-inset-bottom, 0px)); z-index: 3;
  display: flex; align-items: center; gap: 16px;
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--bone); opacity: 0.8; text-decoration: none;
}
.scroll-hint::before { content: ""; width: 40px; height: 1px; background: var(--bone); }

/* site footer for scrolling pages */
.site-foot {
  padding: 40px var(--gx) calc(32px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px;
  font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted);
}
.site-foot .brands-list { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.site-foot a { text-decoration: none; color: var(--bone); opacity: 0.8; }
.site-foot a:hover { opacity: 1; color: var(--gold-soft); }

/* ---------- type ---------- */
.in h1, .in p, .in li, .in .sign { text-shadow: 0 1px 3px rgba(0,0,0,0.35); }
.rule { width: 64px; height: 1px; background: var(--bone); opacity: 0.8; margin-bottom: 24px; }
.eyebrow { font-size: 12px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold-soft); margin: 0 0 14px; }
h1 {
  font-family: "Cormorant Garamond", Georgia, serif; font-weight: 400;
  font-size: clamp(46px, 6.8vw, 104px); line-height: 0.98; letter-spacing: -0.005em;
  margin: 0 0 24px; max-width: 12em; text-wrap: balance;
}
h2 {
  font-family: "Cormorant Garamond", Georgia, serif; font-weight: 400;
  font-size: clamp(34px, 4.2vw, 60px); line-height: 1.02; margin: 0 0 18px; max-width: 14em; text-wrap: balance;
}
h3 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 400; font-size: clamp(26px, 2.4vw, 36px); line-height: 1.1; margin: 0 0 10px; }
.lede { font-size: clamp(17px, 1.6vw, 21px); letter-spacing: 0.04em; line-height: 1.55; max-width: 30em; margin: 0 0 32px; }
.btn {
  display: inline-block; font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase; text-decoration: none;
  color: var(--bone); border: 1px solid rgba(244,235,221,0.6); padding: 15px 28px; border-radius: 999px;
  transition: background 200ms, color 200ms, border-color 200ms; cursor: pointer; font-family: inherit; background: transparent;
}
.btn:hover { background: var(--bone); color: var(--ground); border-color: var(--bone); }
.btn.solid { background: var(--gold); color: var(--ground); border-color: var(--gold); }
.btn.solid:hover { background: var(--gold-soft); border-color: var(--gold-soft); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- home ---------- */
.screen.home { justify-content: flex-start; padding-top: clamp(150px, 21vh, 230px); }

/* ---------- sections on scrolling pages ---------- */
.section { padding: clamp(72px, 9vw, 128px) var(--gx); }
.section.alt { background: var(--ground-2); }
.section .head { max-width: 1180px; margin-bottom: clamp(32px, 4vw, 56px); }
.section .head p { font-size: clamp(16px, 1.3vw, 19px); max-width: 36em; margin: 0; color: var(--bone); }
.wrap { max-width: 1180px; }

.brands { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); max-width: 1180px; }
.brand-card {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: clamp(380px, 46vw, 560px); padding: clamp(24px, 3vw, 40px); border-radius: 14px; text-decoration: none; color: var(--bone);
  border: 1px solid var(--line); background: var(--ground-3);
}
.brand-card img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 900ms cubic-bezier(.2,.7,.2,1); }
.brand-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(21,16,13,0.2) 0%, rgba(21,16,13,0.5) 40%, rgba(21,16,13,0.9) 72%, rgba(21,16,13,0.97) 100%); }
.brand-card .eyebrow, .brand-card h3, .brand-card p, .brand-card .meta { text-shadow: 0 1px 4px rgba(0,0,0,0.55); }
.brand-card:hover img.bg { transform: scale(1.04); }
.brand-card .eyebrow { margin-bottom: 10px; }
.brand-card h3 { font-size: clamp(32px, 3.4vw, 50px); margin-bottom: 10px; }
.brand-card img.logo { width: min(320px, 70%); height: auto; margin-bottom: 14px; }
.brand-card p { margin: 0 0 16px; font-size: clamp(15px, 1.2vw, 18px); max-width: 30em; }
.brand-card .meta { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold-soft); }
.brand-card .more { margin-top: 18px; font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--bone); display: inline-flex; align-items: center; gap: 12px; }
.brand-card .more::after { content: "→"; transition: transform 300ms; }
.brand-card:hover .more::after { transform: translateX(6px); }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 48px); max-width: 1180px; }
.pillar { padding-top: 22px; border-top: 1px solid var(--line); }
.pillar .num { font-size: 12px; letter-spacing: 0.32em; color: var(--gold); margin: 0 0 14px; }
.pillar p { margin: 0; font-size: clamp(15px, 1.15vw, 17.5px); line-height: 1.6; color: var(--bone); }

.cta { text-align: left; }
.cta h2 { max-width: 16em; }
.cta p { max-width: 34em; font-size: clamp(16px, 1.3vw, 19px); margin: 0 0 28px; }

/* ---------- brand pages ---------- */
.screen.brand { justify-content: flex-end; padding-bottom: clamp(72px, 10vh, 120px); }
.screen.brand .logo { width: min(560px, 80vw); height: auto; margin-bottom: 28px; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4)); }
.screen.brand h1 { font-size: clamp(42px, 5.6vw, 84px); }
.facts { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 0 0 32px; padding: 0; list-style: none; }
.facts li { font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-soft); display: flex; align-items: center; gap: 14px; }
.facts li::before { content: ""; width: 10px; height: 1px; background: var(--gold); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 64px); max-width: 1180px; }
.two-col p { font-size: clamp(15px, 1.15vw, 17.5px); line-height: 1.6; margin: 0 0 1.1em; }
.two-col p.lead { font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(24px, 2.1vw, 31px); line-height: 1.25; color: var(--gold-soft); margin-bottom: 0.9em; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); max-width: 1180px; }
.feature { padding: clamp(22px, 2.4vw, 32px); border: 1px solid var(--line); border-radius: 14px; background: rgba(30,22,19,0.6); }
.feature h3 { font-size: clamp(24px, 2vw, 30px); }
.feature p { margin: 0; font-size: clamp(15px, 1.1vw, 17px); line-height: 1.6; }
.note { font-size: 12.5px; color: var(--muted); letter-spacing: 0.04em; margin: 18px 0 0; }

/* ---------- story ---------- */
.screen.story { justify-content: center; }
.screen.story h1 { font-size: clamp(40px, 5.2vw, 76px); margin-bottom: clamp(20px, 3vh, 36px); }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 64px); max-width: 1180px; }
.story-grid p { font-size: clamp(15px, 1.15vw, 17.5px); line-height: 1.6; margin: 0 0 1.1em; }
.story-grid p.lead { font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(24px, 2.1vw, 31px); line-height: 1.25; color: var(--gold-soft); margin-bottom: 0.9em; }
.sign { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 22px; }
.sign .serif { font-size: 26px; font-style: italic; }
.sign span { font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted); }
.next { margin-top: 20px; }

/* ---------- contact ---------- */
.screen.contact { justify-content: center; }
.screen.contact h1 { font-size: clamp(40px, 5.2vw, 76px); margin-bottom: 18px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 90px); align-items: start; max-width: 1060px; }
.intro p { font-size: clamp(15px, 1.2vw, 18px); margin: 0 0 1.1em; }
.intro ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.intro li { padding-left: 22px; position: relative; font-size: 15px; letter-spacing: 0.02em; }
.intro li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 10px; height: 1px; background: var(--gold); }
.email { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 26px; }
.email code { font-family: Jost, sans-serif; font-size: 17px; letter-spacing: 0.04em; color: var(--gold-soft); user-select: all; }
.email button { font: inherit; font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; background: none; border: 1px solid var(--line); color: var(--bone); padding: 7px 14px; border-radius: 999px; cursor: pointer; }
.email button:hover { border-color: var(--gold); }

form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; font-weight: 300; color: var(--bone);
  background: rgba(21,16,13,0.66); border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; width: 100%;
  backdrop-filter: blur(8px);
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.field select option { color: #111; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
form .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 4px; }
.fine { font-size: 12.5px; color: var(--muted); margin: 0; }
.thanks { padding: 22px 26px; border: 1px solid var(--gold); border-radius: 12px; font-size: 17px; line-height: 1.5; background: rgba(30,22,19,0.7); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- small screens ---------- */
@media (max-width: 860px) {
  .screen { padding-top: calc(130px + env(safe-area-inset-top, 0px)); padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
  .top { padding-top: calc(22px + env(safe-area-inset-top, 0px)); align-items: flex-start; }
  .wordmark { font-size: 13px; letter-spacing: 0.32em; padding-top: 2px; }
  .nav a { font-size: 10.5px; letter-spacing: 0.22em; }
  .story-grid, .contact-grid, .row2, .brands, .pillars, .features, .two-col { grid-template-columns: 1fr; }
  .story-grid, .two-col { gap: 0; }
  .brand-card { min-height: 380px; }
  .screen.story::after { background: linear-gradient(180deg, rgba(21,16,13,0.55) 0%, rgba(21,16,13,0.9) 40%, rgba(21,16,13,0.95) 100%); }
  .screen.contact::after { background: linear-gradient(180deg, rgba(21,16,13,0.55) 0%, rgba(21,16,13,0.88) 45%, rgba(21,16,13,0.95) 100%); }
  .foot .tag, .scroll-hint { display: none; }
  .screen.home img.bg { object-position: 40% 45%; }
  .screen.home::after { background: linear-gradient(180deg, rgba(21,16,13,0.55) 0%, rgba(21,16,13,0.45) 22%, rgba(21,16,13,0.75) 50%, rgba(21,16,13,1) 100%); }
  .screen.desert::after, .screen.legends::after { background: linear-gradient(180deg, rgba(21,16,13,0.45) 0%, rgba(21,16,13,0.2) 25%, rgba(21,16,13,0.7) 55%, rgba(21,16,13,1) 100%); }
}
@media (max-height: 760px) and (min-width: 861px) {
  .screen.story h1, .screen.contact h1 { font-size: clamp(36px, 4.4vw, 56px); margin-bottom: 16px; }
  .story-grid p { font-size: 15px; line-height: 1.5; }
  .story-grid p.lead { font-size: 24px; }
  .field textarea { min-height: 84px; }
}
@media (prefers-reduced-motion: no-preference) {
  .screen > .in > * { animation: rise 900ms cubic-bezier(.2,.7,.2,1) both; }
  .screen > .in > :nth-child(2) { animation-delay: 100ms; }
  .screen > .in > :nth-child(3) { animation-delay: 200ms; }
  .screen > .in > :nth-child(4) { animation-delay: 300ms; }
  .screen > .in > :nth-child(5) { animation-delay: 400ms; }
  @keyframes rise { from { opacity: 0.001; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}

/* ---------- legal / licence ---------- */
.site-foot .legal { width: 100%; margin: 4px 0 0; font-size: 11.5px; letter-spacing: 0.04em; text-transform: none; line-height: 1.55; color: var(--muted); max-width: 72em; }
.foot .copy { text-align: right; line-height: 1.6; }
.foot .copy .lic { font-size: 10px; letter-spacing: 0.14em; opacity: 0.85; }
.company { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); max-width: 34em; }
.company .eyebrow { margin-bottom: 8px; font-size: 11px; }
.company p { font-size: 13px; line-height: 1.6; color: var(--muted); margin: 0; letter-spacing: 0.02em; }
@media (max-width: 860px) {
  .foot .copy { text-align: left; }
}
