/* ==========================================================================
   Neta-lee Artzi portfolio
   Light, calm, structured. Slate ink and lines on white; Skyline orange as the one accent.
   Edit the tokens below to change colors and fonts across the whole site.
   ========================================================================== */
:root {
  --bg: #ffffff;
  --hero: #f4f6f9;
  --panel: #f8fafc;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --ink: #0f172b;
  --ink-2: #314158;
  --muted: #45556c;
  --faint: #56677f;
  --accent: #e8521a;      /* dots, focus rings */
  --accent-text: #c2410c; /* orange text: passes 4.5:1 contrast */
  --seal: #d33a2c;
  --frame: #ff5e1b;       /* frame around screenshots on case pages */
  --tint: #f8fafc;        /* tinted sections on case pages */
  --font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-cap: "Newsreader", Georgia, serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.skip { position: absolute; left: 12px; top: -48px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 20; text-decoration: none; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--hero); transition: background-color .2s ease, box-shadow .2s ease; }
.site-header.scrolled { background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); box-shadow: 0 1px 0 var(--line); }
.site-header.plain { background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { display: block; width: 26px; height: auto; }
.brand b { display: block; font-weight: 500; font-size: 14px; line-height: 1.2; }
.brand small { display: block; color: var(--faint); font-size: 12px; line-height: 1.2; }
.topnav { display: flex; gap: 28px; font-size: 14px; }
.topnav a { text-decoration: none; color: var(--muted); padding-block: 12px; }
.topnav a:hover, .topnav a[aria-current] { color: var(--ink); }

/* ---------- Home hero (grain only here) ---------- */
.hero { position: relative; background: linear-gradient(to bottom, var(--hero) 0%, var(--hero) 72%, var(--bg) 100%); }
.grain { position: absolute; inset: 0; pointer-events: none; background-size: 180px 180px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 60%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 60%, transparent 100%); }
.hero .wrap { position: relative; padding-block: 64px 156px; }

.nowrap { white-space: nowrap; }
.hero h1 { font-weight: 600; font-size: clamp(34px, 5.4vw, 60px); line-height: 1.05; letter-spacing: -.03em; }
.hero .sub { margin-top: 12px; color: var(--faint); font-size: 16px; }
.hero .intro { margin-top: 24px; color: var(--muted); max-width: 58ch; font-size: 17px; }

/* Tools: logos only, name on hover/focus */
.tools { margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 4px; padding: 0; list-style: none; }
.tools li { position: relative; }
.tools .ico { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: #fff; border: 1px dashed var(--line-strong); color: #94a3b8; font-size: 10px; font-weight: 600; transition: transform .2s ease; }
.tools .ico img { display: block; width: 28px; height: 28px; object-fit: contain; }
.tools .ico:has(img) { border: 0; background: none; }
.tools li:hover .ico { transform: translateY(-2px); }
.tools .tip { position: absolute; left: 50%; top: calc(100% + 8px); transform: translateX(-50%); background: var(--ink); color: #fff; font-size: 12px; line-height: 1; padding: 6px 8px; border-radius: 4px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s ease; z-index: 3; }
.tools li:hover .tip, .tools li:focus-within .tip { opacity: 1; }
.tools li[tabindex]:focus-visible { outline: none; }
.tools li[tabindex]:focus-visible .ico { outline: 2px solid var(--accent); outline-offset: 2px; }
.built { margin-top: 18px; font-size: 14px; color: var(--muted); }
.built .dotmark { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 10px; vertical-align: 1px; }
.built a { color: var(--ink); text-underline-offset: 3px; }
.hobbies-slot { margin-top: 36px; min-height: 58px; }

/* Hobbies animation (Neta-lee's own component) */
.hobbies { display: flex; flex-direction: row-reverse; justify-content: flex-end; align-items: center; gap: 6px; color: var(--ink); }
.hobbies .stage { width: 96px; flex: none; aspect-ratio: 5 / 3; }
.hobbies svg { width: 100%; height: 100%; display: block; overflow: visible; }
.hobbies .ink { fill: none; stroke: #16171b; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.hobbies .thin { stroke-width: 2.4; }
.hobbies .solid { fill: #16171b; stroke: none; }
.hobbies .red { fill: var(--seal); stroke: none; }
.hobbies .scene { opacity: 0; }
.hobbies .txt { display: grid; gap: 3px; width: 184px; flex: none; }
.hobbies .lead { margin: 0; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #6b6e76; }
.hobbies .cap { margin: 0; min-height: 1.3em; font: italic 400 18px/1.3 var(--font-cap); color: #16171b; transition: opacity .35s ease; }

/* ---------- Home: project rows ---------- */
.project { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(32px, 6vw, 96px); row-gap: 48px; align-items: start; padding-block: clamp(56px, 7vw, 96px); }
.project > .text { padding-top: 48px; }
.project + .project { border-top: 1px solid var(--line); }
.work .project:first-of-type { padding-top: clamp(24px, 4vw, 48px); }
.project:nth-of-type(even) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.project .text { order: 2; display: grid; gap: 20px; justify-items: start; min-width: 0; }
.project:nth-of-type(even) .text { order: 0; }
.visual-col { min-width: 0; }
.ptitle { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.plogo { height: 28px; min-width: 28px; padding: 0 8px; display: grid; place-items: center; border: 1px dashed var(--line-strong); border-radius: 6px; font-size: 11px; font-weight: 600; color: var(--faint); background: var(--panel); }
.plogo:has(img) { border: 0; padding: 0; background: none; }
.plogo img { height: 28px; width: auto; }
.ptitle h3 { font-size: 19px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.project .one { font-size: clamp(19px, 1.9vw, 24px); line-height: 1.45; color: var(--ink-2); letter-spacing: -.01em; max-width: 30ch; }
.btn { margin-top: 8px; display: inline-flex; align-items: center; gap: 10px; padding: 11px 20px; border: 1.5px solid var(--ink); color: var(--ink); font-weight: 500; font-size: 15px; text-decoration: none; transition: background .2s ease, color .2s ease; }
.project .btn::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.btn svg { transition: transform .2s ease; }
.project:hover .btn, .project:focus-within .btn { background: var(--ink); color: #fff; }
.project:hover .btn svg { transform: translateX(3px); }
.project:has(.btn:focus-visible) { outline: 2px solid var(--accent); outline-offset: 8px; }
.btn:focus-visible { outline: none; }

/* Visual: device frame + two floating details (top-left, bottom-right) */
.visual { position: relative; min-width: 0; padding: 28px 0; }
.device { position: relative; background: #111827; border-radius: 16px; padding: 12px; box-shadow: 0 30px 60px -20px rgba(15, 23, 43, .35); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.device .screen { aspect-ratio: 16 / 10; border-radius: 6px; background: #fff; overflow: hidden; }
.device .screen img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.float { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 16px 40px -12px rgba(15, 23, 43, .28); padding: 6px; overflow: hidden; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.float img { display: block; width: 100%; height: auto; border-radius: 6px; }
.float.f1 { top: 0; left: -6%; }
.float.f2 { bottom: 0; right: -5%; }
.visual .tile { display: block; width: 100%; height: auto; border-radius: 14px; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.project:hover .device, .project:hover .visual .tile { transform: translateY(-4px); }
.project:hover .float.f1 { transform: translate(-4px, -6px); }
.project:hover .float.f2 { transform: translate(4px, 4px); }
.sample { margin-top: 14px; font-size: 12px; color: var(--faint); }

/* A second, smaller project from the same company */
.also-card { grid-column: 1 / -1; order: 3; position: relative; z-index: 3; display: flex; align-items: center; gap: 24px; padding: 12px 24px 12px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); transition: border-color .2s ease, background .2s ease; }
.also-card img { width: 132px; height: 72px; object-fit: cover; object-position: left top; border-radius: 6px; border: 1px solid var(--line); flex: none; background: #fff; }
.also-card .ac-name { display: grid; gap: 2px; flex: none; }
.also-card small { font-size: 12px; color: var(--faint); }
.also-card b { font-size: 16px; font-weight: 600; }
.also-card .ac-line { flex: 1; min-width: 0; font-size: 14px; color: var(--muted); }
.also-card .ac-cta { flex: none; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; }
.also-card .ac-cta svg { transition: transform .2s ease; }
.also-card:hover { border-color: #94a3b8; background: #fff; }
.also-card:hover .ac-cta svg { transform: translateX(3px); }

/* ---------- Contact + footer (all pages) ---------- */
.contact { border-top: 1px solid var(--line); padding-block: 72px 40px; display: grid; gap: 16px; }
.contact { position: relative; }
.contact:has(.ink) { grid-template-columns: 220px minmax(0, 1fr); column-gap: 40px; align-items: center; }
.contact .ink { grid-column: 1; grid-row: 1; align-self: center; width: 290px; max-width: none; height: auto; pointer-events: none; position: relative; z-index: 0; }
.contact:has(.ink) > :not(.ink) { grid-column: 2; }
.ct-text { display: grid; gap: 16px; grid-row: 1; align-self: center; padding-top: 28px; position: relative; z-index: 1; }
.contact > :not(.ink) { position: relative; }
@media (max-width: 880px) { .contact .ink { display: none; } .contact:has(.ink) { grid-template-columns: 1fr; } .contact:has(.ink) > :not(.ink) { grid-column: 1; } }
.contact h2 { font-size: clamp(28px, 3.4vw, 36px); font-weight: 600; letter-spacing: -.02em; }
.contact p { color: var(--muted); font-size: 17px; }
.contact ul { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 10px 36px; font-size: 16px; }
.contact ul li { padding-block: 6px; }
.contact ul a { text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.contact ul a:hover { border-color: var(--ink); }
.site-footer .wrap { padding-block: 32px 24px; font-size: 13px; color: var(--faint); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); }
.site-footer a { color: var(--muted); }

/* ==========================================================================
   Case study pages: layout follows Neta-lee's Wix pages, with more air
   ========================================================================== */
.case main { overflow-x: clip; }
.light { font-weight: 400; letter-spacing: -.02em; }

/* Small section label with a line before it */
.eyebrow { display: flex; align-items: center; gap: 12px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.eyebrow::before { content: ""; width: 48px; height: 2px; background: var(--accent); flex: none; }

/* Hero */
.case-hero { padding-block: 32px clamp(64px, 8vw, 104px); }
.back { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); text-decoration: none; padding-block: 10px; }
.back:hover { color: var(--ink); }
.back svg { transform: rotate(180deg); }
.hero-grid { margin-top: 24px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
.hero-grid.art-left { grid-template-columns: 300px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); }
.hero-grid.art-right { grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(32px, 5vw, 72px); }
.hero-grid.side-box { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; gap: clamp(32px, 5vw, 72px); }
.hero-art { min-width: 0; }
.hero-art.robot { margin-left: calc(-1 * max(20px, (100vw - 1240px) / 2 + 20px)); }
.hero-art.robot img { display: block; width: 100%; max-width: 338px; height: auto; }
.hero-art.radar img { display: block; width: 100%; max-width: 280px; height: auto; margin-inline: auto; }
.case-hero h1 { font-weight: 400; font-size: clamp(38px, 5vw, 56px); line-height: 1.08; letter-spacing: -.03em; }
.case-hero .subtitle { margin-top: 12px; font-size: clamp(18px, 1.8vw, 20px); color: var(--muted); line-height: 1.45; max-width: 52ch; }
.case-hero .lede { margin-top: 28px; display: grid; gap: 14px; max-width: 64ch; color: var(--ink-2); font-size: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 28px 0 0; list-style: none; }
.chips li { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; line-height: 1; padding: 7px 10px; border: 1px solid var(--line); background: var(--panel); color: var(--ink-2); border-radius: 4px; }
.chips.top { margin: 0 0 20px; }
.overview { margin: 40px 0 0; display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.overview div { padding: 18px 22px; }
.overview div + div { border-left: 1px solid var(--line); }
.overview dt { font-size: 12.5px; color: var(--faint); }
.overview dd { margin: 4px 0 0; font-size: 15px; font-weight: 500; color: var(--ink); }
.hero-shot { margin-top: 48px; }
.hero-shot img { display: block; width: 100%; height: auto; }

/* Full-width image band (collage) */
.banner { display: block; width: 100%; height: auto; aspect-ratio: 1440 / 600; object-fit: cover; background: var(--panel); }

/* Sections */
.section { padding-block: clamp(88px, 10vw, 140px); }
.section.tint { background: var(--tint); }
.section + .section:not(.tint) { border-top: 1px solid var(--line); }
.section.tint + .section { border-top: 0; }
.section h2 { margin-top: 18px; font-weight: 400; font-size: clamp(28px, 3.2vw, 36px); line-height: 1.2; letter-spacing: -.02em; max-width: 30ch; }
.section .lead { margin-top: 18px; max-width: 66ch; color: var(--muted); font-size: 16px; }
.section .lead + .lead { margin-top: 10px; }
.stack.stack > * + * { margin-top: clamp(40px, 5vw, 64px); }
.stack.stack > .callouts { margin-top: 24px; }
.stack.stack > :has(> .subhead) + * { margin-top: 24px; }
.subsection { padding-top: clamp(72px, 8vw, 112px); }
.subhead { font-size: 20px; font-weight: 500; letter-spacing: -.01em; }

/* Challenge / Solution: tinted panel next to an image */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 72px); align-items: center; }
.panel { border-radius: 12px; padding: clamp(28px, 3vw, 40px); background: #fbf8f7; border: 1px solid #f1e9e6; }
.panel.mint { background: #f5fbfa; border-color: #e1f0ed; }
.panel h3 { font-size: 18px; font-weight: 600; line-height: 1.4; letter-spacing: -.01em; }
.panel h3 + p { margin-top: 14px; }
.panel p { color: var(--muted); font-size: 15px; }
.listlabel { margin-top: 24px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.dots { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.dots li { position: relative; padding-left: 18px; font-size: 15px; color: var(--ink-2); }
.dots li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: #d4483a; }
.dots.green li::before { background: #1f9d63; }
.dots.accent li::before { background: var(--accent); }
.split .media img { display: block; width: 100%; height: auto; }
.criteria { border: 1px solid var(--line); border-radius: 12px; padding: 22px 28px; }
.criteria p { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); font-weight: 500; }
.criteria ul { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 12px 32px; }
.criteria li { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--ink-2); }
.criteria svg { color: var(--faint); flex: none; }

/* Laptop frame drawn in CSS (for screenshots without a device) */
.laptop { width: 100%; max-width: 560px; margin-inline: auto; }
.laptop .lid { background: #151a23; border-radius: 16px 16px 4px 4px; padding: 3.2% 3.2% 4%; }
.laptop .lid img { display: block; width: 100%; height: auto; border-radius: 2px; }
.laptop .base { height: 14px; margin: 0 -7%; background: linear-gradient(#d7dbe1, #a9afb8); border-radius: 0 0 14px 14px; position: relative; }
.laptop .base::after { content: ""; position: absolute; left: 50%; top: 0; width: 18%; height: 5px; transform: translateX(-50%); background: #c3c8cf; border-radius: 0 0 6px 6px; }

/* Features (Oversee / Respond / Validate / Explore) */
.features { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px clamp(40px, 5vw, 72px); align-items: start; }
.feature { display: grid; gap: 22px; }
.feature .fimg { order: 2; }
.feature:nth-child(even) .fimg { order: 0; }
.feature .fimg img { display: block; width: 100%; height: auto; border-radius: 10px; }
.feature .ftext { display: grid; gap: 8px; }
.ftitle { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 500; }
.ico-sq { width: 28px; height: 28px; border-radius: 6px; background: var(--ink); color: #fff; display: grid; place-items: center; flex: none; }
.feature .fdesc { color: var(--ink-2); font-size: 15.5px; }
.feature .ftags { color: var(--faint); font-size: 14px; }

/* Levels (information architecture) */
.levels { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.levels li { border: 1px solid var(--line); border-radius: 12px; padding: 22px; display: grid; gap: 6px; align-content: start; background: #fff; }
.levels .lnum { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }
.levels .lnum span { width: 24px; height: 24px; border-radius: 5px; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 600; }
.levels .lname { font-size: 15px; color: var(--ink-2); }
.levels .lmeta { font-size: 13px; color: var(--faint); }
.diagram { max-width: 880px; margin-inline: auto; }
.diagram img { display: block; width: 100%; height: auto; }

/* Screens: orange frame like the Wix pages, then callouts */
.frame { background: var(--frame); padding: clamp(8px, 1.3vw, 18px); }
.frame img { display: block; width: 100%; height: auto; }
.shot img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); }
.callouts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 16px; }
.callouts li { border: 1px solid var(--line); border-radius: 12px; padding: 24px; background: #fff; display: grid; gap: 8px; align-content: start; }
.callouts h3 { font-size: 16px; font-weight: 600; }
.callouts p { font-size: 15px; color: var(--muted); }
.callouts ul { margin: 4px 0 0; padding-left: 18px; display: grid; gap: 4px; font-size: 14px; color: var(--muted); }
.note { margin-top: 14px; }
.fig.narrow { max-width: 760px; margin-inline: auto; }
.note { font-size: 13px; color: var(--faint); }
.more { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; font-size: 16px; text-decoration: none; border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; }
.more:hover { border-color: var(--ink); }
.muted { color: var(--muted); }

/* Each project gets its own accent: same type and layout, different color.
   Skyline and Building Onboarding keep the default orange. */
.p-skyline { --tint: #fbf8f6; }
.p-stealth { --accent: #3aa197; --accent-text: #0f766e; --frame: #84c4be; --tint: #f4faf9; }
.p-space-court { --accent: #d9653b; --accent-text: #b4471f; --frame: #d9653b; --tint: #fbf7f4; }

/* Generic cards */
.cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 28px; display: grid; gap: 10px; align-content: start; }
.tint .card { background: #fff; }
.card .num { font-size: 28px; font-weight: 400; color: var(--faint); line-height: 1.1; }
.card .tag { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); }
.card h3 { font-size: 16px; font-weight: 600; line-height: 1.4; }
.card p { font-size: 15px; color: var(--muted); }
.card .strong { color: var(--ink); font-weight: 500; }
.card ul { margin: 2px 0 0; padding-left: 18px; color: var(--muted); font-size: 14.5px; display: grid; gap: 5px; }
.card dl { margin: 4px 0 0; display: grid; gap: 14px; }
.card dt { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.card dd { margin: 4px 0 0; font-size: 15px; color: var(--ink-2); }
.card:has(> .foot) { display: flex; flex-direction: column; gap: 10px; }
.card:has(> .foot) > .foot { margin-top: auto; }
.card .foot { margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.card .stat, .stat { font-size: clamp(32px, 3.4vw, 42px); font-weight: 400; letter-spacing: -.02em; line-height: 1.1; color: var(--ink); }
.card .ico-sq { margin-bottom: 6px; }
.pct { justify-self: start; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 4px; background: var(--ink); color: #fff; }

/* Key insight */
.keybox { background: var(--ink); color: #fff; border-radius: 12px; padding: clamp(32px, 4vw, 48px); }
.keybox p:first-child { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #a9b4c4; }
.keybox p + p { margin-top: 12px; font-size: clamp(20px, 2.3vw, 26px); line-height: 1.35; max-width: 40ch; }

/* Key learnings box */
.learnings { border: 1px solid var(--line); border-radius: 12px; padding: clamp(28px, 3vw, 40px); background: #fff; }
.learnings h3 { font-size: 18px; font-weight: 600; }
.learnings ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 48px; }
.learnings li { display: grid; grid-template-columns: 20px 1fr; gap: 2px 10px; }
.learnings li svg { grid-row: span 2; color: #1f9d63; margin-top: 3px; }
.learnings b { font-weight: 600; font-size: 15px; }
.learnings span { font-size: 14.5px; color: var(--muted); }

/* Design decisions (Building Onboarding) */
.decision + .decision { margin-top: clamp(64px, 7vw, 96px); padding-top: clamp(64px, 7vw, 96px); border-top: 1px solid var(--line); }
.decision .dhead { display: flex; align-items: baseline; gap: 16px; }
.decision .dnum { font-size: 40px; font-weight: 400; color: var(--faint); line-height: 1; }
.decision h3 { font-size: 22px; font-weight: 500; letter-spacing: -.01em; }
.dbody { margin-top: 24px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; }
.dbody p { color: var(--ink-2); }
.dbody p + p { margin-top: 14px; }
.dbody b { font-weight: 600; color: var(--ink); }
.tradeoff { margin-top: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 20px 24px; }
.tradeoff p:first-child { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 500; color: var(--accent-text); }
.tradeoff p + p { margin-top: 8px; font-size: 15px; color: var(--ink-2); }
.decision .fig-grid, .decision .fig { margin-top: 40px; }

/* Figures */
.fig img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.fig.bare img { border: 0; border-radius: 12px; background: none; }
.fig figcaption { margin-top: 12px; font-size: 14px; color: var(--faint); max-width: 70ch; }
.fig-grid { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 24px; align-items: start; }

/* Before / after and lists */
.checklist { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; font-size: 15px; color: var(--ink-2); }
.checklist li::before { flex: none; width: 14px; font-weight: 600; }
.checklist.no li::before { content: "×"; color: var(--faint); }
.checklist.yes li::before { content: "✓"; color: var(--accent-text); }
.dashlist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; max-width: 72ch; }
.dashlist li { display: flex; gap: 12px; color: var(--ink-2); }
.dashlist li::before { content: "—"; color: var(--faint); flex: none; }

/* Previous / next with thumbnails */
.also-wrap { padding-top: clamp(72px, 8vw, 112px); }
.also-wrap .also-card { order: 0; }
.also-wrap + .prevnext { padding-top: 32px; }
.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-block: clamp(72px, 8vw, 112px) 0; }
.prevnext a { display: grid; gap: 14px; text-decoration: none; }
.prevnext img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top left; border-radius: 10px; border: 1px solid var(--line); transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.prevnext a:hover img { transform: translateY(-3px); }
.prevnext small { font-size: 13px; color: var(--faint); }
.prevnext b { display: block; font-size: 18px; font-weight: 500; letter-spacing: -.01em; }
.prevnext .next { text-align: right; }

/* Footer with contact (case pages) */
.case-footer .wrap { margin-top: clamp(88px, 10vw, 140px); padding-block: 28px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 16px 32px; flex-wrap: wrap; font-size: 14px; color: var(--faint); }
.case-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.case-footer a { color: var(--muted); text-decoration: none; padding-block: 8px; display: inline-block; }
.case-footer a:hover { color: var(--ink); }

/* 404 */
.notfound { padding-block: 120px; display: grid; gap: 16px; justify-items: start; }
.notfound h1 { font-size: clamp(32px, 4vw, 44px); font-weight: 600; letter-spacing: -.02em; }
.notfound p { color: var(--muted); }

/* ---------- Responsive ---------- */

/* ---------- Case pages: type and surfaces from the first version ---------- */
.case-hero .company { margin-top: 28px; font-size: 15px; color: var(--faint); }
.case-hero .company + h1 { margin-top: 6px; }
.case-hero h1 { font-weight: 600; font-size: clamp(36px, 5vw, 56px); line-height: 1.06; letter-spacing: -.03em; }
.case-hero .subtitle { color: var(--ink-2); }
.eyebrow { display: block; font-size: 14px; letter-spacing: 0; text-transform: none; font-weight: 500; color: var(--accent-text); }
.eyebrow::before { content: none; }
.section h2 { margin-top: 10px; font-weight: 600; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; letter-spacing: -.02em; max-width: 26ch; text-wrap: balance; }
.section, .section.tint { background: var(--bg); }
.section + .section, .section.tint + .section { border-top: 1px solid var(--line); }
.subhead { font-size: 20px; font-weight: 600; }
.chips li { text-transform: none; letter-spacing: 0; font-size: 13px; padding: 6px 10px; }
.card, .callouts li, .levels li, .learnings, .overview { background: var(--panel); }
.card ul { margin: 4px 0 0; padding-left: 18px; display: grid; gap: 6px; color: var(--muted); }
.split .media img { mix-blend-mode: multiply; }
.pairs { margin: 6px 0 0; display: grid; gap: 12px; }
.pairs dt { font-size: 13px; color: var(--faint); text-transform: none; letter-spacing: 0; }
.pairs dd { margin: 2px 0 0; color: var(--ink); }
.shown { margin-top: 14px; font-size: 13px; color: var(--faint); }
.steplabel { font-size: 14px; font-weight: 500; color: var(--accent-text); }
.step .subhead { margin-top: 6px; }
.step .lead { margin-top: 10px; max-width: 66ch; color: var(--muted); }
.step .shot { margin-top: 28px; }
.step .callouts { margin-top: 16px; }
.step .link-card { margin-top: 16px; }
.stack.stack > .step + .step { margin-top: clamp(80px, 9vw, 128px); }
.link-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; background: var(--panel); transition: border-color .2s ease, background .2s ease; }
.link-card:hover { border-color: #94a3b8; background: #fff; }
.link-card b { font-weight: 600; }
.link-card span { color: var(--muted); font-size: 15px; }
.case .contact { margin-top: clamp(64px, 8vw, 104px); }


/* Decisions with the image beside the text */
.decision.side { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.decision.side .dbody { display: block; }
.decision.side .fig { margin-top: 0; }
/* No single words left alone on the last line */
p, li, dd, h2, h3 { text-wrap: pretty; }
.section { padding-block: clamp(72px, 8vw, 120px); }
.case-hero + .hero-shot, .case-hero + .wrap.hero-shot { margin-top: 0; }
.case-hero:has(+ .hero-shot) { padding-bottom: 40px; }
.card ul { list-style: disc; }


/* Building Onboarding: a recorded walkthrough of the prototype */
.proto { padding-bottom: clamp(24px, 4vw, 48px); }
.proto-video { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #f9f9f9; }
.proto-video video { display: block; width: 100%; height: auto; }
/* Lists that draw their own dots */
.card ul.dots, ul.dots { list-style: none; padding-left: 0; }
/* Blocks inside a section sit a little closer */
.stack.stack > * + * { margin-top: clamp(40px, 4.5vw, 56px); }
.section { padding-block: clamp(64px, 7.5vw, 112px); }
.stack.stack > .callouts { margin-top: 24px; }
.stack.stack > :has(> .subhead) + * { margin-top: 24px; }


/* Space Court opening image: phones on a soft panel, same corners as other images */
.phones { background: linear-gradient(180deg, #eef3f2, #f7f8f7); border-radius: 12px; padding: clamp(24px, 5vw, 64px) clamp(16px, 6vw, 96px); }
.phones img { display: block; width: 100%; height: auto; }
/* Overview values never break inside a phrase, the column grows instead */
.overview { grid-template-columns: repeat(var(--cols, 4), auto); justify-content: stretch; }
.overview dd { white-space: nowrap; }


/* User flow, drawn in HTML */
.uflow { display: grid; gap: 0; justify-items: center; }
.fpill { display: inline-flex; align-items: center; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; font-weight: 500; font-size: 15px; color: var(--ink); }
.fpill.strong { background: var(--accent-text); border-color: var(--accent-text); color: #fff; }
.fstart { display: flex; flex-direction: column; align-items: center; }
.farrow { width: 1px; height: 28px; background: var(--line-strong); position: relative; }
.farrow::after { content: ""; position: absolute; bottom: -1px; left: -4px; border: 4.5px solid transparent; border-top: 6px solid var(--line-strong); border-bottom: 0; }
.flanes { position: relative; width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-top: 44px; margin-top: 0; }
.flanes::before { content: ""; position: absolute; top: 22px; left: 25%; right: 25%; height: 22px; border: 1px solid var(--line-strong); border-bottom: 0; border-radius: 12px 12px 0 0; }
.flanes::after { content: ""; position: absolute; top: 0; left: 50%; width: 1px; height: 22px; background: var(--line-strong); }
.flane { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 24px 24px 20px; }
.flane h3 { font-size: 17px; font-weight: 600; }
.flane-sub { margin-top: 2px; font-size: 14px; color: var(--faint); }
.flane ol { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 0; }
.flane li { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; padding-bottom: 18px; }
.flane li:last-child { padding-bottom: 0; }
.flane li:not(:last-child)::before { content: ""; position: absolute; left: 13.5px; top: 30px; bottom: 4px; width: 1px; background: var(--line-strong); }
.fn { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 600; color: var(--accent-text); background: #fff; border: 1px solid var(--line-strong); }
.ft { font-weight: 600; color: var(--ink); margin-top: 3px; }
.fd { font-size: 14.5px; color: var(--muted); margin-top: 2px; }
.fnote { margin-top: 8px; font-size: 13.5px; color: var(--muted); background: #fff; border: 1px dashed var(--line-strong); border-radius: 8px; padding: 6px 10px; }
.fnote b { font-weight: 600; color: var(--ink-2); }
.fend { position: relative; display: grid; justify-items: center; gap: 10px; text-align: center; padding-top: 44px; width: 100%; }
.fend::before { content: ""; position: absolute; top: 0; left: 25%; right: 25%; height: 22px; border: 1px solid var(--line-strong); border-top: 0; border-radius: 0 0 12px 12px; }
.fend::after { content: ""; position: absolute; top: 22px; left: 50%; width: 1px; height: 22px; background: var(--line-strong); }
.fend p { font-size: 14.5px; color: var(--muted); max-width: 44ch; }
@media (max-width: 880px) {
  .flanes { grid-template-columns: 1fr; padding-top: 24px; }
  .flanes::before, .fend::before { display: none; }
  .flanes::after { top: 0; height: 24px; }
  .flanes::before { display: none; }
  .fend { padding-top: 24px; }
  .fend::after { top: 0; height: 24px; }
}

@media (max-width: 1080px) {
  .levels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards[style*="--cols: 4"], .callouts[style*="--cols: 4"] { --cols: 2 !important; }
}
@media (max-width: 880px) {
  .project > .text { padding-top: 0; }
  .topnav { gap: 20px; }
  .project, .project:nth-of-type(even) { grid-template-columns: 1fr; gap: 28px; }
  .project:nth-of-type(even) .text { order: 2; }
  .visual-col { display: contents; }
  .visual-col .visual { order: 0; }
  .sample { order: 1; margin-top: -16px; }
  .also-card { flex-wrap: wrap; gap: 12px 16px; padding: 12px; }
  .also-card .ac-line { flex-basis: 100%; order: 3; }
  .also-card .ac-cta { order: 4; }
  .float.f1 { left: 0; }
  .float.f2 { right: 0; }
  .hero-grid.art-left, .hero-grid.art-right, .hero-grid.side-box { grid-template-columns: 1fr; }
  .hero-art.robot { margin-left: -20px; }
  .hero-art.robot img { max-width: 170px; }
  .hero-art.radar { order: -1; }
  .hero-art.radar img { max-width: 150px; margin-inline: 0; }
  .overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview dd { white-space: normal; }
  .overview div:nth-child(3) { border-left: 0; }
  .overview div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .split, .features, .dbody, .learnings ul, .decision.side { grid-template-columns: 1fr; }
  .split .media { order: -1; }
  .feature .fimg, .feature:nth-child(even) .fimg { order: 0; }
  .levels, .cards, .callouts, .fig-grid { grid-template-columns: 1fr !important; }
  .prevnext { grid-template-columns: 1fr; }
  .prevnext .next { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

