/* Approved artwork remains unchanged. All composition is live HTML and CSS. */
:root {
  color-scheme: dark;
  --bg: #050d12;
  --panel: #06141d;
  --ink: #f3f7f8;
  --muted: #c3d0d6;
  --cyan: #65ecf3;
  --orange: #ffb875;
  --line: #365d70;
  --stage-width: clamp(760px, 58vw, 980px);
  --content-width: var(--stage-width);
  /* Final approved integrated environment; both characters are part of this one image. */
  --lab-art: url("art/labsmiths-integrated-scene.png");
  --lab-position: center center;
  --lab-mobile-position: 40% center;
  --scene-min-height: 900px;
  --scene-mobile-min-height: 760px;
  --scene-fade-start: 65%;
  --blueprint-art: url("art/blueprint-texture.webp");
  --payday-icon: url("brand/payday-peek-icon.png");
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body {
  position: relative; margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink);
  font: 16px/1.6 "Segoe UI", Arial, sans-serif;
  overflow-wrap: break-word; isolation: isolate;
}
/* Full-document texture below a viewport-sized environment: no page-height cutoff. */
body::before {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: linear-gradient(90deg, #05222ae0, #050d12d9 44%, #24160de0),
    var(--blueprint-art) center top / 1000px auto repeat;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--cyan); }
a:focus-visible { outline: 3px solid var(--orange); outline-offset: 6px; border-radius: 2px; }
[hidden] { display: none !important; }
::selection { background: var(--cyan); color: var(--bg); }
.wrap { width: min(var(--content-width), calc(100% - 48px)); margin-inline: auto; }
main, .site-header, .site-footer { position: relative; z-index: 1; }
main { flex: 1; padding-bottom: 54px; }
main:focus { outline: none; }
.page-privacy main { padding-bottom: 12px; }

.lab-scene {
  position: absolute; inset: 0 0 auto; height: max(var(--scene-min-height), 100vh); z-index: -1;
  overflow: hidden; pointer-events: none;
  /* One complete environment; its lower edge dissolves into the document texture. */
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 var(--scene-fade-start), transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 var(--scene-fade-start), transparent 100%);
}
.lab-background {
  position: absolute; inset: 0;
  background: var(--lab-art) var(--lab-position) / cover no-repeat;
}
.lab-scene::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, #03465922, transparent 40%, #6d260b11);
}
.scene-shade {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(90deg, #02080c00 15%, #02080c22 29%, #02080c99 43%, #02080c99 57%, #02080c22 71%, #02080c00 85%),
    linear-gradient(to bottom, #02080c11, transparent 70%, #02080c55);
}

/* Riveted masthead; frame details belong to pseudo-elements, not clipped controls. */
.site-header {
  --content-width: 1120px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  margin-top: 24px; padding: 22px 36px; min-height: 116px;
  border: 1px solid #80acbe; border-top-color: #b1c2ca; border-bottom-color: #35ccdf;
  border-radius: 15px 4px 15px 4px;
  background: linear-gradient(180deg, #24404b 0, #08131bf5 8%, #040d13f5 80%, #19313c 100%);
  box-shadow: 0 0 0 4px #02090ccc, inset 0 0 0 3px #28414a80, 0 8px 26px #0009, 0 1px 20px #13d7ed44;
}
.site-header::before, .site-header::after {
  content: ""; position: absolute; top: 13px; bottom: 13px; width: 5px; pointer-events: none;
  background: radial-gradient(circle, #02070a 1px, #78929c 2px, transparent 3px) center top / 5px 40px repeat-y;
}
.site-header::before { left: 7px; } .site-header::after { right: 7px; }
.brand { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; max-width: 100%; }

.brand-logo { display: block; width: 288px; max-width: 100%; height: auto; }
@media (max-width: 480px) { .brand-logo { width: 252px; } }

.page-home .hero-bottom p { max-width: 640px; margin-bottom: 14px; }
.page-home .hero-bottom .hero-lead { font-size: 20px; font-weight: 600; margin-bottom: 4px; }

nav { display: flex; flex-wrap: wrap; gap: 28px; }
nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; padding: 9px 0; }
nav a[aria-current="page"] { color: var(--cyan); box-shadow: 0 2px var(--cyan), 0 7px 12px -8px var(--cyan); }
.skip-link { position: absolute; top: -100px; left: 20px; z-index: 10; padding: 10px 20px; background: var(--cyan); color: var(--bg); }
.skip-link:focus { top: 12px; }

/* Center headings use a fading scrim instead of a rectangular card. */
.hero, .page-intro {
  position: relative; text-align: center; padding: 92px 24px 26px;
  background: radial-gradient(ellipse at center 67%, #020b13e6, #020b1377 52%, transparent 75%);
}
.eyebrow { color: var(--cyan); font-size: 12px; font-weight: 650; letter-spacing: 2.8px; margin: 0 0 14px; text-shadow: 0 2px 5px #000; }
.hero h1 { font-size: 22px; font-weight: 500; line-height: 1.1; letter-spacing: .5px; margin: 0; }
.hero h1 > span, .page-intro h1 {
  display: block; color: #eaf1f4; font-family: "Arial Black", "Segoe UI", Arial, sans-serif;
  font-weight: 900; font-size: clamp(54px, 5.6vw, 88px); line-height: 1.04;
  text-transform: uppercase; letter-spacing: 1px; margin: 14px 0 20px;
  text-shadow: 0 2px #8aa1ae, 0 4px #283d4a, 0 7px 16px #000;
}
.hero h1 > span { max-width: 760px; margin-inline: auto; }
.page-intro h1 { margin-top: 0; }
.page-privacy .page-intro .period { display: none; }
.period { color: var(--cyan); }
p { margin: 0 0 20px; }
h2 { font-size: 32px; line-height: 1.2; letter-spacing: -.7px; margin: 0 0 20px; }
h3 { line-height: 1.35; }
.page-intro > p:last-child { max-width: 440px; margin: 0 auto; font-size: 19px; line-height: 1.45; text-shadow: 0 2px 8px #000, 0 0 8px #000; }
.hero-bottom { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 24px 0 28px; }
.hero-bottom p { font-size: 17px; color: var(--ink); text-shadow: 0 2px 8px #000; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 24px;
  padding: 12px 22px; min-height: 48px; border: 1px solid #9ef5fc; border-radius: 3px;
  color: #041016; background: var(--cyan); font-size: 14px; font-weight: 700;
  box-shadow: 0 0 22px #23dcf22a;
}
.button:hover { background: #b3f8fc; color: #041016; }
.hero-rule { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid #5ec8db66; padding-top: 14px; font-size: 10px; letter-spacing: 1.4px; text-shadow: 0 1px 5px #000; }
.text-link { display: inline-flex; align-items: center; gap: 20px; min-height: 44px; padding-block: 7px; border-bottom: 1px solid #527486; font-size: 14px; font-weight: 600; }
.text-link span { color: var(--cyan); }
.muted { color: var(--muted); }

/* Industrial foreground surfaces: a bright cut edge, inner rail, corners and technical depth. */
.project, .project-detail, .editorial, .studio-note, .policy-list > a, .policy-notice, .policy-list > .muted {
  position: relative; border: 1px solid #77a8bb; border-bottom-color: #4ad9ed;
  border-radius: 13px 3px 13px 3px; background-color: var(--panel);
  background-image: linear-gradient(105deg, #06141dfc, #04121cf5 60%, #06141de8), var(--blueprint-art);
  background-size: cover, 580px auto; background-position: center, right center;
  box-shadow: inset 0 0 0 4px #23424f66, inset 0 1px #d4eaf4bb, inset 0 -2px #1ce7fa55,
    0 0 0 3px #020a10b3, 0 13px 35px #0009, 0 0 22px #06e1ff18;
}
.project::after, .project-detail::after, .editorial::after, .studio-note::after, .policy-list > a::after, .policy-notice::after {
  content: ""; position: absolute; inset: 8px; border: 1px solid #5ba0b533; border-radius: 6px 0 6px 0; pointer-events: none;
  background: linear-gradient(var(--cyan), var(--cyan)) left bottom / 34px 2px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) right top / 34px 2px no-repeat;
}
.section { padding-block: 28px 38px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; padding: 20px 24px; margin-bottom: 20px;
  background: linear-gradient(90deg, #03121ee6, #03121edb, #03121e99); border-left: 2px solid var(--cyan); }
.section-heading .eyebrow { margin-bottom: 8px; } .section-heading h2 { margin-bottom: 0; }
.projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.project { min-width: 0; }
.project::before { content: ""; position: absolute; height: 3px; width: 80px; background: var(--cyan); box-shadow: 0 0 13px var(--cyan); left: 22px; top: -1px; }
.bullet::before { background: var(--orange); box-shadow: 0 0 13px #ff923d88; }
.project-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 24px; border-bottom: 1px solid #365d7077; }
.number { color: var(--muted); font-size: 10px; letter-spacing: 1.5px; }
.status { display: inline-block; padding: 5px 9px; background: #05121c; color: var(--cyan); border: 1px solid #416879; font-size: 11px; }
.bullet .status { color: var(--orange); border-color: #7b5b42; }
.project-body { padding: 28px 24px; }
.project h3 { font-size: 30px; margin: 0 0 12px; letter-spacing: -.6px; }
.project p { color: var(--muted); }
.project .tagline { color: var(--ink); font-size: 13px; min-height: 44px; }
.project .text-link { margin-top: 12px; }
.product-title { display: flex; align-items: center; gap: 14px; }
.payday-icon { display: block; flex: 0 0 52px; width: 52px; height: 52px; background: var(--payday-icon) center / contain no-repeat; }
.icon-unavailable .payday-icon { display: none; }
.policy-icon { width: 64px; height: 64px; margin: 0 auto 20px; }
.studio-note { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 44px; padding: 36px; }
.studio-note > .eyebrow { grid-column: 1 / -1; }
.studio-note p:not(.eyebrow) { color: var(--muted); }
.project-detail, .editorial { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 40px; padding: 36px; margin-top: 26px; margin-bottom: 26px; }
.project-detail h3 { font-size: 23px; margin: 0 0 22px; }
.project-detail > div > p, .editorial p { color: var(--muted); }
.founder { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 30px; }
.founder h3 { margin-bottom: 8px; } .founder p { font-size: 15px; }

.policy-list { padding-top: 0; }
.policy-list > a { display: flex; align-items: center; gap: 36px; min-height: 208px; padding: 32px 40px; margin-bottom: 22px; }
.policy-list > a:hover { border-color: var(--cyan); color: var(--ink); }
.policy-list > a > div { min-width: 0; flex: 1; }
.policy-list h2 { margin: 0 0 16px; font-size: 34px; }
.policy-label { display: block; margin-top: 7px; color: var(--cyan); text-transform: uppercase; letter-spacing: 2.5px; font-size: 12px; }
.policy-list p { margin: 0; color: var(--muted); }
.policy-list > a > span:not(.payday-icon) { font-size: 30px; color: var(--ink); }
.policy-list .payday-icon { width: 132px; height: 132px; flex-basis: 132px; filter: drop-shadow(0 0 14px #00d9ed44); }
.policy-list > .muted { min-height: 88px; padding: 24px 32px 24px 92px; display: flex; align-items: center; font-size: 15px; }
.policy-list > .muted::before { content: ""; background: linear-gradient(var(--cyan), var(--cyan)) center 18px / 2px 12px no-repeat, radial-gradient(circle, var(--cyan) 1.5px, transparent 2px) center 9px / 4px 4px no-repeat; position: absolute; left: 30px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 1px solid var(--cyan); border-radius: 50%; color: var(--cyan); text-align: center; line-height: 36px; font-size: 26px; font-family: Georgia, serif; box-shadow: 0 0 14px #00deed22; }
.policy-notice { max-width: 800px; padding: 36px; margin-top: 4px; }
.policy-notice h2 { margin-top: 28px; }
.policy-notice p { color: var(--muted); }

.site-footer {
  margin-top: 12px; padding-block: 20px; border-top: 1px solid #43b2c8;
  background: linear-gradient(100deg, #07131df5, #030d13fa 48%, #15140ff5);
  box-shadow: 0 -5px 28px #0009, inset 0 1px #6deeff22;
}
.footer-inner { --content-width: 1240px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-inner p { color: var(--muted); font-size: 11px; letter-spacing: 1px; margin: 6px 0 0; }
.footer-inner > div:last-child { text-align: right; } .footer-inner nav { justify-content: flex-end; }

@media (max-width: 1199px) {
  :root { --stage-width: min(880px, calc(100vw - 64px)); }
  .scene-shade { background: linear-gradient(90deg, #03101c44, #03101c88 50%, #03101c44); }
  .site-header { gap: 20px; padding-inline: 20px; }
}
@media (max-width: 800px) {
  :root { --stage-width: calc(100vw - 40px); }
  .wrap { width: calc(100% - 40px); }
  .site-header { flex-direction: column; gap: 18px; padding: 20px; margin-top: 20px; }
  .brand { align-items: center; }
  .site-header nav { justify-content: center; gap: 30px; }
  .hero, .page-intro { padding: 54px 20px 28px; }
  .hero h1 > span, .page-intro h1 { font-size: clamp(42px, 7vw, 64px); }
  .projects, .studio-note, .project-detail, .editorial { grid-template-columns: minmax(0, 1fr); }
  .project .tagline { min-height: 0; }
  .studio-note, .project-detail, .editorial, .policy-notice { padding: 30px; gap: 24px; }
  .policy-list > a { gap: 24px; padding: 28px; }
  .policy-list .payday-icon { width: 100px; height: 100px; flex-basis: 100px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 18px; }
  .footer-inner > div:last-child { text-align: left; }
  .footer-inner nav { justify-content: flex-start; }
}
@media (max-width: 480px) {
  :root { --stage-width: calc(100vw - 28px); }
  .wrap { width: calc(100% - 28px); }
  .lab-background { background-position: var(--lab-mobile-position); }
  .lab-scene { height: max(var(--scene-mobile-min-height), 100svh); }
  .site-header { padding: 18px 14px 12px; }
  .site-header nav { width: 100%; justify-content: space-between; gap: 10px; }
  nav a { font-size: 13px; }
  .hero, .page-intro { padding: 42px 14px 26px; }
  .eyebrow { font-size: 10px; letter-spacing: 1.7px; }
  .hero h1 > span, .page-intro h1 { font-size: clamp(34px, 9.5vw, 46px); letter-spacing: .4px; }
  .hero-bottom p, .page-intro > p:last-child { font-size: 16px; }
  .button { width: 100%; gap: 12px; padding-inline: 14px; }
  .hero-rule { font-size: 9px; letter-spacing: .5px; gap: 10px; }
  h2 { font-size: 27px; }
  .section-heading { flex-direction: column; align-items: flex-start; padding: 20px; gap: 14px; }
  .project-top { padding: 20px; }
  .project-body { padding: 24px 20px; }
  .project h3 { font-size: 27px; }
  .product-title { gap: 10px; }
  .product-title .payday-icon { flex-basis: 40px; width: 40px; height: 40px; }
  .studio-note, .project-detail, .editorial, .policy-notice { padding: 26px 22px; }
  .policy-list > a { flex-wrap: wrap; gap: 16px; padding: 26px; }
  .policy-list > a > div { flex: 1 1 calc(100% - 80px); }
  .policy-list .payday-icon { width: 64px; height: 64px; flex-basis: 64px; }
  .policy-list h2 { font-size: 25px; }
  .policy-label { font-size: 10px; letter-spacing: 1.5px; }
  .policy-list > a > span:last-child { margin-left: auto; }
  .policy-list > .muted { padding: 24px; font-size: 14px; }
  .policy-list > .muted::before { display: none; }
  .footer-inner nav { gap: 24px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (forced-colors: active) {
  .lab-scene, body::before { display: none; }
  a:focus-visible { outline-color: Highlight; }
  nav a[aria-current="page"] { border-bottom: 2px solid LinkText; }
}

/* Fine metal reflections remain selectable type rather than a heading image. */
@supports (-webkit-background-clip: text) {
  .hero h1 > span, .page-intro h1 {
    background: linear-gradient(180deg, #ffffff 4%, #d5e3ed 36%, #9aadb9 47%, #edf4f7 66%, #b1c4d0);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    text-shadow: 0 3px 10px #0005;
    filter: drop-shadow(0 2px 0 #46606e);
  }
}
.policy-list > a::before, .project-detail::before, .editorial::before, .studio-note::before, .policy-notice::before {
  content: ""; position: absolute; inset: 12px; pointer-events: none;
  background: radial-gradient(circle, #02080b 1px, #5b7c8d 2px, transparent 3px) left top / 6px 6px no-repeat,
    radial-gradient(circle, #02080b 1px, #5b7c8d 2px, transparent 3px) right top / 6px 6px no-repeat,
    radial-gradient(circle, #02080b 1px, #5b7c8d 2px, transparent 3px) left bottom / 6px 6px no-repeat,
    radial-gradient(circle, #02080b 1px, #5b7c8d 2px, transparent 3px) right bottom / 6px 6px no-repeat;
}

@media (forced-colors: active) {
  .hero h1 > span, .page-intro h1 { background: none; color: CanvasText; filter: none; text-shadow: none; }
}


.page-home .hero + .section { padding-top: 0; }

/* Canonical footer logo: centered without moving desktop navigation. */
.footer-inner { position: relative; min-height: 88px; }
.footer-logo-slot { position: absolute; left: 50%; transform: translateX(-50%); display: flex; justify-content: center; max-width: 100%; }
.footer-brand { display: block; max-width: 100%; }
.footer-logo { display: block; width: 264px; max-width: 100%; height: auto; }
.footer-inner > div:last-child { margin-left: auto; }
@media (max-width: 1000px) {
  .footer-inner { flex-wrap: wrap; }
  .footer-logo-slot { position: static; transform: none; width: 100%; flex: 0 0 100%; }
}
@media (max-width: 800px) {
  .footer-inner > div:last-child { margin-left: 0; }
}
@media (max-width: 480px) {
  .footer-logo { width: 240px; }
}
