/* Ella Vennice: dark monochrome theme.
   Loaded last on every page. All-black page and nav, off-white text, white headings,
   no colour accents, square buttons, rounded media and cards. */

:root {
  --page: #000000;
  --page-2: #141414;
  --ink: #F0EEEC;
  --ink-80: rgba(240, 238, 236, .86);
  --ink-62: rgba(240, 238, 236, .64);
  --ink-hair: rgba(240, 238, 236, .30);
  --ink-16: rgba(240, 238, 236, .16);
  --ink-08: rgba(240, 238, 236, .08);
  --head: #FFFFFF;
  --cloth: #000000;
  --cloth-2: #141414;
  --cloth-ink: #F0EEEC;
  --cloth-70: rgba(240, 238, 236, .80);
  --cloth-text: rgba(240, 238, 236, .74);
  --cloth-hair: rgba(240, 238, 236, .22);
  /* the former red accent becomes white */
  --red: #FFFFFF;
  --red-lit: #FFFFFF;
  --red-deep: #D9D9D9;
  --red-wash: rgba(255, 255, 255, .08);
  --on-red-ink: #F0EEEC;
  --strip: #000000;
  --strip-ink: #F0EEEC;
  --radius: 18px;
  --display: "Newsreader", "Times New Roman", serif;
  --ui: "Newsreader", "Times New Roman", serif;
  --mono: "Newsreader", "Times New Roman", serif;
  --cond: "Newsreader", "Times New Roman", serif;
  --track: .03em;
}

/* Page: black edge to edge */
html {
  background: var(--page);
  font-synthesis: none;
}
body {
  background: var(--page);
  color: var(--ink);
  font-family: var(--ui);
  line-height: 1.56;
  caret-color: #fff;
}
::selection {
  background: #fff;
  color: #000;
}

/* Headings */
h1, h2, h3, h4,
.disp,
.cs__name, .wd__name, .wx__name, .cs__word {
  color: var(--head);
  font-family: var(--display);
  font-weight: 400;
}
em, i {
  font-family: inherit;
}
.disp em,
h1 em, h2 em, h3 em {
  font-family: var(--display);
  font-style: italic;
}

/* Labels, eyebrows: mono, uppercase, light tracking */
.sys,
.sec__name,
.sec__num,
.cs__n,
.wx__parent,
.wf__title,
.drawer__foot .sys {
  font-family: var(--mono);
  font-style: normal;
  letter-spacing: var(--track);
  text-transform: uppercase;
}
.sec__num {
  font-size: 11px;
  color: var(--ink);
}
.sec__name::before {
  content: "\25CF\00a0\00a0";
  font-size: .9em;
}

/* Nav: flat black bar with off-white type and a hairline base, condensed wordmark */
.nav,
.nav.on-dark {
  color: var(--strip-ink);
  background: linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .44) 18%, rgba(0, 0, 0, .3) 38%, rgba(0, 0, 0, .17) 58%, rgba(0, 0, 0, .07) 78%, rgba(0, 0, 0, .015) 92%, rgba(0, 0, 0, 0) 100%);
  padding-bottom: 90px;
  pointer-events: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-color: transparent;
  box-shadow: none;
}
.nav__mark {
  font-family: var(--cond);
  font-weight: 300;
  font-size: 24px;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.nav__mark small,
.nav__link {
  font-family: var(--mono);
  letter-spacing: var(--track);
}
.nav__link.active,
.nav.on-dark .nav__link.active {
  color: var(--strip-ink);
}
.nav__link::after,
.nav__link.active::after {
  background: var(--strip-ink);
}
.nav__progress i,
.nav.on-dark .nav__progress i {
  background: var(--strip-ink);
}
/* Nav mark: the chrome logo, at the identity's 24px on-screen minimum */
.nav .ev-mark {
  width: 24px;
  height: 24px;
  background: url(../img/logo-chrome-small.webp?v=2) center/contain no-repeat;
  -webkit-mask: none;
  mask: none;
  filter: none;
}

/* Buttons: square, 1px border, mono uppercase, minimal hover */
button,
input,
select,
textarea,
.nav__badge,
.alink,
.wf__btn,
.wf__menu,
.pg__btn,
[class*="btn"] {
  border-radius: 0 !important;
}
.nav__badge {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: var(--track);
  padding: 9px 14px;
  border: 1px solid currentColor;
}
.nav__badge::before {
  background: #fff;
}
.nav__badge:hover {
  color: #000;
}
.alink {
  font-family: var(--mono);
  letter-spacing: var(--track);
}

/* Former colour surfaces become flat black */
.on-cloth,
.foot,
.drawer {
  background: var(--page);
  color: var(--cloth-ink);
}
.on-red {
  background: var(--page-2);
  color: var(--ink);
}
.on-cloth .sec__num {
  background: transparent;
  border-color: var(--ink-hair);
  color: var(--ink);
}

/* Logos are dark artwork: render them white on black */
.cs__logo,
.wx__logo {
  filter: brightness(0) invert(.94);
}

/* Media and cards get the body radius; interactive elements stay square */
.cs__frame,
.pg__card {
  border-radius: calc(var(--radius) - 6px);
  overflow: hidden;
}

/* Cards: dark, thin border, rounded, no drop shadows */
.scard,
.ticket,
.badge__card {
  background: var(--page-2);
  color: var(--ink);
  border: 1px solid var(--ink-16);
  border-radius: calc(var(--radius) - 6px);
  box-shadow: none;
}

/* Selected Work folders on the home page: graded greys in place of paper and red */
.file.is-paper {
  --tone: #141414;
  --tone-ink: var(--ink);
  --tone-mute: var(--ink-62);
  --tone-hair: var(--ink-16);
  --tone-accent: #fff;
}
.file.is-bone {
  --tone: #1d1d1d;
  --tone-ink: var(--ink);
  --tone-mute: var(--ink-62);
  --tone-hair: var(--ink-16);
  --tone-accent: #fff;
}
.file.is-red {
  --tone: #262626;
  --tone-ink: #fff;
  --tone-mute: rgba(255, 255, 255, .72);
  --tone-hair: rgba(255, 255, 255, .2);
  --tone-accent: #fff;
}
.file__sheet {
  border-radius: 0 calc(var(--radius) - 6px) calc(var(--radius) - 6px) calc(var(--radius) - 6px);
}

/* Former red-filled surfaces that carry text */
.band--red {
  background: var(--page-2);
  color: var(--ink);
}
.band--red .sec__num {
  border-color: var(--ink-hair);
  color: var(--ink);
}
.scard--hot {
  background: #fff;
  border-color: #fff;
  color: #000;
}
.scard--hot .sys,
.scard--hot .scard__body,
.scard--hot h3,
.scard--hot [class*="name"] {
  color: #000;
}
.scard--hot .scard__top {
  border-bottom-color: rgba(0, 0, 0, .2);
}

/* Pill CTA becomes a square bordered button */
.pill {
  border-radius: 0;
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
  padding: 10px 14px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: var(--track);
}
.pill:hover {
  background: #fff;
  color: #000;
}

/* Arrow buttons: square, white fill on hover */
.ev-arrow {
  border-radius: 0;
}
.ev-arrow:hover,
.ev-arrow:focus-visible,
html .on-cloth .ev-arrow:hover,
html .on-cloth .ev-arrow:focus-visible {
  background-color: #fff;
  border-color: #fff;
  color: #000;
  box-shadow: none;
}

/* Signature Strengths: postcards.
   Landscape card, picture side (charcoal with a white contour drawing) on the left,
   message side (off-white paper, stamp, address rules) on the right. */
#s05 .deck {
  min-height: clamp(520px, 56vw, 780px);
}
#s05 .scard {
  width: clamp(300px, 30vw, 440px);
  aspect-ratio: 3 / 2;
  padding: 0;
  gap: 0;
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-content: stretch;
  background: #F0EEEC;
  color: #111;
  border: 0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: none;
}
#s05 .scard.drag {
  box-shadow: none;
  outline: 1px solid rgba(240, 238, 236, .5);
  outline-offset: 4px;
}
.pc__pic {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(12px, 1.3vw, 18px);
  background: #161616;
  color: #F0EEEC;
  overflow: hidden;
}
.pc__topo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: rgba(240, 238, 236, .7);
  stroke-width: .45;
  pointer-events: none;
}
.pc__num {
  position: relative;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: var(--track);
}
#s05 .pc__name {
  position: relative;
  margin: 0;
  font-family: var(--ui);
  font-weight: 500;
  font-size: clamp(17px, 1.55vw, 24px);
  line-height: 1;
  overflow-wrap: anywhere;
  letter-spacing: -.02em;
  text-transform: lowercase;
  color: #fff;
}
.pc__msg {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 8px;
  padding: clamp(12px, 1.3vw, 18px) clamp(12px, 1.3vw, 18px) clamp(12px, 1.3vw, 18px) clamp(26px, 2.4vw, 32px);
  border-left: 1px solid rgba(17, 17, 17, .18);
}
.pc__side {
  position: absolute;
  left: 7px;
  bottom: 14px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: rgba(17, 17, 17, .55);
  white-space: nowrap;
}
.pc__stamp {
  justify-self: end;
  display: grid;
  place-items: center;
  gap: 3px;
  width: 40px;
  height: 46px;
  border: 1px dashed rgba(17, 17, 17, .55);
  color: #111;
}
.pc__stamp .ev-mark {
  width: 18px;
  height: 18px;
}
.pc__stamp b {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 8.5px;
  letter-spacing: var(--track);
}
#s05 .scard__body {
  margin: 0;
  align-self: start;
  font-family: var(--ui);
  font-size: clamp(10.5px, .82vw, 12.5px);
  line-height: 1.45;
  color: #222;
}
.pc__addr {
  display: grid;
  gap: 9px;
}
.pc__addr i {
  display: block;
  height: 1px;
  background: rgba(17, 17, 17, .3);
}

/* Highlighted card: paper picture side with black lines */
#s05 .scard--hot {
  background: #F0EEEC;
  color: #111;
}
#s05 .scard--hot .pc__pic {
  background: #E2DFDB;
  color: #111;
}
#s05 .scard--hot .pc__topo {
  stroke: rgba(17, 17, 17, .6);
}
#s05 .scard--hot .pc__name {
  color: #000;
}

/* Tablets and small laptops (the deck becomes a swipe row): keep landscape postcards */
@media (max-width:1100px) {
  #s05 .deck {
    align-items: flex-start;
  }
  #s05 .scard {
    width: min(78vw, 420px);
    flex: 0 0 min(78vw, 420px);
    aspect-ratio: 3 / 2;
  }
}

/* Phones: swipe row of postcards, picture side on top */
@media (max-width:1024px) {
  #s05 .deck {
    min-height: 0;
  }
  #s05 .scard {
    width: min(82vw, 320px);
    flex: 0 0 min(82vw, 320px);
    aspect-ratio: auto;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 150px auto;
  }
  .pc__msg {
    border-left: 0;
    border-top: 1px solid rgba(17, 17, 17, .18);
    padding-left: 16px;
  }
  .pc__side {
    display: none;
  }
}

/* Signature Strengths overview row (replaces the lede): numbered index of the six postcards */
.sindex {
  list-style: none;
  margin: clamp(22px, 3vw, 40px) 0 clamp(18px, 2.4vw, 32px);
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px clamp(14px, 2vw, 28px);
}
.sindex__item {
  appearance: none;
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  text-align: left;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: var(--track);
  cursor: pointer;
}
.sindex__n {
  color: var(--ink-62);
}
.sindex__item:hover .sindex__name,
.sindex__item:focus-visible .sindex__name {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.sindex__item:focus-visible {
  outline: 1px solid #fff;
  outline-offset: 4px;
}
#s05 .scard.is-called {
  animation: pc-called 1.1s var(--e-out);
}
@keyframes pc-called {
  0% { outline: 1px solid rgba(255, 255, 255, 0); outline-offset: 10px; }
  25% { outline: 1px solid rgba(255, 255, 255, .9); outline-offset: 5px; }
  100% { outline: 1px solid rgba(255, 255, 255, 0); outline-offset: 5px; }
}
@media (max-width:1100px) {
  .sindex {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width:520px) {
  .sindex {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, auto);
    grid-auto-flow: column;
  }
}
@media (prefers-reduced-motion:reduce) {
  #s05 .scard.is-called {
    animation: none;
  }
}

/* Section labels: small, centered, plain text. No number, no rule, no marker. */
.sec__head,
.page-head > .sec__head,
.on-cloth .sec__head,
.band--red .sec__head {
  justify-content: center;
  gap: 0;
  padding-bottom: 0;
  border-bottom: 0;
}
.sec__num,
.sec__rule {
  display: none !important;
}
.sec__name,
.on-cloth .sec__name,
.band--red .sec__name {
  font-family: var(--ui);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  white-space: normal;
  text-align: center;
}
.sec__name::before {
  content: none;
}

/* Short headlines sit centered under their label */
#s03 .solve > div,
#s03 .sec__title {
  text-align: center;
  margin-inline: auto;
}
#s03 .sec__lede,
#s03 .solve__body {
  margin-inline: auto;
}
#s03 .pos__actions {
  justify-content: center;
}
.page-head--center {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  text-align: center;
}
.page-head--center .page-head__chrome {
  display: block;
  grid-column: 1;
  grid-row: 2;
  width: clamp(110px, 11vw, 170px);
  margin-bottom: clamp(14px, 2vw, 26px);
}
.page-head--center .page-head__title {
  grid-column: 1;
  grid-row: 3;
  max-width: none;
}
.page-head--center .page-head__lede {
  grid-column: 1;
  grid-row: 4;
  margin-inline: auto;
}
/* Home 02: "What I Do" (left, sticky) + "Selected Work" (right, scrolling editorial grid) */
.do-work {
  display: grid;
  grid-template-columns: minmax(200px, 360px) minmax(0, 1fr);
  gap: clamp(24px, 6vw, 110px);
  align-items: start;
}
.do-work__left {
  position: sticky;
  top: clamp(96px, 11vw, 140px);
}
.doP__title {
  margin-top: clamp(20px, 3vw, 34px);
  font-size: clamp(40px, 4.4vw, 64px);
}
.doP__body {
  margin-top: clamp(20px, 2.6vw, 30px);
  max-width: 32ch;
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.6;
  color: var(--cloth-70);
}
.do-work__right {
  min-width: 0;
}
.work__title {
  font-size: clamp(40px, 4.4vw, 64px);
  max-width: none;
}

/* Eight editorial cards, two per row (two reveal per scroll).
   Each frame carries a generated monochrome contour-line composition (no stock photography);
   hovering fades it into the client logo + project description. Caption sits below, persistent. */
.ed-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 2.4vw, 36px);
  margin-top: clamp(32px, 4vw, 56px);
}
.ed-card {
  display: block;
  text-decoration: none;
  color: var(--ink);
}
.ed-card__art {
  display: block;
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 0;
  background: radial-gradient(120% 120% at var(--pos, 70% 20%), #1c1c1c 0%, #000 68%);
}
.ed-card__no {
  position: absolute;
  top: clamp(14px, 1.8vw, 20px);
  left: clamp(16px, 2vw, 22px);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--ink-62);
}
.ed-card__topo {
  position: absolute;
  inset: 8%;
  width: 84%;
  height: 84%;
  fill: none;
  stroke: var(--ink);
  stroke-width: .55;
  opacity: .62;
}
.ed-card__reveal {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
  padding: clamp(18px, 2.2vw, 28px);
  background: rgba(0, 0, 0, .84);
  opacity: 0;
  transition: opacity .5s ease;
}
.ed-card:hover .ed-card__reveal,
.ed-card:focus-visible .ed-card__reveal {
  opacity: 1;
}
.ed-card__logo {
  height: 26px;
  width: auto;
  max-width: 70%;
  object-fit: contain;
  object-position: left;
  filter: brightness(0) invert(1);
  opacity: .92;
}
.ed-card__logo.is-text {
  font-family: var(--display);
  font-style: italic;
  font-size: 22px;
}
.ed-card__desc {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-80);
  max-width: 38ch;
}
.ed-card__cap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 14px;
}
.ed-card__name {
  font-family: var(--display);
  font-size: clamp(19px, 1.7vw, 26px);
}
.ed-card__where {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .06em;
  color: var(--ink-62);
  text-transform: uppercase;
}
@media (max-width: 980px) {
  .ed-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 620px) {
  .do-work {
    grid-template-columns: 1fr;
  }
  .do-work__left {
    position: static;
    max-width: 46ch;
  }
  .ed-card__where {
    display: none;
  }
}

/* Footer rows whose left label was removed: keep the remaining link on the right */
.belief__foot > .alink:only-child,
.pagefoot > .alink:only-child,
.work__foot > .alink:only-child,
.foot__row > :only-child {
  margin-left: auto;
}

/* Newsreader rises higher and overhangs further than the old serif: give the
   masked name and the chrome footer name room so no stroke gets cut off */
.opener__w {
  padding: .22em .08em .16em;
  margin: -.22em -.08em -.16em;
}
.sign span {
  padding: .2em .08em .14em;
  margin: -.2em -.08em -.14em;
}

/* Nav mark is the logo alone: keep its link the size of the logo */
.nav__mark {
  justify-self: start;
  width: max-content;
  padding: 6px;
  margin: -6px;
}
.nav__mark .ev-mark {
  margin-right: 0;
}

/* "What I Do" label sits flush left over its column */
#s02 .do-work__left .sec__head {
  justify-content: flex-start;
}
#s02 .do-work__left .sec__name {
  text-align: left;
}

/* Nav without the link row: logo left, Contact + menu right; the menu opens the side drawer at every size */
.nav {
  grid-template-columns: auto 1fr;
}
.nav__right {
  grid-column: 2;
  justify-self: end;
  align-items: center;
  gap: 18px;
}
.nav__burger {
  display: block;
}

/* Home: section names live in the right-hand rail only. The current one is always shown there,
   so the labels inside the sections are dropped. (Only the home page has the rail.) */
.rail ~ .sec .sec__head,
.rail ~ section .sec__head {
  display: none !important;
}
.rail a.active i,
.rail:hover a.active i {
  opacity: 1;
  transform: none;
}
/* on the opener the name is already huge on screen: no rail label there (shown again in the hover index) */
.rail:not(:hover):not(:focus-within) a[href="#s00"].active i {
  opacity: 0 !important;
}

/* Rail: the current section's name sits directly under its dash, right-aligned, no box */
.rail a {
  position: relative;
  transition: margin-bottom .4s var(--e-out, ease);
}
.rail i,
.rail.on-dark i {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 2px;
  padding: 0;
  background: transparent;
  font-size: 10px;
  letter-spacing: .16em;
  pointer-events: none;
}
.rail a:hover i {
  opacity: 0;
}
.rail a.active,
.rail a.active:hover {
  margin-bottom: 16px;
}
.rail a.active i {
  opacity: 1;
}

/* "Drag the cards" on its own line between the strengths list and the postcards */
#s05 .deck__hint {
  margin: clamp(40px, 5vw, 64px) 0 clamp(12px, 1.6vw, 20px);
  font-size: 15px;
  font-style: italic;
  color: var(--cloth-70);
}
/* Strengths headline: two lines, as written */
#s05 .sec__title {
  max-width: none;
}

/* Case study captions: name with an italic word and the country as a small raised note */
.ed-card__name i {
  font-style: italic;
}
.ed-card__name sup {
  margin-left: .14em;
  font-size: .4em;
  vertical-align: 1.1em;
  letter-spacing: .02em;
  font-style: normal;
}

/* Case study captions belong clearly to the image above: tight to it, well clear of the next card, smaller */
.ed-grid {
  row-gap: clamp(56px, 6vw, 88px);
}
.ed-card__cap {
  margin-top: 10px;
}
.ed-card__name {
  font-size: clamp(16px, 1.25vw, 19px);
}

/* Rail label, final: vertical and parked below the dashes, inside the right margin, so it never touches content */
.rail a,
.rail a.active,
.rail a.active:hover {
  position: static;
  margin-bottom: 0;
}
.rail i,
.rail.on-dark i {
  top: calc(100% + 14px);
  right: 0;
  margin: 0;
  writing-mode: vertical-rl;
  letter-spacing: .18em;
  line-height: 1;
}
/* Hover (or keyboard focus): the rail opens into a clean index of every section on a solid black panel */
/* The frosted strip: full height down the right edge, under the nav, dark at the edge fading to clear */
.rail-frost {
  position: fixed;
  top: 73px;
  right: 0;
  bottom: 0;
  width: min(420px, 40vw);
  z-index: 849;
  background: linear-gradient(to left, rgba(0, 0, 0, .8) 0%, rgba(0, 0, 0, .55) 40%, rgba(0, 0, 0, .15) 78%, rgba(0, 0, 0, 0) 100%);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-mask-image: linear-gradient(to left, #000 0%, #000 40%, transparent 100%);
  mask-image: linear-gradient(to left, #000 0%, #000 40%, transparent 100%);
  opacity: 0;
  transition: opacity .45s ease;
  pointer-events: none;
}
.rail:hover + .rail-frost,
.rail:focus-within + .rail-frost {
  opacity: 1;
}
@media (max-width: 1180px) {
  .rail-frost {
    display: none;
  }
}
.rail:hover a,
.rail:focus-within a {
  position: relative;
  padding: 6px 0;
}
.rail:hover i,
.rail:focus-within i,
.rail.on-dark:hover i {
  position: static;
  writing-mode: horizontal-tb;
  letter-spacing: .14em;
  font-size: 11px;
  opacity: .5 !important;
  transform: none;
  pointer-events: auto;
}
.rail:hover a:hover i,
.rail:hover a.active i,
.rail:focus-within a.active i,
.rail:focus-within a:focus-visible i {
  opacity: 1 !important;
}
.rail a[href="#s00"].active i {
  opacity: 0;
}

/* Rail, final behaviour: the layout never changes between rest and hover, only opacity does.
   Names sit absolutely to the left of their dashes (so they never widen the hover zone) and
   fade in one after another; on leaving they linger a moment then fade, and the vertical
   "current section" label (.rail-now, added by js/motion/rail.js) fades back in after them. */
.rail a,
.rail a.active,
.rail a.active:hover,
.rail:hover a,
.rail:focus-within a {
  position: relative !important;
  margin-bottom: 0 !important;
  padding: 6px 0 !important;
}
.rail i,
.rail.on-dark i {
  position: absolute !important;
  top: 50% !important;
  right: calc(100% + 14px) !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  writing-mode: horizontal-tb !important;
  white-space: nowrap;
  font-size: 11px;
  letter-spacing: .14em;
  opacity: 0 !important;
  transform: translate(8px, -50%) !important;
  pointer-events: none !important;
  transition: opacity .45s ease .18s, transform .6s cubic-bezier(.2, .8, .2, 1) .18s !important;
}
.rail:hover i,
.rail:focus-within i,
.rail.on-dark:hover i,
.rail.on-dark:focus-within i {
  opacity: .5 !important;
  transform: translate(0, -50%) !important;
  pointer-events: auto !important;
}
.rail:hover a.active i,
.rail:hover a:hover i,
.rail:focus-within a.active i,
.rail:focus-within a:focus-visible i {
  opacity: 1 !important;
}
.rail:hover a:nth-child(1) i { transition-delay: 0s !important; }
.rail:hover a:nth-child(2) i { transition-delay: .03s !important; }
.rail:hover a:nth-child(3) i { transition-delay: .06s !important; }
.rail:hover a:nth-child(4) i { transition-delay: .09s !important; }
.rail:hover a:nth-child(5) i { transition-delay: .12s !important; }
.rail:hover a:nth-child(6) i { transition-delay: .15s !important; }
.rail:hover a:nth-child(7) i { transition-delay: .18s !important; }
.rail:hover a:nth-child(8) i { transition-delay: .21s !important; }
.rail:hover a:nth-child(9) i { transition-delay: .24s !important; }

.rail-now {
  position: absolute;
  top: calc(100% + 16px);
  right: 0;
  writing-mode: vertical-rl;
  font-family: var(--ui);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  color: var(--ink);
  pointer-events: none;
  opacity: 1;
  transition: opacity .5s ease .55s;
}
.rail:hover .rail-now,
.rail:focus-within .rail-now {
  opacity: 0;
  transition: opacity .2s ease 0s;
}
.rail-frost {
  transition: opacity .6s ease .15s !important;
}
.rail:hover + .rail-frost,
.rail:focus-within + .rail-frost {
  transition: opacity .45s ease 0s !important;
}

/* Case study cards: a photograph in place of the contour drawing */
.ed-card__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ed-card__photo.is-framed {
  inset: auto;
}

/* Image holders are pure black, like the page */
.cs__frame,
.wd__frame,
.cs__word,
.ed-card__art {
  background: #000 !important;
}

/* ARQIVA's logo arrives dark on white: invert it and let the black drop out over the photo */
.ed-card__logo[src*="arqiva.png"] {
  filter: grayscale(1) invert(1) contrast(1.4);
  mix-blend-mode: screen;
}

/* Postcard picture side as a photograph; a soft shade keeps the number and name legible */
.pc__pic--photo,
#s05 .scard--hot .pc__pic--photo {
  background-color: #161616;
  background-size: cover;
  background-position: center;
  color: #F0EEEC;
}
.pc__pic--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .25) 0, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, .55) 100%);
  pointer-events: none;
}
#s05 .scard--hot .pc__pic--photo .pc__name { color: #fff; }
.pc__pic--photo .pc__topo { display: none; }
.pc__pic--photo > * { position: relative; z-index: 1; }

/* Strength cards: names never split mid-word, and on narrower screens the scroll drift is off
   so the cards sit in a clean row instead of sliding into each other */
#s05 .pc__name,
#s05 .scard--hot .pc__name {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  font-size: clamp(15px, 1.35vw, 21px);
}
@media (max-width: 1100px) {
  #s05 .scard { translate: none !important; }
}
/* Message side holds only the text, set in the middle of the panel */
.pc__msg { display: flex; align-items: center; }

/* No hairline under the nav: the gradient fades straight into the page */
.nav__progress { display: none; }

/* The nav box now reaches below the links for the long fade; only its contents take clicks */
.nav > * { pointer-events: auto; }

/* Phones only (tablets keep the teaser cards): the case study cards two across, so four fill the screen, each client logo shown in white on its photograph */
@media (max-width: 760px) {
  .ed-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 12px;
    row-gap: 24px;
  }
  .ed-card__reveal {
    opacity: 1;
    justify-content: center;
    align-items: center;
    padding: 12px;
    background: rgba(0, 0, 0, .28);
  }
  .ed-card__logo {
    height: 24px;
    max-width: 74%;
    object-position: center;
  }
  .ed-card__logo.is-text {
    font-size: 17px;
    text-align: center;
  }
  .ed-card__desc {
    display: none;
  }
  .ed-card__name {
    font-size: 14px;
  }
}

/* Phones only: "Strategy with … / … with Taste" is a frame of its own, centred in the screen */
@media (max-width: 1024px) {
  #s01 {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 72px;
    padding-bottom: 28px;
  }
}

/* Phones only: Signature Strengths fits one screen, from the headline to the postcards */
@media (max-width: 1024px) {
  #s05 { padding-top: 40px; padding-bottom: 40px; }
  #s05 .sec__title { font-size: 30px; line-height: 1.08; }
  #s05 .sec__lede { margin-top: 12px; font-size: 14px; line-height: 1.45; }
  #s05 .sindex { margin: 16px 0; gap: 10px 14px; }
  #s05 .sindex__item { gap: 2px; font-size: 11px; }
  #s05 .scard { grid-template-rows: 110px auto; }
}

/* Ella's portrait (photograph by Elija Viktoriah) heads the "Strategy with … / … with Taste" frame on phones only:
   a small print with a white border, a little tilted, that opens the About page */
.s01__ph { display: none; }
@media (max-width: 1024px) {
  .s01__ph {
    display: block;
    width: min(38vw, 150px);
    margin: 30px auto 4px;
    padding: 6px 6px 7px;
    background: #f4f2ee;
    transform: rotate(-3deg);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .5);
  }
  .s01__ph img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
  }
}

/* "See all work" centred under the case study cards, on every screen */
.work__foot { justify-content: center; text-align: center; }
.work__foot > .alink:only-child { margin-left: auto; margin-right: auto; }

/* Phones only: a black gradient behind the top bar once content scrolls under it (js/mobile.js adds .nav--shade) */
@media (max-width: 1024px) {
  .nav--shade::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: calc(76px + env(safe-area-inset-top, 0px));
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(to bottom, #000 0%, #000 72%, rgba(0, 0, 0, .6) 88%, rgba(0, 0, 0, 0) 100%);
  }
}

/* Phones only: "Where is your brand right now?" is a frame of its own, the spiral staircase above the question */
.solve__ph { display: none; }
@media (max-width: 1024px) {
  #s03 {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 72px;
    padding-bottom: 28px;
  }
  .solve__ph {
    display: block;
    width: min(64vw, 260px);
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    margin: 0 auto 30px;
  }
}

/* Phones only: the strengths swipe row glides and settles gently on a card, and each card ends just below its text */
@media (max-width: 1024px) {
  #s05 .deck {
    align-items: stretch;
    scroll-snap-type: x proximity;
    scroll-behavior: smooth;
  }
  #s05 .scard {
    height: auto;
    min-height: 0;
    scroll-snap-align: start;
    transition: none;
  }
  #s05 .pc__msg {
    grid-template-rows: auto;
    align-content: start;
    padding-bottom: 18px;
  }
}

/* Phones only: the belief statement and the contact footer share one screen, the statement in the top third */
@media (max-width: 1024px) {
  #s07 { min-height: 0; height: 34svh; display: flex; flex-direction: column; justify-content: center; padding-top: 64px; padding-bottom: 12px; box-sizing: border-box; }
}
@media (max-width: 1024px) {
  /* the belief statement starts below the top bar and is sized to fit its third of the screen */
  #s07 { justify-content: flex-start; padding-top: 88px; }
  #s07 .belief, #s07 .belief * { font-size: 28px; line-height: 1.12; }
  #s07 .belief__foot { margin-top: 14px; }
  /* more room after the strengths postcards before the next section */
  #s05 { padding-bottom: 88px; }
}

/* Tablets: the portrait print and its link at a size that suits the larger screen */
@media (min-width: 761px) and (max-width: 1024px) {
  .s01__ph { width: min(34vw, 300px); margin-top: 48px; padding: 10px 10px 12px; }
  #s01 .alink { font-size: 17px; }
}

/* Tablets: one case study card per row, teaser text included */
@media (min-width: 761px) and (max-width: 1024px) {
  .ed-grid { grid-template-columns: minmax(0, 1fr); row-gap: 40px; }
}

/* Tablets: Signature Strengths fills one full screen, the cards taller with larger text */
@media (min-width: 761px) and (max-width: 1024px) {
  #s05 { min-height: calc(100svh - 72px); display: flex; flex-direction: column; justify-content: center; box-sizing: border-box; padding-top: 6svh; padding-bottom: 6svh; }
  #s05 .sec__title { font-size: 44px; }
  #s05 .sindex { margin: 4svh 0; gap: 18px 24px; }
  #s05 .sindex__item { font-size: 15px; }
  #s05 .scard { grid-template-rows: 30svh auto; }
  #s05 .scard p, #s05 .pc__msg p { font-size: 17px; line-height: 1.55; }
}

/* Tablets: the belief line takes a shorter band above the footer */
@media (min-width: 761px) and (max-width: 1024px) {
  #s07 { height: 22svh; padding-top: 40px; }
  #s07 .believe__line, #s07 p { font-size: 30px; }
}

/* Tablets: supporting lines share one size, 20px, the same as the line under the emblem */
@media (min-width: 761px) and (max-width: 1024px) {
  #s01 .pos__body,
  .rep__cols p,
  #s05 .sindex__item,
  .ftr__credit,
  .ftr__l, .ftr__r, .ftr__l a, .ftr__r a, .ftr__l span, .ftr__r span { font-size: 20px !important; line-height: 1.45; }
}

/* The strengths list breaks each name onto two lines on tablets only (Sensemaking stays one word) */
.sindex__br { display: none; }
@media (min-width: 761px) and (max-width: 1024px) {
  .sindex__br { display: inline; }
  /* the strength names on the postcards, larger */
  #s05 .pc__name, #s05 .scard--hot .pc__name { font-size: 28px; }
}

/* Tablets: the guide's opening line and its link at 20px */
@media (min-width: 761px) and (max-width: 1024px) {
  #s03 .solve__lead, #s03 .solve .alink { font-size: 20px !important; }
}

/* Beliefs, laptops and larger: the statement is always left aligned and sits in the vertical middle of the screen, however
   many lines it runs to, so it never jumps as the beliefs change. Phones and tablets keep their own rules above. */
@media (min-width: 1025px) {
  #s07 { display: flex; align-items: center; }
  #s07 > .wrap { width: 100%; }
  #s07 .belief { align-items: center; min-height: calc(clamp(30px, 5.8vw, 80px) * 1.04 * 4); }
  #s07 .belief__foot:empty, #s07 .belief__foot:not(:has(*)) { display: none; }
}

/* Home 01 on laptops and larger: one full screen, content centred, and Ella's portrait (photograph by Elija Viktoriah) as a
   small tilted print beside the sentence and the link, the same print the phone layout uses. */
@media (min-width: 1025px) {
  #s01 { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: 84px; padding-bottom: clamp(28px, 4vh, 48px); box-sizing: border-box; }
  #s01 > .wrap { width: 100%; }
  #s01 .pos { margin-top: clamp(28px, 5vh, 56px); }
  #s01 .pos > div { display: grid; grid-template-columns: auto minmax(0, 28em); grid-template-areas: "ph body" "ph act"; column-gap: clamp(32px, 3.6vw, 60px); row-gap: 20px; align-items: center; justify-content: center; text-align: left; }
  #s01 .s01__ph { display: block; grid-area: ph; width: clamp(120px, min(11vw, 22vh), 190px); margin: 0; padding: 7px 7px 9px; background: #f4f2ee; transform: rotate(-3deg); box-shadow: 0 12px 30px rgba(0, 0, 0, .5); }
  #s01 .s01__ph img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
  #s01 .pos__body { grid-area: body; margin: 0; text-align: left; align-self: end; }
  #s01 .pos__actions { grid-area: act; justify-content: flex-start; align-self: start; }
}

/* Laptops: the strength postcards read as three beats (lead sentence, explanation, takeaway) instead of one block of text */
@media (min-width: 1025px) {
  #s05 .pc__msg { align-items: center; }
  #s05 .scard__body { display: flex; flex-direction: column; gap: 7px; align-self: center; }
  #s05 .pc__s { display: block; }
  #s05 .pc__s--lead { font-size: 1.32em; line-height: 1.16; font-weight: 500; letter-spacing: -.012em; color: #0e0e0e; }
  #s05 .pc__s--mid { color: #4a4a4a; }
  #s05 .pc__s--end { margin-top: 2px; padding-top: 7px; border-top: 1px solid rgba(17, 17, 17, .28); font-style: italic; color: #111; }
}

/* Tablets: the line under "What taste looks like in the work." uses the same 20px as the other supporting text */
@media (min-width: 761px) and (max-width: 1024px) {
  .doP__body { font-size: 20px !important; line-height: 1.45; }
}
/* Tablets: the line under "Sixteen decisions leaders bring to me." matches the other supporting text too */
@media (min-width: 761px) and (max-width: 1024px) {
  .pdeck-head__d { font-size: 20px !important; line-height: 1.45; }
}

/* iPhone Safari 26: pages use viewport-fit=cover so the top bar reaches the very top of the screen (no page showing
   through under the clock). Anything else pinned to the top keeps clear of the clock with the safe-area inset. */
@media (max-width: 1024px) {
  .shp__bar { margin-top: env(safe-area-inset-top, 0px); }
  .px__x { top: calc(78px + env(safe-area-inset-top, 0px)); }
  .px__d { padding-top: calc(132px + env(safe-area-inset-top, 0px)); }
  #guide .gd__x { top: env(safe-area-inset-top, 0px); }
}

/* iPhone Safari 26 colours the clock area from a SOLID bar pinned at the top (tested 8 Nov: a 20px bar fills it,
   a 1px one is ignored). Once the page scrolls under the top bar, the strip (js/site.js, .sbar) becomes a solid
   20px band, inside the bar's own black fade, so it looks the same but gives Safari a colour to use. */
@media (max-width: 1024px) {
  /* it must take taps like a normal element: Safari finds the top bar by hit-testing, and skips anything with
     pointer-events:none (that is why the 1px/20px pass-through strip was ignored). It sits above the logo and menu. */
  html:has(.nav--shade) .sbar { height: 20px !important; pointer-events: auto !important; }
}


/* Phones: a SOLID black top bar, always on, like the About page's solid white one. iPhone Safari 26 only fills the
   clock area from a solid bar that is part of the page from the start; a see-through fade lets the page show
   through above the bar. The 90px of fade padding goes, a soft shadow keeps some softness, the text stays light. */
@media (max-width: 1024px) {
  .nav, .nav.nav--shade {
    background-color: #000 !important;
    padding-bottom: 16px !important;
    color: #f0eeec !important;
    /* match the About bar exactly (the one that works on iPhone): no see-through 1px top border, no fade image
       layered over the black, no shadow, and no extra strip element at the top edge */
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
  }
  .nav--shade::before { display: none !important; }
  .sbar { display: none !important; }
  /* the soft fade Ella likes, now BELOW the solid bar (so the bar's top edge stays solid for Safari) */
  .nav::after {
    content: "" !important; display: block !important; position: absolute; left: 0; right: 0; top: 100%; bottom: auto;
    height: 56px; z-index: -1; pointer-events: none;
    background: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .55) 40%, rgba(0, 0, 0, 0) 100%);
  }
}


/* Big desktops (8 Nov): "What taste looks like in the work" gets a roomier left column with larger words, and the
   eight projects sit four across (two rows), so the cards are a comfortable size instead of filling the screen */
@media (min-width: 1600px) {
  .do-work { grid-template-columns: clamp(440px, 24vw, 760px) minmax(0, 1fr); gap: clamp(80px, 5vw, 160px); }
  .doP__title { font-size: clamp(68px, 3.9vw, 128px); }
  .doP__body { font-size: clamp(17px, .82vw, 24px); max-width: 32ch; }
  .ed-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: clamp(24px, 1.6vw, 48px); row-gap: clamp(56px, 3.6vw, 100px); }
  .ed-card__name { font-size: clamp(17px, .95vw, 24px); }
}

/* Laptops and larger: the beliefs as a statement moment. One full screen of pure black, the belief large and centred,
   and a quiet counter so it reads as a sequence of five. */
@media (min-width: 1025px) {
  #s07 { background: #000; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding-top: 96px; padding-bottom: 64px; box-sizing: border-box; }
  #s07 > .wrap { width: 100%; }
  #s07 .belief { display: flex; justify-content: center; align-items: center; min-height: calc(clamp(48px, 5.4vw, 170px) * 1.06 * 3); }
  #s07 .belief__text { font-size: clamp(48px, 5.4vw, 170px); line-height: 1.04; max-width: 15ch; margin: 0 auto; text-align: center; }
  #s07 .belief__foot { display: flex !important; justify-content: center; margin-top: clamp(28px, 4vh, 64px); }
  #s07 .belief__n { font-size: clamp(12px, .78vw, 20px); letter-spacing: .16em; color: rgba(244, 241, 234, .55); font-variant-numeric: tabular-nums; }
}

/* Phones: the line under "What taste looks like in the work." runs the full width, left aligned */
@media (max-width: 760px) {
  .doP__body { max-width: none; text-align: left; }
}

/* Phones and tablets: the beliefs as the same statement moment as on laptops. One screen of pure black, the belief
   large and centred, the quiet counter centred under it (replaces the grey band above the footer). */
@media (max-width: 1024px) {
  #s07 { background: #000; height: auto; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; align-items: stretch; padding-top: 88px; padding-bottom: 56px; box-sizing: border-box; }
  #s07 > .wrap { width: 100%; }
  #s07 .belief { display: flex; justify-content: center; align-items: center; min-height: calc(clamp(40px, 11vw, 72px) * 1.06 * 4); }
  #s07 .belief, #s07 .belief * { line-height: 1.06; }
  #s07 .belief__text, #s07 .belief__text * { font-size: clamp(40px, 11vw, 72px); }
  #s07 .belief__text { max-width: 12ch; margin: 0 auto; text-align: center; }
  #s07 .belief__foot { display: flex !important; justify-content: center; margin-top: 28px; }
  #s07 .belief__n { font-size: 12px; letter-spacing: .16em; color: rgba(244, 241, 234, .55); font-variant-numeric: tabular-nums; }
}

/* Phones: breathing space between "Sixteen decisions you might be facing right now." and the line under it */
@media (max-width: 760px) {
  .pdeck-head .pdeck-head__d { margin-top: 40px; }
}

/* Phones: the assessment teaser shows the real question in large type instead of a small picture of it. The answers
   take turns being the bright one (js inline on the home page), inviting a tap; every answer opens the assessment. */
@media (max-width: 760px) {
  #s03 .solve > div { display: flex; flex-direction: column; align-items: stretch; }
  #s03 .solve__ph { display: none; }
  #s03 .solve__roles { order: -1; display: block; margin: 0 0 clamp(40px, 7svh, 72px); text-align: left; }
  #s03 .solve__rk { margin: 0 0 16px; font-size: 15px; color: #a3a39e; }
  #s03 .solve__roles a { position: relative; display: block; padding: 2px 0; font-family: var(--display); font-weight: 300; font-size: clamp(24px, 7.2vw, 36px); line-height: 1.18; letter-spacing: -.012em; color: #F0EEEC; white-space: nowrap; text-decoration: none; opacity: .28; transition: opacity .5s ease, transform .5s cubic-bezier(.2, .8, .2, 1); }
  #s03 .solve__roles a.is-near { opacity: .55; }
  #s03 .solve__roles a.is-on { opacity: 1; }
  /* the bright answer gets a small arrow after it, with room to breathe; nothing shifts sideways (8 Nov) */
  #s03 .solve__roles a::after { content: "\2192"; display: inline-block; margin-left: .45em; font-size: .6em; vertical-align: .18em; opacity: 0; transform: translateX(-4px); transition: opacity .4s ease, transform .4s ease; }
  #s03 .solve__roles a.is-on::after { opacity: 1; transform: none; }
  /* the two lines under the answers read as one short block */
  #s03 .solve__lead, #s03 .solve__q { text-wrap: balance; }
  #s03 .solve__lead { margin: 0 0 8px !important; font-size: 16px !important; line-height: 1.45; color: rgba(244,241,234,.55) !important; }
  #s03 .solve__q { margin: 0 0 28px !important; font-size: 24px !important; line-height: 1.25; }
  #s03 .solve__lead, #s03 .solve__q, #s03 .pos__actions { text-align: left; }
  #s03 .pos__actions { justify-content: flex-start; }
}
