/* ============================================================================
   elements.css — ROLES
   ----------------------------------------------------------------------------
   What a thing IS: a panel, an arrow, a tile, a nav link. Colour, type and
   radius come from tokens.css and never appear here as literals.
   Position and size live in layout.css.
   ========================================================================== */

/* ---- the font ------------------------------------------------------------
   Self-hosted Archivo (SIL OFL). Two files per style: latin and latin-ext.
   German umlauts live in latin; latin-ext covers the rest of the diacritics.
   font-display:swap so text is readable before the font lands. */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-italic-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-italic-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

*,
*::before,
*::after { box-sizing: border-box; }

/* HIDDEN MEANS HIDDEN, WHATEVER ELSE A RULE SAYS.
   The [hidden] attribute is only `display: none` in the browser's own
   stylesheet, so ANY class rule that sets a display beats it. This has now
   bitten twice: once when the mobile menu shipped open on every page load, and
   again when .panel was given `display: flex` to centre its text and both
   Uber-uns bios painted on top of each other. It is one line and it closes the
   whole family. */
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;          /* one screen, no page scroll. Spec 4.2 rule 5. */
  background: var(--c-schwarz);
  color: var(--c-ink);
  font-family: var(--font);
  font-weight: var(--w-body);
  font-stretch: var(--stretch-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

/* --accent-link, not --accent. The ring has exactly the problem the link
   colour already had: on the Kontakt card and the whole Kontakt page the
   accent IS the near-black page colour, so a keyboard visitor got a
   rgb(38,38,38) ring on a dark photograph and could not see where they were.
   --accent-link is the accent everywhere it reads and plain ink where it does
   not, which is the same answer to the same question. */
:focus-visible {
  outline: var(--border) solid var(--accent-link);
  outline-offset: 3px;
}

/* ---- display type --------------------------------------------------------
   Acumin's SemiCondensed UltraBlack Italic. Archivo's TRUE italic, never
   font-style: oblique — that renders upright. Spec 7.1. */
.display {
  font-weight: var(--w-display);
  font-stretch: var(--stretch-display);
  font-style: italic;
  line-height: var(--lh-tight);
}

/* ---- header and nav ---------------------------------------------------- */
.site-header { background: var(--c-schwarz); }

/* THE RULE IS ABOVE THE WORD, NOT UNDER IT.
   Measured on page 2 of the document: the nav word sits at y 58.5..87.1 and
   the cyan rule at y 51.8..54.7 — above it, with about four units of air. It
   was a border-bottom here, which put it on the wrong side of the text. */
.nav__link {
  font-size: var(--fs-nav);
  color: var(--c-ink);
  padding-top: 0.32em;
  border-top: var(--border) solid transparent;
  white-space: nowrap;
}
.nav__link:hover { border-top-color: var(--c-ink-dim); }
/* --accent-link, not --accent. The header band IS --c-schwarz, and on Start
   and Kontakt so is the accent, so the rule under the current page was
   rgb(38,38,38) on rgb(38,38,38) — measured, and invisible. The drawing shows
   it white on exactly those two pages and coloured on the other three, which
   is what --accent-link resolves to. Same trap as the focus ring. */
.nav__link[aria-current="page"] { border-top-color: var(--accent-link); }

/* ---- start cards ------------------------------------------------------- */
.card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: 0;
  padding: 0;
  background: var(--c-schwarz);
  color: var(--c-ink);
  font-family: inherit;
  text-align: center;
}
.card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* The band across the middle of the four cards. It is what makes the white
   label legible over a busy photo. Black at 50%, measured from the PDF. */
.card__veil {
  position: absolute;
  background: var(--c-band);
}
/* ARCHIVO'S HEAVIEST IS STILL LIGHTER THAN ACUMIN ULTRABLACK.
   Fawad, 5 Sep: "the font in Start page for example is bolder than what we
   have. that is maybe because of the font that we have selected."
   Measured, and he is right, though by less than it first looked. Counting
   the white pixels of "Referenzen" inside its own ink box: the document is
   56.6% against our 40%. But our letters are also 24% taller at the same
   nominal size (0.915 em against 0.737), so that percentage is spread over a
   bigger box. Per em² of ink — which is scale- and framing-free — the
   document has 2.394 and we have 2.138. Twelve per cent lighter, not forty.
   900 is the top of Archivo's weight axis, so the only way up is to grow the
   strokes. 0.02em measures 2.351 em², which lands on the document. It is
   applied ONLY to the big display face; at body sizes a stroke fills in the
   counters and turns text to mush. */
.card__label {
  font-size: var(--fs-card);
  color: var(--c-ink);
  text-shadow: 0 2px 12px var(--c-shade);
  -webkit-text-stroke: 0.02em currentColor;
  paint-order: stroke fill;
}

/* ---- content panel ----------------------------------------------------- */
.panel {
  background: color-mix(in srgb, var(--accent) calc(var(--c-panel-veil) * 100%), transparent);
  color: var(--accent-ink);
}
.panel--plain { background: var(--c-panel-dark); color: var(--c-ink); }

/* If a panel ever does have to scroll, it must not look like a browser
   chrome accident sitting on the design. */
.panel { scrollbar-width: thin; scrollbar-color: var(--c-ink-dim) transparent; }
.panel::-webkit-scrollbar { width: 6px; }
.panel::-webkit-scrollbar-thumb { background: var(--c-ink-dim); }
.panel::-webkit-scrollbar-track { background: transparent; }


.eyebrow {
  font-weight: var(--w-display);
  font-stretch: var(--stretch-display);
  font-style: italic;
  font-size: var(--fs-body);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.lede { font-weight: 700; }
.prose {
  white-space: pre-line;            /* content uses newlines, never <br> */
  /* The drawing hyphenates: page 5 reads "im re-gionalen Bereich" and "der
     Gast-ronomie". German compounds leave big holes at the end of a short
     measure without it. The document is lang="de", so the browser has the
     right dictionary. */
  hyphens: auto;
}

/* Present for a screen reader and for a search engine, absent for the eye.
   The start screen is four photographs and four words, so its <h1> has
   nowhere to go on the page but the page still needs one. clip-path plus a
   1px box is the version that survives a browser deciding an off-screen
   element is not worth announcing. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---- the scrim over a page's background photograph ----------------------
   Position and size live in layout.css; this is only its colour. See
   --c-scrim: the document lays this over the photo on all four inner pages
   before drawing anything else, and the start page does not have it. */
.bg::after { background: var(--c-scrim); }

/* ---- the arrow ---------------------------------------------------------
   A triangle drawn with clip-path so it can be moved and rotated cheaply.
   It is the one shape the whole site is built around. */
.arrow {
  background: var(--accent);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
/* THE HANDLE IS PART OF THE PANEL, SO IT IS THE SAME COLOUR AS THE PANEL.
   .arrow paints solid --accent and .footer paints --accent at 80% over the
   photograph, so the triangle was a full-strength cyan sitting on a washed-out
   cyan bar and read as a separate object stuck to the top of it. Fawad: "in
   the footer the arrow is kind looks like it is disconnected from the box." */
.footer__handle {
  background: color-mix(in srgb, var(--accent) calc(var(--c-panel-veil) * 100%), transparent);
  /* AND IT HAS TO BE FINDABLE.
     On Start and Kontakt the accent IS the near-black, and the document draws
     the arrow and the panel in the same Tint/[Black] 85% - which reads fine on
     a desktop page but disappears completely on a phone, where the whole strip
     is a dark triangle on a dark panel on a dark photograph. Fawad: "where the
     fuck is the arrow of footer. how the fuck will someone know where to
     click." The shadow keeps the document's colour and gives the silhouette an
     edge against anything behind it. drop-shadow, not box-shadow: the shape is
     a clip-path triangle and box-shadow would outline the square it was cut
     from. */
  filter: drop-shadow(0 -1px 3px var(--c-dot-halo));
}
.arrow--up   { clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.arrow--left { clip-path: polygon(100% 0, 100% 100%, 0 50%); }

/* ---- portfolio tile ---------------------------------------------------- */
.tile {
  /* German compounds - "Konfektionsmoeglichkeiten" is 24 characters - do not
     fit a 159px tile at the 13px floor, and the text pushed out of its own box
     at five of eight tested sizes. The document is lang="de", so the browser
     can hyphenate properly; break-word is the backstop for anything it cannot
     split. */
  hyphens: auto;
  overflow-wrap: break-word;
  background: color-mix(in srgb, var(--accent) calc(var(--c-panel-veil) * 100%), transparent);
  color: var(--accent-ink);
  font-weight: var(--w-tag);
  font-stretch: var(--stretch-tag);   /* the Semibold cut, not the UltraBlack */
  font-style: italic;
  font-size: var(--fs-tag);
  line-height: var(--lh-tag);
  text-align: center;
  white-space: pre-line;
  /* The document stores these in mixed case and sets Capitalization="AllCaps"
     on the range, so the drawing reads PLAKATE, POSTER, TAPETEN. Doing it here
     rather than shouting in content.json keeps the field readable for whoever
     edits it, and keeps the text the same string the screen reader gets. */
  text-transform: uppercase;
}
/* The chevron on the right edge is part of the tile's OWN shape, not a child.
   An absolutely positioned child hanging off the right edge is counted by
   scrollWidth, which made all 8 tiles look like text overflows when none of
   them were. A check that cries wolf is as bad as one that cannot fail. */

/* ---- person: photo and name box ---------------------------------------- */
.person__photo { object-fit: cover; filter: grayscale(1); }
.person__box {
  /* --c-namebox-veil, not --c-panel-veil: measured at 0.45, not 0.80. */
  background: color-mix(in srgb, var(--accent) calc(var(--c-namebox-veil) * 100%), transparent);
  border: var(--border) solid var(--accent);
  color: var(--accent-ink);
  font-size: var(--fs-name);
  text-align: center;
  cursor: pointer;
}
.person__name {
  font-weight: var(--w-display);
  font-stretch: var(--stretch-display);
  font-style: italic;
  text-transform: uppercase;
}
/* The fill goes on the FRAME, not on the photo element: the photo is a
   cut-out, so a background on the photo itself would still leave the page
   showing through wherever object-fit letterboxes it. See --c-portrait-bg. */
.person__frame {
  border: var(--border) solid var(--accent);
  background: var(--c-portrait-bg);
}

/* ---- gallery ----------------------------------------------------------- */
.shot {
  border: var(--border) solid var(--accent);
  object-fit: cover;
  width: 100%;
  height: 100%;
}
/* background-COLOR, not the background shorthand. The shorthand also resets
   background-clip, and the mobile rule that enlarges the tap target relies on
   `background-clip: content-box` to keep the visible dot 10px inside a 30px
   button. With the shorthand here, the current dot won on specificity, got
   border-box back, and rendered as a 30px blob beside two 10px dots. */
.dot {
  border-radius: 50%;
  /* THE INACTIVE DOT IS THE ACCENT AT HALF STRENGTH, NOT A GREY.
     Measured in the IDML: all three ovals are Color/MGM Gelb, and the two that
     are not the current slide carry Opacity 50 while the current one carries
     none. Ours were white at 72%. Fawad: "it has transparent yellow and
     current page is filled yellow. match that." */
  background-color: color-mix(in srgb, var(--accent) 50%, transparent);
  border: 0;
  padding: 0;
  cursor: pointer;
  /* DROP-SHADOW, NOT BOX-SHADOW. On mobile the button is a 30px tap target
     whose background is clipped to a 10px content box, so a box-shadow would
     ring the invisible 30px box instead of the dot you can see. A filter
     follows what is actually painted. The dot is 10px of white on whatever
     photograph happens to be behind it, and on a phone it is the only way to
     change slide. */
  filter: drop-shadow(0 1px 2px var(--c-dot-halo));
}
.dot[aria-current="true"] { background-color: var(--accent); }

/* ---- footer ------------------------------------------------------------ */
/* THE FOOTER TAKES THE PAGE'S COLOUR.
   Fawad, 5 Sep 2026: "footer it needs to take the color of the page. and only
   in black, it will be dark." That is also what the document draws — the
   footer is filled with the page's own swatch at 80%, the same plane as the
   panels — and on Start and Kontakt the page's swatch IS --c-schwarz, so those
   two come out dark with no special case.
   The ink has to follow as well: white on cyan and magenta, but the Referenzen
   footer is YELLOW and white on yellow cannot be read. --accent-ink already
   knows that. */
.footer {
  background: color-mix(in srgb, var(--accent) calc(var(--c-panel-veil) * 100%), transparent);
  color: var(--accent-ink);
  /* --fs-footer, not the page's --fs-body: the footer is a fixed-width box and
     its type is a fraction of that box, the way the document sets it. */
  font-size: var(--fs-footer);
}
.footer__link { font-size: var(--fs-legal); }

/* Browsers italicise <address> by default. In the design only the company NAME
   is the italic display face; the street, town, phone and mail are upright. */
.footer__address { font-style: normal; }
/* Hover UNDERLINES rather than recolouring. The links were tinted
   --accent-link on hover, which was fine on a dark footer and is cyan on cyan
   now that the footer is the page's colour. An underline reads on all four. */
.footer__link:hover { text-decoration: underline; text-underline-offset: 0.25em; }
/* The rule was a fixed white at 72%, invisible on the yellow footer. It is a
   faded version of whatever ink the page uses, so it follows all four. */
.footer__rule {
  border: 0;
  border-top: 1px solid color-mix(in srgb, var(--accent-ink) 45%, transparent);
  /* WIDTH 100% AND NO AUTO MARGINS, OR THERE IS NO LINE AT ALL.
     A browser's own stylesheet gives <hr> `margin-inline: auto`, and .footer is
     a column flex container: an auto margin there absorbs every spare pixel and
     collapses the element to its content width, which for an <hr> is zero.
     Measured: the rule was present, one pixel tall, the right colour, sitting
     at exactly the footer's centre line — and 0px wide. Fawad: "the contact
     card has this line which separates menu above and the text below. can you
     please add that too." It was there; it just had no length.

     100% of the content box lands it on the text on both sides, which is what
     the document draws: the rule runs x 665.0..1029.7 and the links above it
     run x 665.0..1028.5.

     The colour needs nothing: the document strokes it Color/Paper on four
     pages and Tint/[Black] 85% on the yellow one, which is --accent-ink. */
  width: 100%;
  margin-inline: 0;
}
.footer__company {
  font-weight: var(--w-display);
  font-stretch: var(--stretch-display);
  font-style: italic;
}
.footer__social { font-size: var(--fs-social); }
/* The handle IS the arrow, and it is the NOTCH of the footer, so it is the
   footer's plane: the same colour at the same 80%, which is how the document
   draws it. It used to be the accent at full strength, which was invisible
   against nothing while the footer was dark, and would now leave a colour seam
   where the notch meets the panel it belongs to.
   Re-declaring background here is deliberate. Be careful with it: an equally
   specific `background: transparent` once sat LATER in this file, silently won
   over .arrow, and painted the arrow invisible. */
.footer__handle {
  background: color-mix(in srgb, var(--accent) calc(var(--c-panel-veil) * 100%), transparent);
  border: 0;
  padding: 0;
  cursor: pointer;
}

/* ---- what3words -------------------------------------------------------- */
.w3w { color: var(--accent-link); font-weight: 700; }

/* ---- mobile navigation -------------------------------------------------
   Colour only; the boxes are in layout.css. */
.nav__burger { background: transparent; border: 0; cursor: pointer; }
.nav__burger-bar {
  background: var(--c-ink);
  transition: translate var(--dur-swap) var(--ease-out),
              rotate var(--dur-swap) var(--ease-out),
              opacity var(--dur-swap) linear;
}
/* Open, the three bars become a cross, so the button says what it will do. */
html[data-menu="open"] .nav__burger-bar:nth-child(1) { translate: 0 7px; rotate: 45deg; }
html[data-menu="open"] .nav__burger-bar:nth-child(2) { opacity: 0; }
html[data-menu="open"] .nav__burger-bar:nth-child(3) { translate: 0 -7px; rotate: -45deg; }

/* The sheet is the page's own colour over the near-black bar, the same plane
   as the panels and the footer, so it belongs to the page it covers. */
.menu {
  background: color-mix(in srgb, var(--accent) calc(var(--c-panel-veil) * 100%), var(--c-schwarz));
}
.menu .nav__link { font-size: var(--fs-card); color: var(--accent-ink); }
/* THE RULE GOES UNDER THE WORD IN THE SHEET, NOT OVER IT.
   On the desktop bar the line belongs on top — that is what the document
   draws, and the words sit in a row so a line above each one reads as a rule
   over the whole bar. In the full-screen sheet the words are stacked, so a
   line ABOVE a word looks like it belongs to the word above it. Fawad: "in
   the hamburger menu can we make the lines of the active menu item under the
   item? it looks confusing in mobile." */
.menu .nav__link {
  border-top: var(--border) solid transparent;
  border-bottom: var(--border) solid transparent;
  padding-bottom: 0.32em;
}
.menu .nav__link[aria-current="page"] {
  border-top-color: transparent;
  border-bottom-color: var(--accent-ink);
}
