/* Keep every chapter's artwork in the same reading flow as its text. */
#motion-surface { display: none !important; }

.intro-content,
.about .story-spread {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: clamp(36px, 5.5vw, 110px);
  align-items: center;
  width: min(100%, 1660px);
  margin: 0 auto;
  padding-left: 8%;
  padding-right: 8%;
}
.intro-content { min-height: calc(100dvh - 158px); }
.intro-profile { width: 100%; max-width: 650px; }
.intro-figure {
  display: block;
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 640px;
  aspect-ratio: 10 / 9;
  margin: 0;
  overflow: hidden;
  border: 1px solid #bfc5bf;
  background: #f4f3ee url('./assets/security-practice.svg?v=threat-hunt-1') center / contain no-repeat;
  box-shadow: 0 24px 56px #1821271c;
}
.intro-figure hyperframes-player { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }

.about { padding: 0; }
.about .story-spread { min-height: calc(100dvh - 158px); padding-top: 44px; padding-bottom: 36px; }
.about .story-copy { width: 100%; max-width: 650px; padding: 0; }
.foundation-figure { align-self: center; margin: 0; }
.foundation-figure img { display: block; width: 100%; height: 100%; object-fit: contain; }

/* Make the career timeline part of the same 10:9 visual system as the operational diagrams. */
.career-overview {
  min-height: 0;
  align-items: center;
  padding-top: 36px;
  padding-bottom: 48px;
}
.career-overview-track {
  display: flex;
  flex-direction: column;
  align-self: center;
  border-color: #bfc5bf;
  background:
    linear-gradient(90deg, transparent calc(25% - 1px), #1821270c 25%, transparent calc(25% + 1px), transparent calc(50% - 1px), #1821270c 50%, transparent calc(50% + 1px), transparent calc(75% - 1px), #1821270c 75%, transparent calc(75% + 1px)),
    repeating-linear-gradient(0deg, transparent 0 39px, #18212706 40px),
    #f4f3ee;
  padding: clamp(20px, 2.8vw, 34px);
}
.career-overview-copy .career-origins {
  margin: clamp(22px, 3vh, 34px) 0 0;
}
.career-overview-copy .career-origin {
  border-color: #c5cbc7;
}
.career-overview-copy .career-origin p {
  font-size: 11px;
}
.career-track-header,
.career-track-title,
.career-track-axis-label,
.career-track-footer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.career-track-header,
.career-track-title > span,
.career-track-axis-label,
.career-track-footer {
  color: #6d7b77;
  font: 600 clamp(8px, .72vw, 10px)/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .055em;
}
.career-track-header {
  color: #182127;
  padding-bottom: 13px;
  border-bottom: 1px solid #bfc5bf;
}
.career-track-title {
  align-items: center;
  padding-top: clamp(12px, 1.6vw, 20px);
}
.career-track-title strong {
  color: #182127;
  font: 500 clamp(20px, 2vw, 30px)/1.1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: -.04em;
}
.career-track-axis {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
}
.career-track-axis-label {
  margin-bottom: clamp(14px, 2vw, 26px);
}
.career-track-axis-label span:last-child { text-align: right; }
.career-overview-track .career-tabs {
  display: flex;
  width: 100%;
  margin: 0;
  overflow-x: auto;
  overflow-y: hidden;
}
.career-overview-track .career-tabs button {
  flex: 1 0 max(60px, 25%);
  min-width: 60px;
  height: 95px;
  padding-right: 5px;
  color: #263238;
  font-size: clamp(22px, 2.25vw, 27px);
  letter-spacing: -.06em;
}
.career-overview-track .career-tabs button[aria-current="true"] {
  font-size: clamp(22px, 2.25vw, 27px);
  font-weight: 700;
}
.career-overview-track .career-tabs button small {
  max-width: calc(100% - 4px);
  white-space: normal;
}
.career-track-footer {
  align-items: flex-start;
  padding-top: 13px;
  border-top: 1px solid #bfc5bf;
}
.career-track-footer span:last-child { white-space: nowrap; }
.career-stage {
  min-height: 0;
  align-items: center;
  padding-top: 52px;
  padding-bottom: 60px;
}
.operation-figure { align-self: center; margin: 0; }
.work .story-spread {
  min-height: 0;
  grid-template-areas: "copy visual" "actions visual";
  align-items: start;
  row-gap: 0;
  padding-top: 54px;
  padding-bottom: 40px;
}
.work .story-copy { grid-area: copy; }
.ai-visual-column { grid-area: visual; justify-self: end; width: 100%; max-width: 640px; }
.ai-visual-column .operation-figure { width: 100%; max-width: none; }
.ai-visual-column .speaking-proof { margin: 18px 0 0; grid-template-columns: 108px minmax(0, 1fr); }
.ai-story-actions { grid-area: actions; align-self: start; margin-top: 22px; }

@media (max-width: 1100px) and (min-width: 761px) {
  .intro-content, .about .story-spread { padding-left: 6%; padding-right: 6%; column-gap: 32px; }
  .about .story-copy { width: 100%; padding: 0; }
  .career-track-title { display: block; }
  .career-track-title > span { display: block; margin-top: 6px; }
}

@media (max-width: 760px) {
  .intro-content { display: block; min-height: 0; padding: 0; }
  .intro-figure { width: 100%; max-width: 520px; margin: 30px auto 0; box-shadow: 0 18px 38px #18212718; }
  .about .story-spread { display: flex; flex-direction: column; align-items: stretch; min-height: 0; padding: 42px 7% 35px; gap: 30px; }
  .about .story-copy { width: 100%; max-width: none; }
  .foundation-figure { width: 100%; max-width: 520px; margin: 0 auto; }
  .career-overview, .career-stage, .work .story-spread { min-height: 0; padding-top: 42px; padding-bottom: 56px; }
  .career-overview { padding-top: 30px; }
  .career-overview-track { width: 100%; max-width: 520px; padding: clamp(16px, 4vw, 23px); margin: 22px auto 0; }
  .career-overview-track .career-tabs button { height: 83px; font-size: clamp(20px, 5.6vw, 24px); }
  .career-overview-track .career-tabs button[aria-current="true"] { font-size: clamp(20px, 5.6vw, 24px); }
  .career-overview-track .career-tabs button small { font-size: 7px; line-height: 1.25; }
  .career-track-title { display: block; padding-top: 11px; }
  .career-track-title strong { font-size: clamp(18px, 5.5vw, 25px); }
  .career-track-title > span { display: block; margin-top: 5px; }
  .career-track-axis-label { font-size: 7px; margin-bottom: 8px; }
  .career-track-footer { font-size: 7px; }
  .career-overview-copy .career-origins { margin-top: 21px; }
  .operation-figure { margin: 28px auto 0; }
  .work .story-spread { display: flex; flex-direction: column; align-items: stretch; }
  .ai-visual-column { align-self: center; max-width: 520px; margin-top: 28px; }
  .ai-visual-column .operation-figure { margin: 0; }
  .ai-visual-column .speaking-proof { margin-top: 18px; }
  .ai-story-actions { width: 100%; margin-top: 22px; }
}
