/* ==========================================================================
   HALBFETT — type foundry, Zürich
   The loudest page in the batch and the plainest: pure white, pure black, one
   vermilion, and type doing all the work. No rules, no cards, no shadows. The
   grid is a single wide measure broken only by the specimen ladder, which is
   set to the full width on purpose.
   ========================================================================== */

.page {
  --white: #ffffff;
  --ink: #000000;
  --red: #ff3b14;
  --grey: #9a9a9a;
  --pale: #dcdcdc;
  --gut: clamp(1.1rem, 4vw, 3.5rem);
  --max: 84rem;

  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  letter-spacing: -0.016em;
  background: var(--white);
  color: var(--ink);
  line-height: 1.45;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

.page :where(a) {
  color: inherit;
  text-decoration: none;
}

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

.page img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------------------------------------------------------------- top bar */

.bar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--gut);
  padding: 0.75rem var(--gut);
  background: color-mix(in srgb, var(--white) 92%, transparent);
  backdrop-filter: blur(8px);
}

.logo {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.042em;
}

.bar nav {
  display: flex;
  gap: clamp(0.9rem, 2.4vw, 2.2rem);
  justify-content: center;
  flex-wrap: wrap;
}

.bar nav a {
  font-size: 0.82rem;
  font-weight: 500;
}

.bar nav a:hover {
  color: var(--red);
}

.trial {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.42rem 0.85rem;
  background: var(--ink);
  color: var(--white) !important;
}

.trial:hover {
  background: var(--red);
}

/* -------------------------------------------------------------------- hero */

.hero {
  position: relative;
  isolation: isolate;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 10vw, 8rem) var(--gut) clamp(2.5rem, 7vw, 5rem);
}

/* dotmatrix at a small cell is a fine screen; run it faint and let it stop
   under the headline so the black type never fights it. */
.heroField {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.5;
  mask-image: linear-gradient(180deg, #000 0%, transparent 74%);
}

.kicker {
  margin: 0 0 clamp(1.2rem, 4vw, 3rem);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--red) 85%, var(--ink));
}

.hero1 {
  margin: 0;
  font-size: clamp(2.6rem, 9vw, 7rem);
  font-weight: 800;
  line-height: 0.93;
  letter-spacing: -0.044em;
}

.hero1 span {
  /* The muted second line sits over the hero pattern; plain
     var(--grey) measured under AA on the glyph pixels. */
  color: color-mix(in srgb, var(--grey) 75%, var(--ink));
}

.heroLede {
  margin: clamp(1.6rem, 4vw, 2.8rem) 0 0;
  max-width: 34rem;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: color-mix(in srgb, var(--ink) 72%, transparent);
}

/* ---------------------------------------------------------- full-bleed plate */

.bleed {
  margin: 0;
}

.bleed img {
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

/* ------------------------------------------------------------ section head */

.head {
  display: grid;
  gap: 0.5rem;
  margin: 0 0 clamp(1.6rem, 4vw, 2.8rem);
  max-width: 44rem;
}

.head h2 {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.head p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--grey);
}

/* ----------------------------------------------------------------- library */

.library,
.licences {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) var(--gut);
}

.families {
  list-style: none;
  margin: 0;
  padding: 0;
}

.families li {
  display: grid;
  grid-template-columns: 3rem minmax(0, 2.4fr) 6rem minmax(0, 1fr) 4rem;
  gap: clamp(0.6rem, 2vw, 1.6rem);
  align-items: baseline;
  padding: 1.1rem 0;
  border-top: 1px solid var(--pale);
}

.families li:last-child {
  border-bottom: 1px solid var(--pale);
}

.fNo {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--red);
  font-variant-numeric: tabular-nums;
}

.fMain h3 {
  margin: 0 0 0.3rem;
  font-size: clamp(1.05rem, 1.9vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.035em;
}

.fMain p {
  margin: 0;
  font-size: 0.86rem;
  color: color-mix(in srgb, var(--ink) 66%, transparent);
  max-width: 42rem;
}

.fMeta,
.fYear {
  font-size: 0.78rem;
  color: var(--grey);
  font-variant-numeric: tabular-nums;
}

.fYear {
  text-align: right;
}

/* ---------------------------------------------------------------- specimen */

.specimen {
  position: relative;
  isolation: isolate;
  padding: clamp(3rem, 8vw, 6rem) 0;
  background: var(--white);
}

.specField {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.34;
}

.specField::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 74% 68% at 50% 52%,
    var(--white) 0%,
    color-mix(in srgb, var(--white) 58%, transparent) 62%,
    transparent 100%
  );
}

.specInner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gut);
}

.ladder {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ladder li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.15rem 0;
  border-top: 1px solid var(--pale);
}

.lWord {
  font-size: clamp(1.7rem, 6.4vw, 4.6rem);
  line-height: 1.12;
  letter-spacing: -0.042em;
  white-space: nowrap;
}

.lMeta {
  flex: none;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--grey);
  font-variant-numeric: tabular-nums;
}

.lMeta i {
  font-style: normal;
  color: var(--red);
}

/* ------------------------------------------------------------ character set */

.glyphs {
  position: relative;
  isolation: isolate;
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--gut);
  overflow: hidden;
}

/* On the black band the pattern is the only colour: ortho is sparse enough to
   run near full strength without touching the glyph grid's legibility. */
.glyphField {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.85;
}

.glyphGrid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(3.2rem, 1fr));
  gap: 1px;
}

.glyphGrid span {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 500;
  background: color-mix(in srgb, var(--ink) 82%, transparent);
  transition: background 120ms ease, color 120ms ease;
}

.glyphGrid span:hover {
  background: var(--red);
  color: var(--ink);
}

/* ------------------------------------------------------------------- trio */

.trioWrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--gut) 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.9rem, 2.4vw, 1.8rem);
}

.trioWrap figure {
  margin: 0;
}

.trioWrap img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.trioWrap figcaption {
  margin-top: 0.55rem;
  font-size: 0.72rem;
  color: var(--grey);
}

/* ---------------------------------------------------------------- licences */

.lic {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2.4rem);
}

.lic article {
  display: grid;
  align-content: start;
  gap: 0.4rem;
  padding-top: 0.9rem;
  border-top: 3px solid var(--ink);
}

.lic h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.licUnit {
  margin: 0;
  font-size: 0.74rem;
  color: var(--grey);
}

.licPrice {
  margin: 0.5rem 0 0.3rem;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--red);
  font-variant-numeric: tabular-nums;
}

.licBody {
  margin: 0;
  font-size: 0.85rem;
  color: color-mix(in srgb, var(--ink) 70%, transparent);
}

.licNote {
  margin: clamp(2rem, 5vw, 3rem) 0 0;
  max-width: 40rem;
  font-size: 0.88rem;
  color: color-mix(in srgb, var(--ink) 72%, transparent);
  border-left: 3px solid var(--red);
  padding-left: 1rem;
}

/* ------------------------------------------------------------------ studio */

.studio {
  position: relative;
  isolation: isolate;
  padding: clamp(3rem, 8vw, 6rem) 0;
}

/* thickset draws heavy blocks, so it is held right back and cut away from the
   centre where the copy sits. */
.studioField {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.14;
}

.studioField::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 66% 78% at 50% 50%,
    var(--white) 0%,
    color-mix(in srgb, var(--white) 66%, transparent) 64%,
    transparent 100%
  );
}

.studioInner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gut);
}

.studioInner h2 {
  margin: 0 0 clamp(1.5rem, 4vw, 2.5rem);
  font-size: clamp(1.6rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.studioGrid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
}

.big {
  margin: 0;
  font-size: clamp(1.15rem, 2.3vw, 1.6rem);
  line-height: 1.32;
  letter-spacing: -0.03em;
}

.studioGrid dl {
  margin: 0;
  display: grid;
  gap: 1rem;
}

.studioGrid dt {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 0.25rem;
}

.studioGrid dd {
  margin: 0;
  font-size: 0.9rem;
}

.studioGrid a {
  border-bottom: 2px solid var(--red);
}

/* ------------------------------------------------------- expansion sections
   The tiles are Tabbied patterns rather than photographs: each sits on a
   transparent ground in a box with a fixed aspect ratio, so the derived grid
   stays square and the motif is never stretched. */

.tiles,
.idx,
.faq {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) var(--gut);
}

.tiles h2,
.idx h2,
.faq h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.4rem, 3.2vw, 2.2rem);
  font-weight: 650;
  letter-spacing: -0.04em;
}

.secNote {
  margin: 0 0 clamp(1.8rem, 4vw, 2.8rem);
  max-width: 40rem;
  font-size: 0.9rem;
  color: color-mix(in srgb, var(--ink) 68%, transparent);
}

.tileGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.2rem, 3vw, 2.4rem);
}

.tilePlate {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: color-mix(in srgb, var(--pale) 55%, var(--white));
  margin-bottom: 0.9rem;
}

.tileN {
  margin: 0 0 0.4rem;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--red);
  font-variant-numeric: tabular-nums;
}

.tileGrid h3 {
  margin: 0 0 0.5rem;
  font-size: 1.03rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.tileBody {
  margin: 0;
  font-size: 0.88rem;
  color: color-mix(in srgb, var(--ink) 76%, transparent);
}

.idxList {
  list-style: none;
  margin: 0;
  padding: 0;
}

.idxList li {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.3fr) minmax(0, 1.7fr) minmax(0, 1fr);
  gap: clamp(0.5rem, 1.6vw, 1.3rem);
  align-items: baseline;
  padding: 0.85rem 0;
  border-top: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
  font-size: 0.88rem;
  color: color-mix(in srgb, var(--ink) 74%, transparent);
}

.idxHead {
  border-top: 0 !important;
  font-size: 0.64rem !important;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--grey) !important;
  padding-bottom: 0.4rem !important;
}

.idxList li > :first-child {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.025em;
  font-size: 0.96rem;
}

.idxList li > :last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--grey);
}

.faqList {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.4rem, 4vw, 3rem);
}

.faqList dt {
  padding-top: 0.8rem;
  border-top: 1px solid color-mix(in srgb, var(--ink) 20%, transparent);
  margin-bottom: 0.5rem;
  font-size: 0.99rem;
  font-weight: 600;
  letter-spacing: -0.028em;
}

.faqList dd {
  margin: 0;
  font-size: 0.89rem;
  color: color-mix(in srgb, var(--ink) 76%, transparent);
}

@media (max-width: 900px) {
  .tileGrid,
  .faqList {
    grid-template-columns: 1fr;
  }

  .idxList li {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    row-gap: 0.2rem;
  }

  .idxHead {
    display: none !important;
  }

  .idxList li > :nth-child(3) {
    grid-column: 1 / -1;
    font-size: 0.83rem;
  }
}

/* ------------------------------------------------------------------ footer
   Quiet by design: no wordmark at display size and no pattern field. Four
   columns of plain links on one flat surface, with the fine print under a
   hairline. The patterns have had the whole page to speak already. */

.footer {
  background: var(--ink);
  color: var(--white);
  padding: clamp(2.5rem, 6vw, 4rem) var(--gut) clamp(1.6rem, 3vw, 2.4rem);
}

.footGrid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: clamp(1.6rem, 4vw, 3rem);
  align-items: start;
}

.footName {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.035em;
}

.footTag {
  margin: 0;
  max-width: 24rem;
  font-size: 0.88rem;
  color: color-mix(in srgb, var(--white) 74%, transparent);
}

.footHead {
  margin: 0 0 0.9rem;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--white) 52%, transparent);
}

.footLinks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.footLinks a {
  font-size: 0.88rem;
  color: color-mix(in srgb, var(--white) 88%, transparent);
}

.footLinks a:hover {
  color: var(--red);
}

.footAddr {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.62;
  color: color-mix(in srgb, var(--white) 88%, transparent);
}

.footFine {
  max-width: var(--max);
  margin: clamp(2.5rem, 6vw, 4rem) auto 0;
  padding-top: 1.1rem;
  border-top: 1px solid color-mix(in srgb, var(--white) 18%, transparent);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2.5rem);
}

.footFine p {
  margin: 0;
  font-size: 0.76rem;
  color: color-mix(in srgb, var(--white) 56%, transparent);
}

.footFine a {
  color: color-mix(in srgb, var(--white) 80%, transparent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footFine a:hover {
  color: var(--red);
}

/* -------------------------------------------------------------- responsive */

@media (max-width: 1000px) {
  .lic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .families li {
    grid-template-columns: 2.5rem minmax(0, 1fr) 4rem;
    row-gap: 0.3rem;
  }

  .families li > :nth-child(4) {
    grid-column: 2 / 4;
    font-size: 0.74rem;
  }

  .studioGrid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .bar {
    grid-template-columns: 1fr auto;
  }

  .bar nav {
    display: none;
  }

  .lic,
  .trioWrap {
    grid-template-columns: 1fr;
  }

  .ladder li {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem 0;
  }

  .lWord {
    font-size: clamp(1.6rem, 10vw, 2.6rem);
  }

  .bleed img {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 900px) {
  .footGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footBrand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .footGrid,
  .footFine {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------- coda + foot fields
   Two decorative pattern fields at the end of the page: a full-width band
   between the last section and the footer, and a very quiet texture inside
   the footer itself. Both are aria-hidden and carry no content. */

.coda {
  position: relative;
  height: clamp(132px, 20vw, 248px);
  overflow: hidden;
  background: var(--white);
}

.codaField {
  position: absolute;
  inset: 0;
  opacity: 0.55;
}


@media (max-width: 700px) {
  .coda {
    height: 108px;
  }
}

/* -------------------------------------------------------------- tile object
   The cut-out sits on top of the tile's pattern rather than replacing it:
   the pattern stays the ground, the object becomes the subject. */

.tileObject {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72%;
  height: 72%;
  object-fit: contain;
  filter: drop-shadow(0 16px 24px rgb(0 0 0 / 0.3));
}
