/* ===========================================================================
   KRISTOFA — MASTER STYLESHEET  (site/css/style.css)
   ---------------------------------------------------------------------------
   Everything the site looks like lives in this one file.
   Colours and fonts are at the very top: change the values there and the
   whole site changes with them.

   TYPE SYSTEM
     Josefin Sans  --font-head   big titles, banners, section headings
     Hind          --font-nav    menu, buttons, labels, card titles, small text
     Mulish        --font-body   paragraphs
   =========================================================================== */

/* ---------------------------------------------------------------------------
   1. COLOURS + FONTS  (edit these to re-colour / re-font the whole website)
   ------------------------------------------------------------------------ */
:root {
  --red:          #A82B21;  /* buttons, thin lines, badges  */
  --red-bright:   #C93A2E;  /* hover state + large red text */
  --black:        #0A0A0A;  /* page background              */
  --surface:      #141414;  /* cards, reader, panels        */
  --charcoal:     #1c1c1c;  /* the "MAGAZINES | LATEST" band */
  --platinum:     #E5E4E2;  /* main text on dark            */
  --platinum-muted:#A8A7A5; /* small notes on dark          */

  /* Extra helper shades — you rarely need to touch these */
  --line:      rgba(229, 228, 226, 0.10);  /* faint hairline borders */
  --line-soft: rgba(229, 228, 226, 0.06);
  --header-h:  64px;                        /* header height (mobile) */

  --font-head: "Josefin Sans", "Helvetica Neue", Arial, sans-serif;
  --font-nav:  "Hind", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Mulish", "Helvetica Neue", Arial, sans-serif;

  --radius:   12px;
  --radius-sm: 8px;
  --ease:     cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------------------------------------------------------------------------
   2. RESET / BASE
   ------------------------------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;   /* never block pinch zoom */
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  background: var(--black);          /* needed so the Articles page layer can sit above it */
}

body {
  background: var(--black);
  color: var(--platinum);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

ul { list-style: none; padding: 0; }

/* Visible focus ring everywhere (keyboard users) */
:focus-visible {
  outline: 3px solid var(--red-bright);
  outline-offset: 3px;
  border-radius: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 1.4;
  color: var(--platinum);
  overflow-wrap: break-word;   /* a very long title can never spill sideways */
}

::selection { background: var(--red); color: var(--platinum); }

.ico { display: inline-block; vertical-align: middle; flex: none; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* --- Small helper classes ------------------------------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 20px;
}

.section { padding-block: clamp(56px, 9vw, 112px); }
.section--charcoal { background: var(--charcoal); }
.section--light { background: #FFFFFF; color: #303030; }

/* Skip link — first thing a keyboard user hits */
.skip-link {
  position: fixed;
  top: 8px; left: 8px;
  z-index: 999;
  padding: 10px 18px;
  background: var(--red);
  color: var(--platinum);
  font-family: var(--font-nav);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 13px;
  border-radius: var(--radius-sm);
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ---------------------------------------------------------------------------
   3. SHARED PIECES: buttons, labels, section headings
   ------------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  background: var(--red);
  color: var(--platinum);
  font-family: var(--font-nav);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  border-radius: 3px;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:hover { background: var(--red-bright); transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--platinum); outline-offset: 3px; }

.btn--ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--platinum);
}
.btn--ghost:hover { background: var(--surface); border-color: var(--red); }

/* The little red rule used above some labels */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-nav);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--platinum-muted);
}
.eyebrow::before {
  content: "";
  width: 34px; height: 2px;
  background: var(--red);   /* thin red rule */
  flex: none;
}

/* --- Section headings: Josefin, light, very wide, centred, pipe divider --- */
.section-head { text-align: center; margin-bottom: clamp(30px, 4vw, 52px); }

.section-title {
  font-family: var(--font-head);
  font-weight: 300;
  font-size: clamp(1.35rem, 3.6vw, 2.4rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  line-height: 1.5;
  padding-left: 0.3em;          /* cancels the trailing letter-space, keeps it optically centred */
  color: var(--platinum);
}
.section-title::after {
  content: "";
  display: block;
  width: 56px; height: 2px;
  background: var(--red);       /* thin red rule under every section title */
  margin: 22px auto 0;
}
.section-title--dark { color: #303030; }

.pipe { opacity: 0.45; font-weight: 300; margin: 0 0.05em; }

.section-note {
  color: var(--platinum-muted);
  font-size: 0.95rem;
  max-width: 60ch;
  margin: 20px auto 0;
}
.section--light .section-note { color: #6b6b6b; }

.section-cta { text-align: center; margin-top: clamp(30px, 4vw, 46px); }

/* "Read →" style text link (never small red text — red lives on the arrow) */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-nav);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--platinum);
  padding-bottom: 4px;
  border-bottom: 2px solid var(--line);
  transition: border-color 0.25s var(--ease), gap 0.25s var(--ease);
}
.text-link:hover { border-color: var(--red); gap: 14px; }

/* ---------------------------------------------------------------------------
   4. HEADER + MENU  (black bar, logo left, menu spread out)
   ------------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Logo + wordmark (used in header and footer) */
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-logo {
  width: 42px; height: 42px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--red);
  flex: none;
}
.brand-name {
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--platinum);
}

/* --- Desktop navigation --------------------------------------------------- */
.nav-list { display: flex; align-items: center; gap: clamp(8px, 1.4vw, 22px); }

.nav-list a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 0;
  font-family: var(--font-nav);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #FFFFFF;
  transition: color 0.2s var(--ease);
}
/* thin 1px LIGHT underline on hover and on the current page (never red) */
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.55);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.28s var(--ease), background 0.28s var(--ease);
}
.nav-list a:hover::after { transform: scaleX(1); }
.nav-list a[aria-current="page"]::after {
  transform: scaleX(1);
  background: #FFFFFF;
}
.nav-ig .ico { width: 17px; height: 17px; }

/* --- Hamburger button (phones) ------------------------------------------- */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: var(--radius-sm);
}
.nav-toggle-bar {
  display: block;
  width: 22px; height: 2px;
  background: var(--platinum);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Narrow desktop: the long menu needs the room, so drop the wordmark --- */
@media (max-width: 899px) {
  .brand-name { display: none; }
  .header-inner { gap: 14px; }
}

/* --- Phone menu (full-screen panel, under 700px) -------------------------- */
@media (max-width: 700px) {
  :root { --header-h: 58px; }

  .nav-toggle { display: flex; }

  /*
    NOTE: the header uses backdrop-filter, which makes IT the reference box
    for absolutely positioned children — so the panel is pinned just under
    the header with an explicit height instead of position:fixed.
  */
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    background: var(--black);   /* solid, so nothing shows through */
    padding: 28px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
    overflow-y: auto;
  }
  body.nav-open .site-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  body.nav-open { overflow: hidden; }   /* stop the page scrolling behind */

  .nav-list {
    flex-direction: column;
    gap: 2px;
    width: 100%;
    max-width: 340px;
  }
  .nav-list a {
    justify-content: center;
    padding: 15px 0;
    font-size: 16px;
    letter-spacing: 0.24em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .nav-list a::after { display: none; }
  .nav-list a[aria-current="page"] { color: #FFFFFF; }
  .nav-list a[aria-current="page"]::before {
    content: "";
    position: absolute;
    left: 50%; bottom: 8px;
    transform: translateX(-50%);
    width: 26px; height: 1px;
    background: var(--platinum);
  }
}

/* ---------------------------------------------------------------------------
   5. BREADCRUMB BAR  (slim white strip under the header)
   ------------------------------------------------------------------------ */
.crumb-bar {
  background: #FFFFFF;
  border-bottom: 1px solid #E8E8E8;
}
.crumb-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 18px;
  min-height: 42px;
  padding-block: 11px;
}
.crumb-left,
.crumb-right {
  font-family: var(--font-nav);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.7;
  color: #595959;
}
.crumb-sep { color: #BDBDBD; margin: 0 0.45em; font-weight: 300; }
.crumb-right a { color: #595959; transition: color 0.2s var(--ease); }
.crumb-right a:hover { color: var(--red); }

/* ---------------------------------------------------------------------------
   6. PAGE BANNER  (full-width photo + dark overlay + centred title)
   ------------------------------------------------------------------------ */
.page-banner {
  position: relative;
  display: grid;
  place-items: center;
  /* minmax(0,1fr): the track must NOT grow to fit a very long word, otherwise
     the title gets clipped on a phone */
  grid-template-columns: minmax(0, 1fr);
  min-height: clamp(240px, 34vh, 380px);
  background-color: var(--surface);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.55);
}
.page-banner-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-block: clamp(46px, 7vw, 82px);
}
.page-banner-title {
  font-family: var(--font-head);
  font-weight: 300;
  font-size: clamp(1.6rem, 5vw, 3.25rem);   /* ~26px phone -> 52px desktop */
  letter-spacing: 0.3em;
  text-transform: uppercase;
  line-height: 1.4;
  padding-left: 0.3em;
  color: var(--platinum);
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}
.page-banner-line {
  margin-top: clamp(14px, 2vw, 22px);
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(12px, 1.5vw, 17px);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  line-height: 1.7;
  padding-left: 0.3em;
  color: var(--platinum);
  opacity: 0.92;
}
/* the magazine reader banner is short and much darker, title only */
.page-banner--dark { min-height: clamp(190px, 27vh, 300px); }
.page-banner--dark::before { background: rgba(10, 10, 10, 0.78); }

/* ---------------------------------------------------------------------------
   7. HERO SLIDER (home page only) — small line above big line, centred
   ------------------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: clamp(520px, 88vh, 860px);
  overflow: hidden;
  background: var(--surface);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s var(--ease), visibility 0.8s;
}
.hero-slide.is-active { opacity: 1; visibility: visible; }

/* The picture fills the slide behind the text (absolute = out of the flow) */
.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 7s linear;
}
.hero-slide.is-active img { transform: scale(1); }

/* Dark wash so the white text is always readable over any photo */
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.32) 45%, rgba(10,10,10,0.80) 100%),
    rgba(10, 10, 10, 0.30);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: clamp(520px, 88vh, 860px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 90px;
  padding-bottom: 140px;
}

.hero-kicker { display: flex; justify-content: center; }

.hero-badge {
  display: inline-block;
  padding: 5px 14px;
  background: var(--red);
  color: var(--platinum);
  font-family: var(--font-nav);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  border-radius: 3px;
}

/* small line */
.hero-line {
  margin-top: clamp(16px, 2.4vw, 26px);
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(12px, 1.5vw, 17px);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  line-height: 1.8;
  padding-left: 0.3em;
  color: var(--platinum);
  opacity: 0.92;
}
/* big line */
.hero-title {
  margin-top: clamp(10px, 1.6vw, 18px);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.75rem, 6vw, 3.5rem);   /* ~28px phone -> 56px desktop */
  letter-spacing: 0.35em;
  text-transform: uppercase;
  line-height: 1.3;
  padding-left: 0.35em;
  color: var(--platinum);
  text-shadow: 0 6px 34px rgba(0, 0, 0, 0.55);
}
.hero-actions {
  margin-top: clamp(26px, 4vw, 40px);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

/* --- Arrows (bottom corners, so they never sit on top of the headline) --- */
.hero-arrow {
  position: absolute;
  bottom: 30px;
  z-index: 5;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  background: rgba(10, 10, 10, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  color: var(--platinum);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.hero-arrow:hover { background: var(--red); border-color: var(--red); }
.hero-arrow--prev { left: 20px; }
.hero-arrow--next { right: 20px; }
.hero-arrow svg { width: 18px; height: 18px; }

/* --- Dots (same line as the arrows, centred) ------------------------------ */
.hero-dots {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 51px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}
.hero-dot {
  width: 30px; height: 4px;
  border-radius: 99px;
  background: rgba(229, 228, 226, 0.35);
  transition: background 0.3s var(--ease), width 0.3s var(--ease);
}
.hero-dot:hover { background: rgba(229, 228, 226, 0.65); }
.hero-dot[aria-current="true"] { background: var(--red); width: 46px; }

@media (max-width: 700px) {
  .hero-arrow { width: 40px; height: 40px; bottom: 26px; }
  .hero-arrow--prev { left: 16px; }
  .hero-arrow--next { right: 16px; }
  .hero-dots { bottom: 44px; }
  .hero-content { padding-top: 60px; padding-bottom: 130px; }
}

/* ---------------------------------------------------------------------------
   8. "MAGAZINES | LATEST" ROW  (cover, title, date — TOPSECRET style)
   ------------------------------------------------------------------------ */
.latest-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: clamp(18px, 3vw, 34px);
}
.latest-item { display: block; }

.latest-media {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: #0f0f0f;
  border: 1px solid var(--line-soft);
}
.latest-thumb {
  width: 100%;
  aspect-ratio: 800 / 1132;
  object-fit: cover;
  transition: transform 1.3s var(--ease);
}
.latest-item:hover .latest-thumb { transform: scale(1.06); }

.latest-date {
  display: block;
  margin-top: 16px;
  font-family: var(--font-nav);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--platinum-muted);
}
.latest-title {
  margin-top: 9px;
  font-family: var(--font-nav);
  font-weight: 400;
  font-size: 1.02rem;
  line-height: 1.55;
  letter-spacing: 0.01em;
  color: var(--platinum);
  transition: color 0.25s var(--ease);
}
.latest-item:hover .latest-title { color: #FFFFFF; }

.latest-tag {
  display: inline-block;
  padding: 3px 9px;
  background: var(--red);       /* badge — allowed to be red */
  color: var(--platinum);
  border-radius: 3px;
  font-family: var(--font-nav);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ---------------------------------------------------------------------------
   9. PHOTO BAND  (full-width picture, centred caption, desktop parallax)
   ------------------------------------------------------------------------ */
.photo-band {
  position: relative;
  display: grid;
  place-items: center;
  grid-template-columns: minmax(0, 1fr);   /* captions can never push sideways */
  min-height: clamp(320px, 50vh, 540px);
  background-color: var(--surface);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;      /* parallax on desktop; reset on phones below */
  text-align: center;
  overflow: hidden;
}
.photo-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.55);
}
.photo-band-content {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  padding: clamp(44px, 7vw, 76px) 20px;
}
.band-line {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(13px, 1.5vw, 17px);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  line-height: 1.8;
  padding-left: 0.3em;
  color: var(--platinum);
  opacity: 0.92;
}
.band-big {
  margin-top: clamp(14px, 2vw, 22px);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.6rem, 5.4vw, 3.5rem);   /* ~26px phone -> 56px desktop */
  letter-spacing: 0.3em;
  text-transform: uppercase;
  line-height: 1.32;
  padding-left: 0.3em;
  color: var(--platinum);
  text-shadow: 0 6px 34px rgba(0, 0, 0, 0.55);
  overflow-wrap: break-word;
}

/* Phones / tablets: no parallax (fixed backgrounds are unreliable there) */
@media (max-width: 900px) {
  .photo-band,
  .stats,
  .promise { background-attachment: scroll; }
}

/* ---------------------------------------------------------------------------
   10. "BY THE NUMBERS" STRIP  (dark photo behind the figures)
   ------------------------------------------------------------------------ */
.stats {
  position: relative;
  background-color: var(--black);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding-block: clamp(56px, 9vw, 112px);
  overflow: hidden;
}
.stats::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.78);
}
.stats > .container { position: relative; z-index: 1; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(28px, 5vw, 48px);
}
.stat { position: relative; padding-top: 18px; }
.stat::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 44px; height: 3px;
  background: var(--red);
}
.stat-number {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--red-bright);   /* large text — bright red keeps it readable */
}
.stat-number--long { font-size: clamp(1.45rem, 3.4vw, 2.3rem); }
.stat-label {
  margin-top: 14px;
  color: var(--platinum);
  font-size: 0.95rem;
  max-width: 32ch;
}
.stat-source {
  margin-top: 8px;
  font-family: var(--font-nav);
  font-size: 0.78rem;
  color: var(--platinum-muted);
  letter-spacing: 0.08em;
}

/* ---------------------------------------------------------------------------
   11. GALLERY PREVIEW ROW  (six tiles that zoom slowly on hover)
   ------------------------------------------------------------------------ */
.gp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(8px, 1.4vw, 16px);
}
@media (min-width: 640px)  { .gp-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .gp-grid { grid-template-columns: repeat(6, 1fr); } }

.gp-tile {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--surface);
  aspect-ratio: 4 / 3;
}
.gp-tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}
.gp-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0);
  transition: background 0.45s var(--ease);
}
.gp-tile:hover img,
.gp-tile:focus-visible img { transform: scale(1.1); }
.gp-tile:hover::after { background: rgba(10, 10, 10, 0.28); }

/* ---------------------------------------------------------------------------
   12. MAGAZINE CARD GRID
   ------------------------------------------------------------------------ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: clamp(18px, 3vw, 30px);
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease),
              box-shadow 0.3s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(168, 43, 33, 0.7);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}
.card:focus-within {
  transform: translateY(-6px);
  border-color: rgba(168, 43, 33, 0.7);
}

.card-media {
  aspect-ratio: 800 / 1132;
  overflow: hidden;
  background: #0f0f0f;
}
.card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease), opacity 0.3s var(--ease);
}
.card:hover .card-media img { transform: scale(1.05); opacity: 0.92; }

.card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 18px 22px;
  flex: 1;
}
.card-label {
  align-self: flex-start;
  padding: 4px 10px;
  background: var(--red);
  color: var(--platinum);
  font-family: var(--font-nav);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 3px;
}
.card-title {
  font-family: var(--font-nav);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.55;
  letter-spacing: 0.01em;
  text-transform: none;
}
.card-date {
  font-family: var(--font-nav);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--platinum-muted);
}
.card-link {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-nav);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--platinum);
}
.card-link span { transition: transform 0.3s var(--ease); }
.card:hover .card-link span { transform: translateX(6px); }

/* Empty-state message (e.g. no articles yet) */
.empty-state {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: clamp(34px, 6vw, 64px) clamp(20px, 4vw, 44px);
  text-align: center;
  background: var(--surface);
}
.empty-state h2 {
  font-family: var(--font-head);
  font-weight: 300;
  font-size: clamp(1.4rem, 3.6vw, 2rem);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding-left: 0.24em;
}
.empty-state p { color: var(--platinum-muted); margin-top: 14px; }

/* ---------------------------------------------------------------------------
   13. MAGAZINE READER PAGE
   ------------------------------------------------------------------------ */
.page-meta {
  font-family: var(--font-nav);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--platinum-muted);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.page-desc { color: var(--platinum-muted); margin-top: 16px; max-width: 68ch; }

.reader { padding-top: clamp(34px, 5vw, 56px); padding-bottom: clamp(56px, 8vw, 100px); }
.reader-frame {
  width: 100%;
  height: 80vh;
  min-height: 440px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.reader-actions {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: space-between;
}

/* ---------------------------------------------------------------------------
   14. GALLERY
   ------------------------------------------------------------------------ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.gallery-item {
  display: block;
  padding: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
  aspect-ratio: 4 / 3;              /* uniform grid, no jumping */
  position: relative;
  transition: transform 0.3s var(--ease);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease), opacity 0.3s var(--ease);
}
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(168, 43, 33, 0);
  transition: background 0.3s var(--ease);
}
.gallery-item:hover { transform: translateY(-3px); }
.gallery-item:hover img { transform: scale(1.07); opacity: 0.88; }
.gallery-item:hover::after { background: rgba(168, 43, 33, 0.16); }

@media (min-width: 700px) { .gallery-grid { gap: 14px; } }

/* --- Lightbox ------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(5, 5, 5, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.25s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 84vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
}
.lightbox-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  background: var(--red);
  color: var(--platinum);
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.lightbox-close:hover { background: var(--red-bright); transform: rotate(90deg); }
.lightbox-close:focus-visible { outline: 3px solid var(--platinum); }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------------------------------------------------------------------------
   15. ARTICLES PAGE — fixed background that slowly cross-fades
   ------------------------------------------------------------------------ */
body.page-articles { background: transparent; }

.articles-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: #000000;
}
.articles-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.78);
}
.articles-bg-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: articlesFade 24s infinite;
}
.articles-bg-layer:nth-child(1) { animation-delay: 0s; }
.articles-bg-layer:nth-child(2) { animation-delay: -16s; }   /* 8s per picture, 1.5s cross-fade */
.articles-bg-layer:nth-child(3) { animation-delay: -8s; }

@keyframes articlesFade {
  0%      { opacity: 1; }
  27.08%  { opacity: 1; }   /* visible ~6.5s … */
  33.33%  { opacity: 0; }   /* … then a 1.5s fade out */
  93.75%  { opacity: 0; }
  100%    { opacity: 1; }   /* … and a 1.5s fade back in */
}

.page-articles .empty-state {
  background: rgba(20, 20, 20, 0.72);
  border-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ---------------------------------------------------------------------------
   16. TEXT PAGES
   ------------------------------------------------------------------------ */
.prose { max-width: 68ch; }
.prose p { margin-top: 20px; color: var(--platinum); }
.prose p:first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.2rem, 3vw, 1.7rem); margin-top: 44px; letter-spacing: 0.2em; text-transform: uppercase; }
.prose h2 + p { margin-top: 14px; }
.prose strong { color: var(--platinum); font-weight: 600; }

/* Article cards (used on the Articles page) */
.article-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--red);
  border-radius: var(--radius-sm);
  padding: clamp(20px, 4vw, 32px);
  margin-top: 18px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.article-card:hover,
.article-card:focus-within {
  transform: translateY(-3px);
  border-color: var(--red);
}
.article-card h3 {
  font-family: var(--font-nav);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: clamp(1.1rem, 2.8vw, 1.45rem);
  margin-top: 12px;
}
.article-card p { color: var(--platinum-muted); margin-top: 12px; max-width: 70ch; }
.card-date { display: block; }

/* Contact details */
.contact-list { display: grid; gap: 16px; }
.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--red);
  border-radius: var(--radius-sm);
  padding: 22px clamp(18px, 3vw, 28px);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.contact-card:hover { transform: translateY(-3px); border-color: var(--red); }
.contact-card-main { display: flex; align-items: center; gap: 16px; }
.contact-card-main .ico { width: 20px; height: 20px; }
.contact-card-main > span { display: block; }
.contact-key {
  display: block;
  font-family: var(--font-nav);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--platinum-muted);
}
.contact-value {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1.05rem, 3vw, 1.35rem);
  margin-top: 5px;
  word-break: break-word;
}

/* ---------------------------------------------------------------------------
   17. ABOUT PAGE (company-profile layout)
   ------------------------------------------------------------------------ */
.about-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(34px, 5vw, 72px);
}
@media (min-width: 800px) { .about-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

.about-col h2 {
  font-family: var(--font-head);
  font-weight: 300;
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  line-height: 1.6;
  color: #8C8C8C;
  padding-bottom: 16px;
  border-bottom: 1px solid #E6E6E6;
}
.about-col p {
  margin-top: 22px;
  color: #4A4A4A;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.95;
}

/* Parallax promise / timeline band */
.promise {
  position: relative;
  background-color: var(--surface);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding-block: clamp(60px, 9vw, 120px);
  overflow: hidden;
}
.promise::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.62);
}
.promise-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
}
@media (min-width: 900px) {
  .promise-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
}

.promise-timeline {
  background: rgba(10, 10, 10, 0.55);
  border: 1px solid rgba(229, 228, 226, 0.30);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 36px);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.promise-label {
  font-family: var(--font-nav);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--platinum-muted);
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(229, 228, 226, 0.2);
}
.promise-label::before {
  content: "";
  display: inline-block;
  width: 26px; height: 2px;
  background: var(--red);      /* thin red rule */
  vertical-align: middle;
  margin-right: 12px;
}

.timeline li {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid rgba(229, 228, 226, 0.12);
}
.timeline li:last-child { border-bottom: 0; padding-bottom: 0; }
.tl-year {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.16em;
  color: var(--platinum);
}
.tl-text {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--platinum);
}

.promise-title {
  font-family: var(--font-head);
  font-weight: 300;
  font-size: clamp(1.45rem, 4vw, 2.7rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--platinum);
}
.promise-title::after {
  content: "";
  display: block;
  width: 56px; height: 2px;
  background: var(--red);
  margin-top: 26px;
}
.promise-text p {
  margin-top: 26px;
  color: var(--platinum);
  font-size: 16px;
  line-height: 1.95;
  max-width: 52ch;
}

/* Site profile table */
.profile {
  width: 100%;
  max-width: 900px;
  margin-inline: auto;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 15px;
}
.profile th,
.profile td {
  text-align: left;
  vertical-align: top;
  padding: 17px 20px;
  border-bottom: 1px solid #E6E6E6;
  line-height: 1.8;
}
.profile tr:first-child th,
.profile tr:first-child td { border-top: 1px solid #E6E6E6; }
.profile th {
  width: 32%;
  font-family: var(--font-nav);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #767676;
  padding-top: 21px;
}
.profile td { color: #303030; }
.profile-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #303030;
  transition: color 0.2s var(--ease);
}
.profile-link:hover { color: var(--red); }
.profile-link .ico { width: 20px; height: 20px; }

@media (max-width: 560px) {
  .profile,
  .profile tbody,
  .profile tr,
  .profile th,
  .profile td { display: block; width: 100%; }
  .profile tr { padding-block: 4px; border-bottom: 1px solid #E6E6E6; }
  .profile tr:first-child { border-top: 1px solid #E6E6E6; }
  .profile th,
  .profile td { border: 0; padding: 0; }
  .profile th { padding-top: 16px; }
  .profile td { padding-bottom: 16px; }
}

/* ---------------------------------------------------------------------------
   18. FOOTER  (white — the only white block on every page)
   ------------------------------------------------------------------------ */
.site-footer {
  background: #FFFFFF;
  color: #303030;
  border-top: 3px solid var(--red);   /* 3px red line along the very top */
  margin-top: auto;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(22px, 3vw, 40px);
  padding-block: clamp(30px, 4vw, 48px);
}
.site-footer .brand-name { color: #303030; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(12px, 2vw, 26px);
}
.footer-links a {
  font-family: var(--font-nav);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #595959;
  transition: color 0.2s var(--ease);
}
.footer-links a:hover { color: var(--red); }

.footer-contact { display: flex; flex-direction: column; gap: 9px; }
.footer-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-nav);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: #595959;
  transition: color 0.2s var(--ease);
}
.footer-line:hover { color: var(--red); }
.footer-line .ico { width: 20px; height: 20px; }

.footer-bottom {
  border-top: 1px solid #E8E8E8;
  padding-block: 20px;
  color: #767676;
  font-family: var(--font-nav);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ---------------------------------------------------------------------------
   19. LAYOUT
   ------------------------------------------------------------------------ */
main { flex: 1 0 auto; }

/* ---------------------------------------------------------------------------
   20. TABLET + DESKTOP TWEAKS
   ------------------------------------------------------------------------ */
@media (min-width: 768px) {
  .container { padding-inline: 32px; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}

/* ---------------------------------------------------------------------------
   21. FADE-IN ON SCROLL  (added by main.js; never hides anything if JS is off)
   ------------------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------------------------------------------------------------------------
   22. REDUCED MOTION — turn everything calm
   ------------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-slide img { transform: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }

  /* no parallax, no cross-fade: just the first background picture */
  .photo-band,
  .stats,
  .promise { background-attachment: scroll !important; }
  .articles-bg-layer { animation: none !important; opacity: 0; }
  .articles-bg-layer:first-child { opacity: 1; }
}
