/* AXERNET — dark late-2000s / early-2010s portfolio skin */

:root {
  --page-bg: #08090b;
  --shell-bg: #111317;
  --panel-bg: #171a1f;
  --panel-alt: #1d2127;
  --text: #e8e8e8;
  --muted: #9ba1aa;
  --line: #343941;
  --line-hot: #ff9d00;
  --orange: #ff9d00;
  --orange-light: #ffc247;
  --red: #d53b25;
  --link: #ffb21c;
  --black: #050505;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--page-bg);
}

body {
  position: relative;
  margin: 0;
  min-height: 100%;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 119, 0, .16), transparent 32rem),
    radial-gradient(circle at 82% 18%, rgba(142, 15, 15, .14), transparent 28rem),
    repeating-linear-gradient(
      135deg,
      rgba(255,255,255,.018) 0,
      rgba(255,255,255,.018) 1px,
      transparent 1px,
      transparent 5px
    ),
    #08090b;
  font: 13px/1.58 Tahoma, Verdana, Arial, sans-serif;
}

body::before {
  content: "";
  position: absolute;
  inset: 26px 0 auto;
  height: 6px;
  z-index: 20;
  background:
    repeating-linear-gradient(
      135deg,
      var(--orange) 0,
      var(--orange) 18px,
      #111 18px,
      #111 36px
    );
  box-shadow: 0 2px 10px rgba(0,0,0,.9);
}

a {
  color: var(--link);
}

a:hover {
  color: var(--orange-light);
}

.site-shell {
  width: min(1020px, calc(100% - 28px));
  margin: 34px auto 24px;
  overflow: hidden;
  background: var(--shell-bg);
  border: 1px solid #3b3f46;
  box-shadow:
    0 0 0 1px #000,
    0 0 0 4px rgba(255,157,0,.08),
    0 18px 45px rgba(0,0,0,.72);
}

.site-header {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding: 20px 20px 0;
  background:
    linear-gradient(rgba(255,255,255,.045), transparent 38%),
    linear-gradient(#272b31, #0c0e11);
  border-bottom: 1px solid #000;
  box-shadow: inset 0 -1px 0 #3b3f44;
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 4px;
  background: linear-gradient(90deg, var(--orange), var(--red) 58%, #4c0d0d);
}

.brand {
  padding-bottom: 16px;
}

.brand-title {
  display: inline-block;
  color: #f3f3f3;
  text-decoration: none;
  letter-spacing: .14em;
  font: 900 30px/1 "Arial Black", Impact, "Trebuchet MS", sans-serif;
  text-shadow:
    0 2px 0 #000,
    0 0 12px rgba(255,157,0,.28);
  transform: skewX(-4deg);
}

.brand-title::first-letter {
  color: var(--orange);
}

.brand-title:hover {
  color: #fff;
  text-shadow:
    0 2px 0 #000,
    0 0 16px rgba(255,157,0,.7);
}

.brand-subtitle {
  display: block;
  margin-top: 7px;
  color: #969ca5;
  font: 11px/1.25 "Courier New", monospace;
  letter-spacing: .035em;
}

.main-nav {
  display: flex;
  align-items: flex-end;
  gap: 5px;
}

.main-nav a {
  position: relative;
  min-width: 118px;
  padding: 11px 15px 10px;
  color: #cfd2d6;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .04em;
  font: 700 11px/1 Tahoma, Verdana, sans-serif;
  border: 1px solid #454a51;
  border-bottom: 0;
  background:
    linear-gradient(rgba(255,255,255,.08), transparent 45%),
    linear-gradient(#30343a, #181a1e);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.12),
    0 -1px 0 #000;
}

.main-nav a:hover {
  color: #fff;
  border-color: #777;
  background:
    linear-gradient(rgba(255,255,255,.11), transparent 45%),
    linear-gradient(#3b4047, #202329);
}

.main-nav a.active {
  color: #130e03;
  border-color: #ffbb37;
  background:
    linear-gradient(rgba(255,255,255,.38), transparent 42%),
    linear-gradient(#ffc24a, #e77d00);
  text-shadow: 0 1px 0 rgba(255,255,255,.5);
  box-shadow:
    inset 0 1px 0 #ffe2a2,
    0 0 14px rgba(255,157,0,.22);
}

main {
  padding: 24px;
}

.page-title {
  position: relative;
  margin-bottom: 22px;
  padding: 18px 20px 20px;
  overflow: hidden;
  border: 1px solid #343941;
  background:
    linear-gradient(120deg, rgba(255,157,0,.12), transparent 36%),
    linear-gradient(#1d2025, #121418);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.05),
    0 3px 12px rgba(0,0,0,.3);
}

.page-title::before {
  content: "";
  position: absolute;
  top: -52px;
  right: -28px;
  width: 190px;
  height: 120px;
  border: 22px solid rgba(255,157,0,.055);
  transform: rotate(-14deg);
}

.page-title::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--red), transparent 85%);
}

.eyebrow {
  position: relative;
  z-index: 1;
  color: var(--orange);
  font: 700 11px/1.2 "Courier New", monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
}

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

h1 {
  position: relative;
  z-index: 1;
  margin: 5px 0 6px;
  color: #f4f4f4;
  text-transform: uppercase;
  letter-spacing: -.025em;
  font: 900 32px/1 "Arial Black", Impact, "Trebuchet MS", sans-serif;
  text-shadow: 0 2px 0 #000;
}

h2 {
  margin-bottom: 7px;
  color: #f1f1f1;
  font: 800 20px/1.18 "Trebuchet MS", Tahoma, sans-serif;
}

h3 {
  margin-top: 24px;
  margin-bottom: 8px;
  color: var(--orange-light);
  text-transform: uppercase;
  letter-spacing: .055em;
  font-size: 12px;
}

.page-title p {
  position: relative;
  z-index: 1;
  margin-bottom: 0;
  color: #b6bbc2;
}

.project {
  position: relative;
  display: grid;
  grid-template-columns: minmax(230px, .8fr) minmax(360px, 1.2fr);
  gap: 20px;
  margin-bottom: 22px;
  padding: 17px;
  border: 1px solid #353a42;
  border-top: 3px solid #555b64;
  background:
    linear-gradient(135deg, rgba(255,255,255,.025), transparent 42%),
    var(--panel-bg);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.035),
    0 5px 15px rgba(0,0,0,.32);
}

.project::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 0;
  width: 110px;
  height: 3px;
  background: var(--orange);
  box-shadow: 75px 0 18px rgba(255,157,0,.24);
}

.project.featured {
  border-color: #4a4640;
  border-top-color: var(--orange);
  background:
    linear-gradient(115deg, rgba(255,157,0,.09), transparent 32%),
    linear-gradient(#1c1d20, #14161a);
}

.project-copy {
  align-self: center;
}

.project-number {
  margin-bottom: 5px;
  color: var(--orange);
  font: 700 12px/1 "Courier New", monospace;
}

.meta {
  margin-bottom: 14px;
  color: #8f959e;
  font: 700 10px/1.4 "Courier New", monospace;
  text-transform: uppercase;
  letter-spacing: .055em;
}

.project p,
.panel p {
  color: #c4c7cc;
}

.file-note {
  margin-top: 16px;
  color: #777e87 !important;
  font-size: 11px;
}

code {
  padding: 2px 5px;
  color: #d6d8dc;
  border: 1px solid #353b43;
  background: #0c0e11;
  font-family: "Courier New", monospace;
}

.image-frame {
  position: relative;
  display: grid;
  min-height: 230px;
  place-items: center;
  overflow: hidden;
  color: #9ca2aa;
  text-align: center;
  text-decoration: none;
  border: 1px solid #454b54;
  background:
    linear-gradient(45deg, #1d2025 25%, transparent 25%),
    linear-gradient(-45deg, #1d2025 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #1d2025 75%),
    linear-gradient(-45deg, transparent 75%, #1d2025 75%),
    #13161a;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
  background-size: 20px 20px;
  box-shadow:
    inset 0 0 0 4px rgba(0,0,0,.32),
    inset 0 0 45px rgba(0,0,0,.42);
}

.image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255,255,255,.05), transparent 24%),
    linear-gradient(0deg, rgba(255,157,0,.08), transparent 30%);
  opacity: .7;
}

.image-frame span {
  position: relative;
  z-index: 1;
  padding: 7px 10px;
  color: #aeb3bb;
  border: 1px solid #4a4f57;
  background: rgba(7,8,10,.82);
  font: 11px/1.3 "Courier New", monospace;
}

.image-frame:hover {
  color: #fff;
  border-color: var(--orange);
  box-shadow:
    inset 0 0 0 4px rgba(0,0,0,.35),
    inset 0 0 55px rgba(255,157,0,.1),
    0 0 14px rgba(255,157,0,.22);
}

.image-frame:hover span {
  color: #fff;
  border-color: var(--orange);
}

.image-frame.large {
  min-height: 330px;
}

.image-frame img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
}

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

.project-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #353a42;
  border-top: 3px solid #555b64;
  background: var(--panel-bg);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.035),
    0 5px 15px rgba(0,0,0,.32);
}

.project-card::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: -3px;
  left: 0;
  width: 74px;
  height: 3px;
  background: var(--orange);
}

.project-card .image-frame {
  min-height: 250px;
  border: 0;
  border-bottom: 1px solid #3e444d;
}

.card-copy {
  padding: 15px;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 18px;
}

.panel {
  position: relative;
  padding: 19px;
  border: 1px solid #353a42;
  border-top: 3px solid #555b64;
  background:
    linear-gradient(135deg, rgba(255,255,255,.025), transparent 42%),
    var(--panel-bg);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.035),
    0 5px 15px rgba(0,0,0,.3);
}

.panel::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 0;
  width: 78px;
  height: 3px;
  background: var(--orange);
}

.panel.compact {
  margin-bottom: 16px;
  padding: 15px;
}

.plain-list {
  margin: 0;
  padding-left: 18px;
  color: #c4c7cc;
}

.plain-list li::marker {
  color: var(--orange);
}

.contact a {
  word-break: break-word;
}

.site-footer {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 18px;
  color: #a8adb4;
  background:
    linear-gradient(rgba(255,255,255,.03), transparent 42%),
    #070809;
  border-top: 1px solid #353a42;
  font: 11px/1.4 "Courier New", monospace;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  right: 0;
  height: 4px;
  background:
    repeating-linear-gradient(
      135deg,
      var(--orange) 0,
      var(--orange) 14px,
      #151515 14px,
      #151515 28px
    );
}

.status {
  color: #d5e88a;
  text-transform: uppercase;
}

::selection {
  color: #080808;
  background: var(--orange);
}


/* Photography series */

.photo-project {
  position: relative;
  margin-bottom: 22px;
  padding: 17px;
  border: 1px solid #353a42;
  border-top: 3px solid var(--orange);
  background:
    linear-gradient(115deg, rgba(255,157,0,.075), transparent 28%),
    linear-gradient(#1c1d20, #14161a);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.035),
    0 5px 15px rgba(0,0,0,.32);
}

.photo-project::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 0;
  width: 122px;
  height: 3px;
  background: var(--orange);
  box-shadow: 85px 0 18px rgba(255,157,0,.24);
}

.photo-project-head {
  display: grid;
  grid-template-columns: minmax(230px, .7fr) minmax(320px, 1.3fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 16px;
}

.photo-project-head > p {
  margin-bottom: 2px;
  color: #c4c7cc;
}

.photo-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.photo-frame {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid #454b54;
  background: #090a0c;
  box-shadow:
    inset 0 0 0 4px rgba(0,0,0,.32),
    0 4px 12px rgba(0,0,0,.32);
}

.photo-frame a {
  display: block;
  overflow: hidden;
  background: #090a0c;
}

.photo-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(.88) contrast(1.04);
  transition: transform .16s ease, filter .16s ease;
}

.photo-frame:hover {
  border-color: var(--orange);
  box-shadow:
    inset 0 0 0 4px rgba(0,0,0,.32),
    0 0 15px rgba(255,157,0,.2);
}

.photo-frame:hover img {
  transform: scale(1.012);
  filter: saturate(1) contrast(1.06);
}

.photo-frame figcaption {
  padding: 8px 10px;
  color: #b7bbc1;
  border-top: 1px solid #353a42;
  background:
    linear-gradient(rgba(255,255,255,.035), transparent),
    #0d0f12;
  font: 11px/1.3 "Courier New", monospace;
  text-transform: uppercase;
  letter-spacing: .055em;
}


@media (max-width: 720px) {
  body::before {
    height: 4px;
  }

  .site-shell {
    width: min(100% - 10px, 1020px);
    margin: 12px auto 8px;
  }

  .site-header {
    display: block;
    padding-right: 10px;
    padding-left: 10px;
  }

  .brand-title {
    font-size: 27px;
  }

  .main-nav {
    width: 100%;
  }

  .main-nav a {
    flex: 1;
    min-width: 0;
  }

  main {
    padding: 12px;
  }

  .project,
  .about-layout,
  .photo-project-head {
    grid-template-columns: 1fr;
  }

  .photo-pair {
    grid-template-columns: 1fr;
  }

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

  .image-frame.large {
    min-height: 240px;
  }

  .site-footer {
    display: block;
  }

  .status {
    display: block;
    margin-top: 4px;
  }
}


/* FINAL PHOTO LAYOUT OVERRIDE
   Keep both photographs side by side on desktop/tablet.
   The earlier 720px mobile rule was stacking them too aggressively. */

.photo-pair {
  display: flex !important;
  align-items: stretch;
  gap: 14px;
}

.photo-frame {
  flex: 1 1 0;
  min-width: 0;
}

.photo-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

@media (max-width: 520px) {
  .photo-pair {
    display: block !important;
  }

  .photo-frame + .photo-frame {
    margin-top: 14px;
  }
}


/* Honey mock-up: fill the frame like the photography cards. */

.honey-frame {
  display: block;
  min-height: 0;
  aspect-ratio: 4 / 3;
}

.honey-frame::after {
  z-index: 2;
}

.honey-frame img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* About-page GIF. Kept close to its native size to preserve the rough video look. */

.about-gif {
  float: right;
  width: min(320px, 46%);
  margin: 0 0 16px 20px;
  padding: 5px;
  border: 1px solid #454b54;
  border-top: 3px solid var(--orange);
  background: #090a0c;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.03),
    0 5px 15px rgba(0,0,0,.35);
}

.about-gif img {
  display: block;
  width: 100%;
  height: auto;
}

.about-main::after {
  content: "";
  display: block;
  clear: both;
}

@media (max-width: 720px) {
  .about-gif {
    float: none;
    width: 100%;
    max-width: 320px;
    margin: 0 auto 16px;
  }
}


/* Project links */

.project-title-link {
  color: inherit;
  text-decoration: none;
}

.project-title-link:hover {
  color: var(--orange-light);
}

.project-link {
  display: inline-block;
  margin-top: 4px;
  color: var(--orange);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .055em;
  font: 700 10px/1.3 "Courier New", monospace;
}

.project-link:hover {
  color: #fff;
}


/* Honey project detail page */

.back-link {
  margin: -8px 0 18px;
  font: 700 11px/1.3 "Courier New", monospace;
}

.back-link a {
  text-decoration: none;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(420px, 1.35fr) minmax(260px, .65fr);
  gap: 20px;
  margin-bottom: 22px;
  padding: 17px;
  border: 1px solid #353a42;
  border-top: 3px solid var(--orange);
  background:
    linear-gradient(115deg, rgba(255,157,0,.075), transparent 28%),
    linear-gradient(#1c1d20, #14161a);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.035),
    0 5px 15px rgba(0,0,0,.32);
}

.detail-hero-image {
  display: block;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #454b54;
  background: #090a0c;
}

.detail-hero-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
}

.detail-summary {
  align-self: center;
}

.project-facts {
  margin: 20px 0 0;
}

.project-facts > div {
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid #343941;
}

.project-facts dt {
  color: var(--orange);
  text-transform: uppercase;
  font: 700 10px/1.4 "Courier New", monospace;
}

.project-facts dd {
  margin: 0;
  color: #c4c7cc;
}

.detail-section {
  position: relative;
  margin-bottom: 22px;
  padding: 17px;
  border: 1px solid #353a42;
  border-top: 3px solid #555b64;
  background:
    linear-gradient(135deg, rgba(255,255,255,.025), transparent 42%),
    var(--panel-bg);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.035),
    0 5px 15px rgba(0,0,0,.32);
}

.detail-section::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 0;
  width: 110px;
  height: 3px;
  background: var(--orange);
}

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

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

.mockup-placeholder,
.wide-placeholder {
  display: grid;
  min-height: 270px;
  place-content: center;
  gap: 7px;
  padding: 20px;
  text-align: center;
  border: 1px solid #454b54;
  background:
    linear-gradient(45deg, #1d2025 25%, transparent 25%),
    linear-gradient(-45deg, #1d2025 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #1d2025 75%),
    linear-gradient(-45deg, transparent 75%, #1d2025 75%),
    #13161a;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
  background-size: 20px 20px;
  box-shadow: inset 0 0 45px rgba(0,0,0,.42);
}

.mockup-placeholder span,
.wide-placeholder span {
  color: #d6d8dc;
  font: 700 12px/1.4 "Courier New", monospace;
  text-transform: uppercase;
}

.mockup-placeholder small,
.wide-placeholder small {
  color: #777e87;
  font-family: "Courier New", monospace;
}

.wide-placeholder {
  min-height: 360px;
}

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

.process-card {
  padding: 16px;
  border: 1px solid #353a42;
  background: #101216;
}

.process-card strong {
  color: var(--orange-light);
  font: 700 11px/1.4 "Courier New", monospace;
  text-transform: uppercase;
}

.process-card p {
  margin: 9px 0 0;
  color: #b9bdc3;
}

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

  .detail-hero-image img {
    min-height: 0;
    height: auto;
  }

  .mockup-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }
}


/* Header utility controls */

.header-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}

.utility-controls {
  display: flex;
  gap: 5px;
}

.utility-button {
  min-width: 54px;
  padding: 5px 9px;
  color: #bfc4ca;
  border: 1px solid #454a51;
  background:
    linear-gradient(rgba(255,255,255,.07), transparent 45%),
    linear-gradient(#2b2f35, #15171b);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1);
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .06em;
  font: 700 9px/1 Tahoma, Verdana, sans-serif;
  cursor: pointer;
}

.utility-button:hover {
  color: #fff;
  border-color: var(--orange);
}

.mockup-image {
  margin: 0;
  overflow: hidden;
  border: 1px solid #454b54;
  background: #090a0c;
}

.mockup-image img {
  display: block;
  width: 100%;
  height: 270px;
  object-fit: cover;
}

.mockup-image figcaption {
  padding: 8px 10px;
  color: #b7bbc1;
  border-top: 1px solid #353a42;
  background: #0d0f12;
  font: 11px/1.3 "Courier New", monospace;
  text-transform: uppercase;
}

@media (max-width: 720px) {
  .header-actions {
    width: 100%;
  }

  .utility-controls {
    align-self: flex-end;
    margin-bottom: 4px;
  }
}


/* Top-right text controls */

.site-tools {
  position: absolute;
  top: 7px;
  left: calc(50% + 530px);
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font: 700 10px/1 "Courier New", monospace;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.site-tool-link {
  color: #8e949c;
  text-decoration: none;
  text-shadow: 0 1px 0 #000;
}

.site-tool-link:hover {
  color: var(--orange);
}

.site-tool-divider {
  color: #4e535a;
}

/* picture must behave like the image it contains */
picture {
  display: contents;
}

@media (max-width: 1400px) {
  .site-tools {
    left: auto;
    right: 18px;
  }
}

@media (max-width: 720px) {
  .site-shell {
    margin-top: 34px;
  }

  .site-tools {
    right: 10px;
    font-size: 9px;
  }
}


/* In-page image viewer */

body.lightbox-open {
  overflow: hidden;
}

.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(0, 0, 0, .88);
  backdrop-filter: blur(3px);
}

.lightbox-dialog {
  position: relative;
  width: min(1200px, 96vw);
  max-height: 92vh;
  padding: 12px;
  overflow: auto;
  border: 1px solid #555b64;
  background: #0b0d10;
  box-shadow:
    0 0 0 1px #000,
    0 18px 55px rgba(0,0,0,.8);
}

.lightbox-image {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 80vh;
  margin: 0 auto;
}

.lightbox-caption {
  margin: 10px 36px 0 4px;
  color: #b7bbc1;
  font: 11px/1.4 "Courier New", monospace;
  text-transform: uppercase;
  letter-spacing: .055em;
}

.lightbox-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 34px;
  height: 34px;
  padding: 0;
  color: #fff;
  border: 1px solid #666;
  background: rgba(5,5,5,.88);
  font: 22px/1 Arial, sans-serif;
  cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
  color: #090909;
  border-color: var(--orange, #ff9d00);
  background: var(--orange, #ff9d00);
  outline: none;
}

.illustration-frame {
  display: block;
  min-height: 0;
  aspect-ratio: 16 / 10;
}

.illustration-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 600px) {
  .lightbox {
    padding: 8px;
  }

  .lightbox-dialog {
    width: 100%;
    padding: 8px;
  }

  .lightbox-image {
    max-height: 84vh;
  }
}


/* Remove the top hazard stripe. */
body::before {
  display: none !important;
}

/* Deliberately broken footer link. */
.dead-link {
  color: #747a82;
  text-decoration: none;
  font-family: "Courier New", monospace;
  text-transform: lowercase;
}

.dead-link:hover {
  color: var(--orange);
}

/* Custom 404 page. */
.error-shell {
  margin-top: 34px;
}

.error-main {
  padding: 24px;
}

.error-panel {
  display: grid;
  grid-template-columns: minmax(260px, .65fr) minmax(420px, 1.35fr);
  gap: 20px;
  padding: 17px;
  border: 1px solid #353a42;
  border-top: 3px solid var(--orange);
  background:
    linear-gradient(115deg, rgba(255,157,0,.075), transparent 28%),
    linear-gradient(#1c1d20, #14161a);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.035),
    0 5px 15px rgba(0,0,0,.32);
}

.error-copy {
  align-self: center;
}

.error-title {
  margin-top: 7px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.02;
}

.error-text {
  color: #b7bbc1;
}

.error-image-frame {
  margin: 0;
  overflow: hidden;
  border: 1px solid #454b54;
  background: #090a0c;
}

.error-image-frame img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
}

@media (max-width: 760px) {
  .error-panel {
    grid-template-columns: 1fr;
  }

  .error-image-frame img {
    min-height: 0;
    height: auto;
  }
}


/* 404 layout revision: title, image, explanation, return link. */

.error-panel {
  display: block !important;
  padding: 17px;
}

.error-copy {
  margin-bottom: 18px;
}

.error-image-frame {
  display: block;
  width: 100%;
  margin: 0 0 18px;
  overflow: hidden;
}

.error-image-frame picture {
  display: block;
}

.error-image-frame img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto !important;
  min-height: 0 !important;
  max-height: 620px;
  object-fit: contain;
}

.error-explanation {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.error-text {
  max-width: 78ch;
  margin-bottom: 18px;
}

.error-return {
  margin-top: 0;
}


/* Remove the obsolete top pseudo-element and its reserved gap. */
body::before {
  content: none !important;
  display: none !important;
}

.error-shell {
  margin-top: 0 !important;
}

.error-image-frame img {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  object-fit: contain !important;
}


/* v7: remove the obsolete hazard pseudo-element. */
body::before {
  content: none !important;
  display: none !important;
}

/* v7: stable top-right text controls. */
.site-tools {
  left: auto !important;
  right: 18px !important;
  transform: none !important;
}

/* v7: exactly one theme-dependent logo. */
.brand-logo {
  display: inline-block !important;
  width: auto !important;
  line-height: 0 !important;
  text-decoration: none !important;
}

.brand-logo-picture {
  display: block !important;
  width: auto !important;
}

.brand-logo-source {
  display: none;
}

.brand-logo-image {
  display: block !important;
  width: auto !important;
  height: 46px !important;
  max-width: 230px !important;
  object-fit: contain !important;
}

@media (max-width: 720px) {
  .site-tools {
    right: 10px !important;
  }

  .brand-logo-image {
    height: 38px !important;
    max-width: 190px !important;
  }
}


/* v9: exactly one PNG logo, constrained to the header. */

.brand-logo {
  display: inline-block !important;
  width: 220px !important;
  max-width: 52vw !important;
  height: 58px !important;
  overflow: hidden !important;
  line-height: 0 !important;
  text-decoration: none !important;
  transform: none !important;
}

.brand-logo-image {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 220px !important;
  max-height: 58px !important;
  object-fit: contain !important;
  object-position: left center !important;
}

.brand-logo::first-letter {
  color: inherit !important;
}

@media (max-width: 720px) {
  .brand-logo {
    width: 180px !important;
    height: 48px !important;
  }

  .brand-logo-image {
    max-width: 180px !important;
    max-height: 48px !important;
  }
}
