/* ============================================================
   ILVAMAR GROUP — blue system
   Contrast on the pale-blue band / on white:
   navy 14.5 / 18.4 · mid 9.2 / 11.6 · blue 6.4 / 8.1
   soft 5.7 / 7.2 · faint 5.0 / 6.4 — all clear 4.5:1
   On navy: white 18.4 · body 11.2 · light blue 8.7
   ============================================================ */
:root {
  --white:      #ffffff;
  --tint-050:   #eef3f8;
  --tint-100:   #dbe5ef;
  --tint-200:   #b5d2f2;

  --navy:       #0c1528;
  --navy-mid:   #123964;
  --navy-soft:  #3f5878;
  --navy-faint: #4d6081;
  --blue:       #0845ba;
  --blue-light: #86b4ff;

  --on-navy:       #ffffff;
  --on-navy-body:  #c8d6e8;
  --on-navy-faint: #93a6c0;

  --line:      rgba(12,21,40,0.14);
  --line-weak: rgba(12,21,40,0.08);
  --line-navy: rgba(255,255,255,0.18);

  --r: 4px;
  --ease: cubic-bezier(.2,.7,.3,1);
  --dur-1: 160ms;
  --dur-2: 260ms;
  --dur-3: 420ms;

  --gut: 96px;
}

html {
  scroll-behavior: smooth;
  /* The parallax plates are scaled past their box, and clip-path clips
     painting but not scrollable overflow. This has to sit on the root, which
     propagates to the viewport - on body it does not reach it. clip, never
     hidden: hidden would make this a scroll container and kill both the
     sticky header and the scroll-driven animations. */
  overflow-x: clip;
}
body { margin: 0; background: var(--white); color: var(--navy); overflow-x: clip;
       font-family: "Archivo", "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: "Archivo", "Helvetica Neue", Arial, sans-serif; font-weight: 400; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--blue); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
/* the division panels are divs, not sections, so they need this too */
section, .dv { scroll-margin-top: 96px; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.on-navy :focus-visible { outline-color: var(--white); }

.skip { position: absolute; left: 16px; top: -80px; z-index: 90; padding: 15px 20px; min-height: 44px;
        box-sizing: border-box; border-radius: var(--r); background: var(--blue); color: var(--white);
        font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
        transition: top var(--dur-2) var(--ease); }
.skip:focus { top: 16px; }

/* ---------- type ---------- */
.d1  { font-size: clamp(2.875rem, 7.5vw, 6.75rem); line-height: 0.92; letter-spacing: -0.02em; font-weight: 500; text-transform: uppercase; }
.d2  { font-size: clamp(1.875rem, 3.6vw, 3.25rem);  line-height: 1.06; letter-spacing: -0.012em; font-weight: 400; }
.d3  { font-size: clamp(1.5rem, 2.2vw, 1.9375rem);  line-height: 1.12; letter-spacing: -0.008em; font-weight: 400; }
.ttl { font-size: 22px;  line-height: 1.2;  font-weight: 500; }
.lede  { font-size: clamp(1.0625rem, 1.4vw, 1.25rem); line-height: 1.55; color: var(--navy-mid); text-wrap: pretty; }
.body  { font-size: 17px; line-height: 1.65; color: var(--navy-soft); text-wrap: pretty; }
.bodys { font-size: 15px; line-height: 1.6;  color: var(--navy-soft); text-wrap: pretty; }
.lab { font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--navy-faint); }

/* ---------- hero entrance ---------- */
@keyframes riseIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes lineIn { from { opacity: 0; transform: translateY(0.28em); clip-path: inset(0 0 100% 0); }
                    to   { opacity: 1; transform: none; clip-path: inset(0 0 -0.2em 0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.e-1  { animation: riseIn 620ms var(--ease) 180ms both; }
.e-l1 { animation: lineIn 820ms var(--ease) 280ms both; }
.e-l2 { animation: lineIn 820ms var(--ease) 390ms both; }
.e-2  { animation: riseIn 760ms var(--ease) 560ms both; }
.e-3  { animation: riseIn 760ms var(--ease) 680ms both; }

.hero-video { animation: fadeIn 1000ms ease 240ms both; }
.videos-off .hero-video { animation: none; opacity: 1; }

/* ---------- parallax: scroll-driven, so no scroll listeners ---------- */
@supports (animation-timeline: view()) {
  @keyframes parHero  { from { transform: translate3d(0, -4%, 0); } to { transform: translate3d(0, 8%, 0); } }
  @keyframes parPlate { from { transform: translate3d(0, -7%, 0) scale(1.18); }
                        to   { transform: translate3d(0,  7%, 0) scale(1.18); } }
  .hero-media { animation: parHero 1s linear both; animation-timeline: view(); animation-range: cover; }
  .plate.par img { animation: parPlate 1s linear both; animation-timeline: view(); animation-range: cover; }
}

/* ---------- plates dissolve into their ground ---------- */
/* clip-path, NOT overflow:hidden - overflow makes this a scroll container,
   which would capture the view() timeline and stop the parallax dead */
.plate { clip-path: inset(0); }
.plate img { display: block; width: 100%; height: 100%; object-fit: cover; }
.soft img {
  -webkit-mask-image:
    linear-gradient(to bottom, transparent 0%, #000 15%, #000 85%, transparent 100%),
    linear-gradient(to right,  transparent 0%, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to bottom, transparent 0%, #000 15%, #000 85%, transparent 100%),
    linear-gradient(to right,  transparent 0%, #000 12%, #000 88%, transparent 100%);
  mask-composite: intersect;
}
/* the hero plate only needs its bottom edge easing into the page */
.hero-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 180px; pointer-events: none;
             background: linear-gradient(to bottom, rgba(12,21,40,0) 0%, var(--navy) 100%); }

/* ---------- header ---------- */
.bar { position: sticky; top: 0; z-index: 40; background: var(--white);
       transition: height var(--dur-2) ease, box-shadow var(--dur-2) ease, border-color var(--dur-2) ease; }
.at-top .bar { height: 80px; border-bottom-color: var(--line-weak); }
.is-scrolled .bar { height: 64px; border-bottom-color: var(--line); box-shadow: 0 8px 24px -20px rgba(12,21,40,0.55); }

.nav-link { position: relative; padding: 10px 0; color: var(--navy-mid); transition: color var(--dur-1) ease; }
.nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: currentColor;
                   transform: scaleX(0); transform-origin: left; transition: transform var(--dur-2) var(--ease); }
.nav-link:hover { color: var(--blue); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-0 .n0, .nav-1 .n1, .nav-2 .n2, .nav-3 .n3 { color: var(--blue); }
.nav-0 .n0::after, .nav-1 .n1::after, .nav-2 .n2::after, .nav-3 .n3::after { transform: scaleX(1); }

/* ---------- buttons ---------- */
.btn { position: relative; overflow: hidden; border-radius: var(--r);
       transition: transform var(--dur-1) var(--ease), background-color var(--dur-2) ease, box-shadow var(--dur-2) ease; }
.btn > * { position: relative; }
.btn svg { transition: transform var(--dur-2) var(--ease); }
.btn:hover svg { transform: translateX(5px); }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: #06379a; box-shadow: 0 12px 24px -16px rgba(8,69,186,0.9); transform: translateY(-1px); }
.btn-white { background: var(--white); color: var(--navy); }
.btn-white:hover { background: var(--tint-100); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.995); }

.tlink { position: relative; padding-bottom: 6px; color: var(--blue); transition: color var(--dur-1) ease; }
.tlink::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
                opacity: 0.4; transition: opacity var(--dur-2) ease; }
.tlink:hover::after { opacity: 1; }
.on-navy .tlink { color: var(--white); }

/* ---------- cookie consent ---------- */
/* Fixed to the viewport, above the sticky header (z 40), below the skip link (90). */
.cbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; pointer-events: none;
        padding: 0 var(--gut) 26px var(--gut); box-sizing: border-box; }
.cbar { display: none; }
.ck-banner .cbar, .ck-settings .cbar { display: block; }
.ccard { pointer-events: auto; max-width: 1248px; margin: 0 auto; box-sizing: border-box;
         background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
         box-shadow: 0 28px 64px -30px rgba(12,21,40,0.5); padding: 26px 30px; display: grid; }
.cintro { grid-area: intro; }
.cprefs { grid-area: prefs; margin-top: 20px; border-top: 1px solid var(--line); }
.cacts  { grid-area: acts; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ck-banner .cprefs { display: none; }
.ck-banner .csave  { display: none; }
.ck-settings .cshow { display: none; }

.cbtn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
        padding: 0 22px; border-radius: var(--r); font-size: 15px; font-weight: 500; white-space: nowrap; }
.cbtn-ghost { border: 1px solid var(--line); background: var(--white); color: var(--navy);
              transition: background-color var(--dur-2) ease; }
.cbtn-ghost:hover { background: var(--tint-050); }
.clink { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; font-size: 15px;
         color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.clink:hover { color: var(--navy); }

/* one row per category; necessary cookies are stated, not offered */
.ckrow { display: grid; grid-template-columns: 1fr 106px; gap: 20px; align-items: center;
        padding: 17px 0; border-bottom: 1px solid var(--line-weak); }
.ckname { font-size: 16px; font-weight: 500; }
.ckdesc { font-size: 14px; line-height: 1.55; color: var(--navy-soft); margin-top: 5px; max-width: 720px; }
.ckfix  { justify-self: end; font-size: 14px; color: var(--navy-faint); }
.csw   { justify-self: end; display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; }
.ctrack { position: relative; display: block; width: 46px; height: 26px; border-radius: 13px;
          background: #b9c7d8; transition: background-color var(--dur-2) ease; }
.cknob { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
         background: var(--white); box-shadow: 0 1px 3px rgba(12,21,40,0.45);
         transition: transform var(--dur-2) var(--ease); }
.an-on .csw-an .ctrack { background: var(--blue); }
.an-on .csw-an .cknob { transform: translateX(20px); }
.ck-banner   .ccard { grid-template-columns: 1fr auto; grid-template-areas: "intro acts";
                      column-gap: 40px; align-items: center; }
.ck-settings .ccard { grid-template-columns: 1fr; grid-template-areas: "intro" "prefs" "acts"; }
.ck-settings .cacts { justify-content: flex-end; margin-top: 22px; }

/* ---------- divisions: a light sheet with the drawing set into it, as in About ---------- */
.dv { background: var(--white); border-radius: var(--r); padding: 44px 52px; }

/* ---------- method: the run of stages is a real sequence, so mark it ---------- */
.track { position: relative; height: 1px; background: var(--line); margin-bottom: 34px; }
.track span { position: absolute; inset: 0; transform-origin: left; background: var(--blue); transform: scaleX(0); }
@supports (animation-timeline: view()) {
  @keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  .track span { animation: draw 1s linear both; animation-timeline: view(); animation-range: entry 20% cover 46%; }
}

/* ---------- scroll reveal ---------- */
@supports (animation-timeline: view()) {
  @keyframes revealUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  .reveal { animation: revealUp 1s linear both; animation-timeline: view(); animation-range: entry 3% cover 22%; }
}

/* ---------- service list ---------- */
.svc { display: block; padding: 15px 0; border-top: 1px solid var(--line); }

/* ---------- method ---------- */
.step { padding: 26px 24px; border: 1px solid var(--line); border-radius: var(--r); background: var(--white);
        transition: border-color var(--dur-2) ease, box-shadow var(--dur-2) ease; }
.step:hover { border-color: var(--tint-200); box-shadow: 0 12px 28px -22px rgba(12,21,40,0.5); }
.step .snum { display: inline-flex; align-items: center; justify-content: center;
              width: 34px; height: 34px; border-radius: 100%;
              background: var(--tint-100); color: var(--blue); font-size: 13px; font-weight: 600; }

/* ---------- form ---------- */
/* ---------- enquiry card: one action, and what to put in it ---------- */
.inc { display: flex; flex-direction: column; gap: 10px; margin: 0; padding-left: 0; list-style: none; }
.inc li { position: relative; padding-left: 20px; font-size: 15px; line-height: 1.55; color: var(--navy-soft); }
.inc li::before { content: ""; position: absolute; left: 0; top: 11px; width: 8px; height: 1px;
                  background: var(--navy-faint); }

/* ---------- video control ---------- */
.vtoggle { display: flex; align-items: center; justify-content: center; gap: 9px; min-width: 44px; min-height: 44px;
           padding: 0 16px; border-radius: var(--r); border: 1px solid var(--line-navy);
           background: rgba(12,21,40,0.5); backdrop-filter: blur(8px); color: var(--on-navy-body);
           font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
           transition: border-color var(--dur-2) ease, color var(--dur-2) ease; }
.vtoggle:hover { border-color: var(--white); color: var(--white); }
.vtoggle .ic-pause { display: inline-flex; }
.vtoggle .ic-play { display: none; }
.videos-off .vtoggle .ic-pause { display: none; }
.videos-off .vtoggle .ic-play { display: inline-flex; }
.vtoggle .lb-play { display: none; }
.videos-off .vtoggle .lb-pause { display: none; }
.videos-off .vtoggle .lb-play { display: inline; }

/* scroll-driven animations ignore duration, so they need switching off by name */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important;
                           animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .hero-media, .plate.par img, .reveal, .plate-still, .track span { animation: none !important; }
  .hero-media, .plate.par img, .plate-still { transform: none !important; }
  .hero-video, .vtoggle { display: none !important; }
}
  
/* ================= navigation for small screens =================
   The burger and the full-screen sheet only exist below the breakpoint;
   above it the inline nav is used and both of these stay hidden. */
.nav-inline { display: flex; align-items: center; gap: 36px; font-size: 15px; }
.burger { display: none; flex-direction: column; justify-content: center; align-items: flex-end;
          gap: 5.2px; width: 48px; height: 48px; position: relative; z-index: 70; }
.burger span { display: block; height: 1.8px; width: 24px; background: currentColor;
               transition: transform var(--dur-3) var(--ease), opacity var(--dur-1) ease; transform-origin: center; }
.menu-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; transform: scaleX(0.2); }
.menu-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.sheet { position: fixed; inset: 0; z-index: 62; background: var(--white); display: flex; flex-direction: column;
         opacity: 0; visibility: hidden; transform: translateY(-10px);
         transition: opacity var(--dur-2) ease, transform var(--dur-3) var(--ease), visibility var(--dur-2); }
.menu-open .sheet { opacity: 1; visibility: visible; transform: none; }
.sheet .mi { opacity: 0; transform: translateY(16px); transition: opacity var(--dur-3) ease, transform 440ms var(--ease); }
.menu-open .sheet .mi { opacity: 1; transform: none; }
.menu-open .sheet .mi:nth-child(1) { transition-delay: 100ms; }
.menu-open .sheet .mi:nth-child(2) { transition-delay: 155ms; }
.menu-open .sheet .mi:nth-child(3) { transition-delay: 210ms; }
.menu-open .sheet .mi:nth-child(4) { transition-delay: 265ms; }
.menu-open .sheet .mi:nth-child(5) { transition-delay: 320ms; }


.sheet { display: none; }

/* contact rows, used in the stacked layout */
.crow { display: flex; align-items: center; justify-content: space-between; gap: 12px;
        min-height: 54px; padding: 6px 0; border-bottom: 1px solid var(--line-navy);
        font-size: 16px; color: var(--white); }
.crow svg { color: var(--on-navy-faint); transition: transform var(--dur-2) var(--ease); }
.crow:active svg { transform: translateX(4px); }



/* ================= 1180px and down: tighten the gutters ================= */
@media (max-width: 1180px) {
  :root { --gut: 48px; }
  .assembly-grid { gap: 32px; }
}

/* the four stages need about 260px each to read; below that they go two-up */
@media (max-width: 1060px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

/* ================= 960px and down: single column ================= */
@media (max-width: 960px) {
  :root { --gut: 32px; }
  /* every 12- and 11-column grid collapses to one column */
  .g12, .g11 { grid-template-columns: 1fr !important; }
  .g12 > *, .g11 > * { grid-column: 1 / -1 !important; }
  /* the division panels put the drawing above the words, both divisions
     the same way round, because alternating sides only reads as a pair
     when they sit side by side */
  /* order works in grid too, so the drawing can move above the words
     without overriding the inline display */
  .dv .g11 > .plate { order: -1; }
  .dv { padding: 28px 24px 32px 24px; }
  .dv .plate { height: 300px !important; }
  #s-about .plate { height: 220px !important; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  #hero { height: min(78vh, 620px) !important; }
  section { padding-top: 72px !important; padding-bottom: 76px !important; }
  .encard { min-height: 0 !important; padding: 28px 24px 30px 24px !important; }
}

/* ================= 760px and down: the mobile treatment ================= */
@media (max-width: 760px) {
  :root { --gut: 20px; }
  .nav-inline { display: none; }
  .burger { display: flex; }
  .sheet { display: flex; }
  .at-top .bar, .is-scrolled .bar { height: 64px; }
  .steps { grid-template-columns: 1fr !important; }
  .dv .plate { height: 260px !important; }
  #s-about .plate { height: 180px !important; }
  #hero { height: min(84vh, 560px) !important; }
  section { padding-top: 52px !important; padding-bottom: 56px !important; }
  /* the enquiry card stacks and its button goes full width */
  .encard .btn { width: 100%; }
  /* footer columns stack */
  .foot-grid { display: flex !important; flex-direction: column; gap: 30px; }
  .foot-legal { flex-direction: column; align-items: flex-start !important; gap: 4px; }
  /* the consent card is one column with stacked, full-width actions */
  .ccard { grid-template-columns: 1fr !important;
           grid-template-areas: "intro" "prefs" "acts" !important; padding: 20px 18px 22px 18px !important; }
  .cacts { margin-top: 16px; flex-direction: column; align-items: stretch; gap: 8px; justify-content: flex-start !important; }
  .cbtn, .clink { width: 100%; }
  .ck-settings .cintro p { display: none; }
  .ck-settings .cprefs { max-height: 42vh; overflow-y: auto; margin-top: 14px; }
  .ckrow { grid-template-columns: 1fr auto; gap: 14px; }
  .ckdesc { max-width: none; }
  .cbar { padding-bottom: 14px; }
  /* the policy index is a plain list above the text, not a sticky rail */
  .toc { position: static !important; margin-bottom: 32px; }
  /* 30px is fine for a pointer but not for a thumb; the inline min-heights
     came from the desktop layout, so these have to out-rank them */
  footer a, footer button { min-height: 44px !important; }
  #s-contact a[href^="mailto"] { min-height: 44px; display: inline-flex; align-items: center; }
}

/* the sheet is irrelevant to print, and so is the consent bar */
@media print {
  .bar, .sheet, .burger, .cbar, .vtoggle, .skip { display: none !important; }
  .hero-video { display: none !important; }
  a { text-decoration: underline; }
  body { background: #fff; }
}

/* ================= privacy policy page ================= */
/* .d1 carries the hero's uppercase treatment, which is wrong for a document
   title: the policy heading is sentence case and a good deal smaller */
.policy .d1 { text-transform: none; font-size: clamp(2.25rem, 5vw, 4.75rem); line-height: 0.98; }
/* ---------- section index ---------- */
.toc { position: sticky; top: 104px; display: flex; flex-direction: column; }
.toc a { display: flex; gap: 12px; align-items: center; min-height: 44px; padding: 8px 0;
         box-sizing: border-box; font-size: 15px; color: var(--navy-soft);
         text-decoration: none; border-top: 1px solid var(--line-weak); }
.toc a:first-of-type { border-top: 0; }
.toc a:hover { color: var(--blue); }
.toc .tn { color: var(--navy-faint); font-size: 13px; font-weight: 500; min-width: 18px; }

/* ---------- sections ---------- */
.sec { padding: 44px 0; border-top: 1px solid var(--line); }
.sec:first-of-type { border-top: 0; padding-top: 0; }
.sn { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px;
      border-radius: 100%; background: var(--tint-100); color: var(--blue);
      font-size: 13px; font-weight: 600; margin-bottom: 18px; }
.prose { display: flex; flex-direction: column; gap: 18px; max-width: 68ch; margin-top: 16px; }
.prose h3 { font-size: 19px; font-weight: 500; color: var(--navy); margin-top: 12px; }
.prose ul { display: flex; flex-direction: column; gap: 9px; padding-left: 0; list-style: none; }
.prose li { position: relative; padding-left: 22px; font-size: 17px; line-height: 1.65; color: var(--navy-soft); }
.prose li::before { content: ""; position: absolute; left: 2px; top: 12px; width: 7px; height: 1px; background: var(--navy-faint); }
.prose ol { display: flex; flex-direction: column; gap: 9px; padding-left: 22px; }
.prose ol li { padding-left: 6px; list-style: decimal; }
.prose ol li::before { content: none; }

/* controller details, and the cookie table, share one row rhythm */
.dl { display: grid; grid-template-columns: 210px 1fr; gap: 0 28px; margin-top: 20px; max-width: 760px; }
.dl dt { padding: 13px 0; border-top: 1px solid var(--line-weak); font-size: 15px; color: var(--navy-faint); }
.dl dd { padding: 13px 0; border-top: 1px solid var(--line-weak); font-size: 16px; color: var(--navy); }

.tbl { width: 100%; border-collapse: collapse; margin-top: 22px; }
.tbl caption { text-align: left; font-size: 14px; color: var(--navy-faint); padding-bottom: 12px; }
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: 15px 18px 15px 0;
                   border-bottom: 1px solid var(--line-weak); font-size: 15px; line-height: 1.55; }
.tbl th { font-weight: 500; color: var(--navy); border-bottom-color: var(--line); }
.tbl td { color: var(--navy-soft); }
.tbl td:first-child { color: var(--navy); font-weight: 500; }
