/* ============ TOKENS ============ */
:root {
  --bg: #e6ded3;           /* warm grey */
  --surface: #d6cdc0;      /* behind photos while they load */
  --ink: #1c1c1c;          /* text */
  --muted: #5a554e;
  --accent: #e2ff00;       /* neon green — used as a fill, never as text on grey */

  --font-display: 'Anton', 'Impact', sans-serif;
  --font-place: 'Antonio', 'Anton', sans-serif; /* timeline locations */
  --font-wide: 'Michroma', 'Arial Black', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-copy: 'Schibsted Grotesk', 'Inter', system-ui, sans-serif; /* free stand-in for Klarheit Grotesk */

  --gutter: clamp(16px, 3vw, 48px);
  --max: 1400px;
  --radius: clamp(14px, 1.6vw, 24px);
  --nav-h: 64px;
  --statement-size: clamp(30px, 3.4vw, 54px);
}

/* ============ BASE ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: var(--nav-h); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.display {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(48px, 8vw, 120px);
  line-height: .9;
  margin-bottom: clamp(24px, 3.5vw, 48px);
}
.mega {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(110px, 24vw, 360px);
  line-height: .8;
  letter-spacing: -.01em;
  margin-bottom: clamp(24px, 3vw, 40px);
}

/* neon words */
mark, .tl__year {
  background: none;
  color: var(--accent);
}

/* plain coloured link with an arrow */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: .8em;
  font-family: var(--font-display);
  font-size: clamp(20px, 1.8vw, 26px);
  letter-spacing: .02em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--accent);
}
.text-link__arrow {
  width: 1.5em;
  height: .9em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  transition: transform .25s;
}
.text-link:hover .text-link__arrow { transform: translateX(6px); }


/* ============ NAV ============ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  background: var(--bg);
}
.nav__links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.nav__links a {
  position: relative;
  padding: 5px 10px 5px 32px;
  font-family: var(--font-display);
  font-size: clamp(16px, 1.6vw, 24px);
  letter-spacing: .02em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s;
}
/* circle marks the section you're in */
.dot {
  display: inline-block;
  width: .62em;
  height: .62em;
  border-radius: 50%;
  background: var(--ink);
  flex: none;
}
.nav__links .dot {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%) scale(0);
  transition: transform .35s cubic-bezier(.3, 1.5, .5, 1);
}
.nav__links a.is-active .dot { transform: translateY(-50%) scale(1); }

.nav__logo, .nav__toggle { display: none; }

@media (max-width: 1000px) {
  .nav__logo {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 20px;
    letter-spacing: .02em;
    text-transform: uppercase;
    text-decoration: none;
  }

  .nav__toggle {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    width: 36px;
    height: 32px;
    padding: 0;
    background: none;
    border: 0;
    cursor: pointer;
  }
  .nav__toggle span { display: block; height: 2px; background: var(--ink); transition: transform .3s, opacity .3s; }
  .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

  .nav__links {
    position: fixed;
    inset: 0;
    z-index: 1;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 4px;
    padding: var(--nav-h) var(--gutter);
    background: var(--bg);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
  }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; }
  .nav__links a {
    font-family: var(--font-display);
    font-size: clamp(34px, min(7.5vh, 13vw), 68px);
    line-height: 1.05;
    padding: 0 12px 0 .85em;
  }
  .nav__links .dot { left: 0; width: .45em; height: .45em; }
}

/* ============ HERO ============ */
/* The hero is taller than the screen; its stage sticks while the photo card
   rises over the name, then the page carries on scrolling. */
.hero { position: relative; height: 185svh; }
.hero__stage {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 520px;
  overflow: hidden;
}
.hero__name {
  position: absolute;
  top: var(--name-top, 80px);
  left: var(--gutter);
  width: calc(100% - 2 * var(--gutter));
  height: var(--name-h, 62svh);
  fill: var(--ink);
  font-family: var(--font-display);
  overflow: visible;
  animation: fade-in 1.2s ease both;
}
.hero__card {
  --p: 0; /* scroll progress 0 → 1, set by js/main.js */
  position: absolute;
  left: 50%;
  top: calc(var(--name-top, 80px) - 16px);
  width: min(48vw, 680px);
  height: calc(100svh - var(--name-top, 80px) + 16px - 5svh);
  border-radius: clamp(24px, 4vw, 64px);
  overflow: hidden;
  background: linear-gradient(160deg, #cfc6b9 0%, #bdb3a5 100%);
  transform: translate(-50%, calc((1 - var(--p)) * 38svh));
  will-change: transform;
  animation: fade-in 1.2s .2s ease both;
}
.hero__card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 65% 15%; }  /* keeps the face in view on narrow screens */
@keyframes fade-in { from { opacity: 0; } }
@media (max-width: 700px) { .hero__card { width: 78vw; } }

/* ============ SECTIONS ============ */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(56px, 7vw, 100px) var(--gutter);
}

/* ============ BIO ============ */
.bio__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.statement {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: var(--statement-size);
  line-height: 1.08;
  margin-bottom: 36px;
}
.lit-word { white-space: nowrap; } /* letters of a word stay on one line (js/main.js) */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.bio__photo {
  position: relative;
  width: 95%; /* a touch smaller than its column, kept to the right edge */
  justify-self: end;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.bio__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* three cards: a neon panel with the title, which the photo replaces on hover
   (a tap on touch screens adds .is-open, js/main.js); a caption underneath */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 1.8vw, 28px);
  margin-top: clamp(56px, 7vw, 100px);
  padding-bottom: clamp(56px, 7vw, 100px);
}
.tile { cursor: default; }
.tile__card {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 0 clamp(24px, 3vw, 48px);
  border-radius: 4px;
  background: var(--accent);
  color: var(--ink);
  container-type: inline-size; /* the title is sized to the card, so a long word never widens its column */
}
/* each size is capped at 1/5.6 of the card's inner width: the longest word, INTERNATIONAL, is 5.5em wide */
.tile__panel-text {
  font-family: var(--font-display);
  font-size: min(clamp(26px, 3.6vw, 58px), 100cqi / 5.6); /* sized for a third of the row */
  line-height: .98;
  text-transform: uppercase;
}
.tile__alt {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .35s ease-out, transform .6s ease;
}
.tile:hover .tile__alt,
.tile.is-open .tile__alt { opacity: 1; transform: scale(1.02); }
/* the other way round: the photo first, the title on hover */
.tile--photo-first .tile__alt { opacity: 1; }
.tile--photo-first:hover .tile__alt,
.tile--photo-first.is-open .tile__alt { opacity: 0; transform: none; }
.tile__caption {
  margin: 14px 0 0;
  font-family: var(--font-copy);
  font-weight: 600;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.35;
  color: #8a8a8a;
}
.tile__caption strong { font-weight: 600; color: #fff; }

@media (max-width: 860px) {
  .bio__grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) { /* three cards stay side by side down to here, then stack */
  .tiles { grid-template-columns: 1fr; row-gap: 36px; }
  .tile__card { aspect-ratio: 4 / 3; }
  .tile__panel-text { font-size: min(clamp(28px, 9vw, 40px), 100cqi / 5.6); }
}

/* ============ CAPABILITIES ============ */
/* on the site's beige, between the Bio tiles and My Story: three columns in the Bio captions' style,
   a dark title running into grey text */
.capabilities {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(40px, 5vw, 64px) clamp(16px, 1.8vw, 28px); /* the Bio tiles' gutter */
  padding: clamp(48px, 6vw, 88px) max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
}
.capabilities__title { grid-column: 1 / -1; margin-bottom: 0; } /* the headline spans all three columns */
.help p {
  margin: 0;
  font-family: var(--font-copy);
  font-weight: 600;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.35;
  color: #7a7369; /* lighter than --muted, so the grey stands apart from the dark title as it does on the black band */
}
/* the title on a neon highlight, like a marker pen; each wrapped line gets its own padded strip */
.help strong {
  font-weight: 600;
  color: var(--ink);
  background: var(--accent);
  padding: .04em 0;
  box-shadow: .22em 0 0 var(--accent), -.22em 0 0 var(--accent); /* bleeds past the text, which stays on the column edge */
  margin-right: .4em; /* clears the right-hand bleed, leaving a little more than a space before the grey text */
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
@media (max-width: 700px) { /* stacked, like the Bio tiles */
  .capabilities { grid-template-columns: 1fr; gap: 28px; }
}

/* ============ STORY ============ */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #fff; /* on the black band */
  transform: translateX(-50%);
}
.tl {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 clamp(160px, 17vw, 260px);
  align-items: center;
  padding: clamp(12px, 1.6vw, 24px) 0;
}
.tl:nth-child(even) .tl__media { order: 2; justify-self: start; }
/* photos at 84% of their column, 3:2, hugging the centre line */
.tl__media {
  position: relative;
  width: 84%;
  justify-self: end;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.tl__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tl__year {
  /* sits on the centre line, breaking it */
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: .12em 0;
  background: #000; /* breaks the centre line, on the black band */
  font-family: var(--font-display);
  font-size: clamp(40px, 4.5vw, 70px);
  line-height: 1;
  white-space: nowrap;
}
.tl h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(32px, 3.4vw, 54px);
  line-height: .95;
  margin-bottom: 10px;
}
/* location, in Antonio, the lighter sibling of Anton */
.tl__place {
  font-family: var(--font-place);
  font-size: clamp(18px, 1.6vw, 22px);
  letter-spacing: .03em;
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.tl__body p:last-child { font-family: var(--font-copy); font-weight: 600; max-width: 44ch; margin: 0; }
@media (max-width: 760px) {
  .timeline::before { left: 13px; }
  .tl { grid-template-columns: 1fr; gap: 20px; padding-left: 48px; }
  .tl__year { position: static; display: block; transform: none; padding: 0; background: none; margin-bottom: 6px; }
  .tl:nth-child(even) .tl__media { order: 0; }
  .tl__media, .tl:nth-child(even) .tl__media { width: 100%; justify-self: stretch; }
}

/* ============ NEWS ============ */
.news__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.news__head .display { margin: 0; }
.news__arrows { display: flex; gap: 20px; flex: none; }
/* thin line arrows, same as "About Tamas →" */
.news-arrow {
  padding: 8px 0;
  background: none;
  border: 0;
  color: var(--ink);
  font-size: clamp(20px, 1.8vw, 26px);
  cursor: pointer;
  transition: opacity .2s;
}
.news-arrow svg {
  display: block;
  width: 1.5em;
  height: .9em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  transition: transform .25s;
}
.news-arrow--prev svg { transform: scaleX(-1); }
.news-arrow:hover svg { transform: translateX(6px); }
.news-arrow--prev:hover svg { transform: scaleX(-1) translateX(6px); }
.news-arrow:disabled { opacity: .3; cursor: default; }
.news-arrow:disabled svg { transform: none; }
.news-arrow--prev:disabled svg { transform: scaleX(-1); }
.news__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2 * 20px) / 3);
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden; /* sideways only, so vertical scrolling always moves the page */
  overscroll-behavior-x: contain;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.news__track::-webkit-scrollbar { display: none; }
.news-card {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
}
.news-card__img {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(28, 28, 28, .12);
}
.news-card__img img, .news-card__img video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.news-card h3 {
  font-family: var(--font-display);
  font-size: var(--statement-size);
  line-height: 1.04;
  text-transform: uppercase;
}
.news-card:hover img, .news-card:hover video { transform: scale(1.04); }
.news-card:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
@media (max-width: 860px) {
  .news__track { grid-auto-columns: 82%; }
}

/* black bands, full width */
.bio, .story {
  max-width: none;
  background: #000;
  color: #fff;
  padding-inline: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
}
.bio :focus-visible, .story :focus-visible { outline-color: #fff; }
/* Links follows News on the same beige, so one section's padding is gap enough */
.news { padding-bottom: 0; }
.bio { padding-bottom: 0; }

/* ============ LINKS ============ */
.link-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.link-list a {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: clamp(12px, 1.5vw, 20px) 12px;
  border-bottom: 2px solid var(--ink);
  font-family: var(--font-display);
  font-size: clamp(26px, 3.6vw, 52px);
  line-height: 1;
  letter-spacing: .01em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .25s, padding .25s;
}
.link-list__arrow { margin-left: auto; font-family: var(--font-body); transition: transform .25s; }
.link-list a:hover { background: var(--accent); padding-left: 28px; }

.link-list a:hover .link-list__arrow { transform: translate(4px, -4px); }

/* ============ WORK ============ */
/* three columns of text straight under the Links list */
.links { padding-bottom: 0; }
.work { padding-top: clamp(40px, 5vw, 64px); }
.columns {
  font-family: var(--font-copy);
  font-weight: 600;
  columns: 3 260px;
  column-gap: clamp(28px, 3.5vw, 56px);
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.5;
}
.columns p { break-inside: avoid; margin-bottom: 1.5em; }

/* ============ Q&A ============ */
.qa-list { border-top: 2px solid var(--ink); }
.qa-item { border-bottom: 2px solid var(--ink); }
.qa-item summary {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: clamp(16px, 2vw, 26px) 12px;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.8vw, 40px);
  line-height: 1.05;
  text-transform: uppercase;
  list-style: none;
  cursor: pointer;
  transition: background .25s, padding .25s;
}
.qa-item summary::-webkit-details-marker { display: none; }
.qa-item summary:hover { background: var(--accent); padding-left: 28px; }
/* plus that turns into a cross when open */
.qa-item__icon { position: relative; flex: none; width: 22px; height: 22px; margin-left: auto; transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.qa-item__icon::before, .qa-item__icon::after { content: ''; position: absolute; left: 0; top: 50%; width: 100%; height: 2px; background: var(--ink); }
.qa-item__icon::after { transform: rotate(90deg); }
.qa-item[open] .qa-item__icon { transform: rotate(45deg); }
.qa-item p {
  max-width: 70ch;
  margin: 0;
  padding: 0 12px clamp(18px, 2vw, 28px);
  font-family: var(--font-copy);
  font-weight: 600;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.5;
}
.qa-item[open] p { animation: qa-in .3s ease-out; }
@keyframes qa-in { from { opacity: 0; transform: translateY(-6px); } }
/* wide photo between the Work text and the Q&A */
.work-photo { padding-block: 0; }
.work-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  object-position: center top; /* crop from the bottom only, so Tamás's face at the top stays in */
  border-radius: var(--radius);
}
.work-photo + .qa { padding-top: clamp(40px, 6vw, 80px); }

/* ============ CITIES ============ */
/* full-width ticker: light Inter in thin-ruled cells, the two rows drifting opposite ways */
.cities {
  padding-bottom: clamp(48px, 6vw, 96px); /* the Q&A above already ends with space */
  overflow: hidden;
}
.cities__row {
  display: flex;
  border-top: 1px solid rgba(28, 28, 28, .2);
}
.cities__row:last-child { border-bottom: 1px solid rgba(28, 28, 28, .2); }
.cities__track {
  display: flex;
  flex: none;
  animation: cities-slide 70s linear infinite;
}
.cities__row--reverse .cities__track { animation-direction: reverse; animation-duration: 80s; }
.cities__group { display: flex; flex: none; }
.cities__item {
  flex: none;
  padding: .12em .45em .2em;
  border-left: 1px solid rgba(28, 28, 28, .2);
  font-family: var(--font-body);
  font-weight: 200;
  font-size: clamp(48px, 7.5vw, 128px);
  letter-spacing: -.035em;
  line-height: 1.15;
  white-space: nowrap;
}
/* the track holds the group twice, so sliding by half of it loops seamlessly */
@keyframes cities-slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .cities__track { animation: none; } }

/* ============ CONTACT ============ */
/* full-width neon band: three offset rows of "Get in touch — email"; the whole band is one mailto link */
.contact {
  padding-block: clamp(48px, 6vw, 96px) clamp(36px, 4vw, 64px);
  overflow: hidden;
  text-align: center;
  background: var(--accent);
}
.contact__link { display: block; color: var(--ink); text-decoration: none; }
/* sized to the screen, so the whole address (about 11.6em) always fits on a row */
.contact__rows {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(28px, 7.5vw, 128px);
  line-height: 1.15;
  text-transform: uppercase;
}
.contact__row { display: flex; }
.contact__track { display: flex; flex: none; }
/* each row starts at a different point in the phrase; the middle row
   centres the full address (it runs from 6.91em to 18.02em in each group) */
.contact__row:nth-child(1) .contact__track { transform: translateX(-18.8em); }
.contact__row:nth-child(2) .contact__track { transform: translateX(calc(50vw - 12.47em)); }
.contact__row:nth-child(3) .contact__track { transform: translateX(-3.2em); }
.contact__group {
  display: flex;
  flex: none;
  align-items: center;
  padding-right: .5em;
  white-space: nowrap;
}
.contact__group > span:not(.contact__dash) { padding-inline: .25em; }
/* a long thin rule between the phrases */
.contact__dash {
  flex: none;
  width: 1.1em;
  height: .055em;
  margin-inline: .25em;
  background: currentColor;
}
.contact__note {
  margin: clamp(24px, 3vw, 40px) 0 0;
  padding-inline: var(--gutter);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}

/* ============ FOOTER ============ */
/* black: TAMAS on the left, phone, email and social on the right, copyright and links along the bottom */
.footer { background: #000; color: #fff; }
.footer__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "logo contact"
    "copy menu";
  gap: clamp(40px, 5vw, 72px) 32px;
  max-width: none;
  padding: clamp(40px, 5vw, 72px) max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
}
/* the hero's stretched TAMAS (1.6x, as on a typical screen), exactly as tall as the four contact
   lines beside it: from the top of the first capital to the last baseline is 3 x 1.4em + .86em */
.footer__logo {
  grid-area: logo;
  align-self: start;
  display: block;
  font-size: clamp(20px, 1.8vw, 26px);
  height: 5.06em;
  aspect-ratio: 253.22 / 140;
}
.footer__logo svg { display: block; width: 100%; height: 100%; fill: currentColor; font-family: var(--font-display); transition: fill .2s; }
.footer__logo:hover svg { fill: var(--accent); }
.footer__contact {
  grid-area: contact;
  align-self: start;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.4;
  /* trim Anton's line box to the letters: cap top sits .27em down, the baseline .28em up */
  margin: -.27em 0 -.28em;
}
/* phone, email and the two social handles in the "About Tamas" link type */
.footer__email {
  font-family: var(--font-display);
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  transition: color .2s;
}
.footer__email:hover { color: var(--accent); }
/* the copyright and the links share one baseline */
.footer__copy { grid-area: copy; align-self: last baseline; margin: 0; font-size: 13px; color: #a8a8a8; }
.footer__menu {
  grid-area: menu;
  align-self: last baseline;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px clamp(18px, 2.4vw, 36px);
}
/* the top menu's typeface, a size smaller */
.footer__menu a {
  font-family: var(--font-display);
  font-size: clamp(14px, 1.1vw, 18px);
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #a8a8a8; /* the copyright's grey */
  text-decoration: none;
  transition: color .2s;
}
.footer__menu a:hover { color: var(--accent); }
@media (max-width: 760px) {
  .footer__inner {
    grid-template-columns: 1fr;
    grid-template-areas: "logo" "contact" "menu" "copy";
    gap: 28px;
  }
  .footer__contact { align-items: flex-start; text-align: left; }
  .footer__menu { justify-content: flex-start; }
}

/* ============ LEGAL PAGES ============ */
.legal__bar { padding: 22px var(--gutter); }
.legal__back {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: .02em;
  text-transform: uppercase;
  text-decoration: none;
}
.legal__back svg { width: 30px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .25s; }
.legal__back:hover svg { transform: translateX(-6px); }
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(32px, 6vw, 80px) var(--gutter) clamp(64px, 10vw, 120px);
  font-family: var(--font-copy);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.6;
}
.legal h2 {
  margin: 40px 0 10px;
  font-family: var(--font-display);
  font-size: 26px;
  text-transform: uppercase;
}
.legal__updated { color: var(--muted); }
.legal__facts { display: grid; grid-template-columns: max-content 1fr; gap: 14px 32px; margin: 0 0 40px; }
.legal__facts dt { font-family: var(--font-wide); font-size: 11px; text-transform: uppercase; padding-top: 5px; }
.legal__facts dd { margin: 0; font-weight: 600; }
@media (max-width: 560px) { .legal__facts { grid-template-columns: 1fr; gap: 4px; } .legal__facts dd { margin-bottom: 14px; } }

/* ============ ARTICLES (news/*.html) ============ */
/* header: neon band, date, big headline, tag pills;
   body copy in the My Story typeface at a lighter weight, in an FT-width reading column */
.post__head {
  background: var(--accent);
  text-align: center;
  padding: calc(var(--nav-h) + clamp(48px, 8vw, 128px)) var(--gutter) clamp(48px, 7vw, 96px);
}
/* the home page's menu bar, in the header's neon so the two read as one band */
.post-page .nav, .post-page .nav__links { background: var(--accent); } /* incl. the full-screen phone menu */
.post__date {
  display: block;
  font-family: var(--font-place); /* Antonio, as the places in My Story */
  font-size: clamp(22px, 2.3vw, 34px);
  letter-spacing: .03em;
  text-transform: uppercase;
}
.post__title {
  max-width: 1300px;
  margin: clamp(16px, 2vw, 28px) auto 0;
  font-family: var(--font-display);
  font-size: clamp(46px, 8vw, 136px);
  line-height: .98;
  text-transform: uppercase;
  text-wrap: balance;
}
.post__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: clamp(24px, 3vw, 40px) 0 0;
  padding: 0;
  list-style: none;
}
.post__tags li {
  /* Antonio's capitals sit low in the line box (cap top .12em, baseline .99em),
     so the top padding is .11em smaller to centre them in the box */
  padding: .39em .8em .5em;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  font-family: var(--font-place); /* Antonio, as the date, about 45% smaller */
  font-size: clamp(13px, 1.3vw, 19px);
  letter-spacing: .03em;
  line-height: 1;
  text-transform: uppercase;
}
/* the neon band runs on past the photo and its caption; the article starts below it */
.post__hero {
  margin: 0;
  padding: 0 var(--gutter) clamp(28px, 3.5vw, 52px);
  background: var(--accent);
}
.post__hero img {
  width: 100%;
  max-width: 1460px;
  height: auto;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.post__hero figcaption {
  max-width: 1460px;
  margin: 12px auto 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.4;
  color: var(--ink);
}
.post__body {
  max-width: 700px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) var(--gutter) clamp(72px, 10vw, 128px);
  font-family: var(--font-copy);
  font-weight: 400; /* lighter than My Story's 600, for long reading */
  font-size: clamp(18px, 1.4vw, 21px);
  line-height: 1.6;
  color: var(--ink);
}
.post__body p { margin: 0 0 1.25em; }
.post__body .post__byline {
  margin-bottom: 2em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.4;
}
.post__body .post__byline a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.post__byline time { display: block; font-weight: 600; font-size: 15px; color: var(--muted); }
.post__body h2 { margin: 1.8em 0 .5em; font-family: var(--font-display); font-size: 1.6em; line-height: 1.05; text-transform: uppercase; color: var(--ink); }
.post__body a { color: #0d7680; text-underline-offset: 3px; }
.post__body figure { margin: 2em 0; }
.post__body figure img { width: 100%; height: auto; }
.post__body figcaption { margin-top: 10px; font-family: var(--font-body); font-size: 15px; line-height: 1.4; color: var(--muted); }
.post__sources {
  margin-top: 3em;
  padding-top: 1.4em;
  border-top: 1px solid rgba(28, 28, 28, .25);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}
.post__sources h2 { margin: 0 0 .8em; font-size: 22px; }
.post__sources ol { margin: 0; padding-left: 1.3em; }
.post__sources li { margin-bottom: .8em; }
.post__sources cite { font-style: italic; }
.post__sources a { color: inherit; overflow-wrap: anywhere; }

/* ============ NEWS PAGE (news/index.html) ============ */
/* every article as a row: photo left; title, the first two sentences, "Read article" and the date right */
.news-index { padding-top: calc(var(--nav-h) + clamp(48px, 7vw, 104px)); }
/* neon text would vanish on the light background, so "Read article" is a neon button with black text */
.news-index .text-link {
  padding: .5em .9em;
  border-radius: 6px;
  background: var(--accent);
  color: var(--ink);
  transition: background .2s, color .2s;
}
.news-index .text-link:hover { background: var(--ink); color: var(--accent); }
.post-list { margin: 0; padding: 0; list-style: none; }
.post-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: clamp(24px, 4vw, 72px);
  align-items: center;
  padding-block: clamp(24px, 3vw, 40px);
}
.post-row__img { display: block; overflow: hidden; border-radius: var(--radius); }
.post-row__img img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform .6s ease;
}
.post-row:hover .post-row__img img { transform: scale(1.04); }
.post-row__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 64px);
  line-height: .95;
  text-transform: uppercase;
}
.post-row__title a { color: inherit; text-decoration: none; }
.post-row__excerpt {
  margin: clamp(14px, 1.6vw, 22px) 0 0;
  font-family: var(--font-copy);
  font-weight: 600;
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.55;
  max-width: 62ch;
}
.post-row__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  margin-top: clamp(20px, 2.4vw, 36px);
}
.post-row__date {
  font-family: var(--font-place);
  font-size: clamp(18px, 1.6vw, 24px);
  letter-spacing: .03em;
  text-transform: uppercase;
}
@media (max-width: 760px) {
  .post-row { grid-template-columns: 1fr; }
}

/* ============ REVEAL ANIMATION ============ */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html, .news__track { scroll-behavior: auto; }
  .hero__name, .hero__card { animation: none; }
  .hero { height: auto; }
  .hero__card { --p: .5 !important; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
