/* Little Scarletto — annual-report design. Tokens from docs/design-handoff.md. */

:root {
  --accent: #D7263D;
  --ink: #141414;
  --panel: #F4F4F2;
  --hairline: #D4D4D4;
  --accent-on-dark: #FF8A98;
}
body { margin: 0; background: #FFFFFF; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
a { color: var(--ink); }
a:hover { color: #B01E32; }
/* Keyboard focus. :focus-visible matches keyboard/programmatic focus only, never a mouse click. */
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
:is(.ticker, .ir, .site-footer) :is(a, button):focus-visible { outline-color: #FFFFFF; }
/* Skip link: off-screen until keyboard-focused */
.skip-link { position: absolute; top: -100px; left: 16px; z-index: 10; background: var(--ink); color: #FFFFFF; box-shadow: 0 0 0 2px #FFFFFF; padding: 12px 18px; font-family: 'IBM Plex Mono', monospace; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; text-decoration: none; }
.skip-link:focus-visible { top: 16px; }

/* Page wrapper */
.page { font-family: 'Archivo', system-ui, sans-serif; color: var(--ink); background: #FFFFFF; min-height: 100%; }

/* Colour utilities (same declaration repeated verbatim across sections) */
.accent { color: var(--accent); }
.accent-on-dark { color: var(--accent-on-dark); }

/* Shared lead column (cover and investor relations) */
.lead-col { flex: 1 1 560px; min-width: 0; }

/* Ticker */
.ticker { background: var(--ink); color: #FFFFFF; font-family: 'IBM Plex Mono', monospace; font-size: 13px; letter-spacing: 0.04em; }
.ticker__inner { max-width: 1240px; margin: 0 auto; padding: 10px 24px; display: flex; flex-wrap: wrap; gap: 8px 36px; }
.ticker__muted { color: #B8B8B8; }

/* Masthead */
.masthead { max-width: 1240px; margin: 0 auto; padding: 22px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--ink); }
/* Links that carried an inline colour never changed on hover (inline beat a:hover); keep that. */
.wordmark, .wordmark:hover { text-decoration: none; color: var(--ink); font-weight: 900; font-stretch: 70%; font-size: 30px; letter-spacing: 0.01em; text-transform: uppercase; line-height: 1; }
.nav { display: flex; flex-wrap: wrap; gap: 28px; font-family: 'IBM Plex Mono', monospace; font-size: 14px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; }
.nav__link { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.nav__link--cta, .nav__link--cta:hover { background: var(--accent); color: #FFFFFF; padding: 0 18px; }

/* Cover */
.cover { max-width: 1240px; margin: 0 auto; padding: 72px 24px 88px; overflow-x: clip; display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.cover__kicker { margin: 0 0 28px; font-family: 'IBM Plex Mono', monospace; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: #5C5C5C; }
.cover__title { margin: 0; font-weight: 900; font-stretch: 68%; text-transform: uppercase; font-size: clamp(60px, 9vw, 148px); line-height: 0.86; letter-spacing: -0.01em; }
.cover__lede { margin: 36px 0 0; max-width: 560px; font-size: 21px; line-height: 1.5; color: #333333; }
.cover__actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
.btn { text-decoration: none; font-family: 'IBM Plex Mono', monospace; font-weight: 600; font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase; }
.btn--solid, .btn--solid:hover { background: var(--ink); color: #FFFFFF; padding: 18px 26px; }
.btn--outline { border: 2px solid var(--ink); padding: 16px 24px; }

/* The printed report (cover illustration) */
.report { flex: 0 1 400px; min-width: 280px; height: 500px; position: relative; margin: 0 auto; }
.report__sheet { position: absolute; width: 320px; height: 440px; border: 2px solid var(--ink); }
.report__sheet--back { left: 30px; top: 26px; background: #FFFFFF; transform: rotate(7deg); }
.report__sheet--mid { left: 22px; top: 18px; background: var(--panel); transform: rotate(3deg); }
.report__cover { left: 14px; top: 10px; background: var(--accent); box-shadow: 14px 14px 0 var(--ink); padding: 28px; box-sizing: border-box; display: flex; flex-direction: column; justify-content: space-between; color: #FFFFFF; }
.report__meta { display: flex; justify-content: space-between; font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.report__year { margin: 0; font-weight: 900; font-stretch: 62%; font-size: 96px; line-height: 0.85; letter-spacing: -0.02em; }
.report__title { margin: 12px 0 0; font-weight: 800; font-stretch: 75%; font-size: 34px; text-transform: uppercase; line-height: 1; }
.report__foot { border-top: 2px solid #FFFFFF; padding-top: 14px; font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; display: flex; justify-content: space-between; }
.report__stamp { position: absolute; right: 0; top: 64px; transform: rotate(-12deg); border: 4px solid var(--ink); background: #FFFFFF; padding: 10px 16px; font-family: 'IBM Plex Mono', monospace; font-weight: 600; font-size: 20px; letter-spacing: 0.12em; color: var(--ink); }

/* Key figures */
.figures { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.figures__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); border-top: 3px solid var(--ink); border-bottom: 1px solid var(--ink); }
.figure { padding: 28px 24px; border-right: 1px solid var(--hairline); }
.figure--first { padding: 28px 24px 28px 0; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.figure--last { border-right: 0; }
.figure__label { margin: 0; font-family: 'IBM Plex Mono', monospace; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: #5C5C5C; }
.figure__value { margin: 8px 0 0; font-weight: 900; font-stretch: 70%; font-size: 72px; line-height: 1; }
.figure__bars { display: flex; align-items: flex-end; gap: 4px; height: 48px; }
.figure__bar { width: 10px; background: var(--hairline); }
.figure__bar:nth-child(1) { height: 33%; }
.figure__bar:nth-child(2) { height: 66%; }
.figure__bar:nth-child(3) { height: 100%; background: var(--accent); }
.figures__note { margin: 12px 0 0; font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: #5C5C5C; }

/* Numbered sections */
.section { max-width: 1240px; margin: 0 auto; padding: 112px 24px 0; }
.section--closing { padding-bottom: 112px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 3px solid var(--ink); padding-bottom: 14px; }
.section-head--letter { margin-bottom: 48px; }
.section-head--exhibits { margin-bottom: 40px; }
.section-head--risks { margin-bottom: 8px; }
.section-title { margin: 0; display: flex; gap: 18px; align-items: baseline; font-weight: 900; font-stretch: 70%; text-transform: uppercase; font-size: clamp(36px, 4.5vw, 56px); line-height: 1; }
.section-title__num { font-family: 'IBM Plex Mono', monospace; font-weight: 600; font-size: 18px; color: var(--accent); }
.section-page { font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: #5C5C5C; }

/* 01 Letter */
.letter__body { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.letter__figure { margin: 0; flex: 0 1 300px; min-width: 240px; }
.letter__portrait { background: var(--panel); border: 2px solid var(--ink); aspect-ratio: 4 / 5; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.ceo-cat { width: 84%; height: auto; image-rendering: pixelated; display: block; }
.letter__caption { margin-top: 12px; font-family: 'IBM Plex Mono', monospace; font-size: 13px; line-height: 1.5; color: #5C5C5C; }
.letter__text { flex: 1 1 520px; min-width: 0; max-width: 720px; font-family: 'Newsreader', Georgia, serif; font-size: 22px; line-height: 1.6; color: #222222; display: flex; flex-direction: column; gap: 22px; }
.letter__text > p { margin: 0; }
.signature { display: flex; align-items: center; gap: 16px; }
.signature__title { font-family: 'IBM Plex Mono', monospace; font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; color: #5C5C5C; }

/* 02 Holdings */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.holdings-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 18px; }
.holdings-table__head { font-family: 'IBM Plex Mono', monospace; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: #5C5C5C; text-align: left; }
.holdings-table th { padding: 14px 16px; font-weight: 500; border-bottom: 1px solid var(--ink); }
.holdings-table th:first-child { padding: 14px 16px 14px 0; width: 64px; }
.holdings-table th:last-child { padding: 14px 0 14px 16px; text-align: right; }
.holdings-table td { padding: 24px 16px; border-bottom: 1px solid var(--hairline); }
.holdings-table td:first-child { padding: 24px 16px 24px 0; font-family: 'IBM Plex Mono', monospace; color: #5C5C5C; }
.holdings-table td:last-child { padding: 24px 0 24px 16px; text-align: right; }
.holdings-table tbody tr:last-child td { border-bottom: 1px solid var(--ink); }
.holdings-table__name { font-weight: 800; font-size: 24px; }
.holdings-table__sector { color: #333333; }
.holdings-table a { font-weight: 600; padding: 2px 0; } /* 24px tap target; inline padding leaves the line box unchanged */
.badge { font-family: 'IBM Plex Mono', monospace; font-size: 13px; font-weight: 600; }
.badge--live { background: var(--ink); color: #FFFFFF; padding: 5px 10px; }
.badge--outline { border: 1px solid var(--ink); padding: 4px 9px; }

/* 03 Exhibits */
.exhibits__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); border: 1px solid var(--ink); }
.exhibit { display: flex; flex-direction: column; }
.exhibit:not(:last-child) { border-right: 1px solid var(--ink); }
.exhibit__figure { height: 260px; background: var(--panel); border-bottom: 1px solid var(--ink); padding: 24px; box-sizing: border-box; display: flex; flex-direction: column; justify-content: space-between; }
.exhibit__figure--accent { background: var(--accent); }
.exhibit__caption { font-family: 'IBM Plex Mono', monospace; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: #5C5C5C; }
.exhibit__caption--split { display: flex; justify-content: space-between; }
.exhibit__caption--light { color: #FFFFFF; }
.exhibit__body { padding: 28px; display: flex; flex-direction: column; gap: 12px; flex-grow: 1; }
.exhibit__label { margin: 0; font-family: 'IBM Plex Mono', monospace; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); }
.exhibit__title { margin: 0; font-weight: 900; font-stretch: 75%; text-transform: uppercase; font-size: 34px; line-height: 1; }
.exhibit__desc { margin: 0; font-size: 17px; line-height: 1.55; color: #333333; flex-grow: 1; }
.exhibit__link { font-family: 'IBM Plex Mono', monospace; font-weight: 600; font-size: 15px; text-transform: uppercase; min-height: 44px; display: inline-flex; align-items: center; }
/* "Coming soon": inert label where a play link will go later */
.exhibit__link--soon { gap: 10px; color: var(--ink); }
.soon { font-family: 'IBM Plex Mono', monospace; font-weight: 500; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: #5C5C5C; }

/* Fig. 1 — weekly threshold bar chart */
.bar-chart { display: flex; align-items: flex-end; gap: 5px; height: 160px; border-bottom: 2px solid var(--ink); }
.bar-chart__bar { flex: 1; background: var(--ink); }
.bar-chart__bar:nth-child(1) { height: 25%; }
.bar-chart__bar:nth-child(2) { height: 31%; }
.bar-chart__bar:nth-child(3) { height: 38%; }
.bar-chart__bar:nth-child(4) { height: 44%; }
.bar-chart__bar:nth-child(5) { height: 50%; }
.bar-chart__bar:nth-child(6) { height: 56%; }
.bar-chart__bar:nth-child(7) { height: 63%; }
.bar-chart__bar:nth-child(8) { height: 69%; }
.bar-chart__bar:nth-child(9) { height: 75%; }
.bar-chart__bar:nth-child(10) { height: 81%; }
.bar-chart__bar:nth-child(11) { height: 88%; }
.bar-chart__bar:nth-child(12) { height: 100%; background: var(--accent); }

/* Fig. 2 — elevator car positions */
.floor-grid { display: grid; grid-template-columns: 40px repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: #5C5C5C; }
.floor-grid > span { border-bottom: 1px solid var(--hairline); }
.floor-grid > span:nth-last-child(-n+4) { border-bottom: 1px solid var(--ink); } /* ground floor row */
.floor-grid__label { height: 26px; display: flex; align-items: center; }
.floor-grid__car { background: var(--ink); }
.floor-grid__car--accent { background: var(--accent); }

/* Fig. 3 — org chart */
.org { display: flex; flex-direction: column; align-items: center; }
.org__root { background: #FFFFFF; color: var(--ink); padding: 10px 14px; display: flex; align-items: center; gap: 10px; font-family: 'IBM Plex Mono', monospace; font-size: 13px; font-weight: 600; }
.org__stem { width: 2px; height: 20px; background: #FFFFFF; }
.org__bar { width: 70%; height: 2px; background: #FFFFFF; }
.org__drops { width: 70%; display: flex; justify-content: space-between; }
.org__drop { width: 2px; height: 16px; background: #FFFFFF; }
.org__leaves { width: 84%; display: flex; justify-content: space-between; font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--ink); }
.org__leaf { background: #FFFFFF; padding: 6px 8px; }

/* 04 Risk factors */
/* Deviation from the export (minmax(340px, 1fr)): min(340px, 100%) keeps the list inside the 24px gutter at 375, where the export overran it by 13px. */
.risk-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); column-gap: 56px; }
.risk { display: flex; gap: 20px; padding: 28px 0; border-bottom: 1px solid var(--hairline); }
.risk__num { font-family: 'IBM Plex Mono', monospace; font-weight: 600; font-size: 15px; color: var(--accent); }
.risk__text { margin: 0; font-size: 18px; line-height: 1.55; color: #333333; }
.risk__text strong { color: var(--ink); }

/* 05 Investor relations */
.ir, .site-footer { background: var(--ink); color: #FFFFFF; }
.ir__inner { max-width: 1240px; margin: 0 auto; padding: 96px 24px; display: flex; flex-wrap: wrap; gap: 48px; justify-content: space-between; align-items: flex-end; }
.ir__kicker { margin: 0 0 20px; font-family: 'IBM Plex Mono', monospace; font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; color: #B8B8B8; }
.ir__title { margin: 0; font-weight: 900; font-stretch: 68%; text-transform: uppercase; font-size: clamp(48px, 7vw, 112px); line-height: 0.9; }
.ir__contact { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.ir__email, .ir__email:hover { text-decoration: none; background: var(--accent); color: #FFFFFF; font-family: 'IBM Plex Mono', monospace; font-weight: 600; font-size: 16px; padding: 18px 26px; max-width: 100%; box-sizing: border-box; overflow-wrap: anywhere; }
.ir__note { margin: 0; font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: #B8B8B8; }
.ir__entity { margin: 24px 0 0; font-family: 'IBM Plex Mono', monospace; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: #B8B8B8; }

/* Footer */
.footer { max-width: 1240px; margin: 0 auto; padding: 28px 24px 40px; border-top: 1px solid #3A3A3A; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; font-family: 'IBM Plex Mono', monospace; font-size: 13px; line-height: 1.6; color: #B8B8B8; }
.footer__legal { margin: 0; flex: 1 1 520px; max-width: 640px; }
.footer__legal-lead { color: #FFFFFF; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.footer__link, .footer__link:hover { color: #FFFFFF; }
.footer__link { padding: 2px 0; margin: -2px 0; } /* 24px tap target without changing the row height */
.footer__item { color: #B8B8B8; } /* product with nowhere to link yet */

/* ------------------------------------------------------------------ */
/* Responsive. The export was desktop-only; everything below is additive
   and scoped to narrower viewports, so the 1280 render is unchanged.  */

/* Ticker: one scrolling strip instead of a stack (tablet and phone) */
@media (max-width: 1023px) {
  .ticker__inner { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; gap: 28px; scrollbar-width: none; }
  .ticker__inner::-webkit-scrollbar { display: none; }
  .ticker__inner > span { flex: 0 0 auto; }
}

/* Phone */
@media (max-width: 767px) {
  /* 16px gutter everywhere */
  .ticker__inner, .masthead, .cover, .figures, .section, .ir__inner, .footer { padding-left: 16px; padding-right: 16px; }

  /* Masthead: wordmark on its own row, text links below. The red CTA is
     dropped here: it is the last section of the page and the cover already
     carries two buttons. */
  .masthead { padding-top: 16px; padding-bottom: 0; gap: 4px; }
  .wordmark, .wordmark:hover { font-size: 28px; }
  .nav { width: 100%; gap: 22px; font-size: 13px; }
  .nav__link { min-height: 44px; }
  .nav__link--cta { display: none; }

  /* Cover */
  .cover { padding-top: 48px; padding-bottom: 56px; gap: 40px; }
  .cover__kicker { margin-bottom: 20px; font-size: 12px; }
  .cover__lede { margin-top: 24px; font-size: 18px; }
  .cover__actions { margin-top: 28px; gap: 10px; }
  .cover__actions .btn { flex: 1 1 140px; text-align: center; }
  .btn--solid, .btn--solid:hover { padding: 16px 20px; }
  .btn--outline { padding: 14px 18px; }
  .report { zoom: 0.8; }

  /* Key figures: 2 x 2 */
  .figures__grid { grid-template-columns: 1fr 1fr; }
  .figure { padding: 20px 16px; }
  .figure:nth-child(odd) { padding-left: 0; }
  .figure:nth-child(even) { padding-right: 0; border-right: 0; }
  .figure:nth-child(-n+2) { border-bottom: 1px solid var(--hairline); }
  .figure--first { padding-left: 0; }
  .figure__value { font-size: 56px; }
  .figure__bars { height: 40px; }

  /* Sections */
  .section { padding-top: 72px; }
  .section--closing { padding-bottom: 72px; }
  .section-head--letter { margin-bottom: 32px; }
  .section-head--exhibits { margin-bottom: 28px; }
  .section-title { gap: 12px; }

  /* 01 Letter: portrait beside its caption, then the text */
  .letter__body { gap: 32px; }
  .letter__figure { flex: 1 1 100%; display: flex; gap: 16px; align-items: flex-end; }
  .letter__portrait { flex: 0 0 140px; }
  .letter__caption { margin-top: 0; padding-bottom: 4px; }
  .letter__text { font-size: 19px; gap: 18px; }

  /* 02 Holdings: table becomes a list of rows */
  .table-scroll { overflow: visible; }
  .holdings-table { display: block; min-width: 0; font-size: 16px; border-top: 1px solid var(--ink); }
  .holdings-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .holdings-table tbody { display: block; }
  .holdings-table tbody tr {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    grid-template-areas: "no name name" "no sector sector" "no status access";
    align-items: center;
    column-gap: 12px;
    padding: 20px 0;
    border-bottom: 1px solid var(--hairline);
  }
  .holdings-table tbody tr:last-child { border-bottom: 1px solid var(--ink); }
  .holdings-table td, .holdings-table td:first-child, .holdings-table td:last-child,
  .holdings-table tbody tr:last-child td { display: block; padding: 0; border: 0; text-align: left; }
  .holdings-table td:nth-child(1) { grid-area: no; align-self: start; padding-top: 4px; }
  .holdings-table td:nth-child(2) { grid-area: name; }
  .holdings-table td:nth-child(3) { grid-area: sector; margin-top: 4px; font-size: 15px; color: #5C5C5C; }
  .holdings-table td:nth-child(4) { grid-area: status; margin-top: 14px; }
  .holdings-table td:nth-child(5) { grid-area: access; margin-top: 14px; justify-self: end; }
  .holdings-table__name { font-size: 22px; }

  /* 03 Exhibits: single column, separators between cards */
  .exhibit:not(:last-child) { border-right: 0; border-bottom: 1px solid var(--ink); }
  .exhibit__figure { height: 220px; padding: 20px; }
  .exhibit__body { padding: 24px 20px; }
  .exhibit__title { font-size: 30px; }
  .exhibit__desc { font-size: 16px; }

  /* 04 Risk factors */
  .risk { gap: 14px; padding: 20px 0; }
  .risk__text { font-size: 17px; }

  /* 05 Investor relations: full-width email button */
  .ir__inner { padding-top: 64px; padding-bottom: 64px; gap: 36px; }
  .ir__title { font-size: clamp(44px, 13vw, 64px); }
  .ir__entity { margin-top: 20px; font-size: 12px; }
  .ir__contact { width: 100%; }
  .ir__email, .ir__email:hover { width: 100%; text-align: center; padding: 18px 16px; }

  /* Footer */
  .footer { padding: 24px 16px 32px; gap: 20px; }
  .footer__nav { gap: 16px 20px; }
}
