/* Intern graduate interview pages (/interns/<slug>/).
 *
 * Layered on top of /works/case.css, which supplies the reset, design tokens,
 * .wrap, header.site / footer.site, .hero, .crumb, .eyebrow, h1, .lead,
 * section.block, ul.points, .tags, .cta and .btn.
 *
 * Unlike /members/member.css this file is never loaded by the top page, so the
 * :root override below is safe: it only widens the measure for this template.
 * Everything else is prefixed .itn* to keep the two templates independent.
 */

:root {
  --maxw: 1040px;
  --accent: #4338ca;
  --accent-soft: #eef2ff;
}

/* =======================================================================
 * Hero — photo with an overlapping pull-quote, name block alongside
 * ======================================================================= */

.itn-hero {
  padding: clamp(36px, 4.5vw, 68px) 0 clamp(24px, 3vw, 44px);
}

.itn-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: start;
}

.itn-hero__figure {
  margin: 0;
  position: relative;
}

.itn-hero__photo {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: #f4f4f5;
  aspect-ratio: 3 / 4;
}

.itn-hero__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.itn-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  box-shadow: 0 8px 24px -12px rgba(0, 0, 0, 0.4);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.itn-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* The quote card deliberately rides up over the photo to create depth. */
.itn-hero__quote {
  position: relative;
  z-index: 1;
  margin: -44px clamp(0px, 1vw, 10px) 0 clamp(14px, 3vw, 36px);
  padding: 24px 26px;
  border-radius: 18px;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 26px 60px -30px rgba(0, 0, 0, 0.6);
}

.itn-hero__quote p {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.75;
  letter-spacing: -0.01em;
}

.itn-hero__quote span {
  display: block;
  margin-top: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #a1a1aa;
}

.itn-hero__name {
  font-size: clamp(2.1rem, 1rem + 4vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 14px 0 0;
}

.itn-hero__romaji {
  display: block;
  margin-top: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.itn-hero__lead {
  margin: 24px 0 0;
  font-size: clamp(1.02rem, 0.95rem + 0.4vw, 1.16rem);
  line-height: 1.95;
  color: var(--ink-soft);
}

.itn-facts {
  margin: 30px 0 0;
  border-top: 1px solid var(--line);
}

.itn-facts div {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.itn-facts dt {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--muted);
  padding-top: 0.35em;
}

.itn-facts dd {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.8;
}

/* =======================================================================
 * Interview scaffolding
 * ======================================================================= */

.itn-intro {
  padding: clamp(28px, 3.5vw, 48px) 0 clamp(4px, 1vw, 12px);
}

.itn-intro p {
  max-width: 44rem;
  margin: 0;
  padding: 24px 0 0;
  border-top: 2px solid var(--ink);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.1rem);
  line-height: 1.95;
  color: var(--ink-soft);
}

.itn-qa {
  padding: clamp(40px, 5vw, 72px) 0;
  border-bottom: 1px solid var(--line);
}

.itn-q {
  display: flex;
  align-items: baseline;
  gap: clamp(14px, 2vw, 22px);
  margin: 0 0 clamp(20px, 2.4vw, 30px);
}

.itn-q__no {
  flex: 0 0 auto;
  font-size: clamp(0.95rem, 0.9rem + 0.4vw, 1.15rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  padding-top: 0.15em;
}

.itn-q__text {
  margin: 0;
  font-size: clamp(1.3rem, 1rem + 1.5vw, 2rem);
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: -0.025em;
}

.itn-a {
  max-width: 44rem;
}

.itn-a > p {
  margin: 0 0 1.25em;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.06rem);
  line-height: 1.98;
  color: var(--ink-soft);
}

.itn-a > p:last-child {
  margin-bottom: 0;
}

/* A short label that introduces a list inside an answer. */
.itn-a h3 {
  margin: 34px 0 16px;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--ink);
}

/* ---- pull quote ---- */

.itn-pull {
  margin: clamp(30px, 3.5vw, 46px) 0;
  padding: 4px 0 4px clamp(20px, 2.4vw, 30px);
  border-left: 3px solid var(--accent);
  max-width: 40rem;
}

.itn-pull p {
  margin: 0;
  font-size: clamp(1.1rem, 1rem + 0.8vw, 1.5rem);
  font-weight: 700;
  line-height: 1.65;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}

/* A quote that stands alone between sections, wider and centred. */
.itn-standout {
  padding: clamp(44px, 5.5vw, 84px) 0;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}

.itn-standout figure {
  margin: 0 auto;
  max-width: 34rem;
  text-align: center;
}

.itn-standout blockquote {
  margin: 0;
}

.itn-standout p {
  margin: 0;
  font-size: clamp(1.3rem, 1rem + 1.6vw, 2.1rem);
  font-weight: 800;
  line-height: 1.55;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.itn-standout figcaption {
  margin-top: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* ---- numbered criteria list ---- */

.itn-criteria {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: itn-criteria;
  border-top: 1px solid var(--line);
  max-width: 40rem;
}

.itn-criteria li {
  counter-increment: itn-criteria;
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.6;
}

.itn-criteria li::before {
  content: counter(itn-criteria, decimal-leading-zero);
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

/* ---- what he took away: 2x2 card group ---- */

.itn-gains {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2vw, 22px);
}

.itn-gain {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(22px, 2.4vw, 30px);
  background: var(--bg);
  transition: border-color 0.45s var(--ease), transform 0.45s var(--ease),
    box-shadow 0.45s var(--ease);
}

.itn-gain:hover {
  border-color: #c8c8cd;
  transform: translateY(-4px);
  box-shadow: 0 26px 54px -32px rgba(0, 0, 0, 0.34);
}

.itn-gain__no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.itn-gain h3 {
  margin: 16px 0 0;
  font-size: 1.14rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.45;
}

.itn-gain ul {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.itn-gain li {
  position: relative;
  padding-left: 22px;
  font-size: 0.93rem;
  line-height: 1.75;
  color: var(--ink-soft);
}

.itn-gain li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 12px;
  height: 2px;
  background: var(--accent);
}

/* ---- side-by-side short answers ---- */

.itn-pair {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 3.5vw, 48px);
}

@supports (grid-template-rows: subgrid) {
  .itn-pair {
    grid-template-rows: auto auto;
  }
  .itn-pair > div {
    display: grid;
    grid-row: span 2;
    grid-template-rows: subgrid;
  }
}

.itn-pair .itn-q {
  margin-bottom: 18px;
}

.itn-pair .itn-q__text {
  font-size: clamp(1.14rem, 1rem + 0.7vw, 1.4rem);
}

.itn-pair .itn-a {
  max-width: none;
}

/* ---- closing message ---- */

.itn-final {
  padding: clamp(44px, 5.5vw, 80px) 0;
}

.itn-final__box {
  border-radius: 26px;
  padding: clamp(30px, 4vw, 60px);
  background: linear-gradient(135deg, #eef2ff 0%, #f5f4ff 55%, #fdf4ff 100%);
  border: 1px solid #ddd9fb;
}

.itn-final__eyebrow {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.24em;
  color: var(--accent);
}

.itn-final__box h2 {
  margin: 14px 0 0;
  font-size: clamp(1.45rem, 1rem + 1.9vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.45;
}

.itn-final__box p {
  max-width: 42rem;
  margin: 22px 0 0;
  font-size: clamp(0.98rem, 0.95rem + 0.2vw, 1.05rem);
  line-height: 1.95;
  color: var(--ink-soft);
}

.itn-final__split {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2vw, 24px);
  margin: clamp(28px, 3vw, 40px) 0 0;
}

.itn-final__card {
  border: 1px solid rgba(67, 56, 202, 0.14);
  border-radius: 16px;
  padding: 22px 24px;
  background: rgba(255, 255, 255, 0.72);
}

.itn-final__card h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.itn-final__card p {
  margin: 12px 0 0;
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: none;
}

.itn-final__card--fit h3 {
  color: var(--accent);
}

/* ---- related links ---- */

.itn-next {
  padding: clamp(36px, 4vw, 60px) 0 clamp(48px, 6vw, 80px);
}

.itn-next h2 {
  font-size: clamp(1.3rem, 1rem + 1.2vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
}

.itn-next ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.itn-next a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 100%;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease);
}

.itn-next a:hover {
  border-color: #c8c8cd;
  transform: translateY(-3px);
}

.itn-next strong {
  display: block;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.itn-next small {
  display: block;
  margin-top: 5px;
  font-size: 0.86rem;
  color: var(--muted);
}

.itn-next svg {
  flex: 0 0 auto;
  color: var(--muted);
  transition: transform 0.35s var(--ease), color 0.35s var(--ease);
}

.itn-next a:hover svg {
  color: var(--ink);
  transform: translateX(4px);
}

/* =======================================================================
 * Responsive
 * ======================================================================= */

@media (max-width: 860px) {
  .itn-hero__grid {
    grid-template-columns: 1fr;
  }
  .itn-hero__figure {
    max-width: 360px;
  }
  .itn-hero__quote {
    margin-right: 0;
  }
  .itn-gains,
  .itn-pair,
  .itn-final__split,
  .itn-next ul {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .itn-hero__photo {
    border-radius: 16px;
  }
  .itn-hero__quote {
    margin: -32px 10px 0;
    padding: 20px 22px;
  }
  .itn-facts div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .itn-final__box {
    border-radius: 18px;
  }
}
