/* ============================================================
   Brodjian Piping Integration — brodjianpiping.com
   Palette: card navy / brushed steel / arc blue / weld copper
   ============================================================ */

:root {
  --bg: #070a18;
  --bg-2: #0b0f1f;
  --panel: #0d1226;
  --line: rgba(151, 168, 205, 0.14);
  --line-strong: rgba(151, 168, 205, 0.28);
  --ink: #e8ecf5;
  --mut: #939cb2;
  --blue: #3b96e8;
  --blue-hi: #6cb4ff;
  --blue-dim: rgba(59, 150, 232, 0.16);
  --copper: #d99a52;
  --copper-hi: #f3c88a;
  --font-body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --font-disp: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", Menlo, monospace;
  --ease-sharp: cubic-bezier(0.22, 0.9, 0.28, 1);
  --head-h: 68px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--blue-hi); text-decoration: none; }
a:hover { color: var(--ink); }

::selection { background: var(--blue); color: #fff; }

:focus-visible {
  outline: 2px solid var(--blue-hi);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

/* ---------- type helpers ---------- */

.h-disp {
  font-family: var(--font-disp);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.02;
  letter-spacing: 0.015em;
}

.steel {
  background: linear-gradient(180deg, #f7f9fc 0%, #d3dae6 42%, #96a1b5 55%, #cdd5e2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-hi);
}
.tag::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--blue);
  flex: none;
}
.tag--center::after {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--blue);
  flex: none;
}

.mono {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
}

/* ---------- buttons ---------- */

.btn {
  position: relative;
  z-index: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  border-radius: 3px;
  border: 1px solid transparent;
  cursor: pointer;
  overflow: hidden;
  transition: color 0.18s, border-color 0.18s, transform 0.14s var(--ease-sharp), box-shadow 0.18s;
  white-space: nowrap;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.24s var(--ease-sharp);
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #071224; /* dark on blue: white fails AA contrast at this size */
}
.btn-primary::before { background: var(--blue-hi); }
.btn-primary:hover { color: #071224; border-color: var(--blue-hi); }
.btn-primary:hover::before { transform: scaleX(1); }

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-ghost::before { background: var(--blue); }
.btn-ghost:hover { color: #fff; border-color: var(--blue); }
.btn-ghost:hover::before { transform: scaleX(1); }

/* ---------- header ---------- */

.site-head {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  height: var(--head-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s;
}
/* the blur lives on a pseudo-element: backdrop-filter on the header itself
   would make it the containing block for the fixed mobile nav overlay,
   collapsing the open menu to the header box after any scroll */
.site-head::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(7, 10, 24, 0.86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.25s;
}
.site-head.scrolled { border-bottom-color: var(--line); }
.site-head.scrolled::before { opacity: 1; }
.site-head .wrap {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}
.brand img {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  border: 1px solid var(--line);
}
.brand-name {
  display: flex;
  flex-direction: column;
  font-family: var(--font-disp);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--ink);
  text-transform: uppercase;
}
.brand-name small {
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: var(--blue-hi);
  margin-top: 4px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.site-nav a {
  position: relative;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mut);
  padding: 6px 0;
  transition: color 0.16s;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s var(--ease-sharp);
}
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }

.head-phone {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  padding: 9px 14px;
  border-radius: 3px;
  transition: border-color 0.18s, color 0.18s, background 0.18s;
}
.head-phone:hover {
  border-color: var(--blue);
  color: var(--blue-hi);
  background: var(--blue-dim);
}

.nav-toggle {
  display: none;
  position: relative;
  z-index: 70;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 11px;
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.22s var(--ease-sharp), top 0.22s var(--ease-sharp), opacity 0.15s;
}
.nav-toggle span { top: 21px; left: 11px; }
.nav-toggle span::before { top: -6px; left: 0; }
.nav-toggle span::after { top: 6px; left: 0; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* mobile nav overlay */
@media (max-width: 860px) {
  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 65;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    background: rgba(7, 10, 24, 0.97);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    transform: translateX(100%);
    transition: transform 0.3s var(--ease-sharp);
    visibility: hidden;
  }
  .site-nav.open { transform: translateX(0); visibility: visible; }
  .site-nav a {
    font-family: var(--font-disp);
    font-size: 34px;
    letter-spacing: 0.08em;
    color: var(--ink);
    opacity: 0;
    transform: translateX(28px);
    transition: opacity 0.3s, transform 0.35s var(--ease-sharp), color 0.16s;
  }
  .site-nav.open a {
    opacity: 1;
    transform: translateX(0);
    transition-delay: calc(var(--i, 0) * 55ms + 60ms);
  }
  .site-nav a::after { height: 3px; }
  .site-nav .nav-phone {
    margin-top: 26px;
    font-family: var(--font-mono);
    font-size: 16px;
    color: var(--blue-hi);
  }
  .head-phone { display: none; }
  .nav-toggle { display: block; }
  body.menu-open { overflow: hidden; }
}
@media (min-width: 861px) {
  .site-nav .nav-phone { display: none; }
}

/* ---------- hero (index) ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--head-h) + 28px) 0 92px;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(680px 340px at 62% 12%, rgba(59, 150, 232, 0.07), transparent 70%);
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }

/* Desktop: copy column beside the weld scene. The single --hero-f drives both
   wordmark and sub so they stay the same width, and its vh term keeps the whole
   hero inside short laptop viewports. */
.hero-grid {
  --hero-f: clamp(46px, min(10vw, 15vh), 126px);
  display: grid;
  width: 100%;
  max-width: 1280px; /* wider than the standard .wrap: the hero fills the screen */
  align-content: center;
  /* content-sized tracks centered as a pair, so leftover space falls to the
     outer edges instead of opening a gap down the middle */
  justify-content: center;
  grid-template-columns: minmax(0, auto) minmax(0, auto);
  column-gap: clamp(28px, 4.5vw, 80px);
  grid-template-areas:
    "eyebrow scene"
    "title   scene"
    "sub     scene"
    "deck    scene"
    "cta     scene";
}
.hero-eyebrow { grid-area: eyebrow; margin-bottom: 20px; }
.hero-title   { grid-area: title; font-size: var(--hero-f); line-height: 0.92; }
.hero-sub     { grid-area: sub; }
.weld-scene   { grid-area: scene; align-self: center; }
.hero-deck    { grid-area: deck; }
.hero-cta     { grid-area: cta; }

.hero-sub {
  font-family: var(--font-disp);
  font-weight: 600;
  font-size: calc(var(--hero-f) * 0.258);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--blue-hi);
  margin-top: 8px;
  white-space: nowrap;
}

.weld-scene {
  position: relative;
  /* a definite width (no %) so the auto grid track can size to it */
  width: min(50vh, 470px);
  aspect-ratio: 1105 / 1076;
  margin-inline: auto;
}
.weld-scene svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.weld-scene canvas {
  /* geometry set by hero.js: oversized so sparks don't clip at the box edge */
  position: absolute;
  display: block;
  pointer-events: none;
}

.hero-deck {
  max-width: 46ch;
  margin-top: 22px;
  color: var(--mut);
  font-size: clamp(15px, 1.15vw, 17.5px);
  line-height: 1.6;
}
.hero-deck strong { color: var(--ink); font-weight: 500; }

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: clamp(20px, 3vh, 34px);
}

/* Mobile / narrow: single centered stack, scene between the sub and the deck
   (the document order), which is the layout the phone view keeps. */
@media (max-width: 900px) {
  .hero { padding: calc(var(--head-h) + 24px) 0 72px; text-align: center; }
  .hero-grid {
    --hero-f: clamp(56px, 14.5vw, 112px);
    grid-template-columns: 1fr;
    grid-template-areas: none;
    justify-items: center;
  }
  /* the named grid-areas above must be released, or every child stacks in one cell */
  .hero-grid > * { grid-area: auto; }
  .hero-eyebrow::after {
    content: "";
    width: 24px;
    height: 1px;
    background: var(--blue);
    flex: none;
  }
  .hero-sub { text-indent: 0.42em; } /* balance trailing tracking when centered */
  .weld-scene { width: min(320px, 64vw); margin: 16px auto 4px; }
  .hero-deck { margin-inline: auto; }
  .hero-cta { justify-content: center; }
}

.hero-strip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 0;
  border-top: 1px solid var(--line);
  background: rgba(7, 11, 29, 0.55);
}
.hero-strip span {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--mut);
  padding: 16px 34px;
  border-right: 1px solid var(--line);
  white-space: nowrap;
}
.hero-strip span:first-child { border-left: 1px solid var(--line); }
.hero-strip b { color: var(--copper-hi); font-weight: 500; }
@media (max-width: 840px), (max-height: 620px) {
  .hero-strip { display: none; }
}

/* ---------- sections ---------- */

.section {
  padding: clamp(72px, 10vw, 120px) 0;
}
.section-head {
  margin-bottom: clamp(36px, 5vw, 56px);
}
.section-head h2 {
  font-size: clamp(38px, 5.6vw, 64px);
  margin-top: 14px;
}
.section-head p {
  color: var(--mut);
  max-width: 560px;
  margin-top: 12px;
}

/* services grid — steel-plate hairline grid */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.svc {
  position: relative;
  background: var(--bg-2);
  padding: 30px 28px 34px;
  transition: background 0.2s, transform 0.18s var(--ease-sharp);
}
.svc::before,
.svc::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  opacity: 0;
  transform: scale(0.55);
  transition: opacity 0.18s, transform 0.22s var(--ease-sharp);
  pointer-events: none;
}
.svc::before {
  top: 10px;
  left: 10px;
  border-top: 2px solid var(--blue);
  border-left: 2px solid var(--blue);
}
.svc::after {
  bottom: 10px;
  right: 10px;
  border-bottom: 2px solid var(--blue);
  border-right: 2px solid var(--blue);
}
.svc:hover {
  background: var(--panel);
  transform: translateY(-3px);
}
.svc:hover::before,
.svc:hover::after { opacity: 1; transform: scale(1); }
.svc-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--blue);
  letter-spacing: 0.14em;
  display: block;
  margin-bottom: 18px;
  transition: color 0.18s;
}
.svc:hover .svc-num { color: var(--blue-hi); }
.svc h3 {
  font-family: var(--font-disp);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 10px;
}
.svc p {
  font-size: 15px;
  color: var(--mut);
  line-height: 1.55;
}
@media (max-width: 960px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .svc-grid { grid-template-columns: 1fr; } }

/* stats band */
.stats {
  border-block: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(59, 150, 232, 0.045), transparent 40%),
    var(--bg-2);
}
.stats .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-block: clamp(48px, 6vw, 72px);
}
.stat { text-align: left; }
.stat-num {
  font-family: var(--font-disp);
  font-weight: 700;
  font-size: clamp(44px, 5.5vw, 66px);
  line-height: 1;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mut);
  margin-top: 10px;
  display: block;
}
@media (max-width: 800px) {
  .stats .wrap { grid-template-columns: repeat(2, 1fr); }
}

/* tagline band */
.tagline {
  text-align: center;
  padding: clamp(80px, 11vw, 140px) 20px;
}
.tagline h2 {
  font-size: clamp(36px, 7vw, 84px);
  letter-spacing: 0.04em;
}
.tagline .dot { color: var(--blue); -webkit-text-fill-color: var(--blue); }
.tagline p {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mut);
}

/* about teaser */
.teaser {
  border-top: 1px solid var(--line);
}
.teaser .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.teaser h2 { font-size: clamp(32px, 4.6vw, 52px); margin-top: 12px; }
.teaser p { color: var(--mut); max-width: 520px; margin-top: 12px; font-size: 17px; }

/* CTA band */
.cta-band {
  border-top: 1px solid var(--line);
  background:
    radial-gradient(520px 260px at 50% 0%, rgba(217, 154, 82, 0.07), transparent 70%),
    var(--bg-2);
  text-align: center;
}
.cta-band h2 { font-size: clamp(40px, 6vw, 72px); }
.cta-band .cta-phone {
  display: inline-block;
  margin-top: 26px;
  font-family: var(--font-disp);
  font-weight: 700;
  font-size: clamp(34px, 5vw, 54px);
  letter-spacing: 0.05em;
  color: var(--ink);
  transition: color 0.16s;
}
.cta-band .cta-phone:hover { color: var(--blue-hi); }
.cta-band .cta-actions {
  margin-top: 30px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-band .cta-note {
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--mut);
  text-transform: uppercase;
}

/* ---------- footer ---------- */

.site-foot {
  border-top: 1px solid var(--line);
  padding: 56px 0 34px;
  background: var(--bg);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 44px;
}
.foot-brand {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.foot-brand img {
  width: 46px;
  height: 46px;
  border-radius: 6px;
  border: 1px solid var(--line);
}
.foot-brand .brand-name { font-size: 20px; }
.foot-tagline {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  color: var(--copper);
  text-transform: uppercase;
}
.foot-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mut);
  margin-bottom: 16px;
}
.foot-col a, .foot-col span {
  display: block;
  color: var(--ink);
  font-size: 14.5px;
  padding: 5px 0;
  width: fit-content;
}
.foot-col a:hover { color: var(--blue-hi); }
.foot-bottom {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--mut);
}
@media (max-width: 760px) {
  .foot-grid { grid-template-columns: 1fr; gap: 34px; }
}

/* ---------- subpage head ---------- */

.page-head {
  padding: calc(var(--head-h) + clamp(48px, 8vw, 84px)) 0 clamp(36px, 5vw, 56px);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.page-head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 110px;
  height: 2px;
  background: var(--blue);
}
.page-head h1 {
  font-size: clamp(48px, 8vw, 92px);
  margin-top: 16px;
}
.page-head .lede {
  color: var(--mut);
  font-size: 17px;
  max-width: 620px;
  margin-top: 14px;
}

/* ---------- about page ---------- */

.profile .wrap {
  display: grid;
  grid-template-columns: minmax(320px, 460px) 1fr;
  gap: clamp(36px, 5vw, 64px);
  align-items: start;
}
.frame {
  position: relative;
  padding: 12px;
}
.frame::before,
.frame::after {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  pointer-events: none;
}
.frame::before {
  top: 0; left: 0;
  border-top: 2px solid var(--blue);
  border-left: 2px solid var(--blue);
}
.frame::after {
  bottom: 0; right: 0;
  border-bottom: 2px solid var(--blue);
  border-right: 2px solid var(--blue);
}
.frame img {
  width: 100%;
  height: auto; /* the height attribute otherwise pins 1000px and defeats aspect-ratio */
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 50% 25%; /* keep the face in frame on portrait shots */
  border: 1px solid var(--line-strong);
  filter: saturate(0.92) contrast(1.04);
}
.frame figcaption {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mut);
  text-align: center;
}

.bio h2 {
  font-size: clamp(30px, 4vw, 44px);
  margin: 14px 0 18px;
}
.bio p {
  color: var(--mut);
  font-size: 17px;
  margin-bottom: 16px;
  max-width: 60ch;
}
.bio p strong { color: var(--ink); font-weight: 500; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 30px;
}
.chips span {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  padding: 8px 13px;
  background: var(--bg-2);
}
.bio-actions { display: flex; gap: 14px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .profile .wrap { grid-template-columns: 1fr; }
  .frame { max-width: 460px; }
}

/* experience timeline */
.xp-list {
  border-left: 2px solid var(--line-strong);
  margin-left: 6px;
  padding-left: 34px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.xp {
  position: relative;
  padding: 16px 0;
}
.xp::before {
  content: "";
  position: absolute;
  left: -40px;
  top: 27px;
  width: 9px;
  height: 9px;
  background: var(--bg);
  border: 2px solid var(--blue);
  transform: rotate(45deg);
}
.xp-dates {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--blue-hi);
  text-transform: uppercase;
}
.xp h3 {
  font-family: var(--font-disp);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-top: 6px;
}
.xp .xp-role {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mut);
  margin-top: 2px;
}
.xp p {
  color: var(--mut);
  font-size: 15.5px;
  margin-top: 8px;
  max-width: 66ch;
}

/* certs */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.cert {
  background: var(--bg-2);
  padding: 20px 24px;
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: 15.5px;
}
.cert::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--copper);
  flex: none;
  transform: translateY(-1px) rotate(45deg);
}
.cert small {
  display: block;
  color: var(--mut);
  font-size: 13.5px;
  margin-top: 2px;
}
@media (max-width: 640px) { .cert-grid { grid-template-columns: 1fr; } }

/* ---------- resume dialog ---------- */

dialog {
  border: none;
  padding: 0;
  background: transparent;
  max-width: none;
  max-height: none;
}
dialog::backdrop {
  background: rgba(4, 7, 17, 0.78);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.resume-dialog {
  margin: auto;
  width: min(880px, calc(100vw - 32px));
  max-height: calc(100svh - 56px);
  overflow-y: auto;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--ink);
}
dialog[open] { animation: dlg-in 0.26s var(--ease-sharp); }
@keyframes dlg-in {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

.dlg-bar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  background: rgba(11, 15, 31, 0.97);
  border-bottom: 1px solid var(--line);
}
.dlg-bar strong {
  font-family: var(--font-disp);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-right: auto;
}
.dlg-bar .btn { padding: 10px 18px; font-size: 12.5px; }
.dlg-close {
  width: 40px;
  height: 40px;
  flex: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.16s, color 0.16s, background 0.16s;
}
.dlg-close:hover { border-color: var(--blue); color: var(--blue-hi); background: var(--blue-dim); }

.resume-body { padding: clamp(24px, 5vw, 48px); }
.resume-body header { margin-bottom: 30px; }
.resume-body h2 {
  font-family: var(--font-disp);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.resume-meta {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: var(--mut);
  margin-top: 8px;
}
.resume-body h3 {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--blue-hi);
  margin: 34px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.resume-body > .resume-summary { color: var(--mut); max-width: 72ch; }
.skill-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 28px;
}
.skill-grid li {
  list-style: none;
  font-size: 14.5px;
  color: var(--ink);
  padding-left: 18px;
  position: relative;
}
.skill-grid li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  background: var(--blue);
  transform: rotate(45deg);
}
@media (max-width: 560px) { .skill-grid { grid-template-columns: 1fr; } }

.rx { margin-bottom: 24px; }
.rx-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
}
.rx-head h4 {
  font-size: 17px;
  font-weight: 600;
}
.rx-head h4 span { color: var(--mut); font-weight: 400; }
.rx-head time {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--copper-hi);
  white-space: nowrap;
}
.rx ul { margin: 8px 0 0 2px; }
.rx li {
  list-style: none;
  color: var(--mut);
  font-size: 14.5px;
  padding: 3px 0 3px 18px;
  position: relative;
}
.rx li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 1px;
  background: var(--blue);
}

/* ---------- contact page ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.c-item { margin-bottom: 30px; }
.c-item .c-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mut);
  display: block;
  margin-bottom: 8px;
}
.c-item a.big {
  font-family: var(--font-disp);
  font-weight: 700;
  font-size: clamp(30px, 4vw, 42px);
  letter-spacing: 0.04em;
  color: var(--ink);
  transition: color 0.16s;
  line-height: 1.1;
  display: inline-block;
}
.c-item a.big:hover { color: var(--blue-hi); }
.c-item a.mid {
  font-size: 19px;
  font-weight: 500;
  color: var(--ink);
}
.c-item a.mid:hover { color: var(--blue-hi); }
.c-item .c-body { color: var(--mut); font-size: 15.5px; }

.c-divider {
  height: 1px;
  background: var(--line);
  margin: 30px 0;
}

/* form */
.form-panel {
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: clamp(24px, 4vw, 40px);
  position: relative;
}
.form-panel::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 26px;
  height: 26px;
  border-top: 2px solid var(--blue);
  border-left: 2px solid var(--blue);
}
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mut);
  margin-bottom: 9px;
}
.field label em {
  font-style: normal;
  color: var(--blue);
}
.field input,
.field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  padding: 13px 15px;
  transition: border-color 0.16s, box-shadow 0.16s;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59, 150, 232, 0.16);
}
.field textarea { resize: vertical; min-height: 140px; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-foot {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.form-status {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  min-height: 1em;
}
.form-status.ok { color: #6fd98f; }
.form-status.err { color: #f08a6a; }

/* ---------- gallery ---------- */

.ig-panel {
  margin-top: clamp(44px, 6vw, 76px);
  border: 1px solid var(--line);
  background:
    radial-gradient(480px 240px at 85% -20%, rgba(59, 150, 232, 0.08), transparent 70%),
    var(--bg-2);
  padding: clamp(36px, 6vw, 64px);
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
  flex-wrap: wrap;
  position: relative;
}
.ig-panel::before {
  content: "";
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 26px;
  height: 26px;
  border-bottom: 2px solid var(--blue);
  border-right: 2px solid var(--blue);
}
.ig-glyph {
  width: 78px;
  height: 78px;
  flex: none;
  color: var(--copper-hi);
}
.ig-panel h2 { font-size: clamp(30px, 4.4vw, 46px); }
.ig-panel .ig-handle {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--blue-hi);
  margin-top: 6px;
  display: block;
}
.ig-panel p { color: var(--mut); margin-top: 10px; max-width: 46ch; }
.ig-panel .btn { margin-left: auto; }
@media (max-width: 720px) { .ig-panel .btn { margin-left: 0; } }

.shots[hidden] { display: none; }
.shots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 14px;
}
.shot {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-2);
  cursor: zoom-in;
  padding: 0;
}
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s var(--ease-sharp), filter 0.3s;
}
.shot:hover img { transform: scale(1.045); filter: brightness(1.06); }
.shot::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid var(--blue);
  opacity: 0;
  transition: opacity 0.18s;
  pointer-events: none;
}
.shot:hover::after { opacity: 1; }

.lightbox {
  margin: auto;
  width: min(1100px, calc(100vw - 24px));
  background: transparent;
}
.lightbox figure { position: relative; }
.lightbox img {
  width: 100%;
  max-height: calc(100svh - 120px);
  object-fit: contain;
  border: 1px solid var(--line-strong);
  background: var(--bg);
}
.lb-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}
.lb-count {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  color: var(--mut);
}
.lb-controls { display: flex; gap: 10px; }
.lb-controls button {
  width: 44px;
  height: 44px;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  color: var(--ink);
  font-size: 17px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.lb-controls button:hover {
  border-color: var(--blue);
  color: var(--blue-hi);
  background: var(--blue-dim);
}

/* ---------- 404 ---------- */

.err-page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}
.err-page .code {
  font-size: clamp(110px, 22vw, 220px);
  line-height: 1;
}
.err-page p {
  color: var(--mut);
  margin: 18px 0 30px;
  font-size: 17px;
}

/* ---------- reveal system ----------
   Restrained: big steel headings get a sharp machined wipe; whole section
   blocks (not individual items) get one quick, subtle rise. */

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
}
html.js [data-reveal="wipe"] {
  opacity: 1;
  transform: none;
  clip-path: inset(0 100% 0 0);
}
html.js .is-on[data-reveal] {
  opacity: 1;
  transform: none;
  transition: opacity 0.4s ease, transform 0.45s var(--ease-sharp);
  transition-delay: calc(var(--i, 0) * 90ms);
}
html.js .is-on[data-reveal="wipe"] {
  clip-path: inset(0 -2% 0 0);
  transition: clip-path 0.5s var(--ease-sharp);
  transition-delay: calc(var(--i, 0) * 90ms);
}

@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal],
  html.js [data-reveal="wipe"] {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    transition: none !important;
  }
  html { scroll-behavior: auto; }
  .site-nav, .site-nav a, .btn, .svc, .shot img { transition: none !important; }
  dialog[open] { animation: none; }
}
