/* ============================================================
   sections.css — the eight page regions, in document order:
   hero · about · ticker · work · manifesto · process ·
   workshop · contact — plus their repeated components.
   Values lifted verbatim from the Design output.
   ============================================================ */

/* ============ 01 — HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 88px 5vw 56px;
  display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden;
  background: var(--bone); color: var(--ink);
}
.hero__canvas {
  position: absolute; top: 53%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(88vh, 72vw); height: min(88vh, 72vw);
  pointer-events: none;
}
.hero__topline {
  position: relative; z-index: 1;
  display: flex; justify-content: space-between; gap: 24px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  color: rgba(20,20,20,0.6);
  border-bottom: 1px solid rgba(20,20,20,0.35);
  padding-bottom: 14px;
}
.hero__namewrap { position: relative; z-index: 1; align-self: flex-start; margin: 0 auto; }
.hero__name {
  margin: 0;
  font-family: var(--font-display); font-weight: 400;
  font-size: 13.5vw; line-height: 0.92; letter-spacing: 0.01em;
  text-transform: uppercase;
  cursor: help;
}
/* Tooltip is pure CSS now — reveals when the name is hovered. */
.hero__tip {
  position: absolute; top: 100%; left: 50%;
  margin-top: 20px;
  transform: translateX(-50%) translateY(6px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  background: var(--ink); color: var(--bone);
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.04em;
  padding: 9px 14px; white-space: nowrap; z-index: 6;
}
.hero__name:hover ~ .hero__tip,
.hero__namewrap:focus-within .hero__tip {
  opacity: 1; transform: translateX(-50%) translateY(0);
}
.hero__bottom {
  position: relative; z-index: 1;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 32px;
}
.hero__tagline {
  margin: 0;
  font-size: clamp(18px, 1.5vw, 24px); font-weight: 500;
  line-height: 1.4; max-width: 26ch; text-wrap: pretty;
}
.hero__scroll {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  color: rgba(20,20,20,0.6); text-align: right;
}

/* ============ 02 — ABOUT ============ */
.about {
  background: var(--bone); color: var(--ink);
  padding: 15vh 5vw 13vh;
  border-top: 1px solid var(--ink);
}
.about__label {
  display: flex; justify-content: space-between; gap: 24px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  color: rgba(20,20,20,0.55);
  margin-bottom: 6vh;
}
.about__heading {
  margin: 0;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(28px, 4vw, 60px); line-height: 1.02; letter-spacing: 0.01em;
  text-transform: uppercase; max-width: 24ch; text-wrap: balance;
}
.about__grid {
  margin-top: 7vh;
  border-top: 1px solid rgba(20,20,20,0.25);
  padding-top: 7vh;
  display: grid; grid-template-columns: 130px minmax(0, 1fr) 300px;
  gap: 44px; align-items: start;
}
.about__kicker { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; color: rgba(20,20,20,0.5); }
.about__body { display: flex; flex-direction: column; gap: 24px; max-width: 62ch; }
.about__body p { margin: 0; font-size: clamp(17px, 1.3vw, 21px); line-height: 1.62; text-wrap: pretty; }

.accent { color: var(--blue); }
.accent--500 { color: var(--blue); font-weight: 500; }

.info-box { border: 1px solid rgba(20,20,20,0.25); padding: 24px 22px; display: flex; flex-direction: column; gap: 20px; }
.info-box__k { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; color: rgba(20,20,20,0.5); margin-bottom: 7px; }
.info-box__v { font-family: var(--font-mono); font-size: 12.5px; line-height: 1.5; color: var(--ink); }

/* ============ TICKER ============ */
.ticker {
  background: var(--blue); color: var(--bone);
  overflow: hidden;
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
}
.ticker__row {
  display: flex; width: max-content; white-space: nowrap;
  animation: tickerMove 30s linear infinite;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em;
  padding: 11px 0;
}
.ticker__row span { padding-right: 48px; }

/* ============ 03 — WORK (horizontal track) ============ */
.work { height: 576vh; position: relative; background: var(--ink); color: var(--bone); }
.work__sticky {
  position: sticky; top: 0; height: 100vh;
  overflow: hidden; user-select: none; touch-action: pan-y;
}
.work__track { display: flex; height: 100%; width: max-content; will-change: transform; }

.work__intro {
  flex-shrink: 0; width: 36vw; height: 100%;
  padding: 14vh 4vw 10vh;
  display: flex; flex-direction: column; justify-content: space-between;
}
.work__big { font-family: var(--font-display); font-size: 9vh; line-height: 0.95; text-transform: uppercase; }
.work__sub { margin-top: 18px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: rgba(244,241,234,0.55); }
.work__hint { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: rgba(244,241,234,0.55); }

.work__counter { position: absolute; bottom: 5vh; left: 4vw;  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; color: var(--bone); }
.work__drag    { position: absolute; bottom: 5vh; right: 4vw; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; color: rgba(244,241,234,0.5); }

/* Panels */
.panel {
  flex-shrink: 0; width: 60vw; height: 100%;
  border-left: 1px solid rgba(244,241,234,0.22);
  padding: 11vh 3.5vw 8vh;
  display: flex; flex-direction: column;
}
.panel__visual { position: relative; width: 100%; flex: 1; min-height: 0; overflow: hidden; }
.panel__visual--blue {
  background-color: var(--blue);
  background-image:
    repeating-linear-gradient(90deg, rgba(244,241,234,0.13) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(0deg,  rgba(244,241,234,0.13) 0 1px, transparent 1px 56px);
}
.panel__visual--dark {
  background-color: var(--ink);
  border: 1px solid rgba(244,241,234,0.22);
  background-image:
    repeating-linear-gradient(90deg, rgba(244,241,234,0.08) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(0deg,  rgba(244,241,234,0.08) 0 1px, transparent 1px 56px);
}
.panel__visual--dark-plain { background-color: var(--ink); border: 1px solid rgba(244,241,234,0.22); }
.panel__center { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.panel__center--pad { padding: 10px; }
.panel__plate {
  position: absolute; left: 18px; bottom: 16px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em;
  color: rgba(244,241,234,0.85);
}
.panel__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-top: 3.4vh; }
.panel__id { display: flex; align-items: baseline; gap: 18px; }
.panel__num { font-family: var(--font-mono); font-size: 14px; color: var(--blue-muted); }
.panel__title { font-family: var(--font-display); font-size: 6vh; line-height: 0.9; text-transform: uppercase; white-space: nowrap; }
.panel__type { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: rgba(244,241,234,0.5); white-space: nowrap; }
.panel__desc { margin: 1.6vh 0 0; font-size: 16px; line-height: 1.5; color: rgba(244,241,234,0.75); max-width: 42ch; }

/* The one door out of each panel — always-visible mono tag, sole click target. */
.panel__meta-right { display: flex; align-items: baseline; gap: 16px; }
.panel__view {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  color: var(--bone); text-decoration: none; white-space: nowrap;
  padding: 6px 10px; border: 1px solid rgba(244,241,234,0.35); cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
  /* Block native text-selection / link-dragging so a drag from the tag scrolls
     the track instead of starting a link ghost-drag. */
  user-select: none; -webkit-user-drag: none;
}
/* Hover flourish (desktop): brackets pulse blue. State-change only — no motion. */
.panel__view:hover { color: var(--blue); border-color: var(--blue); }
/* Panel 02 has no door — same slot, but inert and visibly intentional. */
.panel__view--here { color: rgba(244,241,234,0.5); border-style: dashed; cursor: default; }
.panel__view--here:hover { color: rgba(244,241,234,0.5); border-color: rgba(244,241,234,0.35); }

/* Food Decider in-card 3×3 grid graphic */
.fdc-grid { display: grid; grid-template-columns: repeat(3, 58px); grid-template-rows: repeat(3, 58px); }
.fdc-grid > i { border: 1px solid rgba(244,241,234,0.5); }
.fdc-grid > i.on { background: var(--bone); }

/* Jonanthan.com in-card nested frame graphic */
.jon-frame { position: relative; width: 240px; height: 150px; border: 1px solid rgba(244,241,234,0.7); display: flex; align-items: center; justify-content: center; }
.jon-inner { width: 150px; height: 92px; border: 1px solid rgba(244,241,234,0.55); display: flex; align-items: center; justify-content: center; }
.jon-block { width: 58px; height: 36px; background: var(--blue); }

/* SVG sizing inside panels */
.panel-svg--cairn   { width: min(58%, 400px); height: auto; }
.panel-svg--stratum { width: 100%; height: 100%; }
.panel-svg--roost   { width: min(40%, 230px); height: auto; }
.panel-svg--orbit   { width: min(62%, 380px); height: auto; }

/* End-of-track card */
.work__end { flex-shrink: 0; width: 46vw; height: 100%; border-left: 1px solid rgba(244,241,234,0.22); display: flex; align-items: center; justify-content: center; }
.work__end-inner { position: relative; padding: 44px 60px; text-align: center; }
.work__end-title { font-family: var(--font-display); font-size: 5.5vh; line-height: 1; text-transform: uppercase; }
.work__end-meta { margin-top: 14px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; color: rgba(244,241,234,0.55); }

/* ============ 04 — MANIFESTO ============ */
.manifesto {
  position: relative; overflow: hidden;
  background: var(--blue); color: var(--bone);
  padding: 16vh 5vw 14vh;
}
.manifesto__canvas { position: absolute; top: 20%; right: -3%; width: min(52%, 620px); height: 78%; z-index: 0; pointer-events: none; }
.manifesto__label {
  position: relative; z-index: 1;
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  color: rgba(244,241,234,0.7);
  margin-bottom: 9vh;
}
.manifesto__lead {
  position: relative; z-index: 1;
  font-family: var(--font-display); font-size: clamp(48px, 7.2vw, 124px);
  line-height: 0.98; text-transform: uppercase; max-width: 14ch; text-wrap: pretty;
}
.manifesto__belief-wrap { position: relative; z-index: 1; margin: 8vh 0 0; padding-top: 7vh; }
.manifesto__belief {
  font-family: var(--font-display); font-size: clamp(30px, 3.6vw, 62px);
  line-height: 1.06; text-transform: uppercase;
  color: transparent; -webkit-text-stroke: 1.5px var(--bone);
  max-width: 26ch; text-wrap: pretty;
}

/* ============ 05 — HOW I BUILD (PROCESS) ============ */
.process { padding: 13vh 5vw; border-bottom: 1px solid var(--ink); background: var(--bone); color: var(--ink); }
.process__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 7vh; gap: 24px; flex-wrap: wrap; }
.process__head-left { display: flex; align-items: baseline; gap: 22px; }
.process__title { font-family: var(--font-display); font-size: clamp(28px, 3vw, 48px); text-transform: uppercase; }
.process__foot { margin-top: 36px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; color: rgba(20,20,20,0.55); }

.tag { background: var(--blue); color: var(--bone); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; padding: 5px 10px; }

/* View toggle */
.toggle { display: flex; border: 1px solid var(--ink); }
.toggle__btn { background: transparent; color: var(--ink); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; padding: 9px 16px; border: none; cursor: pointer; }
.toggle__btn + .toggle__btn { border-left: 1px solid var(--ink); }
.toggle__btn.is-active { background: var(--ink); color: var(--bone); }

/* Artifact-trail flow */
.flow { display: flex; align-items: stretch; gap: 0; }
.flow__step { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.flow__steplabel { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; color: rgba(20,20,20,0.55); }
.flow__arrow { align-self: center; flex-shrink: 0; padding: 0 12px; font-family: var(--font-mono); font-size: 16px; color: var(--blue); }

.file-card { flex: 1; border: 1px solid var(--ink); background: var(--offwhite); display: flex; flex-direction: column; }
.file-card__head { border-bottom: 1px solid var(--ink); padding: 9px 12px; display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; }
.file-card__tag { color: var(--blue); }
.file-card__body { padding: 12px; font-family: var(--font-mono); font-size: 10px; line-height: 1.8; color: rgba(20,20,20,0.55); }

.tool-card { flex: 1; padding: 16px 14px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.tool-card--blue { background: var(--blue); color: var(--bone); }
.tool-card--dark { background: var(--ink); color: var(--bone); }
.tool-card__name { font-family: var(--font-display); font-size: 24px; line-height: 1.05; text-transform: uppercase; }
.tool-card__tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; color: rgba(244,241,234,0.75); }

/* Terminal-session view */
.terminal { background: var(--ink); color: var(--bone); }
.terminal__head { border-bottom: 1px solid rgba(244,241,234,0.22); padding: 11px 18px; display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: rgba(244,241,234,0.6); }
.terminal__body { padding: 26px 22px 30px; font-family: var(--font-mono); font-size: 13px; line-height: 2.0; }
.terminal__line { margin-top: 6px; }
.terminal__prompt { color: rgba(244,241,234,0.45); }
.terminal__cmd { font-weight: 500; }
.terminal__out { color: rgba(244,241,234,0.55); padding-left: 18px; }
.terminal__badge { background: var(--blue); color: var(--bone); font-size: 10px; padding: 2px 7px; letter-spacing: 0.1em; margin-left: 10px; }
.terminal__cursor { display: inline-block; width: 9px; height: 16px; background: var(--bone); vertical-align: text-bottom; animation: blinkDot 1.1s steps(1) infinite; }

/* ============ 06 — WORKSHOP ============ */
.workshop { padding: 13vh 5vw; display: flex; justify-content: center; background: var(--bone); color: var(--ink); }
.workshop__box { position: relative; width: min(960px, 100%); padding: 52px 56px; }
.workshop__head { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 34px; }
.workshop__status { display: flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; color: var(--blue); }
.workshop__status-dot { width: 8px; height: 8px; background: var(--blue); animation: blinkDot 1.1s steps(1) infinite; }
.workshop__title { font-family: var(--font-display); font-size: clamp(34px, 4vw, 60px); line-height: 1; text-transform: uppercase; }
.workshop__desc { margin: 22px 0 0; font-size: 17px; line-height: 1.6; max-width: 52ch; color: rgba(20,20,20,0.8); text-wrap: pretty; }
.workshop__reserved {
  margin-top: 36px; height: 260px;
  border: 1px solid var(--ink);
  background: repeating-linear-gradient(45deg, rgba(20,20,20,0.05) 0px, rgba(20,20,20,0.05) 1px, transparent 1px, transparent 12px);
  display: flex; align-items: center; justify-content: center;
}
.workshop__reserved span {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em;
  color: rgba(20,20,20,0.6);
  background: var(--bone); padding: 6px 12px; border: 1px solid rgba(20,20,20,0.3);
}
.workshop__foot { margin-top: 22px; display: flex; justify-content: space-between; gap: 24px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; color: rgba(20,20,20,0.6); flex-wrap: wrap; }

/* ============ 07 — CONTACT ============ */
.contact {
  background: var(--ink); color: var(--bone);
  min-height: 86vh; padding: 13vh 5vw 0;
  display: flex; flex-direction: column; justify-content: space-between;
}
.contact__label { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: rgba(244,241,234,0.55); }
.contact__title { font-family: var(--font-display); font-size: clamp(60px, 9.5vw, 168px); line-height: 0.95; text-transform: uppercase; }
.contact__body { margin: 3vh 0 0; max-width: 52ch; font-size: clamp(16px, 1.2vw, 19px); line-height: 1.55; color: rgba(244,241,234,0.72); text-wrap: pretty; }
.contact__links { margin-top: 4vh; display: flex; gap: 16px; flex-wrap: wrap; }
.contact__foot {
  border-top: 1px solid rgba(244,241,234,0.25);
  padding: 18px 0 26px;
  display: flex; justify-content: space-between; gap: 24px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em;
  color: rgba(244,241,234,0.45); flex-wrap: wrap;
}

/* Buttons (contact CTAs) */
.btn {
  display: inline-block;
  border: 1px solid var(--bone); color: var(--bone);
  text-decoration: none;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em;
  padding: 14px 22px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  cursor: pointer;
}
.btn:hover { background: var(--blue); border-color: var(--blue); color: var(--bone); }
