/* Shared public-page direction, informed by the five references in the vault.
   Original assets; system typography, with an editorial Georgia accent. */
.reference-family {
  --paper: #191918; --ink: #f0eee7; --soft: #b9b8b1; --line: #ffffff24;
  --accent: #df987c; --head: "Segoe UI Variable Display", "Segoe UI", -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
  --body: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
  color-scheme: dark; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.65;
}
.reference-family .wrap { max-width: 1240px; padding-inline: clamp(22px, 5vw, 64px); margin-inline: auto; }
.reference-family h1, .reference-family h2, .reference-family h3 { font-family: var(--head); font-weight: 500; text-wrap: balance; }
.reference-family h1 { letter-spacing: -.055em; line-height: 1.06; }
.reference-family em { font-family: Georgia, "Times New Roman", serif; font-weight: 400; color: var(--accent); letter-spacing: -.045em; }
.reference-family p { text-wrap: pretty; }
.reference-family .skip { z-index: 100; }
.reference-family .site-header { position: sticky; top: 0; z-index: 20; background: #191918ed; border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.reference-family .bar { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.reference-family .brand { color: var(--ink); font-size: 19px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.reference-family .brand-face { border-radius: 50%; }
.reference-family .nav ul { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.reference-family .nav a { color: var(--soft); font-size: 14px; text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; padding-inline: 0; white-space: nowrap; }
.reference-family .nav a:hover { color: var(--ink); }
.reference-family .nav-mail { padding: 0; border: 0; background: none; }
.folio .site-header .nav ul { gap: 8px; }
.folio .site-header .nav a { padding: 8px 14px; line-height: 1.4; }
.folio .site-header .nav a { position: relative; isolation: isolate; border-radius: 999px; background: transparent; transition: color .2s ease, transform .2s ease; }
.folio .site-header .nav a::before { content: ''; position: absolute; z-index: -1; inset: 0; border-radius: inherit; opacity: 0; pointer-events: none; background: linear-gradient(135deg,#ffffff35,#ffffff0a 40%,#df987c22 75%,#ffffff30); backdrop-filter: blur(8px) saturate(1.8); -webkit-backdrop-filter: blur(8px) saturate(1.8); box-shadow: inset 0 1px 1px #ffffffb0,inset 0 -1px 1px #ffffff60,inset 1px 0 5px #fff3,inset -1px 0 5px #df987c55,0 5px 15px #0003; transition: opacity .2s ease; }
.folio .site-header .nav a:is(:hover,:focus-visible) { color: #fff7ec; background: transparent; transform: translateY(-1px); }
.folio .site-header .nav a:is(:hover,:focus-visible)::before { opacity: 1; }
@supports (backdrop-filter: url("#contact-refraction")) {
  .folio .site-header .nav a::before { backdrop-filter: url("#contact-refraction") blur(2px) saturate(1.8); }
}
@media (prefers-reduced-transparency: reduce) {
  .folio .site-header .nav a::before { background: #49433c; backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (max-width: 520px) {
  .folio .site-header .nav ul { gap: 4px; }
  .folio .site-header .nav a { padding: 8px; }
}
.reference-family .actions { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; }
.reference-family .btn { border-radius: 999px; font-size: 15px; font-weight: 500; min-height: 48px; padding: 11px 23px; gap: 12px; box-shadow: none; text-decoration: none; }
.reference-family .btn-primary { background: var(--ink); color: #22221f; border: 1px solid var(--ink); }
.reference-family .btn-primary:hover { background: #fff; border-color: #fff; transform: translateY(-2px); }
.reference-family .btn-ghost { background: transparent; border: 1px solid #ffffff40; color: var(--ink); }
.reference-family .text-link { color: var(--ink); text-decoration: none; border-bottom: 1px solid #ffffff50; padding-block: 8px; font-size: 15px; }
.reference-family a:focus-visible, .reference-family video:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.reference-family .section { padding-block: clamp(64px, 9vw, 128px); }
.reference-family section[id] { scroll-margin-top: 96px; }
.reference-family .section-head { margin-bottom: 44px; }
.reference-family .section-head p { color: var(--soft); max-width: 55ch; }
.reference-family h2 { font-size: clamp(34px, 4.5vw, 58px); line-height: 1.1; letter-spacing: -.045em; }
.reference-family .site-footer { background: var(--paper); border-top: 1px solid var(--line); color: var(--soft); }
.reference-family .site-footer a { color: var(--soft); }

/* Personal introduction: the portrait stays beside the copy. */
.folio .me { padding-block: clamp(60px, 8vw, 116px); min-height: auto; }
.folio .me-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 5vw, 76px); }
.folio .me h1 { margin: 0 0 28px; font-size: clamp(44px, 5.5vw, 76px); max-width: 15ch; }
.folio .hello { font-size: 20px; margin-bottom: 12px; }
.folio .me .lede { color: var(--soft); font-size: 18px; max-width: 49ch; line-height: 1.7; margin-bottom: 30px; }
.folio .me-stage { width: 100%; max-width: 340px; justify-self: end; }
.folio .me-photo { margin: 0; border-radius: 50%; overflow: hidden; border: 1px solid #ffffff24; aspect-ratio: 1; }
.folio .me-photo img { width: 100%; height: 100%; display: block; object-fit: cover; }
.folio .portfolio-work { padding-top: 32px; }
.folio .work-project, .folio .work-project-reverse { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 70px); padding: 60px 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; margin-bottom: 0; }
.folio .work-project-reverse { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.folio .work-visual img { border-radius: 20px; box-shadow: none; }
.folio .work-project h3 { font-size: clamp(30px, 3.3vw, 43px); letter-spacing: -.04em; line-height: 1.12; margin-top: 0; }
.folio .project-lede, .folio .about-intro { color: var(--ink); }
.folio .project-copy p, .folio .project-details dd { color: var(--soft); }
.folio .tags { display: flex; flex-wrap: wrap; list-style: none; gap: 8px; padding: 0; }
.folio .experiments { background: #20201e; }
.folio .experiments h3 { font-family: var(--head); font-weight: 500; }
.folio .finale { background: #eae6dc; color: #242421; }
.folio .finale .cta { text-align: left; background: none; border: 0; padding-block: 0; }
.folio .finale-type { font-family: Georgia, serif; font-weight: 400; letter-spacing: -.06em; line-height: 1; margin-top: 0; }
.folio .finale p { color: #54544e; max-width: 48ch; }
.folio .finale .btn-primary { background: #242421; color: #f0eee7; border-color: #242421; }
.folio .finale .text-link { color: #242421; border-color: #24242160; }

/* Product page: a simple centered promise and a generous, real visual. */
.product-page .hero { padding: clamp(56px, 7vw, 96px) 0 0; background: none; min-height: auto; overflow: hidden; }
.product-page .hero-inner { display: block; text-align: center; padding-block: 0; }
.product-page .hero-inner::before { display: none; }
.product-page h2[id] { scroll-margin-top: 140px; }
.product-page .product-name { font-size: 20px; margin: 0 0 24px; }
.product-page .hero h1 { font-size: clamp(48px, 6.6vw, 90px); margin: 0 auto 28px; max-width: 17ch; }
.product-page .hero .lede { font-size: 19px; max-width: 53ch; color: var(--soft); margin: 0 auto 28px; }
.product-page .hero .actions { justify-content: center; gap: 14px; }
.product-page .release-note { font-size: 13px; color: var(--soft); margin: 20px auto 45px; max-width: 48ch; }
.product-page .product-hero-visual { margin: 0; }
.product-page .product-hero-visual img { width: 100%; height: auto; display: block; border: 1px solid var(--line); border-radius: 24px; }
.product-page figcaption { color: var(--soft); font-size: 13px; margin-top: 12px; }
.product-page .film-section { background: #20201e; margin-top: 64px; }
.product-page .film-split { gap: clamp(30px, 8vw, 110px); }
.product-page .film video { max-height: 620px; width: 100%; }
.product-page .card, .product-page .flow-card { background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; }
.product-page .split-band { background: #232320; }
.product-page .eyebrow { color: var(--soft); }
.product-page .cta { border: 0; background: #232320; border-radius: 24px; }
@media (max-width: 820px) {
  .reference-family .bar { gap: 12px; min-height: 64px; }
  .reference-family .nav ul { gap: 18px; }
  .folio .me-grid { grid-template-columns: minmax(0, 1fr) 120px; gap: 20px; }
  .folio .me-stage { width: 120px; align-self: start; margin-top: 8px; }
  .folio .me h1 { font-size: clamp(34px, 6vw, 50px); }
  .folio .me-copy .lede, .folio .me-copy .actions { margin-right: -140px; }
  .folio .work-project, .folio .work-project-reverse { grid-template-columns: minmax(0, 1fr); padding-block: 40px; }
  .product-page .hero h1 { font-size: clamp(42px, 8vw, 64px); }
}
@media (max-width: 520px) {
  .reference-family .bar { flex-wrap: wrap; padding-block: 12px; gap: 4px; }
  .reference-family .nav { width: 100%; }
  .reference-family .nav ul { justify-content: space-between; gap: 10px; flex-wrap: nowrap; }
  .reference-family .nav a { font-size: 13px; min-height: 36px; }
  .folio .me-grid { grid-template-columns: minmax(0, 1fr) 80px; gap: 12px; }
  .folio .me-stage { width: 80px; }
  .folio .me h1 { font-size: 34px; }
  .folio .me-copy .lede, .folio .me-copy .actions { margin-right: -92px; }
  .folio .me .lede { font-size: 16px; }
  .reference-family .actions { gap: 18px; }
  .product-page .hero .lede { font-size: 17px; }
  .product-page .product-hero-visual img { border-radius: 12px; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 0px) {
  .reference-family *, .reference-family *::before, .reference-family *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- coherence pass (Claude, after review) ---------- */
/* Contact: a full-width ivory band like the references' calm closing blocks, not a floating card */
.folio .finale .cta { box-shadow: none; border-radius: 0; max-width: none; }
.folio .contact-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: end; }
.folio .finale-type { font-family: var(--head); font-weight: 600; letter-spacing: -.045em; line-height: 1.02; font-size: clamp(2.6rem, 6vw, 4.75rem); margin: 0; }
.folio .finale-type em { color: #b4593a; }
.folio .contact-body p { margin: 0 0 1.5rem; }
@media (max-width: 820px) { .folio .contact-grid { grid-template-columns: minmax(0, 1fr); align-items: start; } }

/* ---------- footer reveal (after umbrel.com's pattern, in Jener's colours) ---------- */
/* The page sits above the footer; the footer waits underneath, pinned to the bottom, and is uncovered as the content lifts away. */
.folio main { position: relative; z-index: 1; background: var(--bg, #171715); }
.folio main { border-radius: 0 0 clamp(24px, 3vw, 40px) clamp(24px, 3vw, 40px); overflow: clip; }
.folio .finale { border-radius: 0 0 clamp(24px, 3vw, 40px) clamp(24px, 3vw, 40px); box-shadow: 0 30px 60px rgb(0 0 0 / 35%); }
.folio .reveal-footer { position: sticky; bottom: 0; z-index: 0; min-height: min(100svh, 760px); display: flex; background: #a9502f; color: #fbf3ec; border: 0; padding: 40px 0 0; margin-top: -40px; }
.folio .reveal-inner { width: 100%; display: grid; grid-template-rows: 1fr auto auto; gap: clamp(2rem, 5vw, 4rem); padding-block: clamp(4rem, 9vw, 7rem) 2rem; }
.folio .reveal-top { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: start; }
.folio .reveal-brand img { width: 56px; height: 56px; border-radius: 50%; box-shadow: 0 0 0 3px rgb(251 243 236 / 85%); }
.folio .reveal-line { margin: 0; justify-self: end; max-width: 15ch; font: 600 clamp(2.2rem, 5vw, 4.25rem)/1.04 var(--head); letter-spacing: -.04em; text-wrap: balance; }
.folio .reveal-line em { color: #ffe0cc; }
.folio .reveal-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.folio .reveal-cols h2 { margin: 0 0 .9rem; font: 600 .95rem/1.2 var(--body); color: rgb(251 243 236 / 72%); letter-spacing: 0; }
.folio .reveal-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.folio .reveal-cols a, .folio .reveal-brand { color: #fbf3ec; text-decoration: none; }
.folio .reveal-cols a { display: inline-block; padding-block: .25rem; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s; }
.folio .reveal-cols a:hover { background-size: 100% 1px; }
.folio .reveal-footer a:focus-visible { outline: 3px solid #fbf3ec; outline-offset: 4px; }
.folio .reveal-fine { margin: 0; padding-top: 1.25rem; border-top: 1px solid rgb(251 243 236 / 22%); color: rgb(251 243 236 / 72%); font-size: .9rem; }
/* the footer's content rises as it is uncovered */
@supports (animation-timeline: view()) {
  .folio .reveal-inner { animation: reveal-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
  @keyframes reveal-rise { from { opacity: .2; transform: translateY(60px) scale(.97); } to { opacity: 1; transform: none; } }
}
@media (max-width: 820px) {
  .folio .reveal-footer { position: relative; min-height: auto; }
  .folio .finale { border-radius: 0 0 24px 24px; }
  .folio .reveal-top { grid-template-columns: minmax(0, 1fr); }
  .folio .reveal-line { justify-self: start; }
  .folio .reveal-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 0px) { .folio .reveal-inner { animation: none !important; } }

/* ---------- media motion (after umbrel.com) ---------- */
/* JenerOS screen: starts tilted back in 3D over a soft glow, then flattens toward you as you scroll */
.folio .work-visual { position: relative; perspective: 1400px; }
.folio .work-visual::before { content: ""; position: absolute; inset: 12% 8% -6%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(223 152 124 / 34%), rgb(223 152 124 / 0%)); filter: blur(30px); pointer-events: none; }
.folio .work-visual img, .folio .experiment-layout figure > img, .folio .film-loop video, .folio .film-loop .film-still {
  border-radius: 22px; box-shadow: 0 40px 100px rgb(0 0 0 / 50%), 0 0 0 1px rgb(255 255 255 / 8%); }
.folio .work-visual a { display: block; transform-origin: 50% 100%; transition: transform .5s cubic-bezier(.16, 1, .3, 1); }
.folio .work-visual a:hover { transform: translateY(-6px); }
/* film: a silent moving picture */
.folio .film-loop video, .folio .film-loop .film-still { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; pointer-events: none; }
.folio .film-loop .film-still { display: none; }
@supports (animation-timeline: view()) {
  .folio .work-visual img { animation: screen-flatten cubic-bezier(.16, 1, .3, 1) both; animation-timeline: view(); animation-range: entry 0% cover 45%; transform-origin: 50% 100%; }
  @keyframes screen-flatten { from { transform: rotateX(24deg) scale(.9) translateY(40px); opacity: .35; } to { transform: none; opacity: 1; } }
  .folio .work-visual::before { animation: glow-in linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
  @keyframes glow-in { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: none; } }
  .folio .experiment-layout figure { animation: media-rise cubic-bezier(.16, 1, .3, 1) both; animation-timeline: view(); animation-range: entry 0% entry 80%; }
  .folio .experiment-layout article:nth-child(2) figure { animation-range: entry 10% entry 90%; }
  @keyframes media-rise { from { opacity: 0; transform: translateY(28px) scale(.96); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) and (max-width: 0px) {
  .folio .work-visual img, .folio .work-visual::before, .folio .experiment-layout figure { animation: none !important; }
  .folio .film-loop .film-live { display: block; }
  .folio .film-loop .film-still { display: block; }
}

/* Reserve the film frame; the poster also works without scripts or autoplay. */
.folio .film-loop { position: relative; }
.folio .film-loop video { position: absolute; inset: 0 0 auto; visibility: hidden; }
.folio .film-loop .film-still { display: block; }
.folio .film-loop.is-playing video { visibility: visible; }
.folio .film-loop.is-playing .film-still { visibility: hidden; }
@media (prefers-reduced-motion: reduce) and (max-width: 0px) {
  .folio .film-loop.is-playing .film-still { visibility: hidden; }
}
@media (max-width: 820px) {
  .folio .reveal-cols a { min-height: 44px; display: inline-flex; align-items: center; }
  .folio .reveal-brand { width: 56px; height: 56px; }
}

/* An original exploded system illustration: scroll brings the layers together. */
.folio .assembly { --assembly: 0; position: relative; min-height: 175svh; background: #171715; overflow: clip; padding-bottom: 2rem; }
.folio .assembly-sticky { position: sticky; top: 76px; min-height: calc(100svh - 76px); display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: 4rem; }
.folio .assembly-copy { padding-block: 3rem; position: relative; z-index: 2; }
.folio .assembly-copy h2 { font-size: clamp(42px, 4vw, 58px); margin: 0 0 2rem; }
.folio .assembly-copy p { max-width: 38ch; color: var(--soft); }
.folio .assembly-copy .assembly-intro { color: var(--ink); font-size: 1.2rem; }
.folio .assembly-stage { position: relative; height: 680px; perspective: 1100px; isolation: isolate; }
.folio .system-plane { position: absolute; width: 88%; aspect-ratio: 5 / 3; left: 6%; top: 30%; border: 1px solid #df987c66; border-radius: 18px; background: #272724ee; transform-style: preserve-3d; box-shadow: 0 20px 50px #0004; transform: translateY(calc(var(--offset) * (1 - var(--assembly)))) rotateX(calc(55deg - 15deg * var(--assembly))) rotateZ(calc(-28deg + 15deg * var(--assembly))); }
.folio .system-plane > span { position: absolute; right: 16px; bottom: 12px; color: #f3c4af; font: 500 13px/1.2 var(--body); letter-spacing: .06em; }
.folio .plane-hardware { --offset: 190px; z-index: 1; background: #343c31; }
.folio .plane-hardware svg { width: 100%; height: 100%; stroke: #c8b78b; stroke-width: 2; opacity: .6; }
.folio .plane-system { --offset: 65px; z-index: 2; background: #302e2af0; }
.folio .system-slots { position: absolute; inset: 25% 20%; display: flex; gap: 18px; }
.folio .system-slots i { flex: 1; border: 1px solid #df987c88; border-radius: 8px; background: repeating-linear-gradient(0deg,transparent 0 12px,#df987c22 13px 14px); }
.folio .system-trace { position: absolute; inset: 50% 8% auto; height: 2px; background: #e4ab90; transform: scaleX(calc(.15 + .85 * var(--assembly))); transform-origin: left; box-shadow: 0 0 18px #df987c99; }
.folio .plane-services { --offset: -65px; z-index: 3; background: #302a29eb; }
.folio .service-nodes { position: absolute; inset: 30% 13%; display: flex; align-items: center; justify-content: space-between; }
.folio .service-nodes::before { content: ''; position: absolute; inset: 50% 0 auto; height: 1px; background: #df987c66; }
.folio .service-nodes i { width: 32px; aspect-ratio: 1; border-radius: 50%; border: 1px solid #df987caa; background: #594135; box-shadow: 0 0 22px #df987c22; }
.folio .plane-interface { --offset: -190px; z-index: 4; overflow: hidden; background: #241c17; }
.folio .plane-interface img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: calc(.65 + .35 * var(--assembly)); }
.folio .plane-interface > span { background: #171715d9; padding: 6px 10px; border-radius: 20px; }
.folio .assembly-axis { position: absolute; left: 50%; top: 10%; height: 80%; width: 1px; background: linear-gradient(transparent,#df987c66,transparent); }
.folio .assembly-caption { position: absolute; bottom: 0; width: 100%; text-align: center; font-size: 13px; color: var(--soft); }
@media (max-width: 820px) {
 .folio .assembly { min-height: 155svh; }
 .folio .assembly-sticky { top: 106px; min-height: calc(100svh - 106px); grid-template-columns: minmax(0,1fr); gap: 0; }
 .folio .assembly-copy { padding-block: 1.5rem 0; }
 .folio .assembly-copy h2 { font-size: clamp(32px, 7vw, 48px); margin-bottom: 1rem; }
 .folio .assembly-copy p { font-size: 15px; margin-block: .6rem; }
 .folio .assembly-stage { height: 380px; max-width: 450px; width: 100%; justify-self: center; }
 .folio .plane-hardware { --offset: 110px; } .folio .plane-system { --offset: 36px; }
 .folio .plane-services { --offset: -36px; } .folio .plane-interface { --offset: -110px; }
}
@media (max-height: 740px) and (max-width: 820px) {
 .folio .assembly { min-height: auto; }
 .folio .assembly-sticky { position: relative; top: auto; }
}


/* Annotation pass: luminous edges, independent media and scroll separation. */
.folio .me-stage { position: relative; isolation: isolate; }
.folio .me-stage::before { content: ''; position: absolute; z-index: -1; inset: -15%; border-radius: 50%; background: radial-gradient(ellipse, #df987c38, #df987c12 40%, transparent 70%); filter: blur(24px); }
.folio .me-photo { box-shadow: 0 0 40px #df987c16, 0 0 0 1px #fff2; }
.folio .site-header { background: linear-gradient(120deg,#ffffff13,#ffffff03 35%,#df987c13 85%),#1c1c1a87; backdrop-filter: blur(28px) saturate(1.7); -webkit-backdrop-filter: blur(28px) saturate(1.7); border-bottom-color: #fff3; box-shadow: inset 0 1px #ffffff40, inset 0 -1px #0006, 0 8px 30px #0002; }
.folio .site-header::after { content: ''; position: absolute; bottom: 0; left: 8%; width: 84%; height: 1px; background: linear-gradient(90deg,transparent,#fff6,#df987c88,transparent); pointer-events: none; }
.folio .landscape-film { width: 100%; }
.folio .landscape-film video, .folio .landscape-film .film-still { aspect-ratio: 16 / 9; border-radius: 22px; }
.folio .landscape-film .film-still { width: 100%; object-fit: cover; }
.folio .system-plane { transform: translateY(calc(var(--offset) * (.08 + .92 * var(--assembly)))) rotateX(calc(40deg + 15deg * var(--assembly))) rotateZ(calc(-13deg - 15deg * var(--assembly))); }
.folio main { background: transparent; }
.folio .me, .folio .portfolio-work, .folio .personal-about { background: #171715; }
.folio .finale { --glass: 0; position: relative; isolation: isolate; background: rgb(234 230 220 / calc(1 - .65 * var(--glass))); backdrop-filter: blur(calc(10px + 24px * var(--glass))) saturate(1.5); -webkit-backdrop-filter: blur(calc(10px + 24px * var(--glass))) saturate(1.5); box-shadow: inset 0 1px #fff9, inset 0 -2px #fff6, inset 2px 0 #fff5, inset -2px 0 #fff5,0 20px 60px #0003; }
.folio .finale::before { content: ''; position: absolute; z-index: -1; inset: 0; border-radius: inherit; pointer-events: none; opacity: var(--glass); background: radial-gradient(ellipse at 5% 0%,#ffffff99,transparent 40%),radial-gradient(ellipse at 96% 100%,#df987c66,transparent 45%),linear-gradient(120deg,transparent 20%,#fff4 22%,transparent 24% 75%,#fff2 77%,transparent 80%); box-shadow: inset 0 0 22px #fff6, inset 0 -6px 12px #ffffff40; }
.folio .finale .cta { position: relative; z-index: 1; }
.folio .reveal-fine p { font-size: 13px; line-height: 1.7; max-width: 90ch; margin: 0 0 .8rem; color: #fbf3ecdc; }
@media (prefers-reduced-motion: reduce) and (max-width: 0px) {

   .folio .finale { --glass: 0 !important; }
}
@media (prefers-reduced-transparency: reduce) {
 .folio .site-header { background: #22221f; backdrop-filter: none; }
 .folio .finale { background: #eae6dc; backdrop-filter: none; }
 .folio .finale::before { display: none; }
}
@supports not (backdrop-filter: blur(1px)) {
 .folio .site-header { background: #22221ff5; }
 .folio .finale { background: #eae6dc; }
}

/* Compact footer; wraps naturally only when a phone needs it. */
.folio .reveal-fine { font-size: 12px; line-height: 1.6; padding-top: 1rem; }
.folio .reveal-fine a { color: inherit; text-underline-offset: 3px; }

/* Green: input-independent depth, with an additional desktop pointer axis. */
.folio .green-visual { perspective: 1000px; --board-turn: 8deg; --pointer-turn: 0deg; --board-rise: 0px; }
.folio .green-visual a, .folio .green-visual a:hover { transform: translateY(var(--board-rise)) rotateX(var(--board-turn)) rotateY(var(--pointer-turn)); transform-origin: center; transition: transform .12s ease-out; }
.folio .green-visual img { animation: none !important; transform: none; }
.folio .assembly { min-height: 145svh; }

/* Visible scenery lets the contact lens bend an actual backdrop. Text stays sharp. */
.folio .finale { overflow: hidden; padding-block: clamp(64px,8vw,120px); background: #221c19; color: #faf4e9; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
.folio .finale::before { display: none; }
.folio .contact-optics { position: absolute; inset: 0; overflow: hidden; pointer-events: none; background: radial-gradient(ellipse at 75% 35%,#794a35,#352920 45%,#171715 80%); }
.folio .optic-orbit { position: absolute; width: 65%; height: 110%; border: 28px solid #e8aa7a; border-radius: 50%; transform: translateY(calc(-35px * var(--glass))) rotate(-32deg); opacity: .75; box-shadow: 0 0 25px #df987c66,inset 0 0 22px #df987c55; }
.folio .orbit-a { left: -14%; top: -55%; }
.folio .orbit-b { right: -10%; top: 4%; border-width: 46px; border-color: #b96342; }
.folio .orbit-c { left: 30%; top: 24%; width: 36%; height: 100%; border-width: 4px; border-color: #ffe0a5; opacity: .4; }
.folio .optic-grid { position: absolute; inset: 0; background: repeating-linear-gradient(110deg,transparent 0 78px,#fff1 79px 80px); }
.folio .glass-filter { position: absolute; pointer-events: none; }
.folio .finale .cta { width: calc(100% - 48px); max-width: 1180px; margin-inline: auto; padding: clamp(30px,5vw,70px); border-radius: 36px; border: 1px solid #fff8; background: #ffffff0d; box-shadow: inset 0 2px 2px #ffffffa0,inset 0 -2px 2px #ffffff50,inset 2px 0 14px #fff2,inset -2px 0 14px #e8aa7a44,0 24px 70px #0005; isolation: isolate; }
.folio .finale .cta::before { content: ''; position: absolute; z-index: -1; inset: 0; border-radius: inherit; background: linear-gradient(130deg,#ffffff22,#fff1 25%,#00000012 70%,#ffffff30); backdrop-filter: blur(10px) saturate(1.6); -webkit-backdrop-filter: blur(10px) saturate(1.6); }
@supports (backdrop-filter: url("#contact-refraction")) {
 .folio .finale .cta::before { backdrop-filter: url("#contact-refraction") blur(3px) saturate(1.5); }
}
.folio .finale h2 { color: #fff8ed; }
.folio .finale em { color: #ffcdac; }
.folio .finale p { color: #f4e6d6; }
.folio .finale .text-link { color: #fff8ed; border-color: #fff6; }
.folio .finale .btn-primary { background: #fff5e8; color: #2b221c; border-color: #fff9; }

/* A full-width utility strip, inspired by the reference footer's hierarchy. */
.folio .reveal-footer { flex-direction: column; }
.folio .reveal-inner { flex: 1; grid-template-rows: 1fr auto; }
.folio .footer-utility { width: 100%; background: #303332; color: #e6e7e3; }
.folio .utility-row { display: flex; align-items: center; gap: 26px; min-height: 76px; padding-block: 14px; font-size: 12px; }
.folio .utility-row p { margin: 0; white-space: nowrap; }
.folio .utility-row nav { display: flex; gap: 24px; flex-wrap: wrap; }
.folio .utility-row a { color: #e6e7e3; text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.folio .utility-row a:hover { text-decoration: underline; text-underline-offset: 4px; }
.folio .utility-github { margin-left: auto; gap: 8px; }
.folio .utility-top { border: 1px solid #ffffff70; border-radius: 30px; padding: 4px 16px; gap: 10px; }
@media (max-width: 820px) {
 .folio .assembly { min-height: 130svh; }
 .folio .utility-row { flex-wrap: wrap; gap: 8px 20px; }
 .folio .utility-row nav { gap: 8px 20px; }
 .folio .utility-row a { min-height: 44px; }
 .folio .utility-github { margin-left: 0; }
 .folio .finale .cta { width: calc(100% - 32px); border-radius: 26px; }
}
@media (prefers-reduced-transparency: reduce) {
 .folio .finale .cta { background: #302820; }
 .folio .finale .cta::before { backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* Keep video surfaces in normal flow; overlay a real poster until a frame paints. */
.folio .film-loop .film-live { position: relative; inset: auto; visibility: visible; display: block; }
.folio .film-loop .film-still { position: absolute; inset: 0 0 auto; z-index: 1; visibility: visible; opacity: 1; margin: 0; }
.folio .film-loop.is-playing .film-still { visibility: visible; opacity: 0; }
.folio .film-loop figcaption { position: relative; }
.folio .work-visual { --board-turn: 8deg; --pointer-turn: 0deg; --board-rise: 0px; perspective: 1000px; }
.folio .work-visual a, .folio .work-visual a:hover { transform: translateY(var(--board-rise)) rotateX(var(--board-turn)) rotateY(var(--pointer-turn)); transform-origin: center; transition: transform .12s ease-out; }
.folio .work-visual img { animation: none !important; transform: none; }
/* Let the dark scene dissolve into the lens scenery without blurring the copy. */
.folio .contact-optics { mask-image: linear-gradient(to bottom,transparent,#000 120px); -webkit-mask-image: linear-gradient(to bottom,transparent,#000 120px); }
.folio .finale { background: #171715; padding-top: clamp(110px,11vw,160px); }
.folio .contact-optics::after { content: ''; position: absolute; inset: 0; backdrop-filter: blur(3px); mask-image: linear-gradient(#000,transparent 160px); -webkit-mask-image: linear-gradient(#000,transparent 160px); }
/* Compact closing composition: no viewport-height filler or empty grid row. */
.folio .reveal-footer { min-height: auto; }
.folio .reveal-inner { flex: none; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.1fr); grid-template-rows: auto; align-items: start; column-gap: clamp(32px,7vw,90px); row-gap: 28px; padding-block: 56px 44px; }
.folio .reveal-top { display: flex; gap: 22px; align-items: center; }
.folio .reveal-line { font-size: clamp(28px,3vw,40px); max-width: 17ch; margin: 0; }
.folio .reveal-brand { flex-shrink: 0; }
.folio .reveal-cols { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px 32px; }
.folio .reveal-cols ul { gap: .15rem; }
.folio .reveal-cols h2 { margin-bottom: .45rem; }
@media (max-width:820px) {
 .folio .reveal-inner { grid-template-columns: minmax(0,1fr); padding-block: 40px 28px; }
 .folio .reveal-line { max-width: 20ch; }
}

/* One-row phone navigation; browser chrome stays under Safari's control. */
.phone-menu { display: none; }
@media (max-width: 640px) {
 html { overscroll-behavior-y: none; background: #303332; }
 body.folio { overscroll-behavior-y: none; min-height: 100svh; }
 .folio .site-header { padding-top: env(safe-area-inset-top,0px); }
 .folio .site-header .bar { flex-wrap: nowrap; min-height: 60px; padding-block: 6px; padding-left: max(16px,env(safe-area-inset-left,0px)); padding-right: max(16px,env(safe-area-inset-right,0px)); gap: 16px; }
 .folio .site-header .bar > .nav { display: none; }
 .folio .site-header .brand { margin: 0; flex-shrink: 0; }
 .folio .phone-menu { display: block; margin-left: auto; }
 .folio .phone-menu summary { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; padding: 8px 16px; border-radius: 28px; border: 1px solid #ffffff45; background: #ffffff12; box-shadow: inset 0 1px #fff4; cursor: pointer; font-size: 14px; list-style: none; }
 .folio .phone-menu summary::-webkit-details-marker { display: none; }
 .folio .phone-menu[open] summary > span { transform: rotate(45deg); }
 .folio .phone-nav { position: absolute; top: calc(100% + 8px); left: max(12px,env(safe-area-inset-left,0px)); right: max(12px,env(safe-area-inset-right,0px)); background: #272521f5; border: 1px solid #ffffff40; border-radius: 22px; padding: 8px; box-shadow: inset 0 1px #fff3,0 14px 35px #0006; -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }
 .folio .phone-nav ul { list-style: none; display: grid; margin: 0; padding: 0; gap: 4px; }
 .folio .phone-nav a { color: var(--ink); display: flex; align-items: center; min-height: 48px; padding: 10px 16px !important; border-radius: 14px; text-decoration: none; font-size: 16px; }
 .folio .phone-nav a:is(:hover,:focus-visible) { background: #fff1; }
 .folio .reveal-footer { position: relative; bottom: auto; padding-bottom: 0; margin-bottom: 0; }
 .folio .footer-utility { padding-bottom: env(safe-area-inset-bottom,0px); }
 .folio .utility-row { padding-left: max(22px,env(safe-area-inset-left,0px)); padding-right: max(22px,env(safe-area-inset-right,0px)); }
 .folio .assembly-sticky { top: 60px; min-height: calc(100svh - 60px); }
 .folio section[id] { scroll-margin-top: 76px; }
}
