  /* Layout: light dotted canvas from v1, one font family across the page (switchable while drafting),
     the design/code split as hero, a running name band, the folder opening the work section, case rows below. */
  :root {
    --bg: #EEE8E0;
    --surface: #F8F4EE;
    --ink: #2A211C;
    --muted: #7C6F64;
    --line: #DACFC2;
    --blue: #5E6A43;
    --lilac: #D6C7B2;
    --screen: #2A221D;
    --screen-2: #211B17;
    --screen-line: #43392F;
    --folder-back: #E0D6C9;
    --glass: rgb(250 246 240 / .6);
    --glass-edge: rgb(255 255 255 / .75);
    --font: "Host Grotesk", "Helvetica Neue", Arial, sans-serif;
    --font-display: var(--font);
    --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .2 0 0 0 0 .15 0 0 0 0 .1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    --tight: -.035em;
    --w-head: 300;
    color-scheme: light;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --bg: #1B1714; --surface: #24201C; --ink: #EFE8DF; --muted: #A99C8F; --line: #3A322B;
      --blue: #A4B07F; --lilac: #8C7A64; --screen: #120F0D; --screen-2: #0E0B09; --screen-line: #33291F;
      --folder-back: #2E2823; --glass: rgb(44 38 33 / .6); --glass-edge: rgb(255 255 255 / .1);
      color-scheme: dark;
    }
  }
  :root[data-theme="dark"] {
    --bg: #1B1714; --surface: #24201C; --ink: #EFE8DF; --muted: #A99C8F; --line: #3A322B;
    --blue: #A4B07F; --lilac: #8C7A64; --screen: #120F0D; --screen-2: #0E0B09; --screen-line: #33291F;
    --folder-back: #2E2823; --glass: rgb(44 38 33 / .6); --glass-edge: rgb(255 255 255 / .1);
    color-scheme: dark;
  }
  /* font options for the draft */
  :root { --font: "Host Grotesk", "Helvetica Neue", Arial, sans-serif; --font-display: "Cormorant Garamond", Georgia, serif; --tight: -.01em; --w-head: 300; }
  :root { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }

  * { box-sizing: border-box; }
  [hidden] { display: none !important; }
  html, body { overflow-x: clip; }
  body {
    margin: 0; color: var(--ink); font: 300 17px/1.6 var(--font);
    background: var(--bg);
  }
  /* Background options (draft) */
  body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; }
  body::before {
    background:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 600'%3E%3Cfilter id='b'%3E%3CfeGaussianBlur stdDeviation='9'/%3E%3C/filter%3E%3Cg filter='url(%23b)' fill='%235E6A43'%3E%3Cpath d='M590 20 C 470 120, 380 220, 300 380' stroke='%235E6A43' stroke-width='5' fill='none'/%3E%3Cellipse cx='520' cy='80' rx='60' ry='22' transform='rotate(-35 520 80)'/%3E%3Cellipse cx='470' cy='150' rx='64' ry='24' transform='rotate(20 470 150)'/%3E%3Cellipse cx='420' cy='200' rx='58' ry='21' transform='rotate(-40 420 200)'/%3E%3Cellipse cx='380' cy='270' rx='62' ry='23' transform='rotate(25 380 270)'/%3E%3Cellipse cx='335' cy='320' rx='52' ry='19' transform='rotate(-50 335 320)'/%3E%3Cellipse cx='300' cy='385' rx='46' ry='17' transform='rotate(10 300 385)'/%3E%3C/g%3E%3C/svg%3E") right -40px top -30px / min(760px, 70vw) no-repeat,
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 600'%3E%3Cfilter id='b'%3E%3CfeGaussianBlur stdDeviation='11'/%3E%3C/filter%3E%3Cg filter='url(%23b)' fill='%235E6A43'%3E%3Cpath d='M10 590 C 120 470, 220 400, 360 330' stroke='%235E6A43' stroke-width='5' fill='none'/%3E%3Cellipse cx='80' cy='520' rx='58' ry='21' transform='rotate(-55 80 520)'/%3E%3Cellipse cx='150' cy='470' rx='62' ry='23' transform='rotate(-10 150 470)'/%3E%3Cellipse cx='215' cy='420' rx='56' ry='20' transform='rotate(-60 215 420)'/%3E%3Cellipse cx='285' cy='380' rx='60' ry='22' transform='rotate(-15 285 380)'/%3E%3C/g%3E%3C/svg%3E") left -60px bottom -40px / min(640px, 62vw) no-repeat;
    opacity: .17;
  }
  body::after { content: ""; position: fixed; inset: 0; z-index: 70; pointer-events: none; background-image: var(--grain); opacity: .09; mix-blend-mode: multiply; }
  img { max-width: 100%; height: auto; display: block; }
  a { color: inherit; }
  a:focus-visible, button:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
  .wrap {
    max-width: 1240px; margin: 0 auto;
    padding-left: max(20px, env(safe-area-inset-left, 0px));
    padding-right: max(20px, env(safe-area-inset-right, 0px));
  }
  .small { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0; }
  .fill { background: color-mix(in srgb, var(--blue) 18%, transparent); border-radius: 0; padding: 0 .2em; }

  /* Greeting loader */
  .loader { position: fixed; inset: 0; z-index: 100; background: var(--screen); color: #F3F1EE; display: grid; place-items: center; animation: failsafe 0s 4s forwards; }
  .loader::after { content: ""; position: absolute; left: -10%; right: -10%; top: calc(100% - 1px); height: 16vh; background: var(--screen); border-radius: 0 0 50% 50%; }
  .loader p { margin: 0; display: flex; align-items: center; gap: 16px; font: var(--w-head) clamp(48px, 7vw, 84px)/1 var(--font-display); letter-spacing: var(--tight); }
  .loader p::after { content: ""; width: .36em; height: .36em; border-radius: 50%; background: var(--blue); }
  .loader.out { transform: translateY(calc(-100% - 17vh)); transition: transform .9s cubic-bezier(.76, 0, .24, 1); }
  @keyframes failsafe { to { visibility: hidden; } }

  /* Circle transition */
  .wipe { position: fixed; inset: 0; z-index: 90; background: var(--bg); color: var(--ink); display: grid; place-items: center; pointer-events: none; visibility: hidden; clip-path: circle(0 at var(--x, 50%) var(--y, 50%)); }
  .wipe p { margin: 0; font: var(--w-head) clamp(48px, 7vw, 84px)/1 var(--font-display); letter-spacing: var(--tight); }
  .wipe.cover { visibility: visible; clip-path: circle(150vmax at var(--x, 50%) var(--y, 50%)); transition: clip-path .65s cubic-bezier(.76, 0, .24, 1); }
  .wipe.leave { visibility: visible; clip-path: circle(150vmax at var(--x, 50%) var(--y, 50%)); opacity: 0; transition: opacity .5s ease .1s; }
  .arriving .wipe { visibility: visible; clip-path: circle(150vmax at 50% 50%); }

  /* Header */
  .bar { display: flex; justify-content: space-between; align-items: center; gap: 16px 28px; padding-block: 24px; flex-wrap: wrap; }
  .logo { font-family: var(--font-display); font-size: 24px; font-weight: 400; font-size: 19px; letter-spacing: -.01em; text-decoration: none; }
  .bar-right { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
  nav { display: flex; gap: 24px; font-size: 15px; }
  nav a { text-decoration: none; color: var(--muted); }
  nav a:hover { color: var(--ink); }
  .status { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; padding: 8px 16px; border: 1px solid var(--ink); border-radius: 0; background: transparent; }
  .status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 18%, transparent); }

  /* Hero */
  .hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(16px, 4vw, 48px) 0; }
  .hero > * { min-width: 0; }
  h1 { font: var(--w-head) clamp(56px, 7.6vw, 112px)/.95 var(--font-display); letter-spacing: var(--tight); margin: 0; }
  h1 .dots { display: inline-flex; vertical-align: .06em; margin-left: .12em; }
  h1 .dots i { width: .48em; height: .48em; border-radius: 50%; display: block; }
  h1 .dots i:first-child { background: var(--blue); }
  h1 .dots i:last-child { background: var(--lilac); margin-left: -.16em; mix-blend-mode: multiply; }
  .hero-text p { font-size: clamp(18px, 1.7vw, 21px); color: var(--muted); max-width: 34ch; margin: 28px 0 0; }
  .hero-text p b { color: var(--ink); font-weight: 600; }

  /* Design / code split: a real Hideaway card on the left, the same card as Figma Dev Mode sees it on the right */
  .split {
    position: relative; aspect-ratio: 5 / 4; max-width: 100%; border-radius: 0; overflow: hidden;
    container-type: size; touch-action: pan-y; cursor: ew-resize; --p: 52%;
    border: 1px solid var(--line); box-shadow: 0 40px 80px -40px rgb(0 0 0 / .45);
  }
  .layer { position: absolute; inset: 0; }
  .layer.design { background: radial-gradient(120% 90% at 20% 10%, #EDE5DA 0%, #E3D8CA 60%, #D8CBBA 100%); }
  .layer.code {
    clip-path: inset(0 0 0 var(--p));
    background-color: #221D19;
    background-image: radial-gradient(rgb(255 255 255 / .08) 1px, transparent 1px); background-size: 3.4cqw 3.4cqw;
  }
  .tag { position: absolute; top: 3.6cqw; font: 600 2.4cqw/1 var(--font); letter-spacing: .02em; padding: 1.4cqw 2.4cqw; border-radius: 0; z-index: 3; }
  .design .tag { left: 3.6cqw; background: rgb(255 255 255 / .8); color: #15181B; box-shadow: 0 2px 8px rgb(0 0 0 / .06); }
  .code .tag { right: 3.6cqw; background: #322A24; color: #EDE6DD; }
  .code .tag::before { content: ""; display: inline-block; width: 1.4cqw; height: 1.4cqw; border-radius: 50%; background: #0FA958; margin-right: 1.2cqw; vertical-align: .1cqw; }

  /* the card */
  .pc {
    position: absolute; left: 14%; top: 17%; width: 46%;
    display: flex; flex-direction: column; border-radius: 0; overflow: visible;
    font-family: var(--font);
  }
  .pc-img { height: 22cqw; border-radius: 0 0 0 0; overflow: hidden; position: relative; }
  .pc-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
  .pc-body { display: flex; flex-direction: column; gap: 1.8cqw; padding: 3.4cqw; position: relative; }
  .pc-row { display: flex; justify-content: space-between; align-items: center; gap: 2cqw; font-size: 2.3cqw; }
  .pc-title { font-size: 4.6cqw; font-weight: 600; line-height: 1; letter-spacing: -.02em; }
  .pc-price { font-size: 2.5cqw; }
  .pc-btn { margin-top: .6cqw; display: block; text-align: center; font-size: 2.4cqw; font-weight: 600; padding: 2.2cqw; border-radius: 0; }
  .design .pc { background: #FFFFFF; box-shadow: 0 3cqw 8cqw -3cqw rgb(30 30 60 / .35); }
  .design .pc-row { color: #6B6F78; }
  .design .pc-row b { color: #15181B; font-weight: 600; }
  .design .pc-title { color: #15181B; }
  .design .pc-price { color: #3C4048; }
  .design .pc-btn { background: #2A211C; color: #fff; }
  .design .pc-img::after { content: "Curator's pick"; position: absolute; left: 2.6cqw; top: 2.6cqw; font-size: 2.1cqw; font-weight: 600; padding: 1cqw 2cqw; border-radius: 0; background: rgb(255 255 255 / .85); color: #15181B; }

  /* the same card as a developer sees it */
  .code .pc { outline: 1px solid #0D99FF; outline-offset: 0; }
  .code .pc::before { content: "PlaceCard · 360 × 420"; position: absolute; left: -1px; top: -4.2cqw; font: 600 2.2cqw/1 var(--font); color: #fff; background: #0D99FF; padding: .8cqw 1.4cqw; border-radius: 0 0 0 0; white-space: nowrap; }
  .code .pc-img { background: repeating-linear-gradient(135deg, transparent 0 1.4cqw, rgb(255 255 255 / .06) 1.4cqw 1.6cqw); outline: 1px dashed rgb(255 255 255 / .25); outline-offset: -1px; }
  .code .pc-img img { opacity: 0; }
  .code .pc-img::after { content: "image · fill · 360 × 190"; position: absolute; inset: 0; display: grid; place-items: center; font: 500 2.2cqw/1 ui-monospace, Menlo, monospace; color: rgb(255 255 255 / .55); }
  .code .pc-body { background: rgb(242 72 132 / .13); box-shadow: inset 0 0 0 4cqw rgb(30 31 34 / 0); }
  .code .pc-body > * { outline: 1px dashed rgb(13 153 255 / .65); color: rgb(228 228 231 / .75); }
  .code .pc-row b { color: inherit; font-weight: 600; }
  .code .pc-btn { background: transparent; color: rgb(228 228 231 / .75); outline-style: solid; }
  .m { position: absolute; font: 600 2cqw/1 ui-monospace, Menlo, monospace; color: #fff; background: #F24884; padding: .5cqw .9cqw; border-radius: 0; white-space: nowrap; }
  .m-pad { right: calc(100% + 1.4cqw); top: 3.4cqw; }
  .m-pad::after { content: ""; position: absolute; left: 100%; top: 50%; width: 4.8cqw; border-top: 1px solid #F24884; }
  .design .m { display: none; }

  /* Dev Mode CSS panel */
  .panel {
    position: absolute; right: 3.6cqw; bottom: 3.6cqw; width: 37%; z-index: 2;
    background: #2F2823; border: 1px solid #45392F; border-radius: 0; overflow: hidden;
    font: 2.15cqw/1.6 ui-monospace, Menlo, monospace; color: #C9C9CF;
    box-shadow: 0 3cqw 6cqw -2cqw rgb(0 0 0 / .6);
  }
  .panel-head { display: flex; gap: 2.4cqw; padding: 1.6cqw 2.4cqw; border-bottom: 1px solid #45392F; font-family: var(--font); font-size: 2.1cqw; color: #8E8E96; }
  .panel-head b { color: #fff; font-weight: 600; }
  .panel pre { margin: 0; padding: 2cqw 2.4cqw; white-space: pre; overflow: hidden; }
  .k { color: #7CC4FF; } .v { color: #F7B267; } .s { color: #C792EA; }

  .divider { position: absolute; top: 0; bottom: 0; left: var(--p); width: 1px; margin-left: -.5px; background: rgb(255 255 255 / .9); box-shadow: 0 0 0 .5px rgb(0 0 0 / .15); pointer-events: none; z-index: 4; }
  .divider span {
    position: absolute; top: 50%; left: 50%; translate: -50% -50%;
    display: flex; align-items: center; gap: 1cqw; padding: 1.6cqw 2.2cqw; border-radius: 0;
    background: rgb(255 255 255 / .75); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border: 1px solid rgb(255 255 255 / .9); box-shadow: 0 1cqw 3cqw rgb(0 0 0 / .25);
    font: 600 2.4cqw/1 var(--font); color: #15181B; white-space: nowrap;
  }

  /* Running name band */
  .marquee { overflow: hidden; margin-top: clamp(48px, 7vw, 96px); border-block: 1px solid var(--line); padding-block: 8px; }
  .track { display: flex; width: max-content; animation: slide 30s linear infinite; }
  .track span { font: var(--w-head) clamp(64px, 11vw, 168px)/1.05 var(--font-display); letter-spacing: var(--tight); white-space: nowrap; padding-right: .3em; }
  .track span i { display: inline-block; width: .32em; height: .32em; border-radius: 50%; background: var(--blue); vertical-align: .18em; margin-left: .3em; }
  .marquee.back .track { animation-direction: reverse; }
  @keyframes slide { to { transform: translateX(-50%); } }

  /* Sections */
  section.block { padding-block: clamp(88px, 12vw, 160px) 0; }
  h2 { font: var(--w-head) clamp(44px, 6vw, 88px)/1 var(--font-display); letter-spacing: var(--tight); margin: 0; text-wrap: balance; }
  h2 em { font-style: normal; color: var(--blue); }
  h2 em, .contact h2 em { font-style: italic; }

  .statement { font: var(--w-head) clamp(30px, 3.8vw, 52px)/1.15 var(--font-display); letter-spacing: -.02em; margin: 0; max-width: 24ch; }
  .scribble { position: relative; white-space: nowrap; }
  .scribble svg { position: absolute; left: -6%; top: -14%; width: 112%; height: 134%; overflow: visible; pointer-events: none; }
  .scribble path { fill: none; stroke: var(--blue); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
  .js-reveal .scribble path { stroke-dashoffset: 1; }
  .js-reveal .in .scribble path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.2s cubic-bezier(.65, 0, .35, 1) .4s; }
  .services { list-style: none; margin: 48px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
  .services li { border: 1px solid color-mix(in srgb, var(--ink) 45%, transparent); background: transparent; border-radius: 0; padding: 9px 18px; font-size: 15px; }

  /* Work header with the folder */
  .work-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 64px; align-items: center; }
  .work-top > * { min-width: 0; }
  .work-top p { color: var(--muted); max-width: 36ch; margin: 20px 0 0; }
  .folder { position: relative; width: 100%; max-width: 480px; aspect-ratio: 1 / .9; margin-inline: auto; }
  .folder-back { position: absolute; left: 7%; right: 7%; top: 16%; bottom: 14%; background: var(--folder-back); border-radius: 0; }
  .folder-back::before { content: ""; position: absolute; left: 0; top: -9%; width: 42%; height: 12%; background: inherit; border-radius: 0 0 0 0; }
  .card-out { position: absolute; left: 33%; top: 4%; width: 34%; aspect-ratio: 3 / 4; padding: 6px; background: var(--surface); border-radius: 0; box-shadow: 0 16px 36px -14px rgb(0 0 0 / .4); transform: translate(var(--x, 0), var(--y, 0)) rotate(var(--r, 0deg)); transform-origin: 50% 100%; }
  .card-out img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 0; }
  .c-left { --x: -68%; --y: 10%; --r: -10deg; }
  .c-right { --x: 68%; --y: 10%; --r: 10deg; }
  .c-mid { z-index: 1; }
  .folder-front { position: absolute; left: 2%; right: 2%; top: 47%; bottom: 3%; z-index: 2; display: flex; flex-direction: column; justify-content: space-between; padding: 22px; background: var(--glass); border: 1px solid var(--glass-edge); border-radius: 0; -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 24px 50px -20px rgb(0 0 0 / .35); }
  .folder-tab { position: absolute; left: 2%; top: 36%; width: 46%; height: calc(11% + 1px); z-index: 2; background: var(--glass); border: 1px solid var(--glass-edge); border-bottom: 0; border-radius: 0 0 0 0; clip-path: polygon(0 0, 78% 0, 100% 100%, 0 100%); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); }
  .folder-label { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
  .folder-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
  .folder-name { font: 400 clamp(24px, 2.8vw, 34px)/1 var(--font-display); letter-spacing: -.02em; }
  .folder-name small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: .02em; margin-top: 8px; }
  .folder-go { flex: none; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--bg); text-decoration: none; }
  .folder-go svg { width: 20px; height: 20px; }
  @media (prefers-reduced-motion: no-preference) {
    .card-out { animation: rise .9s cubic-bezier(.2, .8, .2, 1) both; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
    .c-mid { animation-delay: .1s; } .c-left { animation-delay: .22s; } .c-right { animation-delay: .32s; }
    @keyframes rise { from { transform: translate(0, 38%) rotate(0deg); } }
    .folder:hover .c-left { --x: -80%; --y: 4%; --r: -14deg; }
    .folder:hover .c-right { --x: 80%; --y: 4%; --r: 14deg; }
    .folder:hover .c-mid { --y: -6%; }
    .folder-go { transition: transform .2s ease; }
    .folder-go:hover { transform: rotate(45deg); }
  }

  /* Case rows */
  .works { display: grid; gap: clamp(72px, 10vw, 128px); margin-top: clamp(64px, 9vw, 112px); }
  .case { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px clamp(32px, 5vw, 72px); align-items: center; }
  .case > * { min-width: 0; }
  .case:nth-child(even) .case-img { order: 2; }
  .case-img { display: block; border-radius: 0; overflow: hidden; aspect-ratio: 16 / 10; box-shadow: 0 30px 60px -36px rgb(0 0 0 / .5); }
  .case-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
  .case-img:hover img { transform: scale(1.04); }
  .case-info { position: relative; display: grid; gap: 14px; }
  .case-info h3 { font: var(--w-head) clamp(40px, 4.6vw, 64px)/1 var(--font-display); letter-spacing: var(--tight); margin: 0; position: relative; }
  .case-info .type { font-size: 15px; color: var(--muted); }
  .roles { font-size: 15px; }
  .roles span { color: var(--muted); padding-inline: .4em; }
  .case-info p { margin: 0; color: var(--muted); max-width: 42ch; }
  .more { justify-self: start; display: inline-flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; padding: 14px 22px; border-radius: 0; border: 1px solid var(--ink); transition: background .25s, color .25s; }
  .more:hover { background: var(--ink); color: var(--bg); }
  .more b { font-size: 20px; line-height: 0; font-weight: 400; }
  .case.soon .case-img { display: grid; place-items: center; background: var(--surface); border: 1px dashed var(--line); color: var(--muted); font-size: 14px; box-shadow: none; }

  /* About */
  .about { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); margin-top: 56px; align-items: start; }
  .about > * { min-width: 0; }
  .photo-card { background: var(--surface); padding: 10px 10px 44px; border-radius: 0; box-shadow: 0 24px 50px -24px rgb(0 0 0 / .4); rotate: -3deg; max-width: 340px; }
  .photo-card .ph { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: 0; filter: saturate(.92) contrast(1.02); }
  .photo-card .cap { display: block; text-align: center; font-size: 13px; color: var(--muted); margin-top: 12px; }
  .bio p { margin: 0 0 18px; font: 400 clamp(21px, 1.9vw, 25px)/1.45 var(--font-display); max-width: 46ch; }
  b, strong { font-weight: 500; }
  .facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 48px; margin-top: 44px; }
  .facts > div { min-width: 0; }
  .facts h4 { font: 400 26px/1 var(--font-display); letter-spacing: -.01em; margin: 0 0 14px; }
  .facts ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
  .facts li { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 15px; }
  .facts li span { color: var(--muted); text-align: right; }
  .facts ul.chips { display: flex; flex-wrap: wrap; gap: 8px; }
  .facts .chips li { border: 1px solid color-mix(in srgb, var(--ink) 40%, transparent); background: transparent; border-radius: 0; padding: 6px 14px; display: block; }

  /* Contact */
  .contact { margin-top: clamp(96px, 13vw, 168px); background: var(--screen); color: #F3F1EE; border-radius: 0 0 0 0; }
  .contact .wrap { padding-block: clamp(64px, 9vw, 112px) 32px; }
  .contact h2 { max-width: 14ch; color: #F3F1EE; }
  .contact h2 em { color: #C9B79C; }
  .reach { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
  .reach a, .reach button { font: 600 17px/1 var(--font); color: #F3F1EE; background: transparent; border: 1px solid #5A4C40; border-radius: 0; padding: 18px 26px; text-decoration: none; cursor: pointer; }
  .reach .primary { background: var(--blue); border-color: var(--blue); color: #fff; }
  .reach a:hover, .reach button:hover { border-color: #F3F1EE; }
  .reach .fill { background: rgb(201 183 156 / .3); }
  .foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 72px; font-size: 13px; color: #A99C8F; }

  /* Draft font switcher */
  .draft { position: fixed; left: max(16px, env(safe-area-inset-left, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 60; display: grid; gap: 8px; justify-items: start; max-width: calc(100vw - 32px); }
  .fonts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 6px 6px 14px; border-radius: 0; background: var(--ink); color: var(--bg); font: 500 13px/1 var(--font); box-shadow: 0 12px 30px -12px rgb(0 0 0 / .5); }
  .fonts button { font: inherit; color: inherit; background: transparent; border: 0; border-radius: 0; padding: 8px 12px; cursor: pointer; }
  .fonts button[aria-pressed="true"] { background: var(--bg); color: var(--ink); }

  /* Scroll reveal */
  .js-reveal .reveal { opacity: 0; transform: translateY(44px); }
  .js-reveal .reveal.in { opacity: 1; transform: none; transition: opacity 1s cubic-bezier(.2, .8, .2, 1), transform 1s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--d, 0s); }

  @media (max-width: 900px) {
    .hero, .case, .about, .work-top { grid-template-columns: 1fr; }
    .case:nth-child(even) .case-img { order: 0; }
    nav { display: none; }
  }
  @media (max-width: 560px) {
    .facts { grid-template-columns: 1fr; }
    .fonts span { display: none; }
  }
  @media (prefers-reduced-motion: reduce) {
    .track { animation: none; }
    .js-reveal .reveal { opacity: 1; transform: none; }
    .js-reveal .scribble path { stroke-dashoffset: 0; }
  }

  /* ---------- Added for the multi-page draft ---------- */
  nav a[aria-current="page"] { color: var(--ink); }
  nav a[aria-current="page"]::after { content: ""; display: block; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); margin: 4px auto 0; }

  /* Which project the design/code picture shows (draft switch, Afterimage by default) */

  /* Afterimage ticket: the colourful example */
  .design .pc.tk { background: #0F151A; box-shadow: 0 3cqw 8cqw -3cqw rgb(10 16 20 / .65); }
  .pc.tk .pc-img img { object-position: 50% 26%; }
  .design .tk .pc-img::after { content: "IMAX · 16+"; background: #E14BA0; color: #fff; }
  .design .tk .pc-row { color: #8FA3AB; }
  .design .tk .pc-row b { color: #4FD8E8; }
  .pc.tk .pc-title { font-weight: 300; letter-spacing: .18em; text-transform: uppercase; font-size: 4cqw; }
  .design .tk .pc-title { color: #F2F7F8; }
  .design .tk .pc-price { color: #B9C7CC; }
  .design .tk .pc-btn { background: #4FD8E8; color: #0B1114; }
  .code .pc.tk::before { content: "TicketCard · 360 × 420"; }
  .design .tk-glow { position: absolute; inset: 0; background: radial-gradient(40% 40% at 70% 30%, rgb(79 216 232 / .18), transparent 70%), radial-gradient(35% 35% at 25% 80%, rgb(225 75 160 / .14), transparent 70%); pointer-events: none; }

  /* Page heads */
  .page-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(24px, 5vw, 64px) 0; }
  .page-head > * { min-width: 0; }
  .page-head .lead { font-size: clamp(18px, 1.7vw, 21px); color: var(--muted); max-width: 40ch; margin: 24px 0 0; }
  .kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 7px 14px; border: 1px solid color-mix(in srgb, var(--ink) 35%, transparent); border-radius: 0; margin-bottom: 28px; }
  .page-head .folder { max-width: 520px; }

  /* Link to the next page */
  .next-link { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap; margin-top: clamp(96px, 12vw, 160px); padding-block: 40px; border-top: 1px solid var(--line); text-decoration: none; }
  .next-link small { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
  .next-link b { font: var(--w-head) clamp(44px, 6vw, 88px)/1 var(--font-display); letter-spacing: var(--tight); transition: color .25s; }
  .next-link:hover b { color: var(--blue); }
  .all-link { display: inline-flex; align-items: center; gap: 10px; margin-top: clamp(56px, 8vw, 96px); font-weight: 600; text-decoration: none; padding: 16px 24px; border-radius: 0; border: 1px solid var(--ink); }
  .all-link:hover { background: var(--ink); color: var(--bg); }

  /* Home: short about */
  .teaser { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; margin-top: 48px; }
  .teaser > * { min-width: 0; }
  .teaser p { font: 400 clamp(24px, 2.4vw, 32px)/1.35 var(--font-display); margin: 0 0 28px; max-width: 30ch; }

  /* About page */
  .stack { position: relative; width: 100%; max-width: 420px; aspect-ratio: 4 / 5.6; }
  .stack .photo-card { position: absolute; width: 74%; }
  .stack .p1 { left: 0; top: 0; rotate: -4deg; z-index: 1; }
  .stack .p2 { right: 0; bottom: 0; rotate: 5deg; z-index: 2; }
  .about-page { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; margin-top: clamp(40px, 6vw, 72px); }
  .about-page > * { min-width: 0; }
  .about-page .stack { position: sticky; top: 32px; }
  .steps { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
  .steps li { padding: 24px 24px 0 0; min-width: 0; }
  .steps li + li { padding-left: 24px; border-left: 1px solid var(--line); }
  .steps small { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
  .steps h4 { font: 400 26px/1.1 var(--font-display); margin: 8px 0 8px; }
  .steps p { margin: 0; color: var(--muted); font-size: 15px; }

  /* Contact page: the dark block becomes the page */
  .contact.page { margin-top: clamp(24px, 4vw, 48px); border-radius: 0; min-height: 70vh; }
  .contact.page .wrap { padding-block: clamp(72px, 10vw, 140px) 40px; }
  .contact.page h2 { font-size: clamp(56px, 8vw, 120px); max-width: 12ch; }
  .contact-info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 64px; padding-top: 32px; border-top: 1px solid #4A3E34; }
  .contact-info div { min-width: 0; }
  .contact-info small { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #A99C8F; margin-bottom: 6px; }
  .contact-info span { font-size: 17px; }
  .contact-photo { position: absolute; right: max(20px, 4vw); top: clamp(48px, 7vw, 96px); width: clamp(140px, 16vw, 220px); rotate: 6deg; }
  .contact.page { position: relative; overflow: hidden; }

  @media (max-width: 900px) {
    .page-head, .teaser, .about-page { grid-template-columns: 1fr; }
    .about-page .stack { position: relative; top: 0; }
    .steps { grid-template-columns: 1fr; }
    .steps li, .steps li + li { padding: 20px 0; border-left: 0; }
    .steps li + li { border-top: 1px solid var(--line); }
    .contact-info { grid-template-columns: 1fr; }
    .contact-photo { display: none; }
  }

  /* Shell loader: a spinning ammonite you can drag, greetings and a counter */
  .loader { grid-template-rows: 1fr auto auto 1fr; gap: 22px; justify-items: center; animation-delay: 6s; }
  .shell { grid-row: 2; width: clamp(120px, 16vw, 180px); aspect-ratio: 1; cursor: grab; touch-action: none; }
  .shell.drag { cursor: grabbing; }
  .shell svg { width: 100%; height: 100%; overflow: visible; display: block; }
  .shell path, .shell line { fill: none; stroke: #E9DFD2; stroke-width: 1.1; stroke-linecap: round; }
  .shell .rib { stroke: #E9DFD2; opacity: .45; stroke-width: .8; }
  .shell circle { fill: var(--blue); }
  .loader p { grid-row: 3; }
  .load-foot { position: absolute; left: max(24px, env(safe-area-inset-left, 0px)); right: max(24px, env(safe-area-inset-right, 0px)); bottom: calc(24px + env(safe-area-inset-bottom, 0px)); display: flex; justify-content: space-between; font: 400 13px/1 var(--font); letter-spacing: .06em; text-transform: uppercase; color: #A99C8F; }
  .load-foot #pct { font-variant-numeric: tabular-nums; color: #E9DFD2; }

  /* Letters float up into place */
  .sp-w { display: inline-block; white-space: nowrap; }
  .sp-c { display: inline-block; }
  .js-split .split-me .sp-c { opacity: 0; transform: translateY(.55em) rotate(4deg); }
  .js-split .split-me.in .sp-c, .js-split .reveal.in .split-me .sp-c { opacity: 1; transform: none; transition: opacity .7s ease, transform .9s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i) * 28ms + var(--d0, 0s)); }

  /* Moving ribbon of projects: drifts on its own, stops on hover, drag to scroll */
  .ribbon { margin-top: clamp(56px, 8vw, 96px); margin-inline: calc(50% - 50vw); overflow: hidden; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
  .ribbon.drag { cursor: grabbing; }
  .rb-track { display: flex; gap: clamp(14px, 1.6vw, 22px); width: max-content; padding-inline: max(16px, env(safe-area-inset-left, 0px)); will-change: transform; }
  .rb-card { width: clamp(220px, 22vw, 320px); display: grid; gap: 12px; text-decoration: none; color: inherit; }
  .rb-img { display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 4px; background: var(--surface); }
  .rb-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2, .8, .2, 1); pointer-events: none; }
  .rb-card:hover .rb-img img { transform: scale(1.05); }
  .rb-cap { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); }
  .rb-cap b { font: 400 22px/1 var(--font-display); color: var(--ink); }

  /* Gallery opening: images unveil from the bottom while settling in scale */
  .js-reveal .ribbon .rb-img { clip-path: inset(100% 0 0 0); }
  .js-reveal .ribbon .rb-img img { scale: 1.25; }
  .js-reveal .ribbon.in .rb-img { clip-path: inset(0); transition: clip-path 1.1s cubic-bezier(.76, 0, .24, 1); transition-delay: calc(var(--n, 0) * 90ms); }
  .js-reveal .ribbon.in .rb-img img { scale: 1; transition: scale 1.5s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--n, 0) * 90ms); }
  .js-reveal .case .case-img { clip-path: inset(18% 0 0 0); }
  .js-reveal .case.in .case-img { clip-path: inset(0); transition: clip-path 1.2s cubic-bezier(.76, 0, .24, 1); }

  /* Short facts in the home About teaser */
  .mini-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 32px; margin: 4px 0 28px; max-width: 560px; }
  .mini-facts div { min-width: 0; border-top: 1px solid var(--line); padding-top: 10px; }
  .mini-facts dt { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
  .mini-facts dd { margin: 4px 0 0; font-size: 16px; }
  @media (max-width: 560px) { .mini-facts { grid-template-columns: 1fr; } }

  @media (prefers-reduced-motion: reduce) {
    .js-reveal .ribbon .rb-img, .js-reveal .case .case-img { clip-path: none; }
    .js-reveal .ribbon .rb-img img { scale: 1; }
    .js-split .split-me .sp-c { opacity: 1; transform: none; }
  }

  /* ===== v6: glass edition ===== */
  :root { --gl-a: rgb(255 255 255 / .64); --gl-b: rgb(255 255 255 / .22); --gl-edge: rgb(255 255 255 / .72); --gl-hi: rgb(255 255 255 / .9); --gl-shadow: rgb(70 50 30 / .42); }
  @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --gl-a: rgb(70 60 52 / .62); --gl-b: rgb(40 34 30 / .3); --gl-edge: rgb(255 255 255 / .14); --gl-hi: rgb(255 255 255 / .16); --gl-shadow: rgb(0 0 0 / .6); } }
  :root[data-theme="dark"] { --gl-a: rgb(70 60 52 / .62); --gl-b: rgb(40 34 30 / .3); --gl-edge: rgb(255 255 255 / .14); --gl-hi: rgb(255 255 255 / .16); --gl-shadow: rgb(0 0 0 / .6); }
  .gl { background: linear-gradient(140deg, var(--gl-a), var(--gl-b)); border: 1px solid var(--gl-edge); border-radius: 14px; -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); box-shadow: inset 0 1px 0 var(--gl-hi), 0 26px 48px -26px var(--gl-shadow); }

  /* Glass nav, pinned to the top */
  .topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; padding-block: 16px 0; }
  .glass-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; padding: 12px 14px 12px 22px; background: linear-gradient(140deg, var(--gl-a), var(--gl-b)); border: 1px solid var(--gl-edge); border-radius: 14px; -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); box-shadow: inset 0 1px 0 var(--gl-hi), 0 18px 40px -28px var(--gl-shadow); }
  .glass-nav nav { display: flex; gap: 28px; }
  .glass-nav .status { border-color: transparent; padding: 8px 12px; }

  /* Hero: copy on the left, arch photo with drifting glass cards on the right */
  .ghero { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding-block: clamp(24px, 4vw, 48px) 0; }
  .ghero > * { min-width: 0; }
  .ghero::before { content: ""; position: absolute; inset: -12% -30% -10% 20%; z-index: -1; pointer-events: none; background: radial-gradient(30% 36% at 60% 30%, color-mix(in srgb, var(--lilac) 70%, transparent), transparent 70%), radial-gradient(26% 32% at 88% 80%, color-mix(in srgb, var(--blue) 30%, transparent), transparent 70%), radial-gradient(30% 34% at 30% 85%, color-mix(in srgb, var(--lilac) 45%, transparent), transparent 70%); filter: blur(10px); }
  .ghero .kick, .ccard .kick { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0; }
  .ghero h1 { font: var(--w-head) clamp(54px, 6.6vw, 100px)/.95 var(--font-display); letter-spacing: var(--tight); margin: 18px 0 0; }
  .ghero h1 em { color: var(--blue); }
  .ghero .lede { font-size: clamp(18px, 1.6vw, 20px); color: var(--muted); max-width: 32ch; margin: 28px 0 0; }
  .ghero .lede b { color: var(--ink); font-weight: 600; }
  .ghero-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
  .btn { display: inline-flex; align-items: center; padding: 16px 26px; border: 1px solid var(--ink); border-radius: 3px; text-decoration: none; font-weight: 600; transition: background .25s, color .25s; }
  .btn.dark, .btn:hover { background: var(--ink); color: var(--bg); }
  .btn.dark:hover { background: transparent; color: var(--ink); }

  .stage { position: relative; height: clamp(560px, 56vw, 780px); container-type: inline-size; }
  .arch { position: absolute; left: 50%; bottom: 0; width: 46cqw; height: 88%; margin: 0; translate: -50% 0; border-radius: 999px 999px 0 0; overflow: hidden; z-index: 2; }
  .arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
  .arch-ring { position: absolute; left: 50%; bottom: 0; width: 58cqw; height: 95%; translate: -50% 0; border: 1px solid color-mix(in srgb, var(--blue) 40%, transparent); border-bottom: 0; border-radius: 999px 999px 0 0; z-index: 2; pointer-events: none; }
  .fl { position: absolute; left: 0; top: 0; width: clamp(150px, 27cqw, 190px); padding: 11px; font-size: 13px; will-change: transform; z-index: 4; pointer-events: none; }
  .fl .row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; color: var(--muted); font-size: 11.5px; }
  .fl .row.c { justify-content: center; }
  .fl b { color: var(--ink); font-weight: 600; }
  .fl .th { width: 100%; height: 62px; object-fit: cover; border-radius: 8px; margin-bottom: 10px; }
  .fl .t { display: block; font: 400 20px/1.1 var(--font-display); margin: 4px 0 2px; color: var(--ink); }
  .fl .t.af { font: 300 16px/1.2 "Josefin Sans", var(--font); letter-spacing: .3em; }
  .fl .t.ki { font-family: "Italiana", var(--font-display); }
  .fl .cta { display: block; text-align: center; margin-top: 10px; padding: 8px; border-radius: 6px; font-weight: 600; font-size: 12px; }
  .fl .cta.cyan { background: #4FD8E8; color: #0B1218; }
  .fl .cta.dark { background: var(--ink); color: var(--bg); }
  .fl.side { display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: center; width: clamp(190px, 31cqw, 230px); }
  .fl.side .th { height: 72px; margin: 0; }
  .fl.ctr { text-align: center; width: clamp(130px, 21cqw, 170px); }
  .fl .ring { width: 78px; height: 78px; margin: 8px auto 6px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--blue) 0 68%, color-mix(in srgb, var(--blue) 16%, transparent) 0); }
  .fl .ring span { width: 64px; height: 64px; border-radius: 50%; background: var(--gl-a); display: grid; place-items: center; font: 300 24px var(--font-display); color: var(--ink); }
  .fl .days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; margin: 8px 0 6px; font-size: 10px; color: var(--muted); text-align: center; }
  .fl .days span { padding: 3px 0; border-radius: 50%; }
  .fl .days .on { background: var(--blue); color: var(--bg); }
  .fl.dev { background: linear-gradient(140deg, rgb(32 26 22 / .78), rgb(32 26 22 / .5)); border-color: rgb(255 255 255 / .14); color: #EDE6DA; }
  .fl.dev .row, .fl.dev b { color: #EDE6DA; }
  .fl.dev pre { margin: 8px 0 0; font: 11.5px/1.55 ui-monospace, Menlo, monospace; color: #C9B79C; white-space: pre; }
  .fl.dev pre i { font-style: normal; color: #E8C27A; }
  .fl.pal .chips { display: flex; gap: 4px; margin: 8px 0; }
  .fl.pal .chips i { flex: 1; height: 26px; border-radius: 4px; }
  .fl.back { z-index: 1; }

  /* Contact: a glass card in the middle, small glass chips drifting around and behind it */
  .gcontact { margin-top: clamp(96px, 13vw, 168px); }
  .cstage { position: relative; height: clamp(560px, 56vw, 700px); display: grid; place-items: center; }
  .cstage::before { content: ""; position: absolute; inset: 6% 2%; z-index: -1; pointer-events: none; background: radial-gradient(34% 40% at 30% 40%, color-mix(in srgb, var(--lilac) 70%, transparent), transparent 70%), radial-gradient(30% 36% at 72% 64%, color-mix(in srgb, var(--blue) 32%, transparent), transparent 70%); filter: blur(10px); }
  .ccard { position: relative; z-index: 5; width: min(600px, 100%); padding: clamp(28px, 4vw, 48px); text-align: center; }
  .ccard h2 { font: var(--w-head) clamp(40px, 5vw, 68px)/1 var(--font-display); letter-spacing: -.02em; margin: 14px auto 0; max-width: 12ch; }
  .ccard h2 em { font-style: italic; color: var(--blue); }
  .ccard .cnote { color: var(--muted); margin: 18px auto 0; max-width: 34ch; }
  .cbtns { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
  .cbtns .btn { cursor: pointer; font: 600 16px/1 var(--font); }
  .chip { position: absolute; left: 0; top: 0; z-index: 1; display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px; font-size: 15px; white-space: nowrap; color: var(--ink); text-decoration: none; will-change: transform; }
  .chip img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; margin-left: -8px; }
  .chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 20%, transparent); }
  .chip.dark { background: linear-gradient(140deg, rgb(32 26 22 / .8), rgb(32 26 22 / .55)); color: #EDE6DA; border-color: rgb(255 255 255 / .14); }
  .chip.link:hover { border-color: var(--ink); }
  .gcontact .foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 28px 32px; margin-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

  @media (max-width: 900px) {
    .ghero { grid-template-columns: 1fr; }
    .stage { height: clamp(480px, 110vw, 640px); }
    .fl.xtra { display: none; }
  }

  /* Square corners everywhere; only the arch around the photo and true circles stay round */
  .gl, .glass-nav, .fl .th, .fl .cta, .fl.pal .chips i, .chip, .btn, .ccard, .case-img, .photo-card, .photo-card .ph, .status, .folder-front, .folder-back, .card-out { border-radius: 0 !important; }

  /* Extra hero cards */
  .fl .prog { height: 6px; margin: 10px 0 8px; background: color-mix(in srgb, var(--blue) 16%, transparent); }
  .fl .prog i { display: block; height: 100%; background: var(--blue); }
  .fl.type { width: clamp(130px, 21cqw, 160px); }
  .fl.type .spec { display: block; font: 300 54px/1 var(--font-display); color: var(--ink); margin: 6px 0 4px; }
  .fl.type .spec::after { content: "Aa"; font: 500 40px/1 var(--font); margin-left: 8px; color: var(--blue); }
  .chip.say { font: inherit; cursor: pointer; }

  /* About teaser: photo and text sit side by side in equal halves */
  .teaser { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); }
  .teaser .photo-card { justify-self: center; width: min(380px, 100%); max-width: 380px; }
  .teaser .photo-card .ph { object-position: 40% 50%; }
  @media (max-width: 900px) { .teaser { grid-template-columns: 1fr; } }

  /* Projects fall out of the folder as you scroll: no clip reveal on the images here */
  .js-reveal .case .case-img, .js-reveal .case.in .case-img { clip-path: none; transition: none; }
  .case-img.falling { will-change: transform, opacity; }
  .folder .folder-front { transform-origin: 50% 100%; transform: perspective(900px) rotateX(calc(var(--open, 0) * -24deg)); }

  /* Softer, slower page transition */
  .wipe.cover { transition: clip-path 1.05s cubic-bezier(.65, 0, .35, 1); }
  .wipe p { opacity: 0; translate: 0 18px; transition: opacity .5s ease, translate .7s cubic-bezier(.2, .8, .2, 1); }
  .wipe.cover p { opacity: 1; translate: 0 0; transition-delay: .35s; }
  .wipe.leave { transition: opacity .8s ease .15s; }
  .arriving .wipe p { opacity: 1; translate: 0 0; }

  /* About page: one idea per band, lots of air */
  .ab-head { padding-block: clamp(56px, 9vw, 120px) clamp(40px, 6vw, 72px); }
  .ab-head .kick { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0; }
  .ab-head h1 { font: var(--w-head) clamp(52px, 7vw, 112px)/.98 var(--font-display); letter-spacing: var(--tight); margin: 20px 0 0; max-width: 14ch; }
  .ab-head h1 em { color: var(--blue); }
  .ab-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 8vw, 128px); align-items: center; }
  .ab-intro > *, .ab-side > * { min-width: 0; }
  .ab-photo { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; }
  .ab-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 45% 55%; }
  .ab-photo.small { aspect-ratio: 3 / 4; max-width: 420px; justify-self: end; width: 100%; }
  .ab-bio p, .ab-side p { color: var(--muted); font-size: clamp(17px, 1.4vw, 19px); line-height: 1.7; max-width: 44ch; margin: 0 0 20px; }
  .ab-bio p.big, .ab-side p.big { color: var(--ink); font: 400 clamp(26px, 2.6vw, 38px)/1.3 var(--font-display); max-width: 24ch; margin-bottom: 32px; }
  .ab-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); margin-top: clamp(96px, 12vw, 168px); }
  .fact { padding: clamp(24px, 3vw, 40px); min-width: 0; }
  .fact .lbl { font: 500 12px/1 var(--font); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 0 0 24px; }
  .fact ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
  .fact li { display: flex; justify-content: space-between; gap: 20px; font-size: 17px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
  .fact li:last-child { border-bottom: 0; padding-bottom: 0; }
  .fact li span:last-child { color: var(--muted); text-align: right; }
  .fact .tools { font: 400 clamp(22px, 2vw, 28px)/1.5 var(--font-display); margin: 0; }
  .ab-side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 8vw, 128px); align-items: center; margin-top: clamp(96px, 12vw, 168px); }
  .ab-steps { margin-top: clamp(96px, 12vw, 168px); }
  .ab-steps h2 { font: var(--w-head) clamp(40px, 5vw, 72px)/1 var(--font-display); letter-spacing: -.02em; margin: 0; }
  .ab-steps h2 em { font-style: normal; color: var(--blue); }
  .ab-steps ol { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
  .ab-steps li { border-top: 1px solid var(--ink); padding-top: 24px; min-width: 0; }
  .ab-steps small { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
  .ab-steps h3 { font: 400 clamp(28px, 2.6vw, 36px)/1 var(--font-display); margin: 14px 0 12px; }
  .ab-steps p { color: var(--muted); margin: 0; max-width: 32ch; }
  @media (max-width: 900px) {
    .ab-intro, .ab-side, .ab-facts, .ab-steps ol { grid-template-columns: 1fr; }
    .ab-photo.small { justify-self: start; }
  }

  /* 3D ammonite in the loader */
  .loader { animation-delay: 9s; }
  .loader .shell { width: clamp(180px, 24vw, 280px); }
  .loader .shell canvas { width: 100% !important; height: 100% !important; display: block; }

  /* Profile links under the hero buttons */
  .find { margin: 26px 0 0; font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; }
  .find a { color: var(--ink); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--ink) 35%, transparent); }
  .find a:hover { border-color: var(--blue); color: var(--blue); }

  /* Home About teaser: the photo sits in an arch like the hero, with a glass tag */
  .tz-photo { position: relative; margin: 0; justify-self: center; width: min(400px, 100%); aspect-ratio: 4 / 5; }
  .tz-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; border-radius: 999px 999px 0 0; }
  .tz-tag { position: absolute; left: -18px; bottom: 34px; display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; font-size: 15px; }
  .tz-tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 20%, transparent); }
  .ab-intro .ab-photo img { object-position: 50% 35%; }

  /* Extra hero card: a Shine to-do list */
  .fl.todo ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 7px; font-size: 12.5px; color: var(--ink); }
  .fl.todo li { display: flex; align-items: center; gap: 8px; }
  .fl.todo li::before { content: ""; flex: none; width: 13px; height: 13px; border: 1.5px solid var(--blue); }
  .fl.todo li.ok { color: var(--muted); text-decoration: line-through; }
  .fl.todo li.ok::before { background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6.2l2 2 4-4.4' fill='none' stroke='white' stroke-width='1.6'/%3E%3C/svg%3E") center/100%; }

  /* Home About: a wide photo with a glass card over it */
  .tband { position: relative; margin-top: 48px; min-height: clamp(520px, 52vw, 680px); display: grid; align-items: center; justify-items: end; padding: clamp(20px, 4vw, 56px); overflow: hidden; }
  .tband > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; }
  .tcard { position: relative; width: min(520px, 100%); padding: clamp(24px, 3vw, 40px); }
  .tcard .tlead { font: 400 clamp(22px, 2vw, 28px)/1.35 var(--font-display); margin: 0 0 24px; }
  .tcard .mini-facts { margin: 0 0 28px; }
  @media (max-width: 700px) { .tband { padding: 0; justify-items: stretch; align-items: end; min-height: 0; } .tband > img { position: static; height: 420px; } .tcard { width: 100%; } }

  /* Contact: chips only drift for atmosphere; links sit below as plain tiles */
  .chip { pointer-events: none; }
  .tiles { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 12px; }
  .tile { display: grid; gap: 6px; width: 100%; padding: 20px 22px; text-align: left; text-decoration: none; color: var(--ink); font: inherit; cursor: pointer; transition: translate .25s, border-color .25s; }
  .tile small { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
  .tile b { font: 400 22px/1.1 var(--font-display); }
  .tile:hover { translate: 0 -3px; border-color: var(--ink); }

  /* About: full-width headline that types itself */
  .ab-head h1 { max-width: none; font-size: clamp(60px, 9.4vw, 168px); line-height: .95; min-height: 2em; }
  .caret { display: inline-block; width: .05em; height: .82em; margin-left: .06em; vertical-align: -.04em; background: var(--blue); animation: blink 1s steps(1) infinite; }
  .caret.done { animation: none; opacity: 0; transition: opacity .6s; }
  @keyframes blink { 50% { opacity: 0; } }

  /* About: the "outside client work" pair sits close together */
  .ab-side { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px); margin-top: clamp(72px, 9vw, 120px); }
  .ab-side .ab-photo.small { justify-self: stretch; max-width: none; aspect-ratio: 4 / 5; }
  .ab-side .kick { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; }
  .ab-side p.big { margin-bottom: 20px; }
  .ab-facts { margin-top: clamp(72px, 9vw, 120px); }
  .ab-steps { margin-top: clamp(72px, 9vw, 120px); }
  .ab-intro .ab-photo img { object-position: 50% 25%; }
  .tiles { display: flex; flex-wrap: wrap; }
  .tiles li { flex: 1 1 200px; display: flex; }
  .tile b { white-space: nowrap; }
  .tband { justify-items: start; }
  .tband > img { object-position: 50% 40%; }
  .tcard { width: min(440px, 100%); }
  .tiles { width: 100%; justify-self: stretch; }

  /* Hero card: Kiara size picker */
  .fl.size .sizes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin: 10px 0; }
  .fl.size .sizes span { display: grid; place-items: center; height: 30px; border: 1px solid color-mix(in srgb, var(--ink) 30%, transparent); font-size: 12px; color: var(--ink); }
  .fl.size .sizes span.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
  .wtitle { font: var(--w-head) clamp(56px, 8vw, 128px)/.95 var(--font-display); letter-spacing: var(--tight); margin: 0; }
  .wtitle em { color: var(--blue); }

  /* ===== Case study pages ===== */
  .cs-head { padding-block: clamp(40px, 6vw, 80px) clamp(32px, 4vw, 48px); }
  .cs-back { display: inline-block; font-size: 14px; color: var(--muted); text-decoration: none; margin-bottom: clamp(32px, 5vw, 56px); }
  .cs-back:hover { color: var(--ink); }
  .cs-head .kick { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0; }
  .cs-head h1 { font: var(--w-head) clamp(72px, 12vw, 200px)/.9 var(--font-display); letter-spacing: var(--tight); margin: 16px 0 0; }
  .cs-lead { font: 400 clamp(22px, 2.2vw, 32px)/1.35 var(--font-display); max-width: 34ch; margin: 28px 0 0; }
  .cs-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 40px 0 0; padding: 0; }
  .cs-meta div { padding: 20px 22px; min-width: 0; }
  .cs-meta div + div { border-left: 1px solid var(--gl-edge); }
  .cs-meta dt { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
  .cs-meta dd { margin: 6px 0 0; font-size: 16px; }
  .cs-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
  .cs-cover { margin: 0; overflow: hidden; box-shadow: 0 40px 80px -50px rgb(0 0 0 / .55); }
  .cs-cover img { width: 100%; display: block; }
  .cs-sec h2 { font: var(--w-head) clamp(40px, 5vw, 72px)/1 var(--font-display); letter-spacing: -.02em; margin: 0; }
  .cs-sec h2 em { color: var(--blue); }
  .cs-sub { color: var(--muted); max-width: 52ch; margin: 18px 0 0; font-size: 17px; }
  .cs-sub a { color: var(--ink); }
  .cs-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
  .cs-note { padding: clamp(24px, 3vw, 36px); min-width: 0; }
  .cs-note h3 { font: 400 clamp(24px, 2.2vw, 30px)/1.1 var(--font-display); margin: 0 0 12px; }
  .cs-note p { margin: 0; color: var(--muted); }
  .cs-rows { display: grid; gap: clamp(56px, 7vw, 96px); margin-top: 48px; }
  .cs-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
  .cs-row:nth-child(even) .cs-win { order: 2; }
  .cs-row > * { min-width: 0; }
  .cs-win { padding: 0 8px 8px; }
  .cs-bar { height: 30px; display: flex; align-items: center; gap: 6px; }
  .cs-bar i { width: 8px; height: 8px; border-radius: 50%; background: color-mix(in srgb, var(--ink) 20%, transparent); }
  .cs-bar span { margin-inline: auto; font-size: 11px; color: var(--muted); translate: -14px 0; }
  .cs-win > img { display: block; width: 100%; }
  .cs-txt small { font-size: 12px; letter-spacing: .16em; color: var(--muted); }
  .cs-txt h3 { font: 400 clamp(30px, 3vw, 44px)/1 var(--font-display); margin: 12px 0 14px; }
  .cs-txt p { color: var(--muted); margin: 0; max-width: 36ch; }
  .cs-long .cs-scroll { max-height: 640px; overflow-y: auto; }
  .cs-long .cs-scroll img { display: block; width: 100%; }
  .cs-phones { display: flex; justify-content: center; flex-wrap: wrap; gap: clamp(20px, 4vw, 56px); padding: clamp(28px, 5vw, 64px); margin-top: 40px; }
  .cs-phone { margin: 0; width: min(240px, 100%); text-align: center; }
  .cs-phone div { border-radius: 34px; background: #16120F; padding: 8px; box-shadow: 0 30px 60px -30px rgb(0 0 0 / .6); }
  .cs-phone img { display: block; width: 100%; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; border-radius: 27px; }
  .cs-phone figcaption { margin-top: 14px; font-size: 14px; color: var(--muted); }
  .cs-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
  .cs-pair img { width: 100%; display: block; }
  .cs-themes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 40px; }
  .cs-themes img { width: 100%; display: block; border-radius: 18px; box-shadow: 0 20px 40px -26px rgb(0 0 0 / .55); }
  .cs-did { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 5vw, 72px); }
  .cs-did li { display: grid; gap: 6px; padding: 22px 0; border-top: 1px solid var(--line); min-width: 0; }
  .cs-did b { font: 400 24px/1.1 var(--font-display); }
  .cs-did span { color: var(--muted); }
  .cs-next { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 32px; align-items: center; margin-top: clamp(96px, 12vw, 160px); padding-top: 40px; border-top: 1px solid var(--line); text-decoration: none; }
  .cs-next small { display: block; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
  .cs-next b { display: block; font: var(--w-head) clamp(48px, 7vw, 112px)/1 var(--font-display); letter-spacing: var(--tight); margin-top: 10px; transition: color .25s; }
  .cs-next:hover b { color: var(--blue); }
  .cs-next img { width: 100%; display: block; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
  .cs-next:hover img { transform: scale(1.03); }
  @media (max-width: 900px) {
    .cs-meta, .cs-notes, .cs-row, .cs-pair, .cs-did, .cs-next { grid-template-columns: 1fr; }
    .cs-meta div + div { border-left: 0; border-top: 1px solid var(--gl-edge); }
    .cs-row:nth-child(even) .cs-win { order: 0; }
    .cs-themes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  }

  /* ===== Case pages, round 2: per-project accents on the shared base ===== */
  [data-project="hideaway"]   { --blue: #2F6A5A; --glow-a: #BFD3C4; --glow-b: #D9CBB3; }
  [data-project="afterimage"] { --blue: #23808C; --glow-a: #B9DCE0; --glow-b: #D9C7D6; }
  [data-project="linnea"]     { --blue: #6F7A5C; --glow-a: #D3D8C2; --glow-b: #E3D9CB; }
  [data-project="kiara"]      { --blue: #8A5A35; --glow-a: #E3CDB4; --glow-b: #EFE4D6; }
  [data-project="shine"]      { --blue: #B4632E; --glow-a: #EAC6A2; --glow-b: #D9C4B6; }
  @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) [data-project="hideaway"] { --blue: #8CC2AE; } :root:not([data-theme="light"]) [data-project="afterimage"] { --blue: #6FD2DD; } :root:not([data-theme="light"]) [data-project="linnea"] { --blue: #B5C09A; } :root:not([data-theme="light"]) [data-project="kiara"] { --blue: #D3A57C; } :root:not([data-theme="light"]) [data-project="shine"] { --blue: #E8A06C; } }
  :root[data-theme="dark"] [data-project="hideaway"] { --blue: #8CC2AE; } :root[data-theme="dark"] [data-project="afterimage"] { --blue: #6FD2DD; } :root[data-theme="dark"] [data-project="linnea"] { --blue: #B5C09A; } :root[data-theme="dark"] [data-project="kiara"] { --blue: #D3A57C; } :root[data-theme="dark"] [data-project="shine"] { --blue: #E8A06C; }
  [data-project] .cs-head { position: relative; }
  [data-project] .cs-head::before { content: ""; position: absolute; inset: -10% -20% -20% 30%; z-index: -1; pointer-events: none; background: radial-gradient(32% 40% at 70% 30%, color-mix(in srgb, var(--glow-a) 80%, transparent), transparent 70%), radial-gradient(28% 34% at 92% 80%, color-mix(in srgb, var(--glow-b) 80%, transparent), transparent 70%); filter: blur(12px); opacity: .9; }
  @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) [data-project] .cs-head::before { opacity: .18; } }
  :root[data-theme="dark"] [data-project] .cs-head::before { opacity: .18; }

  /* Header spans the full width: lead on the left, facts and buttons on the right */
  .cs-intro { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; margin-top: clamp(28px, 4vw, 48px); }
  .cs-intro > * { min-width: 0; }
  .cs-intro .cs-lead { margin: 0; max-width: none; }
  .cs-side .cs-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
  .cs-side .cs-meta div:nth-child(3) { border-left: 0; }
  .cs-side .cs-meta div:nth-child(n+3) { border-top: 1px solid var(--gl-edge); }

  /* Project motifs in the top-right corner */
  .cs-motif { position: absolute; right: 0; top: clamp(24px, 4vw, 56px); pointer-events: none; }
  .cs-motif.route { width: clamp(180px, 24vw, 320px); fill: var(--blue); }
  .cs-motif.route path { fill: none; stroke: var(--blue); stroke-width: 1.5; stroke-dasharray: 6 7; }
  .cs-motif.scan { display: grid; gap: 6px; text-align: right; font: 500 12px/1.4 ui-monospace, Menlo, monospace; letter-spacing: .14em; color: var(--blue); }
  .cs-motif.scan span:nth-child(2) { opacity: .6; } .cs-motif.scan span:nth-child(3) { opacity: .35; }
  .cs-motif.ammo { width: clamp(200px, 26vw, 340px); aspect-ratio: 1; top: 0; pointer-events: auto; cursor: grab; }
  .cs-motif.ammo canvas { width: 100% !important; height: 100% !important; display: block; }
  .cs-motif.mono { font: 300 clamp(140px, 18vw, 260px)/.8 "Italiana", var(--font-display); color: color-mix(in srgb, var(--blue) 30%, transparent); top: 0; }
  .cs-motif.sun { width: clamp(180px, 22vw, 300px); aspect-ratio: 1; top: 0; background: var(--blue); opacity: .7; -webkit-mask: url(images/shine/mandala-sun.png) center / contain no-repeat; mask: url(images/shine/mandala-sun.png) center / contain no-repeat; animation: sunspin 60s linear infinite; }
  @keyframes sunspin { to { rotate: 360deg; } }
  @media (max-width: 900px) { .cs-intro { grid-template-columns: 1fr; } .cs-motif { opacity: .4; } .cs-motif.ammo { width: 160px; } }
  @media (prefers-reduced-motion: reduce) { .cs-motif.sun { animation: none; } }

  /* More details: a two-column gallery of real sections */
  .cs-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
  .cs-shot { margin: 0; padding: 8px 8px 0; min-width: 0; }
  .cs-shot img { width: 100%; display: block; }
  .cs-shot figcaption { padding: 16px 10px 20px; color: var(--muted); font-size: 15px; }
  .cs-shot figcaption b { display: block; font: 400 24px/1.1 var(--font-display); color: var(--ink); margin-bottom: 6px; }
  .cs-appgrid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); padding: clamp(24px, 4vw, 48px); margin-top: 40px; }
  .cs-appgrid .cs-phone { width: 100%; }
  .cs-appgrid .cs-phone div { border-radius: 26px; padding: 6px; }
  .cs-appgrid .cs-phone img { border-radius: 21px; }
  @media (max-width: 900px) { .cs-gallery { grid-template-columns: 1fr; } .cs-appgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

  /* Big live-site link near the end */
  .cs-live { position: relative; display: grid; place-items: center; min-height: clamp(360px, 40vw, 520px); margin-top: clamp(96px, 12vw, 160px); overflow: hidden; text-decoration: none; color: var(--ink); }
  .cs-live > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(2px) brightness(.9); transform: scale(1.04); transition: transform 1s cubic-bezier(.2, .8, .2, 1), filter .6s; }
  .cs-live:hover > img { transform: scale(1.08); filter: blur(0) brightness(.95); }
  .cs-live > span { position: relative; display: grid; gap: 10px; text-align: center; padding: clamp(28px, 4vw, 48px) clamp(32px, 6vw, 80px); max-width: 90%; }
  .cs-live small { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
  .cs-live b { font: var(--w-head) clamp(36px, 5vw, 72px)/1 var(--font-display); letter-spacing: -.02em; color: var(--ink); overflow-wrap: anywhere; }
  .cs-live em { font-style: normal; color: var(--muted); }
  .cs-live:hover b { color: var(--blue); }

  /* ===== Case pages, round 3: unique headers and richer sections ===== */
  .cs-go { padding: 20px 34px; font-size: 18px; }
  .cs-top { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
  .cs-top > * { min-width: 0; }
  .cs-title .cs-lead { margin: 24px 0 0; max-width: 30ch; }
  .cs-head > .cs-meta { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(40px, 5vw, 64px); }
  .cs-visual { position: relative; display: grid; place-items: center; min-height: clamp(360px, 38vw, 520px); }
  /* Each project's name in its own brand type */
  [data-project="hideaway"] .cs-name { font: italic 500 clamp(72px, 10vw, 168px)/.95 "Cormorant Garamond", serif; letter-spacing: -.01em; }
  [data-project="afterimage"] .cs-name { font: 200 clamp(40px, 4.6vw, 76px)/1.05 "Josefin Sans", sans-serif; letter-spacing: .24em; text-transform: uppercase; white-space: nowrap; }
  [data-project="linnea"] .cs-name { font: 300 clamp(56px, 8vw, 132px)/1 "Cormorant Garamond", serif; letter-spacing: .3em; text-transform: uppercase; }
  [data-project="kiara"] .cs-name { font: 400 clamp(64px, 9vw, 150px)/1 Italiana, serif; letter-spacing: .18em; text-transform: uppercase; }
  [data-project="shine"] .cs-name { font: 400 clamp(96px, 13vw, 220px)/.9 Allison, cursive; letter-spacing: 0; }

  /* Hero visuals */
  .vis-cards { position: relative; width: min(520px, 100%); height: 480px; }
  .vis-cards .vc { position: absolute; width: 260px; padding: 10px 10px 16px; display: grid; gap: 2px; }
  .vis-cards .vc img { width: 100%; height: 190px; object-fit: cover; margin-bottom: 10px; }
  .vis-cards .vc b { font: italic 500 22px/1.1 "Cormorant Garamond", serif; }
  .vis-cards .vc span { font-size: 12px; color: var(--muted); }
  .vis-cards .vc em { font-style: normal; font-size: 12px; color: var(--blue); margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--gl-edge); }
  .vis-cards .vc:nth-child(1) { left: 0; top: 30px; rotate: -6deg; }
  .vis-cards .vc:nth-child(2) { left: 130px; top: 0; z-index: 2; }
  .vis-cards .vc:nth-child(3) { right: 0; top: 70px; rotate: 6deg; }
  .vis-poster { position: relative; width: min(320px, 80%); padding: 10px; overflow: hidden; }
  .vis-poster img { width: 100%; display: block; aspect-ratio: 3 / 4; object-fit: cover; }
  .vis-poster .scanline { position: absolute; left: 10px; right: 10px; top: 10px; height: 2px; background: #4FD8E8; box-shadow: 0 0 18px 4px rgb(79 216 232 / .6); animation: scan 4s ease-in-out infinite; }
  @keyframes scan { 0%, 100% { translate: 0 0; } 50% { translate: 0 calc(min(320px, 80vw) * 1.2); } }
  .vis-poster span { display: block; padding: 12px 4px 2px; font: 400 11px/1.4 "JetBrains Mono", monospace; letter-spacing: .12em; color: var(--blue); }
  .vis-ammo { display: grid; justify-items: center; gap: 8px; }
  .vis-ammo #ammo3d { width: clamp(280px, 32vw, 440px); aspect-ratio: 1; cursor: grab; }
  .vis-ammo #ammo3d canvas { width: 100% !important; height: 100% !important; display: block; }
  .vis-ammo span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
  .vis-arch { position: relative; width: min(360px, 80%); }
  .vis-arch img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 999px 999px 0 0; display: block; }
  .vis-arch span { position: absolute; left: -14%; bottom: 18px; font: 400 clamp(30px, 3vw, 44px)/1 "Pinyon Script", cursive; color: var(--ink); background: linear-gradient(140deg, var(--gl-a), var(--gl-b)); padding: 12px 20px; border: 1px solid var(--gl-edge); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
  .vis-sun { position: relative; width: clamp(300px, 34vw, 460px); aspect-ratio: 1; display: grid; place-items: center; }
  .vis-sun .sun { width: 74%; aspect-ratio: 1; background: color-mix(in srgb, var(--ink) 22%, transparent); -webkit-mask: url(images/shine/mandala-sun.png) center / contain no-repeat; mask: url(images/shine/mandala-sun.png) center / contain no-repeat; animation: sunspin 70s linear infinite; }
  @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .vis-sun .sun { background: rgb(255 248 238 / .55); } }
  :root[data-theme="dark"] .vis-sun .sun { background: rgb(255 248 238 / .55); }
  .vis-sun .e { position: absolute; font: 400 30px/1 Allison, cursive; color: var(--muted); }
  .vis-sun .e1 { top: 2%; left: 50%; translate: -50% 0; } .vis-sun .e2 { top: 34%; right: 0; } .vis-sun .e3 { bottom: 6%; right: 14%; } .vis-sun .e4 { bottom: 6%; left: 14%; } .vis-sun .e5 { top: 34%; left: 0; }

  /* Story with numbers */
  .cs-story { columns: 2 320px; column-gap: clamp(32px, 5vw, 72px); margin-top: 32px; }
  .cs-story p { margin: 0 0 18px; font: 400 clamp(19px, 1.6vw, 22px)/1.55 var(--font-display); break-inside: avoid; }
  .cs-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 40px; border-top: 1px solid var(--line); }
  .cs-stats div { padding: 24px 20px 0 0; display: grid; gap: 6px; min-width: 0; }
  .cs-stats b { font: var(--w-head) clamp(44px, 5vw, 76px)/1 var(--font-display); color: var(--blue); font-variant-numeric: tabular-nums; }
  .cs-stats span { color: var(--muted); font-size: 15px; }

  /* Flow steps */
  .cs-flow { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
  .cs-flow li { padding: 24px; min-width: 0; position: relative; }
  .cs-flow li + li::before { content: "→"; position: absolute; left: -12px; top: 26px; color: var(--blue); font-size: 14px; }
  .cs-flow small { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
  .cs-flow h3 { font: 400 26px/1.1 var(--font-display); margin: 12px 0 8px; }
  .cs-flow p { margin: 0; color: var(--muted); font-size: 15px; }

  /* Design system */
  .cs-system { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 20px; margin-top: 40px; }
  .cs-system > * { min-width: 0; }
  .cs-palette { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; align-content: start; }
  .cs-sw { display: grid; gap: 4px; min-width: 0; }
  .cs-sw i { display: block; aspect-ratio: 3 / 4; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .08); }
  .cs-sw b { font-size: 13px; font-weight: 500; margin-top: 6px; }
  .cs-sw span { font: 12px ui-monospace, Menlo, monospace; color: var(--muted); }
  .cs-types { display: grid; gap: 10px; }
  .cs-type { padding: 20px 24px; min-width: 0; overflow-wrap: anywhere; }
  .cs-type small { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
  .cs-type p { margin: 10px 0 0; color: var(--ink); }
  .ui-af, .ui-li, .ui-ki, .ui-sh { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; padding: 24px; }
  .ui-af { background: #07090D; } .ui-af span { font: 500 13px Archivo, sans-serif; padding: 12px 18px; }
  .ui-af .a1 { background: #4FD8E8; color: #07090D; } .ui-af .a2 { border: 1px solid #333842; color: #E9E6DF; } .ui-af .a3 { background: #D13FA0; color: #fff; font-size: 11px; padding: 6px 10px; } .ui-af .a4 { border: 1px solid #333842; color: #E9E6DF; font-family: "JetBrains Mono", monospace; } .ui-af .a4.off { color: #7c838c; text-decoration: line-through; }
  .ui-li { background: #F7F4EF; } .ui-li span { font: 300 12px Lexend, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #2B2824; }
  .ui-li .l1 { background: #6F7A5C; color: #fff; padding: 14px 22px; border-radius: 999px; } .ui-li .l2 { border: 1px solid #2B2824; padding: 12px 20px; border-radius: 999px; } .ui-li .l3 { background: #E4E8DC; padding: 8px 14px; border-radius: 999px; letter-spacing: .04em; text-transform: none; }
  .ui-ki { background: #F1F1F0; } .ui-ki span { font: 400 12px Montserrat, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #111; }
  .ui-ki .k1 { background: #111; color: #fff; padding: 14px 26px; } .ui-ki .k2 { border-bottom: 1px solid #111; padding: 6px 0; margin-right: 12px; } .ui-ki .k3 { border: 1px solid #c9c9c9; width: 40px; height: 40px; display: grid; place-items: center; letter-spacing: 0; } .ui-ki .k3.on { background: #111; color: #fff; border-color: #111; } .ui-ki .k4 { background: #fff; padding: 4px 8px; font-size: 10px; }
  .ui-sh { background: linear-gradient(135deg, #1b1410, #2b1c12); } .ui-sh span { font: 400 14px Caudex, serif; color: #F3E6D6; }
  .ui-sh .s1 { background: #2c2a7a; padding: 14px 26px; border: 1px solid #5a58c8; } .ui-sh .s2 { border: 1px solid rgb(255 255 255 / .25); padding: 8px 14px; border-radius: 999px; } .ui-sh .s2.on { background: rgb(255 255 255 / .2); } .ui-sh .s3 { display: inline-flex; gap: 6px; margin-left: auto; } .ui-sh .s3 i { width: 22px; height: 22px; border-radius: 50%; }

  /* Decisions */
  .cs-decs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
  .cs-dec { padding: clamp(24px, 3vw, 36px); min-width: 0; }
  .cs-dec small { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
  .cs-dec h3 { font: 400 26px/1.15 var(--font-display); margin: 10px 0 20px; }
  .cs-dec p { margin: 10px 0 0; color: var(--muted); }
  .cs-appgrid { grid-template-columns: repeat(5, minmax(0, 1fr)); }

  @media (max-width: 900px) {
    .cs-top, .cs-system, .cs-decs { grid-template-columns: 1fr; }
    .cs-head > .cs-meta, .cs-stats, .cs-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cs-flow li + li::before { display: none; }
    .cs-palette { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .cs-visual { min-height: 0; }
  }
  @media (prefers-reduced-motion: reduce) { .vis-poster .scanline, .vis-sun .sun { animation: none; } }

  .vis-shop .vc b { font: 400 21px/1.1 Italiana, serif; letter-spacing: .08em; text-transform: uppercase; }
  .vis-shop .vc img { height: 230px; object-position: 50% 30%; }
  /* Header: visual sits close to the text instead of at the far edge */
  .cs-top { grid-template-columns: auto minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); }
  .cs-title { max-width: 560px; }
  .cs-visual { justify-items: start; padding-left: clamp(0px, 2vw, 32px); }
  .vis-sun { width: clamp(320px, 36vw, 500px); }
  @media (max-width: 900px) { .cs-top { grid-template-columns: 1fr; } .cs-visual { justify-items: center; padding-left: 0; } }

  /* Hideaway hero cards: tilt toward the cursor, lift and come to the front on hover, open the place on click */
  a.vc { color: inherit; text-decoration: none; cursor: pointer; transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0px)); transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s, rotate .45s cubic-bezier(.2, .8, .2, 1); }
  a.vc:hover, a.vc:focus-visible { z-index: 5; --ty: -14px; rotate: 0deg; box-shadow: inset 0 1px 0 var(--gl-hi), 0 40px 60px -24px rgb(0 0 0 / .6); }
  a.vc .go { font-style: normal; font-size: 12px; color: var(--ink); margin-top: 8px; opacity: 0; translate: 0 6px; transition: opacity .3s, translate .3s; }
  a.vc:hover .go, a.vc:focus-visible .go { opacity: 1; translate: 0 0; }
  .vis-cards:hover a.vc:not(:hover) { filter: brightness(.8); }
  @media (prefers-reduced-motion: reduce) { a.vc { transition: none; } }
  /* Header pair (text + visual) is centred in the page as one group */
  .cs-top { grid-template-columns: minmax(0, 560px) auto; justify-content: center; gap: clamp(40px, 6vw, 112px); }
  .cs-visual { justify-items: center; padding-left: 0; }
  @media (max-width: 900px) { .cs-top { grid-template-columns: 1fr; } }

  /* Afterimage hero: four cast portraits as tall strips; the one under the cursor opens wide */
  .vis-cast { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: auto auto; gap: 8px; width: min(520px, 100%); height: auto; }
  .vis-cast .cast-strip { position: relative; display: block; height: clamp(360px, 34vw, 460px); overflow: hidden; color: #EDE6DA; text-decoration: none; transition: flex-grow .5s; }
  .vis-cast { display: flex; flex-wrap: wrap; }
  .vis-cast .cast-strip { flex: 1 1 0; min-width: 0; transition: flex-grow .6s cubic-bezier(.2, .8, .2, 1); }
  .vis-cast .cast-strip:hover, .vis-cast .cast-strip:focus-visible { flex-grow: 3.2; }
  .vis-cast .cast-strip img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; filter: grayscale(.5) brightness(.85); transition: filter .5s, scale .8s cubic-bezier(.2, .8, .2, 1); }
  .vis-cast .cast-strip:hover img, .vis-cast .cast-strip:focus-visible img { filter: none; scale: 1.04; }
  .vis-cast .cast-strip span { position: absolute; left: 8px; right: 8px; bottom: 8px; padding: 10px 12px; font-size: 12px; color: #C9D9DC; background: linear-gradient(140deg, rgb(20 26 32 / .7), rgb(20 26 32 / .4)); border-color: rgb(255 255 255 / .14); opacity: 0; translate: 0 8px; transition: opacity .35s .1s, translate .35s .1s; white-space: nowrap; overflow: hidden; }
  .vis-cast .cast-strip:hover span, .vis-cast .cast-strip:focus-visible span { opacity: 1; translate: 0 0; }
  .vis-cast .cast-strip span b { display: block; font: 300 15px/1.2 "Josefin Sans", sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #fff; margin-bottom: 2px; }
  .vis-cast p { flex-basis: 100%; margin: 10px 0 0; font: 400 11px/1.4 "JetBrains Mono", monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
  @media (prefers-reduced-motion: reduce) { .vis-cast .cast-strip, .vis-cast img, .vis-cast span { transition: none; } }
  /* Fix: the visual column needs a real width, otherwise absolutely placed cards spill out */
  .cs-top { grid-template-columns: minmax(0, 560px) minmax(0, 580px); }
  .cs-visual { width: 100%; }
  .vis-cards { width: 520px; max-width: 100%; margin-inline: auto; }
  @media (max-width: 900px) { .cs-top { grid-template-columns: 1fr; } .vis-cards { transform: scale(.8); transform-origin: top center; height: 400px; } }

  /* Tighter header, calmer card motion */
  .cs-top { gap: clamp(24px, 3vw, 48px); grid-template-columns: minmax(0, 540px) minmax(0, 540px); }
  .cs-visual { min-height: clamp(340px, 34vw, 480px); }
  a.vc { transition: transform .9s cubic-bezier(.2, .8, .2, 1), box-shadow .9s, rotate 1.1s cubic-bezier(.2, .8, .2, 1), filter .6s; }
  a.vc .go { transition: opacity .6s .15s, translate .6s .15s; }

  /* Kiara hero: a working quick view */
  .vis-qv { display: grid; grid-template-columns: 220px 1fr; gap: 20px; padding: 12px; width: min(540px, 100%); }
  .qv-img { position: relative; overflow: hidden; }
  .qv-img img { width: 100%; height: 300px; object-fit: cover; object-position: 50% 30%; display: block; transition: opacity .5s; }
  .qv-img img.fade { opacity: 0; }
  .qv-new { position: absolute; left: 8px; top: 8px; background: #fff; color: #111; font: 400 10px Montserrat, sans-serif; letter-spacing: .14em; padding: 4px 8px; text-transform: uppercase; }
  .qv-info { display: grid; align-content: center; gap: 10px; padding-right: 8px; }
  .qv-info small { font: 400 11px Montserrat, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
  .qv-info b { font: 400 30px/1 Italiana, serif; letter-spacing: .1em; text-transform: uppercase; }
  .qv-price { font: 300 15px Montserrat, sans-serif; }
  .qv-pick, .qv-size { display: flex; flex-wrap: wrap; gap: 6px; }
  .qv-pick button, .qv-size button { font: 400 11px Montserrat, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); background: transparent; border: 1px solid color-mix(in srgb, var(--ink) 30%, transparent); padding: 8px 10px; cursor: pointer; transition: background .3s, color .3s; }
  .qv-size button { width: 36px; padding: 8px 0; }
  .qv-pick button.on, .qv-size button.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
  .qv-add { margin-top: 4px; font: 500 12px Montserrat, sans-serif; letter-spacing: .16em; text-transform: uppercase; background: var(--ink); color: var(--bg); border: 0; padding: 14px; cursor: pointer; transition: transform .3s; }
  .qv-add:active { transform: scale(.97); }
  .qv-bag { font: 400 11px Montserrat, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
  .qv-bag i { font-style: normal; display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 6px; background: var(--blue); color: #fff; border-radius: 50%; transition: transform .4s cubic-bezier(.3, 1.6, .5, 1); }
  .qv-bag i.pop { transform: scale(1.4); }
  @media (max-width: 560px) { .vis-qv { grid-template-columns: 1fr; } }

  /* Shine hero: a phone that changes with the chosen element */
  .vis-el { position: relative; display: grid; justify-items: center; gap: 22px; }
  .el-glow { position: absolute; top: 4%; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle, var(--g1), var(--g2) 55%, transparent 72%); filter: blur(40px); opacity: .55; transition: background 1s; }
  .el-phone { position: relative; width: 210px; aspect-ratio: 390 / 844; padding: 7px; border-radius: 32px; background: #14110F; box-shadow: 0 40px 70px -30px rgb(0 0 0 / .7); }
  .el-phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 26px; display: block; transition: opacity .5s; }
  .el-phone img.fade { opacity: 0; }
  .el-chips { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
  .el-chips button { font: 400 26px/1 Allison, cursive; color: var(--ink); padding: 8px 16px 4px; cursor: pointer; background: linear-gradient(140deg, var(--gl-a), var(--gl-b)); border: 1px solid var(--gl-edge); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: border-color .4s, translate .4s; }
  .el-chips button:hover { translate: 0 -2px; }
  .el-chips button.on { border-color: var(--ink); }

  /* Phone header: a solid bar across the top, name + status on the left, a menu button on the right */
  .burger { display: none; }
  @media (max-width: 700px) {
    .topbar { padding-block: 0; }
    .topbar .wrap { padding-left: 0; padding-right: 0; }
    .glass-nav { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "logo burger" "status burger" "nav nav"; gap: 2px 12px; align-items: center; padding: calc(12px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 12px max(16px, env(safe-area-inset-left, 0px)); border: 0; border-bottom: 1px solid var(--gl-edge); box-shadow: 0 12px 30px -24px var(--gl-shadow); background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
    .glass-nav .logo { grid-area: logo; font-size: 20px; }
    .glass-nav .status { grid-area: status; justify-self: start; padding: 0; font-size: 12px; gap: 8px; }
    .glass-nav .status::before { width: 6px; height: 6px; box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 18%, transparent); }
    .burger { grid-area: burger; display: grid; gap: 5px; place-content: center; width: 44px; height: 44px; padding: 0; background: transparent; border: 0; cursor: pointer; color: var(--ink); }
    .burger i { display: block; width: 22px; height: 1.5px; background: currentColor; transition: transform .35s, opacity .25s; }
    .glass-nav.open .burger i:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
    .glass-nav.open .burger i:nth-child(2) { opacity: 0; }
    .glass-nav.open .burger i:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
    .glass-nav nav { grid-area: nav; display: none !important; flex-direction: column; gap: 0; margin-top: 12px; border-top: 1px solid var(--line); }
    .glass-nav.open nav { display: flex !important; }
    .glass-nav nav a { font: var(--w-head) 30px/1 var(--font-display); color: var(--ink); padding: 16px 0; border-bottom: 1px solid var(--line); }
  }

  /* ===== Phone layout for the home page ===== */
  .mribbon { display: none; }
  @media (max-width: 700px) {
    .ghero h1 { font-size: clamp(40px, 11vw, 52px); margin-top: 12px; }
    .ghero .lede { font-size: 16px; margin-top: 18px; }
    .ghero-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 26px; }
    .ghero-btns .btn { justify-content: center; padding: 16px 12px; }
    .find { margin-top: 18px; }

    /* Instead of the floating cards: a ribbon of projects that slides sideways as you scroll down */
    .ghero .stage { display: none; }
    .mribbon { display: block; margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px))); margin-top: 36px; overflow: hidden; }
    .mr-track { display: flex; gap: 12px; width: max-content; padding-inline: 16px; will-change: transform; }
    .mr-card { position: relative; width: 62vw; max-width: 260px; aspect-ratio: 3 / 4; display: block; overflow: hidden; color: var(--ink); text-decoration: none; }
    .mr-card img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.12); will-change: transform; }
    .mr-card span { position: absolute; left: 10px; right: 10px; bottom: 10px; padding: 12px 14px; display: grid; gap: 2px; font-size: 12px; color: var(--muted); }
    .mr-card span b { font: 400 22px/1.1 var(--font-display); color: var(--ink); }

    /* Less gap between the running name and the statement */
    .marquee { margin-top: 40px; }
    #services { padding-top: 40px; margin-top: 0; }
    .statement { font-size: clamp(26px, 7.4vw, 32px); }

    /* Services as a two-column list instead of boxed tags */
    .services { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; margin-top: 28px; }
    .services li { border: 0 !important; border-top: 1px solid var(--line) !important; padding: 12px 0 12px 16px; font-size: 14px; position: relative; }
    .services li::before { content: ""; position: absolute; left: 0; top: 19px; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }

    /* Contact: no floating chips, a full-width card and the facts as a list */
    .cstage { height: auto; display: block; }
    .cstage::before { display: none; }
    .cstage .chip { display: none; }
    .ccard { width: 100%; padding: 28px 20px; }
    .ccard h2 { font-size: clamp(34px, 9.6vw, 44px); }
    .cbtns .btn { width: 100%; justify-content: center; font-size: 15px; }
    .mfacts { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
    .mfacts li { border-top: 1px solid var(--line); padding: 12px 0 12px 16px; font-size: 13px; color: var(--muted); position: relative; }
    .mfacts li::before { content: ""; position: absolute; left: 0; top: 18px; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
  }
  @media (min-width: 701px) { .mfacts { display: none; } }
  @media (max-width: 700px) { .glass-nav { padding-top: calc(26px + env(safe-area-inset-top, 0px)); padding-bottom: 18px; } }

  /* Phone hero: variant C, a wheel of projects that turns while the section is pinned */
  @media (max-width: 700px) {
    .mribbon { height: 240vh; overflow: visible; margin-top: 24px; position: relative; }
    .mr-stick { position: sticky; top: 0; height: 100vh; overflow: hidden; }
    .mr-hint { position: absolute; left: 0; right: 0; top: calc(130px + env(safe-area-inset-top, 0px)); margin: 0; text-align: center; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
    .mr-track { position: absolute; left: 50%; top: 98%; width: 0; height: 0; padding: 0; display: block; will-change: transform; transition: none; }
    .mr-card { position: absolute; width: 178px; max-width: none; aspect-ratio: 3 / 4; left: -89px; top: -560px; transform-origin: 50% 560px; transition: filter .4s; filter: brightness(.7); }
    .mr-card.cur { filter: none; }
    .mr-card img { transform: none !important; }
    .mr-card span { left: 6px; right: 6px; bottom: 6px; padding: 9px 11px; }
    .mr-card span b { font-size: 19px; }
  }

  /* Phone hero carousel, round 2: compact, no light beam, cards float in 3D */
  @media (max-width: 700px) {
    .ghero::before { display: none; }
    .mribbon { height: 190vh; margin-top: 8px; }
    .mr-stick { top: calc(96px + env(safe-area-inset-top, 0px)); height: 470px; perspective: 900px; }
    .mr-hint { top: 8px; }
    .mr-track { top: 44px; left: 50%; perspective: 900px; transform-style: preserve-3d; }
    .mr-card { width: 210px; left: -105px; top: 0; transform-origin: 50% 50%; filter: brightness(.65); transition: filter .5s; }
    .mr-card.cur { filter: none; }
  }
  @media (max-width: 700px) {
    .mr-stick { top: max(calc(90px + env(safe-area-inset-top, 0px)), calc(50vh - 230px)); height: 480px; }
    .mr-card { width: min(66vw, 270px); left: calc(min(66vw, 270px) / -2); }
    .mribbon { height: 170vh; }
  }

  /* ===== Phone, round 3 ===== */
  @media (max-width: 700px) {
    .glass-nav { padding-top: calc(34px + env(safe-area-inset-top, 0px)); padding-bottom: 22px; row-gap: 8px; }
    .mribbon { height: 150vh; }
    .mr-stick { height: 430px; }

    .services li { border-top: 0 !important; border-bottom: 1px solid var(--line) !important; }
    .mfacts li { border-top: 0; border-bottom: 1px solid var(--line); }

    /* Calmer type sizes and tighter sections on a phone */
    section.block { padding-block: 56px 0; }
    h2, .block h2 { font-size: clamp(34px, 9.4vw, 42px); }
    .wtitle { font-size: clamp(44px, 12vw, 56px); }
    .case-info h3 { font-size: 34px; }
    .work-top p { margin-top: 12px; }
    .works { gap: 56px; margin-top: 32px; }

    /* No folder on a phone; cases slide in from the sides */
    .folder { display: none !important; }
    .js-reveal .case.slide-in { opacity: 0; transform: translateX(var(--sx)); transition: opacity .8s ease, transform 1s cubic-bezier(.2, .8, .2, 1); }
    .case.from-l { --sx: -60px; } .case.from-r { --sx: 60px; }
    .js-reveal .case.slide-in.shown { opacity: 1; transform: none; }
    .case-img { transform: none !important; opacity: 1 !important; }
  }

  /* Phone: About page sizes and spacing */
  @media (max-width: 700px) {
    .ab-head { padding-block: 40px 28px; }
    .ab-head h1 { font-size: clamp(38px, 10.4vw, 46px); min-height: 0; line-height: 1; }
    .ab-intro, .ab-side { gap: 28px; }
    .ab-bio p.big, .ab-side p.big { font-size: 22px; margin-bottom: 18px; }
    .ab-facts, .ab-side, .ab-steps { margin-top: 48px; }
    .ab-facts { gap: 12px; }
    .fact { padding: 22px 20px; }
    .fact li { font-size: 15px; gap: 12px; }
    .fact li span:last-child { white-space: nowrap; }
    .fact .tools { font-size: 20px; }
    .ab-steps h2 { font-size: clamp(34px, 9.4vw, 42px); }
    .ab-steps ol { margin-top: 28px; gap: 20px; }
    .ab-steps h3 { font-size: 26px; }
  }
  /* Phone: "Outside client work" stacks — photo full width, text below */
  @media (max-width: 900px) {
    .ab-side { grid-template-columns: 1fr; gap: 24px; }
    .ab-side .ab-photo.small { max-width: none; width: 100%; aspect-ratio: 4 / 5; justify-self: stretch; }
    .ab-side p { max-width: none; }
  }
  @media (max-width: 700px) {
    .ab-side .kick { margin-bottom: 12px; }
    .ab-side p { font-size: 16px; line-height: 1.6; }
    .ab-side p.big { font-size: 22px; line-height: 1.35; }
  }
  @media (max-width: 700px) {
    .ab-bio p:last-child { margin-bottom: 0; }
    .ab-facts { margin-top: 28px !important; }
    .fact li { padding-bottom: 12px; }
    .fact ul { gap: 12px; }
  }

  /* ===== Case pages on tablets and phones (placed last so it wins over desktop header rules) ===== */
  @media (max-width: 900px) {
    .cs-top { grid-template-columns: 1fr !important; justify-content: stretch; gap: 32px; }
    .cs-title { max-width: none; }
    .cs-visual { min-height: 0; justify-items: center; width: 100%; }
    .cs-head > .cs-meta, .cs-stats, .cs-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cs-meta div + div { border-left: 0; }
    .cs-meta div:nth-child(even) { border-left: 1px solid var(--gl-edge); }
    .cs-meta div:nth-child(n+3) { border-top: 1px solid var(--gl-edge); }
    .cs-system, .cs-decs, .cs-notes, .cs-gallery, .cs-row, .cs-did, .cs-next { grid-template-columns: 1fr; }
    .cs-row:nth-child(even) .cs-win { order: 0; }
  }
  @media (max-width: 700px) {
    .cs-head { padding-block: 24px 24px; }
    .cs-back { margin-bottom: 24px; }
    .cs-title .cs-lead { font-size: 19px; margin-top: 16px; max-width: none; }
    .cs-btns { display: grid; grid-template-columns: 1fr; gap: 10px; }
    .cs-btns .btn { justify-content: center; }
    .cs-go { padding: 16px 20px; font-size: 16px; }
    [data-project="hideaway"] .cs-name { font-size: 64px; }
    [data-project="afterimage"] .cs-name { font-size: 30px; letter-spacing: .18em; white-space: normal; }
    [data-project="linnea"] .cs-name { font-size: 46px; letter-spacing: .22em; }
    [data-project="kiara"] .cs-name { font-size: 54px; letter-spacing: .14em; }
    [data-project="shine"] .cs-name { font-size: 96px; }
    .cs-head > .cs-meta { margin-top: 28px; }
    .cs-meta div { padding: 14px 16px; }
    .cs-meta dd { font-size: 14px; }

    /* hero visuals sized for a phone */
    .vis-cards { width: 100%; height: 360px; transform: none !important; }
    .vis-cards .vc { width: 58%; }
    .vis-cards .vc img { height: 140px; }
    .vis-cards .vc:nth-child(1) { left: 0; top: 30px; }
    .vis-cards .vc:nth-child(2) { left: 21%; top: 0; }
    .vis-cards .vc:nth-child(3) { left: auto; right: 0; top: 60px; }
    .vis-cast { width: 100%; }
    .vis-cast .cast-strip { height: 300px; }
    .vis-ammo #ammo3d { width: 260px; }
    .vis-qv { grid-template-columns: 1fr; width: 100%; }
    .qv-img img { height: 260px; }
    .el-phone { width: 190px; }
    .el-glow { width: 260px; height: 260px; }

    /* sections */
    .cs-sec h2 { font-size: clamp(32px, 9vw, 40px); }
    .cs-sub { font-size: 15px; }
    .cs-story { columns: 1; }
    .cs-story p { font-size: 18px; }
    .cs-stats b { font-size: 40px; }
    .cs-stats div { padding: 18px 12px 0 0; }
    .cs-flow li { padding: 18px; }
    .cs-palette { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
    .cs-sw b { font-size: 11px; } .cs-sw span { font-size: 10px; }
    .cs-type p { font-size: 26px !important; overflow-wrap: anywhere; }
    .cs-types .cs-type:nth-child(2) p, .cs-types .cs-type:nth-child(3) p { font-size: 15px !important; }
    .ui-af, .ui-li, .ui-ki, .ui-sh { padding: 16px; }
    .cs-txt h3 { font-size: 28px; }
    .cs-phones { padding: 20px; gap: 16px; }
    .cs-phone { width: calc(50% - 8px); }
    .cs-appgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 16px; }
    .cs-live { min-height: 300px; }
    .cs-live b { font-size: 26px; }
    .cs-live > span { padding: 22px 20px; }
    .cs-next b { font-size: 46px; }
    .cs-did b, .cs-dec h3 { font-size: 22px; }
  }
  @media (max-width: 700px) {
    /* Hideaway hero: the three place cards become a swipeable row, nothing overlaps or gets cut */
    .vis-cards:not(.vis-shop) { position: static; height: auto; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -16px; padding: 4px 16px 16px; width: auto; max-width: none; -webkit-overflow-scrolling: touch; }
    .vis-cards:not(.vis-shop) .vc { position: relative; left: auto !important; right: auto !important; top: auto !important; rotate: 0deg !important; flex: 0 0 72%; width: auto; scroll-snap-align: center; }
    .vis-cards:not(.vis-shop) .vc .go { opacity: 1; translate: 0 0; }
    .cs-visual { overflow: visible; }
    [data-project="kiara"] .cs-types .cs-type:nth-child(3) p { font-size: 30px !important; }
  }
