/* review/page.css
 *
 * The wall the creatives hang on. Everything here is deliberately quieter than the artwork:
 * the ads are the only saturated thing on the page, and the page's one structural device is
 * the family's own object, a straight solid unbroken red rule.
 *
 * Two text colours, no cards, no decoration. Spacing carries the grouping. The only bordered
 * objects are the artworks themselves, which take a hairline so a near black canvas can be
 * told from the wall behind it, and the headline band, which is a bar on LinkedIn too.
 */

@font-face { font-family: IS; src: url(f/instrument-600.woff) format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: IN; src: url(f/inter-400.woff) format("woff"); font-weight: 400; font-display: swap; }

:root {
  --wall: #05050c;           /* the wall, one step under the artwork's own ground */
  --art:  #04040e;           /* the ground every canvas is painted on */
  --ink:  #ffffff;
  --ink2: rgba(255, 255, 255, 0.56);
  --edge: rgba(255, 255, 255, 0.11);
  --red:  #ff3337;
  --rail: 0px;
  --pad:  clamp(20px, 4vw, 44px);
  --col:  1200px;
}

* { box-sizing: border-box; }

html { background: var(--wall); }

body {
  margin: 0;
  padding-left: var(--rail);
  background: var(--wall);
  color: var(--ink);
  font: 17px/1.6 IN, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { display: block; max-width: 100%; }
em { font-style: normal; color: var(--ink); }

a.link { color: var(--ink); text-decoration: none; box-shadow: inset 0 -1px 0 0 var(--red); }
a.link:hover { box-shadow: inset 0 -2px 0 0 var(--red); }

/* White on the family red measures 3.63 to 1, under the floor for text at this size, so the
 * skip link keeps the wall behind it and takes the red as a ring instead. */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 50;
  background: var(--wall); color: var(--ink); padding: 14px 20px; font-family: IS, sans-serif;
  box-shadow: inset 0 0 0 2px var(--red);
}
.skip:focus { left: 0; }

.tap { margin: clamp(30px, 3.6vw, 44px) 0 0; max-width: 72ch; color: var(--ink2); font-size: 15px; }
.tap .lab { margin-bottom: 8px; }

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* ------------------------------------------------------------------ the reading column */
.top, main > section, footer { max-width: var(--col); margin: 0 auto; padding: 0 var(--pad); }

/* The family's signature, at page scale. One straight, solid, unbroken horizontal that runs
 * off both edges of the column it sits in. It is the only structural device on the page. */
.rule {
  height: 3px; background: var(--red);
  margin: 0 calc(-1 * var(--pad));
}

/* ------------------------------------------------------------------------------- header */
.top { padding-top: clamp(48px, 8vw, 108px); padding-bottom: clamp(48px, 7vw, 92px); }
.mark { height: 22px; width: auto; opacity: 0.9; }
.top h1 {
  font-family: IS, sans-serif; font-weight: 600;
  font-size: clamp(46px, 8.4vw, 104px); line-height: 0.98; letter-spacing: -0.04em;
  margin: clamp(28px, 4vw, 52px) 0 clamp(26px, 3.5vw, 44px);
}
.top h1 span { color: var(--ink2); }
.lede { margin-top: clamp(28px, 3.6vw, 44px); max-width: 62ch; }
.lede p { margin: 0 0 14px; }
.quiet { color: var(--ink2); }

.facts {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: clamp(30px, 4vw, 48px); margin: clamp(34px, 4.5vw, 56px) 0 0;
}
.facts div { margin: 0; }
.facts dt { font-size: 12px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink2); }
.facts dd {
  margin: 8px 0 0; font-family: IS, sans-serif; font-weight: 600;
  font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.03em; font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------------- rail */
.rail {
  position: sticky; top: 0; z-index: 20;
  background: rgba(5, 5, 12, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 0 var(--pad);
  overflow-x: auto;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail-lab { display: none; }
.rail ol { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; counter-reset: none; }
.rail a {
  position: relative; display: flex; align-items: baseline; gap: 8px;
  padding: 14px 12px; white-space: nowrap;
  color: var(--ink2); text-decoration: none; font-size: 14px;
  transition: color 140ms ease;
}
.rail a .pos { font-family: IS, sans-serif; font-size: 11px; letter-spacing: 0.08em; }
.rail a.first .pos { color: var(--red); }
.rail a:hover, .rail a.active { color: var(--ink); }
.rail a.active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; background: var(--red);
}

/* ------------------------------------------------------------------------ a pair, a wall */
/* Below 1180 the index is a sticky bar, so an anchor jump has to clear it. */
main > section { padding-top: clamp(64px, 9vw, 132px); padding-bottom: clamp(20px, 3vw, 36px); scroll-margin-top: 62px; }
@media (min-width: 1180px) { main > section { scroll-margin-top: 0; } }
main > section:last-of-type { padding-bottom: clamp(48px, 6vw, 80px); }

.head { margin-bottom: clamp(34px, 4.2vw, 52px); }
.idx { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin: 0 0 18px; }
.idx .pos {
  font-family: IS, sans-serif; font-size: 13px; letter-spacing: 0.1em;
  color: var(--ink2); font-variant-numeric: tabular-nums;
}
.idx .who { font-family: IS, sans-serif; font-size: 15px; letter-spacing: -0.01em; }
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink2);
}
.tag .n { text-transform: none; letter-spacing: 0.01em; }
.tag-live { color: var(--ink); }
.tag-live::before { content: ""; width: 22px; height: 3px; background: var(--red); }

h2.line {
  font-family: IS, sans-serif; font-weight: 600;
  font-size: clamp(30px, 4.2vw, 58px); line-height: 1.03; letter-spacing: -0.038em;
  margin: 0 0 clamp(22px, 2.6vw, 32px); max-width: 20ch;
}

/* --------------------------------------------------- the artwork, and the words beside it */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: clamp(30px, 3.6vw, 52px); align-items: start; }
.hero-art { margin: 0; min-width: 0; }
.hero-art figcaption { margin-top: 14px; }

.words { display: flex; flex-direction: column; gap: 28px; }

.lab {
  display: block; margin: 0 0 12px;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink2);
}
.lab .n { text-transform: none; letter-spacing: 0.01em; margin-left: 12px; }
.lab .live { color: var(--red); }

.intro { margin: 0; font-size: 16px; line-height: 1.55; }
.intro .seen { color: var(--ink); }
.intro .more { color: var(--red); font-family: IS, sans-serif; white-space: nowrap; }
.intro .rest { color: var(--ink2); }
.intro .fits { color: var(--ink2); font-size: 12px; letter-spacing: 0.13em; text-transform: uppercase; white-space: nowrap; }
.introb { margin: 0; color: var(--ink2); font-size: 15px; line-height: 1.55; max-width: 74ch; }

.band {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  margin: 0; padding: 16px 0;
  border-top: 1px solid var(--edge); border-bottom: 1px solid var(--edge);
}
.band-text { font-family: IS, sans-serif; font-size: 18px; line-height: 1.25; letter-spacing: -0.02em; }
.cta {
  flex: 0 0 auto; font-family: IS, sans-serif; font-size: 14px; letter-spacing: 0.01em;
  padding: 9px 20px; box-shadow: inset 0 0 0 1px var(--edge);
}

/* ------------------------------------------------------------------------- the artworks */
.shot { position: relative; display: block; background: var(--art); }
.shot::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 0 1px var(--edge);
  transition: box-shadow 140ms ease;
}
.shot:hover::after { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34); }
.shot:focus-visible { outline: none; }
.shot:focus-visible::after { box-shadow: inset 0 0 0 2px var(--red); }
.shot img { width: 100%; height: auto; }

.plate { min-width: 0; }
.plate .lab { margin-bottom: 12px; }

/* The two remaining formats sit in one specimen row. The landscape takes the wider cell so
 * the two finish at close to the same depth: equal cells left a tall portrait beside a short
 * landscape, which is an empty rectangle beside something rather than a gutter. */
.others {
  display: grid; grid-template-columns: 0.62fr 1fr; gap: 26px; align-items: start;
  margin-top: clamp(38px, 4.6vw, 60px);
}

.feed { display: flex; flex-wrap: wrap; gap: clamp(26px, 3.4vw, 48px); margin-top: clamp(38px, 4.6vw, 60px); }
.frame.m { width: 375px; max-width: 100%; }
.frame.d { width: 552px; max-width: 100%; }

.carousel { margin-top: clamp(38px, 4.6vw, 60px); }
.cards {
  display: flex; gap: 16px; overflow-x: auto; padding-bottom: 14px;
  scroll-snap-type: x proximity;
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}
.cards::-webkit-scrollbar { height: 8px; }
.cards::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.22); }
.cards::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.05); }
.card { flex: 0 0 264px; scroll-snap-align: start; }
.card .lab { margin-bottom: 10px; }
.cardtext { margin: 12px 0 0; font-size: 14px; line-height: 1.45; color: var(--ink2); }

/* -------------------------------------------------------------------- before and after */
.ba { margin-top: clamp(38px, 4.6vw, 60px); }
.ba-row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.ba figure, .preview figure { margin: 0; min-width: 0; }
.stamp {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 10px; color: var(--ink2);
}
.stamp.on { color: var(--ink); }
.stamp.on::before { content: ""; display: inline-block; width: 22px; height: 3px; background: var(--red); margin-right: 8px; vertical-align: 3px; }
figcaption { margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--ink2); }

/* ------------------------------------------------------------------------- document ad */
.preview .ba-row { grid-template-columns: 1fr 1fr; }
.docwords { margin-top: clamp(40px, 5vw, 64px); }
.docwords .words { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 48px; }
.docwords .word-row:nth-child(n+3) { grid-column: 1 / -1; }
.behind { margin-top: clamp(44px, 5.4vw, 68px); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 14px; }
.thumbs figure { margin: 0; }
.thumbs figcaption { margin-top: 7px; font-size: 12px; font-variant-numeric: tabular-nums; }
.behind .foot { margin: 26px 0 0; }

/* ------------------------------------------------------------------------------ motion */
.vids { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
.vid { margin: 0; min-width: 0; }
.vid video { width: 100%; height: auto; background: var(--art); box-shadow: inset 0 0 0 1px var(--edge); }

/* ------------------------------------------------------------------------------ footer */
footer { padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px); }
footer p { margin: 24px 0 0; max-width: 72ch; font-size: 15px; }

/* --------------------------------------------------------------------------- lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(2, 2, 7, 0.97);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px; padding: 44px 24px 32px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 96vw; max-height: 84vh; width: auto; height: auto; object-fit: contain; }
.lb-cap { margin: 0; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink2); }
.lb-close {
  position: absolute; top: 18px; right: 20px;
  background: none; border: 0; color: var(--ink); font: inherit; font-size: 14px;
  padding: 10px 16px; cursor: pointer; box-shadow: inset 0 0 0 1px var(--edge);
}
.lb-close:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34); }

/* ------------------------------------------------------------------------ breakpoints */
/* divide: the rail leaves the flow and becomes a fixed index down the left edge */
@media (min-width: 1180px) {
  :root { --rail: 168px; }
  .rail {
    position: fixed; left: 0; top: 0; bottom: 0; width: var(--rail);
    display: flex; flex-direction: column; justify-content: center;
    padding: 40px 0 40px 48px; border-bottom: 0; overflow: visible; background: none;
  }
  .rail-lab {
    display: block; margin: 0 0 16px 12px;
    font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink2);
  }
  .rail ol { flex-direction: column; gap: 0; }
  .rail a { padding: 8px 12px; }
  .rail a.active::after { left: -30px; right: auto; bottom: auto; top: 50%; width: 20px; height: 3px; }
}

/* resize: the words leave the artwork's side and the specimen row unstacks */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; gap: 34px; }
  .words { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; }
  .word-row:nth-child(n+3) { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .others, .ba-row, .vids, .words { grid-template-columns: 1fr; }
  .preview .ba-row { grid-template-columns: 1fr 1fr; }
  .others, .ba-row { gap: 32px; }
}

/* swap: the phone reads one column, and nothing is allowed to set its own width */
@media (max-width: 620px) {
  .frame.m, .frame.d { width: 100%; }
  .card { flex: 0 0 210px; }
  h2.line { max-width: none; }
  .thumbs { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
  .preview .ba-row { grid-template-columns: 1fr; }
  .band { flex-direction: column; align-items: flex-start; gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
