:root {
  --ink: #18211d;
  --ink-2: #303b35;
  --paper: #f6f3ed;
  --paper-2: #ebe5da;
  --white: #ffffff;
  --sage: #667764;
  --sage-2: #dfe7d7;
  --sage-3: #f0f4ec;
  --clay: #a86f55;
  --sand: #cdbda7;
  --mist: #eef0eb;
  --muted: #6d756f;
  --line: rgba(24, 33, 29, .12);
  --line-strong: rgba(24, 33, 29, .2);
  --shadow: 0 14px 36px rgba(24, 33, 29, .08);
  --shadow-soft: 0 8px 22px rgba(24, 33, 29, .05);
  --radius: 22px;

  /* aliases kept for the existing markup */
  --violet: var(--sage);
  --coral: var(--clay);
  --lime: var(--sage-2);
  --aqua: var(--sage);
  --gold: var(--sand);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #f8f6f1 0%, #fbfaf8 100%);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.72; }
p + p { margin-top: 16px; }
h1, h2, h3 { margin: 0; letter-spacing: -.052em; line-height: 1; color: var(--ink); }
h1 { font-size: clamp(36px, 5vw, 68px); line-height: 1.03; }
h2 { font-size: clamp(30px, 4vw, 52px); line-height: 1.06; }
h3 { font-size: clamp(22px, 2.5vw, 32px); }
.wrap { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }

.main-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(248, 246, 241, .92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 900; letter-spacing: .08em; }
.brand img { width: 46px; height: 46px; object-fit: contain; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 4px; box-shadow: var(--shadow-soft); }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  color: rgba(24, 33, 29, .68);
  font-size: 14px;
  font-weight: 800;
  padding: 11px 14px;
  border-radius: 999px;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}
.site-nav a:hover { color: var(--ink); background: rgba(102, 119, 100, .10); }
.site-nav a.current { background: var(--ink); color: var(--white); }
.nav-toggle { display: none; border: 1px solid var(--line); background: var(--white); color: var(--ink); border-radius: 999px; padding: 10px 14px; font-weight: 850; }
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .7);
  box-shadow: var(--shadow-soft);
}
.lang-option {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  letter-spacing: .02em;
}
.lang-option:hover { color: var(--ink); background: rgba(24, 33, 29, .06); }
.lang-option.is-active { background: var(--ink); color: var(--white); }
.lang-option:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.split-hero, .page-hero, .tournament-hero, .contact-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.split-hero::before, .page-hero::before, .tournament-hero::before, .contact-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(24,33,29,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24,33,29,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: .22;
}
.home-hero {
  background:
    radial-gradient(circle at 82% 18%, rgba(223,231,215,.78), transparent 28%),
    linear-gradient(135deg, #fbfaf6 0%, #eef0eb 52%, #dfe7d7 100%);
  color: var(--ink);
  padding: 72px 0 88px;
}
.hero-layout { display: grid; grid-template-columns: 1.02fr .98fr; gap: 48px; align-items: center; }
.hero-copy p, .page-hero p, .contact-hero p { max-width: 760px; color: var(--ink-2); font-size: clamp(17px, 1.8vw, 19px); font-weight: 450; }
.tournament-hero p { max-width: 760px; color: rgba(255,255,255,.86); font-size: clamp(17px, 1.8vw, 19px); font-weight: 450; }
.hero-copy h1, .page-hero h1, .contact-hero h1 { margin: 14px 0 20px; color: var(--ink); text-transform: none; }
.tournament-hero h1 { margin: 14px 0 20px; color: var(--white); text-transform: none; }
.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  border: 1px solid rgba(102, 119, 100, .24);
  border-radius: 999px;
  background: rgba(255,255,255,.58);
  color: var(--sage);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.eyebrow.dark { color: var(--sage); border-color: rgba(102, 119, 100, .25); background: rgba(102,119,100,.08); }
.impact-lanes .eyebrow.dark, .project-board .eyebrow.dark, .match-info .eyebrow.dark, .map-of-presence .eyebrow.dark { color: var(--sage-2); border-color: rgba(223,231,215,.26); background: rgba(255,255,255,.07); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.neo-button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: -.02em;
  border: 1px solid transparent;
  box-shadow: none;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.neo-button:hover { transform: translateY(-2px); }
.neo-button.primary { color: var(--white); background: var(--ink); border-color: var(--ink); }
.neo-button.ghost { color: var(--ink); background: rgba(255,255,255,.64); border-color: var(--line-strong); }
.neo-button.dark { color: var(--white); background: var(--ink); border-color: var(--ink); }
.tournament-hero .neo-button.ghost { color: var(--white); background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.3); }

.portrait-system { position: relative; min-height: 500px; display: flex; align-items: center; justify-content: center; }
.cutout-photo {
  margin: 0;
  position: relative;
  right: auto;
  top: auto;
  width: min(420px, 92%);
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  overflow: hidden;
  transform: none;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.cutout-photo img { width: 100%; height: 100%; object-fit: cover; }
.portrait-system::after { display: none; }
.signal-card { display: none; }

.identity-strip { margin-top: -18px; position: relative; z-index: 5; }
.identity-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.identity-grid article { min-height: 132px; padding: 22px; border-right: 1px solid var(--line); color: var(--ink); background: rgba(255,255,255,.96); }
.identity-grid article:nth-child(2), .identity-grid article:nth-child(3), .identity-grid article:nth-child(4) { background: var(--white); color: var(--ink); }
.identity-grid article:nth-child(4) { background: var(--sage-3); }
.identity-grid span { display: block; margin-bottom: 18px; font-size: 12px; font-weight: 950; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.identity-grid strong { font-size: clamp(20px, 2vw, 27px); line-height: 1.12; }

.editorial-section, .pillar-section, .origin-section, .identity-deep, .sport-section, .location-section, .gallery-page-section, .contact-section { padding: 88px 0; }
.two-column { display: grid; grid-template-columns: .92fr 1.08fr; gap: 42px; align-items: center; }
.angled-panel {
  min-height: 380px;
  border-radius: 34px;
  padding: 34px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  clip-path: none;
  border: 1px solid var(--line);
}
.color-block { background: linear-gradient(135deg, var(--sage-3), #f7f1e8); }
.panel-number { width: 66px; height: 66px; display: grid; place-items: center; border-radius: 22px; background: var(--ink); color: white; font-weight: 950; font-size: 26px; }
.angled-panel p { color: var(--ink-2); font-weight: 560; }
.text-stack h2 { margin: 16px 0 20px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.tag-cloud span { padding: 10px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--ink); font-size: 13px; font-weight: 800; }

.impact-lanes { padding: 88px 0; background: var(--ink); color: white; }
.section-intro { margin-bottom: 40px; max-width: 920px; }
.section-intro.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-intro.narrow { max-width: 760px; }
.section-intro h2 { margin-top: 16px; }
.section-intro p { margin-top: 18px; }
.section-intro.light h2, .section-intro.light p { color: white; }
.impact-lanes h2, .project-board h2, .match-info h2, .map-of-presence h2 { color: var(--white); }
.impact-lanes p, .project-board p, .match-info p, .map-of-presence p { color: rgba(255,255,255,.78); }
.lane-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.lane-grid article {
  min-height: 220px;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.13);
  background: rgba(255,255,255,.06);
}
.lane-grid article:nth-child(2), .lane-grid article:nth-child(3) { background: rgba(255,255,255,.08); }
.lane-grid span { display: block; margin-bottom: 36px; color: var(--sage-2); font-size: 24px; font-weight: 950; }
.lane-grid p { color: rgba(255,255,255,.82); }

.page-hero {
  padding: 74px 0;
  background:
    radial-gradient(circle at 88% 12%, rgba(223,231,215,.78), transparent 26%),
    linear-gradient(135deg, #fbfaf6 0%, #eef0eb 55%, #e3ded2 100%);
}
.page-hero.compact { padding: 68px 0; }
.values-hero, .history-hero, .gallery-hero { background:
  radial-gradient(circle at 88% 12%, rgba(223,231,215,.76), transparent 26%),
  linear-gradient(135deg, #fbfaf6 0%, #eef0eb 55%, #e4dfd5 100%);
}
.page-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 46px; align-items: center; }
.index-panel {
  display: grid;
  gap: 14px;
  padding: 24px;
  border-radius: 30px;
  background: rgba(255,255,255,.68);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.index-panel a { padding: 18px 20px; border-radius: 20px; background: var(--white); color: var(--ink); border: 1px solid var(--line); font-weight: 900; }

.pillar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; border: 0; box-shadow: none; }
.pillar-grid article { min-height: 430px; padding: 30px; background: var(--white); border: 1px solid var(--line); border-radius: 30px; display: flex; flex-direction: column; box-shadow: var(--shadow-soft); }
.pillar-grid article:last-child { border-right: 1px solid var(--line); }
.pillar-grid article:nth-child(1) { background: var(--sage-3); }
.pillar-grid article:nth-child(2) { background: #f5eee7; color: var(--ink); }
.pillar-grid article:nth-child(2) p { color: var(--muted); }
.pillar-grid article:nth-child(3) { background: var(--white); color: var(--ink); }
.pillar-grid article:nth-child(3) p { color: var(--muted); }
.pillar-grid b { font-size: 66px; line-height: .9; margin-bottom: auto; letter-spacing: -.08em; color: var(--sage); }
.pillar-grid h3 { margin: 48px 0 14px; }
.project-board, .match-info, .map-of-presence { padding: 88px 0; background: var(--ink); color: white; }
.project-list { display: grid; gap: 18px; }
.project-list article { display: grid; grid-template-columns: 120px 1fr; gap: 28px; align-items: start; padding: 28px; border-radius: 30px; background: rgba(255,255,255,.96); color: var(--ink); border: 1px solid rgba(255,255,255,.12); }
.project-list article p { color: var(--muted); }
.project-list span { width: 82px; height: 82px; display: grid; place-items: center; border-radius: 24px; background: var(--sage-2); color: var(--ink); font-size: 30px; font-weight: 950; }
.project-list h3 { margin-bottom: 12px; color: var(--ink); }

.brief-board { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.brief-board div { padding: 22px; border-radius: 24px; background: var(--white); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.brief-board span { display: block; margin-bottom: 10px; color: var(--muted); font-size: 12px; font-weight: 950; text-transform: uppercase; letter-spacing: .1em; }
.brief-board strong { font-size: 24px; line-height: 1.12; }
.origin-grid { display: grid; grid-template-columns: 1fr .82fr; gap: 34px; align-items: stretch; }
.origin-card, .identity-deep .focus-grid article { padding: 36px; border: 1px solid var(--line); border-radius: 30px; background: var(--white); box-shadow: var(--shadow-soft); }
.origin-card h2 { margin: 16px 0 20px; }
.origin-grid blockquote { margin: 0; padding: 40px; border-radius: 30px; background: linear-gradient(135deg, var(--ink), #2d3a33); color: white; display: flex; flex-direction: column; justify-content: space-between; box-shadow: var(--shadow-soft); }
.origin-grid blockquote span { font-size: 13px; font-weight: 950; letter-spacing: .1em; text-transform: uppercase; opacity: .76; }
.origin-grid blockquote p { margin-top: 64px; color: white; font-size: 26px; line-height: 1.32; font-weight: 800; }
.horizontal-timeline { padding: 88px 0; background: var(--mist); }
.timeline-row { display: grid; grid-template-columns: repeat(4, minmax(240px, 1fr)); gap: 18px; }
.timeline-row article { position: relative; min-height: 400px; padding: 28px; border-radius: 30px; background: white; border: 1px solid var(--line); box-shadow: var(--shadow-soft); overflow: hidden; }
.timeline-row article::before { content: ""; position: absolute; top: 0; left: 0; height: 6px; width: 100%; background: linear-gradient(90deg, var(--sage), var(--sand)); }
.timeline-row span { font-size: 56px; font-weight: 950; letter-spacing: -.08em; color: var(--sage); }
.timeline-row small { display: block; margin: 8px 0 18px; color: var(--clay); font-weight: 950; text-transform: uppercase; }
.timeline-row h3 { margin-bottom: 16px; font-size: 27px; }
.focus-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.focus-grid h3 { margin-bottom: 16px; }
.country-wall { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.country-wall div { min-height: 170px; padding: 24px; border: 1px solid rgba(255,255,255,.12); border-radius: 30px; background: rgba(255,255,255,.07); display: flex; flex-direction: column; justify-content: space-between; }
.country-wall span { color: var(--sage-2); font-size: 12px; font-weight: 950; letter-spacing: .12em; }
.country-wall strong { color: white; font-size: 30px; line-height: 1.08; }

.tournament-hero {
  padding: 78px 0 92px;
  background:
    linear-gradient(rgba(24,33,29,.73), rgba(24,33,29,.82)),
    url("assets/fotos/foto-10.jpg") center / cover;
  color: white;
}
.tournament-layout { display: grid; grid-template-columns: 1fr .98fr; gap: 44px; align-items: center; }
.score-title h1 { margin: 18px 0 24px; }
.photo-stack { position: relative; min-height: 520px; }
.photo-stack img { position: absolute; width: 58%; aspect-ratio: 4 / 3; object-fit: cover; border: 6px solid rgba(255,255,255,.86); box-shadow: var(--shadow); border-radius: 26px; }
.photo-stack img:nth-child(1) { left: 2%; top: 4%; transform: rotate(-3deg); }
.photo-stack img:nth-child(2) { right: 0; top: 30%; transform: rotate(2deg); }
.photo-stack img:nth-child(3) { left: 16%; bottom: 0; transform: rotate(-1deg); }
.scoreboard { margin-top: -46px; position: relative; z-index: 4; }
.score-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-radius: 30px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.score-grid article { min-height: 148px; padding: 24px; background: var(--white); border-right: 1px solid var(--line); color: var(--ink); }
.score-grid article:nth-child(2) { background: var(--sage-3); }
.score-grid article:nth-child(3) { background: #f6efe8; color: var(--ink); }
.score-grid article:nth-child(4) { background: var(--ink); color: white; border-right: 0; }
.score-grid span { display: block; margin-bottom: 16px; font-size: 12px; font-weight: 950; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
.score-grid strong { font-size: 24px; line-height: 1.12; }
.sport-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sport-cards article { padding: 32px; border-radius: 30px; border: 1px solid var(--line); background: white; box-shadow: var(--shadow-soft); }
.sport-cards span { display: block; color: var(--sage); font-size: 52px; font-weight: 950; letter-spacing: -.08em; margin-bottom: 60px; }
.sport-cards h3 { margin-bottom: 14px; }
.match-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; }
.match-grid article { padding: 34px; border-radius: 30px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); }
.match-grid h2 { margin-bottom: 22px; color: white; }
.match-grid p { color: rgba(255,255,255,.78); }
dl { margin: 0; display: grid; gap: 12px; }
dl div { display: grid; grid-template-columns: 145px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
dt { color: var(--sage-2); font-weight: 950; text-transform: uppercase; font-size: 12px; letter-spacing: .1em; }
dd { margin: 0; color: white; font-weight: 750; }
.location-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 34px; align-items: stretch; }
.location-grid h2 { margin: 16px 0 18px; }
.location-facts { display: grid; gap: 12px; margin: 24px 0; }
.location-facts div, .channel-list article { padding: 18px; border-radius: 20px; background: white; border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.location-facts span, .channel-list span { display: block; margin-bottom: 8px; color: var(--muted); font-size: 12px; font-weight: 950; text-transform: uppercase; letter-spacing: .1em; }
.location-facts strong, .channel-list strong { font-size: 20px; line-height: 1.15; }
.map-frame { min-height: 520px; border-radius: 30px; overflow: hidden; border: 8px solid white; box-shadow: var(--shadow-soft); background: #dbe3ea; }
.map-frame.tall { min-height: 690px; }
.map-frame iframe { width: 100%; height: 100%; min-height: inherit; border: 0; display: block; }
.tournament-gallery { padding: 88px 0; background: var(--mist); }
.mosaic { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 145px; gap: 14px; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: 24px; box-shadow: 0 14px 34px rgba(24,33,29,.10); }
.mosaic img:nth-child(1) { grid-column: span 3; grid-row: span 2; }
.mosaic img:nth-child(2) { grid-column: span 3; grid-row: span 2; }
.mosaic img:nth-child(n+3) { grid-column: span 2; grid-row: span 2; }

.mini-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; transform: none; }
.mini-gallery img { width: 100%; height: 230px; object-fit: cover; object-position: center; border: 6px solid white; border-radius: 24px; box-shadow: var(--shadow-soft); background: var(--paper-2); }
 .mini-gallery img:nth-child(1) { grid-row: span 2; height: 100%; }
 .bento-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
 .bento-gallery figure { margin: 0; overflow: hidden; border-radius: 26px; box-shadow: 0 16px 42px rgba(24,33,29,.12); background: var(--paper-2); aspect-ratio: 4 / 3; }
 .bento-gallery img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .45s ease; background: var(--paper-2); display: block; }
.gallery-slider {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: var(--paper-2);
  box-shadow: 0 18px 48px rgba(24,33,29,.10);
  max-width: 860px;
  width: min(100%, 860px);
  margin: 0 auto 24px;
}
.slider-track {
  position: relative;
  width: 100%;
  min-height: 460px;
}
.slider-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
  display: grid;
  place-items: center;
}
.slider-slide.active {
  opacity: 1;
  pointer-events: auto;
}
.slider-slide img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  object-position: center;
  display: block;
}
.slider-controls {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  pointer-events: none;
}
.slider-button {
  pointer-events: auto;
  border: 1px solid rgba(24,33,29,.12);
  background: rgba(255,255,255,.92);
  color: var(--ink);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: transform .2s ease, background .2s ease, opacity .2s ease;
}
.slider-button:hover {
  transform: scale(1.05);
  background: rgba(255,255,255,1);
}
.slider-button:disabled {
  opacity: .38;
  cursor: not-allowed;
}

.gallery-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(17,21,19,.72);
  backdrop-filter: blur(10px);
  z-index: 120;
}
.gallery-modal.is-open {
  display: flex;
}
.gallery-modal__container {
  position: relative;
  width: min(100%, 920px);
  max-width: 920px;
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255,255,255,.96);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.35);
}
.gallery-modal__view {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 460px;
  background: #111;
}
.gallery-modal__image {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  display: block;
}
.gallery-modal__nav,
.gallery-modal__close {
  border: none;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.gallery-modal__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(0,0,0,.40);
  color: white;
  font-size: 26px;
  line-height: 1;
  z-index: 2;
}
.gallery-modal__nav.prev { left: 16px; }
.gallery-modal__nav.next { right: 16px; }
.gallery-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  color: var(--ink);
  font-size: 28px;
  z-index: 3;
}
.gallery-modal__footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px 20px 20px;
  background: rgba(255,255,255,.96);
  color: var(--ink);
  font-size: 15px;
}
.gallery-modal__caption {
  color: var(--muted);
}
.gallery-modal__nav:disabled,
.gallery-modal__close:disabled {
  opacity: .38;
  cursor: not-allowed;
}
@media (max-width: 720px) {
  .gallery-slider { border-radius: 22px; }
  .slider-button { width: 40px; height: 40px; }
  .slider-slide img { height: 320px; }
  .gallery-modal__container { width: min(100%, 100%); }
  .gallery-modal__view { min-height: 320px; }
  .gallery-modal__nav { width: 42px; height: 42px; }
}

.gallery-section-header {  
  font-size: clamp(22px, 3vw, 36px); 
  font-weight: 850; 
  color: var(--ink); 
  margin: 52px 0 24px 0; 
  letter-spacing: -.04em; 
  border-bottom: 3px solid var(--sage-2); 
  padding-bottom: 16px; 
  display: block;
}

.contact-hero { padding: 74px 0; background:
  radial-gradient(circle at 84% 16%, rgba(223,231,215,.8), transparent 26%),
  linear-gradient(135deg, #fbfaf6 0%, #eef0eb 55%, #e4dfd5 100%); color: var(--ink); }
.contact-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.contact-ticket { padding: 34px; border-radius: 30px; background: var(--white); color: var(--ink); box-shadow: var(--shadow-soft); border: 1px solid var(--line); transform: none; }
.contact-ticket span { display: block; margin-bottom: 20px; font-size: 12px; font-weight: 950; letter-spacing: .12em; text-transform: uppercase; color: var(--sage); }
.contact-ticket strong { display: block; font-size: clamp(28px, 4vw, 48px); line-height: 1; margin-bottom: 24px; letter-spacing: -.05em; }
.contact-ticket a { font-size: 23px; font-weight: 900; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.contact-grid { display: grid; grid-template-columns: .88fr 1.12fr; gap: 34px; align-items: stretch; }
.channel-list { display: grid; gap: 12px; }
.channel-list a { text-decoration: underline; text-underline-offset: 4px; }

.terminal-footer { padding: 42px 0; background: #202722; color: white; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.footer-brand-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; color: white; font-weight: 950; letter-spacing: .08em; }
.footer-brand img { width: 44px; height: 44px; object-fit: contain; background: white; padding: 4px; border-radius: 16px; }
.terminal-footer p { color: rgba(255,255,255,.7); max-width: 620px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.footer-links a { padding: 10px 13px; border-radius: 999px; border: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.82); font-weight: 800; }
.footer-social { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-social a { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.08); color: rgba(255,255,255,.92); font-size: 18px; transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease; }
.footer-social a:hover { transform: translateY(-2px); background: rgba(255,255,255,.16); color: white; border-color: rgba(255,255,255,.28); }
.footer-social img { width: 20px; height: 20px; object-fit: contain; display: block; border-radius: 4px; }

[data-animate] { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
[data-animate].is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1000px) {
  .header-inner { align-items: flex-start; flex-direction: column; padding: 14px 0; }
  .nav-toggle { display: inline-flex; margin-left: auto; position: absolute; right: 20px; top: 18px; }
  .site-nav { width: 100%; display: none; flex-wrap: wrap; padding-top: 8px; }
  .site-nav.is-open { display: flex; }
  .lang-switch { align-self: flex-start; }
  .hero-layout, .page-hero-grid, .tournament-layout, .contact-layout, .two-column, .origin-grid, .match-grid, .location-grid, .contact-grid { grid-template-columns: 1fr; }
  .reverse-mobile .angled-panel { order: 2; }
  .portrait-system { min-height: 560px; }
  .identity-grid, .score-grid { grid-template-columns: 1fr 1fr; }
  .pillar-grid { grid-template-columns: 1fr 1fr; }
  .pillar-grid article:nth-child(2) { border-right: 1px solid var(--line); }
  .pillar-grid article:nth-child(3), .pillar-grid article:nth-child(4) { border-top: 1px solid var(--line); }
  .lane-grid, .focus-grid, .sport-cards, .country-wall { grid-template-columns: 1fr; }
  .timeline-row { overflow-x: auto; grid-auto-flow: column; grid-auto-columns: minmax(280px, 78vw); grid-template-columns: none; padding-bottom: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 680px) {
  .wrap { width: min(100% - 28px, 1180px); }
  h1 { font-size: clamp(30px, 9vw, 44px); }
  h2 { font-size: clamp(26px, 8vw, 38px); }
  p { font-size: 16px; }
  .home-hero, .page-hero, .tournament-hero, .contact-hero { padding: 52px 0 62px; }
  .editorial-section, .pillar-section, .origin-section, .identity-deep, .sport-section, .location-section, .gallery-page-section, .contact-section, .impact-lanes, .project-board, .match-info, .map-of-presence, .horizontal-timeline, .tournament-gallery { padding: 70px 0; }
  .hero-actions { flex-direction: column; }
  .neo-button { width: 100%; }
  .portrait-system { min-height: 360px; }
  .cutout-photo { width: min(340px, 88%); border-radius: 22px; }
  .portrait-system::after { display: none; }


/* refinements for cleaner minimal presentation */
.hero-copy { max-width: 620px; }
.site-nav a { font-weight: 700; }
.neo-button { padding: 15px 22px; font-size: 14px; border-radius: 999px; }
.identity-grid strong { font-size: clamp(18px, 1.6vw, 23px); }
.angled-panel, .origin-card, .identity-grid, .project-list article, .pillar-grid article, .match-grid article, .location-facts div, .channel-list article, .contact-ticket, .index-panel, .brief-board div { box-shadow: var(--shadow-soft); }
.impact-lanes, .project-board, .match-info, .map-of-presence { background: #202722; }
.lane-grid article, .country-wall div { background: rgba(255,255,255,.05); }
}