/* kelbycorr.com
   Layout: neutral near-black page; full-bleed bands for each project, each in that
   project's own palette; content sits in a 1280px column. Single dark theme on purpose. */

:root {
  --ink: #0b0b0c;
  --paper: #f4f1ea;
  --muted: #a9a9ad;
  --body: #c9c9cc;
  --line: #2a2a2e;
  --panel: #17181b;

  --display: 'Anton', Impact, 'Arial Narrow', sans-serif;
  --sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;
  --hf-serif: 'Cinzel', 'Trajan Pro', Georgia, serif;
  --se-serif: 'Fraunces', Georgia, serif;
  --cond: 'IBM Plex Sans Condensed', 'Archivo', sans-serif;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: var(--sans); font-size: 17px; line-height: 1.55; }
h1, h2, h3, p, figure, ul, ol { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
a { color: inherit; text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
button { font: inherit; color: inherit; cursor: pointer; }
button:hover { filter: brightness(1.15); }
:focus-visible { outline: 2px solid #7fb4d6; outline-offset: 2px; }
img { max-width: 100%; display: block; }

/* ---------- utilities ---------- */
.wrap { max-width: 1280px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.section-in { padding-top: 96px; padding-bottom: 88px; }
.band-in { padding-top: 80px; padding-bottom: 88px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.between { justify-content: space-between; }
.end { align-items: flex-end; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.stack-lg { display: flex; flex-direction: column; gap: 32px; }
.split { display: flex; flex-wrap: wrap; gap: 32px 56px; }
.split-main { flex: 1.6 1 420px; min-width: 0; }
.split-side { flex: 1 1 320px; min-width: 0; }
.mono { font-family: var(--mono); }
.small { font-size: 13px; }
.caps { text-transform: uppercase; letter-spacing: .08em; font-size: 12px; }
.muted { color: var(--muted); }
.body { color: var(--body); }
.result { font-weight: 500; }
.measure { max-width: 36em; }
.lead { font-weight: 500; font-size: clamp(21px, 2.3vw, 30px); line-height: 1.22; }
.display { font-family: var(--display); font-weight: 400; text-transform: uppercase; }
.links { display: flex; flex-wrap: wrap; gap: 0 28px; font-weight: 500; }
.links a { padding: 12px 0; overflow-wrap: anywhere; }
.ruled { border-top: 1px solid var(--line); }

.ghost-btn { min-height: 44px; padding: 0 16px; border: 1px solid currentColor; background: transparent; font-size: 14px; font-weight: 500; }
.solid-btn { align-self: flex-start; min-height: 44px; padding: 0 18px; border: 0; background: var(--paper); color: var(--ink); font-weight: 600; }

/* ---------- image slots: label shows until the photo loads ---------- */
.slot { position: relative; overflow: hidden; border: 1px dashed #3a3a3e; background: var(--panel); }
.slot::before { content: attr(data-label); position: absolute; left: 14px; right: 14px; bottom: 12px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slot.has-img { border-color: transparent; }
.slot.has-img::before { content: none; }
.ratio-16-10 { aspect-ratio: 16 / 10; }
.ratio-16-9 { aspect-ratio: 16 / 9; }
.ratio-9-16 { aspect-ratio: 9 / 16; }
.ratio-key { aspect-ratio: 1024 / 500; }
.ratio-phone { aspect-ratio: 1290 / 2796; }

/* ---------- header ---------- */
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px; padding-top: 14px; padding-bottom: 14px; }
.brand { padding: 12px 0; font-family: var(--mono); font-size: 15px; text-decoration: none; }
.nav { display: flex; flex-wrap: wrap; gap: 0 26px; font-weight: 500; font-size: 15px; }
.nav a { padding: 12px 0; text-decoration: none; }
.nav a:hover { text-decoration: underline; }

/* ---------- hero ---------- */
.hero-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; min-height: 460px; max-height: 820px; background: var(--panel); }
.hero-slide { position: absolute; inset: 0; display: none; }
.hero-slide.is-on { display: block; }
.hero-slide::before { top: 18px; bottom: auto; left: auto; right: 24px; font-size: 13px; }
.hero-shade { position: absolute; left: 0; right: 0; bottom: 0; height: 55%; background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,.72)); pointer-events: none; }
.hero-foot { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 24px 24px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 32px; }
.hero-name { font-size: clamp(72px, 15vw, 216px); line-height: .86; }
.hero-ctl { padding-bottom: 6px; }

.intro { padding-top: 56px; padding-bottom: 72px; display: flex; align-items: center; gap: 20px clamp(20px, 4vw, 56px); }
.intro-photo { flex: none; width: clamp(104px, 17vw, 220px); margin: 0; }
.intro-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
@media (max-width: 520px) { .intro { flex-direction: column; align-items: flex-start; } .intro-photo { width: 136px; } }
.intro-lead { flex: 1 1 auto; min-width: 0; font-weight: 500; font-size: clamp(24px, 3vw, 40px); line-height: 1.18; text-wrap: balance; }
.intro-side { flex: 1 1 240px; min-width: 0; font-size: 15px; color: var(--muted); }

/* ---------- Hatchfire band ---------- */
.hf { background: #1a110b; color: #f3e6cf; }
.hf .band-in { display: flex; flex-direction: column; gap: 40px; }
.hf-title { font-family: var(--hf-serif); font-weight: 700; text-transform: none; font-size: clamp(56px, 12vw, 176px); line-height: .95; letter-spacing: .02em; color: #e8b048; }
.hf-slot { border-color: #5a4228; background: #24180f; }
.hf-slot.has-img { border: 1px solid #5a4228; }
.hf-slot::before { color: #cdb38a; }
.shots { display: flex; gap: 12px; }
.shots > .slot { flex: 1 1 0; min-width: 0; }
.hf-soft { color: #cdb38a; }
.hf-body { color: #e2d3ba; }
.hf .links a { color: #e8b048; }

/* ---------- Secretly Epic band ---------- */
.se { background: #121c3e; color: #f3ead8; }
.se-split { align-items: flex-start; }
.se-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .2em; margin-bottom: 4px; line-height: .9; }
.se-secretly { font-family: var(--se-serif); font-style: italic; font-weight: 500; font-size: clamp(40px, 5vw, 64px); }
.se-epic { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(72px, 9.5vw, 136px); color: #f8b038; }
.se-muted { color: #a9b3cf; }
.se-body { color: #d6d9e6; }
.se .links a { font-weight: 600; color: #f8b038; }
.se-slot { border: 1px dashed #3a4a7a; background: #18244b; }
.se-slot::before { color: #a9b3cf; }
.se-player { display: flex; flex-direction: column; gap: 12px; }
.se-video { display: block; text-decoration: none; color: inherit; }
.se-video .slot { display: block; }
.se-video .slot iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.se-video .slot.is-playing { border-color: transparent; }
.se-play { position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%; background: rgba(18,28,62,.82); border: 2px solid #f8b038; display: flex; align-items: center; justify-content: center; transition: transform .2s ease; }
.se-play svg { fill: #f8b038; margin-left: 4px; }
.se-video:hover .se-play { transform: scale(1.08); }
.se-video-cap { display: flex; flex-direction: column; gap: 2px; }
.se-video-title { font-weight: 600; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.2; }
.se-eps { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: 12px; margin-top: 8px; }
.se-ep { display: flex; flex-direction: column; gap: 8px; padding: 0 0 8px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #f3ead8; text-align: left; }
.se-ep[aria-current="true"] { border-bottom-color: #f8b038; }
.se-ep-thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #18244b; }
.se-ep-thumb img { width: 100%; height: 100%; object-fit: cover; }
.se-ep-text { display: flex; flex-direction: column; gap: 2px; }
.se-ep-title { font-weight: 600; font-size: 15px; line-height: 1.3; }
.se-ep:hover .se-ep-title { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Sentinel band ---------- */
.sn { background-color: #04060b; background-image: linear-gradient(rgba(0,229,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(0,229,255,.05) 1px, transparent 1px); background-size: 32px 32px; color: #dff6fb; border-top: 1px solid rgba(0,229,255,.4); border-bottom: 1px solid rgba(0,229,255,.4); }
.sn-title { font-family: var(--cond); font-weight: 600; font-size: clamp(44px, 6vw, 80px); line-height: 1; letter-spacing: .06em; text-transform: uppercase; color: #00e5ff; }
.sn-muted { color: #8fb3bf; }
.sn-wrap { display: flex; flex-direction: column; gap: 40px; }
.sn-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 56px; }
.sn-head > .stack { flex: 1.6 1 440px; min-width: 0; }
.sn-lead { max-width: 38em; }
.sn-tech { flex: 1 1 300px; min-width: 0; font-size: 15px; }
.sn-show { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 24px; align-items: start; }
.sn-tabs { display: flex; flex-direction: column; gap: 4px; }
.sn-tab { display: flex; flex-direction: column; gap: 4px; width: 100%; padding: 14px 16px; border: 0; border-left: 2px solid rgba(0,229,255,.15); background: transparent; color: #b9d3db; text-align: left; font-size: 14px; line-height: 1.45; }
.sn-tab:hover { background: rgba(0,229,255,.04); filter: none; }
.sn-tab[aria-selected="true"] { border-left-color: #00e5ff; background: rgba(0,229,255,.08); color: #dff6fb; }
.sn-tab-name { display: block; font-family: var(--cond); font-weight: 600; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: #00e5ff; }
.sn-side { display: flex; flex-direction: column; min-width: 0; }
.sn-desc { display: none; margin-top: 12px; font-size: 15px; line-height: 1.5; color: #dff6fb; }
.sn-stage { position: relative; aspect-ratio: 16 / 10; background: #02040a; border: 1px solid rgba(0,229,255,.3); overflow: hidden; }
.sn-shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .25s ease; }
.sn-shot.is-on { opacity: 1; }
.sn-video { background: #02040a; }
@media (prefers-reduced-motion: reduce) { .sn-video { display: none; } }

/* ---------- Shoot: contact sheet ---------- */
.shoot-title { font-size: clamp(48px, 8vw, 116px); line-height: .9; }
.sheet { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.frame { position: relative; cursor: zoom-in; font: inherit; color: var(--paper); min-width: 0; min-height: 190px; padding: 14px; border: 1px solid var(--line); background: var(--panel); text-align: left; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; overflow: hidden; }
.frame.big { grid-column: span 2; grid-row: span 2; }
.frame.wide { grid-column: span 2; }
.frame .slot { position: absolute; inset: 0; border: 0; }
.frame .slot::before { top: 50%; bottom: auto; transform: translateY(-50%); }
.frame .slot.has-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,.5), rgba(0,0,0,0) 30%, rgba(0,0,0,0) 50%, rgba(0,0,0,.78)); }
.frame-top, .frame-cap { position: relative; z-index: 1; }
.frame-top { display: flex; justify-content: space-between; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.frame-cap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.frame-name { font-weight: 600; font-size: 18px; line-height: 1.15; }
.frame-year { font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* ---------- Work ---------- */
.work { display: flex; flex-direction: column; gap: 56px; }
.work-title { max-width: 12em; font-size: clamp(44px, 7vw, 100px); line-height: .92; }
.wfeat { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px 56px; padding-top: 40px; border-top: 1px solid var(--paper); }
.wfeat-title { font-weight: 600; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.05; letter-spacing: -.02em; }
.wlist { display: flex; flex-direction: column; border-bottom: 1px solid var(--line); }
.wrow { display: grid; grid-template-columns: 150px minmax(0, 1fr) minmax(0, 1.7fr); gap: 8px 40px; align-items: start; padding: 28px 0; border-top: 1px solid var(--line); font-size: 16px; }
.wrow.small-row { padding: 16px 0; }
.wrow-title { font-weight: 600; font-size: 24px; line-height: 1.15; letter-spacing: -.01em; }
.wrow-title-sm { font-weight: 600; font-size: 16px; line-height: 1.4; }
.principles { display: flex; flex-wrap: wrap; gap: 20px 40px; font-weight: 500; font-size: 19px; line-height: 1.3; }
.principles p { flex: 1 1 260px; min-width: 0; padding-top: 16px; border-top: 1px solid var(--paper); }

/* ---------- Contact ---------- */
.hello { font-size: clamp(64px, 12vw, 176px); line-height: .86; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 20px; border-top: 1px solid var(--line); }

/* ---------- photography pages ---------- */
.page-title { font-size: clamp(56px, 10vw, 140px); line-height: .9; }
.back { align-self: flex-start; padding: 12px 0; color: var(--muted); text-decoration: none; }
.back:hover { color: var(--paper); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }
.shoot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 40px 24px; }
.shoot-card { display: flex; flex-direction: column; gap: 12px; text-decoration: none; }
.shoot-cover { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--panel); }
.shoot-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.shoot-card:hover .shoot-cover img { transform: scale(1.03); }
.shoot-meta { display: flex; flex-direction: column; gap: 2px; }
.shoot-title { font-weight: 600; font-size: 22px; line-height: 1.2; }
.gallery { columns: 3 300px; column-gap: 10px; }
.g-item { display: block; width: 100%; margin: 0 0 10px; padding: 0; border: 0; background: var(--panel); break-inside: avoid; cursor: zoom-in; }
.g-item img { width: 100%; height: auto; }
.g-item:hover img { filter: brightness(1.08); }
.next-shoot { display: flex; flex-direction: column; gap: 4px; align-self: flex-start; padding: 16px 0; text-decoration: none; }
.next-title { font-family: var(--display); text-transform: uppercase; font-size: clamp(32px, 5vw, 56px); line-height: 1; }
.next-shoot:hover .next-title { text-decoration: underline; text-decoration-thickness: 3px; }
.foot-in { padding-top: 32px; padding-bottom: 40px; }

.resume-btn { display: inline-flex; align-items: center; text-decoration: none; margin-top: 8px; }



/* ---------- homepage: page tiles in three groups ---------- */
.explore { padding-bottom: 112px; }
.groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 96px 20px; }
.group { display: flex; flex-direction: column; gap: 10px; padding-top: 22px; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.group-photo { grid-column: span 1; }
.group-make { grid-column: span 3; }
.group-work { grid-column: 1 / -1; }
.group-title { font-family: var(--display); font-size: clamp(34px, 3.2vw, 43px); font-weight: 400; line-height: .95; letter-spacing: .005em; text-transform: uppercase; color: var(--paper); }
.group-lead { margin: 0 0 18px; max-width: 32em; font-size: 16px; line-height: 1.45; color: var(--muted); }
.group-tiles { display: grid; grid-template-columns: repeat(var(--n, 1), minmax(0, 1fr)); gap: 28px 20px; }
.group-make .group-tiles { --n: 3; }
.group-work .group-tiles { --n: 2; }
.tile { display: flex; flex-direction: column; gap: 6px; color: var(--paper); text-decoration: none; }
.tile-pic { position: relative; display: block; aspect-ratio: 16 / 10; margin-bottom: 8px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); }
.tile-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.tile:hover .tile-pic img, .tile:focus-visible .tile-pic img { transform: scale(1.03); }
.tile-kind { font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.tile-name { font-size: 18px; font-weight: 600; line-height: 1.3; }
.tile:hover .tile-name, .tile:focus-visible .tile-name { text-decoration: underline; text-underline-offset: 3px; }
.group-work .tile-pic { aspect-ratio: 16 / 7; }
.tile-work { display: flex; flex-direction: column; justify-content: center; gap: 5cqh; padding: 0 7cqw; background: #101114; container-type: size; }
.tw-head { max-width: 12em; font-family: var(--display); font-size: min(18cqh, 8.6cqw); line-height: .95; text-transform: uppercase; color: var(--paper); }
.tw-tools { font-size: min(5.4cqh, 2.6cqw); color: var(--muted); }
@container (max-width: 300px) { .tw-head { font-size: 10cqw; } .tw-tools { display: none; } }
.tile-kt { display: flex; align-items: center; justify-content: center; gap: 12px; background: #F2622E; color: #14161A; } /* Kelbyte byte-orange with on-orange ink */
.tile-kt .kt-mark rect[fill="#F2622E"] { fill: #FFFFFF; } /* the core cell turns white on orange */
.tile-kt .kt-mark { width: 40px; height: 40px; }
.tile-kt .kt-name { font-family: "Space Grotesk", system-ui, sans-serif; font-size: 30px; font-weight: 500; letter-spacing: -.01em; }
.tile-kt .kt-name b { font-weight: 700; }
.sitemap { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.sitemap a { padding: 8px 0; color: var(--body); }
/* Phones: "Kelby Corr" and a Menu button on one row; the links open below (js/menu.js). */
.menu-btn { display: none; }
@media (max-width: 720px) {
  .has-menu .bar { flex-wrap: wrap; }
  .has-menu .menu-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); background: transparent; color: var(--paper); font: 500 15px var(--sans); cursor: pointer; }
  .has-menu .menu-btn[aria-expanded="true"] { border-color: var(--paper); }
  .has-menu .nav { display: none; flex-basis: 100%; flex-direction: column; gap: 0; padding: 4px 0 10px; font-size: 22px; }
  .has-menu .nav.is-open { display: flex; }
  .has-menu .nav a { padding: 12px 0; border-top: 1px solid var(--line); }
}
@media (max-width: 520px) { .nav { gap: 0 16px; font-size: 14px; } .has-menu .nav { font-size: 22px; } }
@media (max-width: 1080px) {
  .groups { grid-template-columns: minmax(0, 1fr); gap: 80px; }
  .group-title { font-size: 40px; }
  .group-photo, .group-make, .group-work { grid-column: auto; }
  .group-make .group-tiles, .group-work .group-tiles { --n: 2; }
  .group-photo .tile-pic { aspect-ratio: 21 / 9; }
  .group-make .tile:first-child { grid-column: 1 / -1; }
  .group-make .tile:first-child .tile-pic { aspect-ratio: 21 / 9; }
  .group-work .tile-pic { aspect-ratio: 16 / 10; }
}
@media (max-width: 520px) {
  .group-tiles { gap: 22px 12px; }
  .tile-name { font-size: 15px; }
  .tile-kind { font-size: 11px; }
      .tile-kt .kt-mark { width: 24px; height: 24px; }
  .tile-kt .kt-name { font-size: 17px; }
}

/* ---------- onboarding flow animation (Work) ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.flow { margin: 0; align-self: start; display: flex; flex-direction: column; gap: 18px; padding: 20px; border: 1px solid var(--line); background: var(--panel); }
.flow-ticket { padding: 14px 16px; border: 1px solid var(--line); background: #0f1012; }
.flow-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--muted); }
.flow-status { flex: none; padding: 2px 9px; border: 1px solid currentColor; border-radius: 99px; color: #7fd29c; transition: color .3s; }
.flow[data-state="open"] .flow-status { color: var(--muted); }
.flow[data-state="progress"] .flow-status { color: #f8b038; }
.flow-name { margin: 8px 0 2px; font-size: 18px; font-weight: 600; color: var(--paper); }
.flow-steps { list-style: none; margin: 0; padding: 0; }
.flow-steps li { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; padding-bottom: 16px; transition: opacity .4s; }
.flow-steps li:last-child { padding-bottom: 0; }
.flow-steps li:not(:last-child)::before { content: ''; position: absolute; left: 10px; top: 24px; bottom: 2px; width: 2px; background: var(--line); transition: background .5s; }
.flow-steps li.is-done:not(:last-child)::before { background: var(--paper); }
.flow-dot { position: relative; display: grid; place-items: center; width: 22px; height: 22px; border: 2px solid #3a3a3e; border-radius: 50%; background: var(--panel); transition: border-color .3s, background .3s; }
.is-active .flow-dot { border-color: #f8b038; animation: flow-pulse 1s ease-in-out infinite; }
.is-done .flow-dot { border-color: var(--paper); background: var(--paper); }
.is-done .flow-dot::after { content: ''; width: 9px; height: 5px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-1px) rotate(-45deg); }
.flow-step { font-size: 15px; font-weight: 600; color: var(--paper); }
.flow-chips { display: flex; flex-wrap: wrap; gap: 6px; max-height: 80px; margin-top: 6px; overflow: hidden; font-size: 11px; transition: max-height .4s, margin-top .4s; }
.flow-chips span { padding: 2px 7px; border: 1px solid var(--line); color: var(--body); transition: opacity .3s, transform .3s; }
.flow.is-playing .flow-steps li:not(.is-active):not(.is-done) { opacity: .35; }
.flow.is-playing li:not(.is-done) .flow-chips span { opacity: 0; transform: translateY(4px); }
.flow.is-playing li:not(.is-done) .flow-chips { max-height: 0; margin-top: 0; }
.flow li.is-done .flow-chips span:nth-child(2) { transition-delay: .1s; }
.flow li.is-done .flow-chips span:nth-child(3) { transition-delay: .2s; }
.flow li.is-done .flow-chips span:nth-child(4) { transition-delay: .3s; }
.flow-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.flow-replay { min-height: 36px; color: var(--paper); }
@keyframes flow-pulse { 50% { box-shadow: 0 0 0 6px rgba(248, 176, 56, .18); } }
@media (min-width: 980px) { .wfeat { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .flow *, .flow *::before, .flow *::after { animation: none !important; transition: none !important; } }


/* ---------- contract renewal animation (Work) ---------- */
.camp { margin: 8px 0 0; display: flex; flex-direction: column; gap: 0; padding: 18px 20px; border: 1px solid var(--line); background: var(--panel); }
.camp-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 14px; color: var(--muted); }
.camp-day { flex: none; padding: 2px 9px; border: 1px solid var(--line); border-radius: 99px; color: var(--paper); }
.camp-cols, .camp-row { display: grid; grid-template-columns: minmax(0, 1.4fr) 76px 40px minmax(0, 1.25fr); gap: 10px; align-items: center; }
.camp-cols { padding: 0 0 8px; border-bottom: 1px solid var(--line); }
.camp-row { min-height: 40px; border-bottom: 1px solid var(--line); font-size: 14px; transition: background .4s; }
.camp-row:last-of-type { margin-bottom: 14px; }
.camp-name { overflow: hidden; color: var(--paper); text-overflow: ellipsis; white-space: nowrap; }
.camp-tix, .camp-agent { font-size: 12px; color: var(--body); transition: opacity .3s; }
.camp-status { justify-self: start; padding: 2px 8px; border: 1px solid var(--line); border-radius: 99px; font-size: 11px; color: var(--muted); white-space: nowrap; transition: color .3s, border-color .3s; }
.camp-status.is-sent { color: var(--body); }
.camp-status.is-reminder { color: #f8b038; border-color: rgba(248, 176, 56, .45); }
.camp-status.is-replied { color: #7fd29c; border-color: rgba(127, 210, 156, .45); }
.camp-row.is-new { background: rgba(244, 241, 234, .05); }
.camp.is-playing .camp-row:not(.is-sent) .camp-tix, .camp.is-playing .camp-row:not(.is-sent) .camp-agent { opacity: 0; }
@media (max-width: 720px) {
  .camp { padding: 16px; }
  .camp-cols, .camp-row { grid-template-columns: minmax(0, 1fr) 64px 122px; gap: 8px; }
  .camp-cols span:nth-child(3), .camp-agent { display: none; }
  .camp-name { white-space: normal; line-height: 1.25; padding: 6px 0; }
}
@media (prefers-reduced-motion: reduce) { .camp *, .camp *::before, .camp *::after { transition: none !important; } }



/* ---------- access request catalog animation (Work) ---------- */
.acat { margin: 8px 0 0; display: flex; flex-direction: column; gap: 12px; padding: 18px 20px; border: 1px solid var(--line); background: var(--panel); }
.acat .camp-head { padding-bottom: 2px; }
.acat-search { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 12px; border: 1px solid #3a3a3e; background: #0f1012; font-size: 14px; color: var(--paper); }
.acat-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.acat-caret { width: 2px; height: 18px; margin-left: -8px; background: var(--paper); opacity: 0; }
.acat.is-typing .acat-caret { opacity: 1; animation: acat-blink 1s steps(1) infinite; }
.acat-results { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.acat-results li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 12px; padding: 10px 10px; border-bottom: 1px solid var(--line); border-left: 2px solid transparent; transition: opacity .35s, transform .35s, background .3s, border-color .3s; }
.acat-results li.is-picked { border-left-color: var(--paper); background: rgba(244, 241, 234, .05); }
.acat-app { font-size: 14px; color: var(--paper); }
.acat-meta { font-size: 11px; color: var(--muted); }
.acat-req { padding: 14px; border: 1px solid var(--line); background: #0f1012; transition: opacity .4s, transform .4s; }
.acat-req-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 12px; color: var(--body); }
.acat-track { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); font-size: 11px; color: var(--muted); }
.acat-track li { position: relative; padding-top: 18px; transition: color .3s; }
.acat-track li::before { content: ''; position: absolute; top: 0; left: 0; width: 10px; height: 10px; border: 2px solid #3a3a3e; border-radius: 50%; background: var(--panel); transition: background .3s, border-color .3s; }
.acat-track li::after { content: ''; position: absolute; top: 6px; left: 16px; right: 6px; height: 2px; background: var(--line); transition: background .4s; }
.acat-track li:last-child::after { display: none; }
.acat-track li.is-done { color: var(--paper); }
.acat-track li.is-done::before { border-color: var(--paper); background: var(--paper); }
.acat-track li.is-done::after { background: var(--paper); }
.acat-track li.is-active { color: #f8b038; }
.acat-track li.is-active::before { border-color: #f8b038; animation: flow-pulse 1s ease-in-out infinite; }
.acat.is-playing .acat-results li:not(.is-in) { opacity: 0; transform: translateY(4px); }
.acat.is-playing .acat-req:not(.is-in) { opacity: 0; transform: translateY(6px); }
@keyframes acat-blink { 50% { opacity: 0; } }
@media (max-width: 520px) { .acat { padding: 16px; } .acat-track { font-size: 10px; } }
@media (prefers-reduced-motion: reduce) { .acat *, .acat *::before, .acat *::after { animation: none !important; transition: none !important; } }


/* ---------- photography: hire me ---------- */
.hire-btn { align-self: flex-start; display: inline-flex; align-items: center; margin-top: 6px; text-decoration: none; }
.hire-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hire-text { margin: 0; font-size: 18px; color: var(--paper); }
.hire-strip .hire-btn { margin-top: 0; }

/* ---------- Hatchfire button ---------- */
.hf-btn { display: inline-flex; align-self: flex-start; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; background: #e8b048; color: #1a110b; font-weight: 700; text-decoration: none; transition: background .2s; }
.hf-btn:hover, .hf-btn:focus-visible { background: #f2c56a; }

/* ---------- Kelbyte Tech (its own brand: see the Kelbyte Tech design system) ---------- */
.kt { --kt-paper: #111316; --kt-surface: #1A1D21; --kt-ink: #F3F4F6; --kt-muted: #A7ADB5; --kt-line: #2A2E34; --kt-orange: #F2622E; --kt-orange-strong: #FF8A5C; --kt-on-orange: #14161A; --kt-good: #3CC383; --kt-warn: #F0B429; --kt-bad: #F26B5B; --kt-display: "Space Grotesk", system-ui, sans-serif; --kt-sans: Inter, system-ui, sans-serif;
  background: var(--kt-paper); color: var(--kt-ink); font-family: var(--kt-sans); }
.kt-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px 64px; align-items: start; }
.kt-main { display: flex; flex-direction: column; gap: 24px; }
.kt-lockup { display: flex; align-items: center; gap: 14px; color: var(--kt-ink); }
.kt-mark { width: 40px; height: 40px; flex: none; }
.kt-name { font-family: var(--kt-display); font-size: 32px; font-weight: 500; letter-spacing: -.01em; line-height: 1; }
.kt-name b { font-weight: 700; }
.kt-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.kt-title { margin: 0; max-width: 10.5em; font-family: var(--kt-display); font-size: clamp(40px, 5.4vw, 72px); font-weight: 700; line-height: 1.02; letter-spacing: -.025em; }
.kt-grid { width: 136px; height: 136px; flex: none; fill: var(--kt-line); }
.kt-grid .hot { fill: var(--kt-orange); }
.kt-lead { max-width: 34em; margin: 0; font-size: 17px; line-height: 1.6; color: var(--kt-muted); }
.kt-btn { align-self: flex-start; display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 8px; background: var(--kt-orange); color: var(--kt-on-orange); font-weight: 600; text-decoration: none; transition: filter .2s; }
.kt-btn:hover, .kt-btn:focus-visible { filter: brightness(1.08); }
.kt-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 15px; line-height: 1.5; color: var(--kt-ink); }
.kt-steps li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; }
.kt-steps span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 4px; background: var(--kt-surface); border: 1px solid var(--kt-line); font-family: var(--kt-display); font-weight: 700; font-size: 14px; color: var(--kt-orange-strong); }
.kt-side { display: flex; flex-direction: column; gap: 16px; }
.kt-report { margin: 0; padding: 20px 24px; border-radius: 16px; background: var(--kt-surface); border: 1px solid var(--kt-line); }
.kt-report-head { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--kt-line); font-family: var(--kt-display); font-weight: 700; font-size: 18px; }
.kt-report-dom { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 400; font-size: 13px; color: var(--kt-muted); align-self: center; }
.kt-checks { list-style: none; margin: 0; padding: 0; }
.kt-checks li { display: grid; grid-template-columns: 10px 64px minmax(0, 1fr); gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--kt-line); font-size: 14px; color: var(--kt-muted); }
.kt-checks b { font-weight: 600; color: var(--kt-ink); }
.kt-light { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.kt-light.good { background: var(--kt-good); }
.kt-light.warn { background: var(--kt-warn); }
.kt-light.bad { background: var(--kt-bad); }
.kt-report-foot { margin: 12px 0 0; font-size: 12px; color: var(--kt-muted); }
.kt-services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.kt-services li { padding: 18px 20px; border-radius: 16px; border: 1px solid var(--kt-line); }
.kt-services h3 { margin: 0 0 6px; font-family: var(--kt-display); font-size: 17px; font-weight: 700; line-height: 1.25; }
.kt-services p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--kt-muted); }
.kt-note { display: flex; gap: 10px; align-items: baseline; margin: 4px 0 0; font-size: 14px; line-height: 1.5; color: var(--kt-muted); }
.kt-note .kt-light { flex: none; transform: translateY(1px); }
@media (max-width: 900px) { .kt-in { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .kt-services { grid-template-columns: minmax(0, 1fr); } .kt-grid { width: 88px; height: 88px; } .kt-name { font-size: 26px; } .kt-mark { width: 34px; height: 34px; } }

/* ---------- 404 page ---------- */
.lost { position: relative; min-height: 70vh; display: flex; align-items: flex-end; overflow: hidden; background: var(--panel); }
.lost-photo { position: absolute; inset: 0; }
.lost-photo img { width: 100%; height: 100%; object-fit: cover; }
.lost-shade { position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,.15), rgba(0,0,0,.8)); }
.lost-text { position: relative; width: 100%; padding-top: 120px; padding-bottom: 56px; gap: 18px; }
.lost-title { max-width: 11em; font-size: clamp(52px, 9vw, 128px); line-height: .9; }
.lost-body { max-width: 34em; font-size: 18px; color: var(--paper); }
.lost-links { display: flex; flex-wrap: wrap; gap: 12px; }
.lost-links a { display: inline-flex; align-items: center; text-decoration: none; }
.lost-ghost { color: var(--paper); font-size: 16px; font-weight: 600; }

/* ---------- photo viewer ---------- */
.viewer { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--paper); overflow: hidden; }
.viewer[open] { display: flex; align-items: center; justify-content: center; }
.viewer::backdrop { background: #060607; }
.viewer-fig { display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 100%; padding: 56px 64px 24px; box-sizing: border-box; }
.viewer-fig img { display: block; max-width: min(100%, 1600px); max-height: calc(100vh - 140px); width: auto; height: auto; object-fit: contain; }
.viewer-cap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; width: 100%; color: var(--body); }
.viewer-btn { position: absolute; width: 48px; height: 48px; padding: 0; border: 1px solid #3a3a3e; background: rgba(11,11,12,.7); display: flex; align-items: center; justify-content: center; }
.viewer-btn svg { fill: none; stroke: var(--paper); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.viewer-close { top: 12px; right: 12px; }
.viewer-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.viewer-next { right: 12px; top: 50%; transform: translateY(-50%); }

/* ---------- phone ---------- */
@media (max-width: 720px) {
  .sheet { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wrow, .sn-show { grid-template-columns: minmax(0, 1fr); }
  .sn-tabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
  .sn-tab { grid-column: span 2; }
  .sn-tab:nth-child(n+4) { grid-column: span 3; }
  .sn-tab { align-items: center; justify-content: center; min-height: 48px; padding: 10px 6px; border: 1px solid rgba(0,229,255,.3); text-align: center; }
  .sn-tab[aria-selected="true"] { border-color: #00e5ff; }
  .sn-tab-desc { display: none; }
  .sn-desc { display: block; }
  .se-eps { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .se-ep { flex-direction: row; align-items: center; gap: 12px; padding-bottom: 10px; }
  .se-ep-thumb { flex: 0 0 128px; }
  .sn-show .sn-stage { order: -1; }
  .hero-frame { min-height: 420px; }
  .section-in { padding-top: 72px; padding-bottom: 64px; }
  .band-in { padding-top: 64px; padding-bottom: 64px; }
  .viewer-fig { padding: 64px 12px 16px; }
  .viewer-prev, .viewer-next { top: auto; bottom: 12px; transform: none; }
  .viewer-fig img { max-height: calc(100vh - 170px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .shoot-cover img { transition: none; }
  .sn-shot { transition: none; }
  .se-play { transition: none; }
}
