:root {
  color-scheme: light;
  --paper: #f5f0f2;
  --paper-deep: #e9e0e4;
  --surface: #fffdfd;
  --ink: #20151c;
  --ink-soft: #695862;
  --night: #160e14;
  --night-soft: #2b1a24;
  --accent: #f2508f;
  --accent-rgb: 242, 80, 143;
  --secondary: #55b5a8;
  --cream: #f8eee6;
  --line: rgba(43, 25, 35, 0.17);
  --line-light: rgba(255, 255, 255, 0.12);
  --shadow: 0 28px 80px rgba(31, 15, 24, 0.17);
  --sans: Inter, Aptos, "Segoe UI", Arial, sans-serif;
  --display:
    "Iowan Old Style", "Palatino Linotype", Baskerville, Georgia, serif;
}

body[data-section="mobile"] {
  --accent: #ff5e7f;
  --accent-rgb: 255, 94, 127;
  --secondary: #6cc7b8;
}

body[data-section="media"] {
  --accent: #b567ed;
  --accent-rgb: 181, 103, 237;
  --secondary: #ff805c;
}

body[data-section="laptop"] {
  --accent: #2fa99a;
  --accent-rgb: 47, 169, 154;
  --secondary: #f05c91;
}

body[data-section="closing"] {
  --accent: #f05c91;
  --accent-rgb: 240, 92, 145;
  --secondary: #b5c964;
}

body[data-section="reference"] {
  --accent: #6b7ee8;
  --accent-rgb: 107, 126, 232;
  --secondary: #e66a9d;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(
      circle at 92% 18%,
      rgba(var(--accent-rgb), 0.08),
      transparent 26rem
    ),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

body.is-leaving {
  opacity: 0;
  transform: translateY(-8px);
}

::selection {
  background: rgba(var(--accent-rgb), 0.28);
  color: var(--ink);
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(var(--accent-rgb), 0.55);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 15px;
  transform: translateY(-150%);
  border-radius: 999px;
  background: white;
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
  transition: transform 160ms ease;
}

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

.reading-progress {
  position: absolute;
  right: 18px;
  bottom: 0;
  left: 18px;
  z-index: 4;
  height: 2px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
  pointer-events: none;
}

.reading-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #ffc0d6);
  box-shadow: 0 0 14px rgba(var(--accent-rgb), 0.68);
}

.pointer-glow {
  --pointer-x: 50vw;
  --pointer-y: 30vh;
  position: fixed;
  inset: 0;
  z-index: 1;
  background: radial-gradient(
    430px circle at var(--pointer-x) var(--pointer-y),
    rgba(var(--accent-rgb), 0.08),
    transparent 65%
  );
  pointer-events: none;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

body > header {
  position: fixed;
  top: 16px;
  right: 0;
  left: 0;
  z-index: 100;
  background: transparent;
  pointer-events: none;
}

.nav {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 34%),
    rgba(29, 19, 27, 0.82);
  box-shadow:
    0 18px 58px rgba(0, 0, 0, 0.36),
    0 0 0 1px rgba(var(--accent-rgb), 0.04) inset;
  backdrop-filter: blur(22px) saturate(145%);
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #fff8fb;
  padding: 0 0 0 18px;
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  line-height: 1.1;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand::before {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50% 50% 50% 9px;
  background: var(--accent);
  color: var(--night);
  content: "IT";
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  box-shadow: 0 0 28px rgba(var(--accent-rgb), 0.42);
}

.primary-nav {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  overflow: visible;
  padding: 7px;
}

.active-pill {
  position: absolute;
  top: 7px;
  left: 0;
  z-index: 0;
  height: calc(100% - 14px);
  border: 1px solid rgba(var(--accent-rgb), 0.42);
  border-radius: 14px;
  background: linear-gradient(
    135deg,
    rgba(var(--accent-rgb), 0.24),
    rgba(var(--accent-rgb), 0.1)
  );
  box-shadow:
    0 8px 26px rgba(var(--accent-rgb), 0.12),
    0 0 18px rgba(var(--accent-rgb), 0.08) inset;
  opacity: 0;
  pointer-events: none;
  transition:
    width 360ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 360ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 160ms ease;
}

.nav-group {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
}

.nav-group.has-dropdown::after {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  height: 15px;
  content: "";
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 12px 10px;
  border-radius: 14px;
  color: #bcaeb6;
  font-size: 0.77rem;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
  transition:
    color 160ms ease,
    background 160ms ease;
}

.nav-number {
  color: rgba(var(--accent-rgb), 0.75);
  font-size: 0.57rem;
  font-variant-numeric: tabular-nums;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.nav-link:hover,
.nav-link[aria-current] {
  color: white;
}

.nav-link:focus-visible,
.submenu-toggle:focus-visible,
.menu-button:focus-visible,
.dropdown-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.submenu-toggle {
  display: grid;
  width: 25px;
  height: 35px;
  margin-left: -8px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #cbbdc6;
  cursor: pointer;
}

.submenu-toggle:hover {
  background: rgba(255, 255, 255, 0.06);
  color: white;
}

.submenu-toggle span {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 180ms ease;
}

.nav-group[data-open="true"] .submenu-toggle span {
  transform: translateY(2px) rotate(225deg);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 13px);
  left: 50%;
  display: grid;
  width: 286px;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), transparent 36%),
    rgba(25, 16, 23, 0.97);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(22px) saturate(145%);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -8px) scale(0.985);
  transform-origin: top;
  transition:
    opacity 170ms ease,
    transform 170ms ease;
}

.nav-group:last-child .nav-dropdown {
  right: 0;
  left: auto;
  transform: translateY(-8px) scale(0.985);
}

.nav-group:hover .nav-dropdown,
.nav-group:focus-within .nav-dropdown,
.nav-group[data-open="true"] .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0) scale(1);
}

.nav-group:last-child:hover .nav-dropdown,
.nav-group:last-child:focus-within .nav-dropdown,
.nav-group:last-child[data-open="true"] .nav-dropdown {
  transform: translateY(0) scale(1);
}

.dropdown-eyebrow {
  padding: 5px 9px 8px;
  color: rgba(var(--accent-rgb), 0.88);
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.dropdown-link {
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #f8eff4;
  text-decoration: none;
  transition:
    border-color 150ms ease,
    background 150ms ease,
    transform 150ms ease;
}

.dropdown-link:hover,
.dropdown-link[aria-current="page"] {
  border-color: rgba(var(--accent-rgb), 0.26);
  background: rgba(var(--accent-rgb), 0.1);
  transform: translateX(2px);
}

.dropdown-link strong {
  font-size: 0.8rem;
}

.dropdown-link small {
  color: #a99ba4;
  font-size: 0.67rem;
  line-height: 1.35;
}

.nav-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 16px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #d9ced5;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-status::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(var(--accent-rgb), 0.11);
  content: "";
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  margin-right: 11px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.05);
  color: white;
  cursor: pointer;
}

.menu-lines,
.menu-lines::before,
.menu-lines::after {
  display: block;
  width: 18px;
  height: 1.5px;
  border-radius: 99px;
  background: currentColor;
  content: "";
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.menu-lines::before {
  transform: translateY(-6px);
}

.menu-lines::after {
  transform: translateY(4.5px);
}

.nav[data-menu-open="true"] .menu-lines {
  background: transparent;
}

.nav[data-menu-open="true"] .menu-lines::before {
  transform: translateY(0) rotate(45deg);
}

.nav[data-menu-open="true"] .menu-lines::after {
  transform: translateY(-1.5px) rotate(-45deg);
}

main {
  position: relative;
  z-index: 2;
}

.hero {
  position: relative;
  left: 50%;
  width: 100vw;
  min-height: 520px;
  overflow: hidden;
  padding: clamp(118px, 11vw, 152px) max(20px, calc((100vw - 1160px) / 2))
    clamp(78px, 9vw, 116px);
  transform: translateX(-50%);
  background:
    linear-gradient(115deg, rgba(var(--accent-rgb), 0.24), transparent 45%),
    radial-gradient(
      circle at 82% 34%,
      rgba(var(--accent-rgb), 0.29),
      transparent 22rem
    ),
    var(--night);
  color: white;
  isolation: isolate;
}

.hero::before {
  position: absolute;
  top: -180px;
  right: -50px;
  z-index: -2;
  width: 570px;
  aspect-ratio: 1;
  border: 1px solid rgba(var(--accent-rgb), 0.38);
  border-radius: 50%;
  background: repeating-radial-gradient(
    circle,
    transparent 0 28px,
    rgba(var(--accent-rgb), 0.1) 29px 30px
  );
  content: "";
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, transparent 49.8%, rgba(255, 255, 255, 0.035) 50%),
    linear-gradient(transparent 49.8%, rgba(255, 255, 255, 0.035) 50%);
  background-size: 78px 78px;
  content: "";
  mask-image: linear-gradient(90deg, transparent, #000 45%, #000);
}

.kicker {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid rgba(var(--accent-rgb), 0.46);
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.09);
  color: #ffe5ef;
  font-size: 0.69rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.kicker::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(var(--accent-rgb), 0.12);
  content: "";
}

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

h1 {
  max-width: 900px;
  margin: 22px 0 20px;
  color: #fff8fb;
  font-family: var(--display);
  font-size: clamp(3.6rem, 7.2vw, 7.2rem);
  font-weight: 600;
  letter-spacing: -0.064em;
  line-height: 0.94;
}

h2 {
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(2.35rem, 4vw, 4.25rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.99;
}

h3 {
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1.3;
}

.lead {
  max-width: 730px;
  margin: 0;
  color: #d6c6ce;
  font-size: clamp(1.06rem, 1.8vw, 1.28rem);
  line-height: 1.63;
}

.chapter-stamp {
  position: absolute;
  right: max(20px, calc((100vw - 1160px) / 2));
  bottom: 54px;
  display: grid;
  width: 160px;
  height: 160px;
  place-content: center;
  border: 1px solid rgba(var(--accent-rgb), 0.58);
  border-radius: 50%;
  background: rgba(22, 14, 20, 0.42);
  text-align: center;
  backdrop-filter: blur(10px);
  transform: rotate(8deg);
}

.chapter-stamp::before,
.chapter-stamp::after {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.chapter-stamp::before {
  inset: 8px;
  border: 1px dashed rgba(255, 255, 255, 0.25);
}

.chapter-stamp::after {
  top: -7px;
  right: 22px;
  width: 15px;
  height: 15px;
  background: var(--accent);
  box-shadow: 0 0 22px rgba(var(--accent-rgb), 0.9);
}

.chapter-stamp span {
  color: white;
  font-family: var(--display);
  font-size: 3.6rem;
  line-height: 0.85;
}

.chapter-stamp small {
  max-width: 110px;
  margin: 10px auto 0;
  color: #d7c7cf;
  font-size: 0.6rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  line-height: 1.3;
  text-transform: uppercase;
}

/* Homepage hero */
.home-page {
  background: var(--night);
}

.home-page main.container {
  width: min(1380px, calc(100% - 40px));
}

.home-page .home-hero {
  left: auto;
  display: grid;
  width: auto;
  min-height: min(780px, calc(100vh - 82px));
  grid-template-columns: minmax(0, 0.85fr) minmax(440px, 1.15fr);
  gap: clamp(34px, 5vw, 82px);
  padding: clamp(118px, 10vw, 148px) 0 clamp(64px, 8vw, 108px);
  transform: none;
  background: transparent;
}

.home-page .home-hero::before,
.home-page .home-hero::after {
  display: none;
}

.hero-copy {
  position: relative;
  z-index: 3;
  align-self: center;
}

.home-page h1 {
  max-width: 8.1ch;
  font-size: clamp(4rem, 7.2vw, 7.7rem);
  letter-spacing: -0.074em;
}

.home-page .lead {
  max-width: 610px;
}

.hero-meta {
  display: flex;
  gap: 10px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.byline {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 9px;
  margin: 28px 0 0;
  color: #fff4f8;
  font-family: var(--display);
  font-size: 1.12rem;
  font-style: italic;
}

.byline::before {
  width: 38px;
  height: 1px;
  background: var(--accent);
  content: "";
}

.byline span {
  color: #bbaab3;
  font-family: var(--sans);
  font-size: 0.63rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  color: #bbaab3;
  font-size: 0.71rem;
  font-weight: 750;
}

.hero-meta b {
  color: var(--accent);
  font-size: 0.78rem;
}

.hero-visual {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 160px 22px 22px 22px;
  margin: 0;
  background: #250f1d;
  box-shadow: 0 50px 110px rgba(0, 0, 0, 0.48);
  transform: rotate(1.2deg);
}

.hero-visual::before {
  position: absolute;
  inset: 17px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 143px 11px 11px 11px;
  content: "";
  pointer-events: none;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 620px;
  object-fit: cover;
  object-position: 58% center;
  filter: saturate(1.06) contrast(1.04);
  transform: scale(1.015);
  transition: transform 800ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-visual:hover img {
  transform: scale(1.05);
}

.hero-visual figcaption {
  position: absolute;
  right: 22px;
  bottom: 22px;
  left: 22px;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 19px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(20, 10, 16, 0.78);
  color: #f8edf2;
  font-size: 0.76rem;
  backdrop-filter: blur(14px);
}

.hero-visual figcaption span {
  color: #ff9ac3;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.signal-strip {
  position: relative;
  left: 50%;
  display: flex;
  width: 100vw;
  overflow: hidden;
  border-block: 1px solid rgba(255, 255, 255, 0.12);
  transform: translateX(-50%) rotate(-1.2deg);
  background: var(--accent);
  color: var(--night);
  font-size: 0.73rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.signal-strip div {
  display: flex;
  min-width: max-content;
  align-items: center;
  gap: 24px;
  padding: 13px 12px;
  animation: signal-scroll 28s linear infinite;
}

.signal-strip i {
  color: #fff;
  font-style: normal;
}

@keyframes signal-scroll {
  to {
    transform: translateX(-100%);
  }
}

/* Editorial story layout */
.content {
  padding: 38px 0 74px;
  margin: 0;
}

.story-block {
  display: grid;
  grid-template-columns: minmax(220px, 0.36fr) minmax(0, 0.64fr);
  gap: clamp(40px, 7vw, 100px);
  padding: clamp(62px, 8vw, 102px) 0;
  border-bottom: 1px solid var(--line);
}

.story-heading {
  align-self: start;
}

.story-index {
  display: inline-flex;
  width: 39px;
  height: 39px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(var(--accent-rgb), 0.38);
  border-radius: 50%;
  margin-bottom: 22px;
  background: rgba(var(--accent-rgb), 0.09);
  color: var(--accent);
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.story-heading h2 {
  margin-bottom: 0;
}

.story-body {
  min-width: 0;
  color: var(--ink-soft);
}

.story-body > :first-child {
  margin-top: 0;
}

.story-body p,
.story-body li {
  max-width: 74ch;
}

.story-body p {
  margin: 0 0 1.25rem;
}

.story-body > p:first-child {
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.28rem, 2.1vw, 1.7rem);
  line-height: 1.45;
}

.story-body strong {
  color: var(--ink);
}

.story-body ul,
.story-body ol {
  padding-left: 1.3rem;
}

.story-body li {
  margin-block: 0.55rem;
  padding-left: 0.35rem;
}

.story-body li::marker {
  color: var(--accent);
  font-weight: 900;
}

.story-body h3 {
  margin: 34px 0 10px;
}

.home-page .content {
  position: relative;
  left: 50%;
  width: 100vw;
  padding: 46px max(20px, calc((100vw - 1160px) / 2)) 90px;
  transform: translateX(-50%);
  background:
    radial-gradient(
      circle at 85% 8%,
      rgba(242, 80, 143, 0.13),
      transparent 24rem
    ),
    #f5eff2;
}

.home-page .story-block {
  max-width: 1160px;
  margin-inline: auto;
}

.home-page .story-block:first-child .story-heading h2 {
  font-size: clamp(3rem, 5.3vw, 5.5rem);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 34px 0 24px;
}

.card {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--ink);
  border-radius: 3px;
  background: var(--surface);
  box-shadow: 8px 8px 0 rgba(var(--accent-rgb), 0.24);
  color: var(--ink);
  transition:
    transform 200ms ease,
    box-shadow 200ms ease,
    background 200ms ease;
}

.card::after {
  position: absolute;
  top: -42px;
  right: -42px;
  width: 104px;
  height: 104px;
  border: 1px solid rgba(var(--accent-rgb), 0.52);
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.08);
  content: "";
}

.card:nth-child(2) {
  transform: translateY(22px);
  box-shadow: 8px 8px 0 rgba(85, 181, 168, 0.27);
}

.card:hover {
  background: #fff;
  box-shadow: 14px 14px 0 rgba(var(--accent-rgb), 0.3);
  transform: translate(-4px, -4px);
}

.card:nth-child(2):hover {
  transform: translate(-4px, 18px);
}

.card h3 {
  position: relative;
  z-index: 2;
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.card p {
  position: relative;
  z-index: 2;
  margin-bottom: 18px;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.card-index {
  display: block;
  margin-bottom: 16px;
  color: var(--accent);
  font-family: var(--sans);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.button,
.card a.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-size: 0.78rem;
  font-weight: 850;
  text-decoration: none;
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.button::after,
.card a.button::after {
  content: "↗";
}

.button:hover,
.card a.button:hover {
  background: var(--accent);
  color: var(--night);
  transform: translateX(3px);
}

.callout {
  position: relative;
  padding: 25px 26px 25px 34px;
  border: 1px solid rgba(var(--accent-rgb), 0.32);
  border-radius: 2px;
  margin: 34px 0 0;
  background:
    linear-gradient(135deg, rgba(var(--accent-rgb), 0.12), transparent),
    var(--night-soft);
  box-shadow: 7px 7px 0 rgba(var(--accent-rgb), 0.24);
  color: #eadce4;
}

.callout::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 7px;
  background: var(--accent);
  content: "";
}

.callout strong {
  color: white;
}

.citation {
  color: var(--accent);
  font-size: 0.9em;
  font-weight: 850;
  text-decoration: underline dotted;
}

.badge {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  border-radius: 999px;
  margin: 4px 4px 4px 0;
  background: rgba(var(--accent-rgb), 0.09);
  color: var(--ink);
  font-size: 0.77rem;
  font-weight: 800;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--ink);
  border-radius: 2px;
  margin: 30px 0;
  background: white;
  box-shadow: 8px 8px 0 rgba(var(--accent-rgb), 0.22);
}

table {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
}

th,
td {
  padding: 15px 17px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--night);
  color: white;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

th:first-child {
  border-left: 7px solid var(--accent);
}

tbody tr:nth-child(even) {
  background: rgba(var(--accent-rgb), 0.045);
}

tbody tr:last-child td {
  border-bottom: 0;
}

.page-nav {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 36px 0 76px;
  flex-wrap: wrap;
}

.page-nav a {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  padding: 12px 18px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: 0.79rem;
  font-weight: 850;
  text-decoration: none;
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.page-nav a:hover {
  background: var(--ink);
  color: white;
  transform: translateY(-3px);
}

.ref {
  padding: 0;
  list-style: none;
  counter-reset: references;
}

.ref li {
  position: relative;
  max-width: none;
  padding: 0 0 22px 52px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
  counter-increment: references;
  overflow-wrap: anywhere;
}

.ref li::before {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border: 1px solid rgba(var(--accent-rgb), 0.36);
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--accent);
  content: counter(references, decimal-leading-zero);
  font-size: 0.65rem;
  font-weight: 900;
}

footer {
  position: relative;
  z-index: 2;
  padding: 44px 0 48px;
  border-top: 1px solid var(--line-light);
  background:
    radial-gradient(
      circle at 88% 15%,
      rgba(var(--accent-rgb), 0.2),
      transparent 22rem
    ),
    var(--night);
  color: #cdbfc7;
  font-size: 0.83rem;
}

footer strong {
  color: white;
  font-family: var(--display);
  font-size: 1.16rem;
  font-weight: 600;
}

.small {
  display: inline-block;
  margin-top: 9px;
  color: #ac9ba4;
}

.js .reveal-item {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 620ms ease,
    transform 620ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.js .reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1060px) {
  .nav-status {
    display: none;
  }

  .home-page .home-hero {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding-top: 30px;
  }

  .hero-visual,
  .hero-visual img {
    min-height: 540px;
  }

  .story-block {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .story-heading h2 {
    max-width: 12ch;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 28px, 1160px);
  }

  body > header {
    top: 10px;
  }

  .nav {
    grid-template-columns: 1fr auto;
    min-height: 66px;
    border-radius: 19px;
  }

  .brand {
    padding-left: 14px;
    font-size: 0.68rem;
  }

  .brand::before {
    width: 36px;
    height: 36px;
  }

  .brand {
    font-size: 0;
  }

  .brand::after {
    color: #fff8fb;
    content: "IT 201";
    font-size: 0.68rem;
    letter-spacing: 0.1em;
  }

  .menu-button {
    display: grid;
  }

  .primary-nav {
    position: absolute;
    top: calc(100% + 9px);
    right: 0;
    left: 0;
    display: grid;
    justify-content: stretch;
    gap: 3px;
    padding: 9px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 18px;
    background: rgba(25, 16, 23, 0.97);
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.44);
    backdrop-filter: blur(22px) saturate(145%);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px) scale(0.985);
    transform-origin: top;
    transition:
      opacity 180ms ease,
      transform 180ms ease;
  }

  .nav[data-menu-open="true"] .primary-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .active-pill {
    display: none;
  }

  .nav-group {
    grid-template-columns: 1fr auto;
  }

  .nav-group.has-dropdown::after {
    display: none;
  }

  .nav-link {
    justify-content: flex-start;
    padding: 13px 14px;
    font-size: 0.76rem;
  }

  .nav-group.is-active > .nav-link {
    border: 1px solid rgba(var(--accent-rgb), 0.34);
    background: rgba(var(--accent-rgb), 0.15);
  }

  .submenu-toggle {
    width: 42px;
    height: 42px;
    margin: 0 3px 0 0;
  }

  .nav-dropdown,
  .nav-group:last-child .nav-dropdown {
    position: static;
    grid-column: 1 / -1;
    width: auto;
    max-height: 0;
    margin: 0 4px;
    overflow: hidden;
    padding: 0 8px;
    border: 0;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.035);
    box-shadow: none;
    opacity: 0;
    pointer-events: none;
    transform: none;
    transition:
      max-height 220ms ease,
      opacity 160ms ease,
      padding 220ms ease;
  }

  .nav-group:hover .nav-dropdown,
  .nav-group:focus-within .nav-dropdown,
  .nav-group:last-child:hover .nav-dropdown,
  .nav-group:last-child:focus-within .nav-dropdown {
    max-height: 0;
    padding-block: 0;
    opacity: 0;
    pointer-events: none;
    transform: none;
  }

  .nav-group[data-open="true"] .nav-dropdown,
  .nav-group:last-child[data-open="true"] .nav-dropdown {
    max-height: 270px;
    padding-block: 8px;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .dropdown-eyebrow {
    display: none;
  }

  .dropdown-link {
    padding: 10px 11px;
  }

  .reading-progress {
    right: 14px;
    left: 14px;
  }

  .hero {
    min-height: 500px;
    padding: 112px 18px 78px;
  }

  .hero h1 {
    max-width: 9.4ch;
    font-size: clamp(3.25rem, 15.5vw, 5.1rem);
  }

  .hero .lead {
    max-width: 88%;
    font-size: 1rem;
  }

  .chapter-stamp {
    right: -25px;
    bottom: 24px;
    width: 125px;
    height: 125px;
    opacity: 0.78;
  }

  .chapter-stamp span {
    font-size: 2.7rem;
  }

  .chapter-stamp small {
    max-width: 86px;
    font-size: 0.52rem;
  }

  .home-page main.container {
    width: min(100% - 28px, 1380px);
  }

  .home-page .home-hero {
    min-height: 0;
    padding-block: 38px 72px;
  }

  .home-page h1 {
    max-width: 8ch;
    font-size: clamp(3.65rem, 17vw, 5.2rem);
  }

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

  .hero-meta span:last-child {
    grid-column: 1 / -1;
  }

  .hero-visual,
  .hero-visual img {
    min-height: 450px;
  }

  .hero-visual {
    border-radius: 100px 14px 14px 14px;
  }

  .hero-visual::before {
    border-radius: 84px 7px 7px 7px;
  }

  .hero-visual figcaption {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .story-block {
    padding-block: 58px;
  }

  .home-page .content {
    padding-inline: 18px;
  }

  h2,
  .home-page .story-block:first-child .story-heading h2 {
    font-size: clamp(2.55rem, 12vw, 4rem);
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .card,
  .card:nth-child(2),
  .card:hover,
  .card:nth-child(2):hover {
    transform: none;
  }

  .page-nav {
    display: grid;
  }

  .page-nav a {
    justify-content: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

  .js .reveal-item {
    opacity: 1;
    transform: none;
  }
}

@media print {
  body,
  .home-page {
    background: white;
    color: black;
  }

  body > header,
  .reading-progress,
  .pointer-glow,
  .signal-strip,
  .page-nav,
  .chapter-stamp,
  .hero-visual {
    display: none !important;
  }

  .hero,
  .home-page .home-hero {
    left: auto;
    display: block;
    width: auto;
    min-height: 0;
    padding: 34px 0;
    transform: none;
    background: white;
    color: black;
  }

  .hero h1,
  .hero .lead,
  .kicker {
    color: black;
  }

  .content,
  .home-page .content {
    left: auto;
    width: auto;
    padding: 0;
    transform: none;
    background: white;
  }

  .story-block {
    display: block;
    padding: 24px 0;
    break-inside: avoid;
  }

  .card,
  .callout,
  .table-wrap {
    box-shadow: none;
  }

  .callout {
    background: white;
    color: black;
  }
}
