/* Vromexa — left rail + charcoal/lime photo hero; Oswald/Karla; iPhone-ready */
:root {
  --void: #10140f;
  --void-2: #181d16;
  --paper: #f1efe6;
  --ink: #1a1f17;
  --muted: #5c6456;
  --mute-light: #a8b09e;
  --lime: #b2d70e;
  --lime-deep: #8fad0a;
  --line: rgba(26, 31, 23, 0.12);
  --line-light: rgba(241, 239, 230, 0.14);
  --display: "Oswald", "Arial Narrow", sans-serif;
  --body: "Karla", "Segoe UI", sans-serif;
  --rail: 13.5rem;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-x: env(safe-area-inset-left, 0px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  overflow-x: clip;
}
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  max-width: 100vw;
}
body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a {
  color: var(--lime-deep);
  text-underline-offset: 0.16em;
}
a:hover { color: var(--ink); }
.skip {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--lime); color: var(--void); padding: 0.5rem 0.85rem;
}
.skip:focus { left: 0.6rem; top: 0.6rem; }

/* —— left rail (desktop) —— */
.rail {
  position: fixed; inset: 0 auto 0 0; width: var(--rail);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 1.4rem 1.1rem 1.6rem;
  background: var(--void);
  color: var(--paper);
  border-right: 3px solid var(--lime);
  z-index: 30;
}
.rail-brand {
  display: flex; flex-direction: column; gap: 0.7rem;
  text-decoration: none; color: var(--paper);
  font-family: var(--display); font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.95rem;
}
.rail-brand img { border-radius: 7px; width: 40px; height: 40px; }
.rail-nav {
  display: flex; flex-direction: column; gap: 0.35rem;
}
.rail-nav a {
  color: var(--mute-light); text-decoration: none;
  font-size: 0.95rem; font-weight: 500;
  min-height: 44px; display: inline-flex; align-items: center;
  transition: color 180ms ease-out;
}
.rail-nav a:hover { color: var(--lime); }
.rail-tag {
  font-family: var(--display); font-size: 0.68rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--lime); line-height: 1.35;
}

.topbar { display: none; }
.mobile-nav { display: none; }

main, .foot {
  margin-left: var(--rail);
}

/* —— hero —— */
.hero {
  position: relative;
  min-height: 88vh;
  min-height: 88dvh;
  background: var(--void);
  color: var(--paper);
  overflow: hidden;
}
.hero-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: brightness(0.55) saturate(0.9);
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(16,20,15,0.88) 18%, rgba(16,20,15,0.35) 62%, rgba(16,20,15,0.55) 100%);
}
.hero-copy {
  position: relative; z-index: 1;
  min-height: 88vh;
  min-height: 88dvh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(2rem, 6vw, 4.5rem);
  padding-bottom: max(2rem, var(--safe-bottom));
  max-width: 40rem;
}
.kicker {
  font-family: var(--display); font-size: 0.78rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--lime); margin-bottom: 0.85rem;
}
.hero h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2.8rem, 12vw, 6.8rem);
  letter-spacing: 0.02em; text-transform: uppercase;
  line-height: 0.92; margin-bottom: 1rem;
  overflow-wrap: anywhere;
}
.lede {
  font-size: clamp(1rem, 3.4vw, 1.12rem); color: var(--mute-light);
  max-width: 32rem; margin-bottom: 1.5rem;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0.65rem 1.15rem;
  font-weight: 650; font-size: 0.92rem; text-decoration: none;
  border-radius: 2px; cursor: pointer;
  transition: background 180ms ease-out, color 180ms ease-out, border-color 180ms ease-out;
}
.btn.fill { background: var(--lime); color: var(--void); }
.btn.fill:hover { background: #d4f24a; color: var(--void); }
.btn.line {
  border: 1px solid var(--line-light); color: var(--paper);
}
.btn.line:hover { border-color: var(--lime); color: var(--lime); }

/* —— pull quote —— */
.pull {
  background: var(--void-2); color: var(--paper);
  padding: 2.2rem clamp(1.25rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--line-light);
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.45s ease-out, transform 0.45s ease-out;
}
.pull.in { opacity: 1; transform: none; }
.pull blockquote {
  max-width: 46rem;
  font-family: var(--display); font-weight: 500;
  font-size: clamp(1.15rem, 2.6vw, 1.7rem);
  letter-spacing: 0.01em; line-height: 1.35;
  border-left: 3px solid var(--lime);
  padding-left: 1.1rem;
}

/* —— paper sections —— */
.sheet {
  padding: clamp(3rem, 7vw, 5rem) clamp(1.25rem, 5vw, 3.5rem);
}
.sheet-head { max-width: 38rem; margin-bottom: 2.2rem; }
.sheet-head.narrow { margin-bottom: 0; }
.eyebrow {
  font-family: var(--display); font-size: 0.72rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--lime-deep); margin-bottom: 0.55rem;
}
.sheet h2, .ink h2, .contact h2 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.7rem, 4.5vw, 2.75rem);
  letter-spacing: 0.01em; text-transform: uppercase;
  line-height: 1.05; margin-bottom: 0.75rem;
}
.deck {
  color: var(--muted); font-size: 1.05rem; max-width: 36rem;
  margin-bottom: 0.75rem;
}
.deck strong { color: var(--ink); font-weight: 700; }

.trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.trio article {
  padding: 1.5rem 1.35rem 1.5rem 0;
  border-right: 1px solid var(--line);
  padding-right: 1.4rem;
  margin-right: 1.4rem;
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}
.trio article:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.trio article.in { opacity: 1; transform: none; }
.trio h3 {
  font-family: var(--display); font-size: 1.15rem;
  text-transform: uppercase; letter-spacing: 0.03em;
  margin-bottom: 0.55rem;
}
.trio p { color: var(--muted); font-size: 0.98rem; }

/* —— dark method —— */
.ink {
  background: var(--void);
  color: var(--paper);
  padding: clamp(3rem, 7vw, 5rem) clamp(1.25rem, 5vw, 3.5rem);
}
.ink .eyebrow { color: var(--lime); }
.ink-grid {
  display: grid;
  grid-template-columns: minmax(12rem, 0.85fr) 1.4fr;
  gap: 2.5rem;
  align-items: start;
}
.flow {
  list-style: none;
  display: grid; gap: 0.85rem;
}
.flow li {
  display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line-light);
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}
.flow li:last-child { border-bottom: 1px solid var(--line-light); }
.flow li.in { opacity: 1; transform: none; }
.flow span {
  font-family: var(--display); color: var(--lime);
  text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.95rem;
}
.flow p { color: var(--mute-light); }

/* —— contact —— */
.contact {
  background: #e6e3d8;
  padding: clamp(3rem, 6vw, 4.5rem) clamp(1.25rem, 5vw, 3.5rem);
  border-top: 4px solid var(--lime);
}
.contact-inner { max-width: 32rem; }
.contact a {
  color: var(--ink); font-weight: 600; font-size: 1.1rem;
  text-decoration: none; border-bottom: 1px solid var(--lime-deep);
  display: inline-flex; min-height: 44px; align-items: center;
}
.contact a:hover { color: var(--lime-deep); }
.contact p { margin-bottom: 0.35rem; }
.contact address {
  font-style: normal; color: var(--muted);
  margin-top: 1.4rem; line-height: 1.7;
}

/* —— footer —— */
.foot {
  background: var(--void); color: var(--mute-light);
  padding: 2.2rem clamp(1.25rem, 5vw, 3.5rem) calc(1.6rem + var(--safe-bottom));
  font-size: 0.9rem;
}
.foot-grid {
  display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
  margin-bottom: 1.4rem;
}
.foot strong {
  display: block; color: var(--paper);
  font-family: var(--display); text-transform: uppercase;
  letter-spacing: 0.06em; margin-bottom: 0.4rem;
}
.foot-links { display: grid; gap: 0.15rem; text-align: right; }
.foot-links a {
  color: var(--mute-light); text-decoration: none;
  min-height: 44px; display: inline-flex; align-items: center; justify-content: flex-end;
}
.foot-links a:hover { color: var(--lime); }
.copy { font-size: 0.76rem; opacity: 0.7; }

/* —— legal pages —— */
.legal-page {
  width: min(720px, 92vw); margin: 0 auto; padding: 4rem 0 5rem;
  color: var(--muted);
}
.legal-page h1 {
  font-family: var(--display); color: var(--ink);
  font-size: 2.2rem; text-transform: uppercase;
  letter-spacing: 0.02em; margin: 1rem 0;
}
.legal-page h2 {
  font-family: var(--display); color: var(--ink);
  font-size: 1.15rem; text-transform: uppercase;
  margin: 1.6rem 0 0.5rem;
}
.legal-page p { margin-bottom: 0.85rem; }
.legal-back {
  font-family: var(--display); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--lime-deep); text-decoration: none;
  min-height: 44px; display: inline-flex; align-items: center;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pull, .trio article, .flow li {
    opacity: 1; transform: none; transition: none;
  }
}

@media (max-width: 980px) {
  .rail { display: none !important; }
  .topbar {
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 50;
    padding: calc(0.65rem + var(--safe-top)) max(1rem, var(--safe-x)) 0.65rem;
    background: rgba(16, 20, 15, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--lime);
  }
  .top-brand {
    display: inline-flex; align-items: center; gap: 0.55rem;
    color: var(--paper); text-decoration: none;
    font-family: var(--display); text-transform: uppercase;
    letter-spacing: 0.06em; font-weight: 600;
    min-height: 44px;
  }
  .top-brand img { border-radius: 6px; width: 32px; height: 32px; }
  .top-actions {
    display: flex; align-items: center; gap: 0.35rem;
  }
  .top-mail {
    color: var(--lime); text-decoration: none;
    font-family: var(--display); letter-spacing: 0.08em;
    text-transform: uppercase; font-size: 0.85rem;
    min-height: 44px; min-width: 44px;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0 0.4rem;
  }
  .nav-toggle {
    width: 44px; height: 44px;
    display: inline-flex; flex-direction: column; justify-content: center; align-items: center;
    gap: 5px; border: 0; background: transparent; cursor: pointer; padding: 0;
  }
  .nav-toggle span {
    display: block; width: 20px; height: 2px; background: var(--lime);
    transition: transform 180ms ease-out, opacity 180ms ease-out;
  }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .mobile-nav {
    display: flex; flex-direction: column;
    position: fixed; inset: 0 0 0 0; z-index: 45;
    padding: calc(4.5rem + var(--safe-top)) 1.25rem calc(1.5rem + var(--safe-bottom));
    background: rgba(16, 20, 15, 0.98);
    gap: 0.15rem;
  }
  .mobile-nav[hidden] { display: none !important; }
  .mobile-nav a {
    color: var(--paper); text-decoration: none;
    font-family: var(--display); text-transform: uppercase;
    letter-spacing: 0.06em; font-size: 1.15rem;
    min-height: 48px; display: flex; align-items: center;
    border-bottom: 1px solid var(--line-light);
  }
  .mobile-nav a:hover { color: var(--lime); }

  main, .foot { margin-left: 0; }
  .trio { grid-template-columns: 1fr; }
  .trio article {
    border-right: 0; margin-right: 0; padding-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .ink-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .flow li { grid-template-columns: 5rem 1fr; gap: 0.75rem; }
  .foot-links { text-align: left; }
  .foot-links a { justify-content: flex-start; }
  .hero { min-height: 100svh; }
  .hero-copy {
    min-height: 100svh;
    padding-top: 5.5rem;
    padding-left: max(1.15rem, var(--safe-x));
    padding-right: max(1.15rem, var(--safe-x));
  }
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .btn { width: 100%; }
}

@media (max-width: 430px) {
  .hero h1 { font-size: clamp(2.55rem, 14vw, 3.4rem); }
  .flow li { grid-template-columns: 1fr; }
  .flow span { margin-bottom: 0.2rem; }
}
