/* ============================================================
   IZOFITER — design tokens & base
   Font: Geist (400 / 500 max). Color: white + #FF6161 + black.
   No gradients (placeholders excepted), no glows, no soft shadows.
   ============================================================ */

:root {
  --red: #FF6161;
  --red-ink: #E64545;        /* slightly darker for hover/links on white */
  --black: #0A0A0A;
  --ink: #141414;
  --gray: #6B6B6B;
  --gray-2: #9A9A9A;
  --line: #E6E6E6;           /* hairline on white */
  --line-strong: #111111;
  --paper: #FFFFFF;
  --paper-2: #FAFAFA;

  --maxw: 1280px;
  --gutter: clamp(20px, 5vw, 72px);
  --header-h: 104px;
  --radius: 7px;
  --radius-lg: 12px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-weight: 500; margin: 0; line-height: 1.05; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }

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

/* ---------- layout ---------- */
.container { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.section { padding-block: clamp(72px, 11vw, 160px); }
.section--tight { padding-block: clamp(56px, 8vw, 110px); }

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

/* section eyebrow: 01 / LABEL */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gray);
}
.eyebrow .num { color: var(--red); }
.eyebrow::before {
  content: ""; width: 22px; height: 1px; background: var(--red); display: inline-block;
}

.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head h2 {
  font-size: clamp(30px, 4.4vw, 56px);
  margin-top: 22px;
  text-wrap: balance;
}
.section-head p {
  margin-top: 22px; color: var(--gray); font-size: clamp(16px, 1.4vw, 19px);
  max-width: 56ch;
}

/* ---------- buttons ---------- */
.btn {
  --bg: var(--red); --fg: #fff;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--bg); color: var(--fg);
  font-family: var(--font); font-weight: 500; font-size: 15px;
  padding: 14px 22px; border: 1px solid var(--bg); border-radius: var(--radius);
  cursor: pointer; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  letter-spacing: -0.01em;
}
.btn:hover { background: var(--red-ink); border-color: var(--red-ink); }
.btn--ghost { --bg: transparent; --fg: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--black); color: #fff; border-color: var(--black); }
.btn .arr { transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- header / nav ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); gap: 24px;
}
.brand { display: flex; align-items: center; }
.brand img { height: 32px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-size: 14.5px; color: var(--ink); position: relative; padding: 6px 0;
  letter-spacing: -0.01em; white-space: nowrap;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1.5px;
  background: var(--red); transition: right .3s var(--ease);
}
.nav-links a:hover::after { right: 0; }
.nav-links a[aria-current="page"]::after { right: 0; }
.nav-right { display: flex; align-items: center; gap: 20px; }

.lang { position: relative; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font); font-size: 12.5px; font-weight: 500; letter-spacing: 0.06em;
  color: var(--ink); background: rgba(255,255,255,0.55);
  -webkit-backdrop-filter: saturate(140%) blur(8px); backdrop-filter: saturate(140%) blur(8px);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 11px 8px 13px; cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.lang-toggle:hover { border-color: var(--line-strong); }
.lang-caret {
  width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid var(--gray); transition: transform .25s var(--ease); margin-top: 1px;
}
.lang.open .lang-caret { transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 156px; margin: 0; padding: 6px;
  display: flex; flex-direction: column; gap: 2px; list-style: none;
  background: rgba(255,255,255,0.7);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity .2s var(--ease), transform .2s var(--ease); z-index: 60;
}
.lang.open .lang-menu { opacity: 1; transform: none; pointer-events: auto; }
.lang-menu li {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 9px 12px; border-radius: var(--radius); cursor: pointer;
  font-family: var(--font); font-size: 14px; color: var(--ink); transition: background .15s var(--ease);
}
.lang-menu li:hover { background: rgba(10,10,10,0.05); }
.lang-menu li .code { font-size: 11px; letter-spacing: .1em; color: var(--gray-2); }
.lang-menu li[aria-selected="true"] { color: var(--red-ink); }
.lang-menu li[aria-selected="true"] .code { color: var(--red); }

.nav-cta { white-space: nowrap; }

.burger { display: none; }

/* mobile menu hidden by default (desktop) */
.mobile-menu { display: none; }

/* mobile nav */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .mobile-menu { display: block; }
  .burger {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border: 1px solid var(--line-strong); background: #fff; cursor: pointer; border-radius: var(--radius);
  }
  .burger span, .burger span::before, .burger span::after {
    content: ""; display: block; width: 18px; height: 1.5px; background: var(--ink); position: relative;
  }
  .burger span::before { position: absolute; top: -6px; }
  .burger span::after { position: absolute; top: 6px; }
  .mobile-menu {
    position: fixed; inset: var(--header-h) 0 auto 0; background: #fff; border-bottom: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .3s var(--ease);
    padding: 20px var(--gutter) 32px; z-index: 49;
  }
  .mobile-menu.open { transform: none; opacity: 1; pointer-events: auto; }
  .mobile-menu a { display: block; font-size: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
}

/* mobile header: smaller logo + shorter bar */
@media (max-width: 900px) {
  :root { --header-h: 74px; }
  .brand img { height: 24px; }
}

/* ---------- heading accent dots (red everywhere; white on red surfaces) ---------- */
h1 .accent, h2 .accent, h3 .accent, h4 .accent { color: var(--red); }
.panel-red h1 .accent, .panel-red h2 .accent, .panel-red h3 .accent, .panel-red h4 .accent,
.why-cell.open .accent { color: #fff; }

/* ---------- hero ---------- */
.hero { padding-top: clamp(4px, 1vw, 12px); padding-bottom: clamp(40px, 6vw, 88px); }
.hero-eyebrow { margin-bottom: clamp(14px, 2.2vw, 24px); }
.hero-figure { position: relative; display: block; }
.hero-img {
  width: 100%; height: auto; display: block;
}
/* soft white fade at the bottom; sits behind the headline */
.hero-figure::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 44%;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.85) 50%, #fff 92%);
  pointer-events: none;
}
.hero-copy {
  position: relative; z-index: 2;
  margin-top: clamp(-130px, -8vw, -64px);
}
.hero h1 { font-size: clamp(38px, 6vw, 88px); text-wrap: balance; }
.hero h1 .accent { color: var(--red); }
.hero-sub { font-size: clamp(16px, 1.45vw, 20px); color: var(--gray); max-width: 42ch; margin-top: clamp(16px, 2vw, 28px); }
.hero-actions { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }
@media (max-width: 860px) {
  .hero-copy { grid-template-columns: 1fr; gap: 26px; margin-top: clamp(-80px, -11vw, -44px); }
}

/* striped image placeholder */
.ph {
  position: relative; background: var(--paper-2);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background-image: repeating-linear-gradient(
    -45deg, transparent 0 11px, rgba(10,10,10,0.035) 11px 12px);
  display: flex; align-items: flex-end; justify-content: flex-start;
  overflow: hidden;
}
.ph::after {
  content: attr(data-label);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gray-2); background: #fff; border: 1px solid var(--line);
  padding: 6px 10px; margin: 14px;
}
.hero-figure .ph { min-height: clamp(320px, 46vw, 560px); height: 100%; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure .ph { min-height: 280px; }
}

/* ---------- partners (red band, white logos) ---------- */
.partner-band { background: var(--red); color: #fff; }
.partner-band .section-head { margin-bottom: clamp(28px, 4vw, 48px); }
.partner-band .section-head h2 { color: #fff; }
.partner-wall {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(255,255,255,0.35);
}
.pw-cell {
  aspect-ratio: 3 / 2; display: flex; align-items: center; justify-content: center;
  padding: clamp(18px, 2.6vw, 38px);
  background: var(--red);
  border-right: 1px solid rgba(255,255,255,0.35);
  transition: background .35s var(--ease);
}
.pw-cell:last-child { border-right: 0; }
.pw-cell img {
  width: 100%; height: 100%; object-fit: contain;
  filter: brightness(0) invert(1);            /* 100% white when idle */
  transition: filter .35s var(--ease);
}
.pw-cell:hover { background: #fff; }
.pw-cell:hover img { filter: none; }          /* logo lights up */
@media (max-width: 760px) {
  .pw-cell { padding: clamp(10px, 2vw, 18px); }
}
@media (max-width: 540px) {
  .pw-cell { aspect-ratio: auto; min-height: 60px; padding: 10px 6px; }
}

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 96px); align-items: start; }
.about-lead { font-size: clamp(22px, 2.6vw, 34px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.18; text-wrap: balance; }
.about-lead .accent { color: var(--red); }
.about-body { color: var(--gray); font-size: 17px; display: grid; gap: 20px; }
.about-body strong { color: var(--ink); font-weight: 500; }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- services ---------- */
.services-list { border-top: 1px solid var(--line-strong); }
.service {
  display: grid; grid-template-columns: 72px 1.1fr 1fr; gap: clamp(20px, 3vw, 48px);
  padding: clamp(34px, 4.5vw, 60px) 0; border-bottom: 1px solid var(--line);
  align-items: start;
}
.service .s-num { font-family: var(--mono); color: var(--red); font-size: 14px; letter-spacing: .1em; padding-top: 8px; }
.service h3 { font-size: clamp(26px, 3vw, 40px); }
.service .s-desc { color: var(--gray); font-size: 16.5px; max-width: 52ch; }
.service .s-tags { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink); border: 1px solid var(--line); padding: 6px 11px; border-radius: var(--radius);
}
.service-fig .ph { min-height: 220px; height: 100%; }
@media (max-width: 900px) {
  .service { grid-template-columns: 1fr; gap: 18px; }
  .service .s-num { padding-top: 0; }
  .service-fig .ph { min-height: 200px; }
}

/* ---------- projects ---------- */
.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 22px); }
.proj {
  display: block; cursor: default;
}
.proj .ph { aspect-ratio: 4 / 3; }
.proj .meta { margin-top: 14px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.proj .meta .t { font-size: 16px; font-weight: 500; }
.proj .meta .c { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--gray-2); }
.proj .meta .t .dot { color: var(--red); }
@media (max-width: 900px) { .proj-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .proj-grid { grid-template-columns: 1fr; } }

/* ---------- why us (white section, red cards) ---------- */
.why { background: #fff; color: var(--ink); padding-bottom: clamp(36px, 4vw, 56px); }
.why .why-grid { margin-top: 4px; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.4vw, 18px); }
.why-cell { padding: clamp(22px, 2.4vw, 32px) clamp(22px, 2.4vw, 30px); min-height: 0; display: flex; flex-direction: column; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-lg); cursor: pointer; user-select: none; transition: border-color .3s var(--ease), background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease); }
.why-cell:hover { border-color: var(--red); transform: translateY(-2px); }
.why-cell .k { font-family: var(--mono); color: var(--red); font-size: 13px; letter-spacing: .1em; }
.why-cell h4 { font-size: 21px; margin-top: auto; color: var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.why-cell h4::after { content: '+'; font-weight: 400; font-size: 20px; opacity: .45; flex: none; transition: transform .25s var(--ease), opacity .2s, color .3s; color: var(--red); }
.why-cell p { color: var(--gray); font-size: 14.5px; margin-top: 0; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .35s var(--ease), opacity .25s var(--ease), margin-top .25s var(--ease); }
.why-cell.open { background: var(--red); border-color: var(--red); color: #fff; transform: translateY(-2px); }
.why-cell.open .k { color: rgba(255,255,255,.7); }
.why-cell.open h4 { color: #fff; }
.why-cell.open h4::after { transform: rotate(45deg); opacity: 1; color: #fff; }
.why-cell.open p { max-height: 200px; opacity: 1; margin-top: 12px; color: rgba(255,255,255,.85); }
@media (max-width: 900px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .why-grid { grid-template-columns: 1fr; } .why-cell { min-height: 0; } }

/* ---------- achievements (white band, red accents) ---------- */
.ach-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-strong); }
.ach { padding: clamp(30px, 3.6vw, 52px) 0; position: relative; }
.ach + .ach { border-left: 1px solid var(--line); padding-left: clamp(24px, 3vw, 44px); }
.ach-num { font-size: clamp(42px, 6vw, 80px); font-weight: 500; letter-spacing: -0.03em; line-height: 1; color: var(--ink); }
.ach-num .unit { color: var(--red); }
.ach-label { margin-top: 14px; color: var(--gray); font-size: 15px; }
.ach-sub { margin-top: 6px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--gray-2); }
@media (max-width: 720px) {
  .ach-grid { grid-template-columns: 1fr; }
  .ach + .ach { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
}

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: start; }
.contact-head h2 { font-size: clamp(34px, 5vw, 64px); }
.contact-head p { margin-top: 22px; color: var(--gray); font-size: 18px; max-width: 40ch; }
.contact-list { margin-top: 40px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.contact-item { display: flex; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.contact-item .k { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--gray-2); width: 130px; flex: none; }
.contact-item .v { font-size: 19px; font-weight: 500; letter-spacing: -0.01em; }
.contact-item a.v:hover { color: var(--red-ink); }

.form { display: grid; gap: 16px; }
.field { display: grid; gap: 8px; }
.field label { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--gray); }
.field input, .field textarea, .field select {
  font-family: var(--font); font-size: 16px; color: var(--ink);
  border: 1px solid var(--line-strong); background: #fff; padding: 13px 14px; border-radius: var(--radius);
  transition: border-color .2s; width: 100%;
}
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230A0A0A' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--red); }
.field textarea { resize: vertical; min-height: 120px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--gray-2); }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } .form .row { grid-template-columns: 1fr; } }

/* ---------- footer (brand red) ---------- */
.footer { background: var(--red); color: #fff; padding-block: clamp(56px, 7vw, 90px); border-top: 0; }
.footer-logo { display: block; width: auto; margin-bottom: clamp(36px, 5vw, 60px); }
.footer-logo img { height: 32px; width: auto; display: block; }
.footer-cols { display: flex; gap: clamp(40px, 6vw, 90px); flex-wrap: wrap; }
.footer-col h5 { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,0.7); font-weight: 500; margin-bottom: 16px; }
.footer-col a, .footer-col span { display: block; color: #fff; font-size: 15px; padding: 5px 0; }
.footer-col a { transition: opacity .2s; }
.footer-col a:hover { opacity: 0.72; }
.footer-addr { white-space: nowrap; color: rgba(255,255,255,0.85); }
.footer-bottom { margin-top: clamp(48px, 6vw, 72px); padding-top: 26px; border-top: 1px solid rgba(255,255,255,0.3); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom span { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; color: rgba(255,255,255,0.72); }
@media (max-width: 520px) { .footer-addr { white-space: normal; } }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- image wipe-in animations (suited to the line drawings) ---------- */
.reveal--wipe-up, .reveal--wipe-right { opacity: 1; transform: none; }
.reveal--wipe-up img, .reveal--wipe-up .hero-img { clip-path: inset(100% 0 0 0); transition: clip-path 1.15s var(--ease); will-change: clip-path; }
.reveal--wipe-up.in img, .reveal--wipe-up.in .hero-img { clip-path: inset(0 0 0 0); }
.reveal--wipe-right img { clip-path: inset(0 100% 0 0); transition: clip-path 1.15s var(--ease); will-change: clip-path; }
.reveal--wipe-right.in img { clip-path: inset(0 0 0 0); }
@media (prefers-reduced-motion: reduce) {
  .reveal--wipe-up img, .reveal--wipe-up .hero-img, .reveal--wipe-right img { clip-path: none; transition: none; }
}

/* ---------- red panel (framed section divider) ---------- */
.panel-red {
  background: var(--red); color: #fff; border-radius: var(--radius-lg);
  padding: clamp(38px, 5.5vw, 76px) clamp(26px, 5vw, 64px);
}
.panel-red .eyebrow { color: rgba(255,255,255,0.85); }
.panel-red .eyebrow::before { background: #fff; }
.panel-red .eyebrow .num { color: #fff; }
.panel-red h2 { color: #fff; }
.panel-red .panel-title { margin-top: 0; font-size: clamp(30px, 4.4vw, 56px); text-wrap: balance; }
.panel-red .section-head { margin-bottom: clamp(32px, 4vw, 54px); max-width: 760px; }
.panel-red .section-head p { color: rgba(255,255,255,0.85); }
/* project tiles inside the red panel */
.panel-red .ph { background: #fff; border-color: rgba(255,255,255,0.5); }
.panel-red .proj .meta .t-label { color: #fff; }
.panel-red .proj .meta .c { color: rgba(255,255,255,0.72); }

/* language visibility handled by JS toggling [lang] on <html>; both kept in DOM via data-* */

/* ---------- service feature (image + text, no frame) ---------- */
.svc .container {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center;
}
.svc-media { display: flex; align-items: center; justify-content: center; }
.svc-media img { width: auto; max-width: 100%; max-height: min(66vh, 600px); height: auto; display: block; }
.svc-copy .eyebrow { margin-bottom: 22px; }
.svc-copy h2 { font-size: clamp(30px, 4.2vw, 56px); }
.svc-lead { margin-top: 22px; color: var(--gray); font-size: clamp(16px, 1.4vw, 18.5px); max-width: 46ch; }
.svc .stages { margin-top: clamp(24px, 3vw, 40px); border-top: 1px solid var(--line); }
.svc .stage { opacity: 1; }
.svc .stage .sk { color: var(--red); }
/* flipped variant: image on the left */
.svc--flip .svc-media { order: -1; }

/* ---------- insulation: hero header + interactive step cards ---------- */
.ins { padding-top: clamp(32px, 4vw, 56px); padding-bottom: 0; }
.ins-hero { max-width: 1200px; margin: 0 auto clamp(40px, 6vw, 76px); padding-inline: var(--gutter); }
.ins-hero img { width: 100%; height: auto; max-height: 72vh; object-fit: contain; display: block; margin-inline: auto; }
.ins .section-head { margin-bottom: clamp(30px, 4vw, 50px); }
.ins-lead { color: var(--gray); font-size: clamp(16px, 1.35vw, 19px); margin-top: 20px; max-width: 780px; }

/* ---------- insulation layout ---------- */
.ins-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.ins-label {
  font-family: var(--mono); font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--red); margin-bottom: 18px;
}
.ins-text h2 { font-size: clamp(22px, 2.8vw, 38px); line-height: 1.2; }
.ins-body {
  color: var(--gray); font-size: clamp(15px, 1.25vw, 18px);
  margin-top: 20px; max-width: 46ch; line-height: 1.65;
}
.ins-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 12px;
}
.ins-photos image-slot:first-child {
  grid-column: 1 / -1;
}
@media (max-width: 860px) {
  .ins-layout { grid-template-columns: 1fr; }
  .ins-photos { grid-template-columns: 1fr 1fr; }
  .ins-photos image-slot:first-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .svc .container { grid-template-columns: 1fr; gap: 30px; }
  .svc-media { order: 2; }
  .svc--flip .svc-media { order: 2; }
  .svc-media img { max-height: none; width: 100%; }
}

/* ---------- scroll-scrubbed service sections ---------- */
.scrolly { position: relative; }
.scrolly-track { height: 280vh; }
.scrolly-sticky {
  position: sticky; top: var(--header-h);
  height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
  display: flex; align-items: center;
}
.scrolly-grid {
  display: grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(32px, 5vw, 84px);
  align-items: center; width: 100%;
}
.scrolly-copy .eyebrow { margin-bottom: 22px; }
.scrolly-copy h2 { font-size: clamp(30px, 4.2vw, 56px); }
.scrolly-lead { margin-top: 22px; color: var(--gray); font-size: clamp(16px, 1.4vw, 18.5px); max-width: 46ch; }
.stages { margin-top: clamp(24px, 3vw, 40px); border-top: 1px solid var(--line); }
.stage {
  display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding: 15px 0;
  border-bottom: 1px solid var(--line); align-items: baseline;
  opacity: .36; transition: opacity .45s var(--ease);
}
.stage.active { opacity: 1; }
.stage .sk { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--gray-2); transition: color .45s var(--ease); }
.stage.active .sk { color: var(--red); }
.stage h4 { font-size: clamp(17px, 1.6vw, 20px); }
.stage p { color: var(--gray); font-size: 14px; margin-top: 4px; }

/* video media — clean element, no frame/border around it */
.media-frame {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
}
.media-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }

@media (max-width: 860px) {
  .scrolly-track { height: auto; }
  .scrolly-sticky { position: static; height: auto; padding-block: clamp(52px, 9vw, 88px); }
  .scrolly-grid { grid-template-columns: 1fr; gap: 28px; }
  .scrolly-media { order: 2; }
}

/* ---------- e-safety partner strip ---------- */
.esafety-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
  padding-block: clamp(40px, 5.5vw, 72px);
}
.esafety-inner {
  display: flex; align-items: center; gap: clamp(28px, 4.5vw, 72px); flex-wrap: wrap;
}
.esafety-badge {
  display: inline-flex; flex-direction: column; align-items: flex-start; gap: 8px;
  border: 1.5px solid var(--line-strong); border-radius: var(--radius-lg);
  padding: 18px 24px; text-decoration: none; color: var(--ink); flex: none;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.esafety-badge:hover { border-color: var(--red); background: #fff; }
.esafety-badge-label {
  font-family: var(--mono); font-size: 10px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gray-2);
}
.esafety-badge-name {
  display: flex; align-items: center; gap: 9px;
}
.esafety-shield {
  width: 18px; height: 22px; color: var(--red); flex: none;
}
.esafety-wordmark {
  font-size: 22px; font-weight: 500; letter-spacing: -0.03em; line-height: 1;
}
.esafety-wordmark em { font-style: normal; color: var(--red); }
.esafety-badge-url {
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--gray-2);
}
.esafety-divider {
  width: 1px; background: var(--line); align-self: stretch; min-height: 72px; flex: none;
}
.esafety-points { display: flex; flex-direction: column; gap: 18px; flex: 1; min-width: 260px; }
.esafety-point { display: flex; align-items: flex-start; gap: 14px; }
.esafety-point-icon {
  width: 22px; height: 22px; border-radius: 50%; background: var(--red);
  display: flex; align-items: center; justify-content: center;
  flex: none; margin-top: 2px;
}
.esafety-point-icon svg { width: 11px; height: 11px; color: #fff; }
.esafety-point-text { line-height: 1.4; }
.esafety-point-text strong {
  display: block; font-size: 15px; font-weight: 500; color: var(--ink);
}
.esafety-point-text span {
  display: block; font-size: 13.5px; color: var(--gray); margin-top: 3px;
}
@media (max-width: 680px) {
  .esafety-divider { display: none; }
  .esafety-inner { gap: 28px; }
}

/* ---------- button on red panel (white) ---------- */
.btn--on-red { --bg: #fff; --fg: var(--red-ink); border-color: #fff; }
.btn--on-red:hover { background: var(--black); color: #fff; border-color: var(--black); }

/* ---------- closing CTA panel (home) ---------- */
.cta-panel { text-align: center; }
.cta-panel .panel-title { max-width: 22ch; margin-inline: auto; }
.cta-panel .cta-lead { color: rgba(255,255,255,0.9); margin-top: 18px; font-size: clamp(16px, 1.4vw, 19px); max-width: 50ch; margin-inline: auto; }
.cta-panel .btn { margin-top: clamp(26px, 3vw, 36px); }

/* ---------- contact page ---------- */
.contact-page { padding-top: clamp(48px, 7vw, 96px); }
.contact-head h1 {
  font-size: clamp(40px, 6vw, 76px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.04;
}
.contact-head h1 .accent { color: var(--red); }
.contact-page .contact-head p { margin-top: 22px; }
.contact-page .contact-list { margin-top: clamp(36px, 5vw, 56px); }
.contact-note {
  margin-top: 30px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--gray-2); display: flex; flex-direction: column; gap: 6px;
}

/* consent row */
.consent { display: flex; align-items: flex-start; gap: 12px; margin-top: 2px; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--red); flex: none; cursor: pointer; }
.consent label { font-family: var(--font); font-size: 13.5px; letter-spacing: 0; text-transform: none; color: var(--gray); line-height: 1.45; }
.consent a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.consent a:hover { color: var(--red-ink); }

/* submit row */
.form-submit { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 6px; }

/* success state */
.form-success {
  display: none; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 48px); background: var(--paper-2);
}
.form-success.show { display: block; }
.form-success h3 { font-size: clamp(22px, 2.6vw, 30px); }
.form-success p { margin-top: 14px; color: var(--gray); font-size: 16.5px; max-width: 46ch; }
.form-wrap.sent .form { display: none; }

/* ---------- career page ---------- */
.career-hero { padding-top: clamp(48px, 7vw, 100px); padding-bottom: clamp(36px, 5vw, 64px); }
.career-hero h1 {
  font-size: clamp(44px, 7vw, 92px); font-weight: 500; letter-spacing: -0.025em; line-height: 1.0; max-width: 16ch; text-wrap: balance;
}
.career-hero h1 .accent { color: var(--red); }
.career-hero .career-lead { margin-top: clamp(20px, 2.4vw, 30px); color: var(--gray); font-size: clamp(17px, 1.6vw, 21px); max-width: 54ch; }
.career-hero .hero-actions { margin-top: clamp(26px, 3vw, 36px); }

/* jobs list */
.jobs-head { margin-bottom: clamp(28px, 4vw, 44px); }
.jobs { border-top: 1px solid var(--line-strong); }
.job {
  display: grid; grid-template-columns: 1fr auto; gap: clamp(16px, 3vw, 40px);
  padding: clamp(22px, 2.8vw, 34px) 0; border-bottom: 1px solid var(--line);
  align-items: center; cursor: pointer; transition: padding-left .3s var(--ease);
}
.job:hover { padding-left: 10px; }
.job-main h3 { font-size: clamp(20px, 2.2vw, 28px); transition: color .25s var(--ease); }
.job:hover .job-main h3 { color: var(--red-ink); }
.job-tags { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.job-apply {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink);
}
.job-apply .arr { transition: transform .3s var(--ease); color: var(--red); }
.job:hover .job-apply .arr { transform: translateX(5px); }
@media (max-width: 620px) {
  .job { grid-template-columns: 1fr; gap: 16px; align-items: start; }
}

/* file input */
.field input[type="file"] {
  padding: 11px 14px; cursor: pointer; font-family: var(--mono); font-size: 13px; color: var(--gray);
}
.field input[type="file"]::file-selector-button {
  font-family: var(--font); font-size: 13.5px; color: var(--ink); background: var(--paper-2);
  border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 8px 14px; margin-right: 14px; cursor: pointer;
  transition: background .2s, color .2s;
}
.field input[type="file"]::file-selector-button:hover { background: var(--black); color: #fff; }

/* ============================================================
   MOBILE OPTIMISATIONS
   ============================================================ */

/* prevent horizontal scroll */
html, body { overflow-x: hidden; }

/* guarantee 44px tap targets on all buttons */
.btn { min-height: 44px; }

/* hero — full-width stacked buttons on small phones */
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* contact info — stack label above value on small screens */
@media (max-width: 480px) {
  .contact-item { flex-direction: column; gap: 4px; }
  .contact-item .k { width: auto; }
  .contact-item .v { font-size: 17px; }
}

/* insulation photos — single column on tiny phones */
@media (max-width: 480px) {
  .ins-photos { grid-template-columns: 1fr; }
  .ins-photos image-slot:first-child { grid-column: auto; }
}

/* form submit — full-width on small phones */
@media (max-width: 480px) {
  .form-submit { flex-direction: column; align-items: stretch; }
  .form-submit .btn { width: 100%; justify-content: center; }
}

/* footer columns — stack vertically on phones */
@media (max-width: 480px) {
  .footer-cols { flex-direction: column; gap: 32px; }
}

/* mobile menu — CTA button */
@media (max-width: 900px) {
  .mobile-menu { padding-bottom: max(32px, env(safe-area-inset-bottom)); }
  .mobile-menu .mobile-cta {
    display: inline-flex; margin-top: 18px; width: 100%; justify-content: center;
  }
}

/* safe-area padding for notch phones */
@supports (padding: max(0px)) {
  .header .nav { padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
  .footer .container { padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); padding-bottom: max(0px, env(safe-area-inset-bottom)); }
}
