:root {
  color-scheme: dark;
  --ink: #0e0e0e;
  --paper: #111111;
  --white: #eeeae0;
  --orange: #f19a19;
  --muted: #99958c;
  --line: rgba(238, 234, 224, 0.16);
  color: var(--white);
  background: var(--paper);
  font-family: "DM Sans", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
html { width: 100%; overflow-x: hidden; }

body {
  display: grid;
  width: 100%;
  max-width: 100vw;
  min-width: 0;
  min-height: 100svh;
  margin: 0;
  grid-template-rows: auto 1fr auto;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px),
    var(--paper);
  background-size: 42px 42px;
}

a { color: inherit; }

header {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: 104px;
  padding: 8px clamp(24px, 5vw, 82px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: rgba(17,17,17,0.72);
  backdrop-filter: blur(10px);
}

.brand {
  display: grid;
  place-items: center;
  width: 78px;
  height: 84px;
}

.brand img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.option-ghost .brand img {
  opacity: 0.85;
  filter: contrast(0.95) saturate(0.95);
}

.option-ghost .brand {
  width: 178px;
  height: 58px;
}

header p,
header > a:last-child,
footer {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

header p { margin: 0; color: var(--muted); }
header > a:last-child { justify-self: end; text-decoration: none; }
header > a:last-child span { padding-left: 8px; color: var(--orange); font-size: 14px; }

main {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1.45fr 0.55fr;
  width: 100%;
  min-width: 0;
  min-height: calc(100svh - 162px);
  overflow: hidden;
}

.masthead {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: clamp(52px, 7vw, 110px) clamp(24px, 6vw, 100px) clamp(60px, 8vw, 125px);
  border-right: 1px solid var(--line);
}

.option-ghost .masthead,
.option-ghost .message {
  justify-content: flex-end;
}

.option-ghost h1 {
  margin-top: 0;
}

.issue {
  display: flex;
  justify-content: space-between;
  max-width: 380px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.issue b { color: var(--orange); font-weight: 600; }

h1 {
  position: relative;
  z-index: 2;
  margin: clamp(80px, 12vh, 150px) 0 0;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(72px, 10.5vw, 178px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.77;
  text-transform: uppercase;
}

h1 em { color: var(--orange); font-weight: 600; }

.message {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 80px;
  min-width: 0;
  padding: clamp(52px, 7vw, 110px) clamp(24px, 4vw, 68px) clamp(60px, 8vw, 125px);
}

.message-label {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.message-label i { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }

.message-copy p {
  margin: 0 0 24px;
  color: #b5b1a9;
  font-size: clamp(14px, 1.2vw, 18px);
  line-height: 1.75;
}

.message-copy a {
  display: flex;
  justify-content: space-between;
  margin-top: 48px;
  padding: 18px 0;
  border-top: 1px solid var(--white);
  border-bottom: 1px solid var(--white);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
  transition: padding 160ms ease, color 160ms ease;
}

.message-copy a:hover { padding-left: 9px; color: var(--orange); }
.message-copy a span { font-size: 15px; }

.detail {
  position: absolute;
  z-index: 6;
  right: 42%;
  bottom: 6%;
  display: grid;
  grid-template-columns: repeat(3, 12px);
  gap: 8px;
  transform: rotate(-8deg);
  opacity: 0.32;
}

.detail span { width: 12px; height: 12px; border: 1px solid var(--orange); border-radius: 50%; }

.atmosphere,
.trace,
.glow { position: absolute; z-index: 1; pointer-events: none; }

.atmosphere img { display: block; width: 100%; height: 100%; object-fit: contain; }

.trace i {
  position: absolute;
  width: 8px;
  height: 8px;
  border: 1px solid var(--orange);
  border-radius: 50%;
  background: var(--paper);
}

/* Contour — canonical Hooton's atmosphere: simplified line owl, orange fade. */
.design-contour .atmosphere {
  left: 39%;
  bottom: 7%;
  width: min(42vw, 660px);
  aspect-ratio: 1.42;
  opacity: 1;
  transform: translateX(-50%) rotate(-2deg);
  filter: none;
}

.design-contour .owl-mark {
  opacity: 0.23;
  filter: brightness(0) saturate(100%) invert(64%) sepia(93%) saturate(1572%) hue-rotate(349deg) brightness(102%) contrast(90%);
  -webkit-mask-image: linear-gradient(
    112deg,
    transparent 5%,
    rgba(0, 0, 0, 0.3) 30%,
    #000 57%,
    rgba(0, 0, 0, 0.27) 82%,
    transparent 100%
  );
  mask-image: linear-gradient(
    112deg,
    transparent 5%,
    rgba(0, 0, 0, 0.3) 30%,
    #000 57%,
    rgba(0, 0, 0, 0.27) 82%,
    transparent 100%
  );
}

.option-ghost .trace {
  left: 47%;
  top: 18%;
  width: 27%;
  height: 25%;
  border-top: 1px solid rgba(241,154,25,0.28);
  border-right: 1px solid rgba(241,154,25,0.28);
}

.option-ghost .trace i:nth-child(1) { left: -4px; top: -4px; }
.option-ghost .trace i:nth-child(2) { right: -4px; top: 58%; }
.option-ghost .trace i:nth-child(3) { right: -4px; bottom: -4px; }
.option-ghost .trace i:nth-child(4) { display: none; }

/* B — the split becomes a fine signal rail; the mark sits behind the note. */
.option-rail .atmosphere {
  top: 18%;
  right: -9%;
  width: min(35vw, 540px);
  aspect-ratio: 1;
  opacity: 0.07;
  filter: grayscale(0.25) contrast(1.1);
}

.option-rail .trace {
  left: calc(72.5% - 1px);
  top: 9%;
  width: 10%;
  height: 77%;
  border-left: 1px solid rgba(241,154,25,0.48);
  border-top: 1px solid rgba(241,154,25,0.48);
  border-bottom: 1px solid rgba(241,154,25,0.48);
}

.option-rail .trace i:nth-child(1) { left: -4px; top: -4px; }
.option-rail .trace i:nth-child(2) { left: -4px; top: 46%; }
.option-rail .trace i:nth-child(3) { left: -4px; bottom: -4px; }
.option-rail .trace i:nth-child(4) { right: -4px; bottom: -4px; }

/* C — After Dark atmosphere, kept behind the Workshop Note structure. */
.option-ember .atmosphere {
  right: 8%;
  bottom: -16%;
  width: min(47vw, 720px);
  aspect-ratio: 1;
  opacity: 0.065;
  transform: rotate(4deg);
  filter: grayscale(0.2) contrast(1.15);
}

.option-ember .glow {
  right: 12%;
  bottom: -20%;
  width: min(42vw, 650px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--orange);
  opacity: 0.075;
  filter: blur(100px);
}

.option-ember .trace {
  right: 8%;
  top: 12%;
  width: 44%;
  height: 65%;
  border-top: 1px solid rgba(241,154,25,0.32);
  border-right: 1px solid rgba(241,154,25,0.32);
  border-bottom: 1px solid rgba(241,154,25,0.32);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 24% 100%, 24% 70%, 0 70%);
}

.option-ember .trace i:nth-child(1) { left: -4px; top: -4px; }
.option-ember .trace i:nth-child(2) { right: -4px; top: 43%; }
.option-ember .trace i:nth-child(3) { left: 24%; bottom: -4px; }
.option-ember .trace i:nth-child(4) { left: -4px; top: 69%; }

footer {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: 58px;
  padding: 0 clamp(24px, 5vw, 82px);
  overflow: hidden;
  border-top: 1px solid var(--line);
  color: #66635d;
  background: rgba(17,17,17,0.88);
}

footer p { margin: 0; }
footer p:nth-child(2) { justify-self: center; }
footer p:last-child { justify-self: end; color: var(--orange); }

@media (max-width: 850px) {
  header { grid-template-columns: 1fr auto; min-height: 94px; }
  header p { display: none; }
  .brand { width: 70px; height: 76px; }
  .option-ghost .brand { width: 150px; height: 50px; }
  main { grid-template-columns: 1fr; }
  .masthead { min-height: 66svh; border-right: 0; border-bottom: 1px solid var(--line); }
  h1 { font-size: clamp(76px, 20vw, 140px); }
  .message { gap: 90px; }
  .detail { right: 10%; bottom: 42%; }
  .design-contour .atmosphere { left: 72%; bottom: auto; width: 86vw; }
  .option-rail .atmosphere { top: auto; bottom: 5%; right: -24%; width: 78vw; }
  .option-rail .trace { left: 8%; top: 50%; width: 76%; height: 40%; }
  .option-ember .atmosphere { right: -25%; bottom: 1%; width: 88vw; }
  .option-ember .glow { right: -20%; bottom: 0; width: 90vw; }
  .option-ember .trace { right: -15%; top: 12%; width: 78%; height: 45%; }
}

@media (max-width: 520px) {
  body {
    background:
      linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px),
      var(--paper);
    background-size: 42px 42px;
  }

  .option-ghost .masthead {
    justify-content: flex-start;
    min-height: 350px;
    padding-top: clamp(72px, 11svh, 96px);
    padding-bottom: 32px;
  }

  .option-ghost .brand img {
    opacity: 0.95;
    filter: contrast(0.98) saturate(0.98);
  }

  .option-ghost h1 {
    margin: 0;
    font-size: clamp(46px, 15vw, 68px);
    line-height: 0.82;
  }

  .design-contour .atmosphere {
    top: 92px;
    bottom: auto;
    left: 71%;
    width: 91vw;
  }

  .design-contour .owl-mark {
    opacity: 0.26;
  }

  .option-ghost .trace {
    top: 38px;
    left: 48%;
    width: 46%;
    height: 250px;
    border-top-color: rgba(241,154,25,0.4);
    border-right-color: rgba(241,154,25,0.4);
  }

  .option-ghost .trace i {
    width: 7px;
    height: 7px;
    border-color: var(--orange);
  }

  .detail {
    top: 285px;
    right: 9%;
    bottom: auto;
    opacity: 0.38;
  }

  .message { padding-top: 24px; }

  footer { grid-template-columns: 1fr; }
  footer p:not(:last-child) { display: none; }
  footer p:last-child { justify-self: center; }
}
