/* ============================================================
   Hashaam Khan — Portfolio · Home-only styles
   Loaded exclusively on index.html. Everything used across every
   page lives in css/style.css.
   ============================================================ */

/* ---------- hero ---------- */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 96px var(--pad) 48px;
  position: relative;
}
.hero-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 20px; margin-bottom: clamp(24px, 4vh, 56px);
}
.hero-meta { display: flex; flex-direction: column; gap: 4px; color: var(--muted); }
.hero-status {
  display: none;
}
.hero-status:has(.presence-chip--ready) {
  display: block;
}
.hero-status span {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
}
.hero-status.reveal-line > span { display: inline-block; }

.hero-status.reveal-line > .presence-chip.presence-chip--ready {
  display: inline-flex;
}

.presence-chip {
  --chip-accent: var(--moss);
  display: none;
  align-items: center;
  flex-wrap: nowrap;
  gap: 1em;
  padding: 0.65em 0.85em;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(230, 232, 221, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  transition: border-color 0.25s var(--ease-soft), background 0.25s var(--ease-soft);
}
.presence-chip--coding,
.presence-chip--working {
  --chip-accent: #3d7a55;
}
.presence-chip--browsing {
  --chip-accent: #4a7fb8;
}
.presence-chip--away {
  --chip-accent: #b8922a;
}
.presence-chip--coffee {
  --chip-accent: #c96f3a;
}
.presence-chip--meeting {
  --chip-accent: #7a62b8;
}
.presence-chip--listening {
  --chip-accent: #b85a8a;
}
.presence-chip--gaming {
  --chip-accent: #3a8f96;
}
.presence-chip--offline {
  --chip-accent: #838383;
  opacity: 0.72;
}
.presence-chip__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75em;
  height: 1.75em;
  border-radius: 50%;
  flex-shrink: 0;
}
.presence-chip__icon svg {
  width: 1.25em;
  height: 1.25em;
  color: var(--chip-accent);
}
.presence-chip__divider {
  width: 1px;
  height: 1em;
  background: var(--line);
  flex-shrink: 0;
}
.presence-chip__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--chip-accent);
  flex-shrink: 0;
}
.presence-chip__label {
  flex-shrink: 0;
  padding-right: 0.25em;
}

.hero-name {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(3.2rem, 11.8vw, 10.8rem);
  line-height: 0.86; letter-spacing: -0.025em;
  text-transform: uppercase;
  position: relative;
}
.hn-row { display: block; }
.hn-row-2 { display: flex; align-items: baseline; gap: clamp(20px, 4vw, 64px); flex-wrap: wrap; }
.hn-line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hn-inner { display: inline-block; }
.hn-mark {
  color: var(--signal); font-weight: 500;
  background: none; border: none; cursor: pointer;
  font: inherit; padding: 0 0.14em; line-height: inherit;
  display: inline-block; vertical-align: baseline;
  outline: none;
}
.hn-mark-g {
  display: inline-block;
  transition: transform 0.4s var(--ease);
}
.hn-mark:hover .hn-mark-g { transform: rotate(90deg) scale(1.06); }
.hn-role {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.15rem, 2.6vw, 2rem); line-height: 1.15;
  letter-spacing: 0; text-transform: none; color: var(--ink);
}
.hero-note {
  position: absolute; right: clamp(0px, 4vw, 60px); top: -1.2em;
  text-transform: none; letter-spacing: 0;
  transform: rotate(-2.5deg) translateX(-0.65em);
}
.hero-note .note-arrow { margin-left: 1em; }
@media (max-width: 900px) { .hero-note { display: none; } }

.hero-bottom {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 40px; margin-top: clamp(28px, 5vh, 64px);
}
.hero-lead {
  max-width: 560px;
  font-size: clamp(1.05rem, 1.9vw, 1.3rem); line-height: 1.5;
  color: var(--ink);
}
.hero-lead em { color: var(--moss); }

.egg-corner {
  position: relative; flex-shrink: 0;
  background: none; border: none; padding: 0;
  cursor: pointer; text-align: right;
  min-width: clamp(120px, 14vw, 180px);
  min-height: 2.4em;
}
.egg-corner-note {
  display: inline-block;
  text-transform: none; letter-spacing: 0;
  transform: rotate(-2.5deg);
  color: var(--muted);
  opacity: 0; visibility: hidden;
  transition:
    opacity 0.75s var(--ease-soft),
    visibility 0s linear 0.75s,
    color 0.3s;
}
.egg-corner-squiggle {
  display: block; width: 100%; height: 10px; margin-top: 2px;
  stroke: currentColor; fill: none; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
  opacity: 0.72;
}
.egg-corner:hover .egg-corner-squiggle,
.egg-corner:focus-visible .egg-corner-squiggle { opacity: 1; }
.egg-corner.is-visible .egg-corner-note {
  opacity: 1; visibility: visible;
  transition: opacity 0.75s var(--ease-soft), visibility 0s, color 0.3s;
}
.egg-corner:hover .egg-corner-note,
.egg-corner:focus-visible .egg-corner-note { color: var(--signal); }
.egg-corner:focus-visible { outline: none; }
.egg-corner:focus-visible .egg-corner-note {
  text-decoration: underline; text-underline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .egg-corner .egg-corner-note {
    opacity: 1; visibility: visible;
    transition: color 0.3s;
  }
}

@media (max-width: 720px) {
  .hero-top { flex-direction: column; gap: 14px; }
  .hero-bottom { flex-direction: column; align-items: flex-start; }
  .egg-corner { align-self: flex-end; margin-top: -8px; }
}

.hero-scroll {
  display: flex; align-items: center; gap: 12px; color: var(--muted);
  margin-top: clamp(20px, 4vh, 44px);
}
.hs-line {
  width: 48px; height: 1px; background: var(--muted); display: inline-block;
  transform-origin: left; animation: hsline 2.4s var(--ease) infinite;
}
@keyframes hsline {
  0% { transform: scaleX(0); }
  55% { transform: scaleX(1); }
  100% { transform: scaleX(1); opacity: 0; }
}

/* hero big-headline reveal-in (uses base .reveal-line + .js.loaded) */
.js .hn-inner { transform: translateY(115%); }
.js.loaded .hn-inner {
  transform: translateY(0);
  transition: transform 1s var(--ease);
}
.js.loaded .hn-row:nth-child(1) .hn-inner { transition-delay: 0.10s; }
.js.loaded .hn-row-2 .hn-inner            { transition-delay: 0.18s; }
.js.loaded .hn-role > *                   { transition-delay: 0.32s; }
.js.loaded .hero-meta .reveal-line:nth-child(1) > * { transition-delay: 0.40s; }
.js.loaded .hero-meta .reveal-line:nth-child(2) > * { transition-delay: 0.46s; }
.js.loaded .hero-status > *               { transition-delay: 0.52s; }
.js.loaded .hero-lead > *                 { transition-delay: 0.44s; }

.js .hero-note,
.js .hero-scroll {
  opacity: 0;
}
.js .hero-scroll .hs-line { animation-play-state: paused; }
.js.loaded .hero-note,
.js.loaded .hero-scroll {
  opacity: 1;
  transition: opacity 0.85s var(--ease-soft);
  transition-delay: 0.52s;
}
.js.loaded .hero-scroll .hs-line { animation-play-state: running; }

/* ---------- marquee ---------- */
/* overflow: clip avoids creating a scroll container (unlike overflow: hidden)
   and lets us drop overflow-x: hidden from <body> entirely. */
.marquee {
  background: var(--olive); color: var(--paper);
  overflow: clip; padding: 16px 0;
}
.marquee-track {
  display: flex; width: max-content;
  animation: marquee 26s linear infinite;
}
.marquee-track span {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(0.95rem, 1.6vw, 1.25rem);
  text-transform: uppercase; letter-spacing: 0.06em;
  white-space: nowrap; padding-right: 12px;
}
.marquee-track i { font-style: normal; color: var(--signal); padding: 0 10px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- section head ---------- */
.section-head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 24px; flex-wrap: wrap;
  padding: 0 var(--pad); margin-bottom: clamp(36px, 6vh, 72px);
  position: relative;
}
.sh-title {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(2.2rem, 6vw, 4.6rem);
  line-height: 1; letter-spacing: -0.02em; text-transform: uppercase;
}
.sh-title em { text-transform: none; letter-spacing: 0; font-weight: 400; }
.sh-num {
  color: var(--moss); vertical-align: super;
  font-size: clamp(0.75rem, 1.4vw, 1rem); margin-right: 14px;
}
.sh-note { color: var(--muted); }
.sh-note a { border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: color 0.25s, border-color 0.25s; }
.sh-note a:hover { color: var(--moss); border-color: var(--moss); }

/* ---------- work ---------- */
.work { padding: clamp(72px, 12vh, 140px) 0; }
.work-grid {
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: clamp(20px, 3vw, 48px) clamp(16px, 2.4vw, 40px);
  padding: 0 var(--pad);
}
.tile { grid-column: span 5; display: block; position: relative; }
.tile-wide { grid-column: span 7; }
.tile:nth-child(3) { grid-column: 2 / span 5; }
.tile:nth-child(4) { grid-column: 7 / span 6; margin-top: clamp(-40px, -3vw, -16px); }
@media (max-width: 900px) {
  .tile, .tile-wide, .tile:nth-child(3), .tile:nth-child(4) {
    grid-column: 1 / -1; margin-top: 0;
  }
}

.tile-media {
  overflow: hidden; border-radius: 6px; position: relative;
  background: var(--paper-2); border: 1px solid var(--line);
}
.tile-media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  transform: scale(1.015);
  transition: transform 0.9s var(--ease);
}
.tile:hover .tile-media img { transform: scale(1.06); }

.tile-info { padding: 18px 4px 0; }
.tile-row {
  display: flex; justify-content: space-between; color: var(--muted);
  margin-bottom: 10px;
}
.tile-title {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem); line-height: 1.05;
  letter-spacing: -0.01em; margin-bottom: 8px;
  transition: color 0.3s var(--ease-soft);
}
.tile:hover .tile-title { color: var(--moss); }
.tile-desc { color: var(--muted); font-size: 0.95rem; max-width: 52ch; margin-bottom: 14px; }
.tile-tags { display: flex; flex-wrap: wrap; gap: 8px; color: var(--ink); }
.tile-tags span {
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px;
  transition: border-color 0.3s, color 0.3s;
}
.tile:hover .tile-tags span { border-color: rgba(74, 93, 58, 0.55); }
.tile-note {
  position: absolute; z-index: 4;
  left: 22px; bottom: 16%;
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
}
.tile-note .note-arrow { width: 38px; height: 26px; margin-left: 46px; margin-bottom: -4px; }
.tile-note-r {
  left: auto; right: 26px; bottom: 20%;
  transform: rotate(2deg); text-align: right;
}
.tile-note-r .note-arrow { margin-left: 0; margin-right: 40px; transform: scaleX(-1); }

.tile:hover .stamp { transform: rotate(2deg) scale(1.06); }

.js .tile { opacity: 0; transform: translateY(44px); }
.js .tile.in {
  opacity: 1; transform: none;
  transition: opacity 0.9s var(--ease-soft), transform 0.9s var(--ease);
}

/* ---------- about (dark) ---------- */
.about {
  background: var(--olive); color: var(--paper);
  padding: clamp(80px, 13vh, 150px) 0 clamp(72px, 12vh, 140px);
}
.section-head-dark .sh-note { color: var(--muted-d); }
.about-statement {
  padding: 0 var(--pad);
  font-family: var(--display); font-weight: 500;
  font-size: clamp(1.5rem, 3.6vw, 2.9rem);
  line-height: 1.22; letter-spacing: -0.01em;
  max-width: 1160px;
}
.about-statement em { color: var(--muted-d); }
.about-statement .u {
  font-style: normal; font-family: inherit;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 8' preserveAspectRatio='none'%3E%3Cpath d='M2 6 C 30 2, 60 7, 118 3' fill='none' stroke='%23e8541d' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 0 100%; background-size: 100% 0.28em;
  padding-bottom: 0.14em;
}
.about-statement span { display: block; }
.about-statement span + span { margin-top: 0.8em; }
.about-statement > span:not(.about-statement-detail) + .about-statement-detail {
  margin-top: clamp(1.5em, 3.5vh, 2.4em);
}
.about-statement-detail {
  font-size: clamp(1.05rem, 2.2vw, 1.65rem);
  line-height: 1.35;
  color: color-mix(in srgb, var(--paper) 62%, var(--olive));
}
.about-statement-detail em { color: inherit; }
.about-statement-detail .u { color: inherit; }

.about-facts {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line-d);
  border-top: 1px solid var(--line-d); border-bottom: 1px solid var(--line-d);
  margin-top: clamp(56px, 9vh, 100px);
}
.fact {
  background: var(--olive); padding: clamp(24px, 3vw, 44px) var(--pad);
  display: flex; flex-direction: column; gap: 10px;
}
.fact-n {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(2.2rem, 4.5vw, 3.8rem); line-height: 1; color: var(--paper);
}
.fact-l { color: var(--muted-d); }
@media (max-width: 860px) { .about-facts { grid-template-columns: repeat(2, 1fr); } }

/* ---------- experience ---------- */
.experience { padding: clamp(72px, 12vh, 140px) 0; }
.xp-list { border-top: 1px solid var(--line); }
.xp {
  position: relative;
  display: grid;
  grid-template-columns: minmax(130px, 0.8fr) minmax(300px, 2.8fr) minmax(110px, 0.7fr);
  gap: clamp(20px, 4vw, 64px);
  align-items: start;
  padding: clamp(28px, 4vw, 48px) var(--pad);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}
.xp::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: var(--olive);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.5s var(--ease);
}
.xp:hover::before { transform: scaleY(1); transform-origin: top; }
.xp > * { position: relative; z-index: 1; }
.xp-time,
.xp-place {
  color: var(--muted); padding-top: 7px;
  transition: color 0.35s var(--ease-soft);
}
.xp-place { text-align: right; }
.xp h3 {
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.7vw, 2.4rem);
  line-height: 1.05;
  margin-bottom: 12px;
  transition: color 0.35s var(--ease-soft), transform 0.5s var(--ease);
}
.xp p {
  max-width: 68ch; color: var(--muted);
  transition: color 0.35s var(--ease-soft);
}
.xp:hover h3 { color: var(--paper); transform: translateX(10px); }
.xp:hover p,
.xp:hover .xp-time,
.xp:hover .xp-place { color: var(--muted-d); }

@media (max-width: 760px) {
  .xp { grid-template-columns: 1fr; gap: 10px; }
  .xp-place { text-align: left; }
}

/* ---------- services ---------- */
.services { padding: clamp(72px, 12vh, 140px) 0; }
.service-list { border-top: 1px solid var(--line); }
.service {
  position: relative;
  display: grid;
  grid-template-columns: minmax(56px, 120px) 1fr minmax(0, 460px) 60px;
  align-items: center; gap: clamp(12px, 2vw, 32px);
  padding: clamp(24px, 3.4vw, 44px) var(--pad);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.service::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: var(--olive);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.5s var(--ease);
}
.service:hover::before { transform: scaleY(1); transform-origin: top; }
.service > * { position: relative; z-index: 1; }
.sv-num { color: var(--moss); }
.service:hover .sv-num { color: var(--muted-d); }
.sv-title {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.4rem, 3.2vw, 2.6rem); line-height: 1.05;
  letter-spacing: -0.015em; text-transform: uppercase;
  transition: color 0.35s var(--ease-soft), transform 0.5s var(--ease);
}
.sv-desc {
  color: var(--muted); font-size: 0.95rem;
  transition: color 0.35s var(--ease-soft);
}
.sv-arrow {
  font-size: 1.4rem; justify-self: end; color: var(--ink);
  transform: translateX(-8px); opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.3s, color 0.35s;
}
.service:hover .sv-title { color: var(--paper); transform: translateX(10px); }
.service:hover .sv-desc { color: var(--muted-d); }
.service:hover .sv-arrow { color: var(--signal); transform: translateX(0); opacity: 1; }
.sv-note { position: absolute; right: var(--pad); top: 8px; z-index: 2; }
@media (max-width: 860px) {
  .service { grid-template-columns: 48px 1fr 40px; }
  .sv-desc { grid-column: 2 / -1; grid-row: 2; }
  .sv-note { display: none; }
}

/* ---------- writing strip ---------- */
.writing { padding: clamp(72px, 12vh, 140px) 0; }
.post-list { border-top: 1px solid var(--line); }
.post {
  display: grid; grid-template-columns: minmax(120px, 220px) 1fr 60px;
  align-items: center; gap: clamp(12px, 2vw, 32px);
  padding: clamp(20px, 2.6vw, 34px) var(--pad);
  border-bottom: 1px solid var(--line);
  transition: background 0.35s var(--ease-soft);
}
.post:hover { background: var(--paper-2); }
.post-tag { color: var(--muted); }
.post-title {
  font-family: var(--body); font-weight: 500;
  font-size: clamp(1.02rem, 1.8vw, 1.3rem); line-height: 1.35;
  max-width: 62ch;
  transition: color 0.3s;
}
.post:hover .post-title { color: var(--moss); }
.post-arrow {
  justify-self: end; font-size: 1.2rem;
  transition: transform 0.35s var(--ease);
}
.post:hover .post-arrow { transform: translate(4px, -4px); color: var(--moss); }
@media (max-width: 720px) {
  .post { grid-template-columns: 1fr 40px; }
  .post-tag { grid-column: 1 / -1; }
}

/* ---------- contact (home footer) ---------- */
.contact {
  background: var(--olive); color: var(--paper);
  padding: clamp(80px, 14vh, 160px) var(--pad) 0;
  position: relative;
}
.contact-kicker { color: var(--muted-d); margin-bottom: 24px; }
.contact-mail { display: block; }
.cm-line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.cm-inner {
  display: inline-block;
  font-family: var(--display); font-weight: 600;
  font-size: clamp(3.4rem, 13vw, 12rem);
  line-height: 0.9; letter-spacing: -0.025em; text-transform: uppercase;
  transition: color 0.4s var(--ease-soft);
}
.cm-inner em { color: var(--muted-d); text-transform: none; letter-spacing: 0; transition: color 0.4s var(--ease-soft); }
.contact-mail:hover .cm-inner { color: var(--muted-d); }
.contact-mail:hover .cm-inner em { color: var(--paper); }
.cm-mailrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 26px; color: var(--paper);
  border-bottom: 1px solid var(--line-d); padding-bottom: 8px;
  font-size: 0.85rem; letter-spacing: 0.06em; text-transform: none;
  transition: color 0.3s, border-color 0.3s;
}
.cm-arr { transition: transform 0.35s var(--ease); }
.contact-mail:hover .cm-mailrow { color: var(--signal); border-color: var(--signal); }
.contact-mail:hover .cm-arr { transform: translate(4px, -4px); }
.contact-note { position: absolute; right: var(--pad); top: clamp(70px, 12vh, 140px); }
@media (max-width: 900px) { .contact-note { display: none; } }

.contact-links {
  display: flex; flex-wrap: wrap; gap: 14px 36px;
  margin-top: clamp(48px, 8vh, 88px);
}
.contact-links a {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted-d);
  position: relative; padding: 6px 0;
  transition: color 0.3s;
}
.contact-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--signal);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.contact-links a:hover { color: var(--paper); }
.contact-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.footer-bar {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px;
  color: var(--muted-d);
  border-top: 1px solid var(--line-d);
  margin-top: clamp(28px, 5vh, 48px);
  padding: 26px 0 30px;
}
.footer-bar .egg-hint { cursor: pointer; transition: color 0.3s; }
.footer-bar .egg-hint:hover { color: var(--signal); }

/* ============================================================
   KHAN.SYS — terminal easter egg (only shipped on the home page)
   ============================================================ */
.term {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(10px, 3vw, 40px);
  background: rgba(20, 22, 14, 0.82);
  backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s var(--ease-soft);
}
.term.open { opacity: 1; pointer-events: auto; }
.term-win {
  width: min(880px, 100%); height: min(600px, 86svh);
  background: #101408;
  border: 1px solid rgba(164, 168, 140, 0.3);
  border-radius: 8px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.5);
  display: flex; flex-direction: column;
  overflow: hidden;
  transform: translateY(24px) scale(0.98);
  transition: transform 0.35s var(--ease);
  position: relative;
}
.term.open .term-win { transform: none; }
.term-win::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: repeating-linear-gradient(
    0deg, rgba(220, 232, 190, 0.04) 0 1px, transparent 1px 3px
  );
}
.term-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: rgba(164, 168, 140, 0.08);
  border-bottom: 1px solid rgba(164, 168, 140, 0.18);
  flex-shrink: 0;
}
.term-dots { display: flex; gap: 6px; }
.term-dots i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.term-dots i:nth-child(1) { background: #e8541d; }
.term-dots i:nth-child(2) { background: #c9a53f; }
.term-dots i:nth-child(3) { background: #6f8f4f; }
.term-title {
  flex: 1; text-align: center;
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: #a4a88c;
}
.term-close {
  background: none; border: none; cursor: pointer;
  font-family: var(--mono); font-size: 0.8rem; color: #a4a88c;
  padding: 2px 6px;
}
.term-close:hover { color: #e8541d; }
.term-body {
  flex: 1; overflow-y: auto; overscroll-behavior: contain;
  padding: 18px 18px 8px;
  font-family: var(--mono); font-size: 0.82rem; line-height: 1.65;
  color: #ccd8ac;
}
.term-body::-webkit-scrollbar { width: 8px; }
.term-body::-webkit-scrollbar-thumb { background: rgba(164,168,140,0.3); border-radius: 4px; }
.term-body .t-dim  { color: #7c8266; }
.term-body .t-ok   { color: #9db87f; }
.term-body .t-hot  { color: #ff7a45; }
.term-body .t-head { color: #e6e8dd; }
.term-body a { color: #9db87f; text-decoration: underline; text-underline-offset: 3px; }
.term-body a:hover { color: #ff7a45; }
.term-body pre {
  font: inherit; white-space: pre-wrap; word-break: break-word;
  margin: 0 0 2px;
}
.term-inrow {
  display: flex; gap: 8px; align-items: baseline;
  padding: 4px 18px 16px; flex-shrink: 0;
}
.term-prompt { font-family: var(--mono); font-size: 0.82rem; color: #9db87f; white-space: nowrap; }
.term-input {
  flex: 1; background: none; border: none; outline: none;
  font-family: var(--mono); font-size: 0.82rem; color: #e6e8dd;
  caret-color: #ff7a45;
}

/* rm -rf gag: what the page looks like when css/style.css "gets removed" */
.rm-nuked, .rm-nuked * {
  font-family: "Times New Roman", Times, serif !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  color: #000 !important;
  background: #fff !important;
  border-color: #767676 !important;
  border-radius: 0 !important;
  animation: none !important;
}
.rm-nuked a { text-decoration: underline !important; color: #0000ee !important; }

/* ---------- motion off (home-specific reveals) ---------- */
@media (prefers-reduced-motion: reduce) {
  .js .tile,
  .js .hn-inner,
  .js .hero-note,
  .js .hero-scroll {
    opacity: 1 !important; transform: none !important;
  }
  .js .hero-scroll .hs-line { animation-play-state: running !important; }
}
