@charset "UTF-8";

:root {
  color-scheme: light;
  --paper: #f5f3ec;
  --paper-deep: #e9e7de;
  --ink: #14232b;
  --ink-soft: #4e5c60;
  --line: #cdd1ca;
  --night: #101d25;
  --night-soft: #a9b7b8;
  --accent: #e86c46;
  --accent-dark: #b9472a;
  --mint: #a7c5b8;
  --white: #fffef9;
  --content: 1240px;
  --gutter: clamp(1.35rem, 4vw, 4rem);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Segoe UI", Arial, sans-serif; line-height: 1.55; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
::selection { background: var(--accent); color: var(--white); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.skip-link { position: fixed; z-index: 1000; top: 1rem; left: 1rem; width: 1px; height: 1px; overflow: hidden; clip-path: inset(100%); white-space: nowrap; padding: .65rem 1rem; background: var(--white); color: var(--ink); }
.skip-link:focus { width: auto; height: auto; overflow: visible; clip-path: none; }
.container { width: min(100%, calc(var(--content) + var(--gutter) * 2)); margin-inline: auto; padding-inline: var(--gutter); }
.mono, .eyebrow, .section-index, .project-num, .meta-label, .image-caption, .detail-kicker, .footer-small { font-family: Consolas, "Courier New", monospace; font-size: .75rem; letter-spacing: .11em; text-transform: uppercase; }
.eyebrow { display: inline-flex; align-items: center; gap: .7rem; font-weight: 700; }
.eyebrow .dot { width: .55rem; height: .55rem; flex: 0 0 auto; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(232, 108, 70, .14); }
.section-index { color: var(--accent-dark); font-weight: 800; }
.work .section-index, .contact .section-index { color: var(--accent); }
.muted { color: var(--ink-soft); }
.arrow { display: inline-block; transition: transform .22s ease; }
a:hover .arrow { transform: translate(3px, -3px); }

.site-header { position: relative; z-index: 50; border-bottom: 1px solid var(--line); background: rgba(245, 243, 236, .96); }
.header-inner { min-height: 78px; display: flex; align-items: center; gap: 2.5rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; white-space: nowrap; font-weight: 800; font-size: .93rem; letter-spacing: -.025em; }
.brand-mark { width: 2.05rem; height: 2.05rem; display: grid; place-items: center; background: var(--ink); color: var(--white); border-radius: 50%; font-size: .76rem; letter-spacing: -.07em; }
.main-nav { display: flex; align-items: center; gap: clamp(1.2rem, 2.2vw, 2.3rem); margin-left: auto; }
.main-nav a { font-size: .82rem; font-weight: 700; position: relative; }
.main-nav a::after { content: ""; position: absolute; left: 0; bottom: -.5rem; width: 100%; height: 2px; transform: scaleX(0); transform-origin: left; background: var(--accent); transition: transform .2s ease; }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-contact { white-space: nowrap; margin-left: .2rem; padding: .68rem 1rem; border: 1px solid var(--ink); font-size: .8rem; font-weight: 800; transition: background .2s, color .2s; }
.header-contact:hover { background: var(--ink); color: var(--white); }
.menu-toggle { display: none; }

.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; z-index: -1; width: min(58vw, 780px); height: min(58vw, 780px); border: 1px solid #d8dbd3; border-radius: 50%; right: -17vw; top: -18vw; }
.hero::after { content: ""; position: absolute; z-index: -1; width: min(70vw, 900px); height: min(70vw, 900px); border: 1px solid #e3e5dc; border-radius: 50%; right: -23vw; top: -25vw; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: clamp(3rem, 6vw, 7rem); align-items: center; padding-top: clamp(4.5rem, 8vw, 8rem); padding-bottom: clamp(5rem, 8vw, 7rem); min-height: min(750px, calc(100vh - 78px)); }
.hero h1 { max-width: 850px; margin: 1.25rem 0 1.6rem; font-size: clamp(3.6rem, 6.8vw, 7.4rem); line-height: .95; letter-spacing: -.085em; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-lead { max-width: 610px; margin: 0; color: #405056; font-size: clamp(1rem, 1.45vw, 1.22rem); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: 2.4rem; }
.button { min-height: 3.25rem; padding: .9rem 1.2rem; display: inline-flex; gap: 1.3rem; align-items: center; justify-content: space-between; font-size: .84rem; font-weight: 800; transition: transform .2s, background .2s, color .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--ink); color: var(--white); }
.button-primary:hover { background: #29414a; }
.button-secondary { border: 1px solid var(--ink); }
.button-secondary:hover { background: var(--ink); color: var(--white); }
.hero-note { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: 3.4rem; color: var(--ink-soft); }
.hero-note span { display: inline-flex; align-items: center; gap: .55rem; font-size: .81rem; font-weight: 600; }
.hero-note span + span::before { content: "/"; color: var(--accent); margin-right: .6rem; }
.portrait-wrap { position: relative; max-width: 440px; margin-left: auto; padding: 1.35rem 1.35rem 2.2rem; background: var(--ink); box-shadow: 18px 18px 0 var(--mint); transform: rotate(1.2deg); }
.portrait-wrap::before { content: "+"; position: absolute; color: var(--accent); top: -2.25rem; right: -1.8rem; font: 300 4.2rem Consolas, monospace; }
.portrait-wrap img { width: 100%; height: clamp(390px, 38vw, 550px); object-fit: cover; object-position: 50% 19%; filter: saturate(.82); }
.portrait-caption { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1rem; color: var(--white); font: 700 .68rem Consolas, monospace; letter-spacing: .1em; text-transform: uppercase; }
.hero-bottom { border-top: 1px solid var(--line); }
.hero-bottom .container { display: flex; justify-content: space-between; gap: 2rem; padding-top: 1.3rem; padding-bottom: 1.3rem; }
.hero-bottom p { margin: 0; color: var(--ink-soft); font: 700 .7rem Consolas, monospace; letter-spacing: .12em; text-transform: uppercase; }

section[id] { scroll-margin-top: 2rem; }
.section-pad { padding-block: clamp(5rem, 8vw, 8rem); }
.section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, .42fr); gap: 3rem; align-items: end; margin-bottom: 3.4rem; }
.section-heading h2 { margin: .6rem 0 0; font-size: clamp(2.6rem, 4.4vw, 5.2rem); line-height: 1.03; letter-spacing: -.065em; }
.section-heading p { margin: 0 0 .25rem; line-height: 1.7; }
.work { background: var(--night); color: var(--white); }
.work .section-heading p { color: var(--night-soft); }
.project-feature { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(290px, .72fr); gap: clamp(2rem, 5vw, 5rem); padding-block: 2.2rem 4rem; border-top: 1px solid #47575c; }
.feature-visual { min-height: 455px; position: relative; overflow: hidden; display: grid; grid-template-columns: 58% 42%; background: #254250; }
.feature-visual::after { content: "GESTURA / 01"; position: absolute; left: 1.3rem; bottom: 1.1rem; padding: .5rem .65rem; background: var(--white); color: var(--ink); font: 700 .7rem Consolas, monospace; letter-spacing: .1em; }
.feature-visual img:first-child { width: 100%; height: 100%; object-fit: contain; object-position: 50% 50%; background: #314d5b; }
.feature-visual img:nth-child(2) { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.feature-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.project-num { color: var(--mint); font-weight: 700; }
.feature-copy h3 { max-width: 470px; margin: 1.2rem 0 1rem; font-size: clamp(2.2rem, 3.4vw, 4rem); line-height: 1.05; letter-spacing: -.06em; }
.feature-copy h3.long-title { font-size: clamp(1.8rem, 2.6vw, 3.1rem); line-height: 1.12; }
.feature-copy > p { margin: 0; color: var(--night-soft); font-size: 1rem; line-height: 1.7; }
.feature-facts { display: grid; grid-template-columns: repeat(2, 1fr); width: 100%; gap: 1.2rem; margin: 2rem 0 1.5rem; padding-block: 1.2rem; border-block: 1px solid #47575c; }
.feature-facts strong { display: block; font-size: clamp(1.8rem, 2.5vw, 2.4rem); letter-spacing: -.06em; line-height: 1; color: var(--white); }
.feature-facts span { display: block; margin-top: .55rem; font-size: .75rem; color: var(--night-soft); }
.text-link { display: inline-flex; align-items: center; gap: 1.4rem; padding-block: .3rem; border-bottom: 1px solid currentColor; font-size: .84rem; font-weight: 800; }
.text-link:hover { color: var(--accent-dark); }
.work .text-link:hover, .contact .text-link:hover { color: var(--accent); }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 5vw, 5rem); }
.project-card { padding-top: 2rem; padding-bottom: 3.6rem; border-top: 1px solid #47575c; }
.project-image { margin: 0 0 1.5rem; height: clamp(250px, 30vw, 355px); overflow: hidden; background: #e8e9e2; }
.project-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.project-card:hover .project-image img { transform: scale(1.035); }
.project-image.contain img { object-fit: contain; padding: 1rem; }
.project-card h3 { margin: .7rem 0 .5rem; font-size: clamp(1.6rem, 2vw, 2.25rem); letter-spacing: -.05em; line-height: 1.13; }
.project-card p { max-width: 560px; margin: 0 0 1.1rem; color: var(--night-soft); font-size: .92rem; }
.project-card .project-role { font-size: .75rem; color: var(--mint); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.project-card .text-link { margin-top: .4rem; }
.work-archive { display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding-top: 2rem; border-top: 1px solid #47575c; }
.work-archive p { max-width: 580px; margin: 0; color: var(--night-soft); font-size: .88rem; }
.work-archive .text-link { flex: 0 0 auto; }

/* Collection preview */
.archive-preview { background: #dfe9e1; }
.archive-preview .section-heading { margin-bottom: 2.6rem; }
.sprint-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.sprint-item { display: grid; grid-template-columns: 3rem minmax(0, 1fr) 1.5rem; gap: 1.1rem; align-items: center; padding: 1.25rem 1rem 1.25rem 0; border-bottom: 1px solid #aabbb2; transition: padding-left .2s, background .2s; }
.sprint-item:nth-child(odd) { border-right: 1px solid #aabbb2; }
.sprint-item:nth-child(even) { padding-left: 1.4rem; }
.sprint-item:hover { padding-left: 1rem; background: rgba(255,255,255,.34); }
.sprint-item:nth-child(even):hover { padding-left: 2.4rem; }
.sprint-number { color: var(--accent-dark); font: 800 .8rem Consolas, monospace; }
.sprint-item strong { display: block; font-size: 1.12rem; letter-spacing: -.03em; }
.sprint-item small { display: block; margin-top: .2rem; color: var(--ink-soft); font-size: .77rem; }
.sprint-item > span:last-child { color: var(--accent-dark); font-size: 1.3rem; justify-self: end; }
.sprint-foot { display: flex; justify-content: space-between; align-items: center; gap: 2rem; margin-top: 2.7rem; }
.sprint-foot p { max-width: 560px; margin: 0; color: var(--ink-soft); font-size: .89rem; }

/* Full project archive */
.archive-hero { position: relative; overflow: hidden; background: var(--night); color: var(--white); }
.archive-hero::before { content: ""; position: absolute; width: 780px; height: 780px; right: -290px; top: -320px; border: 1px solid #3d5357; border-radius: 50%; box-shadow: 0 0 0 65px rgba(167,197,184,.035), 0 0 0 130px rgba(167,197,184,.025); }
.archive-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(270px, .6fr); gap: clamp(3rem, 7vw, 7rem); align-items: end; padding-block: clamp(4rem, 7vw, 7rem); }
.archive-hero .back-link { color: var(--mint); display: flex; width: max-content; margin-bottom: 3rem; }
.archive-hero .eyebrow { color: var(--mint); }
.archive-hero h1 { margin: .8rem 0 1.4rem; font-size: clamp(4.2rem, 7.7vw, 8.3rem); line-height: .93; letter-spacing: -.08em; }
.archive-hero h1 em { display: block; color: var(--accent); font-style: normal; }
.archive-hero p { max-width: 710px; color: var(--night-soft); font-size: clamp(1rem, 1.4vw, 1.2rem); line-height: 1.7; }
.archive-hero-graphic { position: relative; display: grid; border-top: 1px solid #597075; }
.archive-hero-graphic > span { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .6rem 0; border-bottom: 1px solid #597075; font-size: clamp(3.5rem, 5.2vw, 6rem); line-height: 1; letter-spacing: -.08em; font-weight: 800; }
.archive-hero-graphic > span:nth-child(2) { color: var(--mint); }
.archive-hero-graphic > span:nth-child(3) { color: var(--accent); }
.archive-hero-graphic > span span { width: 100px; color: var(--night-soft); font: 700 .67rem/1.4 Consolas, monospace; letter-spacing: .1em; text-align: right; }
.archive-body { background: var(--paper); }
.archive-intro { display: grid; grid-template-columns: 1fr minmax(260px, .5fr); gap: 3rem; align-items: end; margin-bottom: 2.8rem; }
.archive-intro h2 { margin: .5rem 0 0; font-size: clamp(2.9rem, 4.6vw, 5.2rem); line-height: 1; letter-spacing: -.07em; }
.archive-intro p { max-width: 460px; margin: 0; color: var(--ink-soft); }
.archive-tools { display: grid; grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr); gap: 1.2rem 2rem; align-items: end; padding: 1.25rem; background: #e9e9df; border: 1px solid var(--line); }
.archive-search-label { display: block; font: 800 .7rem Consolas, monospace; letter-spacing: .12em; text-transform: uppercase; }
.archive-search-label input { display: block; width: 100%; height: 3.15rem; margin-top: .55rem; padding: .65rem .85rem; border: 1px solid #aab5ad; border-radius: 0; background: var(--white); color: var(--ink); font: 500 .9rem "Segoe UI", Arial, sans-serif; }
.archive-filters { display: flex; flex-wrap: wrap; gap: .45rem; }
.archive-filters button { border: 1px solid #aab5ad; border-radius: 0; background: transparent; color: var(--ink); padding: .62rem .82rem; font: 800 .71rem Consolas, monospace; cursor: pointer; transition: background .15s, color .15s; }
.archive-filters button:hover, .archive-filters button.is-active { background: var(--ink); border-color: var(--ink); color: var(--white); }
.archive-count { grid-column: 1 / -1; margin: -.3rem 0 0; color: var(--ink-soft); font-size: .82rem; }
.archive-count strong { color: var(--ink); }
.archive-empty { padding: 2.5rem 1.3rem; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.archive-group { padding-top: clamp(4rem, 6vw, 6rem); scroll-margin-top: 1rem; }
.archive-group-head { display: grid; grid-template-columns: 1fr minmax(250px, .45fr); gap: 2rem; align-items: end; padding-bottom: 1.4rem; border-bottom: 1px solid var(--ink); }
.archive-group-head h2 { margin: .45rem 0 0; font-size: clamp(2.2rem, 3.6vw, 4rem); letter-spacing: -.06em; line-height: 1.08; }
.archive-group-head p { color: var(--ink-soft); font-size: .87rem; margin: 0; }
.archive-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-top: 0; }
.archive-card { display: flex; flex-direction: column; min-height: 275px; padding: 1.35rem 1.45rem 1.5rem; background: var(--white); }
.archive-card:nth-child(4n+1) { background: #edf1eb; }
.archive-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: .8rem; }
.archive-card-top .mono { color: var(--accent-dark); font-weight: 800; }
.archive-status { max-width: 150px; text-align: right; color: var(--ink-soft); font: 700 .63rem/1.4 Consolas, monospace; text-transform: uppercase; letter-spacing: .06em; }
.archive-card-body { flex: 1; }
.archive-card h3 { margin: 1.3rem 0 .55rem; max-width: 460px; font-size: clamp(1.35rem, 1.85vw, 1.9rem); line-height: 1.13; letter-spacing: -.05em; }
.archive-card p { margin: 0; max-width: 530px; color: #425256; font-size: .85rem; line-height: 1.58; }
.archive-card-bottom { display: grid; gap: .65rem; margin-top: 1.6rem; padding-top: .9rem; border-top: 1px solid #ccd4cc; }
.archive-hardware { font-size: .75rem; font-weight: 700; }
.archive-evidence { color: var(--ink-soft); font: 700 .69rem Consolas, monospace; }
.archive-card-link { display: inline-flex; width: max-content; align-items: center; gap: 1.5rem; margin-top: .35rem; padding-bottom: .17rem; border-bottom: 1px solid currentColor; font-size: .76rem; font-weight: 800; }
.archive-card-link:hover { color: var(--accent-dark); }
.archive-endnote { display: grid; grid-template-columns: 1fr 1.1fr; gap: 1.5rem 4rem; align-items: start; margin-top: clamp(5rem, 8vw, 8rem); padding: clamp(2rem, 4vw, 4rem); background: #dce7df; }
.archive-endnote h2 { margin: .8rem 0 0; max-width: 380px; font-size: clamp(2.2rem, 3.4vw, 3.8rem); line-height: 1.05; letter-spacing: -.06em; }
.archive-endnote p { margin: 0; max-width: 600px; color: var(--ink-soft); font-size: .94rem; }
.archive-endnote .text-link { grid-column: 2; width: max-content; }

.approach { background: var(--paper); }
.approach-lead { max-width: 760px; margin: 0 0 3.5rem; font-size: clamp(1.2rem, 1.8vw, 1.6rem); line-height: 1.55; letter-spacing: -.02em; }
.process-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.process-item { min-height: 250px; padding: 1.45rem 1.25rem 0 0; border-right: 1px solid var(--line); }
.process-item + .process-item { padding-left: 1.3rem; }
.process-item:last-child { border-right: 0; }
.process-item .mono { color: var(--accent-dark); font-weight: 800; }
.process-item h3 { margin: 2.3rem 0 .65rem; font-size: 1.22rem; line-height: 1.2; letter-spacing: -.04em; }
.process-item p { margin: 0; color: var(--ink-soft); font-size: .87rem; }

.about { background: var(--paper-deep); }
.about-grid { display: grid; grid-template-columns: minmax(280px, .65fr) minmax(0, 1fr); gap: clamp(3rem, 8vw, 8rem); }
.about h2 { margin: .6rem 0 1.3rem; font-size: clamp(2.8rem, 4vw, 5rem); line-height: 1.04; letter-spacing: -.065em; }
.about-intro { font-size: 1.16rem; line-height: 1.65; margin-top: 0; }
.about p:not(.about-intro) { color: var(--ink-soft); }
.skill-block { border-top: 1px solid var(--ink); padding: 1.3rem 0; display: grid; grid-template-columns: minmax(150px, .35fr) 1fr; gap: 1.3rem; }
.skill-block h3 { margin: 0; font-size: .9rem; }
.skill-block p { margin: 0; font-size: .88rem; }
.education-line { padding-top: 1.4rem; border-top: 1px solid var(--line); margin-top: 1rem; font-size: .84rem; color: var(--ink-soft); }
.education-line strong { color: var(--ink); }

.experience .section-heading { margin-bottom: 2rem; }
.experience-row { display: grid; grid-template-columns: 160px 1fr minmax(200px, .42fr); gap: 2.2rem; padding-block: 1.7rem; border-top: 1px solid var(--line); align-items: start; }
.experience-row:last-child { border-bottom: 1px solid var(--line); }
.experience-row time { color: var(--accent-dark); font: 800 .75rem Consolas, monospace; letter-spacing: .06em; }
.experience-row h3 { margin: 0 0 .25rem; font-size: 1.25rem; letter-spacing: -.035em; }
.experience-row .company { color: var(--ink-soft); font-size: .85rem; }
.experience-row p { margin: 0; color: var(--ink-soft); font-size: .88rem; }

.contact { background: var(--night); color: var(--white); padding-block: clamp(5rem, 8vw, 8rem) 2rem; }
.contact h2 { max-width: 840px; margin: .8rem 0 1.5rem; font-size: clamp(3.4rem, 6.6vw, 7.4rem); line-height: .96; letter-spacing: -.075em; }
.contact h2 em { color: var(--accent); font-style: normal; }
.contact > .container > p { max-width: 590px; color: var(--night-soft); }
.contact-links { display: flex; flex-wrap: wrap; gap: .8rem 2rem; margin-top: 2.6rem; }
.contact-links a { display: inline-flex; gap: .8rem; align-items: center; padding-bottom: .35rem; border-bottom: 1px solid #74878a; font-weight: 800; font-size: .9rem; }
.contact-links a:hover { color: var(--accent); border-color: var(--accent); }
.site-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem 2rem; padding-top: 4rem; margin-top: 4rem; border-top: 1px solid #47575c; }
.site-footer p { color: var(--night-soft); margin: 0; font-size: .73rem; }
.site-footer a { text-decoration: underline; text-underline-offset: 3px; }

/* Project case studies */
.detail-page .site-header { background: var(--paper); }
.detail-intro { padding-top: clamp(3.3rem, 6vw, 6rem); padding-bottom: clamp(3rem, 5vw, 5rem); }
.back-link { display: inline-flex; align-items: center; gap: .6rem; font-size: .8rem; font-weight: 800; color: var(--ink-soft); }
.back-link:hover { color: var(--accent); }
.detail-kicker { display: block; color: var(--accent-dark); font-weight: 800; margin-top: 4rem; }
.detail-intro h1 { max-width: 980px; margin: .8rem 0 1.3rem; font-size: clamp(3.2rem, 6.2vw, 7.2rem); line-height: .98; letter-spacing: -.075em; }
.detail-lead { max-width: 770px; font-size: clamp(1.1rem, 1.65vw, 1.4rem); line-height: 1.55; color: var(--ink-soft); }
.detail-formal-title { max-width: 770px; margin: -.5rem 0 1.5rem; color: #9ebbd2; font-size: .95rem; line-height: 1.55; }
.detail-formal-title strong { color: #d9e7f1; }
.detail-meta { display: grid; grid-template-columns: 1fr 1.45fr 1fr; gap: 2rem; margin-top: 3.5rem; padding-top: 1.3rem; border-top: 1px solid var(--ink); }
.meta-label { display: block; color: var(--accent-dark); font-weight: 800; margin-bottom: .5rem; }
.detail-meta strong { font-size: .88rem; line-height: 1.45; }
.detail-hero { background: var(--night); padding-block: clamp(1.2rem, 3vw, 3rem); }
.detail-hero figure { margin: 0; }
.detail-hero img { width: 100%; max-height: 700px; object-fit: contain; background: #203743; }
.detail-hero img.cover { object-fit: cover; aspect-ratio: 16 / 9; }
.image-caption { display: block; margin-top: .8rem; color: var(--night-soft); letter-spacing: .04em; text-transform: none; }
.detail-content { padding-block: clamp(4rem, 7vw, 7rem); }
.detail-section { display: grid; grid-template-columns: minmax(180px, .28fr) minmax(0, .72fr); gap: clamp(2rem, 5vw, 6rem); padding-block: 2.8rem; border-top: 1px solid var(--line); }
.detail-section:first-child { padding-top: 0; border-top: 0; }
.detail-section h2 { margin: 0; font-size: clamp(1.4rem, 2.2vw, 2rem); letter-spacing: -.045em; line-height: 1.2; }
.detail-section h2 .mono { display: block; margin-bottom: 1rem; color: var(--accent-dark); }
.detail-section p { margin: 0 0 1rem; font-size: 1.02rem; line-height: 1.75; color: #3c4d53; }
.detail-section p:last-child { margin-bottom: 0; }
.detail-section ul { margin: 0; padding-left: 1.25rem; color: #3c4d53; }
.detail-section li { padding-left: .3rem; margin-bottom: .7rem; line-height: 1.65; }
.result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 1.5rem 0; }
.result-grid > div { background: var(--paper); padding: 1.2rem; }
.result-grid strong { display: block; font-size: clamp(1.65rem, 2.3vw, 2.5rem); line-height: 1; letter-spacing: -.06em; }
.result-grid span { display: block; margin-top: .65rem; color: var(--ink-soft); font-size: .75rem; }
.detail-note { padding: 1.1rem 1.25rem; background: #e9e5d9; border-left: 3px solid var(--accent); font-size: .84rem !important; }
.gallery { background: var(--paper-deep); padding-block: clamp(4.5rem, 7vw, 7rem); }
.gallery h2 { font-size: clamp(2.6rem, 4vw, 4.6rem); letter-spacing: -.06em; margin: .7rem 0 2.4rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.2rem; }
.gallery-item { margin: 0; }
.gallery-item a { display: block; overflow: hidden; background: var(--white); border: 1px solid #d5d6d0; }
.gallery-item img { width: 100%; height: clamp(230px, 31vw, 380px); object-fit: contain; transition: transform .35s; }
.gallery-item a:hover img { transform: scale(1.025); }
.gallery-item figcaption { padding-top: .8rem; color: var(--ink-soft); font-size: .8rem; }
.gallery-item figcaption strong { color: var(--ink); }
.next-project { background: var(--night); color: var(--white); padding-block: clamp(4rem, 7vw, 6rem); }
.next-project a { display: flex; justify-content: space-between; gap: 2rem; align-items: end; border-top: 1px solid #506167; padding-top: 1.7rem; }
.next-project a > div { min-width: 0; }
.next-project span { color: var(--mint); }
.next-project h2 { margin: .6rem 0 0; font-size: clamp(2.4rem, 4.5vw, 5rem); line-height: 1.05; letter-spacing: -.06em; overflow-wrap: anywhere; }
.next-project .big-arrow { flex: 0 0 auto; font-size: clamp(3rem, 6vw, 6rem); line-height: 1; color: var(--accent); transition: transform .2s; }
.next-project a:hover .big-arrow { transform: translate(8px, -8px); }
.detail-footer { background: var(--night); color: var(--white); padding-bottom: 2rem; }
.detail-footer .site-footer { margin-top: 0; padding-top: 2rem; }

@media (max-width: 900px) {
  .main-nav { gap: 1rem; }
  .hero-grid { grid-template-columns: 1fr .72fr; gap: 2rem; }
  .hero h1 { font-size: clamp(3.4rem, 7vw, 5.5rem); }
  .portrait-wrap { box-shadow: 10px 10px 0 var(--mint); }
  .section-heading { grid-template-columns: 1fr .6fr; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-item:nth-child(2) { border-right: 0; }
  .process-item:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .process-item { min-height: 220px; }
  .experience-row { grid-template-columns: 120px 1fr; }
  .experience-row p { grid-column: 2; }
  .archive-hero-grid { grid-template-columns: 1fr .55fr; gap: 2rem; }
  .archive-tools { grid-template-columns: 1fr; }
  .archive-count { grid-column: auto; }
}

@media (max-width: 700px) {
  .header-inner { min-height: 68px; }
  .header-contact { margin-left: auto; }
  .menu-toggle { display: inline-flex; order: 3; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem; border: 1px solid var(--ink); background: transparent; color: var(--ink); font-size: 1.1rem; cursor: pointer; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 68px; margin: 0; padding: 1.3rem var(--gutter) 1.8rem; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 1rem; box-shadow: 0 16px 25px rgba(16,29,37,.08); }
  .main-nav.is-open { display: flex; }
  .main-nav a { font-size: .95rem; }
  .hero-grid { grid-template-columns: 1fr; padding-top: 4rem; padding-bottom: 4rem; }
  .hero h1 { max-width: 650px; font-size: clamp(3.3rem, 12vw, 5.8rem); }
  .hero-art { max-width: 360px; width: 78%; margin: 1rem auto 0; }
  .hero-note { margin-top: 2.4rem; }
  .hero-bottom .container { flex-direction: column; gap: .2rem; }
  .section-heading { grid-template-columns: 1fr; gap: 1.2rem; margin-bottom: 2.5rem; }
  .project-feature { grid-template-columns: 1fr; }
  .feature-visual { min-height: 350px; }
  .feature-copy { max-width: 600px; }
  .project-grid { grid-template-columns: 1fr; }
  .project-image { height: 320px; }
  .work-archive { flex-direction: column; align-items: flex-start; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .detail-meta { grid-template-columns: 1fr 1fr; }
  .detail-section { grid-template-columns: 1fr; gap: 1.2rem; }
  .sprint-grid, .archive-grid, .archive-intro, .archive-group-head, .archive-endnote { grid-template-columns: 1fr; }
  .sprint-item:nth-child(odd) { border-right: 0; }
  .sprint-item:nth-child(even) { padding-left: 0; }
  .sprint-item:nth-child(even):hover { padding-left: 1rem; }
  .sprint-foot { align-items: flex-start; flex-direction: column; }
  .archive-hero-grid { grid-template-columns: 1fr; }
  .archive-hero-graphic { grid-template-columns: repeat(3, 1fr); gap: .9rem; border: 0; }
  .archive-hero-graphic > span { display: block; border-top: 1px solid #597075; font-size: clamp(2.8rem, 9vw, 4rem); }
  .archive-hero-graphic > span span { display: block; width: auto; padding-top: .5rem; text-align: left; font-size: .55rem; }
  .archive-endnote .text-link { grid-column: auto; }
}

@media (max-width: 480px) {
  .brand { font-size: .77rem; gap: .5rem; }
  .brand-mark { width: 1.8rem; height: 1.8rem; font-size: .67rem; }
  .header-contact { display: none; }
  .menu-toggle { margin-left: auto; }
  .hero h1 { font-size: clamp(3.15rem, 12.7vw, 4.1rem); }
  .hero-actions { align-items: stretch; }
  .hero-actions .button { width: 100%; }
  .hero-art { width: 84%; }
  .hero-note span + span::before { display: none; }
  .feature-visual { min-height: 300px; }
  .project-image { height: 260px; }
  .process-grid { grid-template-columns: 1fr; }
  .process-item, .process-item + .process-item { min-height: 0; border-right: 0; border-top: 1px solid var(--line); padding: 1.2rem 0 1.6rem; }
  .process-item:first-child { border-top: 0; }
  .process-item h3 { margin-top: 1.1rem; }
  .skill-block { grid-template-columns: 1fr; gap: .45rem; }
  .experience-row { grid-template-columns: 1fr; gap: .45rem; }
  .experience-row p { grid-column: auto; }
  .detail-kicker { margin-top: 2.5rem; }
  .detail-intro h1 { font-size: clamp(2.4rem, 10vw, 3rem); overflow-wrap: anywhere; }
  .detail-meta { grid-template-columns: 1fr; gap: 1.2rem; }
  .result-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .next-project a { align-items: center; }
  .archive-hero h1 { font-size: clamp(3.4rem, 12vw, 5.5rem); }
  .archive-hero-graphic { gap: .45rem; }
  .archive-hero-graphic > span { font-size: 2.8rem; }
  .archive-tools { margin-inline: calc(-1 * var(--gutter)); border-inline: 0; }
  .archive-card { padding-inline: 1.1rem; }
  .archive-card-top { flex-wrap: wrap; }
  .archive-status { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Project previews in the complete archive */
.archive-card-preview { width: 100%; height: 190px; object-fit: contain; padding: .45rem; margin-top: 1.3rem; background: #e5ebe4; border: 1px solid #d1d9d0; }
.archive-card.has-preview h3 { margin-top: 1rem; }
.archive-card.has-preview { min-height: 480px; }
@media (max-width: 640px) { .archive-card-preview { height: 170px; } .archive-card.has-preview { min-height: 0; } }

/* Quiet navy visual system: restrained blue, fine borders, clear spacing. */
:root {
  color-scheme: dark;
  --paper: #0d1725;
  --paper-deep: #111e2d;
  --ink: #eef3f7;
  --ink-soft: #a8b8c9;
  --line: #2b3c50;
  --night: #0a1421;
  --night-soft: #a8b8c9;
  --accent: #8db4d9;
  --accent-dark: #a7c8e6;
  --mint: #a5bbce;
  --white: #f4f7fa;
  --content: 1200px;
}
body { background: var(--paper); color: var(--ink); }
::selection { background: #9bbbd9; color: #0a1421; }
:focus-visible { outline-color: #b9d4eb; }
.skip-link { background: #dceaf5; color: #0a1421; }
.section-index, .project-num, .detail-kicker, .meta-label { color: var(--accent-dark); }
.eyebrow .dot { background: var(--accent); box-shadow: 0 0 0 5px rgba(141,180,217,.13); }
.muted { color: var(--ink-soft); }

/* Navigation */
.site-header, .detail-page .site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10,20,33,.94);
  border-color: #26364a;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.header-inner { min-height: 74px; }
.brand { color: var(--white); letter-spacing: -.035em; }
.brand-mark { background: #203449; border: 1px solid #55718c; color: #edf4fa; }
.main-nav a { color: #c7d3de; font-weight: 600; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: #f2f7fb; }
.main-nav a::after { background: var(--accent); }
.header-contact, .menu-toggle { border: 1px solid #465c73; border-radius: 999px; color: #edf4fa; }
.header-contact { padding: .64rem 1.1rem; }
.header-contact:hover { background: #d5e5f2; color: #102034; border-color: #d5e5f2; }
.menu-toggle { background: transparent; }

/* Intro */
.hero { background: radial-gradient(circle at 83% 29%, #192b40 0%, #0d1725 40%, #0a1421 100%); }
.hero::before {
  inset: 0;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  right: 0;
  top: 0;
  background-image: radial-gradient(rgba(173,198,219,.23) .7px, transparent .7px);
  background-size: 34px 34px;
  opacity: .38;
  mask-image: linear-gradient(90deg, transparent 17%, #000 65%);
}
.hero::after { display: none; }
.hero-grid { min-height: min(720px, calc(100vh - 74px)); gap: clamp(3rem, 6vw, 6.5rem); }
.hero h1 { max-width: 760px; font-size: clamp(3.55rem, 6.1vw, 6.5rem); line-height: 1.01; letter-spacing: -.074em; }
.hero h1 em { color: #a4c3df; }
.hero-lead { color: #bccbd8; max-width: 640px; }
.button { border-radius: 8px; gap: 1rem; }
.button-primary { background: #9bbbd9; color: #0d1b2a; }
.button-primary:hover { background: #c6dcf0; }
.button-secondary { border: 1px solid #536a80; color: #edf4f9; }
.button-secondary:hover { background: #22384d; color: #f5f8fb; }
.hero-note { color: #a9bed1; }
.hero-note span + span::before { color: #8db4d9; }
.portrait-wrap {
  max-width: 410px;
  margin: 0 auto;
  padding: .8rem;
  background: #182b40;
  border: 1px solid #405b74;
  border-radius: 19px;
  box-shadow: 0 22px 60px rgba(0,0,0,.22), 18px 18px 0 rgba(62,91,119,.19);
  transform: none;
}
.portrait-wrap::before { display: none; }
.portrait-wrap img { height: clamp(380px, 36vw, 520px); border-radius: 12px; filter: saturate(.72) contrast(1.03); }
.portrait-caption { padding: .9rem .3rem .1rem; color: #b7cde0; }
.hero-bottom { background: #0b1522; border-color: #26384d; }
.hero-bottom p { color: #99aec1; }

/* Section rhythm and selected work */
.section-pad { padding-block: clamp(5.5rem, 8vw, 8.5rem); }
.section-heading h2 { font-size: clamp(2.7rem, 4.2vw, 4.8rem); letter-spacing: -.06em; }
.work { background: #101d2c; }
.work .section-heading p { color: #adbdcb; }
.project-feature {
  border: 1px solid #31465d;
  border-radius: 18px;
  background: #17293b;
  padding: 1rem;
  gap: clamp(2rem, 4vw, 4.5rem);
  overflow: hidden;
  margin-bottom: 1.3rem;
}
.feature-visual { min-height: 430px; border-radius: 11px; background: #20364b; }
.feature-visual img:first-child { background: #23384b; }
.feature-visual::after { background: rgba(13,27,43,.9); color: #deecf6; border: 1px solid #67829b; border-radius: 5px; }
.feature-copy { padding: 1.5rem 1.5rem 1.5rem 0; }
.feature-copy h3 { font-size: clamp(2rem, 3vw, 3.6rem); }
.feature-copy h3.long-title { font-size: clamp(1.85rem, 2.45vw, 3rem); }
.feature-copy > p, .project-card p { color: #b3c2d0; }
.feature-facts { border-color: #3b5065; }
.feature-facts strong { color: #f3f7fa; }
.feature-facts span { color: #aabacc; }
.project-grid { gap: 1.3rem; }
.project-card {
  padding: 1rem 1rem 1.5rem;
  border: 1px solid #30465c;
  border-radius: 17px;
  background: #17283a;
  display: flex;
  flex-direction: column;
}
.project-image { height: clamp(250px, 27vw, 340px); margin: 0 0 1.3rem; border-radius: 10px; background: #dfe7e9; }
.project-card h3 { margin-top: .6rem; }
.project-card p:last-of-type { flex: 1; }
.project-card .project-role { color: #a9c6de; }
.project-card .text-link { align-self: flex-start; }
.work-archive { margin-top: 2rem; border-color: #34495c; }
.text-link:hover, .work .text-link:hover, .contact .text-link:hover { color: #c1dcf0; }

/* Sprint collection and process */
.archive-preview { background: #0c1725; }
.sprint-grid { gap: .85rem; border: 0; }
.sprint-item, .sprint-item:nth-child(odd), .sprint-item:nth-child(even) {
  padding: 1.25rem 1.35rem;
  border: 1px solid #2e4358;
  border-radius: 10px;
  background: #152538;
}
.sprint-item:hover, .sprint-item:nth-child(even):hover { padding-left: 1.35rem; background: #20344a; border-color: #68839b; }
.sprint-number, .sprint-item > span:last-child { color: #a6c8e4; }
.sprint-item small, .sprint-foot p { color: #a8b8c9; }
.approach { background: #101d2c; }
.approach-lead { color: #bbc9d6; }
.process-grid { gap: .9rem; border: 0; }
.process-item, .process-item + .process-item, .process-item:nth-child(n + 3) {
  min-height: 245px;
  padding: 1.4rem;
  border: 1px solid #31465a;
  border-radius: 12px;
  background: #17293a;
}
.process-item .mono { color: #a5c8e4; }
.process-item h3 { margin-top: 2rem; }
.process-item p { color: #aebdcb; }
.about { background: #0c1725; }
.about p:not(.about-intro), .education-line { color: #adbdcb; }
.skill-block { border-color: #314459; }
.education-line { border-color: #314459; }
.education-line strong { color: #ecf3f8; }
.experience { background: #101d2c; }
.experience-row, .experience-row:last-child { border-color: #31465a; }
.experience-row time { color: #a6c8e4; }
.experience-row .company, .experience-row p { color: #adbdcb; }

/* Contact: a single composed invitation, then a quiet footer. */
.contact { background: #0a1421; padding-block: clamp(5.5rem, 8vw, 8.5rem) 2rem; }
.contact-panel {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2.5rem;
  padding: clamp(2.2rem, 4.5vw, 4.5rem);
  border: 1px solid #3d5870;
  border-radius: 20px;
  background: linear-gradient(115deg, #1b3046 0%, #17293c 58%, #112337 100%);
  box-shadow: 0 18px 50px rgba(0,0,0,.12);
}
.contact-copy { max-width: 720px; }
.contact h2 { max-width: 700px; margin: 1rem 0 1.2rem; font-size: clamp(2.5rem, 4.2vw, 4.8rem); line-height: 1.07; letter-spacing: -.06em; }
.contact h2 em { color: #b5d2e9; }
.contact-copy > p { max-width: 620px; margin: 0; color: #bbcbda; font-size: 1rem; line-height: 1.7; }
.contact-links { gap: .65rem; margin-top: 2rem; }
.contact-links a {
  gap: .65rem;
  padding: .62rem .86rem;
  border: 1px solid #526a80;
  border-radius: 8px;
  color: #e5eef5;
  font-size: .78rem;
  font-weight: 700;
}
.contact-links a:hover { background: #28435b; border-color: #99bbd7; }
.contact-cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-width: 175px;
  gap: 2rem;
  padding: .92rem 1.15rem;
  border-radius: 8px;
  background: #a7c5df;
  color: #112337;
  font-size: .85rem;
  font-weight: 800;
  transition: background .2s, transform .2s;
}
.contact-cta:hover { background: #d0e4f4; transform: translateY(-2px); }
.contact .site-footer { margin-top: clamp(3rem, 5vw, 5rem); padding-top: 1.6rem; border-color: #293c50; }
.site-footer p { color: #91a5b8; }

/* Archive */
.archive-hero { background: radial-gradient(circle at 82% 15%, #1a2d43 0%, #0a1421 60%); }
.archive-hero::before { border-color: #32485e; box-shadow: 0 0 0 65px rgba(141,180,217,.025), 0 0 0 130px rgba(141,180,217,.018); }
.archive-hero .back-link, .archive-hero .eyebrow { color: #a7c6df; }
.archive-hero h1 { font-size: clamp(3.8rem, 7vw, 7.6rem); }
.archive-hero h1 em { color: #a8c7e2; }
.archive-hero-graphic, .archive-hero-graphic > span { border-color: #40566c; }
.archive-hero-graphic > span:nth-child(2), .archive-hero-graphic > span:nth-child(3) { color: #a8c7e2; }
.archive-body { background: #0e1a29; }
.archive-intro p, .archive-group-head p { color: #aebdcb; }
.archive-tools { background: #17283a; border-color: #354a60; border-radius: 13px; }
.archive-search-label input { border: 1px solid #4e657b; border-radius: 7px; background: #0e1c2d; color: #f3f7fa; }
.archive-search-label input::placeholder { color: #8499ad; }
.archive-filters button { border-color: #4b6178; border-radius: 999px; color: #c9d8e4; }
.archive-filters button:hover, .archive-filters button.is-active { background: #a7c5df; border-color: #a7c5df; color: #0c1b2c; }
.archive-count strong { color: #f1f6f9; }
.archive-group-head { border-color: #71859a; }
.archive-grid { gap: 1rem; background: transparent; border: 0; padding-top: 1rem; }
.archive-card, .archive-card:nth-child(4n+1) { border: 1px solid #34495f; border-radius: 13px; background: #17283b; }
.archive-card-top .mono { color: #a8cae6; }
.archive-status { color: #a6b9c9; }
.archive-card p { color: #b9c8d4; }
.archive-card-bottom { border-color: #395068; }
.archive-evidence { color: #9eb1c2; }
.archive-card-link:hover { color: #c6e0f2; }
.archive-card-preview { border-color: #51697b; border-radius: 8px; background: #dce5e9; }
.archive-endnote { background: #1b3045; border: 1px solid #405970; border-radius: 16px; }
.archive-endnote p { color: #b9c9d6; }

/* Case studies */
.detail-intro { background: #0d1828; }
.back-link { color: #aabed0; }
.back-link:hover { color: #d3e6f4; }
.detail-intro h1 { font-size: clamp(3rem, 5.8vw, 6.5rem); }
.detail-lead { color: #b9c8d5; }
.detail-meta { border-color: #597188; }
.detail-hero { background: #09131f; }
.detail-hero img { background: #1a2d40; border-radius: 10px; }
.detail-content { background: #0e1a29; }
.detail-section { border-color: #34495d; }
.detail-section p, .detail-section ul { color: #bac9d5; }
.detail-note { background: #1d3247; border-color: #95b9d7; color: #cad9e5 !important; border-radius: 0 7px 7px 0; }
.result-grid { background: #34495f; border-color: #34495f; }
.result-grid > div { background: #17283b; }
.result-grid span { color: #aebfcd; }
.gallery { background: #111f30; }
.gallery-item a { background: #e3e9ec; border-color: #4b6178; border-radius: 9px; }
.gallery-item figcaption { color: #aabac9; }
.gallery-item figcaption strong { color: #eaf2f8; }
.next-project { background: #0b1624; }
.next-project a { border-color: #41596f; }
.next-project span, .next-project .big-arrow { color: #a8cbe7; }
.detail-footer { background: #0b1624; }
.detail-footer .site-footer { border-color: #34495e; }

@media (max-width: 900px) {
  .portrait-wrap { box-shadow: 0 18px 40px rgba(0,0,0,.18), 10px 10px 0 rgba(62,91,119,.19); }
  .process-grid { gap: .8rem; }
}
@media (max-width: 700px) {
  .main-nav { background: #101e2e; border-color: #31475d; box-shadow: 0 18px 30px rgba(0,0,0,.22); }
  .menu-toggle { border-color: #516b82; color: #eef4f9; }
  .hero-grid { min-height: 0; }
  .hero-art { max-width: 360px; }
  .portrait-wrap { margin-inline: auto; }
  .feature-copy { padding: .6rem .8rem 1.3rem; }
  .project-feature { gap: 1.2rem; }
  .contact-panel { align-items: stretch; flex-direction: column; }
  .contact-cta { align-self: flex-start; }
  .archive-grid { gap: .8rem; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: clamp(3.1rem, 12vw, 4rem); }
  .hero-note { margin-top: 2.2rem; }
  .feature-visual { min-height: 290px; }
  .project-card { padding: .8rem .8rem 1.4rem; }
  .process-item, .process-item + .process-item, .process-item:nth-child(n + 3) { min-height: 0; padding: 1.3rem; border: 1px solid #31465a; }
  .contact h2 { font-size: clamp(2.4rem, 10vw, 3.3rem); }
  .contact-panel { padding: 1.45rem; }
  .contact-cta { width: 100%; }
  .archive-tools { border-radius: 0; }
  .archive-card { padding: 1.1rem; }
}
