/* =====================================================================
   ICEC Exports & Imports
   Design system: light, editorial, product-led. Red is an accent only.
   Spacing is an 8px scale. Content maxes out at 1280px.
   ===================================================================== */

:root {
  /* ---------------------------------------------------------- colour */
  --white: #ffffff;
  --paper: #fbfaf8;          /* off-white page tint */
  --sand: #f4f0e9;           /* warm neutral, cheese/wheat */
  --sand-deep: #e9e2d5;
  --ink: #14161a;            /* near black */
  --ink-2: #2f343b;
  --body: #4a5058;
  --muted: #767d86;
  --line: #e4e2dd;
  --line-2: #f0eeea;
  --red: #d81e23;
  --red-ink: #b0151a;
  --red-tint: #fdf3f3;

  --ok: #1a7f4b;
  --ok-tint: #eef7f1;
  --warn: #9a6a00;
  --warn-tint: #fdf6e8;
  --bad: #b42318;
  --bad-tint: #fdf1f0;
  --info: #1f5f8b;
  --info-tint: #eff5fa;

  /* ---------------------------------------------------------- spacing */
  --s1: 8px;   --s2: 16px;  --s3: 24px;  --s4: 32px;
  --s5: 40px;  --s6: 48px;  --s7: 64px;  --s8: 80px;
  --s9: 96px;  --s10: 120px;

  --wrap: 1280px;
  --measure: 68ch;

  --r-sm: 4px;
  --r: 8px;
  --r-lg: 14px;

  --shadow-1: 0 1px 2px rgba(20, 22, 26, .04), 0 4px 12px rgba(20, 22, 26, .05);
  --shadow-2: 0 2px 6px rgba(20, 22, 26, .06), 0 18px 40px rgba(20, 22, 26, .09);

  --sans: "Inter", "Helvetica Neue", -apple-system, BlinkMacSystemFont,
          "Segoe UI", Roboto, Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1, "liga" 1, "cv11" 1;
}

/* ------------------------------------------------------------ type */
h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -.022em;
  line-height: 1.12;
  margin: 0 0 var(--s2);
  text-wrap: balance;
}
h1 { font-size: clamp(38px, 5vw, 60px); letter-spacing: -.03em; }
h2 { font-size: clamp(29px, 3.3vw, 42px); letter-spacing: -.026em; }
h3 { font-size: 20px; letter-spacing: -.014em; }
h4 { font-size: 16px; letter-spacing: -.008em; }

p { margin: 0 0 var(--s2); }
p:last-child { margin-bottom: 0; }

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--red-ink); }

img, svg { max-width: 100%; display: block; }

strong, b { font-weight: 600; color: var(--ink); }

::selection { background: var(--red); color: #fff; }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ------------------------------------------------------- primitives */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--s4); }
.measure { max-width: 740px; }
.measure-sm { max-width: 620px; }

.section { padding: var(--s10) 0; }
.section-sm { padding: var(--s8) 0; }
.section-xs { padding: var(--s7) 0; }
.paper { background: var(--paper); }
.sand { background: var(--sand); }
.charcoal { background: var(--ink); color: #b9bfc7; }
.charcoal h1, .charcoal h2, .charcoal h3, .charcoal strong { color: #fff; }

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 var(--s2);
}
.charcoal .eyebrow { color: #ff7b80; }

.lede {
  font-size: 19px;
  line-height: 1.6;
  color: var(--body);
  max-width: 62ch;
}
.charcoal .lede { color: #a8afb8; }

.small { font-size: 15px; }
.tiny { font-size: 13px; line-height: 1.5; }
.muted { color: var(--muted); }
.center { text-align: center; }
.center .lede, .center .measure { margin-left: auto; margin-right: auto; }

.stack-1 > * + * { margin-top: var(--s1); }
.stack-2 > * + * { margin-top: var(--s2); }
.stack-3 > * + * { margin-top: var(--s3); }
.stack-4 > * + * { margin-top: var(--s4); }

.rule { height: 1px; background: var(--line); border: 0; margin: var(--s6) 0; }

.section-head { max-width: 720px; margin-bottom: var(--s7); }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------- buttons */
.btn {
  --btn-bg: var(--red);
  --btn-fg: #fff;
  --btn-bd: var(--red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 var(--s3);
  border: 1px solid var(--btn-bd);
  border-radius: var(--r-sm);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-size: 15px;
  font-weight: 550;
  letter-spacing: -.005em;
  cursor: pointer;
  white-space: nowrap;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}
.btn:hover { --btn-bg: var(--red-ink); --btn-bd: var(--red-ink); color: #fff; }

.btn-dark { --btn-bg: var(--ink); --btn-bd: var(--ink); }
.btn-dark:hover { --btn-bg: #000; --btn-bd: #000; }

.btn-line {
  --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: #c9c6c0;
}
.btn-line:hover { --btn-bg: var(--ink); --btn-bd: var(--ink); --btn-fg: #fff; color: #fff; }

.btn-on-dark {
  --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, .38);
}
.btn-on-dark:hover { --btn-bg: #fff; --btn-bd: #fff; --btn-fg: var(--ink); color: var(--ink); }

.btn-sm { min-height: 40px; font-size: 14px; padding: 0 var(--s2); }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-off { opacity: .4; pointer-events: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }

/* text link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 550;
  color: var(--ink);
}
.link-arrow::after {
  content: "→";
  transition: transform .16s ease;
  color: var(--red);
}
.link-arrow:hover::after { transform: translateX(3px); }

/* ----------------------------------------------------------- header */
.masthead {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.masthead-inner {
  display: flex;
  align-items: center;
  gap: var(--s4);
  min-height: 76px;
}
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
/* Supplied artwork, unmodified. It is a square canvas with its own clear
   space built in, so it is sized by height and never cropped or recoloured. */
.brand img { height: 54px; width: auto; }
.brand-name {
  font-size: 16.5px;
  font-weight: 500;
  color: var(--ink-2);
  letter-spacing: -.015em;
  line-height: 1.1;
  white-space: nowrap;
}

.mainnav { display: flex; align-items: center; gap: 2px; margin: 0 auto; }
.mainnav > * { position: relative; }
.mainnav a.navlink,
.mainnav button.navlink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: var(--r-sm);
  cursor: pointer;
  white-space: nowrap;
}
.mainnav .navlink:hover { color: var(--ink); background: var(--line-2); }
.mainnav .navlink.active { color: var(--ink); font-weight: 600; }
.mainnav .navlink.active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: -1px;
  height: 2px;
  background: var(--red);
}
.caret { width: 9px; height: 9px; opacity: .5; }

.masthead-actions { display: flex; align-items: center; gap: var(--s2); flex: none; }
.masthead-actions .ghost {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
}
.masthead-actions .ghost:hover { color: var(--red-ink); }

/* dropdown */
.has-menu > .submenu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 268px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-2);
  padding: var(--s1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .14s ease, transform .14s ease, visibility .14s;
}
.has-menu:hover > .submenu,
.has-menu:focus-within > .submenu,
.has-menu > .submenu.open { opacity: 1; visibility: visible; transform: none; }
.submenu a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  font-size: 15px;
  color: var(--ink);
}
.submenu a span { display: block; font-size: 13px; color: var(--muted); margin-top: 1px; }
.submenu a:hover { background: var(--paper); }

.navtoggle {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  cursor: pointer;
}
.navtoggle span, .navtoggle span::before, .navtoggle span::after {
  display: block; width: 18px; height: 1.5px; background: var(--ink); content: "";
}
.navtoggle span::before { transform: translateY(-6px); }
.navtoggle span::after { transform: translateY(4.5px); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 500;
  background: var(--ink); color: #fff; padding: 12px 20px;
}
.skip:focus { left: 8px; top: 8px; }

/* ------------------------------------------------------------- hero */
.hero { border-bottom: 1px solid var(--line); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: var(--s9);
  align-items: center;
  padding: var(--s9) 0;
}
.hero h1 { max-width: 13ch; margin-bottom: var(--s3); }
.hero .lede { max-width: 52ch; margin-bottom: var(--s5); }
.hero-signin { margin-top: var(--s3); font-size: 15px; color: var(--muted); }
.hero-signin a { font-weight: 550; color: var(--ink); border-bottom: 1px solid var(--line); }
.hero-signin a:hover { color: var(--red-ink); border-color: currentColor; }
.hero-figure {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 5 / 4;
  background: var(--sand);
}
.hero-figure img { width: 100%; height: 100%; object-fit: cover; }

/* ------------------------------------------------------- proof bar */
.proofbar { border-bottom: 1px solid var(--line); background: var(--paper); }
.proofbar ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
}
.proofbar li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: var(--s3) var(--s4);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  border-left: 1px solid var(--line);
}
.proofbar li:first-child { border-left: 0; padding-left: 0; }
.proofbar li:last-child { padding-right: 0; }
.proofbar svg { flex: none; color: var(--red); }

/* -------------------------------------------------------- category */
.tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s3);
}
.tile { display: block; color: inherit; }
.tile-figure {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--sand);
  margin-bottom: var(--s2);
}
.tile-figure img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s cubic-bezier(.2, .6, .2, 1);
}
.tile:hover .tile-figure img { transform: scale(1.035); }
.tile h3 { margin-bottom: 4px; }
.tile p { font-size: 15px; color: var(--muted); margin: 0; }

/* --------------------------------------------------- product strip */
.products-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s4);
}
.pcard { display: flex; flex-direction: column; color: inherit; }
.pcard-figure {
  aspect-ratio: 1 / 1;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--sand);
  margin-bottom: var(--s2);
}
.pcard-figure img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s cubic-bezier(.2, .6, .2, 1);
}
.pcard:hover .pcard-figure img { transform: scale(1.035); }
.pcard-brand {
  font-size: 12px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 6px;
}
.pcard h3 { font-size: 18px; margin-bottom: 6px; }
.pcard p { font-size: 15px; color: var(--muted); margin: 0 0 10px; }
.pcard .fmt {
  font-size: 13px; color: var(--ink-2); padding-top: 10px;
  border-top: 1px solid var(--line); margin-top: auto;
}

/* ------------------------------------------------------- editorial */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s9);
  align-items: center;
}
.split-wide { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.split-figure {
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--sand);
}
.split-figure img { width: 100%; height: 100%; object-fit: cover; }

/* definition list used for "who we serve" and "why icec" */
.deflist { display: grid; gap: var(--s4); margin: 0; }
.deflist > div { display: grid; grid-template-columns: 28px 1fr; gap: var(--s2); }
.deflist svg { color: var(--red); margin-top: 3px; }
.deflist h3 { font-size: 17px; margin-bottom: 4px; }
.deflist p { font-size: 15.5px; color: var(--body); margin: 0; max-width: 56ch; }

.numbered { display: grid; gap: 0; margin: 0; }
.numbered > div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: var(--s4) 0;
  border-top: 1px solid var(--line);
}
.numbered > div:last-child { border-bottom: 1px solid var(--line); }
.numbered h3 { font-size: 18px; margin: 0; }
.numbered p { font-size: 15.5px; margin: 0; max-width: 60ch; }

/* --------------------------------------------------- portal promo */
.portal-promo { background: var(--ink); color: #b9bfc7; }
.portal-promo .split { align-items: center; }
.portal-shot {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  background: #22262c;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .4);
}
.portal-shot img { width: 100%; display: block; }

/* ----------------------------------------------------------- forms */
.field { display: grid; gap: 6px; margin-bottom: var(--s3); }
.field-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3); }
label { font-size: 14px; font-weight: 550; color: var(--ink); }
label .req { color: var(--red); }
.hint { display: block; font-size: 13px; font-weight: 400; color: var(--muted); margin-top: 1px; }

input[type=text], input[type=email], input[type=tel], input[type=password],
input[type=number], input[type=date], input[type=search], select, textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid #d3d0ca;
  border-radius: var(--r-sm);
  background: #fff;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
}
textarea { min-height: 132px; resize: vertical; line-height: 1.6; }
input::placeholder, textarea::placeholder { color: #a9a49c; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(20, 22, 26, .07);
}
select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%235b6069' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.check {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 15px;
  cursor: pointer;
  background: #fff;
}
.check:hover { border-color: #c4c0b9; }
.check input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--red); }
.check-bare { border: 0; padding: 0; background: none; }
.check-bare:hover { border: 0; }

fieldset { border: 0; margin: 0 0 var(--s6); padding: 0; }
legend {
  width: 100%;
  padding: 0 0 12px;
  margin-bottom: var(--s3);
  border-bottom: 1px solid var(--line);
  font-size: 12px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
}

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.formcard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s6);
}

/* --------------------------------------------------------- notices */
.flashes { display: grid; gap: 10px; margin-bottom: var(--s4); }
.flash {
  padding: 14px 18px;
  border-radius: var(--r-sm);
  border-left: 3px solid var(--info);
  background: var(--info-tint);
  font-size: 15px;
  color: var(--ink-2);
}
.flash-success { border-color: var(--ok); background: var(--ok-tint); }
.flash-error { border-color: var(--bad); background: var(--bad-tint); }
.flash-info { border-color: var(--info); background: var(--info-tint); }
.flash-warn { border-color: var(--warn); background: var(--warn-tint); }

.note {
  border-left: 3px solid var(--red);
  background: var(--paper);
  padding: var(--s3);
  font-size: 15px;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

/* ---------------------------------------------------------- badges */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px;
  border-radius: 100px;
  font-size: 12px; font-weight: 600; letter-spacing: .01em;
  background: var(--line-2); color: var(--ink-2);
  white-space: nowrap;
}
.badge-good { background: var(--ok-tint); color: var(--ok); }
.badge-warn { background: var(--warn-tint); color: var(--warn); }
.badge-bad { background: var(--bad-tint); color: var(--bad); }
.badge-info { background: var(--info-tint); color: var(--info); }
.badge-muted { background: var(--line-2); color: var(--muted); }
.badge-red { background: var(--red); color: #fff; }
.badge-dot::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; flex: none;
}

/* ---------------------------------------------------------- tables */
.tablewrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 15px; }
table.data th {
  text-align: left;
  padding: 12px 16px;
  font-size: 12px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.data td {
  padding: 16px;
  border-bottom: 1px solid var(--line-2);
  vertical-align: middle;
}
table.data tr:last-child td { border-bottom: 0; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mono { font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------- page head */
.pagehead { border-bottom: 1px solid var(--line); padding: var(--s8) 0 var(--s7); }
.pagehead .eyebrow { margin-bottom: var(--s2); }
.pagehead h1 { max-width: 18ch; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: var(--s2); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--ink); }

/* --------------------------------------------------------- filters */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 14px;
  color: var(--ink-2);
  background: #fff;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------------------------------------------------------- footer */
.footer { background: var(--ink); color: #8f959d; padding: var(--s8) 0 0; font-size: 15px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr) 1.2fr;
  gap: var(--s6);
  padding-bottom: var(--s7);
}
.footer h4 {
  color: #fff; font-size: 12px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: var(--s3);
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { color: #b6bcc4; }
.footer a:hover { color: #fff; }
/* The supplied logo has a black outline and is only ever shown on a light
   surface, so the dark footer leads with the name set in type instead. */
.footer-wordmark { margin: 0 0 var(--s2); line-height: 1.1; }
.footer-wordmark {
  font-size: 26px; font-weight: 600; color: #fff; letter-spacing: -.03em;
}
.footer-wordmark span {
  display: block; margin-top: 4px;
  font-size: 13px; font-weight: 500; letter-spacing: .14em;
  text-transform: uppercase; color: var(--red);
}
.footer-mark p { color: #8f959d; font-size: 15px; max-width: 30ch; }
.footer-bottom {
  border-top: 1px solid #262a30;
  padding: var(--s3) 0;
  display: flex; justify-content: space-between; gap: var(--s3); flex-wrap: wrap;
  font-size: 13px; color: #757b83;
}
.footer-bottom nav { display: flex; gap: var(--s3); }

/* --------------------------------------------------------- utility */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; font-size: 15.5px; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: .55em;
  width: 10px; height: 5px;
  border-left: 1.8px solid var(--red); border-bottom: 1.8px solid var(--red);
  transform: rotate(-45deg);
}
.specs { list-style: none; margin: 0; padding: 0; }
.specs li {
  display: flex; justify-content: space-between; gap: var(--s3);
  padding: 13px 0; border-bottom: 1px solid var(--line-2); font-size: 15px;
}
.specs li:last-child { border-bottom: 0; }
.specs .k { color: var(--muted); }
.specs .v { color: var(--ink); font-weight: 500; text-align: right; }

/* ------------------------------------------------------ responsive */
@media (max-width: 1240px) {
  .masthead-inner { gap: var(--s2); }
  .mainnav .navlink { padding: 10px 10px; font-size: 14.5px; }
  .masthead-actions { gap: 12px; }
}

@media (max-width: 1080px) {
  .hero-grid { gap: var(--s6); }
  .split, .split-wide { gap: var(--s6); }
  .tiles, .products-row { grid-template-columns: repeat(2, 1fr); gap: var(--s4); }
  .proofbar ul { grid-template-columns: repeat(2, 1fr); }
  .proofbar li { border-left: 0; padding: var(--s2) 0; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s5); }
}

@media (max-width: 1060px) {
  .mainnav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-2);
    padding: var(--s2) var(--s4) var(--s4);
    margin: 0;
    max-height: calc(100vh - 76px);
    overflow-y: auto;
  }
  .mainnav.open { display: flex; }
  .mainnav .navlink { padding: 14px 0; border-bottom: 1px solid var(--line-2); border-radius: 0; }
  .mainnav .navlink.active::after { display: none; }
  .has-menu > .submenu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; padding: 0 0 var(--s2) var(--s2);
    min-width: 0;
  }
  .submenu a { padding: 12px 0; font-size: 15px; }
  .navtoggle { display: flex; }
  .masthead-actions .ghost { display: none; }
  .mainnav [data-mobile-only] { display: block !important; }
  .masthead-inner { min-height: 68px; gap: var(--s2); }
  .brand-name { display: none; }
}

@media (max-width: 780px) {
  body { font-size: 16px; }
  .wrap { padding: 0 var(--s3); }
  .section { padding: var(--s8) 0; }
  .section-sm, .section-xs { padding: var(--s7) 0; }
  .hero-grid {
    grid-template-columns: 1fr;
    padding: var(--s6) 0 var(--s7);
    gap: var(--s5);
  }
  .hero h1 { max-width: none; }
  .hero-figure { aspect-ratio: 3 / 2; }
  .split, .split-wide, .grid-2, .grid-3 { grid-template-columns: 1fr; gap: var(--s5); }
  .tiles, .products-row, .grid-4 { grid-template-columns: 1fr; gap: var(--s4); }
  .tile-figure { aspect-ratio: 16 / 10; }
  .section-head { margin-bottom: var(--s5); }
  .field-row, .checks { grid-template-columns: 1fr; }
  .formcard { padding: var(--s4); border-radius: var(--r); }
  .footer-grid { grid-template-columns: 1fr; gap: var(--s5); }
  .btn { width: 100%; }
  .btn-row .btn { width: auto; flex: 1 1 220px; }
  /* comfortable touch targets on phones */
  .btn-sm { min-height: 44px; padding: 0 var(--s2); }
  .pagehead { padding: var(--s6) 0 var(--s5); }
  .pagehead h1 { max-width: none; }
}

@media (max-width: 480px) {
  .btn-row .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .tile:hover .tile-figure img, .pcard:hover .pcard-figure img { transform: none; }
}

@media print {
  .masthead, .footer, .btn, .navtoggle { display: none !important; }
  body { font-size: 11pt; color: #000; }
}
