:root {
  --paper: #f2eee4;
  --cream: #fbf8f0;
  --ink: #141411;
  --muted: #6f695f;
  --line: rgba(20, 20, 17, .25);
  --line-strong: rgba(20, 20, 17, .72);
  --hot: #ed4d31;
  --accent-text: #b43322;
  --hero-point: #d7dfd1;
  --signal: #fff0bd;
  --signal-core: #fffdf0;
  --signal-line: rgba(255, 249, 224, .98);
  --signal-core-width: 5px;
  --fiber-track: rgba(88, 55, 8, .28);
  --fiber-core: #fffef3;
  --fiber-warm: #ffd46d;
  --fiber-hot: #ffae31;
  --signal-shadow: 0 0 2px #fff, 0 0 8px rgba(255, 202, 83, .96), 0 0 24px rgba(255, 171, 45, .74), 0 0 44px rgba(255, 171, 45, .32);
  --cut: 10px;
  --hex-cut: 16px;
  --hex-frame: polygon(var(--hex-cut) 0, calc(100% - var(--hex-cut)) 0, 100% var(--hex-cut), 100% calc(100% - var(--hex-cut)), calc(100% - var(--hex-cut)) 100%, var(--hex-cut) 100%, 0 calc(100% - var(--hex-cut)), 0 var(--hex-cut));
}

html {
  background: var(--paper);
  overflow-x: hidden;
}

body {
  position: relative;
  min-width: 320px;
  isolation: isolate;
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, .42), transparent 28%),
    radial-gradient(circle at 83% 46%, rgba(109, 91, 64, .055) 0 1px, transparent 1.4px),
    radial-gradient(circle at 37% 72%, rgba(109, 91, 64, .045) 0 .8px, transparent 1.2px);
  background-size: auto, 7px 7px, 11px 11px;
}

body::before {
  content: "";
  position: fixed;
  z-index: 1000;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  background-image:
    repeating-linear-gradient(92deg, rgba(50, 42, 31, .035) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(2deg, rgba(255, 255, 255, .16) 0 1px, transparent 1px 4px);
  mix-blend-mode: multiply;
}

::selection {
  color: var(--cream);
  background: var(--hot);
}

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

.skip-link {
  position: fixed;
  z-index: 2000;
  top: 10px;
  right: 10px;
  padding: 10px 14px;
  color: var(--cream);
  background: var(--ink);
  border: 1px solid var(--signal);
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform .16s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(1440px, calc(100% - 28px));
}

.site-header {
  position: relative;
  min-height: 82px;
  margin-top: 14px;
  padding-inline: clamp(20px, 3.5vw, 54px);
  overflow: hidden;
  border: 1px solid var(--signal-line);
  background: rgba(247, 243, 234, .62);
  box-shadow: inset 0 0 12px rgba(255, 248, 218, .55), 0 0 8px rgba(255, 226, 145, .22);
}

.site-header::before {
  content: "";
  position: absolute;
  inset-inline-start: 18px;
  bottom: 11px;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(20, 20, 17, .45);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(20, 20, 17, .035), var(--signal-shadow);
}

.site-header::after {
  content: "";
  position: absolute;
  z-index: 3;
  left: 0;
  bottom: -1px;
  width: clamp(90px, 12vw, 190px);
  height: 2px;
  opacity: 0;
  background: linear-gradient(90deg, transparent, var(--signal), var(--signal-core), var(--signal), transparent);
  box-shadow: var(--signal-shadow);
  animation: point-signal-run 6.8s cubic-bezier(.42, 0, .28, 1) infinite 1.2s;
  pointer-events: none;
}

.point-wordmark {
  font-size: clamp(46px, 4.5vw, 68px);
  line-height: .68;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .72));
}

.point-wordmark .holam {
  width: .25em;
  height: .25em;
  top: -.28em;
  border-width: .045em;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .42);
  animation: point-node-pulse 4.8s ease-in-out infinite;
}

.nav {
  gap: clamp(18px, 2.8vw, 40px);
  font-size: 14px;
  font-weight: 800;
}

.nav a {
  position: relative;
  padding-block: 9px;
}

.nav a:not(.cart-link)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 3px;
  width: 100%;
  height: 1px;
  background: var(--hot);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .22s ease;
}

.nav a:hover::after,
.nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--accent-text);
}

.cart-link {
  min-height: 38px;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  clip-path: none;
  background: rgba(251, 248, 240, .66);
}

.cart-link::before {
  width: 12px;
  height: 12px;
  border-width: 4px;
  border-color: var(--hot);
  box-shadow: 0 0 9px rgba(237, 77, 49, .28);
}

.hero,
.page-hero,
.font-story-hero {
  position: relative;
  border-inline: 1px solid var(--signal-line);
  border-bottom: 1px solid var(--signal-line);
  background: rgba(248, 244, 236, .22);
  box-shadow: inset 0 0 14px rgba(255, 248, 220, .28);
}

.hero {
  min-height: 625px;
  grid-template-columns: minmax(0, 1.28fr) minmax(260px, .62fr);
  gap: clamp(50px, 8vw, 130px);
  align-items: center;
  padding: clamp(74px, 9vw, 124px) clamp(28px, 6vw, 92px) 76px;
  overflow: hidden;
}

.hero::before {
  display: block;
  z-index: 0;
  width: clamp(220px, 26vw, 410px);
  aspect-ratio: 1;
  top: 50%;
  left: clamp(-120px, -6vw, -44px);
  border: 1px solid rgba(20, 20, 17, .12);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent calc(50% - .5px), rgba(20, 20, 17, .22) 50%, transparent calc(50% + .5px)),
    linear-gradient(0deg, transparent calc(50% - .5px), rgba(20, 20, 17, .22) 50%, transparent calc(50% + .5px)),
    radial-gradient(circle, transparent 0 8px, rgba(20, 20, 17, .25) 8.5px 9.5px, transparent 10px);
  opacity: .48;
  transform: translateY(-50%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  z-index: 2;
  left: -1px;
  top: 0;
  width: 2px;
  height: clamp(100px, 15vw, 190px);
  opacity: 0;
  background: linear-gradient(180deg, transparent, var(--signal), var(--signal-core), var(--signal), transparent);
  box-shadow: var(--signal-shadow);
  animation: point-signal-rise 5.9s cubic-bezier(.42, 0, .28, 1) infinite 2.3s;
  pointer-events: none;
}

.hero-copy,
.hero-side {
  position: relative;
  z-index: 1;
}

.eyebrow,
.font-story-kicker,
.font-story-index {
  color: var(--accent-text);
  font-family: "Yossi", Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .19em;
}

.hero h1,
.page-hero h1 {
  max-width: 880px;
  font-size: clamp(82px, 11.2vw, 164px);
  line-height: .76;
  letter-spacing: -.095em;
  text-wrap: balance;
}

.hero h1 span,
.page-hero h1 span {
  color: var(--hot);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .5);
}

.hero-text {
  max-width: 560px;
  margin-top: 34px;
  font-size: clamp(19px, 2vw, 25px);
  line-height: 1.42;
}

.hero-side {
  align-self: end;
  margin-bottom: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line-strong);
}

.hero-side::before {
  content: "01";
  display: block;
  margin-bottom: 28px;
  color: var(--hot);
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
}

.hero-side::after {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--signal-core);
  box-shadow: var(--signal-shadow);
  animation: point-node-pulse 4s ease-in-out infinite 1.8s;
}

.hero-side p {
  font-size: clamp(31px, 3.5vw, 52px);
  line-height: .96;
}

.cta,
.font-story-button,
.checkout-link,
.tester-presets button,
.cart-action {
  border: 1px solid var(--line-strong);
  border-radius: 0;
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
  background: rgba(251, 248, 240, .72);
  transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.cta.primary,
.font-story-button.primary {
  border-color: var(--accent-text);
  background: var(--accent-text);
}

.checkout-link {
  color: var(--ink);
}

.cta:hover,
.font-story-button:hover,
.checkout-link:hover,
.tester-presets button:hover,
.cart-action:hover {
  color: var(--cream);
  border-color: var(--ink);
  background: var(--ink);
  transform: translateY(-2px);
}

.ticker {
  position: relative;
  padding: 17px 28px;
  overflow: hidden;
  border-inline: 1px solid var(--signal-line);
  border-bottom: 1px solid var(--signal-line);
  font-size: 12px;
  letter-spacing: .12em;
  background: rgba(248, 244, 236, .38);
}

.ticker::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 150px;
  height: 2px;
  opacity: 0;
  background: linear-gradient(90deg, transparent, var(--signal), var(--signal-core), transparent);
  box-shadow: var(--signal-shadow);
  animation: point-signal-run 7.7s ease-in-out infinite 3.2s;
  pointer-events: none;
}

.ticker span::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 10px;
  border: 2px solid var(--hot);
  border-radius: 50%;
  background: transparent;
}

.catalog {
  position: relative;
  padding: 90px clamp(24px, 5vw, 72px) 104px;
  border-inline: 1px solid var(--signal-line);
}

.section-top {
  margin-bottom: 38px;
}

.section-top h2,
.story h2 {
  font-size: clamp(64px, 8.2vw, 118px);
  line-height: .78;
  letter-spacing: -.09em;
}

.font-grid {
  position: relative;
  gap: 0;
  border-top: 1px solid var(--line-strong);
  border-right: 1px solid var(--line-strong);
  counter-reset: point-font;
}

.font-grid::after {
  content: "";
  position: absolute;
  z-index: 5;
  left: 0;
  top: -1px;
  width: 140px;
  height: 2px;
  opacity: 0;
  background: linear-gradient(90deg, transparent, var(--signal), var(--signal-core), transparent);
  box-shadow: var(--signal-shadow);
  animation: point-signal-run 8.4s ease-in-out infinite .4s;
  pointer-events: none;
}

.font-card {
  position: relative;
  min-height: 440px;
  padding: 26px;
  overflow: hidden;
  border: 0;
  border-left: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  clip-path: none;
  background: rgba(251, 248, 240, .74);
  counter-increment: point-font;
  transition: color .2s ease, background-color .2s ease, transform .2s ease;
}

.font-card::before {
  content: "0" counter(point-font);
  position: absolute;
  left: 16px;
  bottom: 13px;
  color: rgba(20, 20, 17, .2);
  font: 700 30px/1 "Yossi", Arial, sans-serif;
  pointer-events: none;
}

.font-card:hover {
  z-index: 2;
  color: var(--ink);
  background: rgba(255, 252, 243, .96);
  box-shadow: inset 0 0 20px rgba(255, 238, 186, .48), 0 0 0 1px var(--signal-line);
  transform: translateY(-4px);
}

.font-card:hover::before {
  color: var(--accent-text);
}

.font-story-link,
.download-link,
.purchase-link,
.cart-add,
.cart-item a,
.cart-item button {
  color: var(--accent-text);
}

.font-meta,
.font-description,
.font-name-en,
.font-bottom span {
  color: var(--muted);
}

.font-name {
  font-size: 42px;
}

.font-sample {
  font-size: clamp(42px, 4.6vw, 66px);
}

/* Basurot's narrow outlines already carry a compact rhythm. Keep its
   display settings open instead of stacking global negative tracking on top. */
.font-card[data-font-slug="basurot"] .font-name,
.font-card[data-font-slug="basurot"] .font-sample {
  letter-spacing: .015em;
}

body[data-font-slug="basurot"] .font-story-title {
  letter-spacing: .015em;
}

body[data-font-slug="basurot"] .font-story-specimen-box {
  letter-spacing: .02em;
}

.font-bottom {
  border-top: 1px solid var(--line-strong);
}

.page-hero {
  min-height: 445px;
  padding: 76px clamp(28px, 6vw, 92px) 66px;
  border-bottom-color: var(--signal-line);
}

.page-hero::after,
.font-story-hero::after {
  content: "";
  position: absolute;
  left: -1px;
  top: 0;
  width: 2px;
  height: 130px;
  opacity: 0;
  background: linear-gradient(180deg, transparent, var(--signal-core), var(--signal), transparent);
  box-shadow: var(--signal-shadow);
  animation: point-signal-rise 6.6s ease-in-out infinite 1.5s;
  pointer-events: none;
}

.paper-divider {
  height: 28px;
  border-inline: 1px solid var(--signal-line);
  border-bottom: 1px solid var(--signal-line);
}

.paper-divider::after {
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  clip-path: none;
  background: var(--signal-core);
  box-shadow: var(--signal-shadow);
  transform: translate(50%, -50%);
}

.tester,
.page-content,
.cart-page {
  position: relative;
  padding: 62px clamp(24px, 5vw, 72px) 102px;
  border-inline: 1px solid var(--signal-line);
}

.tester-layout,
.cart-layout {
  gap: 0;
  border-top: 1px solid var(--line-strong);
  border-right: 1px solid var(--line-strong);
}

.tester-layout {
  grid-template-columns: 300px minmax(0, 1fr);
}

.tester-controls,
.tester-stage,
.cart-item,
.cart-empty,
.cart-summary {
  border: 0;
  border-left: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  clip-path: none;
  background: rgba(251, 248, 240, .78);
  box-shadow: none;
}

.tester-controls {
  padding: 0 24px 25px;
}

.tester-controls h2,
.tester-controls-heading {
  min-height: 86px;
  margin: 0 -24px 24px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
  font-size: 35px;
}

.tester-controls select,
.tester-controls input[type="color"] {
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: rgba(255, 255, 255, .45);
}

.tester-controls input[type="range"] {
  accent-color: var(--hot);
}

.tester-stage {
  position: relative;
  min-height: 600px;
  padding: 24px 28px;
}

.tester-stage::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: 0;
  width: 2px;
  height: 120px;
  background: linear-gradient(180deg, transparent, var(--signal-core), var(--signal), transparent);
  box-shadow: var(--signal-shadow);
  animation: point-signal-rise 7.1s ease-in-out infinite 4s;
  pointer-events: none;
}

.tester-stage-bar {
  border-bottom: 1px solid var(--line-strong);
  font-family: "Yossi", Arial, sans-serif;
  font-size: 13px;
}

.tester-preview {
  min-height: 470px;
  padding-top: 42px;
}

.info-grid {
  border-top: 1px solid var(--line-strong);
  border-right: 1px solid var(--line-strong);
}

.info-grid article {
  border-left: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: rgba(251, 248, 240, .72);
}

.font-story-hero {
  min-height: 620px;
  padding: 82px clamp(28px, 6vw, 92px) 72px;
  border-bottom-color: var(--signal-line);
  overflow: hidden;
}

.font-story-hero::before {
  z-index: 0;
  width: clamp(230px, 28vw, 430px);
  top: 50%;
  left: -8%;
  border: 1px solid rgba(20, 20, 17, .12);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent calc(50% - .5px), rgba(20, 20, 17, .2) 50%, transparent calc(50% + .5px)),
    linear-gradient(0deg, transparent calc(50% - .5px), rgba(20, 20, 17, .2) 50%, transparent calc(50% + .5px));
  opacity: .38;
  transform: translateY(-50%);
}

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

.font-story-facts,
.font-story-section,
.font-story-quote,
.font-story-specimen,
.font-story-next {
  padding-inline: clamp(28px, 6vw, 92px);
  border-inline: 1px solid var(--signal-line);
}

.font-story-facts {
  border-bottom: 1px solid var(--line-strong);
}

.font-story-fact {
  border-left-color: var(--line-strong);
}

.font-story-fact:first-child {
  border-right-color: var(--line-strong);
}

.font-story-section,
.font-story-quote,
.font-story-specimen {
  border-bottom-color: var(--line);
}

.font-story-specimen-box {
  border: 1px solid var(--line-strong);
  background: rgba(251, 248, 240, .78);
  box-shadow: inset 0 0 22px rgba(255, 241, 200, .25);
}

.font-story-next > .font-story-button {
  margin-top: 0;
  font: 800 16px/1.1 "Yossi", Arial, sans-serif;
  letter-spacing: 0;
}

.site-footer {
  position: relative;
  margin: 0 auto 14px;
  width: min(1440px, calc(100% - 28px));
  overflow: hidden;
  border: 1px solid rgba(255, 239, 187, .42);
  color: var(--cream);
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(255, 244, 211, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 244, 211, .055) 1px, transparent 1px),
    radial-gradient(circle at 11% 28%, rgba(255, 242, 198, .13), transparent 22%);
  background-size: 80px 80px, 80px 80px, auto;
  box-shadow: inset 0 0 35px rgba(255, 234, 169, .06);
}

.site-footer::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  height: auto;
  clip-path: none;
  background:
    linear-gradient(90deg, transparent 7%, rgba(255, 239, 187, .34) 7% calc(7% + 1px), transparent calc(7% + 1px)),
    linear-gradient(0deg, transparent 68%, rgba(255, 239, 187, .26) 68% calc(68% + 1px), transparent calc(68% + 1px));
  pointer-events: none;
}

.site-footer::after {
  content: "";
  position: absolute;
  z-index: 2;
  left: 0;
  top: -1px;
  width: 170px;
  height: 2px;
  opacity: 0;
  background: linear-gradient(90deg, transparent, var(--signal), var(--signal-core), var(--signal), transparent);
  box-shadow: var(--signal-shadow);
  animation: point-signal-run 6.2s ease-in-out infinite 2.1s;
  pointer-events: none;
}

.footer-inner,
.footer-base {
  position: relative;
  z-index: 1;
  width: min(100% - clamp(48px, 8vw, 116px), 1240px);
}

.footer-inner {
  padding-top: 64px;
}

.footer-logo {
  font-size: clamp(86px, 11vw, 148px);
  text-shadow: 0 0 18px rgba(255, 239, 187, .1);
}

.footer-links a {
  text-decoration-color: var(--hot);
  text-decoration-thickness: 2px;
  text-underline-offset: 7px;
}

@keyframes point-signal-run {
  0%, 28% { opacity: 0; transform: translateX(-190px); }
  37% { opacity: .94; }
  62% { opacity: .94; }
  72%, 100% { opacity: 0; transform: translateX(calc(100vw + 190px)); }
}

@keyframes point-signal-rise {
  0%, 30% { opacity: 0; transform: translateY(-190px); }
  40% { opacity: .9; }
  64% { opacity: .9; }
  74%, 100% { opacity: 0; transform: translateY(calc(100% + 680px)); }
}

@keyframes point-node-pulse {
  0%, 58%, 100% { filter: brightness(1); box-shadow: 0 0 0 rgba(255, 239, 187, 0); }
  68% { filter: brightness(1.18); box-shadow: 0 0 5px rgba(255, 239, 187, .8), 0 0 16px rgba(255, 216, 116, .46); }
  75% { filter: brightness(1); box-shadow: 0 0 2px rgba(255, 239, 187, .32); }
}

@media (max-width: 800px) {
  .shell,
  .site-footer {
    width: min(100% - 16px, 1440px);
  }

  .site-header {
    min-height: 72px;
    margin-top: 8px;
    padding-inline: 14px;
    gap: 12px;
  }

  .point-wordmark {
    flex: 0 0 auto;
    font-size: 42px;
  }

  .nav {
    gap: 9px;
    font-size: 12px;
  }

  .nav a {
    padding-block: 8px;
  }

  .cart-link {
    min-height: 32px;
    padding: 4px 7px;
  }

  .cart-link::before {
    width: 9px;
    height: 9px;
    border-width: 3px;
  }

  .hero {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 50px;
    padding: 58px 20px 48px;
  }

  .hero::before {
    width: 230px;
    top: auto;
    left: -112px;
    bottom: 70px;
    transform: none;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(68px, 20vw, 104px);
  }

  .hero-side {
    width: 100%;
    margin-bottom: 0;
    justify-self: stretch;
  }

  .hero-side::before {
    margin-bottom: 18px;
    font-size: 28px;
  }

  .ticker {
    justify-content: flex-start;
    padding: 15px 18px;
  }

  .catalog,
  .tester,
  .page-content,
  .cart-page {
    padding: 60px 18px 72px;
  }

  .section-top h2,
  .story h2 {
    font-size: clamp(56px, 16vw, 88px);
  }

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

  .font-card {
    min-height: 360px;
  }

  .page-hero,
  .font-story-hero {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 58px 20px 48px;
  }

  .paper-divider {
    height: 22px;
  }

  .tester-layout,
  .cart-layout {
    grid-template-columns: 1fr;
  }

  .tester-controls,
  .tester-stage,
  .cart-item,
  .cart-empty,
  .cart-summary {
    border-left: 1px solid var(--line-strong);
  }

  .tester-stage {
    min-height: 470px;
    padding: 20px;
  }

  .tester-preview {
    min-height: 340px;
    padding-top: 30px;
  }

  .font-story-facts,
  .font-story-section,
  .font-story-quote,
  .font-story-specimen,
  .font-story-next {
    padding-inline: 20px;
  }

  .font-story-facts {
    grid-template-columns: repeat(2, 1fr);
  }

  .font-story-section {
    grid-template-columns: 1fr;
  }

  .footer-inner,
  .footer-base {
    width: calc(100% - 36px);
  }

  .site-footer {
    margin-bottom: 8px;
    background-size: 52px 52px, 52px 52px, auto;
  }
}

@media (max-width: 520px) {
  .site-header {
    align-items: center;
  }

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

  .nav > a:not(.cart-link) {
    font-size: 11px;
  }

  .nav > a:nth-child(3) {
    display: none;
  }

  .hero-actions,
  .font-story-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cta,
  .font-story-button {
    width: 100%;
  }

  .ticker span {
    flex: 1 1 42%;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition-duration: .01ms !important;
  }

  .site-header::after,
  .hero::after,
  .ticker::after,
  .font-grid::after,
  .site-footer::after,
  .page-hero::after,
  .font-story-hero::after,
  .tester-stage::after {
    opacity: .34;
    transform: none;
  }
}

@media (forced-colors: active) {
  body,
  .site-footer {
    background-image: none;
  }

  .site-header,
  .hero,
  .page-hero,
  .font-story-hero,
  .ticker,
  .catalog,
  .tester,
  .page-content,
  .cart-page,
  .site-footer {
    border-color: CanvasText;
  }

  .site-header::after,
  .hero::after,
  .ticker::after,
  .font-grid::after,
  .site-footer::after,
  .page-hero::after,
  .font-story-hero::after,
  .tester-stage::after {
    display: none;
  }
}

/* Phase 2 — illuminated AI type workbench. */
body::before {
  z-index: 0;
  opacity: .08;
  mix-blend-mode: soft-light;
}

.site-header,
.hero,
.page-hero,
.font-story-hero,
.ticker,
.catalog,
.tester-controls,
.tester-stage,
.font-card,
.site-footer {
  isolation: isolate;
}

.workspace-panel {
  position: relative;
  clip-path: var(--hex-frame);
}

.site-header,
.hero,
.page-hero,
.font-story-hero,
.font-card,
.tester-controls,
.tester-stage,
.site-footer {
  clip-path: var(--hex-frame);
}

.fiber-outline {
  position: absolute;
  z-index: 20;
  inset: 0;
  padding: 3px;
  clip-path: var(--hex-frame);
  pointer-events: none;
  background: linear-gradient(135deg, var(--fiber-core) 0 18%, var(--fiber-warm) 34%, var(--fiber-core) 51%, #ffe199 68%, var(--fiber-core) 100%);
  filter: drop-shadow(0 0 3px #fff) drop-shadow(0 0 10px rgba(255, 196, 72, 1)) drop-shadow(0 0 28px rgba(255, 150, 20, .72));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.site-header {
  min-height: 92px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  border: 1px solid var(--fiber-track);
  overflow: hidden;
  box-shadow: inset 0 0 22px rgba(255, 245, 208, .78), 0 0 24px rgba(255, 177, 43, .38);
}

.site-header::after,
.hero::after,
.page-hero::after,
.font-story-hero::after,
.ticker::after,
.font-grid::after,
.tester-stage::after,
.site-footer::after {
  opacity: 1;
  border-radius: 999px;
  background:
    radial-gradient(circle at 74% 50%, #fff 0 2px, #ffe39a 3px, transparent 12px),
    linear-gradient(90deg, transparent, rgba(255, 205, 91, .22), var(--fiber-core) 70%, transparent) center / 100% var(--signal-core-width) no-repeat;
  box-shadow: none;
  filter: drop-shadow(0 0 3px #fff) drop-shadow(0 0 10px #ffc44f) drop-shadow(0 0 22px rgba(255, 157, 26, .82));
  will-change: transform, opacity;
}

.site-header::after {
  width: 24%;
  height: 18px;
  bottom: -8px;
  animation: point-signal-run 6.8s cubic-bezier(.44, 0, .25, 1) infinite -1.4s;
}

.system-status {
  min-width: 136px;
  display: grid;
  grid-template-columns: 12px 1fr;
  align-items: center;
  gap: 2px 8px;
  direction: ltr;
  font: 700 11px/1.05 ui-monospace, Consolas, monospace;
  letter-spacing: .08em;
}

.system-status i {
  grid-row: 1 / 3;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--hot);
  box-shadow: 0 0 0 3px rgba(237, 77, 49, .1), 0 0 13px rgba(237, 77, 49, .64);
  animation: point-node-pulse 3.6s ease-in-out infinite -1s;
}

.system-status small {
  color: var(--muted);
  font-size: 8px;
  letter-spacing: .16em;
}

.hero {
  min-height: 650px;
  border: 1px solid var(--fiber-track);
  box-shadow: inset 0 0 34px rgba(255, 248, 220, .58), 0 0 30px rgba(255, 177, 43, .3);
}

.hero::before {
  display: block;
  z-index: 0;
  width: clamp(320px, 38vw, 570px);
  aspect-ratio: 1;
  top: 50%;
  left: clamp(-110px, -4vw, -40px);
  border: 1px solid rgba(20, 20, 17, .12);
  border-radius: 50%;
  background-color: var(--hero-point);
  background-image:
    linear-gradient(90deg, transparent calc(50% - .5px), rgba(20, 20, 17, .22) 50%, transparent calc(50% + .5px)),
    linear-gradient(0deg, transparent calc(50% - .5px), rgba(20, 20, 17, .22) 50%, transparent calc(50% + .5px)),
    radial-gradient(circle, transparent 0 8px, rgba(20, 20, 17, .25) 8.5px 9.5px, transparent 10px);
  opacity: .95;
  box-shadow: inset 0 0 46px rgba(255, 255, 255, .22), 0 0 65px rgba(215, 223, 209, .58);
  transform: translateY(-50%);
  pointer-events: none;
}

.hero::after,
.page-hero::after,
.font-story-hero::after,
.tester-stage::after {
  width: 18px;
  height: 24%;
  left: -8px;
  background:
    radial-gradient(circle at 50% 72%, #fff 0 2px, #ffe39a 3px, transparent 12px),
    linear-gradient(180deg, transparent, rgba(255, 205, 91, .22), var(--fiber-core) 70%, transparent) center / var(--signal-core-width) 100% no-repeat;
  animation: point-signal-rise 6.1s cubic-bezier(.44, 0, .25, 1) infinite -3.1s;
}

.hero-telemetry {
  position: absolute;
  z-index: 3;
  left: 24px;
  top: 28px;
  bottom: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  direction: ltr;
  color: rgba(20, 20, 17, .58);
  font: 700 9px/1.2 ui-monospace, Consolas, monospace;
  letter-spacing: .14em;
  writing-mode: vertical-rl;
}

.hero-side {
  padding: 30px;
  border: 1px solid rgba(20, 20, 17, .42);
  background: rgba(247, 244, 235, .46);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  backdrop-filter: blur(2px);
}

.hero-side::after {
  top: -7px;
  left: 24px;
  width: 13px;
  height: 13px;
  background: #fffdf4;
  box-shadow: 0 0 3px #fff, 0 0 11px #ffc452, 0 0 25px rgba(255, 156, 25, .75);
}

.ticker {
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px);
  border: 1px solid var(--fiber-track);
  box-shadow: inset 0 0 18px rgba(255, 244, 204, .66), 0 0 22px rgba(255, 172, 33, .34);
}

.ticker::after,
.font-grid::after,
.site-footer::after {
  width: 22%;
  height: 18px;
  bottom: -8px;
  animation: point-signal-run 7.3s cubic-bezier(.44, 0, .25, 1) infinite -5.2s;
}

.catalog {
  border: 1px solid var(--fiber-track);
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
  box-shadow: inset 0 0 24px rgba(255, 245, 209, .38), 0 0 16px rgba(255, 171, 42, .14);
}

.font-grid {
  gap: 14px;
  border: 0;
}

.font-card {
  --hex-cut: 12px;
  min-height: 470px;
  padding: 22px 26px 27px;
  border: 1px solid var(--fiber-track);
  background: rgba(251, 248, 240, .68);
  box-shadow: inset 0 0 22px rgba(255, 246, 213, .58), 0 0 21px rgba(255, 177, 39, .28);
}

.font-card .fiber-outline {
  --hex-cut: 12px;
}

.font-system-meta {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0 -4px 18px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(20, 20, 17, .26);
  color: var(--accent-text);
  direction: ltr;
  font: 700 9px/1 ui-monospace, Consolas, monospace;
  letter-spacing: .13em;
}

.tester-layout {
  gap: 14px;
  border: 0;
}

.tester-controls,
.tester-stage {
  border: 1px solid var(--fiber-track);
  box-shadow: inset 0 0 24px rgba(255, 246, 213, .6), 0 0 24px rgba(255, 174, 38, .3);
}

.tester-stage::after {
  right: -8px;
  left: auto;
  animation-delay: -2.4s;
}

.ai-workbench {
  position: fixed;
  z-index: 80;
  inset: 8px;
  pointer-events: none;
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px), 0 14px);
  border: 1px solid var(--fiber-track);
  box-shadow: inset 0 0 0 1px rgba(255, 254, 243, .84), inset 0 0 15px rgba(255, 215, 113, .68), 0 0 5px #fff, 0 0 18px rgba(255, 173, 40, .48);
}

.ai-workbench > small {
  position: absolute;
  left: 26px;
  top: 12px;
  color: rgba(20, 20, 17, .58);
  background: var(--paper);
  padding: 2px 8px;
  direction: ltr;
  font: 700 8px/1 ui-monospace, Consolas, monospace;
  letter-spacing: .14em;
}

.workbench-rail {
  position: absolute;
  z-index: 2;
  top: 56px;
  bottom: 56px;
  width: 2px;
  background: var(--fiber-core);
  box-shadow: 0 0 2px #fff, 0 0 8px #ffd36d, 0 0 22px rgba(255, 164, 30, .56);
}

.workbench-rail::after {
  content: "";
  position: absolute;
  left: -8px;
  top: 0;
  width: 18px;
  height: 22%;
  background:
    radial-gradient(circle at 50% 72%, #fff 0 3px, #ffe39a 4px, transparent 13px),
    linear-gradient(180deg, transparent, #fffef3 72%, transparent) center / var(--signal-core-width) 100% no-repeat;
  filter: drop-shadow(0 0 4px #fff) drop-shadow(0 0 12px #ffc44f) drop-shadow(0 0 25px rgba(255, 157, 26, .9));
  animation: point-rail-pulse 7.2s ease-in-out infinite -2s;
}

.workbench-rail-start { left: 0; }
.workbench-rail-end { right: 0; }
.workbench-rail-end::after { animation-delay: -5.1s; }

.workspace-node {
  position: absolute;
  z-index: 4;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 3px #fff, 0 0 10px #ffd15f, 0 0 27px rgba(255, 157, 26, .92);
  animation: point-workspace-node 3.8s ease-in-out infinite;
}

.workspace-node-a { left: -5px; top: 26%; }
.workspace-node-b { right: -5px; top: 51%; animation-delay: -1.4s; }
.workspace-node-c { left: 27%; bottom: -5px; animation-delay: -2.6s; }

.workbench-console {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr .72fr;
  direction: ltr;
  border-bottom: 1px solid rgba(255, 244, 209, .3);
}

.workbench-console > div {
  min-height: 190px;
  padding: 28px;
  border-right: 1px solid rgba(255, 244, 209, .23);
  color: #f6efdf;
  font-family: ui-monospace, Consolas, monospace;
}

.glyph-blueprint {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  background:
    linear-gradient(90deg, transparent calc(50% - .5px), rgba(255, 230, 158, .26) 50%, transparent calc(50% + .5px)),
    linear-gradient(0deg, transparent calc(50% - .5px), rgba(255, 230, 158, .26) 50%, transparent calc(50% + .5px));
}

.glyph-blueprint b {
  grid-row: 1 / 5;
  font: 400 120px/.75 "Lehava Display", Arial, sans-serif;
  color: transparent;
  -webkit-text-stroke: 1px #fff5d8;
  filter: drop-shadow(0 0 9px rgba(255, 202, 89, .48));
}

.glyph-blueprint span,
.console-log span,
.console-status span { color: var(--fiber-warm); font-size: 10px; letter-spacing: .15em; }
.glyph-blueprint i { color: #a9a08e; font-size: 9px; font-style: normal; }
.console-log, .console-status { display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.console-log b, .console-status b { font-size: 17px; letter-spacing: .08em; }
.console-log small, .console-status small { color: #bdb3a1; font-size: 9px; letter-spacing: .13em; }
.console-status span i { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: var(--hot); box-shadow: 0 0 10px var(--hot); }

@keyframes point-signal-run {
  0% { opacity: 0; transform: translate3d(-120%, 0, 0); }
  8% { opacity: 1; }
  70% { opacity: 1; transform: translate3d(560%, 0, 0); }
  82%, 100% { opacity: 0; transform: translate3d(560%, 0, 0); }
}

@keyframes point-signal-rise {
  0% { opacity: 0; transform: translate3d(0, -120%, 0); }
  8% { opacity: 1; }
  70% { opacity: 1; transform: translate3d(0, 560%, 0); }
  82%, 100% { opacity: 0; transform: translate3d(0, 560%, 0); }
}

@keyframes point-rail-pulse {
  0% { opacity: 0; transform: translate3d(0, -120%, 0); }
  10% { opacity: 1; }
  72% { opacity: 1; transform: translate3d(0, 450%, 0); }
  84%, 100% { opacity: 0; transform: translate3d(0, 450%, 0); }
}

@keyframes point-workspace-node {
  0%, 56%, 100% { opacity: .52; transform: scale(.72); }
  66% { opacity: 1; transform: scale(1.35); }
  76% { opacity: .7; transform: scale(.86); }
}

@media (max-width: 800px) {
  :root { --hex-cut: 10px; }

  .site-header {
    display: flex;
    min-height: 76px;
  }

  .system-status,
  .hero-telemetry,
  .ai-workbench > small {
    display: none;
  }

  .hero::before {
    width: 300px;
    left: -146px;
    bottom: 54px;
    top: auto;
    opacity: .94;
    transform: none;
  }

  .hero-side {
    padding: 24px;
  }

  .font-grid,
  .tester-layout {
    gap: 12px;
  }

  .workbench-console {
    grid-template-columns: 1fr;
  }

  .workbench-console > div {
    min-height: 130px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 244, 209, .22);
  }

  .glyph-blueprint b {
    font-size: 86px;
  }

  .workbench-rail {
    top: 38px;
    bottom: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .workbench-rail::after,
  .workspace-node,
  .system-status i {
    animation: none !important;
  }

  .workbench-rail::after {
    opacity: .48;
    transform: translateY(120%);
  }

  .workspace-node {
    opacity: .74;
    transform: none;
  }
}
