/*!
 * La Smala Compagnie — main stylesheet
 * Static front-end converted from Proto_site_LaSmala_responsive.html,
 * structured to become the `la-smala` WordPress theme (assets/css/main.css).
 *
 * Contents
 *   1. Fonts (self-hosted, latin + latin-ext)
 *   2. Design tokens
 *   3. Base
 *   4. WordPress core classes
 *   5. Layout
 *   6. Header & navigation
 *   7. Components
 *   8. Page sections
 *   9. Footer
 *  10. Responsive
 *  11. Reduced motion
 */

/* ==========================================================================
   1. Fonts
   ========================================================================== */
/* Bagel Fat One — latin-ext */
@font-face {
  font-family: 'Bagel Fat One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/bagel-fat-one-latin-ext.woff2') format('woff2');
  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;
}
/* Bagel Fat One — latin */
@font-face {
  font-family: 'Bagel Fat One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/bagel-fat-one-latin.woff2') format('woff2');
  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;
}
/* Bricolage Grotesque — latin-ext */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/bricolage-grotesque-latin-ext.woff2') format('woff2');
  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;
}
/* Bricolage Grotesque — latin */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/bricolage-grotesque-latin.woff2') format('woff2');
  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;
}
/* Hanken Grotesk — latin-ext */
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/hanken-grotesk-latin-ext.woff2') format('woff2');
  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;
}
/* Hanken Grotesk — latin */
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/hanken-grotesk-latin.woff2') format('woff2');
  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;
}
/* Spline Sans Mono — latin-ext */
@font-face {
  font-family: 'Spline Sans Mono';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/spline-sans-mono-latin-ext.woff2') format('woff2');
  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;
}
/* Spline Sans Mono — latin */
@font-face {
  font-family: 'Spline Sans Mono';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/spline-sans-mono-latin.woff2') format('woff2');
  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;
}

/* ==========================================================================
   2. Design tokens
   Mirror these values in theme.json (settings.color.palette / typography)
   when building the `la-smala` WordPress theme.
   ========================================================================== */
:root {
  /* Colours */
  --smala-bg: #0E0C0B;
  --smala-bg-alt: #121009;
  --smala-surface: #15110D;
  --smala-surface-2: #1C1611;
  --smala-surface-3: #1F1912;
  --smala-footer: #080706;
  --smala-text: #ECE7DF;
  --smala-text-strong: #FBF7F2;
  --smala-text-soft: #C3BCB2;
  --smala-text-muted: #99908A;
  --smala-text-faint: #8C847B;
  --smala-red: #D8281B;
  --smala-red-dark: #B41E12;
  --smala-red-accent: #E2402E;
  --smala-red-tint: rgba(226, 64, 46, 0.14);
  --smala-grey-tag: #5A544C;
  --smala-line: rgba(255, 255, 255, 0.12);
  --smala-line-strong: rgba(255, 255, 255, 0.18);

  /* Typography */
  --font-logo: 'Bagel Fat One', cursive;
  --font-heading: 'Bricolage Grotesque', 'Hanken Grotesk', sans-serif;
  --font-body: 'Hanken Grotesk', system-ui, sans-serif;
  --font-mono: 'Spline Sans Mono', ui-monospace, monospace;

  /* Layout */
  --container: 1180px;
  --gutter: 28px;
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --header-offset: 96px;
  --shadow-card: 0 14px 32px -24px rgba(0, 0, 0, 0.55);
  --shadow-media: 0 30px 60px -34px rgba(0, 0, 0, 0.65);
  --stripes: repeating-linear-gradient(135deg, transparent 0 13px, rgba(255, 255, 255, 0.05) 13px 14px);
}

/* ==========================================================================
   3. Base
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--smala-text);
  background: var(--smala-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

[hidden] { display: none !important; }

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

a { color: inherit; }
a:hover { color: var(--smala-red-accent); }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0;
}

p { margin: 0; }

button,
input,
select,
textarea { font: inherit; color: inherit; }

::selection { background: var(--smala-red); color: var(--smala-text-strong); }

:focus-visible {
  outline: 2px solid var(--smala-red-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::-webkit-scrollbar { height: 10px; width: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.16); border-radius: 10px; }

/* ==========================================================================
   4. WordPress core classes
   ========================================================================== */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus,
.skip-link:focus {
  clip: auto !important;
  clip-path: none;
  width: auto;
  height: auto;
  margin: 0;
  z-index: 100000;
  top: 12px;
  left: 12px;
  padding: 12px 20px;
  background: var(--smala-text-strong);
  color: var(--smala-bg);
  font-weight: 600;
  border-radius: var(--radius-pill);
  text-decoration: none;
}

.alignleft { float: left; margin: 0.4em 1.5em 1em 0; }
.alignright { float: right; margin: 0.4em 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide { max-width: var(--container); margin-left: auto; margin-right: auto; }
.alignfull { width: 100%; max-width: none; }

.wp-caption,
figure { margin: 0; }
.wp-caption-text,
.wp-element-caption,
figcaption {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--smala-text-faint);
  margin-top: 10px;
}

.sticky,
.bypostauthor,
.gallery-caption { /* reserved by WordPress */ }

/* Content coming from the block editor / WYSIWYG fields */
.entry-content > * + * { margin-top: 16px; }
.entry-content p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--smala-text-soft);
}
.entry-content a { color: var(--smala-red-accent); text-underline-offset: 3px; }
.entry-content h2 { font-size: clamp(26px, 3vw, 34px); margin-top: 36px; }
.entry-content h3 { font-size: 22px; margin-top: 28px; }
.entry-content ul,
.entry-content ol { color: var(--smala-text-soft); padding-left: 1.3em; }

/* ==========================================================================
   5. Layout
   ========================================================================== */
.site {
  position: relative;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.site-main {
  position: relative;
  z-index: 1;
}

.section { padding: 78px 0; }
.section--tight { padding: 56px 0; }
.section--alt { background: var(--smala-bg-alt); }
.section--surface { background: var(--smala-surface); color: #F2EEE8; }

.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- Rotating photo background ---------- */
.site-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: var(--smala-bg);
  pointer-events: none;
  overflow: hidden;
}

.site-background__layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(3px) brightness(0.7) saturate(0.92);
  transform: scale(1.06);
  opacity: 0;
  transition: opacity 2s ease;
}

.site-background__layer.is-active { opacity: 1; }

.site-background::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(8, 7, 6, 0.68), rgba(8, 7, 6, 0.80));
}

/* ==========================================================================
   6. Header & navigation (markup follows wp_nav_menu() output)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 12, 11, 0.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.admin-bar .site-header { top: 32px; }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 16px;
  padding-bottom: 16px;
}

/* Logo (custom-logo-link / site title) */
.site-branding { margin: 0; }

.site-logo {
  display: inline-flex;
  flex-direction: column;
  line-height: 0.84;
  text-decoration: none;
}

.site-logo__name {
  font-family: var(--font-logo);
  font-size: 30px;
  color: var(--smala-red);
  letter-spacing: 0.005em;
}

.site-logo__tagline {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--smala-text-muted);
  margin-top: 5px;
  padding-left: 2px;
}

.site-logo:hover .site-logo__name { color: var(--smala-red-accent); }

/* Menu */
.main-navigation .menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-navigation .menu-item { position: relative; }

.main-navigation .menu > .menu-item > a {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--smala-text);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  transition: color .15s ease, background-color .15s ease;
}

.main-navigation .menu > .menu-item > a:hover,
.main-navigation .menu > .menu-item > a:focus-visible,
.main-navigation .current-menu-item > a,
.main-navigation .current-menu-ancestor > a,
.main-navigation .current_page_parent > a {
  color: var(--smala-red-accent);
  background: var(--smala-red-tint);
}

/* "Contact" button — add the CSS class `menu-item--cta` in Appearance → Menus */
.main-navigation .menu > .menu-item--cta { margin-left: 6px; }
.main-navigation .menu > .menu-item--cta > a {
  background: var(--smala-red);
  color: var(--smala-text-strong);
  font-weight: 600;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
}
.main-navigation .menu > .menu-item--cta > a:hover,
.main-navigation .menu > .menu-item--cta > a:focus-visible,
.main-navigation .menu > .menu-item--cta.current-menu-item > a {
  background: var(--smala-red-dark);
  color: var(--smala-text-strong);
}

/* Sub-menu (artists) */
.main-navigation .sub-menu {
  list-style: none;
  margin: 0;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  padding: 8px;
  background: var(--smala-surface);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.7);
  z-index: 20;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity .15s ease, transform .15s ease, visibility 0s linear .15s;
}

.main-navigation .menu-item-has-children:hover > .sub-menu,
.main-navigation .menu-item-has-children:focus-within > .sub-menu,
.main-navigation .menu-item-has-children.is-open > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}

.main-navigation .sub-menu a {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--smala-text);
  text-decoration: none;
  padding: 9px 12px;
  border-radius: 8px;
}

.main-navigation .sub-menu a:hover,
.main-navigation .sub-menu a:focus-visible,
.main-navigation .sub-menu .current-menu-item > a {
  color: var(--smala-red-accent);
  background: var(--smala-red-tint);
}

/* Sub-menu toggle (injected by main.js, visible on mobile only) */
.submenu-toggle { display: none; }

/* Hamburger */
.menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  background: none;
  border: 1.5px solid var(--smala-line-strong);
  border-radius: var(--radius-pill);
  color: var(--smala-text);
  padding: 9px 16px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.menu-toggle:hover { border-color: var(--smala-text); }

.menu-toggle__icon,
.menu-toggle__icon::before,
.menu-toggle__icon::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .2s ease, background-color .2s ease;
}

.menu-toggle__icon { position: relative; }
.menu-toggle__icon::before,
.menu-toggle__icon::after { content: ""; position: absolute; left: 0; }
.menu-toggle__icon::before { top: -6px; }
.menu-toggle__icon::after { top: 6px; }

.menu-toggle[aria-expanded="true"] .menu-toggle__icon { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon::after { transform: translateY(-6px) rotate(-45deg); }

/* ==========================================================================
   7. Components
   ========================================================================== */

/* ---------- Eyebrow / section headings ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--smala-red-accent);
}

.section-title {
  font-weight: 700;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.05;
  margin-top: 14px;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--smala-text);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  padding-bottom: 12px;
  margin: 0 0 26px;
}

.section-label--muted { color: var(--smala-text-muted); }
.section-label--small { font-size: 12px; letter-spacing: 0.14em; padding-bottom: 10px; margin-bottom: 0; }

.section-intro {
  font-size: 15px;
  line-height: 1.6;
  color: var(--smala-text-muted);
  max-width: 40em;
  margin: -18px 0 26px;
}

/* ---------- Page header (archive / page titles) ---------- */
.page-header { padding-top: 56px; padding-bottom: 20px; }

.page-title {
  font-weight: 800;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-top: 16px;
}

.page-lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--smala-text-soft);
  max-width: 34em;
  margin-top: 20px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px 26px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.btn--primary { background: var(--smala-red); color: var(--smala-text-strong); }
.btn--primary:hover,
.btn--primary:focus-visible { background: var(--smala-red-dark); color: var(--smala-text-strong); }

.btn--outline { background: transparent; color: var(--smala-text); border-color: var(--smala-line-strong); }
.btn--outline:hover,
.btn--outline:focus-visible { border-color: var(--smala-text); color: var(--smala-text); }

.btn--outline-red:hover,
.btn--outline-red:focus-visible { border-color: var(--smala-red-accent); color: var(--smala-red-accent); }

.btn--dark { background: #0A0807; color: var(--smala-text-strong); font-size: 17px; padding: 16px 30px; }
.btn--dark:hover,
.btn--dark:focus-visible { background: #000; color: var(--smala-text-strong); }

.btn--ghost { background: var(--smala-surface); color: var(--smala-text-strong); border: 1px solid rgba(255, 255, 255, 0.14); }
.btn--ghost:hover,
.btn--ghost:focus-visible { background: var(--smala-red); border-color: var(--smala-red); color: var(--smala-text-strong); }

.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--xs { padding: 8px 15px; font-size: 13px; }

.btn-group { display: flex; gap: 14px; flex-wrap: wrap; }

.text-link {
  font-weight: 600;
  font-size: 16px;
  color: var(--smala-red-accent);
  text-decoration: none;
}
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.back-link {
  display: inline-block;
  font-weight: 500;
  font-size: 15px;
  color: var(--smala-text-muted);
  text-decoration: none;
  padding-top: 36px;
}
.back-link:hover { color: var(--smala-red-accent); }

/* ---------- Badges ---------- */
.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--smala-text-strong);
  background: var(--smala-red);
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.badge--show { background: var(--smala-red); }
.badge--training { background: var(--smala-grey-tag); }
.badge--creation { background: transparent; color: var(--smala-text); border: 1px solid rgba(255, 255, 255, 0.4); padding: 3px 8px; }
.badge--archive { background: transparent; color: var(--smala-text-muted); border: 1px solid rgba(255, 255, 255, 0.2); padding: 3px 8px; }

.badge--more {
  background: none;
  color: var(--smala-red-accent);
  border: 1px solid rgba(226, 64, 46, 0.5);
  padding: 3px 8px;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.badge--more:hover { background: var(--smala-red-tint); color: var(--smala-red-accent); }

/* ---------- Media placeholders (replace with real images) ---------- */
.media {
  position: relative;
  overflow: hidden;
  background-color: var(--smala-surface-2);
  background-image: var(--stripes);
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media--3x4 { aspect-ratio: 3 / 4; }
.media--4x5 { aspect-ratio: 4 / 5; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--5x3 { aspect-ratio: 5 / 3; }
.media--1x1 { aspect-ratio: 1 / 1; }

.media--placeholder {
  display: flex;
  align-items: flex-end;
  padding: 18px;
}

.media__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--smala-text-muted);
  background: rgba(255, 255, 255, 0.10);
  padding: 5px 9px;
  border-radius: 6px;
}

.media__badge { position: absolute; top: 16px; left: 16px; }

/* ---------- Generic card ---------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--smala-surface);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s ease, transform .2s ease;
}

.card--link:hover,
.card--link:focus-within {
  border-color: var(--smala-red-accent);
  transform: translateY(-4px);
}

/* Stretched link: the card title link covers the whole card */
.card__link { color: inherit; text-decoration: none; }
.card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__link:hover { color: inherit; }
.card__link:focus-visible { outline: none; }
.card--link:focus-within { outline: 2px solid var(--smala-red-accent); outline-offset: 3px; }

.card__body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.card__title { font-weight: 700; font-size: 23px; letter-spacing: -0.01em; }
.card__meta {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--smala-text-muted);
  margin-top: 5px;
}
.card__text { font-size: 15px; line-height: 1.55; color: var(--smala-text-soft); margin-top: 14px; }
.card__role {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--smala-red-accent);
  margin-top: 7px;
}
.card__more { margin-top: 16px; font-weight: 600; font-size: 14px; color: var(--smala-red-accent); }

/* ---------- Show card (Spectacles listing) ---------- */
.show-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  border-radius: var(--radius-lg);
}
.show-card:hover { transform: none; }
.show-card .media { min-height: 170px; height: 100%; background-color: var(--smala-surface-2); }
.show-card .card__body { padding: 22px 24px; }
.show-card .card__title { font-size: 26px; margin-top: 12px; }
.show-card .card__meta { font-family: var(--font-body); letter-spacing: 0; }
.show-card .card__text { margin-top: 12px; }
.show-card--creation { border-style: dashed; border-color: rgba(255, 255, 255, 0.18); }

/* Archived show card */
.archive-card { background: none; border-color: var(--smala-line); opacity: 0.92; }
.archive-card:hover,
.archive-card:focus-within { opacity: 1; border-color: var(--smala-text); transform: none; }
.archive-card .media--placeholder { filter: grayscale(0.35); }
.archive-card .card__body { padding: 18px 20px 22px; }
.archive-card .card__kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--smala-text-muted);
}
.archive-card .card__title { font-size: 21px; margin-top: 8px; }
.archive-card .card__meta { font-family: var(--font-body); letter-spacing: 0; margin-top: 4px; }

/* ---------- Carousel ---------- */
.carousel__controls { display: flex; gap: 10px; flex-shrink: 0; }

.carousel__btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--smala-line-strong);
  background: var(--smala-bg);
  color: var(--smala-text);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel__btn:hover { border-color: var(--smala-red-accent); color: var(--smala-red-accent); }
.carousel__btn[disabled] { opacity: 0.35; cursor: default; }

.carousel__track {
  list-style: none;
  margin: 34px 0 0;
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  padding: 6px max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))) 16px;
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }

.carousel__item {
  scroll-snap-align: start;
  flex: 0 0 326px;
  display: flex;
}
.carousel__item .card { width: 100%; box-shadow: var(--shadow-card); }

/* ---------- Date rows (agenda, upcoming, show / artist pages) ---------- */
.date-list { list-style: none; margin: 0; padding: 0; }

.date-row {
  display: grid;
  grid-template-columns: 130px 90px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 22px 8px;
  border-top: 1px solid var(--smala-line);
}
.date-list > .date-row:last-child { border-bottom: 1px solid var(--smala-line); }

.date-row--compact { grid-template-columns: 120px 1fr auto; padding: 20px 8px; }
.date-row--small { grid-template-columns: 96px 1fr auto; gap: 16px; padding: 16px 4px; border-top: 0; border-bottom: 1px solid var(--smala-line); }
.date-list > .date-row--small:last-child { border-bottom: 1px solid var(--smala-line); }

.date-row__when { display: flex; flex-direction: column; }
.date-row__date { font-family: var(--font-heading); font-weight: 700; font-size: 23px; line-height: 1; }
.date-row__day {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--smala-text-muted);
  margin-top: 5px;
}
.date-row--compact .date-row__date { font-size: 22px; }
.date-row--small .date-row__date { font-size: 18px; }
.date-row--small .date-row__day { font-size: 10px; }

.date-row__category { justify-self: start; }

.date-row__heading { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.date-row__title { font-family: var(--font-heading); font-weight: 600; font-size: 20px; }
.date-row__title a { text-decoration: none; }
.date-row--compact .date-row__title { font-size: 19px; }
.date-row--small .date-row__title { font-size: 16px; }
.date-row__venue { font-size: 14px; color: var(--smala-text-muted); margin-top: 3px; }
.date-row--small .date-row__venue { font-size: 13px; margin-top: 2px; }

.date-row__actions { justify-self: end; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

/* CTA status (non-link states must never look clickable) */
.cta-status {
  display: inline-block;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--smala-text-muted);
}
.cta-status--cancelled { text-decoration: line-through; }

/* "Add to calendar" dropdown */
.add-to-calendar { position: relative; }
.add-to-calendar > summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--smala-text-muted);
  border: 1px solid var(--smala-line);
  border-radius: var(--radius-pill);
  padding: 8px 12px;
  white-space: nowrap;
}
.add-to-calendar > summary::-webkit-details-marker { display: none; }
.add-to-calendar > summary:hover,
.add-to-calendar[open] > summary { color: var(--smala-text); border-color: var(--smala-text); }
.add-to-calendar__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 5;
  list-style: none;
  margin: 0;
  padding: 6px;
  min-width: 190px;
  background: var(--smala-surface);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.7);
}
.add-to-calendar__menu a {
  display: block;
  padding: 8px 10px;
  font-size: 14px;
  text-decoration: none;
  border-radius: 8px;
}
.add-to-calendar__menu a:hover { background: var(--smala-red-tint); }

/* ---------- Agenda filter (artist + date range) ---------- */
.agenda-filter {
  display: flex;
  align-items: flex-end;
  gap: 14px 18px;
  flex-wrap: wrap;
  margin-bottom: 26px;
  padding: 20px 22px;
  background: rgba(21, 17, 13, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius);
}
.agenda-filter .field { display: flex; flex-direction: column; gap: 7px; min-width: 220px; }
.agenda-filter .gfield_label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--smala-text-muted);
}
.agenda-filter__period { border: 0; margin: 0; padding: 0; min-width: 0; }
.agenda-filter__period legend { padding: 0; margin-bottom: 7px; }
.agenda-filter__dates { display: flex; gap: 10px; flex-wrap: wrap; }
.field--date { flex-direction: row !important; align-items: center; gap: 8px !important; min-width: 0 !important; }
.field--date label { font-size: 14px; color: var(--smala-text-muted); }
.field--date input {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 11px;
  background: var(--smala-bg);
  color: var(--smala-text);
  color-scheme: dark;
  min-height: 48px;
}
.field--date input:focus { outline: 2px solid var(--smala-red-accent); outline-offset: 1px; border-color: transparent; }
.agenda-filter[data-invalid] #agenda-au { border-color: var(--smala-red-accent); }
.agenda-filter .field select { min-height: 48px; }
.agenda-filter__actions { display: flex; align-items: center; gap: 14px; min-height: 48px; }
.agenda-filter__reset { font-size: 14px; font-weight: 600; color: var(--smala-red-accent); text-underline-offset: 3px; }
.agenda-filter__error { flex-basis: 100%; font-size: 14px; color: #ff8a80; }
.agenda-filter__count { font-family: var(--font-mono); font-size: 12px; color: var(--smala-text-muted); margin-left: auto; align-self: center; }

/* ---------- Empty state ---------- */
.empty-state { font-size: 15px; color: var(--smala-text-muted); margin-top: 18px; }

/* ---------- Facts (show / training key data) ---------- */
.facts {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin: 26px 0;
  padding: 20px 0;
  border-top: 1px solid var(--smala-line);
  border-bottom: 1px solid var(--smala-line);
}
.facts__item { margin: 0; }
.facts dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--smala-text-muted);
}
.facts dd { margin: 4px 0 0; font-family: var(--font-heading); font-weight: 600; font-size: 17px; }
.facts dd a { text-decoration: none; }

/* ---------- People ---------- */
.person-card .card__title { font-size: 22px; }
.person-card--large .card__title { font-size: 24px; }
.person-card--large .card__body { padding: 22px 24px 26px; }

.artisan-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--smala-surface);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius);
  padding: 24px 26px;
}
.artisan-card__avatar {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--smala-surface-2);
  border: 1px solid var(--smala-line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  color: var(--smala-red-accent);
}
.artisan-card__body { flex: 1; min-width: 0; }
.artisan-card__name { font-weight: 700; font-size: 22px; line-height: 1.1; }
.artisan-card__role {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--smala-red-accent);
  margin-top: 8px;
}
.artisan-card__since {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--smala-text-faint);
  margin-top: 4px;
}
.artisan-card__note { font-size: 15px; line-height: 1.55; color: var(--smala-text-soft); margin-top: 13px; }
.artisan-card .btn { margin-top: 14px; }

/* ---------- Training programme card ---------- */
.programme-card .card__body { padding: 22px 24px 26px; }
.programme-card .card__kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--smala-red-accent);
}
.programme-card .card__title { font-size: 22px; margin-top: 10px; }
.programme-card .card__text { flex: 1; margin: 12px 0 18px; line-height: 1.6; }
.programme-card .card__actions { position: relative; z-index: 2; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ---------- Gallery (artist / show) ---------- */
.smala-gallery {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.smala-gallery__item { position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius-sm); overflow: hidden; background-color: var(--smala-surface-2); background-image: var(--stripes); }
.smala-gallery__item img { width: 100%; height: 100%; object-fit: cover; }
.smala-gallery__credit {
  position: absolute;
  left: 6px;
  bottom: 6px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  color: var(--smala-text);
  background: rgba(8, 7, 6, 0.7);
  padding: 3px 6px;
  border-radius: 4px;
}

/* ---------- Link list (artist's shows) ---------- */
.link-list { list-style: none; margin: 0; padding: 0; }
.link-list__item { border-bottom: 1px solid var(--smala-line); }
.link-list__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 4px;
  text-decoration: none;
  transition: background-color .15s ease;
}
.link-list__link:hover { background: rgba(226, 64, 46, 0.10); color: inherit; }
.link-list__main { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.link-list__title { font-family: var(--font-heading); font-weight: 700; font-size: 21px; }
.link-list__meta { font-size: 13px; color: var(--smala-text-muted); display: inline-flex; align-items: center; gap: 8px; }
.link-list__arrow { color: var(--smala-red-accent); font-size: 18px; }

.social-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

/* ---------- Forms (also styles Gravity Forms markup) ---------- */
.form-panel {
  background: var(--smala-surface);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 22px;
  padding: 32px;
}
.form-panel__title { font-size: 24px; font-weight: 700; margin-bottom: 20px; }
.form-panel--narrow { max-width: 720px; }

.smala-form .gform_fields,
.gform_wrapper .gform_fields {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.smala-form .gfield,
.gform_wrapper .gfield { display: flex; flex-direction: column; gap: 7px; margin: 0; }

.smala-form .gfield_label,
.gform_wrapper .gfield_label,
.gform_wrapper legend.gfield_label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--smala-text-muted);
}

.gfield_required { color: var(--smala-red-accent); margin-left: 2px; }

.smala-form input[type="text"],
.smala-form input[type="email"],
.smala-form input[type="tel"],
.smala-form select,
.smala-form textarea,
.gform_wrapper input[type="text"],
.gform_wrapper input[type="email"],
.gform_wrapper input[type="tel"],
.gform_wrapper select,
.gform_wrapper textarea,
.field select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 11px;
  background: var(--smala-bg);
  color: var(--smala-text);
}

.smala-form select,
.gform_wrapper select,
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--smala-text-muted) 50%), linear-gradient(135deg, var(--smala-text-muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}

.smala-form textarea,
.gform_wrapper textarea { resize: vertical; min-height: 120px; }

.smala-form ::placeholder,
.gform_wrapper ::placeholder { color: #6f675f; }

.smala-form input:focus,
.smala-form select:focus,
.smala-form textarea:focus,
.gform_wrapper input:focus,
.gform_wrapper select:focus,
.gform_wrapper textarea:focus,
.field select:focus {
  outline: 2px solid var(--smala-red-accent);
  outline-offset: 1px;
  border-color: transparent;
}

.gfield--consent .gchoice { display: flex; gap: 10px; align-items: flex-start; }
.gfield--consent input[type="checkbox"] { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--smala-red); flex-shrink: 0; }
.gfield--consent label { font-size: 14px; line-height: 1.5; color: var(--smala-text-soft); }
.gfield--consent a { color: var(--smala-red-accent); }

.gfield_description { font-size: 13px; color: var(--smala-text-muted); }

.gform_footer { margin-top: 22px; }
.gform_footer .gform_button,
.smala-form .gform_button {
  width: 100%;
  background: var(--smala-red);
  color: var(--smala-text-strong);
  border: none;
  border-radius: var(--radius-pill);
  padding: 15px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
}
.gform_footer .gform_button:hover,
.smala-form .gform_button:hover { background: var(--smala-red-dark); }

.gfield_error input,
.gfield_error select,
.gfield_error textarea { border-color: var(--smala-red-accent); }
.validation_message,
.gform_validation_errors { color: #ff8a80; font-size: 14px; }
.gform_confirmation_message {
  background: var(--smala-surface-2);
  border: 1px solid var(--smala-line);
  border-radius: 12px;
  padding: 18px 20px;
}

/* ==========================================================================
   8. Page sections
   ========================================================================== */

/* ---------- Home: hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 72px;
}
.hero__title {
  font-weight: 800;
  font-size: clamp(44px, 6vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin-top: 18px;
}
.highlight {
  font-family: var(--font-logo);
  font-weight: 400;
  color: var(--smala-red);
  font-size: 1.15em;
  display: inline-block;
  margin-top: 0.12em;
  letter-spacing: 0;
}
.hero__text { font-size: 19px; line-height: 1.6; color: var(--smala-text-soft); max-width: 30em; margin-top: 24px; }
.hero .btn-group { margin-top: 32px; }

.hero__visual { position: relative; }
.hero__glow {
  position: absolute;
  inset: -30px;
  background: radial-gradient(circle at 60% 40%, rgba(226, 64, 46, 0.24), transparent 70%);
}
.blob {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 46% 54% 52% 48% / 56% 48% 52% 44%;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
  animation: floaty 7s ease-in-out infinite;
  padding: 22px 22px 14%;
  justify-content: center;
}
.blob .media__label { font-size: 11px; padding: 6px 10px; }

@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-12px) rotate(-2deg); }
}

/* ---------- Home: about ---------- */
.about__inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 54px;
  align-items: center;
  padding-top: 78px;
  padding-bottom: 78px;
}
.about__media { border-radius: var(--radius); background-color: #241D17; padding: 20px; }
.about__media .media__label { background: none; color: #ADA498; padding: 0; font-size: 11px; }
.about__title { margin-top: 16px; }
.about__text { font-size: 17px; line-height: 1.7; color: #C9C2B8; margin-top: 22px; }
.about__text + .about__text { margin-top: 16px; }
.stat { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.stat__value { font-family: var(--font-heading); font-weight: 800; font-size: 58px; color: #fff; line-height: 1; }
.stat__label { font-family: var(--font-mono); font-size: 22px; letter-spacing: 0.12em; text-transform: uppercase; color: #EAEBE4; }

/* ---------- Home: upcoming dates ---------- */
.upcoming .date-list { margin-top: 30px; }

/* ---------- Home: team teaser ---------- */
.team-teaser .section-title { margin-bottom: 28px; }
.team-teaser__more { margin-top: 30px; }

/* ---------- Home: partners ---------- */
.partners { border-top: 1px solid rgba(255, 255, 255, 0.10); }
.partners__inner {
  display: flex;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
  justify-content: center;
  padding-top: 44px;
  padding-bottom: 44px;
}
.partners__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--smala-text-muted); }
.partners__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 36px; flex-wrap: wrap; justify-content: center; }
.partners__item { font-family: var(--font-heading); font-weight: 600; font-size: 18px; color: #ADA498; }
.partners__item a { text-decoration: none; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--smala-red); color: var(--smala-text-strong); position: relative; z-index: 1; }
.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  flex-wrap: wrap;
  padding-top: 70px;
  padding-bottom: 70px;
}
.cta-band__title { font-weight: 700; font-size: clamp(28px, 3.4vw, 44px); max-width: 14em; }
.cta-band__text { font-size: 17px; line-height: 1.6; margin-top: 16px; opacity: 0.92; max-width: 30em; }

/* ---------- Spectacles listing ---------- */
.shows-section { padding: 24px 0; }
.shows-section + .shows-section { padding-top: 34px; }
.shows-section:last-child { padding-bottom: 80px; }

/* ---------- Single show / single person (two-column detail) ---------- */
.detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  padding-top: 24px;
  padding-bottom: 70px;
}
.detail--person { grid-template-columns: 0.9fr 1.1fr; padding-bottom: 60px; }

.detail__aside { position: sticky; top: var(--header-offset); }
.detail__media { border-radius: var(--radius-lg); box-shadow: var(--shadow-media); background-color: var(--smala-red); }
.detail__media.media--placeholder { background-color: var(--smala-surface-2); padding: 22px; }
.detail__media .media__label { font-size: 11px; padding: 6px 10px; }

.entry-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--smala-red-accent);
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.entry-title {
  font-weight: 800;
  font-size: clamp(40px, 5.5vw, 74px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin-top: 14px;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.entry-tagline { font-size: 20px; line-height: 1.5; color: var(--smala-text); font-style: italic; margin-top: 18px; }
.detail--person .entry-tagline { margin-bottom: 26px; }
.entry-actions { margin-top: 14px; }

.detail-block { margin-top: 30px; }
.detail-block > .section-label { margin-bottom: 0; }
.detail-block__header { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.14); padding-bottom: 10px; }
.detail-block__header .section-label { border: 0; padding: 0; margin: 0; }

.notice-archive {
  margin-top: 30px;
  padding: 18px 20px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  font-size: 15px;
  color: var(--smala-text-muted);
}

/* ---------- Formation ---------- */
.formation-intro__inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 64px;
}
.formation-intro .page-lead { color: #C9C2B8; max-width: 32em; line-height: 1.7; margin-top: 22px; }

.coordinator {
  background: var(--smala-surface-3);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  gap: 18px;
  align-items: center;
}
.coordinator__avatar {
  width: 84px;
  height: 84px;
  flex-shrink: 0;
  border-radius: 50%;
  background-color: #2E251C;
  background-image: repeating-linear-gradient(135deg, transparent 0 9px, rgba(255, 255, 255, 0.05) 9px 10px);
  overflow: hidden;
}
.coordinator__role { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--smala-red-accent); }
.coordinator__name { font-family: var(--font-heading); font-weight: 700; font-size: 24px; margin-top: 6px; }
.coordinator__link { display: inline-block; margin-top: 10px; font-weight: 600; font-size: 14px; color: #F2EEE8; text-underline-offset: 3px; }

.programmes__title { font-size: clamp(26px, 3vw, 38px); font-weight: 700; margin-bottom: 28px; }

/* ---------- Contact ---------- */
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  padding-top: 56px;
  padding-bottom: 80px;
}
.contact .page-lead { max-width: 30em; margin-bottom: 34px; }
.contact-blocks { display: flex; flex-direction: column; gap: 24px; font-style: normal; }
.contact-block__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--smala-text-muted); }
.contact-block__text { font-size: 16px; line-height: 1.6; margin-top: 6px; font-style: normal; }

/* Image credit under hero / media-text visuals (rendered only when a credit exists) */
.media-credit { font-family: var(--font-mono); font-size: 11px; color: var(--smala-text-muted); margin-top: 8px; }
.contact-block__text a { text-decoration: none; }
.contact-block__text a:hover { text-decoration: underline; }

/* ---------- Generic page (page.php) ---------- */
.page-content { padding-bottom: 80px; max-width: 760px; }

/* ==========================================================================
   9. Footer
   ========================================================================== */
.site-footer { position: relative; z-index: 1; background: var(--smala-footer); color: #C9C2B8; }
.site-footer a { text-decoration: none; }
.site-footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-top: 56px;
  padding-bottom: 32px;
}
.footer-logo { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.footer-logo .site-logo__name { font-size: 34px; line-height: 0.9; }
.footer-logo .site-logo__tagline { font-size: 11px; letter-spacing: 0.24em; color: var(--smala-text-faint); margin: 0; }
.site-footer__about { font-size: 15px; line-height: 1.6; margin-top: 18px; max-width: 26em; }
.site-footer__url { font-family: var(--font-mono); font-size: 12px; color: var(--smala-text-faint); margin-top: 18px; }
.widget-title { font-family: var(--font-mono); font-size: 11px; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; color: var(--smala-text-faint); margin: 0 0 14px; }
.footer-navigation .menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer-navigation a { font-size: 15px; color: #C9C2B8; }
.footer-navigation a:hover { color: #fff; }
.site-footer address { font-style: normal; font-size: 15px; line-height: 1.7; }
.site-footer address a:hover { color: #fff; }

/* Newsletter (placeholder until the provider is confirmed) */
.newsletter {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 18px 40px;
  align-items: center;
  padding-top: 28px;
  padding-bottom: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.newsletter__title { font-size: 22px; font-weight: 700; color: var(--smala-text); }
.newsletter__text p { font-size: 15px; margin-top: 6px; }
.newsletter__form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.newsletter__form input[type="email"] { flex: 1 1 220px; width: auto; padding: 11px 15px; }
.newsletter__consent { flex-basis: 100%; font-size: 12px; line-height: 1.5; color: var(--smala-text-faint); }
.newsletter__consent a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

.site-info {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  padding-top: 20px;
  padding-bottom: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--smala-text-faint);
}
.legal-navigation .menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; flex-wrap: wrap; }
.legal-navigation a { color: var(--smala-text-faint); }
.legal-navigation a:hover { color: #F2EEE8; }

/* ==========================================================================
   10. Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .main-navigation .menu > .menu-item > a { padding: 8px 9px; }
}

@media (max-width: 900px) {
  :root { --gutter: 22px; }

  /* Hamburger navigation */
  .menu-toggle { display: inline-flex; }

  .main-navigation { position: static; }
  .main-navigation .menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px var(--gutter) 22px;
    background: rgba(14, 12, 11, 0.97);
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }
  .main-navigation.is-open .menu { display: flex; }
  .main-navigation .menu > .menu-item > a { font-size: 18px; padding: 12px 10px; }
  .main-navigation .menu > .menu-item--cta { margin: 10px 0 0; }
  .main-navigation .menu > .menu-item--cta > a { text-align: center; }

  .main-navigation .menu-item-has-children { display: flex; flex-wrap: wrap; align-items: center; }
  .main-navigation .menu-item-has-children > a { flex: 1; }
  .submenu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: none;
    border: 1px solid var(--smala-line);
    border-radius: 10px;
    color: var(--smala-text);
    cursor: pointer;
  }
  .submenu-toggle svg { transition: transform .2s ease; }
  .submenu-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

  .main-navigation .sub-menu,
  .main-navigation .menu-item-has-children:hover > .sub-menu,
  .main-navigation .menu-item-has-children:focus-within > .sub-menu {
    position: static;
    flex-basis: 100%;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    background: transparent;
    padding: 0 0 6px 14px;
  }
  .main-navigation .menu-item-has-children.is-open > .sub-menu { display: block; }
  .main-navigation .sub-menu a { font-size: 16px; }

  /* Grids → one column */
  .grid--2,
  .grid--3,
  .hero__inner,
  .about__inner,
  .detail,
  .detail--person,
  .formation-intro__inner,
  .contact__inner,
  .newsletter,
  .site-footer__inner { grid-template-columns: 1fr; }

  .hero__inner { gap: 40px; padding-top: 44px; }
  .hero__visual { max-width: 420px; }
  .about__media { max-width: 480px; }

  /* Sticky visuals become normal-flow content */
  .detail__aside { position: static; top: auto; max-width: 480px; }

  /* Date rows stack: date → content/venue → CTA */
  .date-row,
  .date-row--compact,
  .date-row--small {
    grid-template-columns: 1fr;
    row-gap: 10px;
  }
  .date-row__actions { justify-self: start; justify-content: flex-start; }
  .add-to-calendar__menu { left: 0; right: auto; }

  .section { padding: 60px 0; }
  .carousel__item { flex-basis: min(326px, 82vw); }
}

@media (max-width: 560px) {
  :root { --gutter: 18px; }
  .show-card { grid-template-columns: 1fr; }
  .show-card .media { min-height: 0; aspect-ratio: 5 / 3; height: auto; }
  .form-panel { padding: 22px; }
  .btn { white-space: normal; text-align: center; }
  .stat__value { font-size: 46px; }
  .stat__label { font-size: 17px; }
  .artisan-card { padding: 20px; gap: 16px; }
  .coordinator { flex-direction: column; align-items: flex-start; }
  .agenda-filter { padding: 18px; }
  .agenda-filter .field { min-width: 0; width: 100%; }
  .agenda-filter__period { width: 100%; }
  .field--date { flex: 1 1 140px; }
  .field--date input { flex: 1; min-width: 0; }
  .agenda-filter__count { margin-left: 0; }
  .site-info { flex-direction: column; align-items: flex-start; }
}

@media screen and (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

/* ==========================================================================
   11. Reduced motion
   ========================================================================== */
@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;
  }
  .blob { animation: none; transform: rotate(-2deg); }
  .card--link:hover,
  .card--link:focus-within { transform: none; }
}

/* ==========================================================================
   WordPress additions (Phase 3): section settings and real images
   ========================================================================== */

/* Section background "red" (Page Sections setting) */
.section--red { background: var(--smala-red); color: var(--smala-text-strong); }
.section--red .eyebrow,
.section--red .section-label,
.section--red .text-link,
.section--red .card__kicker,
.section--red .highlight { color: var(--smala-text-strong); }
.section--red .btn--primary { background: #0A0807; color: var(--smala-text-strong); }
.section--red .btn--primary:hover,
.section--red .btn--primary:focus-visible { background: #000; }
.section--red .btn--outline,
.section--red .btn--outline-red { border-color: rgba(255, 255, 255, 0.6); color: var(--smala-text-strong); }

/* Real images replacing the placeholders */
.blob--image,
.about__media--image { padding: 0; }
.artisan-card__avatar img,
.coordinator__avatar img { width: 100%; height: 100%; object-fit: cover; }
.partners__item img { display: block; max-height: 48px; width: auto; }

/* Media + text: image on the right */
@media (min-width: 901px) {
  .about__inner--image-right .about__media { order: 2; }
}

/* Rich text section: narrow width */
.page-content--narrow { max-width: 640px; }

/* Gallery items use <figure> + <figcaption> for credits */
.smala-gallery__item figure { height: 100%; }

/* Event year: own line under the date, styled like the weekday line */
.date-row__year {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--smala-text-muted);
  margin-top: 5px;
}
.date-row--small .date-row__year { font-size: 10px; }

/* ==========================================================================
   Gravity Forms output (GF CSS disabled — inc/gravity-forms.php).
   Matches the static .smala-form markup.
   ========================================================================== */

/* Functional rules normally provided by Gravity Forms */
.gform_wrapper .gform_validation_container,
.gform_wrapper .gfield--type-honeypot,
.gform_wrapper .gform_hidden,
.gform_wrapper .gfield_visibility_hidden { display: none !important; }
.gform_wrapper .hidden_label > .gfield_label,
.gform_wrapper .screen-reader-text,
.gform_wrapper .gform_required_legend {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.gform_wrapper fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.gform_wrapper .gform_heading { display: none; }
.gform_wrapper .gfield_required .gfield_required { margin-left: 0; }
.gform_wrapper textarea { height: 130px; } /* rows="4" of the static markup (GF outputs rows="10") */
.gform_wrapper .gform_ajax_spinner { width: 18px; height: 18px; margin-left: 10px; vertical-align: middle; }

/* Consent checkbox (same look as .gfield--consent .gchoice) */
.gform_wrapper .ginput_container_consent { display: flex; gap: 10px; align-items: flex-start; }
.gform_wrapper .ginput_container_consent input[type="checkbox"] { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--smala-red); flex-shrink: 0; }
.gform_wrapper .gfield_consent_label { font-size: 14px; line-height: 1.5; color: var(--smala-text-soft); }
.gform_wrapper .gfield_consent_label a { color: var(--smala-red-accent); }

/* Validation and confirmation */
.gform_wrapper .gform_validation_errors {
  margin-bottom: 18px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 138, 128, 0.4);
  border-radius: var(--radius-sm);
  background: rgba(226, 64, 46, 0.08);
}
.gform_wrapper .gform_validation_errors h2,
.gform_wrapper .gform_submission_error { font-family: var(--font-body); font-size: 14px; font-weight: 600; color: #ff8a80; }
.gform_wrapper .gform_validation_errors ol { margin: 6px 0 0; padding-left: 18px; font-size: 13px; }
.gform_wrapper .gform_validation_errors a { color: #ff8a80; }
.gform_wrapper .validation_message,
.gform_wrapper .gfield_validation_message { font-size: 13px; color: #ff8a80; }
.gform_wrapper .gfield_error .gfield_label { color: #ff8a80; }

/* Footer newsletter: email + button on one line, consent below */
.newsletter__gform { flex: 1 1 380px; }
.newsletter__gform form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}
.newsletter__gform .gform_body,
.newsletter__gform .gform_fields { display: contents; }
.newsletter__gform .gfield--type-email { grid-column: 1; grid-row: 1; }
.newsletter__gform .gform_footer { grid-column: 2; grid-row: 1; margin: 0; }
.newsletter__gform .gfield--type-consent { grid-column: 1 / -1; grid-row: 2; }
.newsletter__gform input[type="email"] { padding: 11px 15px; }
.newsletter__gform .gform_button { padding: 10px 18px; font-size: 14px; line-height: 20px; }
.newsletter__gform .gfield_consent_label { font-size: 12px; color: var(--smala-text-faint); }
.newsletter__gform .gfield_consent_label a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.newsletter__gform .gform_confirmation_message { margin: 0; }

/* Calendar menu on narrow screens: opens in place instead of floating past the screen edge */
@media (max-width: 560px) {
  .add-to-calendar__menu { position: static; margin-top: 8px; }
}
