:root {
  color-scheme: dark;
  --paper: #202124;
  --ink: #eceef1;
  --muted: #b5b8c0;
  --accent: #d3d7df;
  --line: #45474d;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: var(--sans);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
::selection { background: #565d6a; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
a:focus-visible, video:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
img { display: block; max-width: 100%; height: auto; }
video { display: block; max-width: 100%; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
.frame { width: min(1160px, calc(100% - 96px)); margin-inline: auto; }
.skip { position: fixed; top: 10px; left: 10px; padding: 12px; background: #303238; z-index: 5; transform: translateY(-160%); }
.skip:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 78px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.brand { font-size: 16px; font-weight: 600; }
nav { display: flex; gap: 28px; font-size: 13px; }
nav a { padding-block: 12px; }
.hero { display: grid; grid-template-columns: 1fr; gap: 22px; padding-block: 65px 55px; text-align: center; }
.hero-kicker { margin-bottom: 17px; color: var(--muted); }
.meta { font-size: 11px; line-height: 1.6; letter-spacing: .035em; }
h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 6vw, 76px); line-height: 1.05; letter-spacing: -.045em; }
.intro { max-width: 49ch; color: var(--muted); line-height: 1.65; font-size: 17px; }
.hero-about .intro { margin-inline: auto; max-width: 59ch; }
.hero-about .hero-links { justify-content: center; }
.hero-links, .contact-links { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 18px; }
.button { display: inline-flex; align-items: center; gap: 12px; min-height: 36px; padding-block: 6px; font-size: 13px; font-weight: 600; border-bottom: 1px solid currentColor; }
.primary { color: var(--accent); }
.button:hover { color: var(--ink); }
.hero-placards { text-align: left; grid-column: 1/-1; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 12px; }
.airframe { overflow: hidden; min-width: 0; }
.airframe-visual, .droid-placard-visual { border-radius: 14px; overflow: hidden; }
.airframe-visual { position: relative; display: grid; place-items: center; aspect-ratio: 4/3; padding: 30px 20px 10px; background: #e9eae4; }
.airframe-caption { position: absolute; inset: 14px 17px auto; display: flex; justify-content: space-between; gap: 10px; font-size: 10px; color: #65665d; }
.airframe-visual img { width: 100%; max-height: 330px; object-fit: contain; mix-blend-mode: multiply; }
.airframe figcaption a { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-block: 13px; font-size: 14px; }
.round-arrow { color: var(--accent); }
.droid-placard-visual { background: #2c323d; }
.droid-placard-visual video { width: 100%; height: auto; aspect-ratio: 4/3; }
.work, .about { padding-block: 30px 55px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 3vw, 36px); letter-spacing: -.035em; line-height: 1.15; }
.text-link { display: inline-block; padding-block: 4px; font-size: 13px; font-weight: 600; text-underline-offset: 4px; }
.text-link:hover { text-decoration: underline; }
.text-link span, .footer a span { color: var(--accent); }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 28px; }
.engineering-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 38px 28px; }

.project { position: relative; display: flex; flex-direction: column; min-width: 0; }
.project-link { display: flex; flex: 1; flex-direction: column; }
.project-image { display: grid; grid-template: minmax(0, 1fr)/minmax(0, 1fr); place-items: center; aspect-ratio: 1.65; overflow: hidden; border-radius: 13px; background: #e9e7e0; }
.engineering-grid .project-image { aspect-ratio: 1.85; }

.project-image img { max-height: 92%; object-fit: contain; transition: transform .25s; }
.project-link:hover .project-image img { transform: scale(1.025); }
.project-body { display: flex; flex: 1; align-items: flex-start; flex-direction: column; padding-top: 18px; }
.project-body .meta { color: var(--muted); }
h3 { font-family: var(--serif); font-size: clamp(21px, 2.4vw, 27px); font-weight: 400; line-height: 1.15; letter-spacing: -.03em; margin-top: 5px; }
.project-body p:not(.meta) { margin-block: 10px 15px; color: var(--muted); font-size: 15px; line-height: 1.65; max-width: 61ch; }
.project-body .text-link { margin-top: auto; }
.project-link:hover .text-link { color: var(--accent); }
.flashread { background: #e6e3db; }
.flashread img { width: 79%; border: 1px solid #333; border-radius: 5px; }
.facelock, .current { background: #e1e6df; }
.harbor { background: #eee6d7; }
.localforge { background: #e2dfeb; }
.bd1-droid { background: #2c323d; }
.uav { background: #e9eae4; }
.project-image.uav img { width: 95%; height: 95%; mix-blend-mode: multiply; }
.project-image.bd1-droid img { width: 100%; height: 100%; }
.project-image.icon-visual img { width: min(38%, 145px); max-height: 77%; object-fit: contain; }
.vex-750c { background: #e8e4da; }
.project-image.vex-750c img, .case-visual.vex-750c img { width: auto; max-width: 65%; height: 80%; object-fit: contain; }
.deckr { background: #e6e4e9; }
.deckr img { width: 88%; border: 1px solid #b8b5ba; }
.deckr-feature { display: grid; grid-template-columns: .9fr 1fr; align-items: center; gap: 45px; margin-bottom: 42px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.deckr-copy h3 { font-size: clamp(44px, 6vw, 68px); }
.deckr-copy > p:not(.meta) { color: var(--muted); font-size: 16px; line-height: 1.65; max-width: 50ch; margin-top: 14px; }
.deckr-preview { display: block; background: #e6e4e9; padding: 20px; border-radius: 14px; }
.deckr-preview img { width: 100%; border: 1px solid #c8c6c9; }
.about { display: grid; grid-template-columns: .8fr 1fr; gap: 50px; }
.about p { color: var(--muted); font-size: 17px; line-height: 1.75; margin-bottom: 16px; max-width: 59ch; }
.contact { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding-block: 36px 46px; border-block: 1px solid var(--line); }
.contact .meta { margin-bottom: 9px; color: var(--muted); }
.contact h2 { font-size: clamp(42px, 6vw, 72px); }
.footer { display: flex; align-items: center; justify-content: space-between; padding-block: 24px 30px; font-size: 12px; color: var(--muted); }
.case-page { max-width: 1080px; padding-block: 25px 45px; }
.case-back { color: var(--muted); padding-block: 9px; }
.case-back span { margin-right: 6px; color: var(--accent); }
.case-hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 45px; padding-block: 55px; }
.case-hero h1 { font-size: clamp(42px, 6.5vw, 76px); }
.case-hero .intro { margin-block: 18px; }
.case-visual { border-radius: 14px; display: grid; grid-template: minmax(0, 1fr)/minmax(0, 1fr); place-items: center; aspect-ratio: 1.4; padding: 18px; overflow: hidden; }
.case-visual img { width: 100%; max-height: 100%; object-fit: contain; }
.case-visual.icon-visual img { width: min(48%, 205px); }
.case-visual.uav img { mix-blend-mode: multiply; }
.case-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 55px; padding-block: 30px; border-block: 1px solid var(--line); margin-bottom: 30px; }
.case-section h2 { font-size: clamp(24px, 3vw, 31px); }
.case-section p { margin-top: 12px; max-width: 58ch; color: var(--muted); font-size: 16px; line-height: 1.75; }
.case-figure { margin-bottom: 24px; padding: 12px; background: #292b30; border-radius: 12px; }
.case-figure img { margin-inline: auto; max-height: 560px; object-fit: contain; }
.case-figure video { width: min(100%, 800px); height: auto; margin-inline: auto; background: #2c323d; }
.case-figure figcaption { margin-top: 11px; color: var(--muted); font-size: 11px; text-align: center; line-height: 1.6; }
.deckr-example { padding: 25px; margin-bottom: 28px; border-left: 2px solid var(--accent); background: #292b30; }
.deckr-example h2 { font-size: 30px; }
.deckr-example p { margin-top: 12px; max-width: 77ch; color: var(--muted); font-size: 16px; line-height: 1.75; }
.case-hero.leg-comparison-intro { grid-template-columns: 1fr; padding-bottom: 28px; }
.leg-comparison h2 { font-size: clamp(28px, 4vw, 39px); }
.leg-comparison .case-sections { border-top: 0; padding-top: 18px; }
.leg-comparison h3 { font-size: 26px; margin-bottom: 14px; }
.leg-comparison .case-figure { padding: 8px; margin-bottom: 14px; }
@media (max-width: 900px) {
  .frame { width: calc(100% - 60px); }
  .hero { gap: 25px 35px; }
  .hero h1 { font-size: clamp(55px, 8.5vw, 78px); }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .frame { width: calc(100% - 36px); }
  .header-inner { min-height: 68px; flex-wrap: wrap; gap: 0 16px; padding-block: 12px; }
  nav { gap: 17px; font-size: 11px; }
  .brand { font-size: 14px; }
  .hero { grid-template-columns: 1fr; padding-block: 38px; gap: 20px; }
  .hero h1 { font-size: clamp(54px, 12vw, 78px); }
  .hero-kicker { margin-bottom: 12px; }
  .hero-placards { grid-template-columns: 1fr; gap: 24px; margin-top: 10px; }
  .hero .intro { font-size: 16px; }
  .work, .about { padding-block: 28px 40px; }
  .section-heading { margin-bottom: 24px; }
  .project-grid, .engineering-grid, .deckr-feature, .about, .case-hero, .case-sections { grid-template-columns: 1fr; }
  .engineering-grid .project:first-child .project-image { aspect-ratio: 1.85; }
  .deckr-feature { gap: 22px; }
  .about { gap: 22px; }
  .contact { align-items: start; flex-direction: column; gap: 15px; }
  .contact-links { margin-top: 0; }
  .case-hero { gap: 25px; }
  .case-sections { gap: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

[hidden] { display: none !important; }
.project-filters { display: flex; gap: 10px; overflow-x: auto; padding-block: 12px; margin-bottom: 6px; }
.project-filters button { white-space: nowrap; border: 1px solid var(--line); border-radius: 8px; padding: 11px 16px; background: transparent; color: var(--ink); font: 500 13px var(--sans); cursor: pointer; }
.project-filters button[aria-pressed="true"] { background: #41454d; border-color: #848a94; }
button:focus-visible { outline: 2px solid #d3d7df; outline-offset: 4px; }
.quick-preview { position: absolute; top: 12px; right: 12px; padding: 9px 13px; border: 1px solid #ffffff50; border-radius: 30px; background: #202124ea; color: #fff; font: 500 12px var(--sans); cursor: pointer; opacity: 0; transition: opacity .18s; }
.project:hover .quick-preview, .project:focus-within .quick-preview { opacity: 1; }
.quick-preview:hover { background: #35383f; }
.project-preview { position: fixed; width: min(760px, calc(100% - 32px)); padding: 0; border: 1px solid #51545c; border-radius: 16px; background: #25272d; color: var(--ink); max-height: 90dvh; overflow-y: auto; }
.project-preview::backdrop { background: #000b; }
.preview-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 36px; height: 36px; border: 1px solid #ffffff50; border-radius: 50%; background: #202124e8; color: white; font: 24px var(--sans); cursor: pointer; }
.preview-media { display: grid; place-items: center; height: min(48vh, 390px); }
.preview-media img { max-width: 95%; max-height: 100%; object-fit: contain; }
.preview-media.icon-visual img { width: 150px; }
.preview-media video { width: 100%; height: 100%; }
.preview-copy { padding: 25px 30px 32px; }
.preview-copy h2 { margin-block: 8px 15px; }
.preview-copy > p:not(.meta) { color: var(--muted); line-height: 1.65; max-width: 60ch; }
.preview-copy .button { margin-top: 19px; }
body:has(.project-preview[open]) { overflow: hidden; }
@media (hover: none) { .quick-preview { opacity: 1; } }
@media (max-width: 900px) { .engineering-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 650px) {
  .engineering-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 38px; }
  .hero h1 { font-size: clamp(45px, 11vw, 64px); }
  .quick-preview { opacity: 1; }
}



.hero-identity { text-align: center; }

.about-portrait img { display: block; width: min(100%, 250px); height: auto; margin: 24px auto 0; }
@media (max-width: 650px) { .about-portrait img { width: 180px; margin: 20px 0 0; } }

.pocketshell { background: #17362c; }

/* Short image reveals, leaving project text and links immediately available. */
.image-reveal { clip-path: inset(0 0 12% 0); opacity: .15; transition: clip-path 650ms cubic-bezier(.2,.7,.2,1), opacity 500ms ease; }
.image-reveal.is-visible { clip-path: inset(0); opacity: 1; }
.design-compare { margin: 26px 0 40px; max-width: 900px; }
.compare-stage { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 16px; background: #2e3440; isolation: isolate; }
.compare-stage img { display: block; width: 100%; height: 100%; object-fit: contain; }
.compare-before { position: absolute; inset: 0; background: #2e3440; clip-path: inset(0 calc(100% - var(--split)) 0 0); }
.compare-stage input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 3; }
.compare-divider { position: absolute; left: var(--split); top: 0; bottom: 0; width: 2px; background: #fff; transform: translateX(-50%); pointer-events: none; }
.compare-divider span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #f1f1f1; color: #202124; font-size: 23px; box-shadow: 0 2px 15px #0005; }
.compare-label { position: absolute; top: 16px; padding: 6px 10px; background: #202124dd; color: #fff; border-radius: 6px; font-size: 13px; pointer-events: none; }
.compare-v1 { left: 16px; } .compare-v2 { right: 16px; }
.compare-stage:focus-within { outline: 2px solid #a8c7fa; outline-offset: 5px; }
.compare-note { color: var(--muted); font-size: 14px; margin-top: 12px; }
@media (prefers-reduced-motion: reduce) { .image-reveal { clip-path: none; opacity: 1; transition: none; } }
