/*
  Japan-US Dual Internship 2026 Report. A report on last year's program, so it
  borrows the LP's voice — Boldonse headings, one colour each for Japan and
  the U.S., the gradient action — and keeps it off the LP's ink: the hero is
  the pale Japan-to-U.S. wash the LP gives its 2026 case. Scoped to
  .page-report; the LP's stylesheet stays on the LP.
*/
@font-face {
  font-family: "Boldonse";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/boldonse-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
    U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.page-report {
  /* The same values as the LP's --dual-* tokens: a reader coming from the LP
     should meet the same Japan and the same U.S. */
  --rpt-display: "Boldonse", var(--display);
  --rpt-leading-display: 1.5;
  --rpt-jp: #ff6247;
  --rpt-jp-ink: #b5371f;
  --rpt-us: #6f9bff;
  --rpt-us-ink: #2f5bd3;
  --rpt-jp-glow: #ff7a3d;
  --rpt-paper: var(--canvas);
  --rpt-text: var(--text-primary);
  --rpt-text-2: var(--text-secondary);
  --rpt-text-3: var(--text-muted);
  --rpt-on-ink: var(--text-inverse);
  --rpt-on-ink-2: rgba(255, 255, 255, 0.78);
  --rpt-line: rgba(22, 26, 29, 0.14);
  --rpt-line-ink: rgba(255, 255, 255, 0.16);
  --rpt-text-kicker: clamp(20px, 2.2vw, 30px);
  --rpt-text-h2: clamp(24px, 3.2vw, 46px);
  --rpt-text-lead: clamp(20px, 2.4vw, 30px);

  --measure-text: 46rem;
  --rpt-gap: 56px;
  /* The label column takes what the reading column leaves, so every row ends
     on the wrap's right edge. Resolved against each full-width row. */
  --rpt-label-col: calc(100% - var(--measure-text) - var(--rpt-gap));
  background: var(--rpt-paper);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- hero ---------- */
.rpt-hero {
  padding: 28px 0 0;
  background:
    linear-gradient(180deg, transparent 40%, var(--rpt-paper) 78%),
    linear-gradient(100deg in oklab,
      color-mix(in oklab, var(--rpt-jp) 16%, var(--white)),
      color-mix(in oklab, var(--rpt-us) 18%, var(--white)));
}
.rpt-title { margin: 72px 0 0; text-wrap: initial; }
.rpt-kicker {
  display: block;
  font-family: var(--rpt-display);
  font-size: var(--rpt-text-kicker);
  font-weight: var(--fw-regular);
  font-synthesis: none;
  line-height: var(--rpt-leading-display);
}
.rpt-headline {
  display: block;
  margin-top: 24px;
  max-width: 21em;
  font-family: var(--display);
  font-size: var(--text-h1);
  font-weight: var(--fw-semibold);
  line-height: var(--leading-heading);
  letter-spacing: var(--tracking-tight);
  text-wrap: balance;
}
.rpt-hero-figure { margin: 56px 0 0; }
.rpt-hero-figure img,
.rpt-figure img,
.rpt-inline img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-media);
}

/* ---------- section scaffolding ---------- */
.rpt-section { padding: 112px 0; }
.rpt-band { background: var(--surface); }
.rpt-ink { background: var(--dual-ink); color: var(--rpt-on-ink); }
.rpt-h2 {
  max-width: 22ch;
  margin: 0 0 40px;
  font-family: var(--rpt-display);
  font-size: var(--rpt-text-h2);
  font-weight: var(--fw-regular);
  font-synthesis: none;
  line-height: var(--rpt-leading-display);
  color: inherit;
}
/* Leads run the full width of the wrap; the size, not the column, keeps the
   line near 80 characters. */
.rpt-lead {
  margin: 0;
  font-size: var(--rpt-text-lead);
  line-height: var(--leading-quote);
  letter-spacing: var(--tracking-snug);
  color: var(--rpt-text);
  text-wrap: pretty;
}
.rpt-ink .rpt-lead { color: var(--rpt-on-ink); }

.rpt-prose p {
  margin: 0;
  font-size: var(--text-read);
  line-height: var(--leading-loose);
  color: var(--rpt-text-2);
  text-wrap: pretty;
}
.rpt-prose p + p { margin-top: 24px; }
.rpt-lead + .rpt-prose { margin-top: 40px; }
/* Two paragraphs side by side across the wrap, each at a reading measure. */
.rpt-prose.rpt-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 48px;
}
.rpt-prose.rpt-cols p + p { margin-top: 0; }
.rpt-ink .rpt-prose p { color: var(--rpt-on-ink-2); }

.rpt-h3 {
  margin: 0;
  font-family: var(--display);
  font-size: var(--text-h4);
  font-weight: var(--fw-semibold);
  line-height: var(--leading-heading);
  letter-spacing: var(--tracking-snug);
  color: inherit;
}

/* Sub-sections: heading in a narrow column, text in the reading column.
   Every one of them in the report shares the same two edges. */
.rpt-split {
  display: grid;
  grid-template-columns: var(--rpt-label-col) minmax(0, 1fr);
  gap: 0 var(--rpt-gap);
  padding-top: 40px;
  margin-top: 40px;
  border-top: 1px solid var(--rpt-line);
}
.rpt-col + .rpt-split,
.rpt-figure + .rpt-split,
.rpt-pair + .rpt-split { margin-top: 64px; }
.rpt-split .rpt-h3 { padding-top: 4px; }
.rpt-ink .rpt-split { border-top-color: var(--rpt-line-ink); }

/* ---------- photographs ---------- */
.rpt-figure { margin: 64px 0 0; }
.rpt-inline { margin: 32px 0; }
.rpt-figure picture,
.rpt-inline picture,
.rpt-step-photo picture {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-media);
}
/* As a photograph arrives it settles from a slight zoom; app.js marks the
   block, this only adds the scale. */
.page-report [data-reveal] picture img {
  scale: 1.06;
  transition: scale calc(var(--motion-reveal) * 2) var(--ease-reveal);
}
.page-report [data-reveal].is-revealed picture img { scale: 1; }
@media print {
  .page-report [data-reveal] picture img { scale: 1; }
}

/* ---------- timeline ---------- */
.rpt-timeline {
  display: grid;
  gap: 72px;
  margin-top: 96px;
}
.rpt-jp { --rpt-c: var(--rpt-jp); --rpt-c-ink: var(--rpt-jp-ink); }
.rpt-us { --rpt-c: var(--rpt-us); --rpt-c-ink: var(--rpt-us-ink); }

.rpt-tl-head {
  display: grid;
  grid-template-columns: var(--rpt-label-col) minmax(0, 1fr);
  align-items: center;
  gap: 0 var(--rpt-gap);
  position: relative;
}
.rpt-tl-head .rpt-tl-dot { position: absolute; left: calc(var(--rpt-label-col) + var(--rpt-gap) / 2 - 8px); }
.rpt-tl-country {
  grid-column: 1;
  margin: 0;
  text-align: right;
  font-family: var(--rpt-display);
  font-size: var(--rpt-text-h2);
  font-weight: var(--fw-regular);
  font-synthesis: none;
  line-height: var(--rpt-leading-display);
}
.rpt-tl-when {
  grid-column: 2;
  margin: 0;
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  font-variant-numeric: tabular-nums;
  color: var(--rpt-c-ink);
}
.rpt-tl-dot {
  display: inline-block;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  border-radius: var(--radius-pill);
  background: var(--rpt-c);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--rpt-c) 18%, transparent);
}

.rpt-tl-steps {
  position: relative;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
/* The spine: structure, not emphasis — it joins the nodes. */
.rpt-tl-steps::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--rpt-label-col) + var(--rpt-gap) / 2 - 0.5px);
  width: 1px;
  background: color-mix(in srgb, var(--rpt-c) 45%, transparent);
}
/* The spine draws itself down as the country arrives, slowly enough that the
   weeks fade in along it. Only when app.js is running the reveal; otherwise
   it is drawn whole. */
.rpt-tl-group:has(> .rpt-tl-head[data-reveal]) .rpt-tl-steps::before {
  scale: 1 0;
  transform-origin: top;
  transition: scale calc(var(--motion-reveal) * 3) var(--ease-reveal);
}
.rpt-tl-group:has(> .rpt-tl-head.is-revealed) .rpt-tl-steps::before { scale: 1 1; }
@media print {
  .rpt-tl-group:has(> .rpt-tl-head[data-reveal]) .rpt-tl-steps::before { scale: 1 1; }
}
.rpt-step {
  position: relative;
  display: grid;
  grid-template-columns: var(--rpt-label-col) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  gap: 0 var(--rpt-gap);
  padding: 28px 0;
}
.rpt-step-body { grid-column: 2; grid-row: 1 / span 2; }
/* Where the weeks took place: a small photograph of the office under the
   week, on the label side of the spine. */
.rpt-step-photo {
  grid-column: 1;
  grid-row: 2;
  justify-self: end;
  width: min(100%, 300px);
  margin: 20px 0 0;
}
.rpt-step-photo img {
  display: block;
  width: 100%;
  height: auto;
}
.rpt-step::before {
  content: "";
  position: absolute;
  top: 36px;
  left: calc(var(--rpt-label-col) + var(--rpt-gap) / 2 - 6px);
  width: 12px;
  height: 12px;
  box-sizing: border-box;
  border-radius: var(--radius-pill);
  border: 1px solid var(--rpt-c-ink);
  background: var(--rpt-paper);
}
.rpt-step.is-event::before {
  border-color: var(--rpt-c);
  background: var(--rpt-c);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--rpt-c) 20%, transparent);
}
.rpt-step-week {
  margin: 0;
  padding-top: 4px;
  text-align: right;
  font-family: var(--display);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  font-variant-numeric: tabular-nums;
  color: var(--rpt-text-3);
}
.rpt-step.is-event .rpt-step-week { color: var(--rpt-c-ink); }
.rpt-step-title {
  margin: 0;
  font-family: var(--display);
  font-size: var(--text-h4);
  font-weight: var(--fw-semibold);
  line-height: var(--leading-heading);
  letter-spacing: var(--tracking-snug);
}
.rpt-step-body p {
  margin: 12px 0 0;
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--rpt-text-2);
  text-wrap: pretty;
}
/* The event itself, marked in the copy: a wash of the country's colour. */
.rpt-step mark,
.rpt-pair mark {
  padding: 0 2px;
  border-radius: var(--radius-xs);
  background: color-mix(in srgb, var(--rpt-c) 16%, transparent);
  color: var(--rpt-text);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* Each column takes its rows from the pair, so a two-line heading beside a
   one-line one does not push its text a line lower. */
.rpt-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 48px;
  margin-top: 64px;
}
.rpt-pair-col {
  display: grid;
  grid-row: span 2;
  grid-template-rows: subgrid;
  row-gap: 16px;
  padding-top: 32px;
  border-top: 1px solid var(--rpt-line);
}
.rpt-pair-col .rpt-prose p { font-size: var(--text-base); line-height: var(--leading-body); }
.rpt-country {
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.rpt-country .rpt-tl-dot {
  width: 10px;
  height: 10px;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--rpt-c) 18%, transparent);
  translate: 0 -2px;
}

/* ---------- the intern's words ---------- */
.rpt-quote {
  position: relative;
  margin: 0;
}
.rpt-quote p {
  margin: 0;
  font-family: var(--display);
  font-size: var(--text-quote);
  font-weight: var(--fw-medium);
  line-height: var(--leading-quote);
  letter-spacing: var(--tracking-snug);
  color: var(--rpt-on-ink);
  text-indent: -0.42em;
  text-wrap: pretty;
}
.rpt-quote p::before { content: "“"; }
.rpt-quote p::after { content: "”"; }
.rpt-quote + .rpt-split { margin-top: 72px; }
.rpt-quote + .rpt-figure { margin-top: 72px; }

/* ---------- what's next ---------- */
.rpt-next { padding-bottom: 136px; }
.rpt-closing {
  margin: 56px 0 0;
  font-family: var(--display);
  font-size: var(--text-h3);
  font-weight: var(--fw-semibold);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-snug);
  color: var(--rpt-text);
}
.rpt-closing span { display: block; }
.rpt-next-cta { margin: 40px 0 0; }
.rpt-next-cta .btn-lg {
  min-height: 56px;
  padding: 0 28px;
  gap: 12px;
  font-size: var(--text-base);
}

/* The one action, filled Japan into the U.S. as it is on the LP. */
.rpt-cta { display: inline-flex; }
.rpt-cta .btn {
  border: 0;
  background: var(--rpt-us);
  background: linear-gradient(100deg in oklab, var(--rpt-jp-glow), var(--rpt-jp) 30%, var(--rpt-us) 100%);
  color: var(--dual-ink);
  font-weight: var(--fw-semibold);
  box-shadow:
    -10px 10px 32px -12px color-mix(in srgb, var(--rpt-jp) 70%, transparent),
    10px 10px 32px -12px color-mix(in srgb, var(--rpt-us) 70%, transparent);
  transition: filter var(--motion) var(--ease-control), box-shadow var(--motion) var(--ease-control),
    transform var(--motion-press) var(--ease-control);
}
.rpt-cta .btn:hover,
.rpt-cta .btn:active {
  background: linear-gradient(100deg in oklab, var(--rpt-jp-glow), var(--rpt-jp) 30%, var(--rpt-us) 100%);
  color: var(--dual-ink);
  filter: brightness(1.08) saturate(1.1);
}

/* On a laptop the reading column gives up a little so the photographs in the
   label column stay large enough to read. */
@media (max-width: 1200px) {
  .page-report { --measure-text: 40rem; }
}
@media (max-width: 960px) {
  .page-report { --rpt-label-col: 7rem; --rpt-gap: 40px; }
  .rpt-split { grid-template-columns: 1fr; }
  .rpt-split .rpt-h3 { padding-top: 0; margin-bottom: 16px; }
  .rpt-prose.rpt-cols { grid-template-columns: 1fr; }
  .rpt-prose.rpt-cols p + p { margin-top: 24px; }
  .rpt-pair { grid-template-columns: 1fr; row-gap: 40px; }
  .rpt-pair-col { grid-row: auto; grid-template-rows: auto; }
  /* The label column is too narrow for a photograph; it follows the text. */
  .rpt-step { grid-template-rows: auto; }
  .rpt-step-body { grid-row: auto; }
  .rpt-step-photo { grid-column: 2; grid-row: auto; justify-self: start; width: min(100%, 360px); }
}
@media (max-width: 720px) {
  .page-report { --rpt-label-col: 0px; --rpt-gap: 32px; }
  .rpt-section { padding: 72px 0; }
  .rpt-title { margin-top: 40px; }
  .rpt-hero-figure { margin-top: 36px; }
  .rpt-prose p { font-size: var(--text-base); line-height: var(--leading-body); }
  .rpt-tl-head { grid-template-columns: 1fr; padding-left: var(--rpt-gap); }
  .rpt-tl-head .rpt-tl-dot { left: 8px; top: 50%; translate: 0 -50%; }
  .rpt-tl-country { text-align: left; }
  .rpt-tl-when { grid-column: 1; margin-top: 4px; }
  .rpt-tl-steps::before { left: 15.5px; }
  .rpt-step { grid-template-columns: 1fr; padding-left: var(--rpt-gap); }
  .rpt-step::before { left: 10px; top: 32px; }
  .rpt-step-week { text-align: left; padding-top: 0; margin-bottom: 4px; }
  .rpt-step-body,
  .rpt-step-photo { grid-column: 1; }
  .rpt-next-cta .btn-lg { width: 100%; justify-content: center; text-align: center; }
}

