/* Lampwright v1 · Night & Tungsten on Daylight
   Palette and type are locked (brand/final/PALETTE.md). Tungsten only ever means light:
   it appears on Night grounds, never as text on light grounds. */

/* Fonts: self-hosted latin subsets (SIL OFL, see assets/fonts/OFL-*.txt) */
@font-face {
  font-family: "Instrument Sans";
  src: url("assets/fonts/instrument-sans-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Newsreader";
  src: url("assets/fonts/newsreader-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Newsreader";
  src: url("assets/fonts/newsreader-italic-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Brand */
  --night: #0C1522;
  --tungsten: #F2A33A;
  --daylight: #F6F7F4;
  --brass: #8F5B10;
  --slate: #566174;
  --haze: #DFE3E6;
  --white: #FFFFFF;
  /* Derived UI tints */
  --night-2: #142034;
  --mist: #A9B2C1;
  --dim: #8C97A8;
  --lede-on-night: #C5CCD6;
  --body-on-light: #36404F;
  --field-line: #858F9F;   /* 3.3:1 on white: meets non-text contrast for inputs */
  --error: #B42318;        /* functional only: 6.5:1 on white */
  --flame: var(--tungsten);

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --wrap: 1200px;
  --gutter: 40px;
  --section-y: 60px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--daylight);
  color: var(--night);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  margin: 0;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.nowrap { white-space: nowrap; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Focus: Night ring on light grounds, Tungsten ring on Night grounds */
:focus-visible { outline: 2px solid var(--night); outline-offset: 3px; border-radius: 2px; }
.on-night :focus-visible, .site-footer :focus-visible { outline-color: var(--tungsten); }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 10;
  background: var(--tungsten); color: var(--night);
  font: 600 14px/1 var(--sans); padding: 12px 16px; border-radius: 4px; text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* Eyebrow */
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font: 600 12px/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  color: var(--brass);
}
.eyebrow::before { content: ""; width: 20px; height: 1px; background: currentColor; flex: none; }
.on-night .eyebrow { color: var(--mist); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  white-space: nowrap; text-decoration: none; cursor: pointer;
  font: 600 15px/1 var(--sans);
  padding: 16px 22px; border-radius: 4px; border: 1px solid var(--night);
  background: var(--night); color: var(--daylight);
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { background: #000; }
.btn[disabled] { cursor: progress; opacity: .8; }
.btn-light { background: var(--tungsten); border-color: var(--tungsten); color: var(--night); }
.btn-light:hover { background: #F5B45C; border-color: #F5B45C; }
.btn-ghost { background: transparent; border-color: rgba(246,247,244,.28); color: var(--daylight); }
.btn-ghost:hover { background: rgba(246,247,244,.07); border-color: rgba(246,247,244,.45); }
.btn-sm { padding: 11px 16px; font-size: 14px; }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(2px); }

/* ---------- Header ---------- */
.site-header { background: var(--night); color: var(--daylight); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-bar { height: 72px; border-bottom: 1px solid rgba(246,247,244,.10); display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; }
.brand { display: block; color: var(--daylight); text-decoration: none; }
.brand .wordmark { height: 30px; width: auto; }
.nav-links { display: flex; gap: 36px; list-style: none; margin: 0; padding: 0; font: 500 15px/1 var(--sans); }
.nav-links a { text-decoration: none; color: var(--mist); padding: 8px 0; }
.nav-links a:hover { color: var(--daylight); }

/* ---------- Hero ---------- */
.hero { background: var(--night); color: var(--daylight); padding: 48px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 72px; align-items: end; }
.hero h1 {
  font-size: clamp(2.5rem, 1.3rem + 4.1vw, 4.5rem);
  line-height: 1.0; letter-spacing: -0.025em;
  margin: 22px 0 24px;
  font-variation-settings: "opsz" 72;
}
.hero h1 em { font-style: italic; }
.hl-a em { color: var(--tungsten); }   /* option A: the light lands on "possibility" */
.hl-b em { color: var(--dim); }        /* option B: the dimmed "in the dark" from the locked mockup */
.hl-b { display: none; }
html[data-hero="b"] .hl-a { display: none; }
html[data-hero="b"] .hl-b { display: inline; }
.hero .lede { font-size: 19px; line-height: 1.55; color: var(--lede-on-night); max-width: 31em; margin: 0 0 32px; }
.hero .lede strong { color: var(--daylight); font-weight: 600; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.audience {
  display: flex; flex-wrap: wrap; gap: 10px 32px;
  margin: 30px 0 0; padding: 18px 0 0; list-style: none;
  border-top: 1px solid rgba(246,247,244,.12);
  font: 500 14px/1.4 var(--sans); color: var(--mist);
}
.audience li { display: flex; align-items: center; gap: 10px; }
.audience li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--tungsten); flex: none; }

.starts { background: var(--night-2); border: 1px solid rgba(246,247,244,.10); border-radius: 6px; padding: 28px 28px 24px; }
.starts-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 14px; }
.starts-head h2 { font-size: 26px; line-height: 1.15; }
.starts-head .mark { height: 36px; width: auto; color: var(--daylight); flex: none; }
.starts ol { list-style: none; margin: 0; padding: 0; counter-reset: start; }
.starts li {
  counter-increment: start; display: flex; gap: 14px; align-items: baseline;
  padding: 11px 0; border-top: 1px solid rgba(246,247,244,.10);
  font-size: 15.5px; line-height: 1.45; color: #E3E7EC;
}
.starts li::before {
  content: counter(start, decimal-leading-zero);
  font: 600 12px/1 var(--sans); letter-spacing: .08em; color: var(--tungsten); width: 20px; flex: none;
}
.starts .note { margin-top: 4px; padding-top: 14px; border-top: 1px solid rgba(246,247,244,.10); font-size: 14.5px; line-height: 1.55; color: var(--mist); }

/* ---------- Sections ---------- */
.section { padding: var(--section-y) 0; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: end; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(1.875rem, 1.5rem + 1.6vw, 2.75rem); line-height: 1.08; margin-top: 16px; font-variation-settings: "opsz" 60; }
.section-head > p { color: var(--body-on-light); font-size: 17px; max-width: 34em; }

/* Services */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--night); }
.svc { padding: 22px 32px 0 0; display: flex; flex-direction: column; }
.svc + .svc { padding-left: 32px; border-left: 1px solid var(--haze); }
.svc .num { font: 600 13px/1 var(--sans); letter-spacing: .1em; color: var(--brass); }
.svc h3 { font-size: 32px; line-height: 1.08; margin: 14px 0 6px; }
.svc .sub { font: 600 16px/1.4 var(--sans); margin: 0 0 10px; }
.svc .body { color: var(--body-on-light); font-size: 15.5px; line-height: 1.6; margin: 0 0 14px; }
.svc .incl { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--haze); font-size: 14px; line-height: 1.55; color: var(--slate); }

/* How it works band */
.band { background: var(--night); color: var(--daylight); }
.band .section-head > .private { color: var(--lede-on-night); font-size: 16.5px; line-height: 1.6; max-width: 34em; }
.band .private strong { color: var(--daylight); font-weight: 600; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(246,247,244,.22); }
.step { padding: 22px 28px 0 0; }
.step + .step { padding-left: 28px; border-left: 1px solid rgba(246,247,244,.10); }
.step .n { display: block; font: italic 400 34px/1 var(--serif); color: var(--tungsten); }
.step h3 { font-size: 24px; margin: 12px 0 6px; }
.step p { font-size: 15.5px; line-height: 1.55; color: var(--lede-on-night); }

/* Case studies: hidden on public v1 until an approved story exists (preview with ?cases=1) */
.cases { margin-top: 44px; display: grid; grid-template-columns: 190px repeat(3, 1fr); gap: 16px; align-items: stretch; }
.cases .label { font: 600 11px/1.5 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--mist); align-self: center; margin: 0; }
.cases .label small { display: block; font: 400 13px/1.4 var(--sans); letter-spacing: 0; text-transform: none; color: var(--dim); margin-top: 6px; }
.cases ul { display: contents; list-style: none; }
.cases li { border: 1px dashed rgba(246,247,244,.26); border-radius: 6px; padding: 18px 22px; display: flex; align-items: center; font: italic 400 19px/1.2 var(--serif); color: var(--lede-on-night); }

/* ---------- Inquiry ---------- */
.inquiry .wrap { display: grid; grid-template-columns: 0.9fr 1.5fr; gap: 56px; align-items: start; }
.inquiry h2 { font-size: clamp(1.875rem, 1.5rem + 1.6vw, 2.75rem); line-height: 1.08; margin: 16px 0 18px; font-variation-settings: "opsz" 60; }
.inquiry .intro-copy { color: var(--body-on-light); font-size: 17.5px; max-width: 26em; }
.inquiry .aside { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--haze); font-size: 15px; line-height: 1.55; color: var(--slate); }
.inquiry .aside strong { display: block; color: var(--night); font-weight: 600; font-size: 16px; margin-bottom: 2px; }

.form-card { background: var(--white); border: 1px solid var(--haze); border-radius: 6px; padding: 26px 30px 26px; }
.inquiry-form { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px 16px; }
.f-name, .f-email, .f-company { grid-column: span 2; }
.preview-note {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; line-height: 1.35; color: var(--slate);
  border: 1px dashed #A7B0BB; border-radius: 4px; padding: 5px 10px;
}
.preview-note::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--slate); flex: none; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; border: 0; margin: 0; padding: 0; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font: 600 13px/1.2 var(--sans); letter-spacing: .02em; padding: 0; color: var(--night); }
fieldset.field { display: block; }
.field legend { margin-bottom: 8px; }
/* Floated legend sits inline with the toggle on wide screens (still names the fieldset) */
.as-field { display: flow-root; }
.as-field legend { float: left; margin: 0 16px 0 0; line-height: 44px; }
.opt { font-weight: 400; color: var(--slate); }

.seg { display: inline-grid; grid-template-columns: 1fr 1fr; width: max-content; border: 1px solid var(--field-line); border-radius: 4px; overflow: hidden; }
.seg input[type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); }
.seg label { font: 500 14.5px/1 var(--sans); letter-spacing: 0; padding: 12px 20px; cursor: pointer; color: var(--night); text-align: center; background: var(--white); transition: background-color .15s ease, color .15s ease; }
.seg label:hover { background: var(--daylight); }
.seg input + label + input + label { border-left: 1px solid var(--field-line); }
.seg input:checked + label { background: var(--night); color: var(--daylight); }
.seg input:focus-visible + label { outline: 2px solid var(--night); outline-offset: -5px; }
.seg input:checked:focus-visible + label { outline-color: var(--tungsten); }

.field input, .field textarea {
  width: 100%; font: 400 16px/1.4 var(--sans); color: var(--night);
  background: var(--daylight); border: 1px solid var(--field-line); border-radius: 4px; padding: 12px 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input::placeholder, .field textarea::placeholder { color: var(--slate); opacity: 1; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--night); box-shadow: 0 0 0 3px rgba(242,163,58,.35); background: var(--white); }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--night); outline-offset: 1px; }
.field textarea { min-height: 88px; resize: vertical; }
.field [aria-invalid="true"] { border-color: var(--error); }
.field .help { font-size: 13px; line-height: 1.45; color: var(--slate); }
.field .error { font-size: 13.5px; line-height: 1.4; font-weight: 500; color: var(--error); }

.form-foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 2px; padding-top: 16px; border-top: 1px solid var(--haze); }
.foot-notes { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.form-foot small { font-size: 13px; line-height: 1.45; color: var(--slate); }
.form-status { grid-column: 1 / -1; font-size: 14px; color: var(--error); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.success { padding: 12px 0 4px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.success:focus { outline: none; }
.success .mark { height: 40px; width: auto; color: var(--night); margin-bottom: 20px; }
.success h3 { font-size: 32px; line-height: 1.12; margin: 0 0 10px; }
.success p:not(.preview-note) { color: var(--body-on-light); font-size: 17px; max-width: 30em; margin: 0 0 20px; }
.success .preview-note { display: inline-flex; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--daylight); padding: 40px 0 22px; }
.foot-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 26px; border-bottom: 1px solid rgba(246,247,244,.12); }
.site-footer .wordmark { height: 34px; width: auto; }
.site-footer .tag { margin: 14px 0 0; font: italic 400 20px/1.4 var(--serif); color: var(--lede-on-night); }
.foot-h { margin: 4px 0 14px; font: 600 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.site-footer ul { list-style: none; margin: 0; padding: 0; font-size: 15px; line-height: 1.75; }
.site-footer ul a { text-decoration: none; color: #E3E7EC; }
.site-footer ul a:hover { color: var(--tungsten); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 18px; font-size: 13px; color: var(--dim); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .f-name, .f-email { grid-column: span 3; }
  .f-company { grid-column: 1 / -1; }
}
@media (max-width: 1100px) {
  .hero .wrap, .section-head, .inquiry .wrap { gap: 48px; }
  .nav-links { gap: 26px; }
  .svc { padding-right: 28px; }
  .svc + .svc { padding-left: 28px; }
  .step { padding-right: 22px; }
  .step + .step { padding-left: 22px; }
}
@media (max-width: 900px) {
  :root { --gutter: 32px; --section-y: 60px; }
  .nav-links { display: none; }
  .hero { padding: 48px 0 56px; }
  .hero .wrap, .section-head, .inquiry .wrap { grid-template-columns: 1fr; gap: 36px; }
  .hero .wrap { gap: 44px; }
  .section-head { gap: 18px; margin-bottom: 32px; }
  .svc-grid { grid-template-columns: 1fr; }
  .svc, .svc + .svc { padding: 24px 0 26px; border-left: 0; }
  .svc + .svc { border-top: 1px solid var(--haze); }
  .svc .incl { margin-top: 0; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step, .step + .step { padding: 22px 24px 24px 0; border-left: 0; }
  .step:nth-child(even) { padding-left: 24px; border-left: 1px solid rgba(246,247,244,.10); }
  .step:nth-child(n+3) { border-top: 1px solid rgba(246,247,244,.10); }
  .cases { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr 1fr 1fr; }
  .foot-top > :first-child { grid-column: 1 / -1; }
}
@media (min-width: 601px) and (max-width: 900px) {
  /* Tablet: each service reads as a row (title left, detail right) to keep line lengths comfortable */
  .svc, .svc + .svc {
    display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); column-gap: 36px;
    grid-template-areas: "num body" "title body" "sub body" ". incl";
    grid-template-rows: auto auto 1fr auto;
  }
  .svc .num { grid-area: num; }
  .svc h3 { grid-area: title; margin-top: 10px; }
  .svc .sub { grid-area: sub; }
  .svc .body { grid-area: body; margin-bottom: 12px; }
  .svc .incl { grid-area: incl; }
}
@media (max-width: 600px) {
  :root { --gutter: 22px; --section-y: 52px; }
  body { font-size: 16px; }
  .nav-bar { height: 64px; }
  .brand .wordmark { height: 26px; }
  .hero { padding: 40px 0 48px; }
  .hero h1 { margin: 20px 0 22px; }
  .hl-a br.desk { display: none; }
  .hero .lede { font-size: 17.5px; margin-bottom: 28px; }
  .ctas .btn { flex: 1 1 100%; }
  .audience { gap: 10px 22px; margin-top: 32px; }
  .starts { padding: 22px 20px 20px; }
  .starts-head h2 { font-size: 24px; }
  .svc h3 { font-size: 30px; }
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step, .step:nth-child(even) { padding: 20px 0 20px 52px; border-left: 0; position: relative; }
  .step + .step { border-top: 1px solid rgba(246,247,244,.10); }
  .step .n { position: absolute; left: 0; top: 20px; }
  .step h3 { margin-top: 2px; }
  .form-card { padding: 22px 18px 24px; }
  .inquiry-form { grid-template-columns: 1fr; gap: 16px; }
  .f-name, .f-email, .f-company { grid-column: 1 / -1; }
  .as-field legend { float: none; line-height: 1.2; margin: 0 0 8px; }
  .seg { width: 100%; }
  .form-foot { flex-direction: column; align-items: stretch; }
  .form-foot .btn { width: 100%; }
  .foot-top { grid-template-columns: 1fr 1fr; gap: 28px 24px; }
  .foot-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
