/* =========================================================
   OMTRIUM — Production stylesheet
   Plain HTML/CSS. No motion beyond 100ms link hover.
   ========================================================= */

:root {
  --cream:       #FAF8F4;
  --ink:         #1A1A1A;
  --gray:        #5A5A5A;
  --gray-soft:   #8A8580;
  --violet:      #5B3FBF;
  --violet-deep: #4A3FB0;
  --hairline:    #C9C4BA;

  --serif: 'Source Serif 4', 'Source Serif Pro', Georgia, serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-radius: 0;
}

html {
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.65;
  min-height: 100vh;
}

::selection {
  background: rgba(91, 63, 191, 0.18);
  color: var(--ink);
}

/* Skip to content */
.skip-to-content {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--ink);
  color: var(--cream);
  padding: 12px 20px;
  text-decoration: none;
  font-size: 14px;
  z-index: 200;
}
.skip-to-content:focus {
  top: 16px;
}

/* Brand bar */
.brand-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--violet);
  z-index: 100;
}

/* Container */
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 32px;
}
.container-approach {
  max-width: 760px;
}

/* Navigation */
nav.site-nav {
  padding-top: 64px;
}
.nav-inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.wordmark {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-decoration: none;
}
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  font-size: 13px;
  color: var(--gray);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 100ms linear;
}
.nav-links a:hover { color: var(--violet); }
.nav-links a.current { color: var(--violet); }

/* Sections */
section {
  padding: 120px 0;
  border-top: 1px solid var(--hairline);
}
section.hero {
  padding: 160px 0 120px;
  border-top: none;
}
section.hero.hero-approach {
  padding: 160px 0 56px;
}
section.steps-section {
  padding-top: 0;
  border-top: none;
}

/* Eyebrow */
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 40px;
}

/* Headlines */
h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 52px;
  line-height: 1.12;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin-bottom: 48px;
}
h1 .period,
h2 .period { color: var(--violet); }

h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.22;
  letter-spacing: -0.012em;
  margin-bottom: 40px;
  max-width: 600px;
}

h3 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: 0.01em;
  margin-bottom: 12px;
  color: var(--ink);
}

/* Body */
p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  margin-bottom: 24px;
  max-width: 640px;
}
p:last-child { margin-bottom: 0; }
p.lead { font-size: 19px; line-height: 1.55; }
p.muted { color: var(--gray); }

/* Links */
a.link {
  color: var(--violet);
  text-decoration: none;
  border-bottom: 1px solid var(--violet);
  padding-bottom: 1px;
  transition: color 100ms linear, border-color 100ms linear;
}
a.link:hover {
  color: var(--violet-deep);
  border-bottom-color: var(--violet-deep);
}

/* Stacked items */
.stack { margin-top: 8px; }
.stack .item {
  border-top: 1px solid var(--hairline);
  padding: 28px 0;
}
.stack .item:last-child {
  border-bottom: 1px solid var(--hairline);
}
.stack .item p {
  color: var(--gray);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 0;
  max-width: none;
}

/* Hero permission-to-leave note */
.hero-note {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--hairline);
  max-width: 580px;
}
.hero-note p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--gray);
  margin-bottom: 0;
}

/* Section trailing note */
.trailing-note {
  margin-top: 40px;
  max-width: 580px;
}
.trailing-note p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--gray);
  margin-bottom: 0;
}

/* Approach pointer */
.approach-pointer p { max-width: 560px; }

/* Contact email / primary CTA */
.contact-email {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--violet);
  text-decoration: none;
  border-bottom: 1px solid var(--violet);
  padding-bottom: 2px;
  transition: color 100ms linear, border-color 100ms linear;
  display: inline-block;
  margin-top: 16px;
}
.contact-email:hover {
  color: var(--violet-deep);
  border-bottom-color: var(--violet-deep);
}

/* CTA context + fallback (deploy spec §4.1) */
.cta-context {
  margin-top: 24px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--gray);
}
.cta-fallback {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--gray);
}

/* Approach steps */
.steps { margin-top: 16px; }
.step {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 40px;
  align-items: baseline;
  padding: 56px 0;
  border-top: 1px solid var(--hairline);
}
.step:last-child {
  border-bottom: none;
}
.step-numeral {
  font-family: var(--serif);
  font-size: 56px;
  font-weight: 400;
  color: var(--violet);
  line-height: 1;
  letter-spacing: 0.02em;
}
.step-title {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--ink);
}
.step-body p {
  color: var(--gray);
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 0;
  max-width: none;
}

/* Approach closing */
.closing {
  margin-top: 96px;
  padding-top: 56px;
  border-top: 1px solid var(--hairline);
}
.closing p {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 580px;
  margin-bottom: 0;
}

/* Footer */
footer {
  border-top: 1px solid var(--hairline);
  padding: 56px 0;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gray-soft);
}
footer span {
  display: inline-block;
  padding: 0 12px;
}

/* Focus visible */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 2px;
}

/* =========================================================
   /connect.html — form styles (deploy spec §5.6)
   ========================================================= */

.connect-form {
  margin-top: 8px;
  max-width: 580px;
}

.connect-form .field {
  border-top: none;
  padding: 28px 0;
  display: block;
}
.connect-form .field:last-of-type {
  /* visual rhythm before the submit button */
}

.connect-form label,
.connect-form legend {
  display: block;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin-bottom: 16px;
  padding: 0;
}

.connect-form .optional {
  color: var(--gray-soft);
  font-weight: 400;
  letter-spacing: 0;
  margin-left: 6px;
}

.connect-form .helper {
  font-size: 14px;
  line-height: 1.55;
  color: var(--gray);
  margin-bottom: 16px;
  max-width: 540px;
}

.connect-form input[type="text"],
.connect-form input[type="email"],
.connect-form textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--ink);
  padding: 8px 0;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 100ms linear;
}

.connect-form input[type="text"]::placeholder,
.connect-form input[type="email"]::placeholder,
.connect-form textarea::placeholder {
  color: var(--gray-soft);
  opacity: 1;
}

.connect-form input[type="text"]:focus,
.connect-form input[type="email"]:focus,
.connect-form textarea:focus {
  outline: none;
  border-bottom-color: var(--violet);
}

.connect-form textarea {
  resize: vertical;
  min-height: calc(1.6em * 3 + 16px);
}

.connect-form .field-radio {
  border: none;
  padding: 28px 0;
}

.connect-form .radio {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  padding: 6px 0;
  cursor: pointer;
  font-weight: 400;
  letter-spacing: 0;
  margin-bottom: 0;
}

.connect-form .radio input[type="radio"] {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border: 1px solid var(--gray);
  background: transparent;
  border-radius: 50%;
  margin: 0;
  position: relative;
  top: 2px;
  flex-shrink: 0;
  cursor: pointer;
  transition: border-color 100ms linear;
}

.connect-form .radio input[type="radio"]:checked {
  border-color: var(--violet);
  box-shadow: inset 0 0 0 3px var(--violet);
}

.connect-form .radio input[type="radio"]:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 2px;
}

.connect-form .field-conditional {
  margin-top: 16px;
  padding-left: 26px;
}
.connect-form .field-conditional label {
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 8px;
  font-weight: 400;
  letter-spacing: 0.04em;
}
.connect-form .field-conditional[hidden] {
  display: none;
}

.connect-submit {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--violet);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--violet);
  padding: 2px 0;
  margin-top: 40px;
  cursor: pointer;
  display: inline-block;
  transition: color 100ms linear, border-color 100ms linear;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}
.connect-submit:hover {
  color: var(--violet-deep);
  border-bottom-color: var(--violet-deep);
}

.confirmation-note {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--gray);
}

.connect-error {
  margin-top: 24px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--violet);
  border-top: 1px solid var(--hairline);
  padding-top: 16px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* Mobile */
@media (max-width: 640px) {
  html { font-size: 16px; }
  .container { padding: 0 24px; }

  nav.site-nav { padding-top: 48px; }
  .nav-links { gap: 20px; }

  section.hero { padding: 100px 0 80px; }
  section.hero.hero-approach { padding: 100px 0 40px; }
  section { padding: 80px 0; }

  h1 {
    font-size: 36px;
    margin-bottom: 32px;
    letter-spacing: -0.02em;
  }
  h2 {
    font-size: 26px;
    margin-bottom: 28px;
  }
  .eyebrow { margin-bottom: 28px; }
  p.lead { font-size: 18px; }
  .contact-email { font-size: 20px; }

  .step {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 44px 0;
  }
  .step-numeral { font-size: 40px; }
  .step-title { font-size: 22px; }

  .closing { margin-top: 72px; padding-top: 44px; }
  .closing p { font-size: 22px; }

  .connect-submit { font-size: 19px; }
  .confirmation-note { font-size: 13px; }
}
