/* ==========================================================================
   Company (about.html, IDL-04): page layout only. Tokens and components
   come from core.css. Sections: hero + sheet index, founders, schedule,
   offices + 24-hour UTC ruler, general notes (paper), colophon, CTA.
   ========================================================================== */

/* ---------- Hero ------------------------------------------------------- */
.about-hero__wrap { position: relative; z-index: 1; }
.about-hero .page-hero__code .rule { flex: 1; }
.about-hero__grid { align-items: end; row-gap: clamp(48px, 7vw, 88px); }
.about-hero__main { grid-column: 1 / span 8; }
.about-hero h1 { max-width: 11.5em; }
.about-index { grid-column: 9 / span 4; padding-bottom: 6px; }
.about-index__title { color: var(--tx-3); margin-bottom: 14px; }
.about-index__list { list-style: none; padding: 0; }
.about-index .rule { display: block; }
.about-index__list li { border-bottom: 1px solid var(--line-1); }
.about-index__list li a {
  display: grid; grid-template-columns: 2.75rem 1fr auto; align-items: center;
  min-height: 48px; font-size: 15px; font-weight: 450; color: var(--tx-2); text-decoration: none;
  transition: color var(--dur-micro) linear;
}
.about-index__list .idx { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--tx-3); font-variant-numeric: tabular-nums slashed-zero; }
.about-index__list .arr { font-family: var(--font-mono); font-size: 13px; color: var(--tx-3); transition: transform var(--dur-ui) var(--ease-out), color var(--dur-micro) linear; }
.about-index__list li a:hover { color: var(--tx-1); }
.about-index__list li a:hover .arr { color: var(--tx-1); transform: translateY(3px); }

/* drawing grid draws down from the header on load (about.js); failsafe if the script never runs */
html.js:not(.reduce-motion):not(.about-ready) .about-hero .colgrid span { transform: scaleY(0); animation: about-failsafe-col 0.4s linear 2.2s forwards; }
@keyframes about-failsafe-col { to { transform: none; } }

@media (max-width: 1023px) {
  .about-hero__main { grid-column: 1 / -1; }
  .about-index { grid-column: 1 / span 8; }
}
@media (max-width: 767px) {
  .about-index { grid-column: 1 / -1; }
}

/* ---------- 01 Founders ------------------------------------------------ */
.about-founders { padding-top: calc(var(--section) * 0.62); }
.about-founders__grid { row-gap: var(--s-8); align-items: start; }
.about-founders__head { grid-column: 1 / span 4; }
.about-founders__head h2 { max-width: 8.5em; }
.founder:nth-of-type(1) { grid-column: 5 / span 4; }
.founder:nth-of-type(2) { grid-column: 9 / span 4; }
.founder { gap: 0; }
.founder__frame { position: relative; }
.founder .person__photo { position: relative; }
.founder .person__photo img { transform-origin: 50% 38%; }
/* print crop marks: 10px ticks on the frame lines, 4px clear of the corner.
   Horizontal ticks are dropped on the inner side so the pair never collides in the gutter. */
.founder__marks i { position: absolute; width: 0; height: 0; pointer-events: none; }
.founder__marks i::before, .founder__marks i::after { content: ""; position: absolute; background: var(--ctrl); }
.founder__marks i::before { width: 1px; height: 10px; }
.founder__marks i::after { width: 10px; height: 1px; }
.founder__marks i:nth-child(1) { top: 0; left: 0; }
.founder__marks i:nth-child(1)::before { left: 0; bottom: 4px; }
.founder__marks i:nth-child(1)::after { top: 0; right: 4px; }
.founder__marks i:nth-child(2) { top: 0; right: 0; }
.founder__marks i:nth-child(2)::before { right: 0; bottom: 4px; }
.founder__marks i:nth-child(2)::after { top: 0; left: 4px; }
.founder__marks i:nth-child(3) { bottom: 0; left: 0; }
.founder__marks i:nth-child(3)::before { left: 0; top: 4px; }
.founder__marks i:nth-child(3)::after { bottom: 0; right: 4px; }
.founder__marks i:nth-child(4) { bottom: 0; right: 0; }
.founder__marks i:nth-child(4)::before { right: 0; top: 4px; }
.founder__marks i:nth-child(4)::after { bottom: 0; left: 4px; }
.founder:nth-of-type(1) .founder__marks i:nth-child(2n)::after,
.founder:nth-of-type(2) .founder__marks i:nth-child(2n+1)::after { display: none; }
.founder__curtain { position: absolute; inset: 0; background: var(--bg-0); transform-origin: 50% 0; pointer-events: none; }
.founder__text { position: relative; display: grid; gap: 6px; padding-top: var(--s-5); }
.founder__line { margin-top: var(--s-4); padding-top: var(--s-4); border-top: 1px solid var(--line-1); color: var(--tx-2); }

@media (max-width: 1023px) {
  .about-founders__head { grid-column: 1 / -1; }
  .founder:nth-of-type(1) { grid-column: 1 / span 6; }
  .founder:nth-of-type(2) { grid-column: 7 / span 6; }
}
@media (max-width: 599px) {
  .about-founders__grid { row-gap: var(--s-7); }
  .founder__marks { display: none; }
  .founder .person__name { font-size: 1.125rem; }
  .founder .person__role { font-size: 11px; line-height: 1.45; }
  .founder__line { font-size: var(--t-small); }
}

/* ---------- 02 Schedule ------------------------------------------------ */
.about-record__head { align-items: end; row-gap: var(--s-4); margin-bottom: clamp(40px, 5vw, 72px); }
.about-record__head h2 { grid-column: 1 / span 8; }
.about-record__key { grid-column: 9 / span 4; justify-self: end; color: var(--tx-3); padding-bottom: 0.6em; }
.schedule { border-top: 1px solid var(--line-2); }
.schedule__head, .schedule__row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.schedule__head { padding: 14px 0; border-bottom: 1px solid var(--line-2); font-family: var(--font-mono); font-size: 11px; line-height: 1.3; letter-spacing: 0.09em; text-transform: uppercase; color: var(--tx-3); font-weight: 500; }
.schedule__head span:nth-child(1), .schedule__no { grid-column: 1 / span 1; }
.schedule__head span:nth-child(2), .schedule__item { grid-column: 2 / span 7; }
.schedule__head span:nth-child(3), .schedule__disc { grid-column: 9 / span 2; }
.schedule__head span:nth-child(4), .schedule__st { grid-column: 11 / span 2; text-align: right; }
.schedule__list { list-style: none; padding: 0; }
.schedule__row { align-items: baseline; padding: 30px 0 32px; border-bottom: 1px solid var(--line-1); }
.schedule__no { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.04em; color: var(--tx-3); font-variant-numeric: tabular-nums slashed-zero; }
.schedule__item, .schedule__item > p { font-size: var(--t-h4); line-height: 1.3; letter-spacing: -0.008em; color: var(--tx-1); font-weight: 450; max-width: 30em; }
.schedule__item a { text-decoration-color: var(--ctrl); }
.schedule__item a:hover { text-decoration-color: currentColor; }
.schedule__item .ext { display: inline-block; margin-left: 0.18em; font-size: 0.72em; vertical-align: 0.18em; text-decoration: none; color: var(--tx-3); }
.schedule__item .link-arrow { margin-top: 10px; font-size: 14px; }
.schedule__disc { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--tx-3); line-height: 1.45; }
.schedule__st .status { justify-content: flex-end; }
.schedule__row--now { border-bottom-color: var(--line-2); padding-block: 36px 34px; }
.schedule__row--now .schedule__no { color: var(--tx-1); text-transform: uppercase; font-size: 12px; letter-spacing: 0.08em; font-weight: 500; }
.schedule__note { margin-top: var(--s-5); color: var(--tx-3); }

@media (max-width: 1023px) {
  .schedule__head span:nth-child(2), .schedule__item { grid-column: 2 / span 6; }
  .schedule__head span:nth-child(3), .schedule__disc { grid-column: 8 / span 3; }
}
@media (max-width: 767px) {
  .about-record__head h2, .about-record__key { grid-column: 1 / -1; justify-self: start; padding-bottom: 0; }
  .schedule__head { display: none; }
  .schedule__row { grid-template-columns: 2.75rem minmax(0, 1fr) auto; column-gap: 12px; row-gap: 12px; padding: 22px 0 24px; }
  .schedule__no { grid-column: 1; grid-row: 1; }
  .schedule__item { grid-column: 2 / -1; grid-row: 1; }
  .schedule__disc { grid-column: 2; grid-row: 2; font-size: 11px; }
  .schedule__st { grid-column: 3; grid-row: 2; }
  .schedule__st .status { font-size: 11px; }
  .schedule__item, .schedule__item > p { font-size: 1.125rem; }
}

/* ---------- 03 Offices + working-hours ruler --------------------------- */
.about-offices__head { align-items: end; row-gap: var(--s-5); margin-bottom: clamp(48px, 6vw, 88px); }
.about-offices__head h2 { grid-column: 1 / span 6; max-width: 9em; }
.about-offices__head .t-lead { grid-column: 8 / span 5; }
@media (max-width: 1023px) { .about-offices__head h2, .about-offices__head .t-lead { grid-column: 1 / -1; } }

.hours {
  /* label column = columns 1–2 of the 12-column grid, so the plot starts on column 3 */
  --lab: calc((100% - 11 * var(--gutter)) / 6 + 2 * var(--gutter));
  --row: 88px;
  margin-top: clamp(64px, 7vw, 104px);
}
.hours__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 10px 24px; padding-bottom: 16px; border-bottom: 1px solid var(--line-2); }
.hours__legend { color: var(--tx-3); }
.hours__legend > span:not(.idx):not(.hours__key) { color: var(--tx-2); }
.hours__key { width: 22px; height: 9px; border: 1.5px solid var(--tx-2); background: repeating-linear-gradient(135deg, var(--tx-3) 0 1px, transparent 1px 4px); }
.hours__body { position: relative; padding-top: 34px; }
html:not(.js) .hours__body { display: none; }

.hours__axis { display: grid; grid-template-columns: var(--lab) minmax(0, 1fr); align-items: end; height: 40px; }
.hours__unit { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.09em; color: var(--tx-3); padding-bottom: 1px; }
.hours__scale { position: relative; height: 100%; border-bottom: 1px solid var(--line-2); }
.hours__scale i { font-style: normal; position: absolute; bottom: 0; left: calc(var(--h) / 24 * 100%); width: 1px; height: 5px; background: var(--line-2); }
.hours__scale i.is-major { height: 10px; background: var(--tx-3); }
.hours__scale b { position: absolute; bottom: 15px; left: 0; transform: translateX(-50%); font-family: var(--font-mono); font-size: 11px; font-weight: 400; letter-spacing: 0.04em; color: var(--tx-3); font-variant-numeric: tabular-nums slashed-zero; }
.hours__scale i.is-edge b { transform: none; }
.hours__scale i.is-end b { transform: translateX(-100%); }

.hours__rows { position: relative; z-index: 1; }
.hours__row { display: grid; grid-template-columns: var(--lab) minmax(0, 1fr); align-items: center; min-height: var(--row); border-bottom: 1px solid var(--line-1); }
.hours__label { display: grid; gap: 3px; align-content: center; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--tx-3); font-variant-numeric: tabular-nums slashed-zero; }
.hours__label b { font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tx-1); }
.hours__state { display: inline-flex; align-items: center; gap: 7px; text-transform: uppercase; letter-spacing: 0.08em; }
.hours__state:empty { display: none; }
.hours__state::before { content: ""; width: 7px; height: 7px; box-shadow: inset 0 0 0 1px currentColor; }
.hours__row.is-in .hours__state { color: var(--tx-1); }
.hours__row.is-in .hours__state::before { background: currentColor; }
.hours__track { position: relative; height: var(--row); }
.hours__track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px dashed var(--line-2); }

.hours__bar {
  position: absolute; top: 50%; height: 16px; margin-top: -8px;
  left: calc(var(--a) * 100%); width: calc(var(--w) * 100%);
  color: var(--tx-3); border: 1.5px solid var(--tx-2); border-radius: 1px; background-color: var(--bg-0);
  background-image: repeating-linear-gradient(135deg, currentColor 0 1px, transparent 1px 5px);
  transform-origin: 0 50%;
}
.hours__row.is-in .hours__bar { color: var(--tx-2); border-color: var(--tx-1); }
.hours__span { position: absolute; bottom: calc(50% + 13px); left: calc(var(--a) * 100%); padding: 2px 6px 1px 0; background: var(--bg-0); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--tx-3); white-space: nowrap; font-variant-numeric: tabular-nums slashed-zero; }
.hours__row.is-in .hours__span { color: var(--tx-2); }
.hours__foot { height: 44px; }

.hours__overlay { position: absolute; top: 0; bottom: 0; left: var(--lab); right: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.hours__overlay > * { position: absolute; inset: 0; }
.hours__grid i { font-style: normal; position: absolute; top: 74px; bottom: 44px; left: calc(var(--h) / 24 * 100%); border-left: 1px dashed var(--line-1); }
.hours__band { position: absolute; top: 74px; bottom: 0; left: calc(var(--a) * 100%); width: calc(var(--w) * 100%); border-inline: 1px dashed var(--tx-3); background: color-mix(in oklab, var(--tx-1) 4%, transparent); }
.hours__band span { position: absolute; bottom: 15px; left: calc(100% + 8px); font-family: var(--font-mono); font-size: 11px; line-height: 1; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tx-2); white-space: nowrap; }
.hours__band.is-flip span { left: auto; right: calc(100% + 8px); }
.hours__band.is-under span { left: 0; }
.hours__now { z-index: 2; }
.hours__now-line { position: absolute; top: 0; bottom: 44px; left: 0; width: 1px; background: var(--accent); }
.hours__now-label { position: absolute; top: 0; left: 8px; font-family: var(--font-mono); font-size: 11px; line-height: 1; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); white-space: nowrap; font-variant-numeric: tabular-nums slashed-zero; }
.hours__now.is-flip .hours__now-label { left: -8px; transform: translateX(-100%); }
.hours__now { transform: translateX(calc(var(--t, 0) * 100%)); }

.hours__cap { margin-top: var(--s-5); max-width: 78ch; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.6; letter-spacing: 0.01em; color: var(--tx-3); font-variant-numeric: tabular-nums slashed-zero; }
.hours__cap b { color: var(--tx-2); font-weight: 500; }

/* entrance: bars draw from their start hour, then the cursor sweeps from 00:00 to now */
html.js:not(.reduce-motion) .hours .hours__bar { transform: scaleX(0); transition: transform 1.1s var(--ease-out) calc(0.15s + var(--i, 0) * 0.12s); }
html.js:not(.reduce-motion) .hours .hours__span,
html.js:not(.reduce-motion) .hours .hours__band { opacity: 0; transition: opacity 0.6s linear calc(0.7s + var(--i, 0) * 0.12s); }
html.js:not(.reduce-motion) .hours .hours__now { opacity: 0; transform: translateX(0); transition: opacity 0.3s linear 0.55s, transform 1.5s var(--ease-move) 0.55s; }
html.js:not(.reduce-motion) .hours.is-drawn .hours__bar { transform: none; }
html.js:not(.reduce-motion) .hours.is-drawn .hours__span,
html.js:not(.reduce-motion) .hours.is-drawn .hours__band { opacity: 1; }
html.js:not(.reduce-motion) .hours.is-drawn .hours__now { opacity: 1; transform: translateX(calc(var(--t, 0) * 100%)); }
html.js:not(.reduce-motion) .hours.is-settled .hours__now { transition: transform 0.6s var(--ease-move); }
/* the cursor's time label appears once the sweep has arrived, never mid-travel */
html.js:not(.reduce-motion) .hours .hours__now-label { opacity: 0; transition: opacity 0.4s linear; }
html.js:not(.reduce-motion) .hours.is-drawn .hours__now-label { opacity: 1; transition-delay: 1.95s; }
html.reduce-motion .hours__now, html.reduce-motion .hours__bar { transition: none; }

@media (max-width: 767px) {
  .hours { --lab: 0px; --row: 50px; }
  .hours__head { display: grid; gap: 8px; }
  .hours__head .label { display: block; line-height: 1.6; }
  .hours__head .label > span { margin-right: 0.5em; }
  .hours__key { display: inline-block; vertical-align: -1px; }
  .hours__axis { grid-template-columns: minmax(0, 1fr); }
  .hours__unit { display: none; }
  .hours__scale i:not(.is-six):not(.is-edge) b { display: none; }
  .hours__row { grid-template-columns: minmax(0, 1fr); padding-top: 14px; }
  .hours__label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
  .hours__label > * { background: var(--bg-0); }
  .hours__span { display: none; }
  .hours__grid i { top: 74px; }
  .hours__band span { font-size: 10px; letter-spacing: 0.06em; }
}

/* ---------- 04 General notes (paper sheet) ---------------------------- */
.about-notes { padding-block: var(--section); }
.about-notes__sheet { position: relative; border: 1px solid var(--ink-3); padding: clamp(28px, 5.5vw, 88px); }
.about-notes__sheet::before { content: ""; position: absolute; inset: 9px; border: 1px solid var(--paper-line); pointer-events: none; }
.about-notes__zones { position: absolute; inset: 0; pointer-events: none; font-family: var(--font-mono); font-size: 11px; line-height: 1; color: var(--ink-3); }
.about-notes__zones span { position: absolute; }
.about-notes__zones .z-t { top: 0; left: var(--x); transform: translate(-50%, calc(-100% - 8px)); }
.about-notes__zones .z-l { left: 0; top: var(--y); transform: translate(calc(-100% - 10px), -50%); }
.about-notes__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--s-5); padding-bottom: var(--s-6); border-bottom: 1px solid var(--ink-3); }
.about-notes__list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 4vw, 72px); counter-reset: note; }
.about-notes__list li { counter-increment: note; position: relative; padding: 36px 0 38px 56px; border-bottom: 1px solid var(--paper-line); }
.about-notes__list li::before { content: counter(note); position: absolute; left: 0; top: 34px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--ink-1); display: grid; place-items: center; font-family: var(--font-mono); font-size: 12px; line-height: 1; color: var(--ink-1); }
.about-notes__list h3 { font-size: var(--t-h4); line-height: 1.25; color: var(--ink-1); font-weight: 520; letter-spacing: -0.01em; max-width: 22em; }
.about-notes__list p { margin-top: 10px; color: var(--ink-2); max-width: 44ch; }
.about-notes__tblock { margin-top: var(--s-7); display: flex; justify-content: flex-end; }
.about-notes__tblock dl { display: grid; grid-template-columns: repeat(3, auto); border: 1px solid var(--ink-3); }
.about-notes__tblock dl > div { padding: 9px 16px 10px; border-left: 1px solid var(--paper-line); display: grid; gap: 2px; }
.about-notes__tblock dl > div:first-child { border-left: 0; }
.about-notes__tblock dt { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-3); }
.about-notes__tblock dd { font-size: 13.5px; color: var(--ink-1); }
@media (max-width: 767px) {
  .about-notes__list { grid-template-columns: 1fr; }
  .about-notes__list li { padding: 28px 0 30px 48px; }
  .about-notes__list li::before { top: 26px; width: 30px; height: 30px; }
  .about-notes__zones { display: none; }
  .about-notes__tblock { justify-content: stretch; }
  .about-notes__tblock dl { width: 100%; }
}

/* ---------- 05 Colophon ----------------------------------------------- */
.about-colophon__grid { row-gap: var(--s-6); align-items: start; }
.about-colophon__head { grid-column: 1 / span 4; }
.about-colophon__spec { grid-column: 6 / span 7; grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line-2); }
.about-colophon__spec > div { display: grid; grid-template-columns: calc((100% - 6 * var(--gutter)) / 7 * 2 + var(--gutter)) minmax(0, 1fr); gap: var(--gutter); align-items: baseline; padding: 15px 0 16px; border-bottom: 1px solid var(--line-1); }
.about-colophon__spec dd { color: var(--tx-2); }
@media (max-width: 1023px) { .about-colophon__head, .about-colophon__spec { grid-column: 1 / -1; } .about-colophon__spec > div { grid-template-columns: 10rem minmax(0, 1fr); } }
@media (max-width: 479px) { .about-colophon__spec > div { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- CTA -------------------------------------------------------- */
.about-cta__grid { align-items: end; row-gap: var(--s-6); }
.about-cta__copy { grid-column: 1 / span 7; }
.about-cta__copy h2 { max-width: 12em; }
.about-cta__copy .t-lead { margin-top: var(--s-5); }
.about-cta__actions { grid-column: 9 / span 4; display: grid; gap: var(--s-4); justify-items: end; justify-self: end; }
@media (max-width: 1023px) { .about-cta__copy, .about-cta__actions { grid-column: 1 / -1; } }


/* the hero's drawing grid fades out instead of stopping at the section edge */
.about-hero .colgrid { -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%); }

/* Founders: normalise scale, tame the brightest highlights */
.person__photo { position: relative; }
.person__photo img[src*="caleb"] { transform: scale(1.14); transform-origin: 50% 30%; }
.person__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,12,16,.38) 0%, rgba(10,12,16,0) 38%); pointer-events: none; }
