/* ── Sojhi brand system ─────────────────────────────── */
:root {
  --charcoal: #1c1a17;
  --ivory: #f3efe6;
  --ivory-2: #ece7da;      /* slightly deeper ivory for alt sections */
  --ink-55: rgba(28, 26, 23, 0.55);
  --ink-70: rgba(28, 26, 23, 0.72);
  --line: rgba(28, 26, 23, 0.12);
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Work Sans", -apple-system, "Helvetica Neue", sans-serif;
  --max: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 400;
  background: var(--ivory);
  color: var(--charcoal);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0.3px;
  line-height: 1.15;
}

a { color: inherit; }

/* ── Lockup ── */
.lockup {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}
.mark { display: block; }
.wordmark {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0.3px;
  font-size: 1.35rem;
}

/* ── Nav ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 28px;
  background: color-mix(in srgb, var(--ivory) 88%, transparent);
  backdrop-filter: blur(8px);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 500;
  font-size: 0.92rem;
}
.nav-links a { text-decoration: none; color: var(--ink-70); }
.nav-links a:hover { color: var(--charcoal); }
.nav-cta {
  color: var(--ivory) !important;
  background: var(--charcoal);
  padding: 9px 18px;
  border-radius: 999px;
}
.nav-cta:hover { opacity: 0.88; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 13px 26px;
  border: 1.5px solid var(--charcoal);
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.btn-primary { background: var(--charcoal); color: var(--ivory); }
.btn-primary:hover { opacity: 0.88; }
.btn-ghost { background: transparent; color: var(--charcoal); }
.btn-ghost:hover { background: rgba(28, 26, 23, 0.06); }

/* ── Kicker labels ── */
.kicker {
  font-family: var(--sans);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-size: 0.72rem;
  color: var(--ink-55);
  margin-bottom: 14px;
}

/* ── Hero ── */
.hero {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 96px 28px 120px;
  overflow: hidden;
}
.ocean {
  position: fixed;
  inset: 0;
  width: 100%;
  /* Overshoot the viewport so the water continues beneath Safari's
     bottom bar in every bar state, instead of ending at its edge. */
  height: calc(100vh + 140px);
  height: calc(100lvh + 140px);
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent 30%, rgba(0, 0, 0, 0.45) 60%, #000 85%);
  mask-image: linear-gradient(to bottom, transparent 30%, rgba(0, 0, 0, 0.45) 60%, #000 85%);
}
.nav, main, .footer {
  position: relative;
  z-index: 1;
}
.hero-ring {
  position: absolute;
  right: -180px;
  top: -60px;
  width: 560px;
  height: 560px;
  color: var(--charcoal);
  opacity: 0.07;
  pointer-events: none;
  animation: ring-drift 90s linear infinite;
}
@keyframes ring-drift {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-ring { animation: none; }
}
.hero > :not(.hero-flow):not(.hero-ring) { position: relative; }
.hero-notes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 28px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-size: 0.7rem;
  color: var(--ink-55);
}
.hero-notes span { white-space: nowrap; }
.hero-notes span + span::before {
  content: "·";
  margin: 0 12px;
}
.hero h1 {
  font-size: clamp(2.3rem, 5.5vw, 3.6rem);
  max-width: 15ch;
  margin-bottom: 24px;
}
.hero-sub {
  font-size: 1.12rem;
  color: var(--ink-70);
  max-width: 52ch;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── Sections ── */
.section {
  padding: 88px 28px;
}
.wrap, .contact-grid {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}
.section-alt { background: rgba(28, 26, 23, 0.028); }
.section h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  margin-bottom: 16px;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--ink-70);
  max-width: 58ch;
  margin-bottom: 44px;
}
.about-text { margin-bottom: 0; }

/* ── Cards ── */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 26px;
}
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card p { font-size: 0.95rem; color: var(--ink-70); }

/* ── Steps ── */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1000px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .section h2 br { display: none; }
}
.steps li {
  border-top: 2px solid var(--charcoal);
  padding-top: 20px;
}
.step-num {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.6px;
  color: var(--ink-55);
}
.steps h3 { font-size: 1.2rem; margin: 8px 0 10px; }
.steps p { font-size: 0.95rem; color: var(--ink-70); }

/* ── Contact ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: start;
}
.contact-alt {
  font-size: 0.95rem;
  color: var(--ink-70);
  line-height: 2;
}
.contact-alt a { color: var(--charcoal); font-weight: 500; }

.contact-form .field { margin-bottom: 18px; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.contact-form label {
  display: block;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.7rem;
  color: var(--ink-55);
  margin-bottom: 7px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 0.98rem;
  color: var(--charcoal);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--charcoal);
  outline-offset: -1px;
}
.contact-form ::placeholder { color: rgba(28, 26, 23, 0.35); }
.btn-submit { width: 100%; margin-top: 6px; }
.form-status {
  margin-top: 14px;
  font-size: 0.92rem;
  font-weight: 500;
  min-height: 1.4em;
}
.form-status.ok { color: #3c6e47; }
.form-status.err { color: #9c3b2e; }

/* ── Footer ── */
.footer {
  background: var(--charcoal);
  color: #e9e3d6;
  text-align: center;
  padding: 56px 28px;
}
.lockup-footer { justify-content: center; margin-bottom: 18px; }
.lockup-footer .wordmark { font-size: 1.1rem; }
.footer-meta {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.4px;
  color: rgba(233, 227, 214, 0.7);
  margin-bottom: 6px;
}
.footer-copy {
  font-size: 0.78rem;
  color: rgba(233, 227, 214, 0.45);
}

/* ── Responsive ── */
@media (max-width: 820px) {
  .cards, .steps { grid-template-columns: 1fr; }
  .hero-notes { flex-direction: column; align-items: flex-start; gap: 8px; }
  .hero-notes span + span::before { content: none; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .nav-links { gap: 18px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .hero { padding: 64px 24px 88px; }
  .hero-ring { right: -240px; }
  .section { padding: 64px 24px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
}
