/* Nori Experience Group: shared styles */
:root {
  --night: #13233a;
  --night-2: #1c3150;
  --night-3: #27406a;
  --paper: #f2f4f6;
  --white: #ffffff;
  --ink: #18202c;
  --muted: #5b6676;
  --muted-on-night: #a9b6c8;
  --amber: #f2b441;
  --amber-deep: #c98a12;
  --line: #d5dae1;
  --line-night: #2f4569;

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 9vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--amber); color: var(--night); padding: 8px 14px; z-index: 100; font-weight: 600; }
.skip:focus { left: 8px; }

/* Type */
h1, h2, h3 {
  font-family: var(--display);
  font-stretch: 118%;
  font-variation-settings: "wdth" 118;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.5rem, 6.4vw, 5.25rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 750; }
h3 { font-size: clamp(1.2rem, 1.6vw, 1.45rem); font-weight: 700; font-stretch: 108%; font-variation-settings: "wdth" 108; line-height: 1.2; }
p { margin: 0 0 1em; max-width: 66ch; }
.lead { font-size: clamp(1.15rem, 1.7vw, 1.35rem); line-height: 1.55; color: var(--muted); }

/* Header */
.site-header {
  background: var(--night);
  color: var(--white);
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--line-night);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 24px; }
.brand { text-decoration: none; display: flex; align-items: baseline; gap: 10px; }
.brand-mark {
  font-family: var(--display); font-weight: 800; font-size: 1.5rem;
  font-stretch: 125%; font-variation-settings: "wdth" 125; letter-spacing: 0.02em;
}
.brand-sub { font-size: 0.85rem; color: var(--muted-on-night); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-weight: 500; font-size: 0.98rem; color: #dfe6ef; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--white); border-bottom-color: var(--line-night); }
.nav a[aria-current="page"] { color: var(--white); border-bottom-color: var(--amber); }
.nav .btn { border-bottom: 0; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-night); color: var(--white); font: inherit; font-weight: 600; padding: 8px 14px; border-radius: 6px; cursor: pointer; }

/* Buttons */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 1rem;
  padding: 14px 22px; border-radius: 6px; border: 2px solid transparent;
  transition: background-color .15s ease, color .15s ease;
}
.btn-amber { background: var(--amber); color: var(--night); }
.btn-amber:hover { background: #ffc85e; }
.btn-ghost { border-color: rgba(255,255,255,.45); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-dark { background: var(--night); color: var(--white); }
.btn-dark:hover { background: var(--night-2); }
.nav .btn { padding: 10px 18px; color: var(--night); }

/* Hero */
.hero {
  background: var(--night);
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 11vw, 150px) 0 clamp(88px, 12vw, 160px);
}
.hero h1 { max-width: 15ch; margin-bottom: 0.35em; }
.hero .lead { color: var(--muted-on-night); max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero > .wrap { position: relative; z-index: 2; }
.route {
  position: absolute; inset: auto 0 0 0; height: 100%; width: 100%;
  z-index: 1; pointer-events: none; overflow: hidden;
}
.route path.track { stroke: var(--line-night); stroke-width: 2; fill: none; stroke-dasharray: 2 10; }
.route path.beam {
  stroke: var(--amber); stroke-width: 3; fill: none; stroke-linecap: round;
  stroke-dasharray: 1600; stroke-dashoffset: 1600;
  animation: drive 2.6s cubic-bezier(.55,.1,.25,1) .3s forwards;
}
.route circle { fill: var(--amber); opacity: 0; animation: arrive .4s ease 2.8s forwards; }
.route circle.halo { fill: var(--amber); opacity: 0; animation: halo .9s ease 2.8s forwards; }
@keyframes drive { to { stroke-dashoffset: 0; } }
@keyframes arrive { to { opacity: 1; } }
@keyframes halo { 0% { opacity: .5; r: 6; } 100% { opacity: .15; r: 22; } }
@media (prefers-reduced-motion: reduce) {
  .route path.beam { animation: none; stroke-dashoffset: 0; }
  .route circle { animation: none; opacity: 1; }
  .route circle.halo { animation: none; opacity: .15; }
}

.page-hero { padding: clamp(64px, 9vw, 120px) 0 clamp(64px, 9vw, 110px); }
.page-hero h1 { font-size: clamp(2.3rem, 5.4vw, 4.4rem); max-width: 18ch; }

/* Sections */
.section { padding: var(--section) 0; }
.section-white { background: var(--white); }
.section-night { background: var(--night); color: var(--white); }
.section-night .lead, .section-night p { color: var(--muted-on-night); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }

/* Proof strip */
.proof { background: var(--night-2); color: #dfe6ef; padding: 26px 0; }
.proof .wrap { display: flex; flex-wrap: wrap; gap: 10px 36px; align-items: center; }
.proof-label { color: var(--muted-on-night); font-size: 0.95rem; margin-right: 8px; }
.proof strong { font-family: var(--display); font-stretch: 112%; font-variation-settings: "wdth" 112; font-weight: 650; font-size: 1.05rem; color: var(--white); }

/* Lanes (home services) */
.lanes { border-top: 2px solid var(--ink); }
.lane {
  display: grid; grid-template-columns: minmax(220px, 1fr) 2fr auto; gap: 24px 40px;
  align-items: start; padding: 34px 0; border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.lane h3 { margin: 0; font-size: clamp(1.4rem, 2.3vw, 2rem); font-stretch: 115%; font-variation-settings: "wdth" 115; line-height: 1.1; }
.lane p { margin: 0; color: var(--muted); }
.lane .more { font-weight: 600; white-space: nowrap; border-bottom: 2px solid var(--amber); padding-bottom: 2px; }
a.lane:hover h3 { color: var(--night-3); }
.lane-core h3 { color: var(--night); }

/* Service list (inner pages) */
.services { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 56px; }
.service { padding: 26px 0; border-top: 1px solid var(--line); }
.service h3 { margin-bottom: 8px; }
.service p { color: var(--muted); margin: 0; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 28px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 3px solid var(--amber); padding-top: 18px; }
.steps li::before {
  content: counter(step); display: block; font-family: var(--display); font-weight: 800;
  font-size: 2.4rem; line-height: 1; margin-bottom: 12px; color: var(--amber);
}
.steps h3 { margin-bottom: 6px; }
.steps p { margin: 0; color: var(--muted-on-night); font-size: 0.98rem; }
.section-white .steps p, .section .steps p { }
.on-light .steps p { color: var(--muted); }
.on-light .steps li::before { color: var(--amber-deep); }

/* Season terms */
.terms { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 28px; }
.term { border-left: 3px solid var(--amber); padding-left: 20px; }
.term h3 { margin-bottom: 6px; }
.term p { margin: 0; }

/* Stats sentence */
.stats { display: flex; flex-wrap: wrap; gap: 28px 56px; margin-top: 8px; }
.stat { min-width: 140px; }
.stat b { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1; font-stretch: 120%; font-variation-settings: "wdth" 120; }
.stat span { color: var(--muted); }
.section-night .stat span { color: var(--muted-on-night); }

/* Case studies */
.cases { display: grid; gap: 0; border-top: 2px solid var(--ink); }
.case { display: grid; grid-template-columns: minmax(200px, 1fr) 2fr; gap: 16px 48px; padding: 40px 0; border-bottom: 1px solid var(--line); }
.case h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-stretch: 115%; font-variation-settings: "wdth" 115; margin-bottom: 6px; }
.case .tag { color: var(--muted); font-size: 0.95rem; }
.case dl { margin: 0; display: grid; grid-template-columns: 110px 1fr; gap: 10px 20px; }
.case dt { font-weight: 600; color: var(--ink); }
.case dd { margin: 0; color: var(--muted); }
.case .result { color: var(--ink); font-weight: 500; }

/* Partners */
.partners { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 40px; }
.partner h3 { margin-bottom: 6px; }
.partner p { color: var(--muted); margin: 0; }

/* CTA band */
.cta-band { background: var(--amber); color: var(--night); padding: clamp(56px, 8vw, 96px) 0; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px 40px; }
.cta-band h2 { margin: 0 0 8px; max-width: 18ch; }
.cta-band p { margin: 0; color: #3c2c08; font-size: 1.1rem; }

/* Two column intro */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 72px; align-items: start; }
.split p:last-child { margin-bottom: 0; }

/* Contact form */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
label { font-weight: 600; font-size: 0.95rem; }
.hint { font-weight: 400; color: var(--muted); }
input, select, textarea {
  font: inherit; color: var(--ink); background: var(--white);
  border: 1px solid #b9c2ce; border-radius: 6px; padding: 12px 14px; width: 100%;
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--amber); outline-offset: 1px; border-color: var(--night); }
fieldset { border: 0; padding: 0; margin: 0; grid-column: 1 / -1; }
legend { font-weight: 600; font-size: 0.95rem; margin-bottom: 10px; }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px 24px; }
.checks label { font-weight: 400; display: flex; gap: 10px; align-items: center; }
.checks input { width: 18px; height: 18px; accent-color: var(--night); }
.hidden { display: none; }
.contact-side p { color: var(--muted); }
.contact-side a { font-weight: 600; }
.contact-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 56px; align-items: start; }

/* Footer */
.site-footer { background: var(--night); color: var(--muted-on-night); padding: 56px 0 40px; font-size: 0.97rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.site-footer .brand-mark { color: var(--white); }
.site-footer a { color: #dfe6ef; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer h3 { color: var(--white); font-size: 1rem; font-stretch: 100%; font-variation-settings: "wdth" 100; margin-bottom: 12px; }
.footer-bottom { border-top: 1px solid var(--line-night); margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.9rem; }

/* Responsive */
@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--night); flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 20px; border-bottom: 1px solid var(--line-night);
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line-night); }
  .nav a[aria-current="page"] { border-bottom-color: var(--amber); }
  .nav .btn { margin-top: 14px; text-align: center; }
  .brand-sub { display: none; }
  .lane { grid-template-columns: 1fr; gap: 10px; }
  .services, .partners, .split, .contact-layout { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .terms { grid-template-columns: 1fr; }
  .case { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .steps, .form-grid, .checks { grid-template-columns: 1fr; }
  .case dl { grid-template-columns: 1fr; gap: 2px; }
  .case dd { margin-bottom: 10px; }
  .hero-actions .btn { width: 100%; text-align: center; }
}

/* Photography */
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero.has-photo::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(19,35,58,.94) 0%, rgba(19,35,58,.82) 42%, rgba(19,35,58,.35) 100%);
}
.hero.has-photo .route { z-index: 2; }
.hero.has-photo > .wrap { z-index: 3; }
.hero.has-photo { padding-top: clamp(96px, 14vw, 190px); padding-bottom: clamp(110px, 15vw, 200px); }
.page-hero.has-photo { padding-top: clamp(80px, 11vw, 150px); padding-bottom: clamp(80px, 11vw, 150px); }

.lane.with-photo { grid-template-columns: 200px minmax(200px, 1fr) 2fr auto; align-items: center; }
.lane-photo { width: 200px; height: 130px; object-fit: cover; border-radius: 4px; background: var(--line); }

.photo-band { display: grid; grid-template-columns: 3fr 2fr; gap: 12px; }
.photo-band img { width: 100%; height: clamp(220px, 32vw, 440px); object-fit: cover; border-radius: 4px; }
.photo-band.three { grid-template-columns: 2fr 1fr 1fr; }

.split-photo { width: 100%; height: 100%; min-height: 320px; max-height: 520px; object-fit: cover; border-radius: 4px; }

.case-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; margin-bottom: 18px; background: var(--line); }

@media (max-width: 900px) {
  .lane.with-photo { grid-template-columns: 1fr; }
  .lane-photo { width: 100%; height: 200px; }
  .photo-band, .photo-band.three { grid-template-columns: 1fr 1fr; }
  .photo-band img:first-child { grid-column: 1 / -1; }
  .hero.has-photo::after { background: linear-gradient(180deg, rgba(19,35,58,.78) 0%, rgba(19,35,58,.9) 100%); }
}

/* ===== White theme to match the NXG brand ===== */
:root {
  --ink: #101212;
  --muted: #5a5f66;
  --paper: #f4f4f4;
  --amber: #101212;
  --amber-deep: #101212;
  --line: #e1e3e6;
  --display: "Archivo", "Arial Black", Arial, sans-serif;
  --body: "Poppins", "Helvetica Neue", Arial, sans-serif;
}
body { background: var(--white); font-size: 1rem; }
h1, h2 { font-weight: 900; text-transform: uppercase; letter-spacing: -0.005em; line-height: 0.98; }
:focus-visible { outline-color: #101212; }

/* Header */
.site-header { background: var(--white); color: var(--ink); border-bottom: 1px solid var(--line); }
.brand-logo { height: 40px; width: auto; display: block; }
.brand-sub { color: var(--muted); }
.nav a { color: var(--ink); }
.nav a:hover { color: var(--ink); border-bottom-color: var(--line); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.nav .btn { color: var(--white); }
.nav-toggle { color: var(--ink); border-color: var(--line); }

/* Buttons */
.btn-amber { background: var(--ink); color: var(--white); }
.btn-amber:hover { background: #33373b; }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--paper); }
.btn-dark { background: var(--ink); }

/* Hero: white, headline first, photo below */
.hero, .hero.has-photo, .page-hero.has-photo {
  background: var(--white); color: var(--ink);
  display: flex; flex-direction: column;
  padding: clamp(56px, 8vw, 110px) 0 0;
}
.hero.has-photo::after { display: none; }
.hero .lead { color: var(--muted); }
.hero > .wrap { order: 1; width: 100%; }
.hero .hero-img {
  order: 2; position: static; display: block; width: 100%;
  height: clamp(280px, 42vw, 620px); margin-top: clamp(40px, 6vw, 72px);
}
.hero .route { display: none; }
.hero:not(.has-photo) { padding-bottom: clamp(56px, 8vw, 110px); border-bottom: 1px solid var(--line); }
.hero h1 { max-width: 16ch; }

/* Proof strip */
.proof { background: var(--white); color: var(--ink); border-bottom: 1px solid var(--line); }
.proof-label { color: var(--muted); }
.proof strong { color: var(--ink); font-weight: 800; }

/* Formerly dark sections become light grey */
.section-night { background: var(--paper); color: var(--ink); }
.section-night .lead, .section-night p, .section-night .stat span { color: var(--muted); }
.steps p { color: var(--muted); }
.steps li::before { color: var(--ink); }
.steps li { border-top-color: var(--ink); }
.term { border-left-color: var(--ink); }
.section { background-color: inherit; }
.section:not(.section-white):not(.section-night) { background: var(--white); }
.section-white { background: var(--paper); }

/* Lanes and cases */
.lane .more { border-bottom-color: var(--ink); }
a.lane:hover h3 { color: #44494e; }

/* CTA band: black */
.cta-band { background: var(--ink); color: var(--white); }
.cta-band p { color: #c9ccd0; }
.cta-band .btn-dark { background: var(--white); color: var(--ink); }
.cta-band .btn-dark:hover { background: #e8e9ea; }

/* Footer stays black to anchor the page */
.site-footer { background: var(--ink); }
.footer-logo { height: 34px; width: auto; display: block; }

@media (max-width: 900px) {
  .nav { background: var(--white); border-bottom-color: var(--line); }
  .nav a { border-bottom-color: var(--line); }
  .nav a[aria-current="page"] { border-bottom-color: var(--ink); }
}
.lane-core h3, .lane h3 { color: var(--ink); }
.footer-bottom { border-top-color: #2b2f33; }
.site-footer { color: #b8bcc1; }
:root { --night: #101212; --night-2: #2b2f33; --night-3: #44494e; --line-night: #2b2f33; --muted-on-night: #b8bcc1; }
.skip { background: var(--ink); color: var(--white); }

/* ===== Swoop-style elements ===== */
.hero-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 32px; margin: clamp(40px, 5vw, 64px) 0 0; padding-top: 28px; border-top: 1px solid var(--line); max-width: 860px; }
.hero-stats div { display: flex; flex-direction: column-reverse; }
.hero-stats dd { margin: 0; font-family: var(--display); font-weight: 900; font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1; font-stretch: 112%; font-variation-settings: "wdth" 112; }
.hero-stats dt { color: var(--muted); font-size: 0.92rem; margin-top: 6px; }

.aud-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.aud-tabs button {
  font: inherit; font-weight: 600; cursor: pointer; padding: 12px 20px; border-radius: 999px;
  border: 1.5px solid var(--ink); background: var(--white); color: var(--ink);
}
.aud-tabs button[aria-selected="true"] { background: var(--ink); color: var(--white); }
.aud-panel { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px 56px; align-items: center; }
.aud-panel[hidden] { display: none; }
.aud-photo { width: 100%; height: auto; aspect-ratio: 14 / 11; object-fit: cover; border-radius: 4px; background: var(--line); }
.aud-for { color: var(--muted); }
.aud-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 14px; }
.aud-list li { padding-left: 30px; position: relative; font-weight: 500; }
.aud-list li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 16px; height: 9px; border-left: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(-45deg); }

.metrics { display: flex; flex-wrap: wrap; gap: 12px 40px; margin: 18px 0 0; }
.metrics div { display: flex; flex-direction: column; }
.metrics dd { order: 1; margin: 0; font-family: var(--display); font-weight: 900; font-size: 1.9rem; line-height: 1; }
.metrics dt { order: 2; color: var(--muted); font-size: 0.9rem; margin-top: 4px; }

.markets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.market { position: relative; display: block; border-radius: 4px; overflow: hidden; text-decoration: none; color: var(--white); background: var(--ink); min-height: 300px; }
.market-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: opacity .2s ease; }
.market:hover .market-photo { opacity: .4; }
.market-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; display: flex; flex-direction: column; gap: 6px; background: linear-gradient(0deg, rgba(16,18,18,.85), rgba(16,18,18,0)); }
.market-text strong { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 1.5rem; line-height: 1; }
.market-text span { font-size: 0.95rem; color: #dfe1e3; }

@media (max-width: 900px) {
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aud-panel { grid-template-columns: 1fr; }
  .markets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .market { min-height: 240px; }
}
@media (max-width: 560px) {
  .aud-tabs { flex-wrap: nowrap; overflow-x: auto; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 4px; }
  .aud-tabs button { white-space: nowrap; }
  .markets { grid-template-columns: 1fr; }
}

/* Service cards (image on top, tinted panel below) */
:root { --tint-a: #e6ecef; --tint-a2: #f3f6f7; --tint-b: #ece8e1; --tint-b2: #f6f4f0; --tint-c: #e7e6ec; --tint-c2: #f3f3f6; }
.svc-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.svc-card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); border-radius: 18px; overflow: hidden; min-width: 0; }
.svc-photo { width: 100%; aspect-ratio: 600 / 520; height: auto; object-fit: cover; display: block; background: var(--line); }
.svc-body { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 28px 26px 30px; }
.svc-body h3 { margin: 0; font-size: clamp(1.35rem, 1.9vw, 1.7rem); font-stretch: 105%; font-variation-settings: "wdth" 105; }
.svc-body p { margin: 0; color: #3d4247; }
.svc-link { margin-top: auto; padding-top: 18px; font-weight: 600; }
.svc-a .svc-body { background: linear-gradient(180deg, var(--tint-a), var(--tint-a2)); }
.svc-b .svc-body { background: linear-gradient(180deg, var(--tint-b), var(--tint-b2)); }
.svc-c .svc-body { background: linear-gradient(180deg, var(--tint-c), var(--tint-c2)); }
.svc-card:hover .svc-link { text-decoration: underline; text-underline-offset: 4px; }
.svc-card:hover .svc-photo { filter: brightness(1.05); }
.svc-more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 40px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.svc-more h3 { margin-bottom: 6px; }
.svc-more p { margin: 0; color: var(--muted); }
@media (max-width: 900px) {
  .svc-cards { grid-template-columns: 1fr; max-width: 560px; }
  .svc-more { grid-template-columns: 1fr; }
}
:root { --tint-d: #e9e7e3; --tint-d2: #f5f4f1; --tint-e: #e3e8ec; --tint-e2: #f1f4f6; --tint-f: #e8ebe6; --tint-f2: #f4f6f2; }
.svc-d .svc-body { background: linear-gradient(180deg, var(--tint-d), var(--tint-d2)); }
.svc-e .svc-body { background: linear-gradient(180deg, var(--tint-e), var(--tint-e2)); }
.svc-f .svc-body { background: linear-gradient(180deg, var(--tint-f), var(--tint-f2)); }
@media (max-width: 900px) and (min-width: 561px) { .svc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; } }
.case-photo.is-art { object-fit: contain; background: var(--ink); }

/* Why NXG */
.why { background: var(--paper); }
.why-head { text-align: center; max-width: 900px; margin: 0 auto clamp(40px, 6vw, 72px); display: flex; flex-direction: column; align-items: center; gap: 18px; }
.why-head h2 { margin: 0; text-wrap: balance; }
.why-head .lead { margin: 0; max-width: 56ch; }
.why-pill { display: inline-block; padding: 7px 16px; border-radius: 999px; background: var(--ink); color: var(--white); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; }
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 48px; }
.why-item { min-width: 0; }
.why-icon { display: inline-flex; width: 84px; height: 84px; border-radius: 50%; background: var(--white); align-items: center; justify-content: center; margin-bottom: 22px; }
.why-icon svg { width: 54px; height: 54px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.why-check circle { fill: var(--ink); stroke: none; }
.why-check path { stroke: var(--white); stroke-width: 2.4; }
.why-item h3 { margin: 0 0 4px; font-size: clamp(1.3rem, 1.8vw, 1.6rem); }
.why-sub { margin: 0 0 18px; color: var(--muted); }
.why-stat { margin: 0 0 16px; display: flex; flex-direction: column; }
.why-stat b { font-family: var(--display); font-weight: 900; font-size: clamp(2.6rem, 4.4vw, 3.6rem); line-height: 1; font-stretch: 112%; font-variation-settings: "wdth" 112; text-transform: uppercase; }
.why-stat span { color: var(--muted); font-size: 0.92rem; margin-top: 6px; }
.why-item p:last-child { margin: 0; color: #3d4247; }
@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; } }
.section.why { background: var(--paper); }

/* FAQ, legal pages, footer links */
.faq { max-width: 820px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 44px 22px 0; position: relative; font-weight: 600; font-size: 1.1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 22px; color: var(--muted); max-width: 68ch; }
.legal { max-width: 760px; }
.legal h2 { font-size: clamp(1.25rem, 2vw, 1.5rem); text-transform: none; font-weight: 800; margin: 40px 0 10px; }
.legal p { color: #3d4247; }
.legal-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* Case study panels (Our Work) */
.section.cs-section { background: var(--white); padding-top: 0; }
.cs-list { display: grid; gap: 24px; }
.cs { display: grid; grid-template-columns: 5fr 7fr; border-radius: 6px; overflow: hidden; background: var(--ink); color: var(--white); scroll-margin-top: 90px; }
.cs-photo { width: 100%; height: 100%; min-height: 340px; object-fit: cover; display: block; background: #1d2023; }
.cs-photo.is-art { object-fit: contain; background: var(--ink); }
.cs-panel { padding: clamp(28px, 4vw, 52px); min-width: 0; }
.cs-logo { display: block; width: auto; max-width: 260px; margin-bottom: 18px; object-fit: contain; object-position: left center; }
.cs-panel h2 { color: var(--white); font-size: clamp(2rem, 3.6vw, 3rem); margin: 0 0 22px; }
.cs-panel h3 { color: var(--white); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 800; margin: 22px 0 8px; font-stretch: 100%; font-variation-settings: "wdth" 100; }
.cs-panel p { color: #c9ccd0; margin: 0; font-size: 0.97rem; }
.cs-panel ul { margin: 0; padding-left: 1.1em; color: #c9ccd0; font-size: 0.97rem; display: grid; gap: 4px; }
.cs-result li { color: var(--white); font-weight: 500; }
@media (max-width: 900px) {
  .cs { grid-template-columns: 1fr; }
  .cs-photo { min-height: 0; height: auto; aspect-ratio: 6 / 5; }
}
.cs { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } .cs-photo { min-width: 0; } @media (max-width: 900px) { .cs { grid-template-columns: minmax(0, 1fr); } }
.footer-logo { height: 44px; }

/* Logo sizing: fixed dimensions so no browser can shrink it */
.brand { flex: 0 0 auto; align-items: center; }
.brand-logo { width: 130px; height: auto; max-width: none; aspect-ratio: 432 / 163; }
.footer-logo { width: 120px; height: auto; max-width: none; aspect-ratio: 431 / 163; }
@media (max-width: 560px) { .brand-logo { width: 108px; } }

/* Market cards: same title and description height on every card */
.market-text strong { font-size: clamp(1.15rem, 1.55vw, 1.4rem); min-height: 2em; display: flex; align-items: flex-end; overflow-wrap: anywhere; }
.market-text > span { min-height: 4.8em; line-height: 1.6; }
@media (max-width: 560px) { .market-text strong, .market-text > span { min-height: 0; } }
/* Anchor the text block from the top so titles line up regardless of description length */
.market-text { justify-content: flex-start; height: 12.5em; }
.market-text > span { min-height: 0; }
@media (max-width: 560px) { .market-text { height: auto; } }

/* Paired client logos */
.cs-logos { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-bottom: 18px; }
.cs-logos .cs-logo { margin-bottom: 0; }
.cs-logo-divider { width: 1px; align-self: stretch; min-height: 32px; background: #3a3f44; }

/* Featured work poster marquee */
.section.featured { background: var(--white); padding-bottom: clamp(56px, 8vw, 96px); }
.eyebrow { margin: 0 0 10px; font-weight: 600; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink); }
.featured h2 { max-width: 20ch; text-wrap: balance; }
.marquee { overflow: hidden; width: 100%; }
.marquee-track { display: flex; gap: 12px; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.poster { display: block; flex: 0 0 auto; }
.poster img { height: clamp(260px, 30vw, 380px); width: auto; display: block; filter: grayscale(1) contrast(1.05); transition: filter .25s ease; }
.poster:hover img, .poster:focus-visible img { filter: none; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; }
  .marquee-track { animation: none; }
  .marquee-track .poster[aria-hidden="true"] { display: none; }
}

/* Brand logo grid */
.section.brands { background: var(--white); }
.brand-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.brand-grid li { border: 1.5px solid var(--ink); background: #fff; display: flex; align-items: center; justify-content: center; aspect-ratio: 323 / 170; overflow: hidden; }
.brand-grid img { width: 100%; height: 100%; object-fit: contain; display: block; }
@media (max-width: 900px) { .brand-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.featured h2 { max-width: 30ch; }

/* Compact case study cards on service pages */
.work-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.work-card { display: flex; flex-direction: column; background: var(--ink); color: var(--white); border-radius: 6px; overflow: hidden; text-decoration: none; min-width: 0; }
.wc-photo { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; display: block; background: #1d2023; }
.wc-photo.is-art { object-fit: contain; }
.wc-body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 24px; }
.wc-logo { width: auto; max-width: 200px; object-fit: contain; object-position: left center; align-self: flex-start; }
.work-card h3 { margin: 0; color: var(--white); }
.work-card p { margin: 0; color: #c9ccd0; font-size: 0.97rem; }
.wc-link { margin-top: auto; padding-top: 10px; font-weight: 600; }
a.work-card:hover .wc-link { text-decoration: underline; text-underline-offset: 4px; }
.featured-cta { margin-top: 32px; }

/* Footer social links */
.social { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.social-label { color: #b8bcc1; font-size: 0.92rem; margin-right: 4px; }
.social a { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border: 1px solid #3a3f44; border-radius: 50%; color: #fff; }
.site-footer .social a:hover { background: #fff; color: var(--ink); text-decoration: none; }
.social svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.social svg .fill { fill: currentColor; stroke: none; }

/* Homepage band rhythm: alternate white and light grey */
main > section.bg-white { background: var(--white); }
main > section.bg-paper { background: var(--paper); }
main > section.tight-top { padding-top: clamp(16px, 2vw, 32px); }
.featured .section-head { max-width: 1000px; }
.featured h2 { max-width: 26ch; }
main > section.bg-white { background: var(--white) !important; }
main > section.bg-paper { background: var(--paper) !important; }
.featured .section-head { max-width: 1100px; }
.featured h2 { max-width: 32ch; }
main > section.tight-bottom { padding-bottom: clamp(32px, 4vw, 56px); }
main > section.tight-top { padding-top: clamp(8px, 1.5vw, 24px); }
.work-cards.two-up { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 700px) { .work-cards.two-up { grid-template-columns: 1fr; } }

/* Collapse the menu earlier now that there are five links */
@media (max-width: 1100px) {
  .nav-toggle { display: inline-block; }
  .nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--white); flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 20px; border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
  .nav a[aria-current="page"] { border-bottom-color: var(--ink); }
  .nav .btn { margin-top: 14px; text-align: center; border-bottom: 0; }
}
.nav a { white-space: nowrap; }
