/* Lincoln Studio: "The Grid" direction.
   One tight grotesk, hard rules, a strict 12-column grid, one cobalt accent. */

:root {
  --paper: #ffffff;
  --graphite: #111214;
  --cobalt: #2341e0;
  --cobalt-dark: #1a31b0;
  --fog: #e9eaee;
  --muted: #5b5e66;
  --rule: #d4d6dc;

  --f-sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --gutter: clamp(16px, 3vw, 32px);
  --max: 1240px;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--graphite);
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; }

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

.skip { position: absolute; left: -9999px; top: 8px; background: var(--graphite); color: var(--paper); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

.label {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--graphite);
}
.accent { color: var(--cobalt); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--cobalt);
  color: var(--paper);
  font-family: var(--f-sans);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  padding: 15px 22px;
  border: 0;
  cursor: pointer;
  transition: background-color .15s;
}
.btn:hover { background: var(--cobalt-dark); }
.btn span { transition: transform .15s; }
@media (hover: hover) { .btn:hover span { transform: translateX(3px); } }
.btn-small { padding: 10px 14px; font-size: 14px; }
.btn-light { background: var(--paper); color: var(--graphite); }
.btn-light:hover { background: var(--fog); }
.text-link { display: inline-block; padding-block: 10px; font-family: var(--f-mono); font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.text-link:hover { color: var(--graphite); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid transparent;
}
.site-header { color: var(--graphite); transition: border-color .2s, background-color .25s, color .25s; }
.site-header.is-scrolled { border-bottom-color: var(--rule); }
/* Over the dark hero: see-through so the grid lines run up behind it */
.site-header.on-dark { background: rgba(17, 18, 20, .72); color: var(--paper); border-bottom-color: rgba(255, 255, 255, .09); }
.site-header.on-dark .nav a:hover { color: #7d93ff; }
.site-header.on-dark :focus-visible { outline-color: var(--paper); }
.header-row { height: var(--header-h); display: flex; align-items: center; gap: 32px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.logo-square { width: 14px; height: 14px; background: var(--cobalt); display: block; flex: none; }
.logo-word { font-weight: 800; font-size: 21px; letter-spacing: -.045em; line-height: 1; }
.nav { display: flex; gap: 28px; }
.nav a { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .07em; text-decoration: none; }
.nav a:hover { color: var(--cobalt); }

/* ---------- hero: "blueprint" ---------- */
.hero {
  --line: rgba(255, 255, 255, .09); --dim: #8d919b; --sky: #7d93ff;
  position: relative; overflow: hidden;
  background: var(--graphite); color: var(--paper);
  /* slide up under the sticky header so the two read as one surface */
  margin-top: calc(-1 * var(--header-h));
  padding-block: calc(var(--header-h) + clamp(48px, 6vw, 88px)) clamp(48px, 6vw, 80px);
}
.hero-cols { position: absolute; inset: 0; pointer-events: none; }
.hero-cols .container { height: 100%; display: grid; grid-template-columns: repeat(12, 1fr); }
.hero-cols .container div { border-left: 1px solid var(--line); }
.hero-cols .container div:last-child { border-right: 1px solid var(--line); }
.hero-inner { position: relative; display: grid; gap: clamp(28px, 4vw, 48px); }
.hero-label { color: var(--dim); display: flex; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; }
.measure { display: flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 11px; color: var(--dim); margin-bottom: 14px; white-space: nowrap; }
.measure::before, .measure::after { content: ""; flex: 1; height: 1px; background: var(--dim); opacity: .5; }
.hero h1 {
  font-weight: 800;
  font-size: clamp(34px, 9.2vw, 130px);
  line-height: .9;
  letter-spacing: -.055em;
}
.hero h1 .line { display: block; }
.hero h1 .accent { color: var(--sky); }
.hero-side { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 48px; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.45; max-width: 36ch; }
.hero .lead { color: #d8dae0; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.hero .text-link { color: var(--dim); }
.hero .text-link:hover { color: var(--paper); }
.hero :focus-visible { outline-color: var(--paper); }

.ticks { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; }
.ticks li { font-family: var(--f-mono); font-size: 12px; color: var(--dim); }
.ticks b { color: var(--paper); font-weight: 500; margin-right: 6px; }

/* crosshair that follows the cursor (mouse only) */
.cross { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .2s; }
.hero:hover .cross { opacity: 1; }
.cross-x, .cross-y { position: absolute; background: var(--cobalt); }
.cross-x { left: 0; right: 0; height: 1px; }
.cross-y { top: 0; bottom: 0; width: 1px; }
.cross-readout { position: absolute; font-family: var(--f-mono); font-size: 11px; background: var(--cobalt); color: var(--paper); padding: 2px 6px; white-space: nowrap; }
@media (pointer: coarse), (prefers-reduced-motion: reduce) { .cross { display: none; } }

/* ---------- generic sections ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); }
.work { padding-top: clamp(48px, 6vw, 80px); }
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 80px); }
.split-head { display: grid; gap: 16px; align-content: start; }
.split-head h2 { font-weight: 800; font-size: clamp(32px, 3.6vw, 46px); line-height: 1; letter-spacing: -.04em; }
.section-bar { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-top: 2px solid var(--graphite); padding-top: 12px; margin-bottom: clamp(28px, 4vw, 48px); }

/* ---------- problem ---------- */
.problem { background: var(--fog); }
.problem-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 2px solid var(--graphite); }
.problem-grid article { padding: 24px 0 28px; display: grid; gap: 10px; align-content: start; border-bottom: 1px solid var(--rule); }
.problem-grid article:nth-child(odd) { padding-right: clamp(16px, 2.5vw, 36px); border-right: 1px solid var(--rule); }
.problem-grid article:nth-child(even) { padding-left: clamp(16px, 2.5vw, 36px); }
.problem-grid h3 { font-size: 22px; font-weight: 700; letter-spacing: -.025em; }
.problem-grid p { color: var(--muted); font-size: 16px; }
.problem-grid .fix { color: var(--graphite); position: relative; padding-left: 22px; }
.problem-grid .fix::before { content: "→"; position: absolute; left: 0; color: var(--cobalt); font-weight: 700; }

/* ---------- work ---------- */
.work-head { display: grid; gap: 16px; border-top: 2px solid var(--graphite); padding-top: 14px; margin-bottom: clamp(36px, 5vw, 64px); }
.work-head h2 { font-weight: 800; font-size: clamp(40px, 6.4vw, 92px); line-height: .9; letter-spacing: -.05em; max-width: 14ch; }
.work-head > p:last-child { color: var(--muted); font-size: 18px; max-width: 52ch; }
.work-cta { margin-top: clamp(40px, 5vw, 64px); padding-top: 20px; border-top: 2px solid var(--graphite); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.work-cta p { font-weight: 800; font-size: clamp(26px, 3.2vw, 40px); letter-spacing: -.04em; line-height: 1; }
.cases { display: grid; gap: clamp(72px, 10vw, 140px); }
.case { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.case:nth-child(even) { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
.case:nth-child(even) .case-media { order: 2; }
.case-media { position: relative; padding-bottom: 6%; padding-right: 7%; }
.case:nth-child(even) .case-media { padding-right: 0; padding-left: 7%; }

.case-shot { display: block; text-decoration: none; color: inherit; border: 1px solid var(--graphite); background: var(--paper); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
@media (hover: hover) { .case-shot:hover { transform: translateY(-4px); box-shadow: 10px 10px 0 var(--cobalt); } }
.case-shot img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.chrome { display: flex; align-items: center; gap: 5px; height: 30px; padding: 0 12px; border-bottom: 1px solid var(--graphite); background: var(--paper); }
.chrome i { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--graphite); display: block; }
.chrome span { margin-left: 12px; font-family: var(--f-mono); font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

.phone { position: absolute; right: 0; bottom: 0; width: 22%; aspect-ratio: 780 / 1688; max-width: 100%; border: 5px solid var(--graphite); border-radius: 22px; overflow: hidden; background: var(--graphite); box-shadow: 0 18px 40px rgba(17, 18, 20, .22); }
.case:nth-child(even) .phone { right: auto; left: 0; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

.case-info { display: grid; gap: 16px; align-content: center; }
.case-kind { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #1fa45a; box-shadow: 0 0 0 3px rgba(31, 164, 90, .18); }
.case-info h3 { font-weight: 800; font-size: clamp(34px, 3.8vw, 52px); line-height: .92; letter-spacing: -.05em; }
.case-desc { font-size: 17px; }
.built { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--graphite); }
.built li { font-size: 15px; padding: 9px 0 9px 20px; border-bottom: 1px solid var(--rule); position: relative; }
.built li::before { content: ""; position: absolute; left: 0; top: 17px; width: 7px; height: 7px; background: var(--cobalt); }
.case-link { justify-self: start; padding-top: 10px; font-weight: 700; font-size: 16px; color: var(--cobalt); text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 2px; }
.case-link:hover { color: var(--cobalt-dark); }
@media (prefers-reduced-motion: reduce) { .case-shot { transition: none; } .case-shot:hover { transform: none; } }

/* ---------- faq ---------- */
.faq-list { border-top: 2px solid var(--graphite); }
.faq-list details { border-bottom: 1px solid var(--rule); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; font-weight: 700; font-size: 19px; letter-spacing: -.02em; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-family: var(--f-mono); font-weight: 400; color: var(--cobalt); font-size: 22px; line-height: 1; transition: transform .2s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { color: var(--muted); padding: 0 0 22px; max-width: 62ch; }

/* ---------- contact ---------- */
.contact { background: var(--cobalt); color: var(--paper); padding-block: clamp(64px, 9vw, 120px); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "copy form" "info form"; gap: 0 clamp(32px, 5vw, 80px); }
.contact-copy { grid-area: copy; }
.form { grid-area: form; }
.contact-info { grid-area: info; align-self: start; }
.contact-copy { display: grid; gap: 20px; align-content: start; }
.label-light { color: var(--paper); opacity: .8; }
.contact h2 { font-weight: 800; font-size: clamp(36px, 4.6vw, 62px); line-height: .94; letter-spacing: -.045em; }
.contact-copy > p { font-size: 18px; max-width: 40ch; opacity: .92; }
.contact-info { margin: 32px 0 0; border-top: 1px solid rgba(255,255,255,.35); }
.contact-info div { display: grid; grid-template-columns: 80px 1fr; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.35); }
.contact-info dt { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .07em; opacity: .8; padding-top: 3px; }
.contact-info dd { margin: 0; font-weight: 600; }
.contact-info a { text-decoration: none; display: inline-block; padding-block: 8px; margin-block: -8px; }
.contact-info a:hover { text-decoration: underline; }

.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; align-content: start; }
.field { display: grid; gap: 6px; min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field label { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .07em; }
.field label span { text-transform: none; opacity: .7; letter-spacing: 0; }
.field input, .field textarea {
  font: inherit;
  font-size: 17px;
  color: var(--paper);
  background: transparent;
  border: 0;
  border-bottom: 2px solid rgba(255,255,255,.55);
  padding: 8px 0;
  border-radius: 0;
  width: 100%;
}
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,.5); }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--paper); }
.form .btn { grid-column: 1 / -1; justify-self: start; margin-top: 8px; }
.form-status { grid-column: 1 / -1; font-family: var(--f-mono); font-size: 13px; }
.hp { position: absolute; left: -9999px; }
.contact :focus-visible { outline-color: var(--paper); }

.promise { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.promise li { display: grid; gap: 4px; border-top: 2px solid var(--paper); padding-top: 10px; }
.promise b { font-weight: 800; font-size: clamp(26px, 2.8vw, 34px); letter-spacing: -.04em; line-height: 1; }
.promise span { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; opacity: .85; line-height: 1.4; }

/* ---------- footer ---------- */
.site-footer { background: var(--graphite); color: var(--paper); padding-block: clamp(48px, 7vw, 88px) 28px; overflow: hidden; }
.footer-mark { display: flex; align-items: center; gap: clamp(10px, 1.6vw, 22px); font-weight: 800; letter-spacing: -.055em; font-size: clamp(48px, 12.5vw, 176px); line-height: .9; white-space: nowrap; }
.footer-mark .logo-square { width: .32em; height: .32em; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: clamp(28px, 4vw, 48px); padding-top: 14px; border-top: 1px solid #33363c; font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: #a9acb5; }
.footer-row a { text-decoration: none; padding-block: 10px; margin-block: -10px; }
.footer-row a:hover { color: var(--paper); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .split { grid-template-columns: 1fr; }
  .case, .case:nth-child(even) { grid-template-columns: 1fr; }
  .case:nth-child(even) .case-media { order: 0; }
  .contact-grid { grid-template-columns: 1fr; grid-template-areas: "copy" "form" "info"; }
  .form { margin-top: 36px; }
}
@media (max-width: 720px) {
  .hero h1 { font-size: clamp(40px, 13vw, 64px); line-height: .92; }
  .hero-label { font-size: 11px; letter-spacing: .05em; }
  .measure { font-size: 10px; }
  .hero-side { gap: 28px; }
  .cta-row { flex-direction: column; align-items: stretch; gap: 4px; width: 100%; }
  .cta-row .btn, .work-cta .btn, .form .btn { justify-content: center; width: 100%; }
  .cta-row .text-link { text-align: center; }
  .work-cta { flex-direction: column; align-items: stretch; }
  .case-info { gap: 14px; }
  .footer-row { flex-direction: column; gap: 14px; }
  .hero-label span:last-child { display: none; }
  .nav { display: none; }
  .problem-grid { grid-template-columns: 1fr; }
  .problem-grid article:nth-child(odd), .problem-grid article:nth-child(even) { padding-inline: 0; border-right: 0; }
  .form { grid-template-columns: 1fr; }
  .phone { width: 26%; border-width: 3px; border-radius: 14px; }
}
@media (max-width: 420px) {
  .logo-word { font-size: 19px; }
  .header-row { gap: 12px; }
}
