:root {
  --ink: #181a17;
  --paper: #f3f1e9;
  --surface: #fbfaf5;
  --soft: #e5e2d7;
  --accent: #d65d2f;
  --muted: #65665f;
  --line: #c9c6ba;
  --max: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 17px/1.55 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
body:has(dialog[open]) { overflow: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; }
.skip-link { position: fixed; z-index: 100; top: -5rem; left: 1rem; padding: .8rem 1rem; background: white; }
.skip-link:focus { top: 1rem; }
.site-header { min-height: 72px; max-width: var(--max); margin: auto; padding: 15px 26px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: flex; gap: 11px; align-items: center; font: 750 .72rem/1 system-ui, sans-serif; letter-spacing: .065em; text-decoration: none; }
.brand-mark { width: 14px; height: 14px; background: var(--accent); clip-path: polygon(0 0,100% 0,100% 36%,36% 36%,36% 100%,0 100%); }
nav { display: flex; align-items: center; gap: 25px; }
nav a { font-size: .77rem; font-weight: 650; text-decoration: none; }
.nav-cta { padding: 8px 13px; border: 1px solid var(--ink); }
.hero { max-width: var(--max); margin: auto; padding: 80px 26px 86px; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 78px; align-items: center; }
.eyebrow { margin: 0 0 15px; color: var(--accent); font: 800 .68rem/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; letter-spacing: .12em; }
h1,h2,h3 { margin-top: 0; line-height: 1.09; }
h1 { max-width: 760px; margin-bottom: 17px; font-size: clamp(3rem, 6.7vw, 5.6rem); letter-spacing: -.057em; }
.hero-role { margin: 0 0 23px; color: var(--accent); font-size: 1.12rem; font-weight: 750; }
.hero-role span { padding-inline: 5px; color: var(--ink); }
.hero-intro { max-width: 680px; margin: 0; color: #4f504b; font-size: 1.03rem; line-height: 1.72; }
.hero-actions { margin-top: 31px; display: flex; flex-wrap: wrap; gap: 11px; }
.button { min-height: 48px; padding: 12px 17px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--ink); font-size: .82rem; font-weight: 750; text-decoration: none; }
.button-primary { color: white; background: var(--ink); }
.button-quiet { background: transparent; }
.hero-panel { position: relative; padding: 30px; background: var(--ink); color: white; box-shadow: 13px 13px 0 var(--accent); }
.hero-panel::before { content: "TARGET / CNC"; position: absolute; top: 16px; right: 16px; color: #8e918a; font: .58rem ui-monospace, monospace; letter-spacing: .1em; }
.panel-label { margin: 0 0 23px; color: #aaaCA5; font: .63rem ui-monospace, monospace; text-transform: uppercase; letter-spacing: .1em; }
.hero-panel h2 { margin-bottom: 14px; font-size: 1.65rem; letter-spacing: -.03em; }
.hero-panel > p:not(.panel-label,.honesty-note) { color: #bec0ba; font-size: .87rem; }
.hero-panel dl { margin: 24px 0; border-top: 1px solid #4b4e48; }
.hero-panel dl div { padding: 11px 0; display: flex; justify-content: space-between; gap: 15px; border-bottom: 1px solid #4b4e48; }
.hero-panel dt { color: #9ea099; font-size: .66rem; text-transform: uppercase; }
.hero-panel dd { margin: 0; font-size: .78rem; font-weight: 750; }
.honesty-note { margin: 0; padding-top: 3px; color: #d7d8d2; font-size: .72rem; line-height: 1.55; }
.proof-band { padding: 25px max(26px, calc((100vw - var(--max)) / 2 + 26px)); display: grid; grid-template-columns: repeat(3,1fr); gap: 30px; background: var(--accent); color: white; }
.proof-band p { margin: 0; }
.proof-band strong,.proof-band span { display: block; }
.proof-band strong { font-size: .84rem; }
.proof-band span { margin-top: 2px; color: #ffe1d5; font-size: .69rem; }
.section { padding: 92px max(26px, calc((100vw - var(--max)) / 2 + 26px)); }
.section-heading { margin-bottom: 42px; display: flex; justify-content: space-between; align-items: end; gap: 50px; }
.section-heading h2,.contact h2 { max-width: 700px; margin: 0; font-size: clamp(2rem,4.4vw,3.65rem); letter-spacing: -.045em; }
.section-heading > p { max-width: 430px; margin: 0; color: var(--muted); font-size: .88rem; }
.capabilities { background: var(--surface); }
.capability-grid { display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--ink); border-left: 1px solid var(--line); }
.capability-card { min-height: 245px; padding: 23px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.capability-card > span,.knowledge-grid article > span { color: var(--accent); font: 700 .64rem ui-monospace, monospace; }
.capability-card h3 { margin: 62px 0 11px; font-size: 1.08rem; }
.capability-card p { margin: 0; color: var(--muted); font-size: .82rem; }
.projects-section { background: var(--soft); }
.projects-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 22px; }
.project-card { display: grid; grid-template-columns: 46% 54%; min-height: 315px; background: var(--surface); border: 1px solid var(--line); }
.project-media { position: relative; min-height: 315px; padding: 0; overflow: hidden; background: #c7c6bf; border: 0; cursor: pointer; }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.project-media:hover img { transform: scale(1.025); }
.project-index,.photo-count { position: absolute; z-index: 2; padding: 6px 8px; font: 700 .62rem ui-monospace, monospace; }
.project-index { top: 11px; left: 11px; background: var(--surface); }
.photo-count { right: 11px; bottom: 11px; color: white; background: rgba(20,22,19,.86); }
.project-body { padding: 25px; display: flex; flex-direction: column; }
.project-type,.gallery-type { margin: 0; color: var(--accent); font: 750 .62rem ui-monospace, monospace; text-transform: uppercase; letter-spacing: .08em; }
.project-body h3 { margin: 9px 0 12px; font-size: 1.25rem; }
.project-body > p:not(.project-type) { margin: 0; color: var(--muted); font-size: .8rem; }
.project-body ul { margin: 18px 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 5px; list-style: none; }
.project-body li { padding: 3px 6px; border: 1px solid var(--line); font-size: .58rem; }
.case-link { margin-top: auto; padding: 0; display: flex; justify-content: space-between; color: var(--ink); background: none; border: 0; border-top: 1px solid var(--line); padding-top: 11px; font-size: .7rem; font-weight: 750; cursor: pointer; }
.path-section { background: var(--ink); color: white; }
.path-section .section-heading > p { color: #aeb0a9; }
.path-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: #4b4e47; border: 1px solid #4b4e47; }
.path-card { min-height: 300px; padding: 27px; background: #20221f; }
.path-card > span { color: var(--accent); font: .65rem ui-monospace, monospace; }
.path-card h3 { margin: 74px 0 14px; font-size: 1.35rem; }
.path-card p { color: #b9bbb5; font-size: .83rem; }
.path-card .pending-copy { color: #858881; font-size: .7rem; }
.path-next { background: var(--accent); }
.path-next > span,.path-next p { color: #ffe0d4; }
.knowledge-section { background: var(--paper); }
.knowledge-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.knowledge-grid article { padding: 25px; background: var(--surface); border: 1px solid var(--line); }
.knowledge-grid h3 { margin: 40px 0 10px; font-size: 1.1rem; }
.knowledge-grid p { margin: 0; color: var(--muted); font-size: .83rem; }
.training-section { background: var(--surface); }
.timeline { border-top: 1px solid var(--ink); }
.timeline-item { padding: 25px 0; display: grid; grid-template-columns: 52px 1fr 1.3fr; gap: 28px; border-bottom: 1px solid var(--line); }
.timeline-item > span,.timeline-item div > p:first-child { color: var(--accent); font: 700 .63rem ui-monospace, monospace; text-transform: uppercase; }
.timeline-item div > p:first-child { margin: 0; }
.timeline-item h3 { margin: 7px 0 0; font-size: 1.06rem; }
.timeline-item a { font-size: .78rem; font-weight: 700; text-decoration: none; }
.timeline-item div:last-child p { margin: 7px 0 0; color: var(--muted); font-size: .8rem; }
.interview-link { max-width: 490px; margin-top: 34px; display: grid; grid-template-columns: 102px 1fr; background: var(--paper); border: 1px solid var(--line); text-decoration: none; }
.interview-link img { width: 102px; height: 125px; object-fit: cover; }
.interview-link > span { padding: 18px; display: flex; flex-direction: column; justify-content: center; }
.interview-link small { color: var(--accent); font-size: .62rem; text-transform: uppercase; }
.interview-link strong { margin: 5px 0 8px; font-size: .84rem; }
.interview-link b { color: var(--muted); font-size: .65rem; }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; background: var(--accent); color: white; }
.contact .eyebrow { color: #ffe0d4; }
.contact-copy > p:not(.eyebrow) { max-width: 510px; color: #ffe0d4; }
.cv-download { margin-top: 28px; padding: 17px; display: grid; grid-template-columns: 48px 1fr; gap: 3px 12px; color: white; border: 1px solid rgba(255,255,255,.55); text-decoration: none; transition: background .2s ease; }
.cv-download:hover { background: rgba(255,255,255,.1); }
.cv-download span { grid-row: 1 / 3; display: grid; place-items: center; color: var(--accent); background: white; font: 800 .65rem ui-monospace, monospace; }
.cv-download strong { font-size: .76rem; }
.cv-download small { color: #ffe0d4; font-size: .63rem; }
.contact-card { border-top: 1px solid rgba(255,255,255,.5); }
.contact-card a { padding: 18px 2px; display: grid; grid-template-columns: 78px 1fr 20px; gap: 15px; border-bottom: 1px solid rgba(255,255,255,.5); text-decoration: none; }
.contact-card span { color: #ffe0d4; font-size: .65rem; text-transform: uppercase; }
.contact-card strong { font-size: .85rem; }
.contact-card b { text-align: right; }
.gallery-dialog { width: min(1050px,calc(100% - 30px)); max-width: none; max-height: calc(100% - 30px); padding: 0; border: 0; background: var(--surface); color: var(--ink); }
.gallery-dialog::backdrop { background: rgba(10,11,9,.87); }
.gallery-shell { position: relative; display: grid; grid-template-columns: 56% 44%; min-height: min(720px,calc(100vh - 30px)); }
.gallery-close { position: absolute; z-index: 5; top: 12px; right: 12px; width: 42px; height: 42px; padding: 0 0 3px; color: white; background: var(--ink); border: 1px solid #6c6f68; border-radius: 50%; font-size: 1.7rem; cursor: pointer; }
.gallery-stage { position: relative; min-height: 540px; display: grid; place-items: center; background: #111310; }
.gallery-stage img { max-height: calc(100vh - 55px); width: auto; height: auto; object-fit: contain; }
.gallery-arrow { position: absolute; z-index: 3; top: 50%; width: 43px; height: 58px; transform: translateY(-50%); color: white; background: rgba(24,26,23,.8); border: 1px solid #5f625b; font-size: 2rem; cursor: pointer; }
.gallery-previous { left: 10px; }.gallery-next { right: 10px; }
.gallery-details { padding: 70px 34px 32px; overflow-y: auto; }
.gallery-heading { padding-bottom: 25px; border-bottom: 1px solid var(--line); }
.gallery-heading h2 { margin: 8px 0 12px; font-size: 1.75rem; }
.gallery-heading > p:last-child { margin: 0; color: var(--muted); font: .7rem ui-monospace, monospace; }
.case-facts { margin: 0; }
.case-facts div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.case-facts dt { color: var(--accent); font: 700 .61rem ui-monospace, monospace; text-transform: uppercase; letter-spacing: .08em; }
.case-facts dd { margin: 7px 0 0; color: var(--muted); font-size: .82rem; }
footer { padding: 22px max(26px,calc((100vw - var(--max))/2 + 26px)); display: flex; justify-content: space-between; gap: 20px; background: #111310; color: #9a9c96; font: .62rem ui-monospace, monospace; text-transform: uppercase; letter-spacing: .07em; }
@media (max-width: 930px) {
  nav a:not(.nav-cta) { display: none; }
  .hero { grid-template-columns: 1fr; gap: 45px; }
  .hero-panel { max-width: 650px; }
  .capability-grid { grid-template-columns: repeat(2,1fr); }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card { min-height: 290px; }
  .path-grid { grid-template-columns: 1fr; }
  .path-card { min-height: 230px; }
  .path-card h3 { margin-top: 45px; }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .site-header { min-height: 64px; }
  .brand span:last-child { max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hero { padding-top: 52px; padding-bottom: 60px; }
  h1 { font-size: 3.05rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .proof-band,.knowledge-grid { grid-template-columns: 1fr; }
  .proof-band { gap: 14px; }
  .section { padding-top: 68px; padding-bottom: 68px; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 15px; }
  .project-card { display: block; }
  .project-media { width: 100%; min-height: auto; aspect-ratio: 4/3; }
  .timeline-item { grid-template-columns: 36px 1fr; gap: 16px; }
  .timeline-item > div:last-child { grid-column: 2; }
  .contact { grid-template-columns: 1fr; gap: 44px; }
  .gallery-dialog { width: 100%; height: 100%; max-height: 100%; }
  .gallery-shell { height: 100%; min-height: 0; display: flex; flex-direction: column; }
  .gallery-stage { min-height: 46vh; flex: 1 1 53%; }
  .gallery-stage img { max-height: 56vh; }
  .gallery-details { flex: 1 1 47%; padding: 28px 22px; }
}
@media (max-width: 470px) {
  .capability-grid { grid-template-columns: 1fr; }
  .capability-card { min-height: 205px; }
  .capability-card h3 { margin-top: 42px; }
  .hero-panel { padding: 24px; box-shadow: 8px 8px 0 var(--accent); }
  .interview-link { grid-template-columns: 86px 1fr; }
  .interview-link img { width: 86px; }
  footer { flex-direction: column; gap: 5px; }
}
