/* Mahmoud Yosri. Blueprint theme: drafting grid, expanded type, handwritten notes. */
:root {
  --bg: #142a7a;
  --bg-2: #0f2266;
  --panel: rgba(255, 255, 255, .045);
  --panel-solid: #1a3189;
  --ink: #eef2ff;
  --ink-2: #c3cdf2;
  --ink-3: #8f9ed6;
  --rule: rgba(214, 226, 255, .22);
  --grid: rgba(214, 226, 255, .07);
  --grid-major: rgba(214, 226, 255, .13);
  --note: #ffd447;
  --note-ink: #142a7a;
  --frame: #0b1a52;
  --argon: #a99cff;
  --rubies: #ff7b95;
  --codenote: #d2a8ff;
  --shadow: 0 30px 80px -20px rgba(3, 10, 40, .65);
  --max: 1200px;
  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f2f4fb;
  --bg-2: #e8ecf8;
  --panel: rgba(20, 42, 122, .035);
  --panel-solid: #ffffff;
  --ink: #142a7a;
  --ink-2: #33468f;
  --ink-3: #6573aa;
  --rule: rgba(20, 42, 122, .2);
  --grid: rgba(20, 42, 122, .055);
  --grid-major: rgba(20, 42, 122, .1);
  --note: #c2410c;
  --note-ink: #ffffff;
  --frame: #142a7a;
  --argon: #5b3df5;
  --rubies: #b3133f;
  --codenote: #7234d6;
  --shadow: 0 30px 70px -24px rgba(20, 42, 122, .35);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6;
  font-variation-settings: "wdth" 100; -webkit-font-smoothing: antialiased; overflow-x: hidden;
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
  transition: background-color .4s ease, color .4s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--display); margin: 0; line-height: 1.02; font-weight: 800; font-stretch: 125%; font-variation-settings: "wdth" 125; letter-spacing: -0.01em; }
::selection { background: var(--note); color: var(--note-ink); }
:focus-visible { outline: 2px dashed var(--note); outline-offset: 4px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } body { font-size: 16px; } }
.hand { font-family: var(--hand); color: var(--note); font-weight: 600; line-height: 1.1; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.topbar .wrap { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { text-decoration: none; display: flex; align-items: baseline; gap: 10px; white-space: nowrap; }
.brand b { font-family: var(--display); font-weight: 800; font-variation-settings: "wdth" 125; font-stretch: 125%; font-size: 18px; }
.brand .hand { font-size: 20px; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 15px; color: var(--ink-2); padding: 8px 12px; border-radius: 6px; }
.nav a:hover { color: var(--ink); background: var(--panel); }
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--note); border-radius: 0; }
.theme-btn { margin-left: 6px; border: 1px solid var(--rule); background: transparent; color: var(--ink); height: 36px; padding: 0 12px; border-radius: 18px; cursor: pointer; font: 500 14px var(--body); display: inline-flex; align-items: center; gap: 8px; }
.theme-btn:hover { background: var(--panel); }
.theme-btn svg { width: 16px; height: 16px; }
@media (max-width: 780px) { .nav .hide-sm { display: none; } .brand .hand { display: none; } .theme-btn span { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 12px 20px; font: 600 15px var(--body); text-decoration: none; color: var(--ink); border: 1.5px solid var(--ink); border-radius: 4px; background: transparent; transition: background .2s ease, color .2s ease, transform .2s ease; }
.btn:hover { background: var(--ink); color: var(--bg); }
.btn.solid { background: var(--note); border-color: var(--note); color: var(--note-ink); }
.btn.solid:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn svg { width: 17px; height: 17px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Hero: exploded view ---------- */
.hero { position: relative; padding: 70px 0 40px; min-height: calc(100vh - 64px); display: flex; align-items: center; }
.hero .wrap { display: grid; grid-template-columns: 1.02fr 1fr; gap: 30px; align-items: center; width: 100%; }
.hero-name { font-size: clamp(50px, 7.3vw, 106px); line-height: .9; letter-spacing: -0.02em; }
.hero-name span { display: block; }
.hero-name .outline { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.hero-sub { font-size: clamp(19px, 2vw, 23px); color: var(--ink-2); max-width: 30ch; margin: 26px 0 30px; line-height: 1.4; }
.hero-sub b { color: var(--ink); font-weight: 600; }
.hero-meta { margin-top: 34px; display: flex; gap: 26px; flex-wrap: wrap; color: var(--ink-3); font-size: 14px; }
.hero-meta .hand { font-size: 22px; }

.exploded { position: relative; height: 600px; perspective: 1600px; }
.stack { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--rx, 52deg)) rotateZ(var(--rz, -38deg)); transition: transform .25s ease-out; }
.layer { position: absolute; left: 50%; top: 50%; width: 300px; height: 210px; margin: -105px 0 0 -150px; border: 1.5px solid var(--ink); background: color-mix(in srgb, var(--bg) 70%, transparent); border-radius: 10px; transform-style: preserve-3d; transform: translateZ(var(--z)); transition: transform 1.1s cubic-bezier(.2, .8, .2, 1); overflow: hidden; }
.layer::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--grid-major) 1px, transparent 1px), linear-gradient(90deg, var(--grid-major) 1px, transparent 1px); background-size: 23px 23px; opacity: .6; pointer-events: none; }
.layer.app { --z: 160px; background: var(--frame); }
.layer.api { --z: 0px; }
.layer.model { --z: -160px; }
.layer.app img { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); object-fit: cover; object-position: top left; border-radius: 6px; z-index: 1; }
.layer.api pre { position: relative; z-index: 1; margin: 0; padding: 22px 24px; font: 500 15px/1.75 ui-monospace, "SF Mono", Menlo, monospace; color: var(--ink); }
.layer.api pre i { font-style: normal; color: var(--note); }
.layer.model svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.loading .layer { transform: translateZ(0); }
.loading .layer.app { transform: translateZ(14px); }
.loading .layer.model { transform: translateZ(-14px); }

.callout { position: absolute; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); padding: 4px 10px 6px; border-radius: 6px; font-family: var(--hand); color: var(--note); font-size: 26px; line-height: 1.05; font-weight: 600; pointer-events: none; transition: opacity .6s ease .9s, transform .6s ease .9s; }
.callout small { display: block; font-family: var(--body); font-size: 13px; color: var(--ink-3); font-weight: 400; margin-top: 4px; letter-spacing: 0; }
.callout.c1 { left: -10px; top: 6%; }
.callout.c2 { right: -24px; top: 56%; text-align: right; }
.callout.c3 { left: -10px; bottom: 6%; }
.leaders { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 4; pointer-events: none; overflow: visible; }
.leaders path { fill: none; stroke: var(--note); stroke-width: 1.6; stroke-dasharray: 600; stroke-dashoffset: 0; transition: stroke-dashoffset 1.2s ease .7s; }
.leaders circle { fill: var(--note); transition: opacity .3s ease 1.6s; }
.loading .leaders path { stroke-dashoffset: 600; }
.loading .leaders circle, .loading .callout { opacity: 0; }
.loading .callout { transform: translateY(8px); }
.coords { position: absolute; right: 28px; bottom: 18px; font: 500 12px ui-monospace, Menlo, monospace; color: var(--ink-3); letter-spacing: .04em; }
@media (max-width: 980px) {
  .hero { min-height: 0; padding-top: 44px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .exploded { height: 470px; margin: 0 -10px; }
  .layer { width: 250px; height: 175px; margin: -88px 0 0 -125px; }
  .layer.app { --z: 120px; } .layer.model { --z: -120px; }
  .layer.api pre { font-size: 12px; padding: 14px 16px; }
  .callout { font-size: 21px; } .callout.c2 { right: 0; }
  .coords { display: none; }
}

/* ---------- Sections ---------- */
section { padding: 90px 0; position: relative; }
.sheet-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 44px; padding-bottom: 18px; border-bottom: 1.5px solid var(--ink); }
.sheet-head h2 { font-size: clamp(34px, 5vw, 64px); }
.sheet-head .hand { font-size: 24px; max-width: 30ch; }
@media (max-width: 640px) { section { padding: 60px 0; } }

/* Project spec sheets */
.spec { --c: var(--note); display: grid; grid-template-columns: 0.9fr 1.25fr; gap: 56px; align-items: center; padding: 70px 0; border-bottom: 1px dashed var(--rule); }
.spec:last-child { border-bottom: 0; }
.spec.flip { grid-template-columns: 1.25fr 0.9fr; }
.spec.flip .spec-text { order: 2; }
.spec.argon { --c: var(--argon); } .spec.rubies { --c: var(--rubies); } .spec.codenote { --c: var(--codenote); }
.spec-text .kind { font-family: var(--hand); font-size: 24px; color: var(--c); margin-bottom: 6px; }
.spec-text h3 { font-size: clamp(48px, 6.4vw, 92px); line-height: .9; margin-bottom: 18px; }
.spec-text h3 a { text-decoration: none; }
.spec-text .one { font-size: 21px; line-height: 1.35; color: var(--ink); margin-bottom: 14px; }
.spec-text p { color: var(--ink-2); }
.parts { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 18px 0 26px; padding: 12px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); font-size: 14px; color: var(--ink-3); }
.parts b { color: var(--ink); font-weight: 600; margin-right: 4px; }
.readmore { font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--c); padding-bottom: 3px; }
.readmore:hover { color: var(--c); }
@media (max-width: 960px) { .spec, .spec.flip { grid-template-columns: 1fr; gap: 30px; padding: 48px 0; } .spec.flip .spec-text { order: 0; } }

/* Framed screenshots with tilt and notes */
.rig { position: relative; perspective: 1400px; }
.tilt { position: relative; transform-style: preserve-3d; transition: transform .35s ease-out; }
.browser { background: var(--frame); border: 1.5px solid var(--ink); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.browser .bar { display: flex; gap: 6px; align-items: center; padding: 9px 12px; border-bottom: 1.5px solid var(--ink); background: var(--panel-solid); }
.browser .bar i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--ink-3); }
.browser .bar span { margin-left: 10px; font-size: 12px; color: var(--ink-3); }
.browser img { width: 100%; aspect-ratio: 16 / 10.2; object-fit: cover; object-position: top left; }
.phone-float { position: absolute; width: 23%; right: -4%; bottom: -12%; border: 5px solid #070d2b; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); transform: translateZ(70px); background: #000; }
.phone-float img { width: 100%; aspect-ratio: 9 / 18; object-fit: cover; object-position: top; }
.note { position: absolute; z-index: 6; font-family: var(--hand); color: var(--note); font-weight: 600; font-size: 25px; line-height: 1.05; width: max-content; max-width: 220px; transform: translateZ(90px); pointer-events: none; }
.note svg { position: absolute; overflow: visible; width: 90px; height: 70px; }
.note svg path { fill: none; stroke: var(--note); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 220; stroke-dashoffset: 220; transition: stroke-dashoffset .9s ease .25s; }
.note .t { opacity: 0; transition: opacity .5s ease; display: block; }
.drawn .note svg path { stroke-dashoffset: 0; }
.drawn .note .t { opacity: 1; }
@media (max-width: 960px) {
  .rig { margin-bottom: 30px; }
  .note { position: static; transform: none; max-width: none; font-size: 22px; margin-top: 14px; display: block; }
  .note svg { display: none; }
  .note .t::before { content: "↳ "; }
  .phone-float { display: none; }
}

/* Also on the bench: list rows */
.bench { border-top: 1.5px solid var(--ink); }
.bench-row { display: grid; grid-template-columns: 1.1fr 1.6fr auto; gap: 26px; align-items: baseline; padding: 24px 6px; border-bottom: 1px solid var(--rule); position: relative; transition: background .2s ease; }
.bench-row:hover { background: var(--panel); }
.bench-row h3 { font-size: 24px; font-variation-settings: "wdth" 112; font-stretch: 112%; }
.bench-row h3 a { text-decoration: none; }
.bench-row h3 a:hover { text-decoration: underline; }
.bench-row .year { display: block; font-family: var(--hand); color: var(--note); font-size: 20px; font-weight: 600; margin-top: 4px; }
.bench-row p { margin: 0; color: var(--ink-2); font-size: 16px; }
.bench-row .tags { font-size: 13.5px; color: var(--ink-3); text-align: right; white-space: nowrap; }
@media (max-width: 820px) { .bench-row { grid-template-columns: 1fr; gap: 8px; } .bench-row .tags { text-align: left; white-space: normal; } }

/* Bill of materials */
.bom-wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 50px; }
.bom { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.bom caption { text-align: left; font-family: var(--display); font-weight: 800; font-variation-settings: "wdth" 125; font-size: 22px; padding-bottom: 12px; }
.bom th, .bom td { text-align: left; padding: 13px 12px 13px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.bom thead th { font-size: 13px; color: var(--ink-3); font-weight: 500; border-bottom: 1.5px solid var(--ink); }
.bom td:first-child { color: var(--ink-3); width: 2.5em; font-variant-numeric: tabular-nums; }
.bom td:nth-child(2) { font-weight: 600; white-space: nowrap; }
.bom td:last-child { color: var(--ink-2); }
.certs { list-style: none; margin: 0; padding: 0; }
.certs li { padding: 13px 0; border-bottom: 1px solid var(--rule); }
.certs li b { display: block; font-weight: 600; }
.certs li span { color: var(--ink-3); font-size: 14px; }
@media (max-width: 900px) { .bom-wrap { grid-template-columns: 1fr; } .bom td:nth-child(2) { white-space: normal; } }

/* Title block (contact) */
.titleblock { border: 2px solid var(--ink); display: grid; grid-template-columns: 2fr 1fr 1fr; }
.titleblock > div { padding: 18px 22px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.titleblock > div:nth-child(3n) { border-right: 0; }
.titleblock .big { grid-row: span 2; display: flex; flex-direction: column; justify-content: space-between; gap: 22px; }
.titleblock .big h2 { font-size: clamp(32px, 4.6vw, 58px); }
.titleblock .big .hand { font-size: 26px; }
.titleblock dt { font-size: 12.5px; color: var(--ink-3); margin-bottom: 4px; }
.titleblock dd { margin: 0; font-weight: 600; font-size: 16px; word-break: break-word; }
.titleblock dd a { text-decoration: none; }
.titleblock dd a:hover { text-decoration: underline; color: var(--note); }
.titleblock .wide { grid-column: span 3; border-right: 0; border-bottom: 0; display: flex; gap: 10px; flex-wrap: wrap; justify-content: space-between; align-items: center; }
@media (max-width: 760px) { .titleblock { grid-template-columns: 1fr 1fr; } .titleblock .big { grid-column: span 2; grid-row: auto; } .titleblock > div:nth-child(3n) { border-right: 1px solid var(--ink); } .titleblock > div:nth-child(2n+1):not(.big) { border-right: 0; } .titleblock .wide { grid-column: span 2; } }

footer { padding: 34px 0 50px; color: var(--ink-3); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Case study pages ---------- */
.case { --c: var(--note); }
.case.argon { --c: var(--argon); } .case.rubies { --c: var(--rubies); } .case.codenote { --c: var(--codenote); }
.case-hero { padding: 54px 0 30px; }
.back { color: var(--ink-3); text-decoration: none; font-size: 15px; display: inline-flex; gap: 8px; align-items: center; margin-bottom: 34px; }
.back:hover { color: var(--ink); }
.back svg { width: 16px; height: 16px; }
.case-hero .kind { font-family: var(--hand); color: var(--c); font-size: 28px; font-weight: 600; display: flex; gap: 10px; align-items: center; }
.case-hero .kind img { width: 34px; height: 34px; border-radius: 9px; }
.case-hero h1 { font-size: clamp(64px, 12vw, 170px); line-height: .86; margin: 6px 0 22px; }
.case-hero .lede { font-size: clamp(19px, 2.2vw, 24px); color: var(--ink-2); max-width: 44ch; line-height: 1.4; }
.case-hero .actions { margin: 26px 0 0; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border: 1.5px solid var(--ink); margin-top: 40px; }
.facts div { padding: 14px 18px; border-right: 1px solid var(--rule); }
.facts div:last-child { border-right: 0; }
.facts dt { font-size: 12.5px; color: var(--ink-3); margin-bottom: 4px; }
.facts dd { margin: 0; font-weight: 600; font-size: 15.5px; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr 1fr; } .facts div:nth-child(2) { border-right: 0; } .facts div:nth-child(-n+2) { border-bottom: 1px solid var(--rule); } }

.cover { margin-top: 10px; margin-bottom: 60px; }
@media (max-width: 960px) { .cover { margin-bottom: 0; } }
.cover .browser img { aspect-ratio: auto; cursor: zoom-in; }
.prose { max-width: 66ch; }
.prose h2 { font-size: clamp(30px, 4vw, 48px); margin-bottom: 20px; }
.prose p { color: var(--ink-2); font-size: 18px; }
.prose strong { color: var(--ink); background: linear-gradient(transparent 62%, color-mix(in srgb, var(--c) 45%, transparent) 62%); }
.margin-note { font-family: var(--hand); color: var(--note); font-size: 25px; font-weight: 600; line-height: 1.1; margin-bottom: 14px; }

.chapter { display: grid; grid-template-columns: 0.8fr 1.4fr; gap: 50px; padding: 54px 0; border-top: 1px dashed var(--rule); align-items: start; }
.chapter .text { position: sticky; top: 96px; }
.chapter .step { font-family: var(--hand); font-size: 46px; color: var(--c); line-height: 1; display: block; margin-bottom: 6px; }
.chapter h3 { font-size: clamp(26px, 2.8vw, 34px); margin-bottom: 14px; font-variation-settings: "wdth" 112; font-stretch: 112%; }
.chapter .text p, .chapter .text li { color: var(--ink-2); font-size: 16px; }
.chapter .text ul { padding-left: 1.1em; margin: 0; }
.chapter .text li { margin-bottom: .55em; }
.chapter .text li::marker { color: var(--c); }
@media (max-width: 900px) { .chapter { grid-template-columns: 1fr; gap: 22px; } .chapter .text { position: static; } }

.shots { display: grid; gap: 16px; }
.shots.two { grid-template-columns: 1fr 1fr; }
.shots.phones { grid-template-columns: repeat(3, 1fr); }
.shots.phones-2 { grid-template-columns: repeat(2, minmax(0, 240px)); }
@media (max-width: 560px) { .shots.two { grid-template-columns: 1fr; } .shots.phones { grid-template-columns: repeat(2, 1fr); } }
figure { margin: 0; }
.shot { background: var(--frame); border: 1.5px solid var(--ink); border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); transition: transform .3s ease; }
.shot:hover { transform: translateY(-3px) rotate(-.4deg); }
.shot img { width: 100%; cursor: zoom-in; }
.shot.crop img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
.shot.phone { border-radius: 22px; border: 5px solid #070d2b; }
figcaption { font-family: var(--hand); font-size: 20px; color: var(--ink-3); padding: 8px 2px 0; line-height: 1.15; }

.flow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, 1fr); border: 1.5px solid var(--ink); }
.flow li { padding: 18px 16px 20px; border-right: 1px solid var(--rule); color: var(--ink-2); font-size: 14.5px; position: relative; }
.flow li:last-child { border-right: 0; }
.flow li .n { font-family: var(--hand); color: var(--c); font-size: 34px; line-height: 1; display: block; margin-bottom: 8px; }
.flow li b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }
@media (max-width: 980px) { .flow { grid-template-columns: repeat(3, 1fr); } .flow li:nth-child(3) { border-right: 0; } .flow li:nth-child(-n+3) { border-bottom: 1px solid var(--rule); } }
@media (max-width: 560px) { .flow { grid-template-columns: 1fr 1fr; } .flow li:nth-child(3) { border-right: 1px solid var(--rule); } .flow li:nth-child(2n) { border-right: 0; } .flow li:nth-child(-n+4) { border-bottom: 1px solid var(--rule); } }

.decisions { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 50px; }
.decisions li { padding: 20px 0 20px 38px; border-bottom: 1px solid var(--rule); position: relative; color: var(--ink-2); font-size: 16px; }
.decisions li::before { content: ""; position: absolute; left: 4px; top: 26px; width: 16px; height: 16px; border: 2px solid var(--c); border-radius: 50%; }
.decisions li b { display: block; color: var(--ink); font-size: 18px; margin-bottom: 4px; }
@media (max-width: 760px) { .decisions { grid-template-columns: 1fr; } }

.layers { display: grid; gap: 0; }
.layers div { border: 1.5px solid var(--ink); padding: 16px 20px; background: var(--panel); }
.layers b { display: block; font-size: 17px; }
.layers span { color: var(--ink-2); font-size: 15px; }
.layers .arrow { border: 0; background: none; text-align: center; font-family: var(--hand); color: var(--note); font-size: 22px; padding: 4px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.private { font-family: var(--hand); font-size: 23px; color: var(--note); line-height: 1.2; max-width: 52ch; }
.next-project { display: flex; justify-content: space-between; align-items: center; gap: 20px; text-decoration: none; border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); padding: 26px 0; margin-top: 40px; }
.next-project small { font-family: var(--hand); color: var(--note); font-size: 24px; display: block; }
.next-project b { font-family: var(--display); font-variation-settings: "wdth" 125; font-stretch: 125%; font-weight: 800; font-size: clamp(38px, 6vw, 72px); line-height: 1; }
.next-project svg { width: 48px; height: 48px; flex: none; transition: transform .3s ease; }
.next-project:hover svg { transform: translateX(10px); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(6, 12, 40, .94); display: none; align-items: center; justify-content: center; padding: 56px 64px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.lightbox.tall { align-items: flex-start; overflow-y: auto; }
.lightbox.tall img { max-height: none; }
.lightbox button { position: fixed; background: rgba(255,255,255,.12); border: 0; color: #fff; width: 46px; height: 46px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.lightbox button:hover { background: rgba(255,255,255,.24); }
.lightbox button svg { width: 22px; height: 22px; }
.lightbox .lb-close { top: 14px; right: 14px; }
.lightbox .lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-cap { position: fixed; bottom: 14px; left: 50%; transform: translateX(-50%); color: #ffd447; font-family: var(--hand); font-size: 22px; max-width: calc(100% - 32px); text-align: center; }
@media (max-width: 640px) { .lightbox { padding: 64px 10px; } .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 10px; transform: none; } .lightbox .lb-cap { bottom: 64px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; animation: none !important; }
}
