/* deltri.eu · one page
   Brand: design system "deltri" (Maison palette). Rules that matter here:
   lowercase deltri; rosewood is the one flagged thing per view; figures are never coloured;
   double rule under checked totals; borders before shadows; the only shadow is on glass. */

/* ---------- Fonts (self-hosted, OFL) ---------- */
@font-face { font-family: "Albert Sans"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/assets/fonts/albert-sans-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Albert Sans"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/assets/fonts/albert-sans-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/assets/fonts/inter-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/assets/fonts/inter-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url(/assets/fonts/source-serif-4-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url(/assets/fonts/source-serif-4-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(/assets/fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(/assets/fonts/ibm-plex-mono-latin-ext-500-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

/* ---------- Tokens ---------- */
:root {
  --paper: #FFF9D9;   /* lemon */
  --ink: #2D120D;     /* coffee */
  --flag: #6B0B0C;    /* rosewood: once per view */
  --panel: #F3E2C9;   /* sand */
  --soft: #5A433D;    /* bark */
  --line: rgba(45, 18, 13, .14);
  --line-strong: rgba(45, 18, 13, .5);
  --tint: rgba(243, 226, 201, .55);
  --glass: rgba(255, 249, 217, .8);
  --glass-edge: rgba(255, 255, 255, .7);
  --glass-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 20px 44px -18px rgba(45, 18, 13, .3);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .18 0 0 0 0 .07 0 0 0 0 .05 .5 0 0 0 -.22'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  --display: "Albert Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --radius: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --section: clamp(56px, 7.5vw, 104px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1A0C09;  /* night */
    --ink: #FFF2E2;    /* cream */
    --flag: #EE8E7F;   /* coral */
    --panel: #241310;
    --soft: #CDBBA6;
    --line: rgba(255, 242, 226, .13);
    --line-strong: rgba(255, 242, 226, .45);
    --tint: rgba(255, 242, 226, .04);
    --glass: rgba(36, 19, 16, .78);
    --glass-edge: rgba(255, 242, 226, .12);
    --glass-shadow: 0 1px 0 rgba(255, 242, 226, .06) inset, 0 20px 44px -18px rgba(0, 0, 0, .6);
    --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .95 0 0 0 0 .89 .36 0 0 0 -.16'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--paper) var(--grain) repeat; color: var(--ink);
  font: 400 16px/1.6 var(--sans); font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 640; letter-spacing: -.025em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--ink); color: var(--paper); }
.wrap { width: 100%; max-width: clamp(1232px, 76vw, 1480px); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 760px) { .wrap { padding-left: 40px; padding-right: 40px; } }

.skip { position: absolute; left: 12px; top: -48px; z-index: 200; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }

.label { font: 500 11.5px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px;
  font: 600 15px/1 var(--sans); padding: 15px 20px; border-radius: 8px; border: 1px solid var(--ink);
  text-decoration: none; transition: background-color .2s, color .2s, border-color .2s;
}
.btn.primary { background: var(--ink); color: var(--paper); }
.btn.primary:hover { background: var(--soft); border-color: var(--soft); }
.btn.secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn.secondary:hover { border-color: var(--ink); background: var(--tint); }
.btn.small { min-height: 40px; padding: 11px 16px; font-size: 14px; }
.arr { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(12px) saturate(1.2); -webkit-backdrop-filter: blur(12px) saturate(1.2); border-bottom: 1px solid transparent; transition: border-color .25s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { display: block; margin-right: auto; padding: 6px 0; }
.logo { height: 24px; width: auto; }
.ink { fill: var(--ink); }
.flag { fill: var(--flag); }
.links { display: flex; gap: 28px; font-size: 14.5px; }
.links a { position: relative; color: var(--soft); text-decoration: none; padding: 6px 0; transition: color .2s; }
.links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.links a:hover, .links a[aria-current="true"] { color: var(--ink); }
.links a[aria-current="true"]::after { transform: scaleX(1); }
@media (max-width: 860px) { .links { display: none; } }
@media (max-width: 720px) { .logo { height: 20px; } .nav-in { min-height: 60px; } }

/* ---------- Hero ---------- */
.hero { padding: clamp(32px, 6vw, 72px) 0 clamp(48px, 7vw, 88px); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero .label { margin-bottom: 20px; }
.hero h1 { font-size: clamp(36px, 5vw, 62px); line-height: 1.02; letter-spacing: -.034em; max-width: 15.5ch; }
.sub { font-size: clamp(17px, 1.55vw, 20px); line-height: 1.5; color: var(--soft); max-width: 40ch; margin: 24px 0 32px; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.trust { margin-top: 24px; font: 500 11.5px/1.6 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--soft); }

.viz { position: relative; aspect-ratio: 1 / .92; width: 100%; }
.viz canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.glass {
  position: absolute; left: 0; top: 4%; display: grid; gap: 6px; padding: 16px 18px 14px; border-radius: 16px;
  background: var(--glass); border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.glass-l { font: 500 10.5px/1.2 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--soft); }
.glass-f { position: relative; font: 400 clamp(28px, 3vw, 38px)/1.05 var(--serif); font-variant-numeric: tabular-nums lining-nums; padding-bottom: 8px; }
.glass-f::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); transform-origin: left; }
.glass-d { font: 500 12px/1.3 var(--mono); }

/* Desktop: the first screen is exactly one screen tall below the nav, content centred. */
@media (min-width: 901px) {
  .hero { display: grid; align-items: center; min-height: min(calc(100svh - 68px), 1200px); padding: clamp(24px, 4vh, 64px) 0 clamp(40px, 8vh, 104px); }
  /* type and chart scale with the screen's height as well as its width */
  .hero h1 { font-size: clamp(40px, min(4.7vw, 7.6vh), 80px); max-width: 9.4em; }
  .hero-in { grid-template-columns: minmax(0, 1.14fr) minmax(0, .86fr); }
  .sub { font-size: clamp(17px, min(1.5vw, 2.3vh), 22px); margin: clamp(16px, 2.6vh, 28px) 0 clamp(22px, 3.6vh, 36px); }
  .hero .label { margin-bottom: clamp(12px, 2.2vh, 22px); }
  .trust { margin-top: clamp(16px, 2.6vh, 26px); }
  .viz { aspect-ratio: auto; height: clamp(360px, 62svh, 720px); }
}
@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; gap: 24px; }
  .hero h1 { max-width: 17ch; }
  .viz { aspect-ratio: 1 / .66; }
}
@media (max-width: 520px) {
  .btns .btn { width: 100%; }
  .glass { padding: 12px 14px 11px; }
}

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; border-top: 1px solid var(--line); }
.section.panel { background: var(--panel) var(--grain) repeat; border-top: 0; }
.head { display: grid; gap: 14px; margin-bottom: clamp(32px, 4vw, 52px); max-width: 760px; }
.head h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.06; letter-spacing: -.03em; }
.lead { font-size: clamp(16.5px, 1.4vw, 18px); color: var(--soft); max-width: 58ch; }

/* ---------- Offer ---------- */
.steps3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-bottom: clamp(36px, 4vw, 56px); }
.steps3 li { position: relative; display: grid; gap: 8px; align-content: start; }
.steps3 .n { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; font: 500 13px/1 var(--mono); margin-bottom: 8px; background: var(--paper); position: relative; z-index: 1; }
.steps3 li:not(:last-child)::after { content: ""; position: absolute; top: 18px; left: 48px; right: -20px; height: 1px; background: var(--line-strong); transform-origin: left; }
.steps3 h3 { font-size: 20px; }
.steps3 p { color: var(--soft); max-width: 32ch; }
.offer-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.offer-tiles { display: grid; grid-template-rows: 1fr auto; gap: 16px; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 12px; }
.tiles li { border: 1px solid var(--line); border-radius: 12px; padding: 18px; display: grid; gap: 6px; align-content: start; background: var(--tint); transition: border-color .2s; }
.tiles li:hover { border-color: var(--line-strong); }
.tiles strong { font: 640 17px/1.2 var(--display); letter-spacing: -.01em; }
.tiles span { font-size: 14px; line-height: 1.45; color: var(--soft); }
.terms { font: 500 11.5px/1.5 var(--mono); letter-spacing: .06em; text-transform: uppercase; }

.report { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 24px 22px; background: var(--paper); display: grid; align-content: start; }
.report figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.report .tag { font: 500 11px/1 var(--mono); color: var(--soft); }
.report table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums lining-nums; }
.report th, .report td { padding: 12px 0; border-bottom: 1px solid var(--line); text-align: right; font-weight: 400; transition: background-color .6s; }
.report thead th { font: 500 11px/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--soft); padding-top: 0; }
.report thead th:last-child { font-family: var(--serif); font-size: 15px; letter-spacing: 0; color: var(--ink); text-transform: none; }
.report th[scope="row"], .report thead th:first-child { text-align: left; font-size: 15px; }
.report td { font: 400 17px/1.2 var(--serif); padding-left: 12px; }
.report td:last-child { font: 500 13px/1.2 var(--mono); }
.report .sub-total th, .report .sub-total td:not(:last-child), .report .total th, .report .total td:not(:last-child) { font-weight: 600; }
.report .total th, .report .total td { border-bottom: 3px double var(--ink); }
.report .flagged th, .report .flagged td { background: var(--tint); }
.report .flagged th { padding-left: 8px; }
.report .flagged td:last-child { padding-right: 8px; }
.report .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--flag); margin-right: 8px; vertical-align: 1px; }
.report .note { margin-top: 16px; font-size: 14px; color: var(--soft); }

@media (max-width: 900px) { .offer-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .steps3 { grid-template-columns: 1fr; gap: 20px; }
  .steps3 li { grid-template-columns: 36px 1fr; column-gap: 14px; row-gap: 2px; }
  .steps3 .n { grid-row: span 2; margin: 0; }
  .steps3 li:not(:last-child)::after { top: 44px; bottom: -16px; left: 18px; right: auto; width: 1px; height: auto; transform-origin: top; }
}
@media (max-width: 560px) { .tiles li { padding: 14px; } .report { padding: 18px 16px; } .report td { font-size: 15.5px; } }

/* ---------- Services ---------- */
.cards4 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card { position: relative; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 2.6vw, 32px); display: grid; gap: 10px; align-content: start; transition: border-color .25s; }
.card:hover { border-color: var(--line-strong); }
.card .num { font: 500 12px/1 var(--mono); color: var(--soft); }
.card h3 { font-size: clamp(19px, 1.7vw, 22px); line-height: 1.2; max-width: 24ch; }
.card .when { color: var(--soft); font-style: italic; font-family: var(--serif); font-size: 16.5px; }
.card ul { display: grid; gap: 9px; margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.card li { position: relative; padding-left: 22px; font-size: 15px; }
.card li::before { content: ""; position: absolute; left: 0; top: .78em; width: 11px; height: 1px; background: var(--ink); }
@media (max-width: 760px) { .cards4 { grid-template-columns: 1fr; } }

.ai { margin-top: 16px; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 2.6vw, 32px); display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 24px; align-items: center; background: var(--tint); }
.ai h3 { font-size: clamp(19px, 1.7vw, 22px); margin: 10px 0; }
.ai p:not(.label) { color: var(--soft); max-width: 62ch; font-size: 15.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.chips li { font: 500 12px/1 var(--mono); padding: 10px 13px; border: 1px solid var(--line-strong); border-radius: 99px; background: var(--paper); }
@media (max-width: 760px) { .ai { grid-template-columns: 1fr; } .chips { justify-content: flex-start; } }

/* ---------- How it works ---------- */
.steps4 { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps4::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line-strong); transform-origin: left; }
.steps4 li { padding: 24px 24px 4px 0; display: grid; gap: 10px; align-content: start; }
.steps4 li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.steps4 .when { font: 500 11.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--soft); }
.steps4 h3 { font-size: 22px; }
.steps4 p { color: var(--soft); font-size: 15px; max-width: 30ch; }
@media (max-width: 900px) {
  .steps4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps4 li:nth-child(3) { padding-left: 0; border-left: 0; }
  .steps4 li:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 20px; }
}
@media (max-width: 520px) {
  .steps4 { grid-template-columns: 1fr; }
  .steps4 li, .steps4 li + li { padding: 20px 0 2px; border-left: 0; }
  .steps4 li + li { border-top: 1px solid var(--line); margin-top: 16px; }
}

/* ---------- Experience ---------- */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.stat { border-top: 1px solid var(--line-strong); padding-top: 22px; display: grid; gap: 12px; align-content: start; }
.fig { font: 400 clamp(48px, 5.6vw, 72px)/1 var(--serif); letter-spacing: -.02em; font-variant-numeric: tabular-nums lining-nums; }
.stat p { color: var(--soft); max-width: 32ch; }
.also { margin-top: 36px; color: var(--soft); }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Team ---------- */
.people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.people li { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: center; }
.init { width: 56px; height: 56px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); display: grid; place-items: center; font: 500 13px/1 var(--mono); letter-spacing: .04em; }
.people h3 { font-size: 18px; line-height: 1.25; }
.people p { color: var(--soft); font-size: 14.5px; margin-top: 3px; }
@media (max-width: 900px) { .people { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact { background: var(--ink); color: var(--paper); border-top: 0; }
.contact .label, .contact .lead { color: color-mix(in srgb, var(--paper) 72%, transparent); }
.contact h2 { font-size: clamp(30px, 3.8vw, 48px); line-height: 1.05; letter-spacing: -.03em; margin: 14px 0 16px; max-width: 19ch; }
.contact-in { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: end; }
.contact-actions { display: grid; gap: 16px; justify-items: start; }
.contact .btn.primary { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.contact .btn.primary:hover { background: var(--panel); border-color: var(--panel); }
.contact .mail { font: 500 15px/1.4 var(--mono); text-underline-offset: 5px; text-decoration-thickness: 1px; }
.contact :focus-visible { outline-color: var(--paper); }
@media (max-width: 760px) { .contact-in { grid-template-columns: 1fr; } .contact-actions { justify-items: stretch; } }

/* ---------- Footer ---------- */
.foot { padding: 48px 0 32px; font-size: 14px; color: var(--soft); }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 32px; align-items: start; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.foot-brand { display: grid; gap: 14px; }
.foot-mark { height: 22px; width: auto; }
.foot-nav { display: grid; gap: 8px; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; padding-top: 20px; font-size: 13px; }
@media (max-width: 760px) { .foot-top { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- 404 ---------- */
.notfound { border-top: 0; min-height: 70vh; }
.notfound h1 { font-size: clamp(30px, 4vw, 46px); line-height: 1.08; }

/* ---------- Motion (only with JavaScript and when motion is welcome) ---------- */
html.motion .rv { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
html.motion .rv.in { opacity: 1; transform: none; }
html.motion .report tbody tr.rv { transform: none; transition: opacity .5s ease; transition-delay: var(--d, 0ms); }
html.motion .report:not(.in) .flagged th, html.motion .report:not(.in) .flagged td { background: transparent; }
html.motion .report.in .flagged th, html.motion .report.in .flagged td { transition-delay: 1s; }
html.motion .report .note { opacity: 0; transition: opacity .6s ease 1.3s; }
html.motion .report.in .note { opacity: 1; }
html.motion .steps4::before, html.motion .steps3 li:not(:last-child)::after { transform: scaleX(0); transition: transform 1.2s var(--ease) .2s; }
html.motion .steps4.in::before, html.motion .steps3.in li:not(:last-child)::after { transform: scaleX(1); }
@media (max-width: 760px) {
  html.motion .steps3 li:not(:last-child)::after { transform: scaleY(0); }
  html.motion .steps3.in li:not(:last-child)::after { transform: scaleY(1); }
}
html.motion .glass { opacity: 0; transform: translateY(10px) scale(.98); transition: opacity .6s var(--ease), transform .7s var(--ease); }
html.motion .glass.show { opacity: 1; transform: none; }
html.motion .glass-f::after { transform: scaleX(0); transition: transform .7s var(--ease) .35s; }
html.motion .glass.show .glass-f::after { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
