/* Design Cost Consultants — site styles */
:root {
  --ink: #141414;
  --ground: #F4F3F1;
  --alt: #EAE8E5;
  --paper: #FFFFFF;
  --line: #D9D6D2;
  --line-strong: #BDB8B2;
  --text: #141414;
  --text-body: #3A3633;
  --muted: #55504C;
  --on-dark: #F4F3F1;
  --on-dark-muted: #B5B0AB;
  --dark-line: #333333;
  --red: #C8102E;
  --red-on-dark: #EF5A4F;
  --red-on-light: #A31826;
  --footer: #0B0B0B;
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans: 'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'IBM Plex Mono', 'Courier New', monospace;
  --pad: clamp(24px, 5.5vw, 80px);
  --section: clamp(64px, 8vw, 112px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--red-on-light); text-decoration: none; }
a:hover { color: #7E111C; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--paper); color: var(--ink); padding: 12px 16px; z-index: 100; }
.skip-link:focus { left: 16px; top: 16px; }
.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.section { padding-top: var(--section); padding-bottom: var(--section); }
.dark { background: var(--ink); color: var(--on-dark); }
.alt { background: var(--alt); }
.paper { background: var(--paper); }

/* Type */
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: 2.5px; color: var(--red-on-light); margin: 0 0 18px; text-transform: uppercase; }
.dark .eyebrow { color: var(--red-on-dark); }
.serif { font-family: var(--serif); font-weight: 400; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; }
.h-hero { font-size: clamp(52px, 7.2vw, 104px); line-height: 0.98; letter-spacing: -1.5px; }
.h-page { font-size: clamp(48px, 6.4vw, 92px); line-height: 0.98; letter-spacing: -1.2px; }
.h-section { font-size: clamp(38px, 4.4vw, 64px); line-height: 1.03; letter-spacing: -0.8px; }
.h-sub { font-size: clamp(32px, 3.6vw, 54px); line-height: 1.07; letter-spacing: -0.5px; }
.lead { font-size: clamp(16px, 1.4vw, 19px); line-height: 1.55; color: var(--on-dark-muted); max-width: 720px; margin: 0; }
.body { color: var(--text-body); }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); letter-spacing: 1.5px; font-size: 12px; text-transform: uppercase; }
.crumb { font-family: var(--mono); font-size: 12px; letter-spacing: 2px; color: var(--on-dark-muted); text-transform: uppercase; }
.crumb a { color: var(--on-dark-muted); }
.crumb span { color: var(--red-on-dark); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border-radius: 2px; font-family: var(--sans); font-weight: 600; font-size: 16px; border: 1px solid transparent; cursor: pointer; }
.btn-red { background: var(--red); color: #FFFFFF; }
.btn-red:hover { background: #A80D26; color: #FFFFFF; }
.btn-ghost { border-color: #5F5A56; color: var(--on-dark); font-weight: 500; }
.btn-ghost:hover { border-color: var(--on-dark); color: var(--on-dark); }
.btn-ghost-light { border-color: var(--ink); color: var(--ink); font-weight: 500; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

/* Header */
.site-header { background: var(--ink); color: var(--on-dark); border-bottom: 1px solid var(--dark-line); position: relative; z-index: 20; }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 88px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--on-dark); }
.brand img { height: 40px; width: auto; }
.brand span { font-family: var(--mono); font-size: 11px; letter-spacing: 2px; color: var(--on-dark-muted); }
.brand:hover { color: var(--on-dark); }
.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; margin: 0; padding: 0; font-size: 15px; }
.nav-links a { color: #D6D2CD; padding: 8px 0 6px; border-bottom: 2px solid transparent; }
.nav-links a:hover { color: #FFFFFF; }
.nav-links a[aria-current="page"] { color: #FFFFFF; border-bottom-color: var(--red); }
.nav-links .btn { color: #FFFFFF; padding: 0 22px; min-height: 44px; border-bottom: 0; }
.menu-toggle { display: none; background: transparent; border: 0; color: var(--on-dark); width: 44px; height: 44px; padding: 0; cursor: pointer; }
.menu-toggle svg { width: 26px; height: 26px; }

/* Hero (home) */
.hero { padding-top: clamp(48px, 6vw, 72px); padding-bottom: clamp(56px, 7vw, 88px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 540px); gap: clamp(40px, 5vw, 80px); align-items: stretch; }
.hero-copy { display: flex; flex-direction: column; justify-content: space-between; gap: 36px; }
.hero-copy .eyebrow { margin: 0; }
.slideshow { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.slides { position: relative; aspect-ratio: 27 / 28; background: #242424; overflow: hidden; }
.slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 900ms ease; }
.slides img.is-active { opacity: 1; }
.slide-caption { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: var(--mono); font-size: 12px; letter-spacing: 1px; color: var(--on-dark-muted); text-transform: uppercase; }
.slide-caption .role { display: flex; align-items: center; gap: 14px; text-align: right; }
.pause-btn { flex-shrink: 0; min-width: 64px; height: 40px; padding: 0 12px; background: transparent; border: 1px solid #5F5A56; border-radius: 2px; color: var(--on-dark); font-family: var(--mono); font-size: 11px; letter-spacing: 1.5px; cursor: pointer; }
.pause-btn:hover { border-color: var(--on-dark); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.stat { padding: 44px 32px 44px 0; }
.stat b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(52px, 5.3vw, 76px); line-height: 1; letter-spacing: -1px; margin-bottom: 10px; }
.stat span { font-size: 15px; line-height: 1.45; color: var(--muted); display: block; max-width: 260px; }

/* Generic grids */
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; row-gap: 32px; }
.col-7 { grid-column: span 7; } .col-6 { grid-column: span 6; } .col-5 { grid-column: span 5; } .col-4 { grid-column: span 4; } .col-3 { grid-column: span 3; }
.start-7 { grid-column: 7 / span 6; } .start-8 { grid-column: 8 / span 5; } .start-9 { grid-column: 9 / span 4; } .start-4 { grid-column: 4 / span 9; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 56px; }
.section-head .link { font-weight: 600; font-size: 16px; padding-bottom: 10px; white-space: nowrap; }
.dark .section-head .link { color: var(--red-on-dark); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.grid-6 { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 28px; }
.prose p { margin: 0 0 22px; color: var(--text-body); font-size: 17px; line-height: 1.7; }
.prose p:last-child { margin-bottom: 0; }

/* Cards */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 3px; padding: 32px; display: flex; flex-direction: column; gap: 14px; color: var(--ink); min-height: 290px; }
.card .mono { color: var(--red-on-light); }
.card h3 { font-size: 31px; line-height: 1.1; }
.card p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); }
.card .more { margin-top: auto; font-size: 14px; font-weight: 600; color: var(--red-on-light); }
.card.card-dark { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.card.card-dark .mono, .card.card-dark .more { color: var(--red-on-dark); }
.card.card-dark p { color: var(--on-dark-muted); }
a.card:hover { border-color: var(--line-strong); color: var(--ink); }
a.card.card-dark:hover { color: var(--on-dark); }

/* Ruled items (top border lists) */
.ruled { border-top: 1px solid var(--line-strong); padding-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.dark .ruled { border-top-color: var(--dark-line); }
.ruled h3 { font-size: 30px; line-height: 1.1; }
.ruled p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text-body); }
.dark .ruled p { color: var(--on-dark-muted); }
.ruled .mono { color: var(--red-on-light); }
.dark .ruled .mono { color: var(--red-on-dark); }
.work-card h3 { font-size: 28px; }
.sector { color: var(--ink); min-height: 80px; }
.sector h3 { font-size: 30px; }
.big-num { font-family: var(--serif); font-size: 52px; line-height: 1; }

/* Credential rows */
.rows > div { border-top: 1px solid var(--line); display: flex; align-items: center; gap: 32px; padding: 18px 0; min-height: 88px; }
.rows .tag { width: 120px; flex-shrink: 0; font-family: var(--mono); font-size: 13px; letter-spacing: 1px; color: var(--red-on-light); }
.rows strong { display: block; font-size: 17px; font-weight: 600; }
.rows small { display: block; font-size: 14px; color: var(--muted); }
.dark .rows > div { border-top-color: var(--dark-line); }

/* Name grids (clients, projects) */
.names { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.names.six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.names > * { min-height: 88px; padding: 16px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); display: flex; flex-direction: column; justify-content: center; gap: 4px; color: var(--ink); font-size: 15px; font-weight: 500; line-height: 1.35; }
.names.six > * { align-items: center; text-align: center; background: transparent; color: var(--text-body); }
.names small { font-size: 13px; font-weight: 400; color: var(--muted); }
a.name-link:hover { background: #FBFAF8; color: var(--ink); }
.group { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; row-gap: 16px; }
.group + .group { margin-top: 56px; }
.group-head { grid-column: span 3; padding-top: 18px; }
.group-head .mono { color: var(--red-on-light); display: block; margin-bottom: 8px; font-size: 11px; }
.group-head h2 { font-size: 30px; line-height: 1.1; }
.group .names { grid-column: 4 / span 9; }

/* Service lines */
.lines { border-bottom: 1px solid var(--line-strong); }
.line { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; row-gap: 12px; padding: 36px 0; border-top: 1px solid var(--line-strong); color: var(--ink); }
.line .mono { grid-column: span 3; color: var(--red-on-light); padding-top: 10px; }
.line h3 { grid-column: span 4; font-size: clamp(30px, 2.7vw, 38px); line-height: 1.08; }
.line .desc { grid-column: span 5; display: flex; flex-direction: column; gap: 12px; }
.line .desc p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--text-body); }
.line .refs { font-family: var(--mono); font-size: 12px; letter-spacing: 0.5px; line-height: 1.6; color: var(--muted); text-transform: uppercase; }
.line .more { font-size: 14px; font-weight: 600; color: var(--red-on-light); }
a.line:hover { color: var(--ink); }
a.line:hover h3 { color: var(--red-on-light); }

/* Stage tiles */
.tile { background: var(--ground); border: 1px solid var(--line); border-radius: 3px; padding: 24px; min-height: 170px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.tile .num { font-family: var(--mono); font-size: 13px; color: var(--red-on-light); }
.tile h3 { font-size: 25px; line-height: 1.12; }
.scope-note { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; gap: 32px; align-items: baseline; }
.scope-note .mono { flex-shrink: 0; color: var(--red-on-light); }
.scope-note p { margin: 0; font-size: 15px; color: var(--text-body); }

/* Framework */
.fw-col h4 { margin: 0; height: 40px; font-family: var(--mono); font-weight: 400; font-size: 12px; letter-spacing: 2px; color: var(--red-on-light); }
.fw-col ul { list-style: none; margin: 0; padding: 0; }
.fw-col li { min-height: 64px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 14px; font-size: 15px; font-weight: 600; line-height: 1.35; padding: 10px 0; }
.fw-col li::before { content: ''; width: 6px; height: 6px; flex-shrink: 0; background: var(--red); }
.core-band { margin-top: 32px; background: var(--ink); color: var(--on-dark); border-radius: 3px; padding: 28px 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.core-band .mono { color: var(--red-on-dark); }
.core-band .serif { font-size: 28px; }
.core-band p { margin: 0; font-size: 15px; color: var(--on-dark-muted); }

/* Figures panel (inner heroes) */
.figures > div { padding: 20px 0; border-top: 1px solid var(--dark-line); }
.figures b { display: block; font-family: var(--serif); font-weight: 400; font-size: 48px; line-height: 1; margin-bottom: 6px; }
.figures span { font-size: 14px; color: var(--on-dark-muted); }

/* Page hero */
.page-hero { padding-top: clamp(64px, 7vw, 96px); padding-bottom: clamp(56px, 6vw, 88px); }
.page-hero .crumb { margin-bottom: clamp(40px, 6vw, 80px); }
.page-hero .lead { margin-top: 32px; }

/* Table */
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: 1.5px; color: var(--muted); padding: 14px 16px 14px 0; border-bottom: 1px solid var(--ink); text-transform: uppercase; }
.table td { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; vertical-align: top; }
.table td:first-child { font-weight: 500; font-size: 16px; }
.table td + td { color: var(--muted); }
.table-scroll { overflow-x: auto; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chips span { padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 16px; font-family: var(--mono); font-size: 11px; letter-spacing: 1px; }

/* Quality */
.policy > div { padding: 20px 0; border-top: 1px solid var(--dark-line); display: flex; gap: 28px; }
.policy .n { width: 32px; flex-shrink: 0; font-family: var(--mono); font-size: 13px; color: var(--red-on-dark); padding-top: 3px; }
.policy p { margin: 0; font-size: 17px; line-height: 1.55; color: #E4E1DD; }

/* CTA band */
.cta-band { background: var(--alt); padding-top: clamp(64px, 7vw, 104px); padding-bottom: clamp(64px, 7vw, 104px); }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(36px, 3.9vw, 56px); line-height: 1.04; max-width: 820px; }
.cta-band.white { background: var(--paper); }
.cta-band p { margin: 14px 0 0; color: var(--text-body); }

/* Contact block */
.contact-list { display: flex; flex-direction: column; gap: 22px; }
.contact-list .mono { font-size: 11px; letter-spacing: 2px; color: var(--red-on-dark); display: block; margin-bottom: 6px; }
.contact-list a, .contact-list div { color: var(--on-dark); font-size: 16px; line-height: 1.5; }

/* Form */
.form-card { background: var(--paper); color: var(--ink); border-radius: 3px; padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 20px; }
.form-card h2 { font-size: 34px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13px; font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 2px; background: var(--paper); font-family: var(--sans); font-size: 15px; color: var(--ink); }
.field textarea { min-height: 140px; resize: vertical; }
.field-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; flex-shrink: 0; }
.hidden { position: absolute; left: -9999px; }
.map { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }

/* Footer */
.site-footer { background: var(--footer); color: var(--on-dark-muted); padding-top: 72px; padding-bottom: 40px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(4, minmax(0, 2fr)); gap: 32px; }
.lockup { display: inline-flex; flex-direction: column; gap: 10px; align-self: flex-start; }
.lockup-line { display: flex; align-items: center; gap: 14px; }
.lockup-line span { font-family: var(--sans); font-size: 19px; letter-spacing: 2.5px; color: var(--on-dark); white-space: nowrap; }
.lockup-line img { height: 34px; width: auto; }
.lockup-rule { height: 1px; background: var(--red); }
.lockup-tag { font-family: var(--mono); font-size: 9px; letter-spacing: 1.5px; color: var(--on-dark-muted); white-space: nowrap; text-align: center; }
.footer-brand p { margin: 16px 0 0; font-size: 14px; line-height: 1.6; max-width: 320px; }
.footer-col h4 { margin: 0 0 14px; font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: 2px; color: var(--on-dark); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-col a, .footer-col li { color: var(--on-dark-muted); font-size: 14px; }
.footer-col a:hover { color: var(--on-dark); }
.footer-base { margin-top: 64px; padding-top: 24px; border-top: 1px solid #262626; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }
.footer-base a { color: var(--on-dark-muted); }

/* Responsive */
@media (max-width: 1100px) {
  .grid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .names.six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .names { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .brand span { display: none; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--ink); border-bottom: 1px solid var(--dark-line); padding: 8px var(--pad) 24px; }
  .nav-links.is-open { display: flex; }
  .nav-links li a { display: flex; align-items: center; min-height: 52px; border-bottom: 1px solid var(--dark-line); }
  .nav-links li a[aria-current="page"] { border-bottom-color: var(--dark-line); color: #FFFFFF; box-shadow: inset 3px 0 0 var(--red); padding-left: 14px; }
  .nav-links .btn { margin-top: 16px; min-height: 52px; }
  .hero-grid { grid-template-columns: 1fr; }
  .slides { aspect-ratio: 16 / 11; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
  .stat { padding: 28px 0; border-top: 1px solid var(--line-strong); }
  .split > * { grid-column: 1 / -1 !important; }
  .grid-3 { grid-template-columns: 1fr; }
  .line > * { grid-column: 1 / -1 !important; }
  .line .mono { padding-top: 0; }
  .group-head, .group .names { grid-column: 1 / -1; }
  .section-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .stat b { font-size: 42px; }
  .grid-6, .grid-5, .grid-4 { grid-template-columns: 1fr; }
  .names, .names.six { grid-template-columns: 1fr; }
  .field-pair { grid-template-columns: 1fr; }
  .slide-caption { flex-direction: column; align-items: flex-start; }
  .slide-caption .role { width: 100%; justify-content: space-between; text-align: left; }
  .rows > div { flex-direction: column; align-items: flex-start; gap: 4px; }
  .footer-grid { grid-template-columns: 1fr; }
  .lockup-line span { font-size: 14px; letter-spacing: 1.5px; }
  .lockup-line img { height: 26px; }
  .lockup-tag { font-size: 8px; }
  .scope-note { flex-direction: column; gap: 10px; }
  .card { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .slides img { transition: none; }
}

/* Hero label (enlarged per review) */
.hero .hero-label { font-size: clamp(19px, 2.6vw, 38px); letter-spacing: 2.5px; }
