:root {
  --ink: #07111f;
  --ink-soft: #0e1c2c;
  --panel: #102338;
  --paper: #f1f4f2;
  --paper-2: #e8ece9;
  --muted: #9bacb8;
  --line: rgba(255, 255, 255, 0.13);
  --cyan: #27d4ff;
  --lime: #d7d65a;
  --red: #ff695f;
  --white: #f8fbfa;
  --max: 1380px;
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed; z-index: 999; top: 10px; left: 10px;
  padding: 10px 14px; background: var(--white); color: var(--ink);
  transform: translateY(-180%); transition: transform .2s;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed; z-index: 100; top: 0; left: 0; right: 0;
  height: 78px; padding: 0 clamp(20px, 4vw, 64px);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  color: var(--white); border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
}
.site-header.is-scrolled { background: rgba(7,17,31,.84); border-color: var(--line); backdrop-filter: blur(18px); }
.brand { display: inline-flex; gap: 12px; align-items: center; text-decoration: none; justify-self: start; }
.brand-mark { width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.32); display: grid; place-items: center; font-weight: 800; font-size: 12px; letter-spacing: .06em; }
.brand-photo { overflow: hidden; border-radius: 50%; background: var(--ink-soft); }
.brand-photo img { width: 100%; height: 100%; display: block; object-fit: cover; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.1; }
.brand-copy strong { font-size: 13px; letter-spacing: .02em; }
.brand-copy small { color: var(--muted); font-size: 10px; margin-top: 4px; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { font-size: 12px; color: #c6d1d7; text-decoration: none; position: relative; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 1px; background: var(--cyan); transition: right .25s; }
.site-nav a:hover::after, .site-nav a.is-active::after { right: 0; }
.site-nav a:hover, .site-nav a.is-active { color: white; }
.header-actions { justify-self: end; display: flex; gap: 10px; align-items: center; }
.lang-button { height: 38px; min-width: 42px; border: 1px solid var(--line); background: transparent; color: var(--white); cursor: pointer; }
.header-cta { border: 1px solid rgba(255,255,255,.3); padding: 11px 17px; text-decoration: none; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; transition: .2s; }
.header-cta:hover { color: var(--ink); background: var(--white); }
.menu-button { display: none; }

.section-shell { padding-inline: max(24px, calc((100vw - var(--max))/2)); }
.hero {
  min-height: 100svh; padding-top: 150px; padding-bottom: 32px;
  background:
    radial-gradient(circle at 63% 42%, rgba(39,212,255,.10), transparent 27%),
    linear-gradient(120deg, #06101c 0%, #081522 58%, #0c1d2d 100%);
  color: var(--white); display: grid; grid-template-columns: .87fr 1.13fr; grid-template-rows: 1fr auto;
  gap: 36px 54px; overflow: hidden; position: relative;
}
.hero::before { content: ""; position: absolute; inset: 0; opacity: .06; background-image: linear-gradient(rgba(255,255,255,.6) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.6) 1px, transparent 1px); background-size: 62px 62px; mask-image: linear-gradient(to right, black, transparent 80%); }
.hero-copy { align-self: center; position: relative; z-index: 1; max-width: 670px; padding-bottom: 24px; }
.eyebrow { display: flex; align-items: center; gap: 12px; text-transform: uppercase; letter-spacing: .18em; font-size: 11px; color: #aebdc7; margin-bottom: 28px; }
.eyebrow > span:first-child { width: 28px; height: 1px; background: var(--cyan); }
h1 { font-size: clamp(52px, 6.35vw, 104px); line-height: .88; letter-spacing: -.065em; margin: 0; max-width: 850px; font-weight: 690; }
h1 span, h1 em { display: block; }
h1 em { color: var(--cyan); font-style: normal; font-weight: 420; }
.hero-intro { max-width: 620px; color: #acbbc4; font-size: clamp(15px, 1.25vw, 19px); line-height: 1.7; margin: 34px 0 0; }
.hero-actions { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.button { min-height: 48px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid transparent; text-decoration: none; font-size: 12px; font-weight: 700; letter-spacing: .025em; transition: transform .2s, background .2s, color .2s, border-color .2s; cursor: pointer; }
.button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--cyan); color: var(--ink); }
.button-primary:hover { background: #84e9ff; }
.button-ghost { color: var(--white); border-color: var(--line); background: rgba(255,255,255,.02); }
.button-ghost:hover { border-color: rgba(255,255,255,.45); }
.hero-stats { display: flex; gap: 32px; margin: 40px 0 0; padding: 0; }
.hero-stats div { display: flex; align-items: center; gap: 10px; padding-right: 30px; border-right: 1px solid var(--line); }
.hero-stats div:last-child { border-right: 0; }
.hero-stats dt { font-size: 28px; font-weight: 600; color: white; }
.hero-stats dd { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.3; max-width: 68px; text-transform: uppercase; letter-spacing: .08em; }

.hero-visual { position: relative; align-self: center; min-height: min(68vw, 690px); border: 1px solid var(--line); background: rgba(7,19,31,.5); overflow: hidden; }
.hero-visual::after { content: ""; position: absolute; inset: 48px 0 0; pointer-events: none; z-index: 1; background: linear-gradient(to top, rgba(3,11,20,.78), transparent 33%), linear-gradient(120deg, rgba(255,255,255,.07), transparent 18%, transparent 80%, rgba(39,212,255,.08)); }
.visual-topbar { position: relative; z-index: 3; height: 48px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; font-size: 9px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); border-bottom: 1px solid var(--line); background: rgba(7,17,31,.9); }
.visual-topbar span { display: flex; align-items: center; gap: 8px; }
.visual-topbar i { width: 6px; height: 6px; background: #56e59a; border-radius: 50%; box-shadow: 0 0 0 4px rgba(86,229,154,.12); }
.hero-render { width: 100%; height: calc(100% - 48px); min-height: 560px; object-fit: cover; object-position: center 46%; display: block; filter: saturate(.94) contrast(1.04) brightness(.9); }
.hvac, .fire, .plumbing { animation: signal 4s ease-in-out infinite; }
.fire { animation-delay: .65s; }.plumbing { animation-delay: 1.3s; }
@keyframes signal { 0%,100% { opacity: .74 } 50% { opacity: 1 } }
.model-legend { position: absolute; z-index: 2; left: 18px; bottom: 18px; display: flex; gap: 15px; background: rgba(3,11,20,.78); border: 1px solid var(--line); backdrop-filter: blur(8px); padding: 11px 13px; }
.model-legend span { display: flex; align-items: center; gap: 6px; font-size: 9px; color: #b9c7cf; }
.model-legend i { width: 14px; height: 2px; }
.legend-hvac { background: var(--cyan); }.legend-plumbing { background: var(--lime); }.legend-fire { background: var(--red); }
.model-note { position: absolute; z-index: 2; padding: 10px 12px; border-left: 2px solid var(--cyan); background: rgba(4,14,24,.85); backdrop-filter: blur(8px); display: flex; gap: 9px; align-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.model-note strong { font-size: 9px; color: var(--cyan); }.model-note span { font-size: 10px; color: #d4dde2; }
.model-note-one { top: 15%; right: 4%; }.model-note-two { bottom: 18px; right: 4%; }
.proof-strip { grid-column: 1/-1; min-height: 58px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: repeat(4,1fr); align-items: center; }
.proof-strip span { text-align: center; color: #9eafb9; font-size: 10px; letter-spacing: .11em; text-transform: uppercase; border-right: 1px solid var(--line); padding: 12px; }
.proof-strip span:last-child { border: 0; }

.career { padding-top: 120px; padding-bottom: 130px; background: var(--paper); }
.section-heading { display: grid; grid-template-columns: 1fr minmax(270px, 430px); align-items: end; gap: 40px; margin-bottom: 58px; }
.section-kicker { font-size: 10px; text-transform: uppercase; letter-spacing: .17em; color: #5e6d74; display: block; margin-bottom: 16px; }
.section-heading h2, .contact-band h2 { font-size: clamp(38px, 5.4vw, 78px); line-height: .95; letter-spacing: -.055em; margin: 0; max-width: 750px; font-weight: 650; }
.section-heading > p { margin: 0; line-height: 1.7; color: #536169; font-size: 14px; }
.career-layout { display: grid; grid-template-columns: 310px 1fr; border-top: 1px solid #c6ceca; min-height: 560px; }
.career-tabs { border-right: 1px solid #c6ceca; padding-top: 18px; }
.career-tab { width: 100%; display: grid; grid-template-columns: 40px 1fr; text-align: left; column-gap: 5px; padding: 22px 26px 22px 8px; background: none; border: 0; border-bottom: 1px solid #d3d9d6; cursor: pointer; color: #69767c; position: relative; }
.career-tab::after { content: "→"; position: absolute; right: 14px; top: 24px; opacity: 0; transform: translateX(-5px); transition: .2s; }
.career-tab span { grid-row: 1/3; font-size: 10px; padding-top: 3px; }
.career-tab strong { color: var(--ink); font-size: 15px; }.career-tab small { margin-top: 4px; font-size: 10px; }
.career-tab.is-active { background: #dfe6e2; color: #3b4a51; }
.career-tab.is-active::after { opacity: 1; transform: none; }
.career-panels { padding: 16px 0 0 48px; }
.career-panel { animation: panel-in .35s ease both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px) } to { opacity: 1; transform: none } }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 190px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid #ccd3d0; }
.timeline-date { color: #6c787e; font-size: 9px; letter-spacing: .08em; padding-top: 5px; }
.timeline h3 { margin: 0; font-size: clamp(20px, 2vw, 28px); letter-spacing: -.03em; }
.timeline p { margin: 6px 0 9px; color: #45545b; font-size: 12px; }
.timeline div > span { color: #6c777b; line-height: 1.55; font-size: 12px; display: block; max-width: 680px; }
.skill-grid { display: grid; grid-template-columns: repeat(2,1fr); border-top: 1px solid #cbd2cf; border-left: 1px solid #cbd2cf; }
.skill-grid article { min-height: 220px; padding: 26px; border-right: 1px solid #cbd2cf; border-bottom: 1px solid #cbd2cf; }
.skill-grid article > span { font-size: 10px; color: #748087; }
.skill-grid h3 { font-size: 24px; margin: 50px 0 13px; letter-spacing: -.035em; }
.skill-grid p { margin: 0; color: #5b696f; line-height: 1.7; font-size: 12px; }
.credentials-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.credentials-grid article { border: 1px solid #cad2ce; min-height: 150px; padding: 22px; display: flex; gap: 18px; align-items: flex-start; background: rgba(255,255,255,.2); }
.credentials-grid .credential-card--document { min-height: 232px; padding: 12px; align-items: stretch; }
.credential-preview { flex: 0 0 38%; min-width: 138px; overflow: hidden; border: 1px solid #c6ceca; background: #fff; display: grid; place-items: center; }
.credential-preview img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s ease; }
.credential-preview:hover img, .credential-preview:focus-visible img { transform: scale(1.025); }
.credential-preview:focus-visible { outline: 2px solid #167b95; outline-offset: 2px; }
.credential-copy { flex: 1; min-width: 0; padding: 5px 3px; display: flex; flex-direction: column; }
.credential-mark { flex: 0 0 42px; height: 42px; border: 1px solid #96a49e; display: grid; place-items: center; font-weight: 800; }
.credentials-grid span, .education-band > span { font-size: 8px; letter-spacing: .11em; color: #657279; }
.credentials-grid h3 { font-size: 17px; margin: 10px 0 5px; }.credentials-grid p { font-size: 10px; color: #627076; margin: 0; line-height: 1.5; overflow-wrap: anywhere; }
.credential-actions { margin-top: auto; padding-top: 16px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.credential-link { color: #075d77; font-size: 10px; font-weight: 800; letter-spacing: .025em; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.credential-link:hover, .credential-link:focus-visible { color: #0a2738; }
.credential-link--muted { color: #657279; font-weight: 600; }
.education-band { margin-top: 12px; padding: 22px; background: var(--ink); color: var(--white); display: grid; grid-template-columns: 105px 1fr; gap: 20px; align-items: center; }
.education-band h3 { margin: 0 0 5px; font-size: 19px; }.education-band p { color: var(--muted); margin: 0; font-size: 11px; }

.projects { background: var(--ink); color: var(--white); padding-top: 120px; padding-bottom: 48px; }
.projects .section-kicker, .projects .section-heading > p { color: var(--muted); }
.project-toolbar { display: flex; gap: 20px; align-items: center; justify-content: space-between; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.filter-group { display: flex; flex-wrap: wrap; gap: 7px; }
.filter-chip { border: 1px solid var(--line); color: #9eafb8; background: transparent; padding: 9px 13px; font-size: 10px; cursor: pointer; transition: .2s; }
.filter-chip:hover, .filter-chip.is-active { background: var(--white); color: var(--ink); border-color: var(--white); }
.project-count { font-size: 10px; color: var(--muted); white-space: nowrap; }.project-count strong { color: var(--white); font-size: 13px; }
.project-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.project-card { min-height: 460px; border: 1px solid var(--line); background: #0b1827; position: relative; overflow: hidden; display: flex; flex-direction: column; cursor: pointer; transition: transform .25s, border-color .25s; }
.project-card:hover { transform: translateY(-4px); border-color: rgba(39,212,255,.48); }
.project-card:focus-within { outline: 2px solid var(--cyan); outline-offset: 2px; }
.project-visual { height: 220px; position: relative; overflow: hidden; background: linear-gradient(145deg,#10263b,#07131f); border-bottom: 1px solid var(--line); }
.project-visual::before { content: ""; position: absolute; z-index: 1; inset: 0; background-image: linear-gradient(rgba(255,255,255,.055) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.055) 1px,transparent 1px); background-size: 24px 24px; transform: perspective(400px) rotateX(55deg) scale(1.4); transform-origin: center bottom; }
.project-visual::after { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(180deg,rgba(4,13,22,.22),transparent 45%,rgba(4,13,22,.72)); pointer-events: none; }
.project-visual svg { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); }
.project-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.project-card:hover .project-cover { transform: scale(1.035); }
.project-index { position: absolute; top: 14px; left: 14px; z-index: 2; color: #e5eef2; font-size: 9px; letter-spacing: .08em; text-shadow: 0 1px 8px #000; }
.project-status { position: absolute; z-index: 2; top: 14px; right: 14px; padding: 6px 8px; background: rgba(5,15,25,.75); border: 1px solid var(--line); font-size: 8px; text-transform: uppercase; letter-spacing: .08em; color: #d8e2e7; }
.project-gallery-count { position: absolute; z-index: 2; left: 14px; bottom: 13px; padding: 7px 9px; color: #edf5f8; background: rgba(5,15,25,.72); border: 1px solid rgba(255,255,255,.18); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.project-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.project-meta { display: flex; justify-content: space-between; color: #7f929d; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.project-card h3 { font-size: clamp(23px, 2vw, 31px); margin: 14px 0 8px; line-height: 1.02; letter-spacing: -.035em; }
.project-card p { color: #92a3ad; line-height: 1.55; font-size: 11px; margin: 0 0 18px; }
.project-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.project-tag { border-top: 1px solid var(--line); padding: 9px 0 0; margin-right: 9px; color: #b3c2ca; font-size: 8px; letter-spacing: .06em; text-transform: uppercase; }
.project-open { margin-top: 18px; padding: 0; background: none; border: 0; color: var(--cyan); align-self: flex-start; cursor: pointer; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.project-empty { grid-column: 1/-1; padding: 70px 20px; text-align: center; color: var(--muted); border: 1px solid var(--line); }
.contact-band { margin-top: 100px; padding: 58px 0 42px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 420px; align-items: end; gap: 40px; }
.contact-band .section-kicker { color: var(--cyan); }
.contact-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 13px; }
.contact-actions .button { width: 100%; }.contact-phone { color: var(--white); font-size: 15px; text-decoration: none; }.contact-actions > span { color: var(--muted); font-size: 10px; }
footer { min-height: 86px; padding: 0 max(24px, calc((100vw - var(--max))/2)); background: var(--ink); color: #778995; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
footer a { color: var(--white); text-decoration: none; }

.project-dialog { width: min(980px, calc(100vw - 32px)); max-height: calc(100svh - 32px); padding: 0; border: 1px solid rgba(255,255,255,.18); color: var(--white); background: #0b1827; box-shadow: 0 40px 100px rgba(0,0,0,.5); }
.project-dialog::backdrop { background: rgba(2,7,13,.78); backdrop-filter: blur(8px); }
.dialog-close { position: absolute; z-index: 2; top: 15px; right: 15px; width: 38px; height: 38px; border: 1px solid var(--line); background: rgba(4,13,22,.75); color: white; cursor: pointer; font-size: 24px; line-height: 1; }
.dialog-visual { min-height: 320px; position: relative; overflow: hidden; padding: 28px; display: flex; align-items: flex-end; background: radial-gradient(circle at 70% 30%, rgba(39,212,255,.18), transparent 30%), #071522; border-bottom: 1px solid var(--line); }
.dialog-visual::before { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(180deg,rgba(4,12,21,.12),rgba(4,12,21,.25) 45%,rgba(4,12,21,.94)); }
.dialog-visual:not(.has-cover)::before { opacity: .2; background-image: linear-gradient(rgba(255,255,255,.16) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.16) 1px,transparent 1px); background-size: 30px 30px; }
.dialog-visual > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dialog-visual > div { position: relative; z-index: 2; }.dialog-visual span { color: var(--cyan); text-transform: uppercase; letter-spacing: .12em; font-size: 9px; }
.dialog-visual h2 { font-size: clamp(34px, 6vw, 60px); line-height: .92; letter-spacing: -.05em; margin: 11px 0 0; }
.cover-note { position: absolute; z-index: 2; right: 24px; bottom: 24px; padding: 7px 9px; background: rgba(5,15,25,.74); border: 1px solid rgba(255,255,255,.18); color: #d4dfe4; font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.dialog-body { padding: 28px; }
.dialog-summary { color: #a9b7c0; font-size: 14px; line-height: 1.7; max-width: 650px; }
.dialog-facts { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin: 28px 0; }
.dialog-facts div { border: 1px solid var(--line); padding: 14px; }.dialog-facts span { display: block; color: #768a96; font-size: 8px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 8px; }.dialog-facts strong { font-size: 12px; }
.dialog-body h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--cyan); margin: 28px 0 14px; }
.dialog-body ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }.dialog-body li { color: #b1bec5; font-size: 12px; line-height: 1.5; padding-left: 18px; position: relative; }.dialog-body li::before { content: ""; position: absolute; left: 0; top: .58em; width: 7px; height: 1px; background: var(--cyan); }
.dialog-gallery-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.dialog-gallery-heading h3 { margin: 0 0 7px; }
.dialog-gallery-heading p { margin: 0; color: #81929b; font-size: 10px; }
.dialog-gallery-heading > strong { color: #a9bac3; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.project-folder-tabs { display: flex; gap: 7px; margin-top: 18px; padding-bottom: 4px; overflow-x: auto; scrollbar-width: thin; }
.project-folder-tab { flex: 0 0 auto; min-height: 42px; padding: 0 13px; display: inline-flex; align-items: center; gap: 12px; color: #9eafb8; background: transparent; border: 1px solid var(--line); cursor: pointer; transition: color .2s, background .2s, border-color .2s; }
.project-folder-tab span { font-size: 12px; font-weight: 700; letter-spacing: .025em; }
.project-folder-tab b { min-width: 22px; color: #6f858f; font-size: 8px; letter-spacing: .08em; }
.project-folder-tab:hover, .project-folder-tab.is-active { color: var(--ink); background: var(--cyan); border-color: var(--cyan); }
.project-folder-tab.is-active b { color: #31505d; }
.project-folder-tab:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
.dialog-gallery { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 18px; }
.gallery-item { min-width: 0; padding: 0; overflow: hidden; color: var(--white); text-align: left; background: #07131f; border: 1px solid var(--line); cursor: zoom-in; transition: border-color .2s, transform .2s; }
.gallery-item:hover { border-color: rgba(39,212,255,.55); transform: translateY(-2px); }
.gallery-item:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.gallery-item img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #e8ebea; }
.gallery-item > span { display: flex; align-items: center; gap: 10px; padding: 12px; color: #b7c5cc; font-size: 9px; line-height: 1.35; }
.gallery-item b { color: var(--cyan); font-size: 8px; letter-spacing: .08em; }
.project-folder-panel[hidden] { display: none; }
.document-item { text-decoration: none; cursor: pointer; }
.document-item--preview { cursor: default; }
.document-item--preview:hover { border-color: var(--line); transform: none; }
.document-item img { object-fit: contain; }
.document-item > span { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 12px; }
.document-copy { min-width: 0; }
.document-copy strong { display: block; overflow: hidden; color: #c7d3d8; font-size: 12px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.document-copy small { display: block; margin-top: 5px; color: #8297a1; font-size: 10px; letter-spacing: .025em; }
.document-kind { padding: 5px 6px; color: var(--cyan); border: 1px solid rgba(39,212,255,.28); font-size: 7px; font-style: normal; letter-spacing: .1em; }
.image-dialog { width: min(1500px, calc(100vw - 24px)); height: min(94svh, 1000px); max-width: none; max-height: none; padding: 0; overflow: hidden; color: var(--white); background: #03080d; border: 1px solid rgba(255,255,255,.2); box-shadow: 0 35px 100px rgba(0,0,0,.72); }
.image-dialog::backdrop { background: rgba(0,4,8,.92); backdrop-filter: blur(8px); }
.image-dialog .dialog-close { z-index: 5; }
.image-stage { height: calc(100% - 76px); display: grid; place-items: center; padding: 14px; overflow: auto; background: #020609; }
.image-stage img { display: block; width: 100%; height: 100%; object-fit: contain; }
.image-toolbar { min-height: 76px; display: grid; grid-template-columns: 44px minmax(0,1fr) auto 44px; gap: 14px; align-items: center; padding: 10px 16px; border-top: 1px solid var(--line); background: #0b1827; }
.image-toolbar > div { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.image-toolbar span { color: var(--cyan); font-size: 8px; letter-spacing: .12em; }
.image-toolbar strong { overflow: hidden; color: #d9e4e9; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.image-toolbar a { color: var(--cyan); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.image-nav { width: 44px; height: 44px; color: var(--white); background: transparent; border: 1px solid var(--line); cursor: pointer; font-size: 18px; }
.image-nav:hover, .image-nav:focus-visible { border-color: var(--cyan); color: var(--cyan); }
.toast { position: fixed; z-index: 200; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 11px 15px; background: var(--white); color: var(--ink); font-size: 11px; transition: .25s; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

[dir="rtl"] body { font-family: Tahoma, Arial, sans-serif; }
[dir="rtl"] .site-nav, [dir="rtl"] .hero-actions, [dir="rtl"] .hero-stats, [dir="rtl"] .filter-group { direction: rtl; }
[dir="rtl"] .career-tab { text-align: right; padding: 22px 8px 22px 26px; }
[dir="rtl"] .career-tab::after { content: "←"; right: auto; left: 14px; }
[dir="rtl"] .career-tabs { border-right: 0; border-left: 1px solid #c6ceca; }
[dir="rtl"] .career-panels { padding-left: 0; padding-right: 48px; }
[dir="rtl"] .hero-stats div { padding-right: 0; padding-left: 30px; border-right: 0; border-left: 1px solid var(--line); }
[dir="rtl"] .hero-stats div:last-child { border-left: 0; }
[dir="rtl"] .dialog-body li { padding-left: 0; padding-right: 18px; }
[dir="rtl"] .dialog-body li::before { left: auto; right: 0; }
[dir="rtl"] .gallery-item { text-align: right; }
[dir="rtl"] .cover-note { right: auto; left: 24px; }

@media (max-width: 1080px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-nav { position: fixed; left: 18px; right: 18px; top: 70px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 12px; background: rgba(7,17,31,.97); border: 1px solid var(--line); box-shadow: 0 25px 70px rgba(0,0,0,.35); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 14px; border-bottom: 1px solid var(--line); }
  .site-nav a:last-child { border: 0; }
  .site-nav a::after { display: none; }
  .header-actions { display: none; }
  .menu-button { justify-self: end; display: grid; place-items: center; gap: 5px; width: 42px; height: 42px; background: transparent; border: 1px solid var(--line); cursor: pointer; }
  .menu-button span { width: 17px; height: 1px; background: white; display: block; }
  .hero { grid-template-columns: 1fr; padding-top: 130px; }
  .hero-copy { max-width: 800px; }
  .hero-visual { min-height: 600px; }
  .hero-render { min-height: 550px; }
  .project-grid { grid-template-columns: repeat(2,1fr); }
  .contact-band { grid-template-columns: 1fr 350px; }
}

@media (max-width: 720px) {
  .site-header { height: 66px; padding-inline: 18px; }
  .brand-copy small { display: none; }
  .section-shell { padding-inline: 18px; }
  .hero { padding-top: 112px; gap: 30px; }
  .hero-intro { font-size: 14px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .button { width: 100%; }
  .hero-stats { gap: 10px; justify-content: space-between; }
  .hero-stats div { gap: 6px; padding-right: 10px; }
  .hero-stats dt { font-size: 22px; }.hero-stats dd { font-size: 8px; max-width: 58px; }
  .hero-visual { min-height: 430px; }
  .hero-render { min-height: 390px; }
  .model-note { display: none; }
  .model-legend { left: 10px; right: 10px; bottom: 10px; justify-content: space-around; }
  .proof-strip { grid-template-columns: 1fr 1fr; }.proof-strip span:nth-child(2) { border-right: 0; }.proof-strip span:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .career, .projects { padding-top: 84px; padding-bottom: 84px; }
  .section-heading { grid-template-columns: 1fr; gap: 22px; margin-bottom: 40px; }
  .section-heading h2, .contact-band h2 { font-size: 44px; }
  .career-layout { grid-template-columns: 1fr; }
  .career-tabs { border-right: 0; padding: 0; display: grid; grid-template-columns: repeat(3,1fr); }
  .career-tab { display: flex; flex-direction: column; gap: 5px; padding: 15px 10px; border-right: 1px solid #c6ceca; }
  .career-tab:last-child { border-right: 0; }.career-tab span, .career-tab small, .career-tab::after { display: none; }.career-tab strong { font-size: 11px; }
  .career-panels { padding: 14px 0 0; }
  .timeline li { grid-template-columns: 1fr; gap: 9px; padding: 22px 0; }
  .skill-grid, .credentials-grid { grid-template-columns: 1fr; }
  .skill-grid article { min-height: 180px; }.skill-grid h3 { margin-top: 32px; }
  .credentials-grid .credential-card--document { min-height: 280px; flex-direction: column; }
  .credential-preview { flex-basis: auto; min-width: 0; width: 100%; height: 190px; }
  .credential-copy { width: 100%; }
  .project-toolbar { align-items: flex-start; flex-direction: column; }
  .filter-group { flex-wrap: nowrap; overflow-x: auto; width: calc(100vw - 36px); padding-bottom: 6px; scrollbar-width: none; }
  .filter-group::-webkit-scrollbar { display: none; }.filter-chip { flex: 0 0 auto; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card { min-height: 420px; }.project-visual { height: 200px; }
  .contact-band { grid-template-columns: 1fr; margin-top: 70px; padding-top: 42px; }
  footer { padding-block: 26px; gap: 12px; flex-direction: column; align-items: flex-start; }
  .dialog-facts { grid-template-columns: 1fr 1fr; }
  .dialog-body { padding: 22px; }
  .dialog-visual { min-height: 240px; padding: 22px; }
  .dialog-gallery { grid-template-columns: 1fr; }
  .dialog-gallery-heading { align-items: flex-start; flex-direction: column; }
  .image-dialog { width: calc(100vw - 12px); height: calc(100svh - 12px); }
  .image-stage { height: calc(100% - 118px); padding: 6px; }
  .image-toolbar { min-height: 118px; grid-template-columns: 44px minmax(0,1fr) 44px; gap: 9px; padding: 9px; }
  .image-toolbar a { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
  .cover-note { display: none; }
  [dir="rtl"] .career-panels { padding-right: 0; }
  [dir="rtl"] .career-tabs { border-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
