/* ==========================================================================
   PDC — Paraguay Data Center Company
   Shared stylesheet
   ========================================================================== */

/* Self-hosted variable fonts: no third-party request, no render-blocking
   round trip, and full Latin-Extended coverage for Spanish and Guaraní. */
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-var.woff2') format('woff2-variations'),
       url('fonts/inter-var.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('fonts/space-grotesk-var.woff2') format('woff2-variations'),
       url('fonts/space-grotesk-var.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --charcoal:    #121212;
  --near-black:  #0a0a0a;
  --off-white:   #f7f6f3;
  --warm-stone:  #c9bba8;
  --soft-clay:   #e8e0d5;
  --red:         #C8102E;
  --red-dark:    #a50d26;
  --blue:        #003DA5;
  --blue-soft:   #1a4fbf;
  --gray-700:    #575757;
  --gray-600:    #636363;
  --gray-400:    #9a9a9a;
  --gray-200:    #e5e5e5;
  --ivory:       #f5f2eb;

  --nav-h: 76px;
  --maxw: 1280px;
  --gutter: 2rem;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  /* anchors clear the fixed navbar */
  scroll-padding-top: calc(var(--nav-h) + 1.5rem);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--off-white);
  color: var(--charcoal);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-wrap: balance;
}

p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--red); color: #fff; padding: 0.75rem 1.25rem;
  font-weight: 600; border-radius: 0 0 4px 0;
}
.skip-link:focus { left: 0; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: 860px; margin: 0 auto; padding: 0 var(--gutter); }
section { padding: 6.5rem 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   Ñandutí motif — the lace geometry, finally put to work
   -------------------------------------------------------------------------- */

/* The lace SVGs are drawn with currentColor, which an external file referenced
   as a background-image cannot inherit — so these are masked instead, and the
   colour comes from background-color. One asset, either ink. */

.lace-field {
  position: absolute; inset: 0;
  background-color: var(--charcoal);
  opacity: 0.05;
  pointer-events: none;
  -webkit-mask: url("nanduti-tile.svg") 0 0 / 164px 164px repeat;
          mask: url("nanduti-tile.svg") 0 0 / 164px 164px repeat;
}
/* white-on-black carries more perceptual weight than black-on-white,
   so the light variant sits lower */
.lace-field--light { background-color: #fff; opacity: 0.03; }

/* Large radial medallion, used as a hero / banner accent */
.lace-medallion {
  position: absolute;
  width: min(58vw, 700px);
  aspect-ratio: 1;
  background-color: #fff;
  opacity: 0.13;
  pointer-events: none;
  -webkit-mask-image: url("nanduti-medallion.svg"), radial-gradient(circle at center, #000 42%, transparent 72%);
          mask-image: url("nanduti-medallion.svg"), radial-gradient(circle at center, #000 42%, transparent 72%);
  -webkit-mask-size: contain, cover;
          mask-size: contain, cover;
  -webkit-mask-position: center, center;
          mask-position: center, center;
  -webkit-mask-repeat: no-repeat, no-repeat;
          mask-repeat: no-repeat, no-repeat;
  -webkit-mask-composite: source-in;
          mask-composite: intersect;
}

/* Thin woven rule used between sections */
.lace-rule {
  height: 56px;
  max-width: var(--maxw);
  margin: 0 auto;
  background-color: var(--charcoal);
  opacity: 0.14;
  -webkit-mask: url("nanduti-tile.svg") center / 56px 56px repeat-x,
                linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
          mask: url("nanduti-tile.svg") center / 56px 56px repeat-x,
                linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
  -webkit-mask-composite: source-in;
          mask-composite: intersect;
}

/* --------------------------------------------------------------------------
   Navigation — tab bar
   -------------------------------------------------------------------------- */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter);
  height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { height: 38px; width: auto; }

.nav-right { display: flex; align-items: center; gap: 1.5rem; }

/* the tabs */
.tabs { display: flex; align-items: center; gap: 0.35rem; }
.tab {
  position: relative;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.875rem; font-weight: 500;
  padding: 0.55rem 0.9rem;
  border-radius: 4px;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
  white-space: nowrap;
}
.tab::after {
  content: ''; position: absolute;
  left: 0.9rem; right: 0.9rem; bottom: 0.15rem; height: 2px;
  background: var(--red);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.28s var(--ease);
}
.tab:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
.tab:hover::after { transform: scaleX(1); }
.tab[aria-current="page"] { color: #fff; font-weight: 600; }
.tab[aria-current="page"]::after { transform: scaleX(1); }

.nav-cta {
  background: var(--red); color: #fff !important;
  padding: 0.58rem 1.2rem; border-radius: 4px; font-weight: 600; font-size: 0.875rem;
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
  white-space: nowrap;
}
.nav-cta:hover { background: var(--red-dark); transform: translateY(-1px); }
.nav-cta::after { display: none; }

/* language switch */
.lang {
  display: flex; align-items: center; gap: 0.15rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px; padding: 0.15rem; flex-shrink: 0;
}
.lang a {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.6);
  padding: 0.28rem 0.5rem; border-radius: 3px;
  transition: all 0.2s var(--ease);
}
.lang a:hover { color: #fff; }
.lang a[aria-current="true"] { background: rgba(255, 255, 255, 0.14); color: #fff; }

.mobile-toggle {
  display: none; background: none; border: none; color: #fff;
  cursor: pointer; padding: 0.5rem; margin-right: -0.5rem; line-height: 0;
}
.mobile-toggle svg { width: 26px; height: 26px; }
.mobile-toggle .icon-close { display: none; }
.mobile-toggle[aria-expanded="true"] .icon-open { display: none; }
.mobile-toggle[aria-expanded="true"] .icon-close { display: block; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.9rem 1.75rem;
  font-family: inherit; font-size: 0.95rem; font-weight: 600;
  border-radius: 4px; border: none; cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, 0.34); }
.btn-secondary:hover { border-color: #fff; background: rgba(255, 255, 255, 0.07); }
.btn-dark { background: var(--charcoal); color: #fff; }
.btn-dark:hover { background: #000; transform: translateY(-1px); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none !important; }

/* --------------------------------------------------------------------------
   Hero (home) + page banner (interior tabs)
   -------------------------------------------------------------------------- */

.hero {
  min-height: 100svh;
  background: var(--near-black); color: #fff;
  position: relative; display: flex; align-items: center; overflow: hidden;
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
/* The flyover footage is bright, so the scrim has to carry real weight for the
   headline, sub-copy and stat row to stay legible. */
.hero-bg {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(100deg, rgba(6,6,8,0.95) 0%, rgba(6,6,8,0.82) 34%, rgba(6,6,8,0.5) 62%, rgba(0,32,86,0.45) 100%),
    linear-gradient(0deg, rgba(6,6,8,0.88) 0%, rgba(6,6,8,0.4) 30%, transparent 56%),
    radial-gradient(ellipse at 78% 30%, rgba(200,16,46,0.14) 0%, transparent 55%);
}
.hero .lace-medallion { top: -6%; right: -12%; z-index: 2; opacity: 0.1; }

.hero-content {
  position: relative; z-index: 3;
  max-width: var(--maxw); margin: 0 auto;
  padding: calc(var(--nav-h) + 4rem) var(--gutter) 4.5rem; width: 100%;
}
.hero h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.25rem); font-weight: 700;
  max-width: 920px; margin-bottom: 1.5rem; color: #fff;
}
.hero h1 .accent { color: var(--red); }
.hero-sub {
  font-size: 1.18rem; color: rgba(255, 255, 255, 0.8);
  max-width: 580px; margin-bottom: 2.75rem; line-height: 1.65;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--warm-stone); margin-bottom: 1.6rem;
}
.eyebrow::before { content: ''; width: 28px; height: 1.5px; background: var(--red); flex-shrink: 0; }

.hero-stats {
  display: flex; gap: 3rem; flex-wrap: wrap;
  margin-top: 4.5rem; padding-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}
.stat { min-width: 140px; }
.stat-value {
  font-family: 'Space Grotesk', sans-serif; font-size: 1.9rem; font-weight: 600;
  color: #fff; margin-bottom: 0.25rem; font-variant-numeric: tabular-nums;
}
.stat-label { font-size: 0.8rem; color: rgba(255, 255, 255, 0.58); letter-spacing: 0.03em; }


/* interior page banner — compact, keeps each tab distinct without a full hero.
   Slightly lifted off pure black so a dark section beneath it reads as separate. */
.banner {
  background:
    radial-gradient(ellipse at 82% 12%, rgba(0,61,165,0.22) 0%, transparent 58%),
    linear-gradient(175deg, #17171a 0%, #101012 62%, var(--near-black) 100%);
  color: #fff;
  position: relative; overflow: hidden;
  padding: calc(var(--nav-h) + 4.5rem) 0 4.5rem;
}
.banner .lace-medallion { top: -46%; right: -8%; opacity: 0.14; }
.banner::after {
  content: ''; position: absolute; inset: auto 0 0 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200,16,46,0.5), rgba(0,61,165,0.5), transparent);
}
.banner-inner { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.banner h1 { font-size: clamp(2.2rem, 4.4vw, 3.35rem); color: #fff; max-width: 900px; margin-bottom: 1.25rem; }
/* Scoped to a class, not `.banner p` — an element selector here outranks every
   class-only rule inside the banner (eyebrow, creed) and silently overrode them. */
.banner-lead { font-size: 1.12rem; color: rgba(255, 255, 255, 0.7); max-width: 640px; line-height: 1.65; }

/* --------------------------------------------------------------------------
   Section headings
   -------------------------------------------------------------------------- */

.section-label {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--red); margin-bottom: 1rem;
}
.section-title { font-size: clamp(1.9rem, 3.5vw, 2.65rem); margin-bottom: 1.25rem; max-width: 760px; }
.section-lead {
  font-size: 1.1rem; color: var(--gray-600); max-width: 660px;
  margin-bottom: 3rem; line-height: 1.7;
}

.on-dark { background: var(--near-black); color: #fff; position: relative; overflow: hidden; }
.on-dark .section-label { color: var(--warm-stone); }
.on-dark .section-title, .on-dark h3, .on-dark h4 { color: #fff; }
.on-dark .section-lead { color: rgba(255, 255, 255, 0.68); }
.on-dark .container, .on-dark .container-narrow { position: relative; z-index: 2; }

/* --------------------------------------------------------------------------
   Cards / grids
   -------------------------------------------------------------------------- */

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: 1.5rem; }

.card {
  background: var(--off-white);
  border: 1px solid var(--gray-200); border-radius: 8px;
  padding: 2rem 1.75rem;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
/* lace reveals softly on hover — the motif as interaction, not decoration */
.card .lace-field { opacity: 0; transition: opacity 0.35s var(--ease); }
.card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 100%;
  background: var(--blue); opacity: 0; transition: opacity 0.25s var(--ease);
}
.card:hover { border-color: rgba(0, 61, 165, 0.24); box-shadow: 0 14px 36px rgba(0, 0, 0, 0.07); transform: translateY(-2px); }
.card:hover::before { opacity: 1; }
.card:hover .lace-field { opacity: 0.05; }
.card > * { position: relative; z-index: 1; }
.card-icon { width: 42px; height: 42px; margin-bottom: 1.25rem; color: var(--blue); }
.card h3 { font-size: 1.15rem; margin-bottom: 0.65rem; }
.card p { font-size: 0.95rem; color: var(--gray-600); line-height: 1.6; }

.card-white { background: #fff; }
.card-more { margin-top: auto; padding-top: 1.4rem; color: var(--blue); font-weight: 600; font-size: 0.88rem; }

/* two-column feature grid */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

.feature {
  background: #fff; padding: 2rem; border-radius: 8px; border: 1px solid var(--gray-200);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.feature:hover { border-color: rgba(0, 61, 165, 0.22); transform: translateY(-2px); }
.feature h3 { font-size: 1.15rem; margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.6rem; }
.feature h3 .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); flex-shrink: 0; }
.feature p { color: var(--gray-600); font-size: 0.95rem; }

/* numbered mission points */
.points { display: grid; grid-template-columns: 1fr 1fr; gap: 2.75rem; margin-top: 3rem; }
.point { display: flex; gap: 1.25rem; }
.point-num {
  font-family: 'Space Grotesk', sans-serif; font-size: 1.5rem; font-weight: 600;
  color: var(--red); min-width: 2rem; line-height: 1.2;
}
.point h4 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.point p { font-size: 0.95rem; color: rgba(255, 255, 255, 0.62); line-height: 1.6; }

/* --------------------------------------------------------------------------
   Media
   -------------------------------------------------------------------------- */

.media {
  border-radius: 12px; overflow: hidden; background: #111;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}
.media video, .media img { width: 100%; height: auto; display: block; }

/* --- video pause control -------------------------------------------------
   Auto-playing motion needs a way to stop it (WCAG 2.2.2). Subtle at rest,
   clear on hover or keyboard focus, and unmissable if autoplay was refused. */
.has-video { position: relative; }

.video-toggle {
  position: absolute; right: 0.85rem; bottom: 0.85rem; z-index: 3;
  width: 38px; height: 38px; padding: 0;
  display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.55);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: #fff; cursor: pointer;
  opacity: 0; transform: translateY(4px);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease),
              background-color 0.22s var(--ease), border-color 0.22s var(--ease);
}
.video-toggle svg { width: 17px; height: 17px; fill: currentColor; }
.video-toggle .i-play { margin-left: 2px; }

.has-video:hover .video-toggle,
.video-toggle:focus-visible { opacity: 1; transform: none; }
.video-toggle:hover { background: rgba(10, 10, 10, 0.8); border-color: rgba(255, 255, 255, 0.55); }

/* paused by the viewer: keep the control visible so it can be resumed */
.has-video.is-paused .video-toggle { opacity: 1; transform: none; }
.has-video .i-play { display: none; }
.has-video.is-paused .i-pause { display: none; }
.has-video.is-paused .i-play { display: block; }

/* autoplay refused by the browser — make the affordance obvious */
.has-video.is-blocked .video-toggle {
  opacity: 1; transform: none;
  inset: 50% auto auto 50%; translate: -50% -50%;
  width: 66px; height: 66px;
  background: rgba(200, 16, 46, 0.92); border-color: transparent;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.has-video.is-blocked .video-toggle svg { width: 27px; height: 27px; }

/* touch devices have no hover, so keep it gently visible */
@media (hover: none) {
  .video-toggle { opacity: 0.75; transform: none; }
}

/* the hero control stays in its corner even when autoplay is refused —
   a 66px button centred over the headline would be worse than the problem */
.video-toggle--hero { right: 1.5rem; bottom: 1.5rem; z-index: 4; }
.hero.is-blocked .video-toggle--hero,
.hero.is-paused .video-toggle--hero {
  inset: auto 1.5rem 1.5rem auto; translate: none;
  width: 38px; height: 38px;
  background: rgba(10, 10, 10, 0.55); border-color: rgba(255, 255, 255, 0.28);
  box-shadow: none;
}
.hero.is-blocked .video-toggle--hero svg { width: 17px; height: 17px; }
@media (max-width: 600px) { .video-toggle--hero { right: 1rem; bottom: 1rem; } }
.media-caption { font-size: 0.82rem; color: var(--gray-600); margin-top: 0.75rem; font-style: italic; }
.on-dark .media-caption { color: rgba(255, 255, 255, 0.48); }

.photo-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.photo-row .media { height: 280px; }
.photo-row img { width: 100%; height: 100%; object-fit: cover; }

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 2.5rem; align-items: start; }
.split-center { align-items: center; }

/* Both columns share a height and the video fills its half, so the clip and
   the diagram beside it line up as one band on desktop. */
.split--match { align-items: stretch; }
.split--match > * { min-width: 0; display: flex; flex-direction: column; }
.split--match .media,
.split--match .stack { height: 100%; flex: 1; }
/* `contain`, not `cover`: the facility clip carries readable callout labels and
   a cover-crop cut them off at viewport widths where the diagram beside it runs
   taller. The boxes still match height; the video just letterboxes inside its
   own black, which is invisible against the clip's black background. */
.split--match .media { background: #000; }
.split--match .media video { height: 100%; width: 100%; object-fit: contain; }
.split--match .stack { display: flex; flex-direction: column; justify-content: center; }

/* responsibility stack diagram */
.stack {
  background: var(--near-black); border-radius: 12px; padding: 2.25rem 2rem;
  color: #fff; position: relative; overflow: hidden;
}
.stack::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.055) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.055) 1px, transparent 1px);
  background-size: 40px 40px;
}
.stack > * { position: relative; z-index: 1; }
.stack-label {
  font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45); margin-bottom: 0.85rem;
}
.stack-layer {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.9rem 1.1rem; margin-bottom: 0.55rem; border-radius: 6px;
  font-size: 0.9rem; font-weight: 500; border: 1px solid rgba(255, 255, 255, 0.09);
}
.stack-layer:last-child { margin-bottom: 0; }
.stack-layer.utility { background: rgba(0, 61, 165, 0.26); border-color: rgba(0, 61, 165, 0.36); }
.stack-layer.pdc     { background: rgba(200, 16, 46, 0.23); border-color: rgba(200, 16, 46, 0.42); }
.stack-layer.tenant  { background: rgba(255, 255, 255, 0.07); }
.stack-layer.fiber   { background: rgba(201, 187, 168, 0.15); border-color: rgba(201, 187, 168, 0.34); }
.stack-note { margin-top: 1.5rem; font-size: 0.85rem; color: rgba(255, 255, 255, 0.58); line-height: 1.55; }

/* pull-quote / note block */
.note {
  padding: 1.75rem 2rem; background: #fff;
  border-left: 3px solid var(--red); border-radius: 0 8px 8px 0;
  font-size: 0.98rem; color: var(--gray-600);
}
.note strong { color: var(--charcoal); }

/* --------------------------------------------------------------------------
   Ñande reko — the creed band
   -------------------------------------------------------------------------- */

/* The Impact page opens on this: the section label, then the Guaraní phrase
   as the page's first statement, with the mission heading below it.
   Left-aligned, on the same rag as every other banner on the site. */
.banner--creed { padding: calc(var(--nav-h) + 4.5rem) 0 5rem; }

.mission-intro { background: var(--off-white); padding: 5rem 0 4.5rem; }
.page-title {
  font-size: clamp(2.1rem, 4.2vw, 3.1rem);
  max-width: 900px; margin-bottom: 1.4rem;
}

.creed { position: relative; z-index: 2; }
.creed-word {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.7rem, 7.5vw, 5.2rem);
  font-weight: 600; letter-spacing: -0.03em; line-height: 1;
  color: #fff; margin-bottom: 0.85rem;
}
.creed-gloss {
  font-size: clamp(1rem, 2vw, 1.2rem); font-style: italic;
  letter-spacing: 0.02em; color: var(--warm-stone); margin-bottom: 1.5rem;
}
/* one leading rule, not a pair — a symmetric frame only reads right centred */
.creed-gloss::before {
  content: ''; display: inline-block; vertical-align: middle;
  width: 34px; height: 1px; background: rgba(200, 16, 46, 0.75);
  margin-right: 0.9rem;
}
.creed-note {
  max-width: 620px;
  font-size: 0.98rem; line-height: 1.7; color: rgba(255, 255, 255, 0.68);
}

/* --------------------------------------------------------------------------
   Culture & Community — two visuals, one column of copy beside them
   -------------------------------------------------------------------------- */

.culture-band { background: var(--ivory); position: relative; }

/* The two artefacts sit side by side, each with its own description directly
   beneath it; the closing paragraphs run under both. Identical 16/10 frames
   keep the pair aligned even though the harp is a tall portrait drawing. */
.culture-pair {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2.75rem;
  margin-top: 2.5rem;
}
.culture-item { margin: 0; display: flex; flex-direction: column; }

.culture-frame {
  position: relative; border-radius: 12px; overflow: hidden;
  aspect-ratio: 16 / 10;
}
.culture-frame--media { background: #111; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.09); }
.culture-frame--media video { width: 100%; height: 100%; object-fit: cover; }
.culture-frame--harp {
  background: #fff; border: 1px solid var(--gray-200);
  display: grid; place-items: center;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.06);
}
.culture-frame--harp img { height: 84%; width: auto; max-width: 100%; mix-blend-mode: multiply; }

.culture-item figcaption { display: block; margin-top: 1.15rem; }
.culture-caption {
  display: block; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 0.55rem;
}
.culture-desc {
  display: block; color: var(--gray-700);
  font-size: 0.99rem; line-height: 1.72;
}

.culture-close {
  margin-top: 3.25rem; padding-top: 2.75rem;
  border-top: 1px solid rgba(201, 187, 168, 0.55);
  display: grid; grid-template-columns: 1fr 1fr; gap: 2.75rem;
}
.culture-close p { color: var(--gray-700); font-size: 0.99rem; line-height: 1.75; }

/* Infynara */
.parent-card {
  background: rgba(255, 255, 255, 0.045); border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 10px; padding: 2.5rem 2rem; text-align: center;
}
.parent-card h3 { font-size: 1.4rem; margin-bottom: 0.75rem; }
.parent-card p { font-size: 0.92rem; color: rgba(255, 255, 255, 0.58); line-height: 1.55; }
/* the parent brand's own wordmark, sitting where its name would otherwise be */
.parent-logo {
  width: min(230px, 74%); height: auto;
  margin: 0.25rem auto 1.5rem;
}
/* Was a dashed "Website in development" placeholder until infynara.com went
   live. Now a real link out to the parent company. */
.parent-link {
  display: inline-flex; align-items: center; gap: 0.55rem; margin-top: 1.75rem;
  padding: 0.75rem 1.5rem; border-radius: 4px;
  /* 0.38 alpha, not less: below ~0.34 the border falls under the 3:1 that
     WCAG 1.4.11 asks of a UI component boundary against this card. */
  border: 1px solid rgba(255, 255, 255, 0.38);
  color: rgba(255, 255, 255, 0.86); font-size: 0.87rem; font-weight: 600;
  letter-spacing: 0.01em; text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.parent-link svg { transition: transform 0.2s ease; }
.parent-link:hover, .parent-link:focus-visible {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}
.parent-link:hover svg, .parent-link:focus-visible svg { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) {
  .parent-link, .parent-link svg { transition: none; }
  .parent-link:hover svg, .parent-link:focus-visible svg { transform: none; }
}
.bullets { display: flex; flex-direction: column; gap: 1.1rem; margin-top: 1.75rem; }
.bullet { display: flex; gap: 0.85rem; align-items: flex-start; font-size: 0.95rem; color: rgba(255, 255, 255, 0.72); }
.bullet::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--red); margin-top: 0.56rem; flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.form { max-width: 720px; display: grid; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { display: block; font-size: 0.8rem; font-weight: 500; color: rgba(255, 255, 255, 0.72); margin-bottom: 0.4rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px; color: #fff;
  font-family: inherit; font-size: 0.95rem;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255, 255, 255, 0.5); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--red); background: rgba(255, 255, 255, 0.1);
}
.field textarea { min-height: 130px; resize: vertical; }
.field select {
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239a9a9a' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
}
.field select option { background: var(--near-black); color: #fff; }
.form-hp { position: absolute; left: -9999px; opacity: 0; height: 0; }

.form-status {
  display: none; padding: 1rem 1.25rem; border-radius: 6px; font-size: 0.93rem; line-height: 1.55;
}
.form-status[data-state="ok"] {
  display: block; background: rgba(0, 61, 165, 0.16);
  border: 1px solid rgba(120, 165, 255, 0.4); color: #dce7ff;
}
.form-status[data-state="error"] {
  display: block; background: rgba(200, 16, 46, 0.14);
  border: 1px solid rgba(200, 16, 46, 0.45); color: #ffd8de;
}

.contact-direct {
  max-width: 720px; margin-top: 2.5rem; padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem; color: rgba(255, 255, 255, 0.58); line-height: 1.8;
}
.contact-direct a { color: #fff; border-bottom: 1px solid rgba(255, 255, 255, 0.3); font-weight: 500; }
.contact-direct a:hover { border-bottom-color: #fff; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

footer { background: #050505; color: rgba(255, 255, 255, 0.52); padding: 3.5rem 0 2rem; font-size: 0.85rem; }
.footer-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter);
  display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 2.5rem;
}
.footer-brand { max-width: 310px; }
.footer-brand img { height: 40px; margin-bottom: 1rem; }
.footer-brand p { line-height: 1.55; }
.footer-parent {
  color: rgba(255, 255, 255, 0.78); text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.3); text-underline-offset: 3px;
  transition: color 0.2s var(--ease), text-decoration-color 0.2s var(--ease);
}
.footer-parent:hover, .footer-parent:focus-visible {
  color: #fff; text-decoration-color: rgba(255, 255, 255, 0.75);
}
.footer-links { display: flex; gap: 3.5rem; flex-wrap: wrap; }
.footer-col h5 {
  color: rgba(255, 255, 255, 0.88); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.07em; text-transform: uppercase; margin-bottom: 1rem;
}
.footer-col a { display: block; margin-bottom: 0.55rem; transition: color 0.2s var(--ease); }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  max-width: var(--maxw); margin: 2.5rem auto 0; padding: 1.5rem var(--gutter) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: 0.8rem;
}
.about-band { padding-top: 0; }
.about-band .container { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 4.5rem; }

.guarani { font-style: italic; color: var(--warm-stone); }

/* --------------------------------------------------------------------------
   Prose (legal pages, thank-you, 404)
   -------------------------------------------------------------------------- */

.prose { max-width: 760px; }
.prose h2 { font-size: 1.4rem; margin: 2.75rem 0 0.85rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.08rem; margin: 1.75rem 0 0.5rem; }
.prose p, .prose li { color: var(--gray-700); font-size: 0.98rem; line-height: 1.72; }
.prose p { margin-bottom: 1rem; }
.prose ul { margin: 0 0 1.25rem 1.25rem; }
.prose li { margin-bottom: 0.45rem; }
.prose a { color: var(--blue); border-bottom: 1px solid rgba(0, 61, 165, 0.3); }
.prose a:hover { border-bottom-color: var(--blue); }
.prose .updated { font-size: 0.85rem; color: var(--gray-400); margin-bottom: 2.5rem; }

.centered-panel { text-align: center; padding: calc(var(--nav-h) + 7rem) 0 8rem; }
.centered-panel .mark {
  width: 72px; height: 72px; margin: 0 auto 2rem;
  background-color: var(--red); opacity: 0.8;
  -webkit-mask: url("nanduti-medallion.svg") center / contain no-repeat;
          mask: url("nanduti-medallion.svg") center / contain no-repeat;
}
.centered-panel h1 { font-size: clamp(1.9rem, 4vw, 2.75rem); margin-bottom: 1rem; }
.centered-panel p { color: var(--gray-600); max-width: 520px; margin: 0 auto 2.25rem; font-size: 1.05rem; }
.centered-panel .btn-row { display: flex; gap: 0.85rem; justify-content: center; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   Motion — reveal on scroll
   -------------------------------------------------------------------------- */

[data-reveal] { opacity: 0; transform: translateY(18px); }
.js [data-reveal] { transition: opacity 0.65s var(--ease), transform 0.65s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1120px) {
  .tabs { gap: 0; }
  .tab { padding: 0.55rem 0.7rem; font-size: 0.83rem; }
  .logo img { height: 38px; }
}

@media (max-width: 960px) {
  :root { --gutter: 1.5rem; }
  .mobile-toggle { display: block; }
  .nav-right {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(8, 8, 8, 0.985);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem var(--gutter) 1.75rem;
    max-height: calc(100svh - var(--nav-h)); overflow-y: auto;
    clip-path: inset(0 0 100% 0); opacity: 0;
    /* visibility (not just opacity) so the closed menu leaves the tab order
       and the accessibility tree — a keyboard user must not land in it */
    visibility: hidden;
    transition: clip-path 0.35s var(--ease), opacity 0.25s var(--ease),
                visibility 0s linear 0.35s;
    pointer-events: none;
  }
  .nav-right.is-open {
    clip-path: inset(0 0 0 0); opacity: 1; pointer-events: auto;
    visibility: visible;
    transition: clip-path 0.35s var(--ease), opacity 0.25s var(--ease),
                visibility 0s linear 0s;
  }
  .tabs { flex-direction: column; align-items: stretch; }
  .tab { padding: 0.95rem 0.25rem; font-size: 1rem; border-bottom: 1px solid rgba(255, 255, 255, 0.07); border-radius: 0; }
  .tab::after { left: 0.25rem; right: auto; width: 22px; bottom: 0.55rem; }
  .nav-cta { text-align: center; justify-content: center; margin-top: 1.25rem; padding: 0.85rem 1.2rem; }
  .lang { align-self: flex-start; margin-top: 1.25rem; }

  .split, .points, .grid-2, .grid-3, .photo-row,
  .culture-pair, .culture-close { grid-template-columns: 1fr; }
  /* equal-height columns only make sense side by side */
  .split--match { align-items: start; }
  .split--match .media video { height: auto; object-fit: contain; }
  .culture-pair { gap: 2.5rem; }
  .culture-close { gap: 1.15rem; margin-top: 2.5rem; padding-top: 2rem; }
  .photo-row .media { height: 230px; }
  .hero-frame { display: none; }
  .hero-stats { gap: 1.75rem 2.5rem; margin-top: 3.5rem; }
  .lace-medallion { width: 90vw; opacity: 0.07; }
}

@media (max-width: 600px) {
  section { padding: 4.5rem 0; }
  .banner { padding: calc(var(--nav-h) + 3.25rem) 0 3.25rem; }
  .banner--creed { padding: calc(var(--nav-h) + 3rem) 0 3.5rem; }
  .mission-intro { padding: 3.5rem 0 3rem; }
  .hero-content { padding: calc(var(--nav-h) + 2.5rem) var(--gutter) 4.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .stat { min-width: 120px; }
  .stat-value { font-size: 1.6rem; }
  .footer-links { gap: 2rem; }
}

/* --------------------------------------------------------------------------
   Reduced motion & print
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important; scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

@media print {
  .nav, .video-toggle, .hero-video, video { display: none !important; }
  body { background: #fff; color: #000; }
  .hero, .banner, .on-dark, footer { background: #fff !important; color: #000 !important; }
  .hero h1, .banner h1, .on-dark .section-title { color: #000 !important; }
}
