/* =========================================================================
   FUNDACJA ALESIA BIAŁACKIEGO
   Editorial / civic-publication aesthetic
   Palette: warm paper background, deep signal red, warm black
   ========================================================================= */

:root {
  /* Colors */
  --paper:        #F4EFE6;   /* warm off-white background */
  --paper-deep:   #ECE5D7;   /* subtle deeper paper */
  --ink:          #1A1814;   /* warm black */
  --ink-soft:     #2C2823;
  --ink-mute:     #6E665C;   /* secondary text */
  --rule:         #C9BFB0;   /* dividers */

  --red:          #B5251D;   /* primary signal red */
  --red-deep:     #8E1814;   /* darker red on hover */
  --red-tint:     #F2D9D6;   /* very pale red wash */
  --red-glow:     rgba(181, 37, 29, 0.12);

  --white:        #FFFFFF;
  --black:        #0E0C09;

  /* Typography */
  --serif:  'Fraunces', 'Source Serif Pro', Georgia, 'Times New Roman', serif;
  --sans:   'Manrope', 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --mono:   'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Scale */
  --container: 1280px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 0;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

/* =========================================================================
   RESET & BASE
   ========================================================================= */

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

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01', 'cv11';
  /* subtle paper grain */
  background-image:
    radial-gradient(circle at 12% 18%, rgba(181,37,29,0.018) 0, transparent 35%),
    radial-gradient(circle at 88% 82%, rgba(26,24,20,0.025) 0, transparent 40%);
}

body.menu-open { overflow: hidden; }

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

a {
  color: inherit;
  text-decoration: none;
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.18em;
}

button { font-family: inherit; cursor: pointer; }

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

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
}
.skip-link:focus { top: 1rem; }

/* =========================================================================
   TYPOGRAPHY
   ========================================================================= */

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  font-style: normal;
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.02em;
  font-variation-settings: 'opsz' 144, 'SOFT' 50;
}

h1 { font-size: clamp(2.75rem, 8vw, 7rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.75rem); }
h3 { font-size: clamp(1.375rem, 2.2vw, 1.75rem); line-height: 1.2; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}
.eyebrow::before {
  content: '';
  width: 1.5rem;
  height: 1px;
  background: var(--red);
}

.lead {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  line-height: 1.45;
  color: var(--ink-soft);
  font-weight: 400;
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
}

/* =========================================================================
   HEADER
   ========================================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 239, 230, 0.85);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--rule);
  background: rgba(244, 239, 230, 0.95);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--ink);
  text-decoration: none;
}

.brand-logo {
  height: 96px;
  width: auto;
  display: block;
  transition: opacity 0.2s var(--ease);
}
.brand:hover .brand-logo { opacity: 0.85; }

@media (max-width: 880px) {
  .brand-logo { height: 76px; }
}
@media (max-width: 560px) {
  .brand-logo { height: 64px; }
}

/* Legacy classes kept as no-op so any stragglers don't break layout */
.brand-mark, .brand-text, .brand-name, .brand-sub { display: none; }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.primary-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1.75rem;
}

.primary-nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
  padding: 0.4rem 0;
  position: relative;
  transition: color 0.2s var(--ease);
}
.primary-nav a:hover { color: var(--red); }
.primary-nav a.is-current::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--red);
}

/* Lang toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--ink);
  padding: 0;
  background: transparent;
}
.lang-toggle button {
  background: transparent;
  border: 0;
  padding: 0.5rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.lang-toggle button.is-active {
  background: var(--ink);
  color: var(--paper);
}
.lang-toggle button:not(.is-active):hover { background: var(--red-glow); color: var(--red); }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--ink);
  padding: 0.55rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}

@media (max-width: 880px) {
  .menu-toggle { display: inline-flex; }
  .primary-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: var(--paper);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 6rem var(--gutter) 2rem;
    gap: 2rem;
    transform: translateY(-100%);
    transition: transform 0.4s var(--ease);
    z-index: 40;
    overflow-y: auto;
  }
  .primary-nav.is-open { transform: translateY(0); }
  .primary-nav ul { flex-direction: column; gap: 1.25rem; width: 100%; }
  .primary-nav a {
    font-family: var(--serif);
    font-size: 2rem;
    line-height: 1.1;
    font-weight: 400;
  }
  .lang-toggle { margin-top: auto; }
}

/* =========================================================================
   BUTTONS
   ========================================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.95rem 1.6rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid currentColor;
  background: transparent;
  color: var(--ink);
  transition: all 0.25s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '→';
  font-size: 1rem;
  transition: transform 0.3s var(--ease);
}
.btn:hover::after { transform: translateX(4px); }

.btn-primary {
  background: var(--red);
  color: var(--paper);
  border-color: var(--red);
}
.btn-primary:hover { background: var(--red-deep); border-color: var(--red-deep); }

.btn-ink {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.btn-ink:hover { background: var(--red); border-color: var(--red); }

.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

/* =========================================================================
   HERO
   ========================================================================= */

.hero {
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 7rem);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
}

.hero-title {
  font-size: clamp(2.75rem, 7.5vw, 6.5rem);
  line-height: 0.96;
  font-weight: 400;
  letter-spacing: -0.03em;
  margin-bottom: 2.5rem;
  font-variation-settings: 'opsz' 144, 'SOFT' 30, 'wght' 450;
}
.hero-title span { display: block; }
.hero-title .hl {
  color: var(--red);
  font-style: italic;
  font-variation-settings: 'opsz' 144, 'SOFT' 100, 'wght' 400;
}

.hero-sub {
  max-width: 36ch;
  margin-bottom: 2.25rem;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-figure {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--ink);
  overflow: hidden;
}
.hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: grayscale(1) contrast(1.05) brightness(0.95);
  mix-blend-mode: luminosity;
  transition: transform 1.2s var(--ease);
  /* Hide alt text if image fails — the red overlay is intentional and the figcaption provides accessibility. */
  color: transparent;
  font-size: 0;
}
.hero-figure::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, var(--red) 0%, #6E1411 100%);
  z-index: 1;
}
.hero-figure img { position: relative; z-index: 2; }
.hero-figure::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      45deg,
      transparent 0px,
      transparent 3px,
      rgba(244,239,230,0.025) 3px,
      rgba(244,239,230,0.025) 4px
    );
  z-index: 3;
  pointer-events: none;
}
.hero-figure:hover img { transform: scale(1.03); }

.hero-caption {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--ink-mute);
  letter-spacing: 0.02em;
  max-width: 32ch;
}

/* Decorative marginalia */
.hero-meta {
  position: absolute;
  top: 50%;
  right: var(--gutter);
  transform: translateY(-50%) rotate(90deg);
  transform-origin: right center;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-mute);
  white-space: nowrap;
  pointer-events: none;
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-meta { display: none; }
  .hero-figure { aspect-ratio: 5 / 4; }
}

/* =========================================================================
   SECTIONS
   ========================================================================= */

section { padding: clamp(4rem, 8vw, 7rem) 0; }
section.tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }

.section-head {
  display: grid;
  grid-template-columns: 0.4fr 1fr;
  gap: 3rem;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}

.section-head-title h2 {
  max-width: 18ch;
}
.section-head-text {
  font-size: 1.0625rem;
  color: var(--ink-soft);
  max-width: 60ch;
}

@media (max-width: 760px) {
  .section-head { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* =========================================================================
   ABOUT BIALIATSKI
   ========================================================================= */

.about-section {
  background: var(--paper-deep);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}

.about-text p + p { margin-top: 1.2rem; }

.about-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 2.5rem;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.about-fact {
  background: var(--paper-deep);
  padding: 1.5rem 1.25rem;
}
.about-fact-value {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  color: var(--red);
  letter-spacing: -0.02em;
  display: block;
  line-height: 1;
  margin-bottom: 0.5rem;
  font-variation-settings: 'opsz' 144, 'SOFT' 50;
}
.about-fact-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  line-height: 1.3;
}

.about-portrait {
  margin: 0;
  display: flex;
  flex-direction: column;
}
.about-portrait-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  /* Layered fallback: warm-toned gradient + diagonal hatching, so a missing
     photo still reads as an intentional designed surface. */
  background:
    repeating-linear-gradient(
      135deg,
      transparent 0px,
      transparent 12px,
      rgba(26,24,20,0.04) 12px,
      rgba(26,24,20,0.04) 13px
    ),
    linear-gradient(160deg, var(--paper-deep) 0%, var(--paper) 100%);
}
.about-portrait-frame img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center 30%;
  filter: grayscale(0.5) contrast(1.05);
  /* Hide alt text on broken image; figcaption provides accessibility. */
  color: transparent;
  font-size: 0;
  position: relative;
  z-index: 1;
}
.about-portrait-frame::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid var(--paper);
  z-index: 2;
  pointer-events: none;
}
.about-portrait-frame::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 30%;
  background: linear-gradient(to top, var(--paper-deep) 0%, transparent 100%);
  opacity: 0.3;
  z-index: 1;
}
.about-portrait-caption {
  margin-top: 0.85rem;
  font-size: 0.75rem;
  color: var(--ink-mute);
  letter-spacing: 0.02em;
  line-height: 1.5;
  max-width: 36ch;
}

@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-portrait { max-width: 480px; }
}

/* =========================================================================
   PULL QUOTE
   ========================================================================= */

.quote-section {
  padding: clamp(5rem, 10vw, 9rem) 0;
  position: relative;
}
.quote-section::before {
  content: '\201C';
  position: absolute;
  top: 1.5rem;
  left: var(--gutter);
  font-family: var(--serif);
  font-size: clamp(8rem, 18vw, 16rem);
  line-height: 1;
  color: var(--red);
  opacity: 0.18;
  pointer-events: none;
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
}
.quote-text {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3.6vw, 3rem);
  line-height: 1.2;
  font-weight: 400;
  font-style: italic;
  max-width: 22ch;
  margin: 0 auto;
  letter-spacing: -0.015em;
  text-align: center;
  position: relative;
  font-variation-settings: 'opsz' 144, 'SOFT' 100, 'wght' 400;
}
.quote-attribution {
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 2.5rem;
}
.quote-attribution::before {
  content: '';
  display: inline-block;
  width: 2.5rem;
  height: 1px;
  background: var(--ink-mute);
  vertical-align: middle;
  margin-right: 1rem;
}

/* =========================================================================
   PILLARS / FEATURE CARDS
   ========================================================================= */

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink);
}
.pillar {
  padding: 2.5rem 2rem 3rem;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  position: relative;
  transition: background 0.3s var(--ease);
}
.pillar:nth-child(3) { border-right: 0; }
.pillar:hover { background: var(--paper-deep); }

.pillar-num {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--red);
  display: block;
  margin-bottom: 1.5rem;
}
.pillar-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 1rem;
}
.pillar-text {
  font-size: 0.9375rem;
  color: var(--ink-soft);
  line-height: 1.55;
  max-width: 36ch;
}

.pillars-cta-wrap {
  margin-top: 3rem;
  text-align: center;
}

@media (max-width: 880px) {
  .pillars-grid { grid-template-columns: 1fr; }
  .pillar { border-right: 0; }
  .pillar:last-child { border-bottom: 0; }
}

/* =========================================================================
   CTA BANNER
   ========================================================================= */

.cta-banner {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 60%;
  height: 160%;
  background: radial-gradient(ellipse at center, var(--red-glow) 0%, transparent 70%);
  pointer-events: none;
}
.cta-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 3rem;
  position: relative;
}
.cta-title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  max-width: 16ch;
  margin-bottom: 1rem;
  color: var(--paper);
}
.cta-text {
  font-size: 1.125rem;
  max-width: 38ch;
  color: rgba(244, 239, 230, 0.78);
  margin-bottom: 0;
}
.cta-banner .btn {
  color: var(--paper);
}
.cta-banner .btn-primary {
  background: var(--red);
  border-color: var(--red);
  color: var(--paper);
}
.cta-banner .btn-primary:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

@media (max-width: 760px) {
  .cta-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* =========================================================================
   GOALS PAGE
   ========================================================================= */

.page-hero {
  padding: clamp(4rem, 8vw, 7rem) 0 clamp(3rem, 5vw, 4rem);
  border-bottom: 1px solid var(--rule);
}
.page-hero-grid {
  display: grid;
  grid-template-columns: 0.4fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: end;
}
.page-hero h1 {
  font-size: clamp(3rem, 7vw, 6rem);
  letter-spacing: -0.035em;
  font-variation-settings: 'opsz' 144, 'SOFT' 30, 'wght' 450;
}
.page-hero-meta {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.page-intro {
  max-width: 64ch;
  margin-top: 2rem;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  line-height: 1.5;
  color: var(--ink-soft);
}

@media (max-width: 760px) {
  .page-hero-grid { grid-template-columns: 1fr; gap: 1rem; }
}

.goals-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
}
.goal-item {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--rule);
  position: relative;
  transition: background 0.3s var(--ease);
}
.goal-item:hover { background: var(--paper-deep); }
.goal-item:hover .goal-num { color: var(--red); }
.goal-item:hover .goal-num::after { background: var(--red); }

.goal-num {
  font-family: var(--serif);
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 400;
  color: var(--ink-mute);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variation-settings: 'opsz' 144, 'SOFT' 50;
  position: relative;
  padding-top: 0.3rem;
  transition: color 0.3s var(--ease);
}
.goal-num::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 2rem;
  height: 2px;
  background: var(--ink-mute);
  transition: background 0.3s var(--ease);
}

.goal-body h3 { margin-bottom: 0.85rem; }
.goal-body p {
  color: var(--ink-soft);
  max-width: 64ch;
  font-size: 1.0625rem;
}

@media (max-width: 560px) {
  .goal-item { grid-template-columns: 1fr; gap: 0.5rem; }
  .goal-num { font-size: 2.25rem; }
}

/* =========================================================================
   ACTIVITIES (WHAT WE DO)
   ========================================================================= */

.activities-section { padding-top: clamp(3rem, 6vw, 5rem); }

.activities-group {
  margin-bottom: clamp(3.5rem, 6vw, 5.5rem);
}
.activities-group-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: end;
  margin-bottom: 2.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--ink);
}
.activities-group-num {
  font-family: var(--mono);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--red);
  white-space: nowrap;
}
.activities-group-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin: 0;
}

.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.activity-card {
  background: var(--paper);
  padding: 1.75rem 1.5rem 2rem;
  position: relative;
  transition: background 0.3s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.activity-card:hover { background: var(--paper-deep); }
.activity-card-marker {
  width: 0.5rem;
  height: 0.5rem;
  background: var(--red);
  border-radius: 50%;
  margin-bottom: 0.4rem;
}
.activity-card h3 {
  font-size: 1.1875rem;
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.3;
  margin: 0;
}
.activity-card p {
  font-size: 0.9375rem;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0;
}

/* =========================================================================
   CONTACT
   ========================================================================= */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.contact-info-block {
  border-bottom: 1px solid var(--rule);
  padding: 1.75rem 0;
}
.contact-info-block:first-child { padding-top: 0; }
.contact-info-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.85rem;
}
.contact-info-value {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  line-height: 1.35;
  color: var(--ink);
  font-weight: 400;
  font-variation-settings: 'opsz' 144, 'SOFT' 50;
}
.contact-info-value a { color: var(--ink); transition: color 0.2s var(--ease); }
.contact-info-value a:hover { color: var(--red); }
.contact-legal-list { list-style: none; padding: 0; margin: 0.5rem 0 0; }
.contact-legal-list li {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink-soft);
  padding: 0.25rem 0;
}

/* Form */
.contact-form-wrap {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(2rem, 4vw, 3rem);
  position: relative;
}
.contact-form-wrap::before {
  content: '';
  position: absolute;
  top: -1px;
  right: -1px;
  width: 60px;
  height: 60px;
  background: var(--red);
}
.contact-form-title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin: 0 0 1.5rem;
  color: var(--paper);
}
.field {
  margin-bottom: 1.25rem;
}
.field label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.6);
  margin-bottom: 0.5rem;
}
.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(244, 239, 230, 0.25);
  padding: 0.5rem 0;
  color: var(--paper);
  font-family: var(--sans);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s var(--ease);
  resize: vertical;
}
.field textarea { min-height: 90px; }
.field input:focus,
.field textarea:focus { border-bottom-color: var(--red); }
.field input::placeholder,
.field textarea::placeholder { color: rgba(244, 239, 230, 0.35); }

.form-note {
  font-size: 0.75rem;
  color: rgba(244, 239, 230, 0.5);
  margin-top: 1rem;
  line-height: 1.5;
}

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* =========================================================================
   FOOTER
   ========================================================================= */

.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(4rem, 7vw, 6rem) 0 1.5rem;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  margin-bottom: 4rem;
}
.footer-brand .brand-mark { display: none; }
.footer-logo {
  height: 64px;
  width: auto;
  display: block;
  margin: 0 0 1.5rem;
  /* The logo is red on transparent; sits naturally on the dark footer. */
}
.footer-brand-name { display: none; } /* legacy */
.footer-about-text {
  font-size: 0.9375rem;
  color: rgba(244, 239, 230, 0.65);
  max-width: 36ch;
  line-height: 1.6;
}

.footer-col-title {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 1.25rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.7rem; }
.footer-col a {
  color: rgba(244, 239, 230, 0.8);
  font-size: 0.9375rem;
  transition: color 0.2s var(--ease);
}
.footer-col a:hover { color: var(--red); }
.footer-col address {
  font-style: normal;
  font-size: 0.9375rem;
  color: rgba(244, 239, 230, 0.8);
  line-height: 1.65;
}
.footer-col address a { display: inline; }

.footer-bottom {
  border-top: 1px solid rgba(244, 239, 230, 0.15);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-legal {
  font-size: 0.75rem;
  color: rgba(244, 239, 230, 0.45);
  margin: 0;
}
.footer-credit {
  font-size: 0.75rem;
  color: rgba(244, 239, 230, 0.45);
  margin: 0;
}

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* =========================================================================
   REVEAL ANIMATIONS
   ========================================================================= */

/* Reveals only hide when JS has flagged the doc as ready to animate.
   Without JS (or before the script runs), content stays visible. */
.reveal {
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.js-reveals .reveal {
  opacity: 0;
  transform: translateY(24px);
}
.js-reveals .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .js-reveals .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================================
   PRINT
   ========================================================================= */

@media print {
  .site-header, .site-footer, .menu-toggle, .lang-toggle, .hero-actions, .cta-banner { display: none; }
  body { background: white; color: black; }
}

/* =========================================================================
   SINGLE-PAGE ANCHOR SECTIONS
   ========================================================================= */

/* Anchor offset so the sticky header doesn't cover the heading when jumping. */
.anchor-section {
  scroll-margin-top: 100px;
  padding: clamp(4rem, 7vw, 6.5rem) 0 clamp(3rem, 5vw, 4.5rem);
  border-top: 1px solid var(--rule);
}
.anchor-section.activities-section { padding-bottom: clamp(3rem, 5vw, 4rem); }

.section-banner {
  display: grid;
  grid-template-columns: 0.4fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: end;
  padding-bottom: clamp(3rem, 5vw, 4rem);
  margin-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--rule);
}
.section-banner-meta {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  grid-column: 1;
}
.section-banner-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  letter-spacing: -0.035em;
  font-variation-settings: 'opsz' 144, 'SOFT' 30, 'wght' 450;
  line-height: 1;
  margin: 0;
  grid-column: 2;
}
.section-banner-intro {
  grid-column: 2;
  max-width: 64ch;
  margin: 1.5rem 0 0;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink-soft);
}

@media (max-width: 760px) {
  .section-banner { grid-template-columns: 1fr; gap: 1rem; }
  .section-banner-meta,
  .section-banner-title,
  .section-banner-intro { grid-column: 1; }
}

/* Active-section highlight in nav (set via JS) */
.primary-nav a.is-current,
.primary-nav a[aria-current="true"] {
  position: relative;
}
