/* ===========================================================
   OVERSOUL — shared styles
   Minimal, artistic, editorial. Cream paper, warm ink, a lot
   of room to breathe.
   =========================================================== */

:root {
  --bg: #f2ede3;
  --bg-soft: #ece5d6;
  --ink: #1a1713;
  --ink-soft: #3a352e;
  --muted: #746b5e;
  --rule: #dcd2bd;
  --accent: #8a6a3f;

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;

  --edge: clamp(24px, 7vw, 96px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

::selection {
  background: var(--ink);
  color: var(--bg);
}

/* ---------- layout shell ---------- */

.wrap {
  padding-left: var(--edge);
  padding-right: var(--edge);
}

.max {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.prose {
  max-width: 640px;
}

/* ---------- header / nav ---------- */

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 40px;
  padding-bottom: 40px;
}

.wordmark {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.wordmark span {
  color: var(--accent);
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(18px, 2.6vw, 40px);
}

.site-nav a {
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
  transition: border-color 0.3s ease, color 0.3s ease;
}

@media (max-width: 760px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .site-nav {
    gap: 14px 22px;
  }
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

/* ---------- hero ---------- */

.hero-intro {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56vh;
  padding-top: clamp(10px, 2vw, 20px);
  padding-bottom: clamp(10px, 2vw, 20px);
}

.hero {
  position: relative;
  padding-top: clamp(10px, 3vw, 20px);
  padding-bottom: clamp(40px, 8vw, 80px);
  text-align: center;
}

@media (max-width: 720px) {
  .hero-intro {
    min-height: 38vh;
  }
}

.portrait-stage {
  position: relative;
  width: 100%;
  max-width: 640px;
  aspect-ratio: 100 / 122;
  margin: 0 auto;
}

#portrait-canvas {
  width: 100%;
  height: 100%;
}

.portrait-stage--photo {
  max-width: 760px;
  aspect-ratio: 3 / 2;
}

.portrait-stage--morph {
  max-width: 900px;
  aspect-ratio: 160 / 110;
}

.portrait-stage--logo {
  max-width: 1720px;
  aspect-ratio: 1486 / 246;
}

.hero-text {
  margin-top: 0;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
  opacity: 0;
  animation: rise 1s ease forwards 0.15s;
}

.headline {
  font-family: var(--serif);
  font-weight: 400;
  font-optical-sizing: auto;
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 auto;
  max-width: 30ch;
  opacity: 0;
  animation: rise 1s ease forwards 0.3s;
}

.dek {
  font-family: var(--sans);
  font-size: clamp(14px, 1.4vw, 17px);
  color: var(--ink-soft);
  max-width: 44ch;
  margin: 22px auto 0;
  opacity: 0;
  animation: rise 1s ease forwards 0.45s;
}

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

/* ---------- rule / divider ---------- */

.rule {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 0;
}

/* ---------- manifesto / statement rows ---------- */

.statements {
  padding-top: clamp(60px, 10vw, 120px);
  padding-bottom: clamp(60px, 10vw, 120px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 48px);
}

.statement {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(19px, 2.1vw, 25px);
  line-height: 1.4;
  color: var(--ink-soft);
}

.statement .num {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 14px;
}

@media (max-width: 820px) {
  .statements {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ---------- founder ---------- */

.founder-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
  padding-top: clamp(50px, 8vw, 90px);
  padding-bottom: clamp(50px, 8vw, 90px);
}

.founder-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid var(--rule);
}

.founder-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.founder-note p {
  font-family: var(--serif);
  font-size: clamp(18px, 1.9vw, 22px);
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 18px;
}

.founder-sign {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.founder-title {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 14px 0 0;
}

.founder-note--quote p:not(.founder-sign) {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.7;
  color: var(--muted);
}

.founder-note--quote .founder-sign {
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: none;
  margin-top: 10px;
}

@media (max-width: 720px) {
  .founder-grid {
    grid-template-columns: 1fr;
  }
  .founder-photo {
    max-width: 280px;
  }
}

/* ---------- video feature ---------- */

.video-feature {
  padding-top: 0;
  padding-bottom: clamp(30px, 5vw, 48px);
}

.video-frame {
  position: relative;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ink);
}

.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-mute {
  position: absolute;
  bottom: 18px;
  right: 18px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(242, 237, 227, 0.75);
  background: rgba(26, 23, 19, 0.38);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease;
}

.video-mute svg {
  width: 18px;
  height: 18px;
  color: var(--bg);
}

.video-mute .icon-unmuted {
  display: none;
}

.video-mute[aria-pressed="true"] .icon-muted {
  display: none;
}

.video-mute[aria-pressed="true"] .icon-unmuted {
  display: block;
}

.video-mute:hover {
  transform: scale(1.08);
  background: rgba(26, 23, 19, 0.55);
}

.video-caption {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  margin: 18px 0 0;
}

/* ---------- page header (about / submissions) ---------- */

.page-hero {
  padding-top: clamp(30px, 6vw, 60px);
  padding-bottom: clamp(40px, 7vw, 70px);
}

.page-label {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 20px;
}

.page-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 0;
  max-width: 14ch;
}

.page-hero .contact-email {
  margin-top: 26px;
}

.page-hero-note {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 50ch;
  margin: 20px 0 0;
}

/* ---------- process page ---------- */

.process-phase {
  margin-bottom: clamp(48px, 7vw, 72px);
}

.process-phase:last-child {
  margin-bottom: 0;
}

.phase-label {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 24px;
}

.step-title {
  font-family: var(--serif);
  font-size: clamp(18px, 1.8vw, 21px);
  color: var(--ink);
  margin: 0 0 8px;
}

.step-time {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-left: 12px;
}

.step-body {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0 0 32px;
}

.process-phase .step-body:last-child {
  margin-bottom: 0;
}

/* ---------- long-form prose sections ---------- */

.copy {
  padding-top: clamp(20px, 4vw, 30px);
  padding-bottom: clamp(80px, 10vw, 140px);
}

.copy p {
  font-family: var(--serif);
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 34px;
}

.copy p:first-of-type::first-letter {
  font-size: 1.6em;
  color: var(--ink);
}

.copy .fine {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

/* ---------- submissions ---------- */

.guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  padding-top: clamp(10px, 3vw, 20px);
  padding-bottom: clamp(70px, 9vw, 120px);
  align-items: start;
}

@media (max-width: 860px) {
  .guide-grid {
    grid-template-columns: 1fr;
  }
}

.field-title {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}

.field-body {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 32px;
}

.contact-block {
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--rule);
}

.contact-email {
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 30px);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
  display: inline-block;
}

.contact-email:hover {
  color: var(--accent);
  border-color: var(--accent);
}

form.mail-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 34px;
}

.mail-form label {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 8px;
}

.mail-form input,
.mail-form textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  padding: 8px 0;
  resize: vertical;
}

.mail-form input:focus,
.mail-form textarea:focus {
  outline: none;
  border-bottom-color: var(--ink);
}

.mail-form button {
  align-self: flex-start;
  margin-top: 8px;
  background: var(--ink);
  color: var(--bg);
  border: none;
  padding: 14px 30px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.mail-form button:hover {
  opacity: 0.8;
}

/* ---------- footer ---------- */

.site-footer {
  padding-top: 36px;
  padding-bottom: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer,
.site-footer a {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.site-footer a:hover {
  color: var(--ink);
}

.footer-links {
  display: flex;
  gap: 24px;
}

@media (prefers-reduced-motion: reduce) {
  .eyebrow, .headline, .dek, .hero-cta {
    animation: none;
    opacity: 1;
  }
}
