:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-strong: #101214;
  --ink: #111418;
  --muted: #5f6873;
  --line: #dce1e7;
  --teal: #15a394;
  --coral: #ff6a55;
  --amber: #f2b84b;
  --green: #8ee86f;
  --shadow: 0 22px 70px rgba(17, 20, 24, 0.12);
  --frame-shadow: 7px 7px 0 rgba(17, 20, 24, 0.12);
  --radius: 0px;
  --page-gutter: clamp(32px, 7vw, 128px);
  --content-max: 1180px;
  --content-pad: max(var(--page-gutter), calc((100vw - var(--content-max)) / 2));
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--bg);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(17, 20, 24, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(17, 20, 24, 0.04) 1px, transparent 1px),
    var(--bg);
  background-size: 48px 48px;
}

a {
  color: inherit;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  border: 0;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  min-height: 62px;
  margin: 14px var(--content-pad) 0;
  padding: 0 18px;
  border: 1px solid #000;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--frame-shadow);
  backdrop-filter: blur(14px);
}

.project-detail-page .site-header {
  position: relative;
  top: auto;
}

.brand,
.site-nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-copy {
  display: block;
  line-height: 1;
}

.brand-copy span:first-child {
  font-size: 0.96rem;
}

.brand-copy span:last-child {
  display: none;
}

.brand:hover .brand-mark,
.brand:focus-visible .brand-mark {
  background: var(--teal);
}

.brand:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  color: var(--surface);
  background: var(--ink);
  font-size: 0.82rem;
  transition: background 180ms ease;
}

.site-nav {
  grid-column: 3;
  justify-self: end;
  gap: clamp(22px, 2.6vw, 36px);
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 0;
  border: 0;
  color: #525c68;
  background: transparent;
  font-size: 0.86rem;
  font-weight: 750;
  letter-spacing: 0.01em;
  transition: color 180ms ease, opacity 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
  opacity: 1;
  outline: none;
}

.site-nav a.is-active {
  color: var(--ink);
}

.site-nav a.is-active::after {
  position: absolute;
  right: 0;
  bottom: 9px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--teal);
}

.menu-button {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid #000;
  background: var(--surface);
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}

.menu-button:hover,
.menu-button:focus-visible {
  background: rgba(21, 163, 148, 0.1);
  outline: none;
  transform: translateY(-1px);
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
  transition: transform 180ms ease;
}

.menu-button[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.menu-button[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: clamp(28px, 6vw, 84px);
  align-items: center;
  min-height: 74vh;
  padding: clamp(54px, 8vw, 108px) var(--content-pad) clamp(30px, 5vw, 72px);
}

.profile-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  row-gap: 24px;
  min-height: 82vh;
  border-bottom: 1px solid #000;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(17, 20, 24, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(17, 20, 24, 0.04) 1px, transparent 1px),
    linear-gradient(135deg, rgba(21, 163, 148, 0.14), rgba(255, 255, 255, 0.9) 38%, rgba(242, 184, 75, 0.12) 70%, rgba(255, 106, 85, 0.1)),
    var(--bg);
  background-size: 52px 52px, 52px 52px, auto;
  box-shadow: inset 0 -16px 0 rgba(17, 20, 24, 0.035);
}

.profile-hero::before {
  content: none;
}

.profile-hero::after {
  position: absolute;
  top: clamp(86px, 13vw, 148px);
  right: calc(var(--content-pad) - 18px);
  z-index: 0;
  color: rgba(17, 20, 24, 0.04);
  font-size: clamp(9rem, 23vw, 24rem);
  font-weight: 900;
  line-height: 0.72;
  content: "KK";
  pointer-events: none;
}

.profile-hero > * {
  position: relative;
  z-index: 1;
}

.hero-section-title {
  grid-column: 1 / -1;
  margin-bottom: 0;
  align-self: end;
}

.profile-hero .hero-section-title,
#experience .section-title,
#projects .section-title {
  padding: clamp(10px, 1.2vw, 14px) clamp(12px, 2vw, 20px);
  border: 1px solid #000;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 5px 5px 0 rgba(17, 20, 24, 0.12);
  font-size: clamp(1.25rem, 2.4vw, 2.15rem);
  line-height: 0.95;
  letter-spacing: 0;
  text-transform: none;
}

.hero-content {
  max-width: 760px;
}

.profile-photo-panel {
  width: min(100%, 300px);
  justify-self: end;
}

.profile-photo-frame {
  position: relative;
}

.profile-photo-frame::before {
  position: absolute;
  inset: 12px -12px -12px 12px;
  z-index: -1;
  content: "";
  background: var(--teal);
}

.profile-hero .profile-photo-panel {
  position: relative;
  width: min(100%, 340px);
}

.profile-hero .profile-photo-frame {
  padding: 10px;
  border: 1px solid #000;
  background: var(--surface);
  box-shadow: 12px 12px 0 rgba(17, 20, 24, 0.12);
}

.profile-hero .profile-photo-frame::before {
  inset: -14px 14px 14px -14px;
  border: 1px solid #000;
  background: transparent;
}

.profile-photo {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 3px solid var(--ink);
  object-fit: cover;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.profile-hero .profile-photo {
  border-color: #000;
  box-shadow: none;
}

.social-links {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 18px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(17, 20, 24, 0.16);
  border-radius: 5px;
  color: var(--ink);
  background: var(--surface);
  font-size: 0.82rem;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.profile-hero .social-links a {
  border-color: #000;
  background: var(--surface);
  box-shadow: 4px 4px 0 rgba(17, 20, 24, 0.12);
}

.social-links img {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.social-links a:hover,
.social-links a:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(21, 163, 148, 0.56);
  box-shadow: 5px 5px 0 var(--amber);
  outline: none;
}

.profile-hero .social-links a:hover,
.profile-hero .social-links a:focus-visible {
  border-color: #000;
  box-shadow: 5px 5px 0 rgba(17, 20, 24, 0.18);
}

.profile-intro {
  justify-self: start;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-title {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.15rem, 4.6vw, 4.35rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 12ch;
  margin-bottom: 24px;
  font-size: clamp(3rem, 7.4vw, 7.4rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.profile-intro h1 {
  max-width: none;
  margin-bottom: 20px;
}

.profile-hero .profile-intro h1 {
  max-width: 10ch;
  color: var(--ink);
  font-size: clamp(4rem, 8.6vw, 8.2rem);
}

.hero-copy {
  max-width: 680px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.34rem);
  line-height: 1.7;
}

.profile-hero .hero-copy {
  max-width: 660px;
  padding-left: 18px;
  border-left: 4px solid var(--teal);
  color: var(--muted);
}

.profile-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 700px;
  margin-bottom: 28px;
}

.profile-facts div {
  min-height: 118px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 36px rgba(17, 20, 24, 0.06);
}

.profile-hero .profile-facts div {
  border-color: #000;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 7px 7px 0 rgba(17, 20, 24, 0.12);
}

.profile-facts span {
  display: block;
  margin-bottom: 16px;
  color: var(--teal);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.profile-hero .profile-facts span {
  color: var(--teal);
}

.profile-facts strong {
  display: block;
  margin-bottom: 6px;
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
}

.profile-hero .profile-facts strong {
  color: var(--ink);
}

.profile-facts p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.45;
}

.profile-hero .profile-facts p {
  color: var(--muted);
}

.section {
  padding: clamp(72px, 9vw, 132px) var(--content-pad);
}

.section-heading {
  display: grid;
  gap: 4px;
  max-width: 760px;
  margin-bottom: clamp(28px, 4vw, 48px);
}

#experience {
  padding-top: clamp(54px, 7vw, 96px);
  padding-bottom: clamp(54px, 7vw, 96px);
}

#experience .section-heading {
  margin-bottom: 18px;
}

#projects .section-heading {
  margin-bottom: 18px;
}

.career-grid {
  display: block;
}

.experience-ledger {
  display: grid;
  gap: 14px;
  width: 100%;
  max-width: none;
  margin-left: 0;
}

.experience-row {
  position: relative;
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  overflow: hidden;
  padding: 20px 22px;
  border: 1px solid rgba(17, 20, 24, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 7px 7px 0 rgba(17, 20, 24, 0.12);
}

.experience-date {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  row-gap: 4px;
  min-height: 32px;
  padding: 7px 10px;
  border: 1px solid rgba(17, 20, 24, 0.1);
  border-radius: 4px;
  color: var(--muted);
  background: var(--bg);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.experience-date span:first-child {
  color: var(--ink);
}

.experience-date span + span::before {
  margin: 0 7px 0 3px;
  color: rgba(95, 104, 115, 0.68);
  content: "-";
}

.experience-logo-link {
  display: block;
  width: fit-content;
  height: fit-content;
  line-height: 0;
}

.experience-logo-link:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 4px;
}

.experience-logo {
  display: block;
  width: 60px;
  height: 60px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  object-fit: cover;
  background: var(--surface);
  box-shadow: 0 8px 18px rgba(17, 20, 24, 0.08);
}

.experience-summary {
  display: grid;
  gap: 15px;
  min-width: 0;
}

.experience-meta {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}

.experience-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.experience-title {
  display: grid;
  gap: 4px;
}

.experience-title h3 {
  margin-bottom: 0;
  font-size: clamp(1.12rem, 1.45vw, 1.26rem);
  font-weight: 700;
  line-height: 1.25;
}

.tech-panel h3,
.project-grid h3 {
  margin-bottom: 4px;
  font-size: clamp(1.1rem, 1.7vw, 1.34rem);
  line-height: 1.1;
}

.experience-title p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.accomplishment-block {
  display: grid;
  gap: 0;
}

.accomplishment-block p,
.accomplishment-block ul {
  margin: 0;
  color: #48515d;
  font-size: 0.91rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.accomplishment-block ul {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  padding-left: 0;
  list-style: none;
}

.accomplishment-block p {
  max-width: 72ch;
}

.accomplishment-block li {
  position: relative;
  min-width: 0;
  padding-left: 17px;
}

.accomplishment-block li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 5px;
  height: 4px;
  border-radius: 1px;
  content: "";
  background: var(--teal);
}

.accomplishment-block li a {
  color: #0f7f74;
  font-weight: 750;
  text-decoration: underline;
  text-decoration-color: rgba(21, 163, 148, 0.6);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: color 180ms ease, text-decoration-color 180ms ease;
}

.accomplishment-block li a:hover,
.accomplishment-block li a:focus-visible {
  color: var(--ink);
  text-decoration-color: var(--coral);
  outline: none;
}

.experience-link {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: 32px;
  padding: 7px 10px;
  border: 1px solid rgba(17, 20, 24, 0.16);
  border-radius: 4px;
  color: var(--surface);
  background: var(--ink);
  font-size: 0.8rem;
  font-weight: 800;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.experience-link:hover,
.experience-link:focus-visible {
  transform: translateY(-1px);
  border-color: var(--ink);
  box-shadow: 4px 4px 0 rgba(21, 163, 148, 0.34);
  outline: none;
}

@media (min-width: 1021px) {
  .accomplishment-block li {
    white-space: nowrap;
  }
}

.project-grid p {
  color: var(--muted);
  line-height: 1.7;
}

.tech-panel {
  margin-top: clamp(28px, 4vw, 48px);
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 14px 42px rgba(17, 20, 24, 0.06);
}

.tech-panel .eyebrow {
  margin-bottom: 18px;
}

.tech-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.tech-board article {
  min-height: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.tech-board h3 {
  margin-bottom: 10px;
  font-size: 1rem;
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tech-list span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 9px;
  border: 1px solid rgba(17, 20, 24, 0.12);
  border-radius: 5px;
  color: var(--muted);
  background: var(--surface);
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.project-section {
  background:
    linear-gradient(135deg, rgba(21, 163, 148, 0.08), transparent 42%),
    linear-gradient(315deg, rgba(255, 106, 85, 0.08), transparent 38%),
    var(--bg);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.project-tabs {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(118px, 1fr));
  gap: 5px;
  width: fit-content;
  margin-bottom: 26px;
  padding: 5px;
  border: 1px solid #000;
  background: rgba(255, 255, 255, 0.82);
}

.project-tab {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid transparent;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.project-tab:hover {
  color: var(--ink);
  background: rgba(21, 163, 148, 0.08);
}

.project-tab.is-active {
  color: var(--surface);
  border-color: #000;
  background: var(--ink);
}

.project-tab-count {
  display: inline-grid;
  min-width: 26px;
  height: 24px;
  place-items: center;
  border: 1px solid currentColor;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1;
}

.project-tab.is-active .project-tab-count {
  border-color: var(--surface);
  background: var(--surface);
  color: var(--ink);
}

.project-tab:focus-visible {
  position: relative;
  z-index: 1;
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.project-tab-panel[hidden] {
  display: none;
}

.project-card {
  display: flex;
  min-height: 430px;
  flex-direction: column;
  border: 1px solid rgba(17, 20, 24, 0.16);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 7px 7px 0 rgba(17, 20, 24, 0.12);
}

.project-card-media {
  position: relative;
  height: 178px;
  min-height: 0;
  border-bottom: 1px solid rgba(17, 20, 24, 0.12);
  overflow: hidden;
  background: var(--surface);
}

.project-card-media::before,
.project-card-media::after {
  position: absolute;
  content: "";
}

.project-media-screenshot {
  background: var(--surface);
}

.project-media-screenshot img,
.project-detail-screenshot img,
.screenshot-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-media-jobnow {
  background:
    linear-gradient(90deg, rgba(17, 20, 24, 0.09) 1px, transparent 1px),
    linear-gradient(180deg, rgba(17, 20, 24, 0.08) 1px, transparent 1px),
    linear-gradient(135deg, rgba(21, 163, 148, 0.2), rgba(255, 255, 255, 0.82));
  background-size: 28px 28px, 28px 28px, auto;
}

.project-media-jobnow::before {
  inset: 42px 46px auto;
  height: 58px;
  border: 2px solid rgba(17, 20, 24, 0.18);
  background: rgba(255, 255, 255, 0.6);
}

.project-media-jobnow::after {
  right: 48px;
  bottom: 42px;
  left: 48px;
  height: 9px;
  background: linear-gradient(90deg, var(--teal), var(--amber), var(--coral));
}

.project-media-safe-flight {
  background:
    radial-gradient(circle at 24% 28%, rgba(255, 255, 255, 0.96) 0 34px, transparent 35px),
    linear-gradient(145deg, rgba(21, 163, 148, 0.18), rgba(255, 255, 255, 0.82) 48%, rgba(92, 128, 184, 0.2));
}

.project-media-safe-flight::before {
  width: 58%;
  height: 2px;
  top: 88px;
  left: 22%;
  background: rgba(17, 20, 24, 0.2);
  transform: rotate(-18deg);
}

.project-media-safe-flight::after {
  width: 32px;
  height: 32px;
  top: 66px;
  right: 30%;
  border-top: 3px solid var(--teal);
  border-right: 3px solid var(--teal);
  transform: rotate(38deg);
}

.project-media-nightfall {
  background:
    linear-gradient(90deg, rgba(17, 20, 24, 0.09) 1px, transparent 1px),
    linear-gradient(180deg, rgba(17, 20, 24, 0.09) 1px, transparent 1px),
    linear-gradient(145deg, rgba(17, 20, 24, 0.12), rgba(255, 255, 255, 0.76) 52%, rgba(255, 106, 85, 0.18));
  background-size: 32px 32px, 32px 32px, auto;
}

.project-media-nightfall::before {
  inset: 42px 64px;
  border: 2px solid rgba(17, 20, 24, 0.18);
  transform: skewX(-16deg);
}

.project-media-nightfall::after {
  width: 76px;
  height: 76px;
  right: 42px;
  bottom: 34px;
  border: 2px solid rgba(255, 106, 85, 0.55);
  transform: rotate(18deg);
}

.project-media-nightfall-thumb {
  background: #101214;
}

.project-media-nightfall-thumb img {
  object-fit: contain;
}

.project-media-cyrus-thumb {
  background: #101214;
}

.project-media-cyrus-thumb img {
  object-position: center;
}

.project-media-safe-flight-thumb img {
  object-position: center top;
}

.project-media-photoshare-thumb img {
  object-fit: cover;
  object-position: center top;
}

.project-media-jobnow-thumb img {
  object-position: center top;
}

.project-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px 26px 26px;
}

.project-card h3 {
  margin-bottom: 12px;
  font-size: clamp(1.24rem, 1.9vw, 1.55rem);
  line-height: 1.15;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 18px;
}

.project-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid rgba(17, 20, 24, 0.12);
  border-radius: 5px;
  color: var(--muted);
  background: var(--surface);
  font-size: 0.8rem;
  font-weight: 800;
}

.project-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 38px;
  margin-top: auto;
  padding: 9px 12px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  color: var(--surface);
  background: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.project-link:hover,
.project-link:focus-visible {
  transform: translateY(-1px);
  box-shadow: 5px 5px 0 rgba(21, 163, 148, 0.28);
  outline: none;
}

.detail-main {
  min-height: calc(100vh - 130px);
}

.company-hero {
  padding: clamp(48px, 7vw, 92px) var(--content-pad) clamp(28px, 5vw, 60px);
}

.back-link {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--ink);
  outline: none;
}

.company-hero-card {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: clamp(22px, 4vw, 42px);
  align-items: start;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(17, 20, 24, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
}

.project-detail-card {
  grid-template-columns: minmax(240px, 0.42fr) minmax(0, 1fr);
}

.project-detail-visual {
  min-height: 280px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.repo-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  min-height: 42px;
  margin-top: 20px;
  padding: 9px 13px;
  border: 1px solid rgba(17, 20, 24, 0.16);
  border-radius: 5px;
  color: var(--ink);
  background: var(--surface);
  font-size: 0.9rem;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.repo-button img {
  width: 20px;
  height: 20px;
}

.repo-button:hover,
.repo-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(21, 163, 148, 0.5);
  box-shadow: 5px 5px 0 rgba(21, 163, 148, 0.22);
  outline: none;
}

.project-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.project-action-row .repo-button {
  margin-top: 0;
}

.screenshot-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.screenshot-card {
  display: grid;
  gap: 10px;
  margin: 0;
}

.screenshot-card img {
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 14px 38px rgba(17, 20, 24, 0.08);
}

.screenshot-card figcaption {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.45;
}

.screenshot-card-large {
  grid-column: 1 / -1;
}

.photoshare-page {
  background:
    linear-gradient(135deg, rgba(21, 163, 148, 0.07), transparent 34%),
    linear-gradient(315deg, rgba(242, 184, 75, 0.08), transparent 32%);
}

.jobnow-page {
  background:
    linear-gradient(135deg, rgba(20, 184, 166, 0.08), transparent 34%),
    linear-gradient(315deg, rgba(255, 106, 85, 0.07), transparent 32%);
}

.safeflight-page {
  background:
    linear-gradient(135deg, rgba(21, 163, 148, 0.08), transparent 34%),
    linear-gradient(315deg, rgba(92, 128, 184, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(242, 184, 75, 0.05), transparent 44%);
}

.photoshare-hero,
.photoshare-showcase-section,
.photoshare-capabilities,
.photoshare-implementation {
  padding-right: var(--content-pad);
  padding-left: var(--content-pad);
}

.photoshare-hero {
  padding-top: clamp(44px, 6vw, 86px);
  padding-bottom: clamp(24px, 4vw, 48px);
}

.photoshare-back {
  margin-bottom: 20px;
}

.photoshare-hero-panel {
  display: block;
  padding: clamp(24px, 4vw, 46px);
  border: 1px solid rgba(17, 20, 24, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 56px rgba(17, 20, 24, 0.09);
}

.photoshare-intro {
  display: grid;
  align-content: center;
  max-width: 920px;
}

.photoshare-intro h1 {
  max-width: none;
  margin-bottom: 18px;
  font-size: clamp(3.1rem, 7vw, 7rem);
}

.photoshare-lede {
  max-width: 820px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.7vw, 1.32rem);
  line-height: 1.65;
}

.photoshare-stack-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: baseline;
  margin: 24px 0 2px;
  padding-top: 18px;
  border-top: 1px solid rgba(17, 20, 24, 0.1);
}

.photoshare-stack-line > span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.photoshare-stack-line ul {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 6px 0;
  min-width: min(100%, 420px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.photoshare-stack-line li {
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.4;
}

.photoshare-stack-line li + li::before {
  margin: 0 10px;
  color: rgba(95, 104, 115, 0.58);
  content: "/";
}

.repo-button-strong {
  color: var(--surface);
  background: var(--ink);
}

.repo-button-strong img {
  filter: invert(1);
}

.photoshare-capability-grid span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.photoshare-showcase-section {
  padding-top: clamp(34px, 5vw, 68px);
  padding-bottom: clamp(40px, 6vw, 78px);
}

.photoshare-section-heading {
  max-width: 760px;
  margin-bottom: clamp(22px, 3vw, 34px);
}

.photoshare-section-heading h2 {
  margin: 0 0 10px;
  font-size: clamp(2.1rem, 4.5vw, 4rem);
  line-height: 0.98;
}

.photoshare-section-heading p:not(.eyebrow) {
  max-width: 690px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.photoshare-gallery-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 18px;
  align-items: start;
}

.photoshare-showcase {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(17, 20, 24, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 52px rgba(17, 20, 24, 0.09);
}

.gallery-window {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.gallery-browser-bar {
  display: flex;
  gap: 7px;
  align-items: center;
  height: 38px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: #f2f5f7;
}

.gallery-browser-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--coral);
}

.gallery-browser-bar span:nth-child(2) {
  background: var(--amber);
}

.gallery-browser-bar span:nth-child(3) {
  background: var(--teal);
}

.gallery-stage {
  position: relative;
  display: grid;
  height: clamp(260px, 38vw, 440px);
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(17, 20, 24, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(17, 20, 24, 0.035) 1px, transparent 1px),
    #fbfcfd;
  background-size: 30px 30px;
}

.gallery-stage img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  padding: clamp(8px, 1.2vw, 14px);
  object-fit: contain;
}

.gallery-control {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(17, 20, 24, 0.16);
  border-radius: 4px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  font-size: 0.9rem;
  font-weight: 800;
  transform: translateY(-50%);
  cursor: pointer;
}

.gallery-control-prev {
  left: 12px;
}

.gallery-control-next {
  right: 12px;
}

.gallery-control:hover,
.gallery-control:focus-visible {
  border-color: rgba(21, 163, 148, 0.55);
  box-shadow: 4px 4px 0 rgba(21, 163, 148, 0.2);
  outline: none;
}

.gallery-caption {
  display: flex;
  gap: 16px;
  align-items: baseline;
  justify-content: space-between;
  padding: 14px 2px 0;
}

.gallery-caption strong {
  flex: 0 0 auto;
  font-size: 1rem;
}

.gallery-caption span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
  text-align: right;
}

.gallery-thumbs {
  display: grid;
  gap: 10px;
}

.gallery-thumbs button {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 74px;
  padding: 8px;
  border: 1px solid rgba(17, 20, 24, 0.12);
  border-radius: 6px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.9);
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease, color 180ms ease, transform 180ms ease;
}

.gallery-thumbs button:hover,
.gallery-thumbs button:focus-visible {
  color: var(--ink);
  border-color: rgba(21, 163, 148, 0.34);
  outline: none;
}

.gallery-thumbs button.is-active {
  color: var(--ink);
  border-color: rgba(21, 163, 148, 0.78);
  box-shadow: 4px 4px 0 rgba(21, 163, 148, 0.16);
}

.gallery-thumbs img {
  display: block;
  width: 78px;
  height: 50px;
  border: 1px solid rgba(17, 20, 24, 0.12);
  border-radius: 4px;
  object-fit: cover;
}

.gallery-thumbs span {
  min-width: 0;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.25;
}

.photoshare-capabilities {
  padding-top: clamp(18px, 3vw, 30px);
  padding-bottom: clamp(42px, 6vw, 82px);
}

.photoshare-capability-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.photoshare-capability-grid article {
  min-height: 210px;
  padding: 20px;
  border: 1px solid rgba(17, 20, 24, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 34px rgba(17, 20, 24, 0.055);
}

.photoshare-capability-grid h3 {
  margin-bottom: 12px;
  font-size: 1.15rem;
  line-height: 1.2;
}

.photoshare-capability-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.photoshare-implementation {
  padding-top: clamp(10px, 2vw, 28px);
  padding-bottom: clamp(72px, 9vw, 128px);
}

.photoshare-implementation-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 3vw, 32px);
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid rgba(17, 20, 24, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 42px rgba(17, 20, 24, 0.06);
}

.photoshare-implementation-panel .photoshare-section-heading {
  max-width: 820px;
  margin-bottom: 0;
}

.photoshare-point-list {
  align-self: start;
}

.safeflight-tech-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  gap: 14px;
}

.safeflight-tech-grid article {
  padding: 20px;
  border: 1px solid rgba(17, 20, 24, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 34px rgba(17, 20, 24, 0.055);
}

.safeflight-tech-grid h3 {
  margin-bottom: 14px;
  font-size: 1.15rem;
  line-height: 1.2;
}

.nightfall-page {
  background:
    linear-gradient(135deg, rgba(255, 106, 85, 0.07), transparent 32%),
    linear-gradient(315deg, rgba(21, 163, 148, 0.08), transparent 34%);
}

.nightfall-card-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.nightfall-card-grid article {
  display: grid;
  gap: 16px;
  min-height: 310px;
  padding: 18px;
  border: 1px solid rgba(17, 20, 24, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 34px rgba(17, 20, 24, 0.055);
}

.nightfall-card-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(17, 20, 24, 0.1);
  border-radius: var(--radius);
  object-fit: contain;
  background:
    linear-gradient(90deg, rgba(17, 20, 24, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(17, 20, 24, 0.035) 1px, transparent 1px),
    #fbfcfd;
  background-size: 24px 24px;
}

.nightfall-card-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nightfall-card-grid h3,
.nightfall-equipment-panel h3,
.nightfall-map-panel h3,
.nightfall-map-grid h3,
.nightfall-clip-panel h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
  line-height: 1.2;
}

.nightfall-card-grid p,
.nightfall-equipment-panel p,
.nightfall-map-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.nightfall-content-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
}

.nightfall-equipment-panel,
.nightfall-map-panel,
.nightfall-map-grid article,
.nightfall-clip-panel {
  border: 1px solid rgba(17, 20, 24, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 34px rgba(17, 20, 24, 0.055);
}

.nightfall-equipment-panel {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.nightfall-map-panel {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.nightfall-equipment-strip {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 10px;
}

.nightfall-equipment-strip figure {
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(17, 20, 24, 0.1);
  border-radius: 5px;
  background: var(--bg);
}

.nightfall-equipment-strip img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 8px;
  border: 1px solid rgba(17, 20, 24, 0.1);
  border-radius: 5px;
  object-fit: contain;
  background: var(--surface);
}

.nightfall-equipment-strip figcaption {
  display: grid;
  gap: 3px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  overflow-wrap: anywhere;
}

.nightfall-equipment-strip figcaption span {
  color: var(--teal);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nightfall-map-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.nightfall-map-grid article {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 10px;
  background: var(--bg);
}

.nightfall-map-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 8px;
  border: 1px solid rgba(17, 20, 24, 0.1);
  border-radius: 5px;
  object-fit: contain;
  background:
    linear-gradient(90deg, rgba(17, 20, 24, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(17, 20, 24, 0.035) 1px, transparent 1px),
    var(--surface);
  background-size: 24px 24px;
}

.nightfall-map-grid h3,
.nightfall-map-grid p {
  margin: 0;
}

.nightfall-map-grid h3 {
  font-size: 1rem;
}

.nightfall-map-grid p {
  font-size: 0.9rem;
  line-height: 1.5;
}

.nightfall-build-panel {
  grid-template-columns: 1fr minmax(240px, 0.35fr);
}

.nightfall-build-panel .photoshare-section-heading {
  grid-column: 1 / -1;
}

.nightfall-clip-panel {
  align-self: start;
  padding: 18px;
}

.nightfall-clip-list {
  display: grid;
  gap: 8px;
}

.nightfall-clip-list a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 9px 11px;
  border: 1px solid rgba(17, 20, 24, 0.12);
  border-radius: 4px;
  color: var(--ink);
  background: var(--bg);
  font-size: 0.86rem;
  font-weight: 800;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.nightfall-clip-list a:hover,
.nightfall-clip-list a:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(21, 163, 148, 0.44);
  box-shadow: 4px 4px 0 rgba(21, 163, 148, 0.18);
  outline: none;
}

.cyrus-page {
  background:
    linear-gradient(135deg, rgba(21, 163, 148, 0.08), transparent 32%),
    linear-gradient(315deg, rgba(242, 184, 75, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 106, 85, 0.05), transparent 44%);
}

.cyrus-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.cyrus-stat-grid article {
  min-height: 112px;
  padding: 16px;
  border: 1px solid rgba(17, 20, 24, 0.12);
  border-radius: var(--radius);
  background: var(--bg);
}

.cyrus-stat-grid span,
.cyrus-video-card span {
  display: block;
  margin-bottom: 9px;
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cyrus-stat-grid strong {
  display: block;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.25;
}

.cyrus-info-grid article {
  min-height: 230px;
}

.cyrus-team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.cyrus-team-card {
  grid-column: span 2;
  min-height: 280px;
  padding: 20px;
  border: 1px solid rgba(17, 20, 24, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 34px rgba(17, 20, 24, 0.055);
}

.cyrus-team-card-compact {
  min-height: 170px;
}

.cyrus-team-card h3,
.cyrus-system-panel h3 {
  margin-bottom: 14px;
  font-size: 1.15rem;
  line-height: 1.2;
}

.cyrus-team-card p,
.cyrus-system-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.cyrus-tree,
.cyrus-tree ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cyrus-tree ul {
  margin-top: 8px;
  margin-left: 4px;
  padding-left: 14px;
  border-left: 1px solid rgba(17, 20, 24, 0.16);
}

.cyrus-tree li {
  position: relative;
  min-width: 0;
  padding-left: 14px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.45;
}

.cyrus-tree li::before {
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 5px;
  height: 5px;
  content: "";
  background: var(--teal);
}

.cyrus-drop-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.35fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.cyrus-system-panel {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid rgba(17, 20, 24, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 34px rgba(17, 20, 24, 0.055);
}

.cyrus-system-panel .repo-button {
  margin-top: 6px;
}

.cyrus-page .gallery-stage {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    #101214;
  background-size: 30px 30px;
}

.cyrus-page .gallery-stage img {
  padding: 0;
  object-fit: contain;
}

.cyrus-page .gallery-thumbs {
  max-height: 560px;
  overflow: auto;
  padding-right: 4px;
}

.cyrus-video-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.cyrus-video-card {
  display: grid;
  gap: 11px;
  align-content: start;
  min-height: 260px;
  padding: 12px;
  border: 1px solid rgba(17, 20, 24, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 34px rgba(17, 20, 24, 0.055);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.cyrus-video-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(17, 20, 24, 0.1);
  border-radius: var(--radius);
  object-fit: cover;
  background: var(--surface);
}

.cyrus-video-card strong {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.35;
}

.cyrus-video-card:hover,
.cyrus-video-card:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(21, 163, 148, 0.44);
  box-shadow: 5px 5px 0 rgba(21, 163, 148, 0.2);
  outline: none;
}

.cyrus-archive-panel {
  gap: 20px;
}

.cyrus-image-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.cyrus-image-grid figure {
  display: grid;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(17, 20, 24, 0.12);
  border-radius: var(--radius);
  background: var(--bg);
}

.cyrus-image-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(17, 20, 24, 0.1);
  border-radius: var(--radius);
  object-fit: cover;
  background: var(--surface);
}

.cyrus-image-grid figcaption {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
}

.cyrus-image-wide {
  grid-column: span 4;
}

.cyrus-image-wide img {
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.company-logo-large {
  width: 104px;
  height: 104px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  object-fit: cover;
  background: var(--surface);
  box-shadow: 0 14px 34px rgba(17, 20, 24, 0.1);
}

.company-copy h1 {
  max-width: none;
  margin-bottom: 18px;
  font-size: clamp(2.6rem, 6vw, 5.8rem);
}

.company-copy > p:not(.eyebrow) {
  max-width: 820px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.5vw, 1.22rem);
  line-height: 1.7;
}

.company-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.company-meta-grid div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.company-meta-grid span,
.detail-role-block > div p {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.company-meta-grid strong {
  font-size: 1rem;
  line-height: 1.4;
}

.detail-section {
  padding: 0 var(--content-pad) clamp(72px, 9vw, 128px);
}

.detail-section-heading {
  margin-bottom: 18px;
}

.detail-section-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  line-height: 1;
}

.detail-panel {
  display: grid;
  gap: 16px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 14px 42px rgba(17, 20, 24, 0.06);
}

.detail-role-block {
  display: grid;
  grid-template-columns: minmax(180px, 0.32fr) minmax(0, 1fr);
  gap: clamp(18px, 4vw, 42px);
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.detail-role-block:first-child {
  padding-top: 0;
  border-top: 0;
}

.detail-role-block:last-child {
  padding-bottom: 0;
}

.detail-role-block h3 {
  margin-bottom: 6px;
  font-size: 1.12rem;
}

.detail-role-block > div p {
  margin-bottom: 0;
}

.detail-point-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-point-list li {
  position: relative;
  padding: 12px 14px 12px 28px;
  border: 1px solid rgba(17, 20, 24, 0.1);
  border-radius: 5px;
  color: var(--muted);
  background: var(--bg);
  line-height: 1.55;
}

.detail-point-list li::before {
  position: absolute;
  top: 1.25em;
  left: 14px;
  width: 5px;
  height: 5px;
  border-radius: 1px;
  content: "";
  background: var(--teal);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px var(--content-pad);
  color: var(--muted);
  background: var(--surface);
}

@media (max-width: 1240px) {
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tech-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .photoshare-capability-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .safeflight-tech-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nightfall-equipment-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nightfall-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cyrus-stat-grid,
  .cyrus-video-grid,
  .cyrus-image-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cyrus-image-wide {
    grid-column: span 2;
  }
}

@media (max-width: 1020px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .profile-hero {
    padding-bottom: clamp(56px, 8vw, 84px);
  }

  .profile-photo-panel {
    width: min(100%, 260px);
    justify-self: start;
  }

  .profile-hero .profile-photo-panel {
    width: min(100%, 280px);
    justify-self: start;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    min-height: auto;
  }

  .experience-ledger {
    max-width: none;
  }

  .experience-row {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 14px;
    padding: 16px;
  }

  .experience-logo {
    width: 56px;
    height: 56px;
  }

  .experience-summary {
    gap: 12px;
  }

  .accomplishment-block ul {
    grid-template-columns: 1fr;
  }

  .company-hero-card,
  .detail-role-block,
  .nightfall-content-layout,
  .cyrus-drop-layout,
  .cyrus-team-grid,
  .photoshare-hero-panel,
  .photoshare-gallery-layout,
  .photoshare-implementation-panel {
    grid-template-columns: 1fr;
  }

  .cyrus-team-card {
    grid-column: auto;
  }

  .screenshot-gallery {
    grid-template-columns: 1fr;
  }

  .gallery-thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nightfall-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nightfall-map-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-thumbs button {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .gallery-thumbs img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 64px;
    margin-inline: 12px;
    padding: 0 10px 0 14px;
  }

  .brand {
    min-width: 0;
  }

  .brand > span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .menu-button {
    grid-column: 2;
    display: block;
    flex: 0 0 auto;
  }

  .site-nav {
    position: fixed;
    inset: 88px 12px auto;
    grid-column: auto;
    justify-self: stretch;
    width: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 18px;
    border: 1px solid #000;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--frame-shadow);
    transform: translateY(-14px);
    opacity: 0;
    pointer-events: none;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    justify-content: flex-start;
    width: fit-content;
    min-height: 30px;
    color: #525c68;
  }

  .site-nav a.is-active::after {
    bottom: 1px;
  }

  .hero {
    padding-top: 42px;
  }

  .profile-hero {
    padding-top: 48px;
  }

  .profile-hero::after {
    top: 72px;
    right: -28px;
    font-size: clamp(8rem, 45vw, 13rem);
  }

  .hero-section-title {
    margin-bottom: 0;
  }

  .profile-photo-panel {
    width: min(100%, 220px);
    justify-self: start;
  }

  .profile-hero .profile-photo-panel {
    width: min(100%, 230px);
  }

  h1 {
    max-width: 10ch;
  }

  .profile-hero .profile-intro h1 {
    font-size: clamp(3.2rem, 18vw, 5.2rem);
  }

  .profile-hero .hero-copy {
    padding-left: 14px;
  }

  .tech-board {
    grid-template-columns: 1fr;
  }

  .profile-facts {
    grid-template-columns: 1fr;
  }

  .profile-hero .profile-facts div {
    min-height: auto;
    padding: 16px;
  }

  .experience-row {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .experience-meta {
    display: grid;
    gap: 8px;
  }

  .experience-actions {
    justify-content: flex-start;
  }

  .experience-date {
    justify-self: start;
    font-size: 0.74rem;
  }

  .experience-logo {
    grid-column: 1;
    grid-row: 1;
    width: 52px;
    height: 52px;
  }

  .experience-summary {
    grid-column: 2;
    grid-row: 1;
  }

  .accomplishment-block p,
  .accomplishment-block ul {
    font-size: 0.9rem;
  }

  .company-hero {
    padding-top: 34px;
  }

  .company-hero-card {
    padding: 18px;
  }

  .company-logo-large {
    width: 78px;
    height: 78px;
  }

  .company-meta-grid {
    grid-template-columns: 1fr;
  }

  .photoshare-hero {
    padding-top: 34px;
  }

  .photoshare-hero-panel,
  .photoshare-showcase {
    padding: 14px;
  }

  .photoshare-capability-grid {
    grid-template-columns: 1fr;
  }

  .nightfall-card-grid,
  .nightfall-map-grid {
    grid-template-columns: 1fr;
  }

  .cyrus-stat-grid,
  .cyrus-video-grid,
  .cyrus-image-grid {
    grid-template-columns: 1fr;
  }

  .cyrus-image-wide {
    grid-column: auto;
  }

  .cyrus-page .gallery-thumbs {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .photoshare-capability-grid article {
    min-height: auto;
  }

  .safeflight-tech-grid {
    grid-template-columns: 1fr;
  }

  .gallery-stage {
    height: clamp(220px, 68vw, 360px);
  }

  .gallery-caption {
    display: grid;
    gap: 5px;
  }

  .gallery-caption span {
    text-align: left;
  }

  .gallery-thumbs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .experience-row {
    grid-template-columns: 1fr;
  }

  .project-tabs {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-tab {
    justify-content: center;
  }

  .experience-logo,
  .experience-summary {
    grid-column: auto;
    grid-row: auto;
  }

  .gallery-thumbs {
    grid-template-columns: 1fr;
  }
}

.site-header,
.profile-photo,
.profile-facts div,
.experience-row,
.experience-logo,
.tech-panel,
.tech-board article,
.project-card,
.project-card-media,
.company-hero-card,
.project-detail-visual,
.screenshot-card img,
.photoshare-hero-panel,
.photoshare-showcase,
.gallery-window,
.gallery-thumbs img,
.photoshare-capability-grid article,
.photoshare-implementation-panel,
.safeflight-tech-grid article,
.nightfall-card-grid article,
.nightfall-card-grid img,
.nightfall-equipment-panel,
.nightfall-map-panel,
.nightfall-map-grid article,
.nightfall-clip-panel,
.nightfall-equipment-strip figure,
.nightfall-equipment-strip img,
.nightfall-map-grid img,
.cyrus-stat-grid article,
.cyrus-team-card,
.cyrus-system-panel,
.cyrus-video-card,
.cyrus-video-card img,
.cyrus-image-grid figure,
.cyrus-image-grid img,
.company-logo-large,
.company-meta-grid div,
.detail-panel,
.detail-point-list li,
.site-nav {
  border-width: 1px;
  border-color: #000;
  border-radius: 0;
}

.profile-photo {
  border-width: 2px;
  border-color: #000;
}

.brand-mark,
.site-nav a,
.menu-button,
.social-links a,
.experience-date,
.experience-link,
.tech-list span,
.project-tags span,
.project-link,
.repo-button,
.gallery-control,
.gallery-thumbs button,
.nightfall-clip-list a {
  border-width: 1px;
  border-color: #000;
  border-radius: 0;
}

.site-header,
.profile-hero .hero-section-title,
.profile-facts div,
.experience-row,
.tech-panel,
.project-card,
.company-hero-card,
.photoshare-hero-panel,
.photoshare-showcase,
.photoshare-capability-grid article,
.photoshare-implementation-panel,
.safeflight-tech-grid article,
.nightfall-card-grid article,
.nightfall-equipment-panel,
.nightfall-map-panel,
.cyrus-team-card,
.cyrus-system-panel,
.cyrus-video-card,
.detail-panel {
  box-shadow: var(--frame-shadow);
}

.experience-row .experience-logo,
.tech-panel .tech-board article,
.company-hero-card .project-detail-visual,
.company-hero-card .company-logo-large,
.company-hero-card .company-meta-grid div,
.detail-panel .detail-point-list li,
.photoshare-hero-panel .cyrus-stat-grid article,
.photoshare-showcase .gallery-window,
.photoshare-implementation-panel .detail-point-list li,
.photoshare-implementation-panel .nightfall-clip-panel,
.photoshare-implementation-panel .cyrus-image-grid figure,
.nightfall-equipment-panel .nightfall-equipment-strip figure,
.nightfall-map-panel .nightfall-map-grid article {
  box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
