/* ============================================================
   WEBURL / DOSSIER — homepage 2026-09
   Swiss grid + collage: taped photographs, red-marker notes,
   Gilroy weight contrast (200 ↔ 900), Belgian engravings.
   Loaded after styles.css on the homepage only.
   ============================================================ */

/* Permanent Marker — Apache License 2.0 (Font Diner), self-hosted latin subset */
@font-face {
  font-family: "Permanent Marker";
  src: url("fonts/permanent-marker-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

.home-page {
  --x-bg: #f7f5f2;
  --x-mute: #7a736e;
  --x-line: rgba(13, 13, 13, .14);
  --x-line-strong: rgba(13, 13, 13, .42);
  --x-hand: "Permanent Marker", "Marker Felt", "Comic Sans MS", cursive;
  --x-max: var(--page-max, 1560px);
  background: var(--x-bg);
  background-image: none;
}
.home-page .x-wrap { width: min(100%, var(--x-max)); margin: 0 auto; padding: 0 var(--gutter); position: relative; }
.home-page .th { font-weight: 200; letter-spacing: -.03em; }
.home-page .lt { font-weight: 200; }
.home-page .hv { font-weight: 900; color: var(--accent); letter-spacing: -.04em; white-space: nowrap; }
.home-page .x-hand { font-family: var(--x-hand); color: var(--accent); font-weight: 400; letter-spacing: 0; text-transform: none; line-height: 1.1; }

/* shared photo treatments */
.x-tape { position: absolute; width: 96px; height: 26px; background: rgba(236, 226, 206, .8); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); z-index: 3; }
.x-shot { position: relative; background: #fff; padding: 10px 10px 34px; box-shadow: 0 18px 40px -18px rgba(13, 13, 13, .35), 0 2px 6px rgba(13, 13, 13, .08); }
.x-shot img, .x-sv figure img, .x-duo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.x-shot figcaption { position: absolute; left: 12px; bottom: 7px; font-family: var(--x-hand); font-size: 15px; color: var(--ink); }
.x-duo { position: relative; background: var(--accent); overflow: hidden; }
.x-duo img { filter: grayscale(1) contrast(1.25) brightness(.95); mix-blend-mode: screen; }
.x-bw img { filter: grayscale(1) contrast(1.1); }
.x-halftone { position: relative; overflow: hidden; }
.x-halftone::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle, rgba(13, 13, 13, .55) 0 1.1px, transparent 1.4px) 0 0 / 5px 5px; mix-blend-mode: multiply; pointer-events: none; }
.x-draw path { stroke-dasharray: 2400; stroke-dashoffset: 2400; }
.x-draw.is-drawn path, .x-hero .x-draw path { animation: x-draw 2.4s .35s var(--ease) forwards; }
@keyframes x-draw { to { stroke-dashoffset: 0; } }

/* ===== HERO ===== */
.home-page .x-hero { position: relative; height: min(100svh, 980px); min-height: 720px; overflow: hidden; }
.home-page .x-hero::before { content: ""; position: absolute; inset: 6% -8% 0; background: url("img/grand-place-engraving-v2.webp") center 30% / cover no-repeat; opacity: .11; mix-blend-mode: multiply; pointer-events: none; }
.home-page .x-hero .hero-motion {
  position: absolute; inset: 110px 0 250px; z-index: 1;
  width: auto; height: auto; min-height: 0; margin: 0;
  grid-column: auto; grid-row: auto; justify-self: auto; align-self: auto;
  pointer-events: auto;
}
.home-page .x-hero .hero-motion.is-globe-ready .hero-globe-video { opacity: .7 !important; filter: saturate(.8) contrast(1.03); }
.x-ring { position: absolute; z-index: 2; left: 50%; top: calc(110px + (100% - 360px) / 2); width: min(64vh, 620px); aspect-ratio: 1.08; transform: translate(-50%, -50%) rotate(-7deg); pointer-events: none; }
.x-ring path { fill: none; stroke: var(--accent); stroke-width: 3.2; stroke-linecap: round; }
.x-note { position: absolute; z-index: 4; font-family: var(--x-hand); color: var(--accent); font-size: 22px; line-height: 1.1; transform: rotate(-6deg); pointer-events: none; }
.x-note-globe { left: calc(50% + min(34vh, 330px)); top: 190px; }
.x-note-globe svg { display: block; width: 90px; margin: 4px 0 0 -40px; }
.x-note-globe path { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; }
.x-corner { position: absolute; z-index: 4; }
.x-corner .mono { display: block; color: var(--x-mute); font-size: 11px; line-height: 1.5; letter-spacing: .04em; text-transform: uppercase; }
.x-corner strong { display: block; font-size: 40px; font-weight: 600; letter-spacing: -.035em; line-height: 1; margin: 6px 0 4px; }
.x-c-tl { top: 118px; left: var(--gutter); }
.x-c-tl strong { font-weight: 200; font-size: 60px; }
.x-c-tr { top: 118px; right: var(--gutter); text-align: right; }
.x-c-bl { bottom: 290px; left: var(--gutter); }
.x-polaroid { position: absolute; z-index: 3; right: calc(var(--gutter) + 8px); bottom: 262px; width: 188px; height: 210px; transform: rotate(5deg); pointer-events: none; }
.x-polaroid .x-tape { top: -12px; left: 46px; transform: rotate(-4deg); }
.x-stamp { position: absolute; z-index: 5; left: calc(50% - min(34vh, 330px) - 30px); top: calc(110px + (100% - 360px) / 2 + 10px); width: 138px; height: 138px; pointer-events: none; }
.x-stamp svg { width: 100%; height: 100%; animation: x-spin 26s linear infinite; }
.x-stamp text { font-family: var(--font-mono); font-size: 9.2px; letter-spacing: 1.6px; fill: var(--accent); text-transform: uppercase; }
.x-stamp b { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 900; font-size: 44px; color: var(--accent); }
@keyframes x-spin { to { transform: rotate(360deg); } }
.x-hero-title { position: absolute; z-index: 5; left: 0; right: 0; bottom: 38px; padding: 0 var(--gutter); display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 32px; pointer-events: none; }
.x-hero-title > * { pointer-events: auto; }
.home-page .x-hero h1 { max-width: none; font-size: clamp(46px, 5.7vw, 90px); line-height: .92; letter-spacing: -.035em; font-weight: 800; }
.x-hero-side { max-width: 300px; padding-bottom: 10px; }
.x-hero-side p { font-size: 15px; line-height: 1.55; color: var(--ink-soft); margin-bottom: 18px; }

/* ===== MARQUEE ===== */
.x-marquee { background: var(--ink); color: var(--x-bg); overflow: hidden; }
.x-marquee-track { display: flex; gap: 42px; align-items: center; white-space: nowrap; padding: 20px 0; width: max-content; animation: x-marq 38s linear infinite; }
.x-marquee span { font-size: 44px; font-weight: 800; letter-spacing: -.035em; line-height: 1; }
.x-marquee .th { color: var(--accent); font-weight: 200; font-size: 46px; }
.x-marquee .mono { font-size: 12px; font-weight: 400; letter-spacing: .04em; text-transform: uppercase; color: #aaa29c; }
.x-marquee i { font-style: normal; color: var(--accent); font-size: 30px; }
@keyframes x-marq { to { transform: translateX(-50%); } }

/* ===== section heads (shared) ===== */
.x-dossier-head, .x-out-head, .x-sv-head { display: grid; grid-template-columns: 2fr 7fr 3fr; gap: 24px; align-items: end; }
.x-dossier-head .mono, .x-out-head .mono, .x-sv-head .mono, .x-ix-head .mono, .x-manifesto .mono { align-self: start; padding-top: 14px; color: var(--x-mute); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.home-page .x-dossier h2, .home-page .x-out h2, .home-page .x-services h2, .home-page .x-index h2, .home-page .x-red h2 {
  max-width: none; font-size: clamp(38px, 4.6vw, 74px); line-height: .94; letter-spacing: -.035em; font-weight: 800; text-wrap: balance;
}

/* ===== DOSSIER ===== */
.x-dossier { padding: 130px 0 70px; }
.x-dossier-head { padding-bottom: 28px; border-bottom: 2px solid var(--ink); }
.x-dossier-head .x-hand { font-size: 20px; transform: rotate(-4deg); justify-self: end; }
.x-clause { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; padding: 76px 0; border-bottom: 1px dashed var(--x-line-strong); position: relative; }
.x-clause:nth-of-type(even) .x-clause-img { order: 2; }
.x-num { position: absolute; top: 34px; font-size: 200px; font-weight: 900; line-height: .8; color: transparent; -webkit-text-stroke: 1.4px var(--accent); opacity: .5; pointer-events: none; }
.x-clause:nth-of-type(odd) .x-num { right: 0; }
.x-clause:nth-of-type(even) .x-num { left: 0; }
.x-clause-txt { position: relative; z-index: 1; }
.x-art { font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--x-mute); }
.x-art b { color: var(--accent); font-weight: 400; }
.home-page .x-clause h3 { font-size: clamp(30px, 3vw, 46px); line-height: 1; letter-spacing: -.035em; font-weight: 800; margin: 16px 0; max-width: 16ch; }
.x-clause h3 .th { color: var(--accent); }
.x-clause-txt > p:not(.x-art) { font-size: 17px; line-height: 1.55; color: var(--ink-soft); max-width: 40ch; }
.x-term { margin-top: 28px; display: flex; align-items: center; gap: 16px; }
.x-term strong { position: relative; font-size: 64px; font-weight: 600; letter-spacing: -.045em; line-height: 1; white-space: nowrap; }
.x-term strong svg { position: absolute; left: -14px; top: -12px; width: calc(100% + 28px); height: calc(100% + 24px); overflow: visible; pointer-events: none; }
.x-term strong path { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; }
.x-term .mono { font-size: 11px; line-height: 1.45; text-transform: uppercase; color: var(--x-mute); max-width: 18ch; }
.x-term a { margin-left: auto; font-size: 15px; font-weight: 600; border-bottom: 1px solid var(--ink); padding-bottom: 2px; white-space: nowrap; transition: color .2s, border-color .2s; }
.x-term a::after { content: " →"; }
.x-term a:hover { color: var(--accent); border-color: var(--accent); }
.x-clause-img { position: relative; height: 480px; }
.x-clause-img .x-main { --rot: -1.6deg; position: absolute; inset: 0 60px 30px 0; transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) rotate(var(--rot)); transition: transform .6s var(--ease); }
.x-clause:nth-of-type(even) .x-clause-img .x-main { --rot: 1.4deg; inset: 0 0 30px 60px; }
.x-clause:hover .x-clause-img .x-main { --rot: 0deg; }
.x-main.is-tilting, .x-sv figure.is-tilting, .x-team.is-tilting { transition: transform .14s linear; }
.x-clause-img .x-main .x-tape { top: -12px; left: 40%; transform: rotate(3deg); }
.x-eng { position: absolute; right: -10px; bottom: -20px; width: 190px; height: 230px; background: url("img/bruges-belfry-engraving-v2.webp") center / contain no-repeat; mix-blend-mode: multiply; opacity: .75; z-index: 2; transform: rotate(4deg); pointer-events: none; }
.x-clause:nth-of-type(even) .x-eng { left: -20px; right: auto; background-image: url("img/tournai-cathedral-engraving-v2.webp"); transform: rotate(-4deg); }
.x-clause .x-eng-gp { background-image: url("img/grand-place-engraving-v2.webp"); }
.x-side-note { position: absolute; z-index: 4; bottom: -8px; left: 20px; font-family: var(--x-hand); color: var(--accent); font-size: 20px; transform: rotate(-3deg); background: var(--x-bg); padding: 2px 8px; }
.x-sign { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 34px; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--x-mute); }
.x-sign i { flex: 1; border-bottom: 1px dashed var(--x-line-strong); }
.x-signature { font-family: var(--x-hand); text-transform: none; letter-spacing: 0; font-size: 26px; color: var(--ink); transform: rotate(-4deg); }

/* ===== OUTSOURCING ===== */
.x-out { padding: 60px 0 120px; }
.x-out-head { padding-bottom: 44px; }
.x-out-head > p:last-child { font-size: 16px; line-height: 1.55; color: var(--ink-soft); }
.x-out-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--ink); }
.x-out-grid li { position: relative; padding: 28px 24px 34px; border-right: 1px solid var(--x-line); }
.x-out-grid li:last-child { border-right: 0; }
.x-out-n { display: block; font-size: 72px; font-weight: 200; letter-spacing: -.04em; line-height: .9; color: var(--accent); transition: font-weight .35s var(--ease); }
.x-out-grid li:hover .x-out-n { font-weight: 900; }
.x-out-grid .mono { display: block; margin: 14px 0 10px; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--x-mute); }
.home-page .x-out-grid h3 { font-size: 22px; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.x-out-grid p { margin-top: 10px; font-size: 15px; line-height: 1.5; color: var(--ink-soft); }

/* ===== RED ===== */
.x-red { background: var(--accent); color: #fff; position: relative; overflow: hidden; }
.x-red-grid { display: grid; grid-template-columns: 6fr 5fr; gap: 40px; width: min(100%, var(--x-max)); margin: 0 auto; padding: 124px var(--gutter) 116px; position: relative; }
.x-red-word { position: absolute; left: -10px; bottom: -40px; font-size: clamp(110px, 16vw, 230px); font-weight: 900; letter-spacing: -.05em; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .28); white-space: nowrap; pointer-events: none; }
.x-red-copy { position: relative; z-index: 1; }
.x-red-copy .mono { font-size: 12px; opacity: .8; }
.home-page .x-red h2 { color: #fff; margin: 22px 0 30px; font-size: clamp(44px, 5.8vw, 96px); }
.x-red-copy > p:not(.mono) { font-size: 19px; line-height: 1.55; max-width: 44ch; opacity: .95; }
.home-page .x-btn-light { margin-top: 34px; background: #fff; color: var(--accent); }
.home-page .x-btn-light:hover { background: var(--ink); color: #fff; }
.x-red-col { position: relative; min-height: 560px; }
.x-team { --rot: 2deg; position: absolute; inset: 0 0 60px 20px; transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) rotate(var(--rot)); transition: transform .6s var(--ease); background: #fff; padding: 12px 12px 44px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45); }
.x-team .x-duo { width: 100%; height: 100%; }
.x-team figcaption { position: absolute; left: 16px; bottom: 10px; font-family: var(--x-hand); color: var(--ink); font-size: 18px; }
.x-team .x-tape { top: -12px; right: 40px; transform: rotate(-5deg); }
.x-mini { position: absolute; left: -54px; top: 60px; width: 200px; height: 170px; transform: rotate(-6deg); z-index: 3; }
.x-approve { position: absolute; z-index: 5; right: 26px; top: 44px; border: 3px solid var(--ink); color: var(--ink); background: rgba(255, 255, 255, .55); mix-blend-mode: multiply; font-family: var(--font-mono); font-size: 13px; font-weight: 600; letter-spacing: .12em; padding: 8px 14px; transform: rotate(9deg); text-transform: uppercase; }

/* ===== SERVICES ===== */
.x-services { padding: 136px 0 40px; }
.x-sv-head { padding-bottom: 40px; }
.x-sv-head h2 .th, .x-out-head h2 .th { color: var(--accent); }
.x-sv-head > p:last-child { font-size: 16px; line-height: 1.55; color: var(--ink-soft); }
.x-sv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 40px; row-gap: 80px; align-items: start; padding-top: 44px; }
.x-sv { position: relative; min-width: 0; }
.x-sv:nth-child(3n+2) { margin-top: 90px; }
.x-sv:nth-child(3n) { margin-top: 30px; }
.x-sv figure { position: relative; aspect-ratio: 4 / 4.2; overflow: hidden; margin: 0 0 20px; }
.x-sv figure.x-shot { overflow: visible; }
.x-sv figure.x-shot img { height: 100%; }
.x-sv figure { --rot: -1.2deg; transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) rotate(var(--rot)); transition: transform .6s var(--ease); }
.x-sv:nth-child(even) figure { --rot: 1.3deg; }
.x-sv figure img { transition: transform .6s var(--ease); }
.x-sv:hover figure img { transform: scale(1.04); }
.x-sv-n { position: absolute; z-index: 3; top: -42px; left: -4px; font-size: 64px; font-weight: 900; letter-spacing: -.04em; line-height: 1; color: var(--accent); }
.x-sv-note { position: absolute; z-index: 4; right: -6px; top: 24px; font-size: 19px; transform: rotate(-8deg); background: var(--x-bg); padding: 2px 8px; }
.x-sv > .mono { font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--x-mute); }
.home-page .x-sv h3 { margin: 8px 0 0; font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.x-sv > p:not(.mono) { margin-top: 8px; font-size: 15px; line-height: 1.5; color: var(--ink-soft); }
.x-sv ul { list-style: none; margin: 16px 0 0; padding: 0; }
.x-sv li { position: relative; padding: 8px 0 8px 20px; border-top: 1px solid var(--x-line); font-size: 14px; line-height: 1.4; }
.x-sv li::before { content: "→"; position: absolute; left: 0; color: var(--accent); }

/* manifesto */
.x-manifesto { display: grid; grid-template-columns: 7fr 5fr; gap: 64px; padding-top: 140px !important; padding-bottom: 130px !important; align-items: start; }
.home-page .x-manifesto h2 { max-width: 16ch; font-size: clamp(38px, 4.4vw, 70px); line-height: .95; letter-spacing: -.035em; font-weight: 800; margin-top: 18px; }
.x-manifesto-detail { padding-top: 38px; }
.x-manifesto-detail > p:first-child { font-size: 17px; line-height: 1.6; color: var(--ink-soft); }
.x-night { position: relative; margin: 30px 0 22px; padding-left: 18px; border-left: 3px solid var(--accent); font-size: 22px; line-height: 1.3; font-weight: 600; letter-spacing: -.015em; }
.home-page .x-conf { font-size: 11px; letter-spacing: .04em; color: var(--x-mute); margin-bottom: 26px; }

/* ===== INDEX ===== */
.x-index { padding: 40px 0 140px; }
.x-ix-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; border-bottom: 2px solid var(--ink); padding-bottom: 20px; }
.home-page .x-ix-head h2 { font-size: clamp(34px, 3.6vw, 56px); margin-top: 10px; }
.x-ix-head .x-hand { font-size: 22px; transform: rotate(-5deg); padding-bottom: 8px; }
.x-ix-cols { display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; grid-auto-flow: column; grid-template-rows: repeat(6, auto); }
.x-ix { position: relative; display: flex; align-items: baseline; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--x-line); font-size: 19px; letter-spacing: -.01em; transition: color .2s; }
.x-ix-no { width: 26px; font-size: 10.5px; color: var(--x-mute); }
.x-lead { flex: 1; min-width: 20px; border-bottom: 1px dotted var(--x-line-strong); transform: translateY(-5px); }
.x-dur { font-size: 18px; font-weight: 300; white-space: nowrap; }
.x-ix:hover { color: var(--accent); }
.x-ix::after { content: ""; position: absolute; left: 38px; right: 90px; bottom: 10px; height: 8px; background: var(--accent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 8' preserveAspectRatio='none'%3E%3Cpath d='M2 5 C40 1 80 7 120 3 S180 6 198 2' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 8' preserveAspectRatio='none'%3E%3Cpath d='M2 5 C40 1 80 7 120 3 S180 6 198 2' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat; transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); pointer-events: none; }
.x-ix:hover::after, .x-ix:focus-visible::after { transform: scaleX(1); }

/* ===== tablet ===== */
@media (max-width: 1180px) {
  .x-polaroid { display: none; }
  .x-note-globe { left: auto; right: var(--gutter); }
  .x-sv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .x-sv:nth-child(n) { margin-top: 0; }
  .x-sv:nth-child(even) { margin-top: 70px; }
  .x-out-grid { grid-template-columns: repeat(2, 1fr); }
  .x-out-grid li:nth-child(2) { border-right: 0; }

  .x-out-grid li:nth-child(n+3) { border-top: 1px solid var(--x-line); }
}

/* ===== mobile ===== */
@media (max-width: 900px) {
  .home-page .x-hero { height: auto; min-height: 0; padding: calc(var(--header-h) + 8px) 0 0; display: flex; flex-direction: column; }
  .x-hero-title { position: static; order: 1; grid-template-columns: minmax(0, 1fr); padding: 20px var(--gutter) 0; gap: 20px; }
  .home-page .x-hero h1 { font-size: clamp(38px, 10.4vw, 56px); }
  .home-page .x-hero .hero-motion { position: relative; inset: auto; order: 2; height: min(96vw, 440px); margin-top: 24px; }
  .x-ring, .x-note-globe, .x-c-bl { display: none; }
  .x-stamp { left: auto; right: 12px; top: auto; bottom: 150px; width: 96px; height: 96px; }
  .x-stamp b { font-size: 30px; }
  .x-stats { order: 3; display: grid; grid-template-columns: 1fr 1fr; margin: 12px var(--gutter) 0; border-top: 1px solid var(--ink); }
  .x-stats .x-corner { position: static; text-align: left; padding: 14px 0; }
  .x-c-tl strong { font-size: 46px; }
  .x-corner strong { font-size: 30px; }
  .x-marquee span { font-size: 30px; } .x-marquee .th { font-size: 32px; }
  .x-dossier-head, .x-out-head, .x-sv-head { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .x-dossier-head .x-hand { justify-self: start; }
  .x-dossier { padding: 88px 0 40px; }
  .x-clause { grid-template-columns: minmax(0, 1fr); gap: 36px; padding: 56px 0; }
  .x-clause:nth-of-type(even) .x-clause-img { order: 0; }
  .x-num { font-size: 120px; top: 20px; }
  .x-clause-img { height: 300px; order: -1; }
  .x-clause-img .x-main, .x-clause:nth-of-type(even) .x-clause-img .x-main { inset: 0 24px 20px 0; }
  .x-eng { width: 110px; height: 140px; }
  .x-term { flex-wrap: wrap; } .x-term strong { font-size: 48px; } .x-term a { margin-left: 0; width: 100%; }
  .x-sign { flex-wrap: wrap; } .x-sign i { display: none; }
  .x-out { padding: 40px 0 80px; }
  .x-out-grid { grid-template-columns: minmax(0, 1fr); }
  .x-out-grid li { padding: 24px 16px; border-right: 0; border-top: 1px solid var(--x-line); }
  .x-red-grid { grid-template-columns: minmax(0, 1fr); padding: 76px var(--gutter) 84px; }
  .x-red-col { min-height: 420px; }
  .x-mini { left: -8px; width: 140px; height: 120px; }
  .x-services { padding: 88px 0 20px; }
  .x-sv-grid { display: flex; overflow-x: auto; gap: 22px; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); margin: 0 calc(-1 * var(--gutter)); padding: 48px var(--gutter) 24px; }
  .x-sv { flex: 0 0 82%; scroll-snap-align: start; margin-top: 0 !important; }
  .x-manifesto { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-top: 80px !important; padding-bottom: 80px !important; }
  .x-manifesto-detail { padding-top: 0; }
  .x-index { padding-bottom: 90px; }
  .x-ix-head { flex-wrap: wrap; }
  .x-ix-cols { grid-template-columns: minmax(0, 1fr); grid-auto-flow: row; grid-template-rows: none; }
  .x-ix { font-size: 17px; }
}
@media (min-width: 901px) { .x-stats { display: contents; } }

@media (prefers-reduced-motion: reduce) {
  .x-draw path { stroke-dashoffset: 0 !important; animation: none !important; }
  .x-marquee-track, .x-stamp svg { animation: none; }
}

/* ===== interactions (home-fx.js) ===== */
.home-page .x-index { position: relative; }
.home-page .x-index > .x-wrap { position: relative; z-index: 1; }
.x-fx-dots, .x-fx-ripples { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.x-red-grid { z-index: 1; }
.x-ix { background: transparent; }

/* outsourcing cards: framed + bracketed number on hover */
.x-out-grid li { transition: background-color .3s var(--ease), box-shadow .3s var(--ease); }
.x-out-grid li:hover, .x-out-grid li:focus-within { background: #fff; box-shadow: inset 0 0 0 1px var(--accent); }
.x-out-n::before, .x-out-n::after { display: inline-block; font-weight: 200; opacity: 0; transition: opacity .3s var(--ease), transform .3s var(--ease); }
.x-out-n::before { content: "["; margin-right: 6px; transform: translateX(8px); }
.x-out-n::after { content: "]"; margin-left: 6px; transform: translateX(-8px); }
.x-out-grid li:hover .x-out-n::before, .x-out-grid li:hover .x-out-n::after { opacity: 1; transform: none; }

/* process rail fills on scroll */
.home-page .process-rail.is-live { background: var(--x-line-strong); }
.home-page .process-rail.is-live::after { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 3px; background: var(--accent); transform-origin: left; transform: scaleX(var(--p, 0)); }
.home-page .process-rail.is-live i { z-index: 1; border-color: var(--x-line-strong); transition: border-color .3s, background-color .3s, transform .3s var(--ease); }
.home-page .process-rail.is-live i.is-on { border-color: var(--accent); background: var(--accent); transform: scale(1.25); }
.home-page .process-grid .process-step { border-top-color: var(--x-line); transition: border-top-color .4s var(--ease); }
.home-page .process-grid .process-step.is-reached, .home-page .process-grid .process-step:hover { border-top-color: var(--accent); }

/* notes slider */
.x-notes-nav { display: flex; gap: 8px; }
.x-notes-nav[hidden] { display: none; }
.x-notes-nav button { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--ink); background: transparent; color: var(--ink); font-size: 18px; cursor: pointer; transition: background-color .2s, color .2s, opacity .2s; }
.x-notes-nav button:hover:not(:disabled) { background: var(--accent); border-color: var(--accent); color: #fff; }
.x-notes-nav button:disabled { opacity: .3; cursor: default; }
@media (max-width: 1180px) {
  .home-page .notes .notes-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 22px; background: none; }
  .home-page .notes .notes-grid::-webkit-scrollbar { display: none; }
  .home-page .notes .note-card { flex: 0 0 min(78%, 380px); scroll-snap-align: start; }
}
@media (prefers-reduced-motion: reduce) {
  .x-fx-dots, .x-fx-ripples { display: none; }
}

/* ===== owl eye easter egg (password vault) ===== */
.home-page .footer-top { --owl-h: 166px; --owl-b: -42px; --eye: 30px; }
.owl-eye {
  position: absolute; z-index: 2; width: var(--eye); height: var(--eye); padding: 0; border: 0; border-radius: 50%;
  background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent;
  right: calc(var(--owl-h) * 363 / 520 * (1 - .566) - var(--eye) / 2);
  bottom: calc(var(--owl-b) + var(--owl-h) * (1 - .282) - var(--eye) / 2);
}
.owl-eye:focus { outline: none; }
.owl-vault { width: min(92vw, 420px); padding: 34px 30px 30px; border: 0; background: #fff; color: var(--ink); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5); }
.owl-vault::backdrop { background: rgba(13, 13, 13, .55); backdrop-filter: blur(3px); }
.owl-vault-close { position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; border: 0; background: none; font-size: 26px; cursor: pointer; color: var(--ink); }
.owl-vault-close:hover { color: var(--accent); }
.owl-vault-label { font-size: 11px; letter-spacing: .04em; color: var(--x-mute); }
.owl-vault h2 { margin: 10px 0 20px; font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.owl-vault-form { display: grid; gap: 14px; }
.owl-vault-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
.owl-vault-form input { height: 46px; padding: 0 14px; border: 1px solid var(--x-line-strong); font: 500 16px var(--font-sans); }
.owl-vault-form input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.owl-vault-form.is-shaking { animation: owl-shake .35s; }
@keyframes owl-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.owl-vault-error { color: var(--accent); font-size: 14px; font-weight: 600; }
.owl-vault-result { text-align: center; }
.owl-vault-result img { width: 100%; max-width: 320px; height: auto; image-rendering: pixelated; background: #fff; }
.owl-vault-result p { margin-top: 12px; font-size: 14px; color: var(--ink-soft); }
@media (max-width: 900px) {
  .home-page .footer-top { --owl-h: 104px; --owl-b: -18px; --eye: 24px; }
}
@media (prefers-reduced-motion: reduce) { .owl-vault-form.is-shaking { animation: none; } }
