/* Impossible Labs site. White, near-black, one orange. Outfit, self-hosted. Shared by every page. */
@font-face { font-family: "Outfit"; src: url("/assets/fonts/outfit-latin-wght-normal.woff2") format("woff2-variations"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #ffffff;
  --ink: #141414;
  --ink-2: #1f2420;
  --muted: #6b6b6b;
  --tray: #f6f6f6;
  --tray-2: #efefef;
  --line: #e6e6e6;
  --orange: #fb510e;
  --orange-deep: #c93f08;
  --r-xl: 28px;
  --r-lg: 22px;
  --r-md: 16px;
  --f: "Outfit", system-ui, sans-serif;
  --w: 1248px;
  --lift: 0 1px 2px rgb(0 0 0 / .05), 0 0 0 1px rgb(0 0 0 / .045), 0 8px 24px -12px rgb(0 0 0 / .12);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.6 var(--f); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 500; letter-spacing: -.02em; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(100% - 2.5rem, var(--w)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 20; border-radius: 999px; }
.skip:focus { left: 1rem; top: 1rem; }
.show-sm { display: none; }

/* ---------- buttons ---------- */
.pill { display: inline-flex; align-items: center; gap: .75rem; background: var(--ink); color: #fff; text-decoration: none; font: 500 .9rem/1 var(--f); letter-spacing: .01em; padding: .3rem .3rem .3rem 1.25rem; border-radius: 999px; border: 0; cursor: pointer; transition: background .2s; }
.pill .arr { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: #fff; color: var(--ink); transition: transform .2s, background .2s, color .2s; }
.pill .arr svg { width: 14px; height: 14px; }
.pill:hover .arr { background: var(--orange); color: #fff; transform: rotate(45deg); }
.pill-sm { font-size: .85rem; padding-left: 1rem; }
.pill-sm .arr { width: 1.85rem; height: 1.85rem; }
.pill:disabled { opacity: .6; cursor: default; }
.textlink { display: inline-flex; align-items: center; gap: .4rem; font-weight: 500; text-decoration: none; }
.textlink::after { content: ""; width: 7px; height: 7px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .2s; }
.textlink:hover { color: var(--orange-deep); }
.textlink:hover::after { transform: translateX(3px) rotate(45deg); }

/* ---------- header ---------- */
.top { position: sticky; top: 12px; z-index: 10; margin-top: 20px; }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: rgb(255 255 255 / .92); backdrop-filter: blur(10px); border-radius: var(--r-md); box-shadow: var(--lift); padding: .55rem .6rem .55rem 1.25rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 500; font-size: 1.1rem; text-decoration: none; letter-spacing: -.01em; }
.brand svg { width: 26px; height: 26px; }
.menu { display: flex; gap: 2rem; font-size: .95rem; color: #3d3d3d; }
.menu a { text-decoration: none; }
.menu a:hover { color: var(--ink); }
.top-right { display: flex; align-items: center; gap: .75rem; }
/* header products menu: opens on hover, or on click / Enter via .open */
.dd { position: relative; }
.dd-btn { display: inline-flex; align-items: center; gap: .3rem; font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.dd:hover .dd-btn, .dd.open .dd-btn { color: var(--ink); }
.dd-btn .chev { width: 12px; height: 12px; transition: transform .2s; }
.dd:hover .chev, .dd.open .chev { transform: rotate(180deg); }
.dd-menu { position: absolute; top: calc(100% + 20px); left: 50%; width: 290px; display: grid; gap: 2px; padding: 6px; background: #fff; border-radius: var(--r-md); box-shadow: var(--lift), 0 28px 56px -28px rgb(0 0 0 / .28); opacity: 0; visibility: hidden; transform: translate(-50%, -6px); transition: opacity .18s, transform .18s, visibility 0s .18s; }
.dd-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -22px; height: 22px; }
.dd:hover .dd-menu, .dd.open .dd-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .18s, transform .18s; }
.dd-item { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem .8rem; border-radius: 12px; color: var(--ink); }
.dd-name { display: inline-flex; align-items: center; font-weight: 500; font-size: 1rem; letter-spacing: -.01em; }
.dd-name::before { content: ""; width: 6px; height: 6px; margin-right: .6rem; border-radius: 50%; background: var(--orange); transform: scale(0); transition: transform .15s; }
.dd-kind { flex: none; font-size: .75rem; color: var(--muted); background: #fff; border-radius: 999px; padding: .2rem .65rem; box-shadow: 0 0 0 1px var(--line); }
.dd-item:hover, .dd-item:focus-visible { background: var(--tray); }
.dd-item:hover .dd-name::before, .dd-item:focus-visible .dd-name::before { transform: none; }
@media (prefers-reduced-motion: reduce) { .dd-menu, .dd-btn .chev, .dd-name::before { transition: none; } }
.lang { display: inline-flex; background: var(--tray); border-radius: 999px; padding: 3px; font-size: .8rem; font-weight: 500; }
.lang a { padding: .3rem .65rem; border-radius: 999px; text-decoration: none; color: var(--muted); }
.lang a[aria-current="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgb(0 0 0 / .08); }

/* ---------- hero ---------- */
.hero { text-align: center; padding-top: clamp(3rem, 7vw, 5.5rem); }
.hero h1 { font-size: clamp(3rem, 8.4vw, 6.4rem); line-height: 1; letter-spacing: -.04em; }
.hero .sub { margin: 1.25rem auto 2rem; max-width: 34rem; color: var(--muted); font-size: clamp(1.02rem, 1.5vw, 1.15rem); }

/* tile field: white tiles, one orange */
.field { position: relative; overflow: hidden; border-radius: var(--r-xl); background: #e9e9e9; }
.hero .field { margin-top: clamp(2.5rem, 5vw, 3.5rem); height: clamp(280px, 38vw, 520px); }
.tiles { position: absolute; left: 50%; top: 50%; width: 1500px; display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; transform: translate(-50%, -50%) perspective(1800px) rotateX(52deg) rotateZ(-38deg); }
.tiles i { aspect-ratio: 1; border-radius: 24%; background: linear-gradient(150deg, #ffffff 0%, #f4f4f4 55%, #ececec 100%); box-shadow: inset 0 1px 0 #fff, 0 8px 0 #d3d3d3, 0 16px 22px rgb(0 0 0 / .10); }
.tiles i.on { background: linear-gradient(150deg, #ff9a63 0%, #fb510e 55%, #e8480a 100%); box-shadow: inset 0 2px 8px rgb(255 255 255 / .45), 0 8px 0 #b33905, 0 22px 34px rgb(251 81 14 / .38); transform: translateZ(14px); }

/* honest facts strip in place of client logos */
.hfacts { display: grid; grid-template-columns: minmax(0, 15rem) 1fr; gap: 2rem; align-items: center; margin-top: 2.5rem; }
.hfacts p { color: var(--muted); font-size: 1rem; line-height: 1.5; }
.chips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.chips li { background: var(--tray); border-radius: var(--r-md); padding: 1rem 1.1rem; min-height: 84px; display: flex; flex-direction: column; justify-content: center; }
.chips b { font-weight: 500; font-size: 1.02rem; }
.chips span { color: var(--muted); font-size: .85rem; }

/* ---------- sections ---------- */
.section { padding-top: clamp(5rem, 10vw, 8.5rem); }
.shead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem 4rem; align-items: end; margin-bottom: clamp(2rem, 4vw, 3rem); }
.tag { display: inline-block; font-size: .8rem; font-weight: 500; font-style: italic; padding: .35rem .9rem; border-radius: 999px; background: var(--tray); border: 1px solid var(--line); margin-bottom: .9rem; }
.shead h2 { font-size: clamp(2rem, 3.6vw, 2.75rem); line-height: 1.05; max-width: 16ch; }
.shead p { color: var(--muted); font-size: 1.05rem; max-width: 34rem; justify-self: end; }
.shead p a { color: var(--ink); text-underline-offset: 3px; }

/* practice cards: grey tray, white card, line art */
.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { background: var(--tray); border-radius: var(--r-lg); padding: 8px; display: flex; flex-direction: column; }
.card-in { background: #fff; border-radius: var(--r-md); box-shadow: var(--lift); padding: 1.25rem 1.25rem 1.4rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.ico { width: 44px; height: 44px; border-radius: 12px; background: var(--tray); display: grid; place-items: center; margin-bottom: .6rem; color: #444; }
.ico svg { width: 22px; height: 22px; }
.card h3 { font-size: 1.25rem; }
.card p { color: var(--muted); font-size: .95rem; flex: 1; }
.card .textlink { margin-top: .5rem; font-size: .92rem; }
.card .art { height: 150px; margin: 0 -8px -8px; border-radius: 0 0 var(--r-lg) var(--r-lg); overflow: hidden; }
.card .art img { width: 100%; height: 100%; object-fit: cover; }
/* practice art drifts slowly: a micro animation, off for reduced motion */
.card .art img { animation: drift 18s ease-in-out infinite alternate; }
.cards3 .card:nth-child(2) .art img { animation-duration: 21s; animation-direction: alternate-reverse; }
.cards3 .card:nth-child(3) .art img { animation-duration: 24s; }
@keyframes drift { from { transform: scale(1.04) translate(-1.5%, 0); } to { transform: scale(1.12) translate(1.5%, -2%); } }
@media (prefers-reduced-motion: reduce) { .card .art img { animation: none; } }

/* how we work: accordion + contour */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.acc { background: var(--tray); border-radius: var(--r-lg); padding: 8px; display: grid; gap: 8px; align-content: start; }
.acc details { background: #fff; border-radius: var(--r-md); }
.acc details[open] { box-shadow: var(--lift); }
.acc summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; font-size: 1.15rem; font-weight: 500; }
.acc summary::-webkit-details-marker { display: none; }
.acc .n { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--tray); display: grid; place-items: center; font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.acc details[open] .n { background: var(--orange-deep); color: #fff; }
.acc details p { padding: 0 1.25rem 1.3rem calc(1.25rem + 40px + 1rem); color: var(--muted); font-size: .97rem; }
.visual { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 360px; background: #ffe7db; }
.visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* how we work: one contour variant per step; the new one fades in on top, the old one fades out behind it */
.visual-steps img { opacity: 0; transform: scale(1.05); transition: opacity .6s ease .6s, transform .9s cubic-bezier(.2, .7, .2, 1); }
.visual-steps img.on { opacity: 1; transform: none; z-index: 1; transition: opacity .6s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
@media (prefers-reduced-motion: reduce) { .visual-steps img, .visual-steps img.on { transition: none; transform: none; } }

/* products */
.cards2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.prod { background: var(--tray); border-radius: var(--r-lg); padding: 8px; text-decoration: none; display: flex; flex-direction: column; transition: background .2s; }
.prod:hover { background: var(--tray-2); }
.prod figure { margin: 0; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 16 / 9; background: #e9ecf0; }
.prod figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.prod:hover figure img { transform: scale(1.025); }
.prod .icon { background: #f1f1f1; }
.prod-body { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: 1.1rem .9rem .9rem; }
.prod h3 { font-size: 1.25rem; }
.prod p { color: var(--muted); font-size: .95rem; margin-top: .2rem; }
.prod .kind { flex: none; font-size: .78rem; font-weight: 500; background: #fff; border-radius: 999px; padding: .3rem .75rem; color: #444; box-shadow: 0 0 0 1px var(--line); }

/* firm: text + dark card */
.firm { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.firm-text { display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; padding-right: 2rem; }
.firm-text h2 { font-size: clamp(2rem, 3.6vw, 2.75rem); line-height: 1.05; max-width: 15ch; }
.firm-text p { color: var(--muted); font-size: 1.05rem; max-width: 32rem; margin-top: 1.25rem; }
.firm-text p a { color: var(--ink); text-underline-offset: 3px; }
.dark { background: var(--ink-2); color: #fff; border-radius: var(--r-xl); padding: 8px; }
.dark-in { background: rgb(255 255 255 / .04); border: 1px solid rgb(255 255 255 / .08); border-radius: var(--r-lg); padding: 1.5rem 1.5rem .5rem; }
.dark h3 { font-size: 1.05rem; color: #cfd2cf; font-weight: 400; }
.dark .big { font-size: clamp(1.8rem, 3vw, 2.3rem); font-weight: 500; letter-spacing: -.02em; margin: .35rem 0 1.25rem; }
.checks { list-style: none; margin: 0; padding: .75rem 1.5rem 1.25rem; display: grid; gap: .95rem; }
.checks li { display: grid; grid-template-columns: 1.5rem 1fr; gap: .5rem; color: #d8dbd8; font-size: .97rem; }
.checks li::before { content: ""; width: 12px; height: 7px; margin-top: .45rem; border-left: 2px solid var(--orange); border-bottom: 2px solid var(--orange); transform: rotate(-45deg); }
.checks b { color: #fff; font-weight: 500; }

/* faq */
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem 4rem; align-items: start; }
.faq h2 { font-size: clamp(2rem, 3.6vw, 2.75rem); line-height: 1.05; max-width: 14ch; }
.qa summary { justify-content: space-between; font-size: 1.05rem; }
.qa summary::after { content: "+"; flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid #555; display: grid; place-items: center; font-size: 1.05rem; line-height: 1; color: #555; }
.qa details[open] summary::after { content: "\2212"; }
.qa details p { padding: 0 1.25rem 1.25rem; }
.qa details p a { color: var(--ink); text-underline-offset: 3px; }

/* contact over tile field */
.contact .field { padding: clamp(1rem, 4vw, 3.5rem); }
.contact .tiles { width: 1700px; }
.contact-grid { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 16px; align-items: start; }
.panel { background: #fff; border-radius: var(--r-lg); box-shadow: 0 30px 60px -30px rgb(0 0 0 / .35), 0 0 0 1px rgb(0 0 0 / .04); padding: clamp(1.4rem, 3vw, 2rem); }
.panel h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.08; }
.panel .lead { color: var(--muted); margin-top: .9rem; }
.assure { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: .7rem; }
.assure li { display: grid; grid-template-columns: 1.5rem 1fr; gap: .4rem; font-size: .93rem; color: #3d3d3d; }
.assure li::before { content: ""; width: 12px; height: 7px; margin-top: .45rem; border-left: 2px solid var(--orange); border-bottom: 2px solid var(--orange); transform: rotate(-45deg); }
.assure a { color: var(--ink); text-underline-offset: 3px; }
.form { display: grid; gap: .95rem; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: .95rem; }
.field-l { display: grid; gap: .35rem; }
.field-l label { font-size: .88rem; font-weight: 500; }
.field-l .opt { color: var(--muted); font-weight: 400; }
.field-l input, .field-l textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--tray); border: 1px solid var(--line); border-radius: 12px; padding: .75rem .9rem; transition: border-color .2s, background .2s; }
.field-l textarea { resize: vertical; min-height: 7.5rem; }
.field-l input:focus, .field-l textarea:focus { background: #fff; border-color: var(--orange); outline: none; box-shadow: 0 0 0 3px rgb(251 81 14 / .18); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form .pill { justify-self: start; }
.cf-status { font-size: .92rem; min-height: 1.4em; }
.cf-status.is-ok { color: #1d7a3e; }
.cf-status.is-err { color: var(--orange-deep); }
.cf-status.is-pending { color: var(--muted); }
.cf-fallback { font-size: .88rem; color: var(--muted); }
.cf-fallback a { color: var(--ink); text-underline-offset: 3px; }

/* ---------- footer ---------- */
.foot { margin-top: clamp(5rem, 10vw, 8rem); margin-bottom: 20px; }
.foot-in { background: var(--tray); border-radius: var(--r-xl); padding: clamp(2rem, 4vw, 3rem); }
.foot-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
.foot-top p { color: var(--muted); margin-top: .75rem; max-width: 22rem; font-size: .95rem; }
.foot h2 { margin: 0 0 .8rem; line-height: 1.4; font-size: .8rem; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; font-size: .95rem; }
.foot ul a { text-decoration: none; }
.foot ul a:hover { color: var(--orange-deep); }
.foot-bot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; border-top: 1px solid var(--line); margin-top: 2.5rem; padding-top: 1.25rem; font-size: .85rem; color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .menu { display: none; }
  .hfacts { grid-template-columns: 1fr; gap: 1rem; }
  .chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards3 { grid-template-columns: 1fr; }
  .card .art { height: 120px; }
  .split, .firm, .faq, .contact-grid { grid-template-columns: 1fr; }
  .firm-text { padding-right: 0; }
  .visual { min-height: 0; aspect-ratio: 6 / 5; }
  .foot-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .shead { grid-template-columns: 1fr; gap: 1rem; }
  .shead p { justify-self: start; }
  .cards2 { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr; }
  .hide-sm { display: none; }
  .show-sm { display: inline; }
  .top-inner { padding-left: 1rem; }
  .prod-body { flex-direction: column-reverse; gap: .6rem; }
  .acc details p { padding-left: 1.25rem; }
}
@media (max-width: 420px) {
  .chips li { min-height: 0; padding: .85rem; }
  .chips b { font-size: .95rem; }
  .chips span { font-size: .78rem; }
  .foot-top { grid-template-columns: 1fr; }
  .top .brand span { display: none; }
}

/* rendered hero */
.hero-art { background: #f1f1f1; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.hero-canvas { display: block; width: 100%; height: 100%; cursor: crosshair; }

/* =====================================================================
   Inner pages: practice pages, product pages, legal pages
   ===================================================================== */
:root {
  /* aliases so older page sheets resolve to this palette */
  --heading: var(--ink); --text: #3d3d3d; --faint: #8a8a8a;
  --panel: var(--tray); --panel-2: var(--tray-2); --line-2: #d6d6d6;
  --bg-2: var(--tray); --r: var(--r-md);
  --teal: var(--orange); --cyan: var(--orange); --indigo: var(--ink); --rose: var(--orange-deep);
  --font-mono: var(--f); --font-body: var(--f);
}
.soft { color: #9b9b9b; }
.muted { color: var(--muted); font-weight: 400; }
sup a { color: var(--orange-deep); text-decoration: none; font-size: .75em; margin-left: 1px; }
.ghost { display: inline-flex; align-items: center; gap: .5rem; font: 500 .9rem/1 var(--f); color: var(--ink); text-decoration: none; padding: .95rem 1.35rem; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--line); transition: box-shadow .2s, background .2s; }
.ghost:hover { background: var(--tray); box-shadow: 0 0 0 1px #cfcfcf; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

/* page hero */
.phero { text-align: center; padding-top: clamp(3rem, 7vw, 5.5rem); }
.phero > .wrap, .phero-in { display: flex; flex-direction: column; align-items: center; }
.phero h1, .phero .hero-title { font-size: clamp(2.4rem, 5.6vw, 4.4rem); line-height: 1.02; letter-spacing: -.035em; max-width: 18ch; }
.phero .hero-sub { margin: 1.25rem auto 2rem; max-width: 40rem; color: var(--muted); font-size: clamp(1.02rem, 1.5vw, 1.15rem); }
.phero .hero-sub strong { color: var(--ink); font-weight: 500; }
.phero .hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.hero-meta { margin-top: 2.5rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; font-size: 0; color: transparent; }
.hero-meta b { font-size: .88rem; font-weight: 500; color: #3d3d3d; background: var(--tray); border-radius: 999px; padding: .45rem .9rem; }
.hero-stats { margin: clamp(2.5rem, 5vw, 3.5rem) 0 0; width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; text-align: left; }
.hero-stats > div { background: var(--tray); border-radius: var(--r-lg); padding: 1.4rem 1.4rem 1.5rem; }
.hero-stats dt { font-size: clamp(2rem, 3.6vw, 2.8rem); font-weight: 500; letter-spacing: -.03em; line-height: 1; }
.hero-stats dd { margin: .6rem 0 0; color: var(--muted); font-size: .93rem; }

/* section rhythm for inner pages */
.band, .how, .dpo, .build, .engagement, .about, .sources { padding-top: clamp(5rem, 10vw, 8.5rem); }
.about-inner { background: var(--tray); border-radius: var(--r-xl); padding: clamp(1.75rem, 4vw, 3rem); }
.about-inner .shead { margin-bottom: 1.5rem; }
.about-body { color: #3d3d3d; font-size: 1.05rem; max-width: 46rem; }
.about-body + .about-body { margin-top: 1rem; }
.about-cta { margin-top: 1.75rem; }

/* tray + white cards (shared by several blocks) */
.cards-3, .law-grid, .svc-grid, .eng-cards { display: grid; gap: 8px; background: var(--tray); border-radius: var(--r-lg); padding: 8px; }
.cards-3, .law-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.svc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.eng-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.info-card, .law-card, .svc, .eng-card { background: #fff; border-radius: var(--r-md); box-shadow: var(--lift); padding: 1.4rem 1.4rem 1.5rem; }
.info-card .ic-fig { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 500; letter-spacing: -.03em; line-height: 1.1; }
.info-card .ic-body, .law-card p, .svc p, .eng-card p { color: var(--muted); font-size: .95rem; margin-top: .6rem; }
.info-card strong, .law-card strong, .svc strong { color: var(--ink); font-weight: 500; }
.law-card h3, .svc h3, .eng-card h3 { font-size: 1.2rem; margin-top: .35rem; }
.lc-tag, .eng-tag, .fit-h { font-size: .8rem; font-weight: 500; font-style: italic; color: var(--muted); }
.svc-no { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--tray); font-size: .85rem; color: var(--muted); margin-bottom: .9rem; font-variant-numeric: tabular-nums; }
.svc-cta { background: var(--ink-2); color: #fff; box-shadow: none; display: flex; flex-direction: column; gap: .2rem; }
.svc-cta h3 { margin-top: 0; }
.svc-cta p { color: #cfd2cf; flex: 1; margin-bottom: 1rem; }
.svc-cta .pill { align-self: flex-start; background: #fff; color: var(--ink); }
.svc-cta .pill .arr { background: var(--ink); color: #fff; }

/* market bar */
.marketbar { margin: 0 0 16px; background: var(--tray); border-radius: var(--r-lg); padding: 1.4rem 1.4rem 1.2rem; }
.mb-cap { display: flex; justify-content: space-between; gap: 1rem; font-size: .95rem; font-weight: 500; }
.mb-year { color: var(--muted); font-weight: 400; }
.mb-track { display: flex; height: 56px; margin-top: 1rem; border-radius: 14px; overflow: hidden; gap: 4px; }
.mb-seg { display: flex; align-items: center; padding: 0 1rem; font-size: .85rem; font-weight: 500; white-space: nowrap; overflow: hidden; }
.seg-us { flex: 70; background: var(--ink-2); color: #fff; }
.seg-other { flex: 15; background: #d9d9d9; color: #3d3d3d; }
.seg-eu { flex: 15; background: var(--orange-deep); color: #fff; }
.mb-key { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: .9rem; font-size: .85rem; color: var(--muted); }
.mb-key i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: .45rem; vertical-align: -1px; }
.k-us { background: var(--ink-2); } .k-eu { background: var(--orange); }

/* ledger table */
.ledger { background: var(--tray); border-radius: var(--r-lg); padding: 8px; display: grid; gap: 8px; margin-bottom: 16px; }
.ledger-head, .ledger-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.ledger-head span { font-size: .8rem; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: .6rem 1.1rem .2rem; }
.ledger-row span { background: #fff; border-radius: var(--r-md); padding: 1.1rem 1.2rem; color: var(--muted); font-size: .95rem; box-shadow: var(--lift); }
.ledger-row b { color: var(--ink); font-weight: 500; }
.ledger-row .risk { box-shadow: inset 3px 0 0 #9b9b9b, var(--lift); }
.ledger-row .safe { box-shadow: inset 3px 0 0 var(--orange), var(--lift); }

/* case file */
.casefile { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.case { background: var(--tray); border-radius: var(--r-lg); padding: 1.5rem 1.5rem 1.6rem; }
.case-date { display: inline-block; font-size: .78rem; font-weight: 500; background: #fff; border-radius: 999px; padding: .3rem .75rem; box-shadow: 0 0 0 1px var(--line); color: #444; }
.case h3 { font-size: 1.25rem; margin-top: 1rem; }
.case p { color: var(--muted); font-size: .95rem; margin-top: .5rem; }

/* numbered steps */
.steps { list-style: none; margin: 0; padding: 8px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; background: var(--tray); border-radius: var(--r-lg); }
.step { background: #fff; border-radius: var(--r-md); box-shadow: var(--lift); padding: 1.25rem 1.25rem 1.4rem; display: flex; flex-direction: column; gap: .5rem; }
.step-no { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--orange-deep); color: #fff; font-size: .85rem; font-variant-numeric: tabular-nums; margin-bottom: .4rem; }
.step-h { font-size: 1.2rem; font-weight: 500; letter-spacing: -.02em; }
.step-p { color: var(--muted); font-size: .95rem; }
.step-tag { align-self: flex-start; font-size: .75rem; font-weight: 500; border-radius: 999px; padding: .25rem .65rem; }
.step-tag-eu { background: var(--ink-2); color: #fff; }
.step-tag-cr { background: var(--tray); color: #444; box-shadow: 0 0 0 1px var(--line); }

/* clean-room diagram */
.diagram { margin: 0 0 16px; background: var(--tray); border-radius: var(--r-xl); padding: 8px; }
.diag-zones { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; }
.zone { border-radius: var(--r-lg); padding: 1.4rem; display: flex; flex-direction: column; gap: 1rem; }
.zone-cr { background: #fff; box-shadow: var(--lift); }
.zone-eu { background: var(--ink-2); color: #fff; }
.zone-head { display: flex; align-items: center; gap: .6rem; }
.zone-dot { width: 10px; height: 10px; border-radius: 50%; background: #bdbdbd; }
.zone-eu .zone-dot { background: var(--orange); }
.zone-name { font-weight: 500; font-size: 1.1rem; }
.zone-tag { margin-left: auto; font-size: .75rem; font-weight: 500; border-radius: 999px; padding: .25rem .65rem; background: var(--tray); color: #444; }
.zone-eu .zone-tag { background: rgb(255 255 255 / .1); color: #e6e6e6; }
.zone-list { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: .85rem; border-radius: 999px; padding: .4rem .8rem; background: var(--tray); color: #3d3d3d; }
.zone-eu .chip { background: rgb(255 255 255 / .08); color: #f0f0f0; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .1); }
.zone-foot { font-size: .9rem; color: var(--muted); margin-top: auto; }
.zone-eu .zone-foot { color: #cfd2cf; }
.boundary { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; padding: 0 .9rem; }
.boundary-label { font-size: .75rem; font-weight: 500; color: var(--muted); writing-mode: vertical-rl; transform: rotate(180deg); letter-spacing: .06em; text-transform: uppercase; }
.flows { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; margin-top: 8px; }
.flow { background: #fff; border-radius: var(--r-lg); padding: 1.1rem 1.25rem 1.25rem; box-shadow: var(--lift); }
.flow-arrow { display: block; width: 100%; max-width: 300px; height: auto; }
.flow-cap { color: var(--muted); font-size: .93rem; margin-top: .5rem; }
.flow-name { font-weight: 500; color: var(--orange-deep); }
.flow-name.data { color: var(--ink); }
.diag-caption { font-size: .85rem; color: var(--muted); padding: .9rem .75rem .4rem; }
.how .steps { margin-top: 16px; }

/* DPO facts */
.dfacts { list-style: none; margin: 0; padding: 8px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; background: var(--tray); border-radius: var(--r-lg); }
.fact { display: grid; grid-template-columns: 40px 1fr; gap: 1rem; align-items: start; background: #fff; border-radius: var(--r-md); box-shadow: var(--lift); padding: 1.25rem; }
.fact-no { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--tray); font-size: .85rem; color: var(--muted); }
.fact p { color: var(--muted); }
.fact strong { color: var(--ink); font-weight: 500; }
.dpo-note { margin-top: 1rem; font-size: .9rem; color: var(--muted); }

/* what we build */
.build-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.build-intro { grid-column: 1 / -1; }
.build-intro .shead { margin-bottom: 0; }
.build-list { list-style: none; margin: 0; padding: 8px; display: grid; gap: 8px; background: var(--tray); border-radius: var(--r-lg); }
.build-list li { background: #fff; border-radius: var(--r-md); box-shadow: var(--lift); padding: 1.1rem 1.25rem; display: grid; gap: .2rem; }
.bl-h { font-weight: 500; font-size: 1.15rem; }
.bl-p { color: var(--muted); font-size: .95rem; }
.build-fit { background: var(--ink-2); color: #d8dbd8; border-radius: var(--r-lg); padding: 1.6rem; align-self: start; }
.build-fit .fit-h { color: #b5b9b5; margin-bottom: .6rem; }
.build-fit strong { color: #fff; font-weight: 500; }

/* engagement */
.eng-head .shead { margin-bottom: clamp(2rem, 4vw, 3rem); }

/* contact block on inner pages */
.cf-head { display: flex; align-items: center; gap: .45rem; font-size: .8rem; color: var(--muted); }
.panel .tag { margin-bottom: .9rem; }

/* sources */
.sources-h { font-size: .8rem; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.sources-list { margin: .9rem 0 0; padding-left: 1.2rem; display: grid; gap: .5rem; font-size: .88rem; color: var(--muted); max-width: 60rem; }
.sources-list a, .sources-note a { color: var(--ink); text-underline-offset: 3px; }
.sources-note { margin-top: 1rem; font-size: .88rem; color: var(--muted); }

/* legal pages */
.legal { padding-top: clamp(3rem, 7vw, 5.5rem); }
.legal-inner { max-width: 46rem; }
.legal .tag { margin-bottom: 1.1rem; }
.legal h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); line-height: 1.05; letter-spacing: -.03em; }
.legal .updated { display: inline-block; margin-top: 1rem; font-size: .85rem; color: var(--muted); background: var(--tray); border-radius: 999px; padding: .3rem .8rem; }
.legal h2 { font-size: 1.35rem; margin-top: 2.6rem; }
.legal h3 { font-size: 1.1rem; margin-top: 1.6rem; }
.legal p, .legal li { color: #4a4a4a; margin-top: .9rem; }
.legal ul, .legal ol { padding-left: 1.3rem; }
.legal li { margin-top: .45rem; }
.legal li::marker { color: var(--orange); }
.legal a { color: var(--ink); text-underline-offset: 3px; }
.legal strong { font-weight: 500; color: var(--ink); }
.legal table { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: .93rem; }
.legal th, .legal td { text-align: left; padding: .6rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { font-weight: 500; }
.legal .ghost { margin-top: 2.5rem; }

/* product pages (apps, model store) */
.app-hero, .lp-hero { padding-top: clamp(3rem, 7vw, 5.5rem); }
.app-id { display: flex; align-items: center; gap: 1.1rem; }
.app-id img { width: 72px; height: 72px; border-radius: 18px; flex: none; box-shadow: var(--lift); }
.app-id h1, .lp-hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.4rem); line-height: 1.02; letter-spacing: -.035em; }
.lp-hero h1 { max-width: 18ch; }
.app-lede, .lp-lede { color: var(--muted); font-size: clamp(1.05rem, 1.5vw, 1.2rem); max-width: 42rem; margin-top: 1.25rem; }
.app-lede a, .lp-lede a, .app-section a:not(.pill):not(.ghost), .lp-section a:not(.pill):not(.ghost) { color: var(--ink); text-underline-offset: 3px; }
.app-cta, .lp-cta { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 2rem; }
.app-note { font-size: .85rem; color: var(--muted); margin-top: 1rem; }
.shot { margin: clamp(2.5rem, 5vw, 3.5rem) 0 0; }
.shot img { display: block; width: 100%; height: auto; border-radius: var(--r-lg); box-shadow: 0 0 0 1px var(--line); }
.shot figcaption { font-size: .88rem; color: var(--muted); margin-top: .7rem; }
.shot figcaption strong { color: var(--ink); font-weight: 500; }
.app-section, .lp-section { padding-top: clamp(4.5rem, 9vw, 7rem); }
.app-section h2, .lp-section h2 { font-size: clamp(2rem, 3.6vw, 2.75rem); line-height: 1.05; max-width: 22ch; }
.app-section > .wrap > p, .lp-section p { color: var(--muted); font-size: 1.05rem; max-width: 44rem; margin-top: 1rem; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 8px; margin-top: 2rem; background: var(--tray); border-radius: var(--r-lg); padding: 8px; }
.feature { background: #fff; border-radius: var(--r-md); box-shadow: var(--lift); padding: 1.25rem 1.25rem 1.4rem; }
.feature h3 { font-size: 1.12rem; }
.feature p { color: var(--muted); font-size: .95rem; margin-top: .45rem; }
.facts { list-style: none; margin: 1.25rem 0 0; padding: 0; max-width: 44rem; display: grid; gap: .6rem; }
.facts li { position: relative; padding-left: 1.9rem; color: #4a4a4a; }
.facts li::before { content: ""; position: absolute; left: .1rem; top: .5rem; width: 12px; height: 7px; border-left: 2px solid var(--orange); border-bottom: 2px solid var(--orange); transform: rotate(-45deg); }

/* leads console (/mmorettoni) */
.admin-wrap { width: min(100% - 2.5rem, 760px); margin-inline: auto; padding: clamp(1.5rem, 5vw, 3rem) 0 4rem; }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: #fff; border-radius: var(--r-md); box-shadow: var(--lift); padding: .7rem .8rem .7rem 1.25rem; margin-bottom: 2rem; }
.admin-head .brand-name { font-weight: 500; font-size: 1.1rem; }
.admin-head .tag { margin: 0; }
.admin-card { max-width: 26rem; margin: 2rem auto; background: var(--tray); border-radius: var(--r-xl); padding: 8px; }
.admin-card > * { margin: 0; }
.admin-h { font-size: 1.6rem; padding: 1.1rem 1.1rem 0; }
.admin-card form { display: grid; gap: 1rem; background: #fff; border-radius: var(--r-lg); box-shadow: var(--lift); padding: 1.4rem; margin-top: 1rem; }
.admin-card .pill { justify-self: start; }
.admin-bar { display: flex; align-items: center; gap: .6rem; margin-bottom: 1.25rem; }
.admin-count { font-size: .9rem; color: var(--muted); }
.admin-bar-spacer { flex: 1; }
.admin-bar .ghost { padding: .65rem 1rem; font-size: .85rem; }
.leads-list { display: grid; gap: 8px; background: var(--tray); border-radius: var(--r-lg); padding: 8px; }
.leads-empty { color: var(--muted); font-size: .95rem; padding: 1rem; }
.leads-list .lead { background: #fff; border-radius: var(--r-md); box-shadow: var(--lift); padding: 1.1rem 1.25rem; }
.lead-top { display: flex; flex-wrap: wrap; gap: .3rem 1rem; align-items: baseline; justify-content: space-between; }
.lead-name { font-weight: 500; }
.lead-email { font-size: .88rem; }
.lead-co { font-size: .85rem; color: var(--muted); margin-top: .2rem; }
.lead-msg { margin-top: .7rem; color: #3d3d3d; font-size: .95rem; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.lead-meta { margin-top: .8rem; font-size: .78rem; color: var(--muted); }

@media (max-width: 1200px) { .menu { gap: 1.4rem; font-size: .9rem; } }
@media (max-width: 1000px) {
  .cards-3, .law-grid, .svc-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .build-grid, .flows, .dfacts { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .hero-stats, .casefile, .eng-cards, .ledger-head, .ledger-row { grid-template-columns: 1fr; }
  .ledger-head { display: none; }
  .steps { grid-template-columns: 1fr; }
  .diag-zones { grid-template-columns: 1fr; }
  .boundary { flex-direction: row; padding: .4rem 0; }
  .boundary-mark { transform: rotate(90deg); }
  .boundary-label { writing-mode: horizontal-tb; transform: none; }
  .mb-seg { padding: 0 .6rem; font-size: .75rem; }
  .seg-other .mb-lab, .seg-eu .mb-lab { display: none; }
}
