/* Grader Media: homepage styles
   Palette: Navy #0B1220 (base) / Graphite #111A2E / Steel #18233B / Line #22304D / Paper #F2F5FA
            Brand blue #2F6BFF (logo, fills, large accents) / Button blue #2B62F0 (white text 5.1:1)
            Blue text #5B8CFF (small blue text on navy 5.9:1) / Grey-blue #8FA3BF (secondary text 7.3:1)
   Type: Archivo (headings, semi-expanded) + IBM Plex Sans (body) */

:root {
  --ink: #0B1220;
  --graphite: #111A2E;
  --steel: #18233B;
  --line: #22304D;
  --paper: #F2F5FA;
  --mist: #8FA3BF;
  --blue: #2F6BFF;
  --blue-btn: #2B62F0;
  --blue-btn-hover: #2152D6;
  --blue-text: #5B8CFF;
  --body-2: #C9D3E3;
  --dim: #7F8DA6;
  --font-head: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4rem, 9vw, 7.5rem);
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--font-head); font-stretch: 112%; line-height: 1.08; margin: 0; letter-spacing: -0.015em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--blue-text); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--blue-btn); color: #fff; padding: .6rem 1rem; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 1rem; }

.eyebrow {
  font-family: var(--font-head); font-stretch: 112%;
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--blue-text); margin-bottom: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--blue-btn); color: #fff;
  font-family: var(--font-head); font-stretch: 112%; font-weight: 700; font-size: 1rem;
  padding: .95rem 1.6rem; border-radius: var(--radius); border: 2px solid var(--blue-btn);
  text-decoration: none; transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--blue-btn-hover); border-color: var(--blue-btn-hover); }
.btn-ghost { background: transparent; color: var(--paper); border-color: var(--line); }
.btn-ghost:hover { background: transparent; border-color: var(--paper); }
.btn-small { padding: .55rem 1rem; font-size: .9rem; }
.btn-large { padding: 1.15rem 2.2rem; font-size: 1.15rem; width: 100%; }
.text-link { color: var(--blue-text); font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.text-link:hover { color: var(--paper); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11,18,32,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; }
.brand img { display: block; height: 30px; width: auto; }
.site-footer .brand img { height: 34px; }
.site-nav ul { display: flex; align-items: center; gap: 2rem; }
.site-nav a:not(.btn) { text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--mist); }
.site-nav a:not(.btn):hover { color: var(--paper); }
.nav-toggle { display: none; }

@media (max-width: 820px) {
  .nav-toggle { display: grid; place-items: center; width: 44px; height: 44px; background: none; border: 1px solid var(--line); border-radius: var(--radius); color: var(--paper); cursor: pointer; }
  .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
  .nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bar::before { top: -6px; } .nav-toggle-bar::after { top: 6px; }
  .site-nav { position: absolute; top: 72px; left: 0; right: 0; background: var(--ink); border-bottom: 1px solid var(--line); display: none; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem var(--gutter) 1.25rem; }
  .site-nav li a:not(.btn) { display: block; padding: .85rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .site-nav .btn { margin-top: 1rem; }
}

/* Hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-media {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 40%, #1B3170 0%, #111A2E 45%, var(--ink) 75%);
}
.hero-media::before { /* navy overlay above the footage so the headline keeps WCAG AA contrast */
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, var(--ink) 0%, rgba(11,18,32,.92) 38%, rgba(11,18,32,.72) 70%, rgba(11,18,32,.55) 100%),
    linear-gradient(180deg, rgba(11,18,32,.25) 0%, rgba(11,18,32,0) 30%, rgba(11,18,32,.6) 100%);
}
.hero-media::after { /* viewfinder frame marks */
  content: ""; position: absolute; z-index: 2; right: 6%; top: 18%; width: 34%; aspect-ratio: 16/9;
  border: 1px solid rgba(47,107,255,.7);
  -webkit-mask: linear-gradient(#000 0 0) top left/22px 22px no-repeat, linear-gradient(#000 0 0) top right/22px 22px no-repeat,
                linear-gradient(#000 0 0) bottom left/22px 22px no-repeat, linear-gradient(#000 0 0) bottom right/22px 22px no-repeat;
          mask: linear-gradient(#000 0 0) top left/22px 22px no-repeat, linear-gradient(#000 0 0) top right/22px 22px no-repeat,
                linear-gradient(#000 0 0) bottom left/22px 22px no-repeat, linear-gradient(#000 0 0) bottom right/22px 22px no-repeat;
}
.hero-media picture, .hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media img, .hero-media video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.hero-media video { z-index: 0; }
@media (prefers-reduced-motion: reduce) { .hero-media video { display: none; } }
.hero-inner { position: relative; z-index: 3; padding-top: clamp(5rem, 12vw, 9rem); padding-bottom: clamp(4rem, 9vw, 7rem); }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.75rem); font-weight: 800; max-width: 20ch; }
.lede { margin-top: 1.5rem; font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--body-2); max-width: 44ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.25rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: .5rem 2rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); max-width: 760px; color: var(--mist); font-size: .95rem; }
.hero-points li::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--blue); margin-right: .6rem; vertical-align: middle; }

/* Client strip: logo marquee */
.clients { padding: 2.25rem 0; background: var(--graphite); border-bottom: 1px solid var(--line); overflow: hidden; }
.clients-title { font-family: var(--font-body); font-stretch: 100%; font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--mist); margin-bottom: 1.25rem; }
.marquee {
  --marquee-gap: 3.5rem;
  max-width: 1440px; margin: 0 auto; overflow: hidden; outline: none;
  -webkit-mask: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.marquee:focus-visible { box-shadow: inset 0 0 0 2px var(--mist); }
.marquee-track { display: flex; width: max-content; animation: marquee 36s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* padding-right = gap, so each list is exactly half the track and the loop is seamless */
.logo-strip { display: flex; flex-wrap: nowrap; align-items: center; gap: var(--marquee-gap); padding: .25rem var(--marquee-gap) .25rem 0; flex-shrink: 0; }
.logo-strip li { flex-shrink: 0; display: flex; align-items: center; height: 48px; }
.logo-strip img { display: block; max-width: none; }
.logo-strip .logo-text {
  font-family: var(--font-head); font-stretch: 125%; font-weight: 800; font-size: 1.25rem;
  text-transform: uppercase; letter-spacing: .02em; color: var(--body-2); white-space: nowrap;
}
@media (max-width: 720px) { .marquee { --marquee-gap: 2.5rem; } .marquee-track { animation-duration: 30s; } }
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask: none; mask: none; padding: 0 var(--gutter); }
  .marquee-track { width: auto; transform: none; }
  .logo-strip { flex-wrap: wrap; justify-content: center; gap: 1rem 2.5rem; padding: 0; flex-shrink: 1; }
  .logo-strip[aria-hidden="true"] { display: none; }
}

/* Sections */
.section { padding: var(--section) 0; }
.section-alt { background: var(--graphite); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); font-weight: 800; }
.section-intro { margin-top: 1.1rem; color: var(--mist); font-size: 1.1rem; }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.service { background: var(--ink); padding: clamp(1.75rem, 3.5vw, 2.75rem); display: flex; flex-direction: column; gap: 1rem; }
.service-num { font-family: var(--font-head); font-weight: 700; color: var(--blue-text); font-size: .95rem; letter-spacing: .08em; }
.service h3 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); font-weight: 700; }
.service p { color: var(--body-2); }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; padding-top: .5rem; }
.tags li { font-size: .8rem; font-weight: 500; color: var(--mist); border: 1px solid var(--line); padding: .3rem .65rem; border-radius: 999px; }
.service-sister { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; gap: 2rem; background: var(--graphite); }
.service-sister h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.service-sister p:not(.eyebrow) { max-width: 62ch; }
.service-sister .eyebrow { color: var(--mist); margin-bottom: .5rem; }
.service-sister .text-link { white-space: nowrap; }

/* Work cards */
.work-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 1.6vw, 1.5rem); }
.work-grid .card-body { padding: 1.2rem 1.2rem 1.4rem; }
.work-grid .card h3 { font-size: 1.08rem; }
.card { background: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s, transform .15s; }
.card:hover { border-color: #34477A; transform: translateY(-2px); }
.card-media { display: block; aspect-ratio: 16 / 10; position: relative; background: var(--graphite); overflow: hidden; }
.card-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 1.4rem 1.4rem 1.6rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.card-client { font-family: var(--font-head); font-stretch: 112%; font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-text); }
.card h3 { font-size: 1.2rem; font-weight: 700; line-height: 1.25; }
.card h3 a { color: inherit; text-decoration-color: var(--blue); text-underline-offset: 3px; }
.card-type { margin-top: auto; padding-top: .5rem; font-size: .88rem; color: var(--mist); }

/* Industries */
.industries { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.industries .section-head { margin-bottom: 0; position: sticky; top: 110px; }
.industry-list li { padding: 1.5rem 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1.3fr; gap: 1.5rem; }
.industry-list li:last-child { border-bottom: 1px solid var(--line); }
.industry-list h3 { font-size: 1.25rem; font-weight: 700; }
.industry-list p { color: var(--mist); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: step; }
.steps li { counter-increment: step; padding-top: 1.5rem; border-top: 2px solid var(--line); position: relative; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block; font-family: var(--font-head); font-stretch: 125%; font-weight: 800; font-size: 2.5rem; line-height: 1; color: var(--blue); margin-bottom: 1rem;
}
.steps li:first-child { border-top-color: var(--blue); }
.steps h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: .6rem; }
.steps p { color: var(--mist); }

/* Where we work */
.base { padding: clamp(3rem, 6vw, 4.5rem) 0; border-bottom: 1px solid var(--line); }
.base-inner { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.base h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 800; }
.base p:not(.eyebrow) { color: var(--body-2); }
.base p a:not(.text-link) { color: var(--paper); }
.base-link { margin-top: 1.25rem; }
.hero-points a, .footer-brand a:not(.brand), .footer-legal a { color: inherit; text-underline-offset: 3px; }
.card-link { color: var(--mist); text-underline-offset: 3px; }
@media (max-width: 720px) { .base-inner { grid-template-columns: 1fr; } }

/* Contact */
.contact { background: linear-gradient(180deg, var(--ink), #0F1A36); }
.contact-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.contact h2 { font-size: clamp(2.2rem, 5vw, 3.75rem); font-weight: 800; }
.checklist { margin-top: 1.5rem; display: grid; gap: .6rem; }
.checklist li { padding-left: 1.75rem; position: relative; color: var(--body-2); }
.checklist li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 2px; background: var(--blue); }
.contact-card { background: var(--graphite); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.75rem, 4vw, 2.75rem); }
.contact-email { margin-top: 1.1rem; text-align: center; color: var(--mist); }
.contact-email a { color: var(--paper); }
.contact-note { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: .92rem; color: var(--mist); }
.contact-note a { color: var(--paper); }

/* Quote form (Netlify Forms) */
.contact-inner:has(.quote-form) { grid-template-columns: 1fr 1.35fr; align-items: start; }
.contact-inner:has(.quote-form) > div:first-child { position: sticky; top: 110px; }
.quote-form-title { font-size: clamp(1.35rem, 2.2vw, 1.65rem); font-weight: 700; }
.form-hint { margin-top: .5rem; font-size: .88rem; color: var(--mist); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1rem; margin: 1.5rem 0; }
.field { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: .92rem; font-weight: 600; color: var(--paper); }
.field .req { color: var(--blue-text); }
.field .opt { font-weight: 400; color: var(--mist); }
.field-hint { font-size: .82rem; color: var(--mist); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--paper);
  background: var(--ink); border: 1px solid #34477A; border-radius: var(--radius);
  padding: .75rem .85rem; min-height: 48px; transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 128px; line-height: 1.5; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 2.5rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%238FA3BF' stroke-width='2' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center;
}
.field select option { background: var(--graphite); color: var(--paper); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--mist); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-text); box-shadow: 0 0 0 3px rgba(91,140,255,.35); }
.field input:user-invalid, .field select:user-invalid, .field textarea:user-invalid { border-color: #FF8A8A; }
.quote-form .btn[disabled] { opacity: .7; cursor: progress; }
.form-error { margin-bottom: 1.1rem; padding: .9rem 1rem; border: 1px solid #FF8A8A; border-left-width: 4px; border-radius: var(--radius); background: rgba(255,138,138,.08); color: var(--paper); font-size: .95rem; }
.form-error a, .form-success a { color: var(--paper); text-underline-offset: 3px; }
.form-success { padding: .5rem 0 .25rem; outline: none; }
.form-success .eyebrow { margin-bottom: .75rem; }
.form-success p:not(.eyebrow) { margin-top: .9rem; color: var(--body-2); }
@media (max-width: 1000px) {
  .contact-inner:has(.quote-form) { grid-template-columns: 1fr; }
  .contact-inner:has(.quote-form) > div:first-child { position: static; }
}
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 3.5rem 0 2rem; background: var(--ink); }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 2rem; align-items: start; }
.footer-brand p { margin-top: 1rem; color: var(--mist); font-size: .95rem; }
.footer-nav ul { display: grid; gap: .5rem; }
.footer-nav a { color: var(--mist); text-decoration: none; font-size: .95rem; }
.footer-nav a:hover { color: var(--paper); }
.socials { display: flex; gap: .6rem; }
.socials a { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; color: var(--mist); }
.socials a:hover { color: #fff; background: var(--blue-btn); border-color: var(--blue-btn); }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .85rem; color: var(--dim); }
.footer-legal a { color: var(--mist); }

/* Responsive */
@media (max-width: 1000px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 2rem 1.5rem; }
  .industries { grid-template-columns: 1fr; }
  .industries .section-head { position: static; margin-bottom: 1rem; }
}
@media (max-width: 720px) {
  .services-grid { grid-template-columns: 1fr; }
  .service-sister { flex-direction: column; align-items: flex-start; }
  .work-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .industry-list li { grid-template-columns: 1fr; gap: .4rem; }
  .contact-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-media::after { display: none; }
  .hero-media::before { background: linear-gradient(180deg, rgba(11,18,32,.92) 0%, rgba(11,18,32,.88) 50%, var(--ink) 100%); }
}
