/* ==========================================================
   Duleri — landing page
   ========================================================== */

:root {
  --bg-hero: #e5e1dd;
  --bg: #efebe9;
  --ink: #111010;
  --ink-soft: #2b2928;
  --line: rgba(17, 16, 16, 0.55);

  --serif: "Newsreader", "Iowan Old Style", "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --max: 1000px;
  --gutter: clamp(20px, 6.5vw, 74px);
  --header-h: clamp(80px, 9.5vw, 128px);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, p { margin: 0; }

.container {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
@media (min-width: 1440px) { :root { --max: 1200px; } }

/* ---------- Type ---------- */

.logo {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 4vw, 50px);
  letter-spacing: -0.02em;
  line-height: 1;
}
.logo-sm { font-size: clamp(28px, 3vw, 36px); }

.eyebrow {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(12px, 1.25vw, 15px);
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.display {
  font-family: var(--serif);
  font-weight: 360;
  font-size: clamp(44px, 6.2vw, 84px);
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.display .line { display: block; }
.display em {
  display: block;
  font-style: italic;
  font-weight: 300;
}

.rule {
  display: block;
  width: 68px;
  height: 1px;
  background: var(--ink);
  opacity: 0.6;
}

/* ---------- Button ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  padding: 0.82em 2.1em;
  background: var(--ink);
  color: #f3f0ee;
  font-family: var(--serif);
  font-size: clamp(17px, 1.65vw, 20px);
  letter-spacing: -0.01em;
  border: 1px solid var(--ink);
  transition: background-color 0.3s ease, color 0.3s ease;
}
.btn .arrow { display: inline-block; transition: transform 0.3s ease; }
.btn:hover { background: transparent; color: var(--ink); }
.btn:hover .arrow { transform: translateX(4px); }

a:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }

/* Shared underline-on-hover for text links */
.nav a,
.intro-links a,
.footer-cta { position: relative; }
.nav a::after,
.intro-links a::after,
.footer-cta::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.nav a:hover::after,
.intro-links a:hover::after,
.footer-cta:hover::after { transform: scaleX(1); }

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

.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 10;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.6vw, 30px);
  font-size: clamp(16px, 1.55vw, 19px);
  letter-spacing: -0.01em;
}
.nav-sep { width: 1px; height: 18px; background: currentColor; opacity: 0.7; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: var(--bg-hero);
  min-height: clamp(640px, 100vh, 980px);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 35%;
}

.hero-inner { position: relative; z-index: 1; }
.hero-copy {
  max-width: 560px;
  padding-block: calc(var(--header-h) + 60px) 100px;
}
.hero-copy .display { margin-bottom: clamp(30px, 3.6vw, 44px); }
.hero-copy .rule { margin-bottom: clamp(30px, 3.6vw, 44px); }
.hero-copy .eyebrow { margin-bottom: clamp(44px, 6.5vw, 80px); }

/* ---------- Intro statement ---------- */

.intro {
  padding-block: clamp(72px, 9vw, 100px) clamp(64px, 8vw, 92px);
}
.intro-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.statement {
  position: relative;
  padding-left: clamp(28px, 5.5vw, 62px);
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 3.3vw, 38px);
  line-height: 1.22;
  letter-spacing: -0.02em;
}
.statement::before {
  content: "";
  position: absolute;
  left: 0; top: -0.25em; bottom: -0.25em;
  width: 1px;
  background: var(--ink);
}

.intro-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.intro-dash { width: 42px; height: 1px; background: var(--ink); opacity: 0.6; }

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

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 30px 40px;
  border-top: 1px solid var(--line);
}
.footer-links {
  display: flex;
  align-items: center;
  gap: clamp(22px, 4vw, 44px);
}
.social { display: inline-flex; transition: opacity 0.25s ease; }
.social:hover { opacity: 0.6; }
.footer-sep { width: 1px; height: 30px; background: var(--ink); opacity: 0.7; }
.footer-cta { font-size: 16px; letter-spacing: -0.01em; }

/* ---------- Reveal animation ---------- */

.js-reveal .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1s ease, transform 1s cubic-bezier(.2,.6,.2,1);
}
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }
.js-reveal .intro-links.reveal { transition-delay: 0.15s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

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

@media (max-width: 900px) {
  .intro-inner { flex-direction: column; align-items: flex-start; gap: 44px; }
  .intro-links { padding-left: clamp(28px, 5.5vw, 62px); }
}

@media (max-width: 720px) {
  .hero {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
  }
  .hero-inner { order: 1; }
  .hero-copy { max-width: none; padding-block: calc(var(--header-h) + 28px) 44px; }
  .hero-copy .eyebrow { margin-bottom: 36px; }
  .hero-media {
    order: 2;
    position: relative;
    inset: auto;
    aspect-ratio: 4 / 5;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14%);
            mask-image: linear-gradient(to bottom, transparent 0, #000 14%);
  }
  .hero-media img { object-position: 82% 30%; }

  .footer-sep { height: 22px; }
}

@media (max-width: 400px) {
  .nav { font-size: 15px; gap: 12px; }
  .intro-links { gap: 14px; letter-spacing: 0.2em; }
  .intro-dash { width: 28px; }
}

/* ---------- Waitlist modal ---------- */

html.modal-open { overflow: hidden; }

.modal {
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  background: var(--bg);
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(17, 16, 16, 0.18);
  overflow: auto;
}
.modal::backdrop {
  background: rgba(30, 27, 25, 0.45);
  -webkit-backdrop-filter: blur(3px);
          backdrop-filter: blur(3px);
}
.modal[open] { animation: modal-in 0.45s cubic-bezier(.2,.6,.2,1); }
.modal[open]::backdrop { animation: fade-in 0.45s ease; }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.modal-body { padding: clamp(36px, 6vw, 56px) clamp(24px, 6vw, 52px) clamp(32px, 5vw, 48px); }
.modal-body .eyebrow { font-size: 11.5px; margin-bottom: 18px; }

.modal-title {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-weight: 360;
  font-size: clamp(32px, 4.4vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.modal-title em { font-style: italic; font-weight: 300; }
.modal-lede {
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin-bottom: 30px;
}
.modal-success .btn { margin-top: 4px; }

.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  display: grid; place-items: center;
  width: 40px; height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.modal-close:hover { opacity: 0.55; }
.modal-close:focus-visible { outline: 1px solid var(--ink); }

/* ---------- Form ---------- */

.form { display: grid; gap: 22px; }
.field { display: grid; gap: 6px; }
.field label {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.field input {
  width: 100%;
  padding: 10px 0 9px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  transition: border-color 0.25s ease;
}
.field input:focus { outline: none; border-bottom-color: var(--ink); box-shadow: 0 1px 0 0 var(--ink); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-msg { min-height: 0; font-size: 15px; line-height: 1.4; }
.form-msg:empty { display: none; }
.form-msg.is-error { color: #8a2a1e; }

.btn-block { width: 100%; justify-content: center; cursor: pointer; }
.btn:disabled { opacity: 0.6; cursor: progress; }
.form-note {
  margin-top: -8px;
  text-align: center;
  font-size: 14px;
  color: var(--ink-soft);
  opacity: 0.75;
}

/* ---------- Partner modal ---------- */

.modal-wide { width: min(560px, calc(100vw - 32px)); }
.modal-wide .modal-lede { max-width: 560px; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
.field-full { grid-column: 1 / -1; }
.field .req { color: var(--ink); opacity: 0.45; margin-left: 2px; }

.field textarea {
  width: 100%;
  min-height: 84px;
  padding: 10px 0 9px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.45;
  resize: vertical;
  transition: border-color 0.25s ease;
}
.field textarea:focus { outline: none; border-bottom-color: var(--ink); box-shadow: 0 1px 0 0 var(--ink); }
.field input::placeholder,
.field textarea::placeholder { color: var(--ink); opacity: 0.35; }
.field [aria-invalid="true"] { border-bottom-color: #8a2a1e; box-shadow: 0 1px 0 0 #8a2a1e; }

@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; gap: 20px; }
}
#partner-form .btn-block { margin-top: 10px; }
