:root {
  --tactical-bg: #ebebeb;
  --tactical-surface: #d9d9d9;
  --tactical-surface-strong: #cfcfcf;
  --tactical-line: #b9b9b9;
  --tactical-line-dark: #707070;
  --tactical-text: #1a1a1a;
  --tactical-muted: #707070;
  --tactical-red: #f00;
  --tactical-red-dark: #b80000;
  --tactical-white: #fff;
  --tactical-focus: #111;
  --font-display: "Orbitron", "IBM Plex Sans", "Inter", Arial, sans-serif;
  --font-body: "IBM Plex Sans", "Inter", Arial, sans-serif;
  --font-system: "Space Mono", "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  --shell-x: clamp(14px, 3vw, 44px);
  --shell-y: clamp(12px, 2.4vw, 28px);
  --content-max: 1180px;
  --panel-pad: clamp(16px, 3vw, 34px);
  --nav-height: 42px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--tactical-bg);
  color: var(--tactical-text);
  font-size: 16px;
  text-rendering: geometricPrecision;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(90deg, rgba(112, 112, 112, 0.16) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(0deg, rgba(255, 255, 255, 0.55) 1px, transparent 1px) 0 0 / 100% 12px,
    var(--tactical-bg);
  color: var(--tactical-text);
  font-family: var(--font-body);
  line-height: 1.55;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  content: "";
  background: linear-gradient(180deg, transparent 0, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
  background-size: 100% 6px;
  mix-blend-mode: multiply;
  opacity: 0.26;
}

body.is-loading::after,
body.is-flickering::after {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, transparent 0 20%, rgba(255, 0, 0, 0.18) 20% 21%, transparent 21% 100%),
    rgba(235, 235, 235, 0.18);
  animation: tactical-flicker 420ms steps(2, end);
}

@keyframes tactical-flicker {
  0% {
    opacity: 0;
    transform: translateX(-16px);
  }

  18% {
    opacity: 1;
  }

  45% {
    opacity: 0.35;
  }

  68% {
    opacity: 0.9;
    transform: translateX(10px);
  }

  100% {
    opacity: 0;
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--tactical-red);
}

:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--tactical-focus);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(255, 0, 0, 0.26);
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
.button,
.wp-block-button__link,
input[type="submit"] {
  min-height: 38px;
  border: 1px solid var(--tactical-text);
  border-top-width: 2px;
  border-bottom-width: 2px;
  border-radius: 0;
  padding: 0.55rem 0.9rem;
  background: transparent;
  color: var(--tactical-text);
  font-family: var(--font-system);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  transition: none;
}

button:hover,
.button:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover {
  background: var(--tactical-red);
  border-color: var(--tactical-red);
  color: var(--tactical-white);
}

input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
textarea,
select {
  width: 100%;
  border: 1px solid var(--tactical-line-dark);
  border-radius: 0;
  padding: 0.72rem 0.82rem;
  background: var(--tactical-bg);
  color: var(--tactical-text);
}

textarea {
  min-height: 150px;
  resize: vertical;
}

::selection {
  background: var(--tactical-red);
  color: var(--tactical-white);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 10000;
  width: auto;
  height: auto;
  clip: auto;
  padding: 0.75rem 1rem;
  background: var(--tactical-red);
  color: var(--tactical-white);
  font-family: var(--font-system);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.site,
.tactical-shell {
  position: relative;
  min-height: 100vh;
}

.site-header,
.tactical-header,
.tp-site-header {
  position: fixed;
  top: var(--shell-y);
  left: var(--shell-x);
  right: var(--shell-x);
  z-index: 1000;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
  pointer-events: none;
}

.site-branding,
.tactical-identity,
.tp-site-header__identity {
  pointer-events: auto;
}

.tp-site-header__identity {
  position: relative;
  padding: 16px;

  &::after,
  &::before {
    position: absolute;
    width: 22px;
    height: 22px;
    content: "";
    pointer-events: none;
  }

  &::after {
    right: 0;
    bottom: 0;
    border-right: 2px solid var(--tactical-text);
    border-bottom: 2px solid var(--tactical-text);
  }
}

.site-title,
.site-title a,
.tactical-logo,
.tp-site-title {
  margin: 0;
  color: var(--tactical-text);
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.2vw, 1.85rem);
  font-style: italic;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.95;
  text-decoration: none;
  text-transform: lowercase;
}

.site-description,
.tactical-kicker,
.system-label,
.hud-label,
.tp-system,
.tp-kicker,
.tp-status,
.tp-entry-meta,
.entry-meta,
.posted-on,
.byline,
.cat-links,
.tags-links {
  color: var(--tactical-muted);
  font-family: var(--font-system);
  font-size: clamp(0.62rem, 1.2vw, 0.74rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.4;
  text-transform: uppercase;
}

.site-description,
.tactical-kicker {
  margin: 0.2rem 0 0;
}

.site-description::before,
.tactical-kicker::before,
.system-label::before,
.hud-label::before {
  content: "[";
}

.site-description::after,
.tactical-kicker::after,
.system-label::after,
.hud-label::after {
  content: "]";
}

.main-navigation,
.tactical-nav,
.tp-site-nav {
  pointer-events: auto;
}

.tp-menu-toggle {
  display: none;
}

.main-navigation ul,
.tactical-nav ul,
.menu,
.tp-nav,
.tp-chip-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-navigation a,
.tactical-nav a,
.menu a,
.nav-link,
.tp-nav a {
  display: inline-flex;
  min-height: var(--nav-height);
  align-items: center;
  justify-content: center;
  border-top: 1px solid var(--tactical-line-dark);
  border-bottom: 1px solid var(--tactical-line-dark);
  padding: 0 0.8rem;
  background: rgba(217, 217, 217, 0.72);
  color: var(--tactical-text);
  font-family: var(--font-system);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
  transition: none;
}

.main-navigation a:hover,
.tactical-nav a:hover,
.menu a:hover,
.nav-link:hover,
.tp-nav a:hover,
.main-navigation .current-menu-item>a,
.main-navigation .current_page_item>a,
.menu .current-menu-item>a,
.nav-link.is-active,
.nav-link[aria-current="page"] {
  border-color: var(--tactical-red);
  background: var(--tactical-red);
  color: var(--tactical-white);
}

.system-widget,
.hud-widget,
.viewport-status,
.tp-viewport-status {
  position: fixed;
  z-index: 900;
  max-width: min(260px, 44vw);
  border-left: 2px solid var(--tactical-red);
  padding: 0.5rem 0.75rem;
  background: rgba(235, 235, 235, 0.78);
  color: var(--tactical-muted);
  font-family: var(--font-system);
  font-size: 0.64rem;
  font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase;
}

.system-widget--top-left,
.hud-widget--top-left {
  top: calc(var(--shell-y) + 58px);
  left: var(--shell-x);
}

.system-widget--top-right,
.hud-widget--top-right {
  top: calc(var(--shell-y) + 58px);
  right: var(--shell-x);
  border-right: 2px solid var(--tactical-red);
  border-left: 0;
  text-align: right;
}

.system-widget--bottom-right,
.hud-widget--bottom-right,
.viewport-status {
  right: var(--shell-x);
  bottom: var(--shell-y);
  border-right: 2px solid var(--tactical-red);
  border-left: 0;
  text-align: right;
}

.site-main,
.tactical-main,
.tp-main,
main {
  width: min(var(--content-max), calc(100% - (var(--shell-x) * 2)));
  margin-inline: auto;
  padding: clamp(110px, 17vh, 180px) 0 clamp(54px, 10vh, 96px);
}

.tactical-dashboard,
.dashboard-grid,
.content-grid,
.tp-dashboard__split,
.tp-project-single__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: clamp(12px, 2vw, 22px);
  align-items: start;
}

.panel,
.dashboard-panel,
.tactical-panel,
.project-card,
.timeline-item,
.status-panel,
.tp-panel,
.tp-project-card,
.tp-timeline__item,
.tp-section,
.wp-block-group.is-style-tactical-panel {
  position: relative;
  border: 1px solid var(--tactical-line);
  border-top: 2px solid var(--tactical-text);
  background: var(--tactical-surface);
  color: var(--tactical-text);
}

.panel,
.dashboard-panel,
.tactical-panel,
.status-panel,
.tp-panel,
.tp-section,
.wp-block-group.is-style-tactical-panel {
  padding: var(--panel-pad);
}

.panel::before,
.dashboard-panel::before,
.tactical-panel::before,
.project-card::before,
.timeline-item::before,
.status-panel::before,
.tp-panel::before,
.tp-project-card::before,
.tp-timeline__item::before,
.tp-section::before {
  position: absolute;
  top: -2px;
  left: 0;
  width: clamp(52px, 12vw, 142px);
  height: 2px;
  content: "";
  background: var(--tactical-red);
}

.panel.is-active,
.dashboard-panel.is-active,
.tactical-panel.is-active,
.tp-panel.is-active,
.tp-section.is-active {
  border-top-color: var(--tactical-red);
}

.panel[hidden],
.is-filtered-out {
  display: none !important;
}

.panel-title,
.dashboard-title,
.section-title,
.entry-title,
.tp-section__header h2,
.tp-entry__header h1,
h1,
h2,
h3 {
  margin: 0 0 0.75em;
  color: var(--tactical-text);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.98;
  text-transform: lowercase;
}

h1,
.page-title {
  max-width: 13ch;
  font-size: clamp(3rem, 10vw, 8.75rem);
}

h2,
.section-title,
.dashboard-title {
  font-size: clamp(1.8rem, 5vw, 4.25rem);
}

h3,
.panel-title,
.project-card__title {
  font-size: clamp(1.25rem, 3.2vw, 2.4rem);
}

.section-title::before,
.dashboard-title::before,
.panel-title::before,
.wp-block-heading.is-style-tactical-prefix::before {
  content: "... ";
  color: var(--tactical-red);
  font-style: normal;
}

.section-header,
.panel-header,
.entry-header,
.tp-section__header,
.tp-entry__header {
  display: grid;
  gap: 0.65rem;
  margin-bottom: clamp(18px, 3vw, 34px);
  border-bottom: 2px solid var(--tactical-red);
  padding-bottom: 0.85rem;
}

.section-header__meta,
.panel-meta,
.count-label,
.metric-label,
.chip,
.technology-chip,
.filter-chip,
.project-filter,
.taxonomy-link,
.tp-chip {
  font-family: var(--font-system);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.chip-list,
.technology-list,
.filter-list,
.project-filters,
.taxonomy-links,
.tp-chip-list,
.tp-status-row,
.tp-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chip,
.technology-chip,
.filter-chip,
.project-filter,
.taxonomy-link,
.tp-chip,
.tp-status {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border: 1px solid var(--tactical-line-dark);
  padding: 0.45rem 0.6rem;
  background: transparent;
  color: var(--tactical-text);
  text-decoration: none;
  cursor: pointer;
  transition: none;
}

.chip:hover,
.technology-chip:hover,
.filter-chip:hover,
.project-filter:hover,
.taxonomy-link:hover,
.tp-chip:hover,
.chip.is-active,
.technology-chip.is-active,
.filter-chip.is-active,
.project-filter.is-active,
.taxonomy-link.is-active,
[aria-pressed="true"].chip,
[aria-pressed="true"].filter-chip,
[aria-pressed="true"].project-filter {
  border-color: var(--tactical-red);
  background: var(--tactical-red);
  color: var(--tactical-white);
}

.project-grid,
.selected-works,
.archive-grid,
.posts-grid,
.tp-project-grid,
.tp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(12px, 2vw, 20px);
}

.project-card,
.tp-project-card {
  display: grid;
  min-height: 260px;
  grid-template-columns: minmax(0, 0.9fr) minmax(180px, 1.1fr);
  gap: 0;
  overflow: hidden;
}

.project-card__body,
.project-card .entry-summary,
.project-card .entry-content,
.tp-project-card__body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.85rem;
  padding: clamp(16px, 2.5vw, 28px);
}

.project-card__media,
.project-card .post-thumbnail,
.project-media,
.tp-project-card__media,
.tp-entry__media {
  position: relative;
  min-height: 220px;
  background:
    linear-gradient(135deg, transparent 0 48%, rgba(255, 0, 0, 0.88) 48% 50%, transparent 50% 100%),
    linear-gradient(90deg, rgba(26, 26, 26, 0.14) 1px, transparent 1px) 0 0 / 18px 18px,
    var(--tactical-surface-strong);
}

.project-card__media img,
.project-card .post-thumbnail img,
.project-media img,
.tp-project-card__media img,
.tp-entry__media img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.05);
}

.project-card__media:empty::after,
.project-media:empty::after,
.project-card:not(:has(img)) .project-card__media::after,
.tp-project-card__media:empty::after {
  position: absolute;
  right: 12px;
  bottom: 12px;
  content: "[visual offline]";
  color: var(--tactical-muted);
  font-family: var(--font-system);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
}

.project-card__title a,
.entry-title a {
  color: inherit;
  text-decoration: none;
}

.project-card__title a:hover,
.entry-title a:hover {
  color: var(--tactical-red);
}

.metric-strip,
.project-metrics,
.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 1px;
  background: var(--tactical-line);
  border: 1px solid var(--tactical-line);
}

.metric,
.status-cell {
  min-height: 74px;
  padding: 0.7rem;
  background: var(--tactical-bg);
}

.metric-value,
.status-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 2.15rem);
  font-style: italic;
  font-weight: 900;
  line-height: 1;
}

.timeline,
.resume-timeline,
.tp-timeline {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--tactical-line);
}

.timeline-item,
.tp-timeline__item {
  display: grid;
  grid-template-columns: minmax(86px, 0.24fr) minmax(0, 1fr);
  gap: clamp(14px, 2vw, 28px);
  border-top: 0;
  border-right: 0;
  border-left: 0;
  padding: clamp(16px, 2.5vw, 26px) 0;
  background: transparent;
}

.timeline-date,
.timeline-meta,
.tp-timeline__content .tp-system {
  color: var(--tactical-muted);
  font-family: var(--font-system);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.timeline-content,
.tp-timeline__content {
  min-width: 0;
}

.timeline-title {
  margin-bottom: 0.35rem;
  font-size: clamp(1.2rem, 2.2vw, 2rem);
}

.post,
.page,
.entry-content,
.wp-block-post-content,
.content-area {
  overflow-wrap: break-word;
}

.entry-content,
.wp-block-post-content,
.page-content {
  font-size: clamp(1rem, 1.35vw, 1.1rem);
}

.entry-content>*,
.wp-block-post-content>*,
.page-content>* {
  max-width: 760px;
}

.entry-content>.alignwide,
.wp-block-post-content>.alignwide {
  max-width: min(var(--content-max), 100%);
}

.entry-content>.alignfull,
.wp-block-post-content>.alignfull {
  width: 100vw;
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
}

.entry-content p,
.wp-block-post-content p,
.page-content p {
  margin: 0 0 1.25rem;
}

.entry-content ul,
.entry-content ol,
.wp-block-post-content ul,
.wp-block-post-content ol {
  padding-left: 1.3rem;
}

.entry-content blockquote,
.wp-block-quote {
  margin: 1.8rem 0;
  border-left: 4px solid var(--tactical-red);
  padding: 0.5rem 0 0.5rem 1rem;
  color: var(--tactical-text);
  font-family: var(--font-system);
}

.entry-content hr,
.wp-block-separator {
  width: 100%;
  max-width: none;
  height: 2px;
  border: 0;
  margin: 2rem 0;
  background: var(--tactical-red);
}

.wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-system);
  font-size: 0.8rem;
}

.wp-block-table th,
.wp-block-table td {
  border: 1px solid var(--tactical-line);
  padding: 0.65rem;
  text-align: left;
}

.wp-block-code,
pre {
  overflow-x: auto;
  border: 1px solid var(--tactical-line-dark);
  border-left: 3px solid var(--tactical-red);
  padding: 1rem;
  background: var(--tactical-surface);
  font-family: var(--font-system);
  font-size: 0.84rem;
}

.site-footer,
.tactical-footer,
.tp-site-footer {
  width: min(var(--content-max), calc(100% - (var(--shell-x) * 2)));
  margin: 0 auto;
  border-top: 1px solid var(--tactical-line-dark);
  padding: 1rem 0 2rem;
  color: var(--tactical-muted);
  font-family: var(--font-system);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.is-hidden,
[data-filter-hidden="true"] {
  display: none !important;
}

.js .reveal-on-load {
  opacity: 0;
  transform: translateY(8px);
}

.js.is-ready .reveal-on-load,
.is-ready .reveal-on-load {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 160ms linear, transform 160ms linear;
}

@media (max-width: 900px) {

  .site-header,
  .tactical-header,
  .tp-site-header {
    position: sticky;
    top: 0;
    left: auto;
    right: auto;
    width: 100%;
    grid-template-columns: 1fr;
    padding: 10px var(--shell-x);
    background: rgba(235, 235, 235, 0.96);
    border-bottom: 1px solid var(--tactical-line);
  }

  .main-navigation ul,
  .tactical-nav ul,
  .menu,
  .tp-nav {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
    scrollbar-width: thin;
  }

  .main-navigation a,
  .tactical-nav a,
  .menu a,
  .nav-link,
  .tp-nav a {
    white-space: nowrap;
  }

  .system-widget,
  .hud-widget,
  .viewport-status,
  .tp-viewport-status {
    display: none;
  }

  .site-main,
  .tactical-main,
  .tp-main,
  main {
    width: min(100% - 24px, var(--content-max));
    padding-top: clamp(24px, 8vw, 54px);
  }

  .tactical-dashboard,
  .dashboard-grid,
  .content-grid,
  .tp-dashboard__split,
  .tp-project-single__grid {
    grid-template-columns: 1fr;
  }

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

  .project-card__media,
  .project-card .post-thumbnail,
  .project-media,
  .tp-project-card__media,
  .tp-entry__media {
    min-height: clamp(180px, 50vw, 320px);
    order: -1;
  }
}

@media (max-width: 560px) {
  :root {
    --shell-x: 12px;
    --panel-pad: 14px;
  }

  body {
    background-size: 36px 36px, 100% 12px, auto;
  }

  h1,
  .page-title {
    max-width: 10ch;
    font-size: clamp(2.45rem, 18vw, 4.5rem);
  }

  h2,
  .section-title,
  .dashboard-title {
    font-size: clamp(1.65rem, 12vw, 3rem);
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .metric-strip,
  .project-metrics,
  .status-grid {
    grid-template-columns: 1fr 1fr;
  }

  .chip,
  .technology-chip,
  .filter-chip,
  .project-filter,
  .taxonomy-link {
    min-height: 34px;
  }
}

/* Visual direction pass: technical portfolio sheet inspired by the supplied reference. */
:root {
  --content-max: 1320px;
  --tactical-bg: #eeeeed;
  --tactical-surface: rgba(238, 238, 237, 0.72);
  --tactical-surface-strong: #e1e1df;
  --tactical-line: #c9c9c6;
  --tactical-line-dark: #1f1f1f;
}

body {

  background:
    linear-gradient(90deg, transparent calc(50% - 620px), rgba(26, 26, 26, 0.08) calc(50% - 620px) calc(50% - 619px), transparent calc(50% - 619px) calc(50% + 619px), rgba(26, 26, 26, 0.08) calc(50% + 619px) calc(50% + 620px), transparent calc(50% + 620px)),
    radial-gradient(circle at 22px 8px, rgba(26, 26, 26, 0.36) 1px, transparent 1.5px) 0 110px / 100% 20px,
    var(--tactical-bg);
}

body::before {
  opacity: 0.08;
}

.hud-vignette {
  pointer-events: none;
  background: radial-gradient(96% 68%, #fcf9f200 24%, #69595314 58%, #45373294 100%), radial-gradient(140% 95%, #fcf9f200 46%, #45373266 100%);
  position: absolute;
  inset: 0;
  background-attachment: fixed;

}

.frosted {
  background-color: rgba(255, 255, 255, .33);
  backdrop-filter: blur(8px);
}

.tp-site-header {
  top: clamp(22px, 3vw, 42px);
  left: 0;
  right: 0;
  min-height: 78px;
  align-items: start;
  grid-template-columns: minmax(180px, 0.46fr) minmax(0, 1fr);
}

.tp-site-header::before,
.tp-site-header::after,
.tp-shell::before,
.tp-shell::after {
  position: absolute;
  width: 22px;
  height: 22px;
  content: "";
  pointer-events: none;
}


.tp-site-title {
  display: inline-flex;
  gap: 0.34em;
  align-items: baseline;
  font-size: clamp(1.45rem, 2.8vw, 2.25rem);
  letter-spacing: 0;
}

.tp-site-title span {
  color: var(--tactical-red);
  font-style: italic;
}

.tp-site-nav {
  pointer-events: auto;
  min-width: 0;
}

.tp-nav {
  justify-content: flex-end;
}

.tp-nav a {
  min-height: 34px;
  border: 0;
  padding: 0 12px;
  background: transparent;
  color: var(--tactical-text);
  font-size: 0.72rem;
  text-transform: lowercase;
  white-space: nowrap;
}

.tp-nav a::before {
  content: "[";
  margin-right: 0.55em;
}

.tp-nav a::after {
  content: "]";
  margin-left: 0.55em;
}

.tp-nav a:hover,
.tp-nav .current-menu-item>a,
.tp-nav .current_page_item>a,
.tp-nav a.is-active,
.tp-nav a[aria-current="page"] {
  background: var(--tactical-red);
  color: var(--tactical-white);
}

.tp-viewport-status {
  border: 0;
  background: transparent;
  font-size: 0.68rem;
}

.tp-viewport-status--left {
  left: 28px;
  right: auto;
  bottom: 34px;
  text-align: left;
}

.tp-viewport-status--right {
  right: 28px;
  bottom: 34px;
}

.tp-shell {
  position: relative;
  width: min(100% - 112px, 1240px);
  margin: 0 auto;
}

.tp-shell::before {
  bottom: 18px;
  left: -42px;
  border-bottom: 2px solid var(--tactical-text);
  border-left: 2px solid var(--tactical-text);
}

.tp-shell::after {
  right: -42px;
  bottom: 18px;
  border-right: 2px solid var(--tactical-text);
  border-bottom: 2px solid var(--tactical-text);
}

.tp-main {
  width: 100%;
  padding-top: clamp(142px, 15vh, 190px);
}

.tp-section {
  position: relative;
  margin: 0;
  border: 1px solid var(--tactical-line);
  border-top-width: 0;
  background: rgba(238, 238, 237, 0.55);
  box-shadow: none;
}

.tp-section:first-child {
  border-top-width: 1px;
}

.tp-section::before {
  width: 0;
  background: transparent;
}

.tp-section__header {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  border-bottom: 2px solid var(--tactical-red);
  margin-bottom: 28px;
}

.tp-section__header .tp-kicker {
  grid-column: 1 / -1;
}

.tp-section__header h2 {
  margin: 0;
  font-size: clamp(2rem, 4.8vw, 3.8rem);
  letter-spacing: 0;
}

.tp-kicker,
.tp-system {
  color: var(--tactical-text);
  font-size: 0.68rem;
  letter-spacing: 0;
}

.tp-kicker {
  position: relative;
  padding-left: 28px;
}

.tp-kicker::before {
  position: absolute;
  top: 0.38em;
  left: 0;
  width: 6px;
  height: 13px;
  content: "";
  border-left: 3px solid var(--tactical-red);
  border-right: 2px solid var(--tactical-text);
}

.tp-section--hero {
  display: grid;
  min-height: clamp(560px, 72vh, 760px);
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.78fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  padding: clamp(48px, 7vw, 88px) clamp(48px, 7vw, 88px) clamp(100px, 10vw, 132px);
}

.tp-dashboard__intro {
  max-width: 680px;
}

.tp-dashboard__intro h1 {
  max-width: 10ch;
  margin: 0 0 32px;
  font-size: clamp(4.2rem, 9.2vw, 8.6rem);
  letter-spacing: 0;
  line-height: 0.86;
}

.tp-dashboard__intro>p:not(.tp-kicker) {
  position: relative;
  max-width: 360px;
  margin: 0 0 34px 62px;
  font-family: var(--font-system);
  font-size: clamp(0.86rem, 1.2vw, 1.05rem);
  line-height: 1.65;
}

.tp-dashboard__intro>p:not(.tp-kicker)::before {
  position: absolute;
  left: -48px;
  top: 0.55em;
  content: "...";
  color: var(--tactical-red);
  font-family: var(--font-system);
  font-size: 1.4rem;
  font-weight: 700;
}

.tp-enter-link {
  display: inline-flex;
  gap: 18px;
  align-items: center;
  margin: 0 0 44px 62px;
  color: var(--tactical-text);
  font-family: var(--font-system);
  font-size: 0.82rem;
  text-decoration: none;
}

.tp-enter-link span {
  color: var(--tactical-red);
  font-weight: 700;
}

.tp-enter-link::after {
  content: "";
  width: 46px;
  height: 1px;
  background: var(--tactical-text);
  box-shadow: 10px -6px 0 -5px var(--tactical-text), 10px 6px 0 -5px var(--tactical-text);
}

.tp-hero-schematic {
  display: grid;
  grid-template-columns: minmax(220px, 340px) auto;
  gap: 26px;
  align-items: center;
  justify-content: end;
}

.tp-reticle {
  position: relative;
  aspect-ratio: 1;
  border: 1px solid var(--tactical-line);
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), var(--tactical-line) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(0deg, transparent calc(50% - 1px), var(--tactical-line) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px));
}

.tp-reticle::before,
.tp-reticle::after {
  position: absolute;
  inset: -1px;
  content: "";
  background:
    linear-gradient(var(--tactical-text), var(--tactical-text)) left top / 46px 2px no-repeat,
    linear-gradient(var(--tactical-text), var(--tactical-text)) left top / 2px 46px no-repeat,
    linear-gradient(var(--tactical-text), var(--tactical-text)) right top / 46px 2px no-repeat,
    linear-gradient(var(--tactical-text), var(--tactical-text)) right top / 2px 46px no-repeat,
    linear-gradient(var(--tactical-text), var(--tactical-text)) left bottom / 46px 2px no-repeat,
    linear-gradient(var(--tactical-text), var(--tactical-text)) left bottom / 2px 46px no-repeat,
    linear-gradient(var(--tactical-text), var(--tactical-text)) right bottom / 46px 2px no-repeat,
    linear-gradient(var(--tactical-text), var(--tactical-text)) right bottom / 2px 46px no-repeat;
}

.tp-reticle::after {
  inset: 50%;
  width: 22px;
  height: 22px;
  border: 1px solid var(--tactical-line);
  transform: translate(-50%, -50%);
  background: transparent;
}

.tp-hero-schematic ol {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
  color: var(--tactical-muted);
  font-family: var(--font-system);
  font-size: 0.92rem;
  list-style: none;
}

.tp-hero-schematic li:first-child {
  color: var(--tactical-red);
}

.tp-hero-schematic li:first-child::after {
  content: "";
  display: inline-block;
  width: 20px;
  height: 1px;
  margin-left: 16px;
  vertical-align: middle;
  background: var(--tactical-red);
}

.tp-scroll-signal {
  position: absolute;
  left: clamp(42px, 6vw, 88px);
  right: clamp(42px, 6vw, 88px);
  bottom: 34px;
  display: grid;
  grid-template-columns: auto minmax(100px, 1fr) auto;
  gap: 24px;
  align-items: center;
  font-family: var(--font-system);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.tp-scroll-signal i {
  height: 1px;
  background: linear-gradient(90deg, var(--tactical-red) 0 22%, var(--tactical-line) 22% 100%);
}

.tp-section-heading-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: end;
}

.tp-section-heading-row .tp-section__header {
  min-width: 0;
}

.tp-view-all {
  margin-bottom: 30px;
  color: var(--tactical-text);
  font-family: var(--font-system);
  font-size: 0.72rem;
  text-decoration: none;
}

.tp-view-all::after {
  content: "+";
  margin-left: 18px;
  color: var(--tactical-red);
  font-size: 1.5rem;
}

.tp-project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
}

.tp-project-card {
  display: block;
  min-height: 280px;
  grid-template-columns: none;
  border: 1px solid var(--tactical-line);
  border-top-width: 1px;
  background: rgba(225, 225, 223, 0.56);
}

.tp-project-card::before {
  width: 0;
}

.tp-project-card__link {
  display: grid;
  grid-template-columns: minmax(220px, 0.38fr) minmax(0, 0.62fr);
  min-height: inherit;
  width: 100%;
  color: inherit;
  text-decoration: none;
}

.tp-project-card__body {
  position: relative;
  justify-content: center;
  border-left: 72px solid rgba(238, 238, 237, 0.92);
  padding: clamp(24px, 4vw, 48px);
}

.tp-project-card__body::before {
  position: absolute;
  top: 28px;
  left: -48px;
  content: counter(project-card, decimal-leading-zero);
  color: var(--tactical-red);
  font-family: var(--font-system);
  font-size: 0.76rem;
}

.tp-project-grid {
  counter-reset: project-card;
}

.tp-project-card {
  counter-increment: project-card;
}

.tp-project-card h3 {
  max-width: 11ch;
  margin-bottom: 2px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: 0;
}

.tp-project-card p {
  max-width: 34ch;
  font-family: var(--font-system);
  font-size: 0.82rem;
}

.tp-project-card__media {
  min-height: 280px;
  border-left: 1px solid var(--tactical-line);
}

.tp-project-card__media img {
  filter: grayscale(100%) contrast(1.16);
}

.tp-status {
  border: 0;
  min-height: auto;
  padding: 0;
  color: var(--tactical-muted);
  cursor: default;
  gap: 0.35em;
  overflow-wrap: anywhere;
}

.tp-status__dot {
  width: 5px;
  height: 5px;
  margin-right: 7px;
  background: var(--tactical-red);
}

.tp-chip {
  min-height: 28px;
  border: 0;
  color: var(--tactical-red);
}

.tp-chip::before {
  content: "[";
  margin-right: 0.35em;
}

.tp-chip::after {
  content: "]";
  margin-left: 0.35em;
}

.tp-dashboard__split,
.tp-grid {
  margin-top: 0;
}

.tp-timeline__item {
  display: block;
  grid-template-columns: none;
  padding: 0;
}

.tp-timeline__link {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: clamp(12px, 2vw, 22px);
  padding: clamp(18px, 2.4vw, 28px) 0;
  color: inherit;
  text-decoration: none;
}

.tp-timeline__marker {
  width: 10px;
  height: 10px;
  margin-top: 0.45rem;
  border: 1px solid var(--tactical-red);
  background: var(--tactical-bg);
}

.tp-timeline__content {
  min-width: 0;
}

.tp-timeline__content h3 {
  margin-bottom: 0.35rem;
  font-size: clamp(1.3rem, 2.7vw, 2.35rem);
  letter-spacing: 0;
}

.tp-card h2 {
  font-size: clamp(1.35rem, 2.8vw, 2.4rem);
}

.tp-card h2 a {
  text-decoration: none;
}

@media (max-width: 900px) {
  .tp-site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    min-height: 0;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 0;
    align-items: center;
    z-index: 2000;
    padding: 0;
    background: rgba(235, 235, 235, 0.76);
    border: 1px solid rgba(255, 255, 255, 0.52);
    box-shadow: 0 10px 24px rgba(26, 26, 26, 0.12);
    transform: none;
    backdrop-filter: blur(10px);
  }

  .tp-site-header__identity {
    position: static;
    display: flex;
    min-height: 48px;
    align-items: center;
    min-width: 0;
    max-width: 100%;
    padding: 0 14px;
    background: transparent;
    backdrop-filter: none;
  }

  .tp-site-title {
    display: inline-flex;
    max-width: 100%;
    color: var(--tactical-text);
    font-family: var(--font-display);
    font-size: clamp(0.82rem, 3.6vw, 1rem);
    font-style: italic;
    font-weight: 900;
    line-height: 1;
    overflow-wrap: anywhere;
    text-transform: uppercase;
  }

  .tp-site-title span {
    display: none;
  }

  .tp-menu-toggle {
    position: relative;
    display: inline-flex;
    width: 42px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-right: 1px solid rgba(112, 112, 112, 0.24);
    padding: 0;
    background: transparent;
    color: var(--tactical-text);
    cursor: pointer;
    pointer-events: auto;
  }

  .tp-menu-toggle__line {
    position: absolute;
    width: 19px;
    height: 2px;
    background: currentColor;
    transition: transform 180ms ease, opacity 180ms ease, background-color 180ms ease;
  }

  .tp-menu-toggle__line:nth-child(1) {
    transform: translateY(-7px);
  }

  .tp-menu-toggle__line:nth-child(2) {
    background: var(--tactical-red);
  }

  .tp-menu-toggle__line:nth-child(3) {
    transform: translateY(7px);
  }

  .tp-menu-toggle[aria-expanded="true"] .tp-menu-toggle__line:nth-child(1) {
    transform: rotate(45deg);
  }

  .tp-menu-toggle[aria-expanded="true"] .tp-menu-toggle__line:nth-child(2) {
    opacity: 0;
  }

  .tp-menu-toggle[aria-expanded="true"] .tp-menu-toggle__line:nth-child(3) {
    transform: rotate(-45deg);
  }

  .tp-site-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: min(300px, calc(100vw - 40px));
    max-height: calc(100vh - 92px);
    overflow: hidden auto;
    border: 1px solid rgba(255, 255, 255, 0.52);
    background: rgba(235, 235, 235, 0.94);
    box-shadow: 0 18px 32px rgba(26, 26, 26, 0.14);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top left;
    visibility: hidden;
    transition: opacity 180ms ease, transform 180ms ease, visibility 0s linear 180ms;
    backdrop-filter: blur(10px);
  }

  .tp-site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    visibility: visible;
    transition-delay: 0s;
  }

  .tp-site-nav .tp-nav a {
    width: 100%;
    min-height: 42px;
    justify-content: flex-start;
    border-bottom: 1px solid rgba(112, 112, 112, 0.18);
    padding: 0 12px;
    background: transparent;
  }

  .tp-site-nav .tp-nav li:last-child a {
    border-bottom: 0;
  }

  .tp-shell {
    width: min(100% - 24px, 1240px);
  }

  .tp-main {
    padding-top: clamp(88px, 20vw, 120px);
  }

  .tp-section--hero,
  .tp-project-card__link,
  .tp-section-heading-row {
    grid-template-columns: 1fr;
  }

  .tp-section--hero {
    min-height: auto;
    padding: clamp(30px, 7vw, 52px);
  }

  .tp-dashboard__intro h1 {
    font-size: clamp(4rem, 18vw, 7rem);
  }

  .tp-hero-schematic {
    justify-content: stretch;
  }

  .tp-project-card__body {
    border-left-width: 44px;
  }

  .tp-scroll-signal {
    position: static;
    grid-column: 1 / -1;
  }

  .tp-site-nav {
    overflow: hidden auto;
  }

  .tp-nav {
    display: grid;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0;
    padding: 8px;
  }
}

@media (max-width: 680px) {
  .tp-dashboard__intro h1 {
    max-width: 9ch;
    font-size: clamp(3.1rem, 17vw, 5.8rem);
  }

  .tp-dashboard__intro>p:not(.tp-kicker),
  .tp-enter-link {
    margin-left: 0;
  }

  .tp-dashboard__intro>p:not(.tp-kicker)::before {
    display: none;
  }

  .tp-hero-schematic {
    grid-template-columns: minmax(0, 1fr);
  }

  .tp-hero-schematic ol {
    grid-template-columns: repeat(5, auto);
    gap: 12px;
  }

  .tp-section-heading-row {
    align-items: start;
  }

  .tp-view-all {
    margin-bottom: 0;
  }

  .tp-project-card__body {
    border-left-width: 32px;
    padding: 22px;
  }

  .tp-project-card__body::before {
    left: -25px;
  }

  .tp-project-card__media {
    border-left: 0;
    border-top: 1px solid var(--tactical-line);
  }
}
