/* Ice Lab — site styles */
:root {
  --navy: #00224D;
  --deep: #001836;
  --card: #062C5E;
  --blue: #0D6EBB;
  --yellow: #F2DE2E;
  --ice: #EEF4FA;
  --ice-rule: #C9D8E8;
  --ink: #00224D;
  --ink-muted: #33506F;
  --white: #FFFFFF;
  --muted: rgba(255, 255, 255, 0.82);
  --soft: rgba(255, 255, 255, 0.72);
  --rule: rgba(255, 255, 255, 0.16);
  --error: #FFC2B8;
  --pad-x: clamp(20px, 8.3vw, 120px);
  --pad-y: clamp(64px, 8.3vw, 120px);
  --radius: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--navy);
  color: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
h1, h2, h3, h4, p, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: var(--yellow); }
a:hover { color: var(--white); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--yellow); color: var(--navy); padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 16px; }

.wrap { max-width: 1440px; margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }
.section { padding-top: var(--pad-y); padding-bottom: var(--pad-y); }
.section--ice { background: var(--ice); color: var(--ink); }
.section--blue { background: var(--blue); }
.flush-top { padding-top: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 56px; padding: 0 28px; border-radius: 10px;
  font: inherit; font-size: 16px; font-weight: 600; text-decoration: none;
  cursor: pointer; border: 0; white-space: nowrap;
}
.btn--primary { background: var(--yellow); color: var(--navy); }
.btn--primary:hover { color: var(--navy); filter: brightness(1.06); }
.btn--ghost { border: 1px solid rgba(255, 255, 255, 0.5); color: var(--white); background: transparent; }
.btn--ghost:hover { border-color: var(--white); }
.btn--small { height: 44px; padding: 0 20px; font-size: 15px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy); border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.site-header .wrap { display: flex; justify-content: space-between; align-items: center; height: 88px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); text-decoration: none; }
.brand:hover { color: var(--white); }
.brand img { display: block; height: 44px; width: auto; flex-shrink: 0; }
.brand-name { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }

.main-nav { display: flex; align-items: center; gap: 36px; }
.main-nav a:not(.btn) {
  color: var(--white); text-decoration: none; font-size: 15px; font-weight: 500;
  padding: 8px 0; border-bottom: 2px solid transparent;
}
.main-nav a:not(.btn):hover { border-bottom-color: rgba(255, 255, 255, 0.5); }
.main-nav a[aria-current="page"] { border-bottom-color: var(--yellow); }

.menu-toggle {
  display: none; align-items: center; justify-content: center;
  width: 48px; height: 48px; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 10px;
  background: transparent; color: var(--white); cursor: pointer;
}
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- Type ---------- */
.display {
  font-size: clamp(44px, 5.6vw, 80px); line-height: 1.02; font-weight: 300; letter-spacing: -0.035em;
}
.display span, .title span { display: block; color: var(--yellow); }
.title { font-size: clamp(40px, 3.9vw, 56px); line-height: 1.05; font-weight: 300; letter-spacing: -0.02em; }
.section--ice .title span { color: var(--blue); }
.lead { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.6; color: rgba(255, 255, 255, 0.88); max-width: 40em; }
.body { font-size: 17px; line-height: 1.65; color: var(--muted); }
.section--ice .body, .section--ice .lead { color: var(--ink-muted); }
.text-link { font-size: 16px; font-weight: 600; }
.section--ice .text-link { color: var(--blue); }
.section--ice .text-link:hover { color: var(--ink); }
.note { font-size: 15px; color: var(--soft); }

/* ---------- Layout helpers ---------- */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 5.5vw, 80px); align-items: center; }
.split--end { align-items: end; }
.intro { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(32px, 4.4vw, 64px); align-items: end; margin-bottom: 56px; }
.stack { display: flex; flex-direction: column; gap: 28px; }
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 56px; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(40px, 6vw, 88px); padding-bottom: clamp(64px, 6.6vw, 96px); }
.hero .split { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
.hero-art { display: flex; justify-content: center; }
.hero-art svg { width: 100%; max-width: 520px; height: auto; }
.page-hero { padding-top: clamp(48px, 6.6vw, 96px); padding-bottom: 64px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; padding-top: 56px; padding-bottom: 56px; }
.stat { display: flex; flex-direction: column; gap: 8px; }
.stat strong { font-size: clamp(36px, 3.9vw, 56px); font-weight: 600; letter-spacing: -0.02em; color: var(--yellow); line-height: 1.1; }
.stat span { font-size: 16px; line-height: 1.4; }

/* ---------- Offer rows (home) ---------- */
.what { display: grid; grid-template-columns: 1fr 2fr; gap: 64px; }
.offer-list { border-bottom: 1px solid var(--rule); }
.offer-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding: 28px 0; border-top: 1px solid var(--rule); }
.offer-row h3 { font-size: 22px; font-weight: 600; }
.offer-row p { font-size: 17px; line-height: 1.5; }
.offer-row p + p { font-size: 15px; line-height: 1.6; color: var(--soft); }

/* ---------- Photo mosaic ---------- */
.mosaic { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mosaic img { width: 100%; height: 220px; object-fit: cover; border-radius: 14px; }
.mosaic img:first-child { grid-column: span 2; height: 340px; }
.photo-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.photo-strip img { width: 100%; height: 260px; object-fit: cover; border-radius: 14px; }

/* ---------- Bars ---------- */
.bars { display: flex; flex-direction: column; gap: 14px; }
.bars h3 { font-size: 16px; font-weight: 600; color: var(--ink); }
.bars h3 + .bar { margin-bottom: 12px; }
.bar { display: flex; height: 52px; border-radius: 10px; overflow: hidden; }
.bar > div { flex-basis: 0; display: flex; align-items: center; padding: 0 16px; font-size: 15px; font-weight: 600; color: var(--white); white-space: nowrap; }
.bar .b-navy { background: var(--navy); }
.bar .b-blue { background: var(--blue); }
.bar .b-light { background: #9CC3E8; color: var(--navy); }

/* ---------- Case cards ---------- */
.card-grid { display: grid; gap: 24px; align-items: start; }
.card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.case {
  display: flex; flex-direction: column; gap: 20px; padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.18); border-radius: var(--radius); background: var(--card);
}
.case-top { display: flex; justify-content: space-between; gap: 16px; }
.case-where { font-size: 14px; font-weight: 500; color: var(--yellow); }
.case-sector { font-size: 13px; color: var(--soft); text-align: right; }
.case h3 { font-size: clamp(22px, 1.8vw, 26px); line-height: 1.22; font-weight: 600; }
.case-facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
  padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, 0.14); border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.case-facts div { display: flex; flex-direction: column; gap: 4px; }
.case-facts dt { font-size: 12px; color: var(--soft); }
.case-facts dd { font-size: 15px; font-weight: 600; }
.case p { font-size: 16px; line-height: 1.58; color: rgba(255, 255, 255, 0.88); }
.case h4 { font-size: 13px; font-weight: 600; color: var(--soft); margin-bottom: 6px; }
.case h4.found { color: var(--yellow); }
.case .result { color: var(--white); }

.filters-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.filter {
  height: 44px; padding: 0 18px; border-radius: 999px; font: inherit; font-size: 15px; font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.35); background: transparent; color: var(--white); cursor: pointer;
}
.filter:hover { border-color: var(--white); }
.filter[aria-pressed="true"] { background: var(--yellow); border-color: var(--yellow); color: var(--navy); font-weight: 600; }

/* ---------- Clients ---------- */
.clients { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--ice-rule); border-left: 1px solid var(--ice-rule); }
.clients li { display: flex; align-items: center; min-height: 88px; padding: 12px 20px; border-right: 1px solid var(--ice-rule); border-bottom: 1px solid var(--ice-rule); font-size: 19px; font-weight: 600; color: var(--ink); }
.clients a { font-size: 17px; color: var(--blue); }

/* ---------- CTA ---------- */
.cta .wrap { display: flex; justify-content: space-between; align-items: center; gap: 64px; }
.cta h2 { font-size: clamp(32px, 3.3vw, 48px); line-height: 1.1; font-weight: 300; letter-spacing: -0.02em; margin-bottom: 16px; }
.cta p { font-size: 18px; line-height: 1.6; max-width: 40em; }
.cta-actions { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; flex-shrink: 0; }
.cta-actions a:not(.btn) { color: var(--white); font-size: 15px; }

/* ---------- About ---------- */
.hero-photo { width: 100%; height: 480px; object-fit: cover; border-radius: var(--radius); }
.offices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-bottom: 48px; }
.office { display: flex; flex-direction: column; gap: 10px; padding: 32px; border-radius: var(--radius); background: var(--blue); }
.office strong { font-size: 32px; font-weight: 300; letter-spacing: -0.01em; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.chip { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 999px; font-size: 15px; }
.subhead { font-size: 16px; font-weight: 600; color: rgba(255, 255, 255, 0.85); }

.traits { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; }
.trait { display: flex; flex-direction: column; gap: 12px; padding-top: 24px; border-top: 2px solid var(--blue); }
.trait h3 { font-size: 22px; font-weight: 600; color: var(--ink); }
.trait p { font-size: 16px; line-height: 1.6; color: var(--ink-muted); }

.values { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 32px; }
.value { display: flex; flex-direction: column; gap: 14px; }
.value .letter { font-size: 96px; line-height: 1; font-weight: 300; color: var(--yellow); }
.value h3 { font-size: 20px; font-weight: 600; }
.value p { font-size: 15px; line-height: 1.6; color: var(--muted); }

/* ---------- Services ---------- */
.service-list { border-bottom: 1px solid var(--rule); }
.service { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; padding: 40px 0; border-top: 1px solid var(--rule); }
.service h3 { font-size: 30px; font-weight: 300; letter-spacing: -0.01em; }
.service p { font-size: 17px; line-height: 1.6; color: rgba(255, 255, 255, 0.85); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; }
.tags li { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.22); font-size: 14px; }

.tools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; align-items: start; }
.tool { display: flex; flex-direction: column; gap: 20px; padding: 32px; background: var(--white); border-radius: var(--radius); }
.tool h3 { font-size: 20px; font-weight: 600; color: var(--ink); }
.tool li, .tool p { font-size: 16px; line-height: 1.5; color: var(--ink-muted); }
.tool ul { display: flex; flex-direction: column; gap: 10px; }

.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px; }
.step { display: flex; flex-direction: column; gap: 14px; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 999px; background: var(--yellow); color: var(--navy); font-size: 18px; font-weight: 700; }
.step h3 { font-size: 20px; font-weight: 600; }
.step p { font-size: 15px; line-height: 1.6; color: var(--muted); }

.glossary-wrap { display: grid; grid-template-columns: 1fr 2fr; gap: 64px; }
.glossary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.glossary div { display: flex; flex-direction: column; gap: 8px; padding: 24px 0; border-top: 1px solid var(--ice-rule); }
.glossary dt { font-size: 22px; font-weight: 700; color: var(--blue); }
.glossary dd { font-size: 16px; line-height: 1.6; color: var(--ink-muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 7fr 1fr 4fr; gap: 32px; align-items: start; }
.contact-main { grid-column: 1; display: flex; flex-direction: column; gap: 32px; }
.contact-aside { grid-column: 3; display: flex; flex-direction: column; margin-top: 200px; }
.panel { display: flex; flex-direction: column; gap: 22px; padding: clamp(24px, 2.8vw, 40px); border-radius: var(--radius); background: var(--card); border: 1px solid var(--rule); }
.fields-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, 0.9); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--white);
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.45); border-radius: 10px;
}
.field input, .field select { height: 54px; padding: 0 16px; }
.field select option { color: var(--navy); }
.field textarea { padding: 14px 16px; line-height: 1.5; resize: vertical; min-height: 150px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(255, 255, 255, 0.55); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error { font-size: 14px; font-weight: 600; color: var(--error); }
.field-error:empty { display: none; }
.form-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form-actions span { font-size: 14px; color: var(--soft); }
.form-status { font-size: 15px; font-weight: 600; color: var(--error); }
.form-status:empty { display: none; }
.success { border-color: var(--yellow); }
.success h2 { font-size: 32px; font-weight: 300; }
.success p { font-size: 17px; line-height: 1.6; color: rgba(255, 255, 255, 0.88); }
.detail { display: flex; flex-direction: column; gap: 10px; padding: 28px 0; border-top: 1px solid var(--rule); }
.detail h2 { font-size: 14px; font-weight: 600; color: var(--yellow); }
.detail a, .detail span { font-size: 18px; color: var(--white); }
.contact-aside img { width: 100%; height: 240px; object-fit: cover; border-radius: var(--radius); margin-top: 12px; }
[hidden] { display: none !important; }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep); padding-top: 72px; padding-bottom: 40px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; margin-bottom: 56px; }
.footer-col { display: flex; flex-direction: column; gap: 14px; }
.footer-col h2 { font-size: 14px; font-weight: 600; color: var(--yellow); }
.footer-col a { font-size: 15px; color: var(--white); text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }
.footer-col span, .footer-about { font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, 0.8); }
.footer-about { max-width: 260px; }
.site-footer .brand img { height: 48px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 13px; color: var(--soft); }

/* ================= Responsive ================= */
@media (max-width: 1200px) {
  .values { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 48px; }
  .traits { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
  .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .clients { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .card-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .site-header .wrap { height: 72px; }
  .site-header .brand img { height: 38px; }
  .menu-toggle { display: inline-flex; }
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 72px;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--pad-x) 24px; background: var(--navy); border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a:not(.btn) { display: flex; align-items: center; height: 56px; font-size: 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
  .main-nav a[aria-current="page"] { color: var(--yellow); border-bottom-color: rgba(255, 255, 255, 0.14); }
  .main-nav .btn { margin-top: 16px; height: 54px; }

  .split, .hero .split, .intro, .what, .glossary-wrap { grid-template-columns: 1fr; }
  .intro { gap: 20px; margin-bottom: 40px; }
  .hero-art { order: -1; }
  .hero-art svg { max-width: 300px; }
  .hero-art .art-label { display: none; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; padding-top: 40px; padding-bottom: 40px; }
  .offer-row, .service { grid-template-columns: 1fr; gap: 10px; }
  .service { gap: 16px; }
  .head-row { flex-direction: column; align-items: flex-start; margin-bottom: 36px; }
  .card-grid--3, .card-grid--2 { grid-template-columns: 1fr; }
  .cta .wrap { flex-direction: column; align-items: flex-start; gap: 28px; }
  .offices { grid-template-columns: 1fr; }
  .photo-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photo-strip img { height: 200px; }
  .hero-photo { height: 320px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-main, .contact-aside { grid-column: auto; }
  .contact-aside { margin-top: 0; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .btn-row .btn, .cta-actions .btn { width: 100%; }
  .btn-row, .cta-actions { width: 100%; }
  .mosaic img { height: 160px; }
  .mosaic img:first-child { height: 240px; }
  .bar { height: 44px; }
  .bar > div { padding: 0 10px; font-size: 13px; }
  .clients { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .clients li { min-height: 64px; font-size: 16px; }
  .traits, .values, .steps, .tools, .glossary, .fields-2 { grid-template-columns: 1fr; }
  .values { row-gap: 36px; }
  .value .letter { font-size: 72px; }
  .case { padding: 24px; }
  .case-facts { grid-template-columns: 1fr 1fr; }
  .form-actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
}
