:root {
  --bg: #07080a;
  --bg-2: #0c0e12;
  --line: #1d2129;
  --text: #c9ced6;
  --white: #f1f2f4;
  --muted: #8a8d91;
  --navy: #00205b;
  --navy-2: #0a2b6b;
  --red: #e2352c;
  --green: #35c25f;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --serif: "Young Serif", Georgia, serif;
  --gutter: clamp(16px, 4vw, 56px);
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--display);
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 600; color: var(--white); letter-spacing: -.01em; }
p { margin: 0 0 1em; }
::selection { background: var(--navy); color: var(--white); }
:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: fixed; left: 12px; top: 12px; z-index: 100;
  padding: 10px 14px; background: var(--white); color: var(--bg);
  font: 500 14px var(--mono); text-decoration: none;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* Nav */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter);
  background: linear-gradient(to bottom, rgba(7, 8, 10, .85), rgba(7, 8, 10, 0));
  transition: background .3s;
}
.nav.solid { background: rgba(7, 8, 10, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-owl { width: 46px; height: auto; }
.brand-words { display: flex; flex-direction: column; line-height: .9; }
.brand-rice { font: 500 12px var(--mono); color: var(--muted); }
.brand-fencing {
  font-family: var(--serif); font-weight: 650; font-size: 23px; letter-spacing: -.01em; color: var(--white);
 
}
.nav nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 32px); }
.nav nav a {
  font-family: var(--serif); font-size: 17px; font-weight: 600; letter-spacing: -.01em;
  text-decoration: none; color: var(--white); opacity: .82; transition: opacity .2s;
}
.nav nav a:hover { opacity: 1; }
.nav .nav-join { opacity: 1; }
.nav .nav-join {
  padding: 8px 18px; border-radius: 999px; background: var(--navy); color: var(--white); border: 1px solid #1d3f86;
}
.nav .nav-join:hover { background: var(--white); color: var(--navy); }


/* Intro */

.intro { position: relative; height: 520vh; }
.stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  background: #08090d;
}
#hero, .poster {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.poster { object-fit: cover; object-position: center; opacity: 0; }
.no-canvas .poster { opacity: 1; }
.stage::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 70% at 50% 50%, transparent 55%, rgba(8, 9, 13, .85) 100%),
    linear-gradient(to top, rgba(8, 9, 13, .9), transparent 30%);
}

.cmd {
  position: absolute; z-index: 2; margin: 0;
  font-family: var(--serif); font-weight: 400; color: var(--white);
  font-size: clamp(48px, 8vw, 128px); line-height: 1; letter-spacing: -.02em;
 
  opacity: 0;
}
.cmd-1 { left: var(--gutter); top: 30%; }
.cmd-2 { right: var(--gutter); top: 44%; text-align: right; }
.cmd-3 { left: var(--gutter); bottom: 16%; }

.lamp { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; }
.lamp::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 35% 55% at 100% 50%, rgba(53, 194, 95, .28), transparent 70%);
}
.lamp i {
  position: absolute; right: 0; top: 18%; bottom: 18%; width: 6px;
  background: var(--green);
  box-shadow: 0 0 24px 6px rgba(53, 194, 95, .7), 0 0 90px 20px rgba(53, 194, 95, .25);
}

.title {
  position: absolute; z-index: 3; left: var(--gutter); bottom: 12vh; max-width: 560px;
  opacity: 0; visibility: hidden;
}
.title h1 {
  font-size: clamp(60px, 9vw, 140px); line-height: .9;
  font-weight: 600; letter-spacing: -.03em;
}
.title-line { margin: 26px 0 28px; font-family: var(--serif); font-size: clamp(18px, 1.6vw, 24px); line-height: 1.35; white-space: nowrap; color: var(--white); text-shadow: 0 1px 14px rgba(0, 0, 0, .9), 0 0 3px rgba(0, 0, 0, .8); }
.title-actions { display: flex; flex-wrap: wrap; gap: 12px; }


/* Buttons and links */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  font-family: var(--serif); font-size: 17px; font-weight: 600; letter-spacing: -.01em; text-decoration: none; border-radius: 999px;
  border: 1px solid var(--white); transition: background .2s, color .2s, border-color .2s;
}
.btn-solid { background: var(--white); color: var(--bg); }
.btn-solid:hover { background: transparent; color: var(--white); }
.btn-line { color: var(--white); }
.btn-line:hover { background: var(--white); color: var(--bg); }
.btn-rice { background: var(--navy); color: var(--white); border-color: #1d3f86; }
.btn-rice:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.text-link {
  font-size: 15px; font-weight: 500;
  text-decoration: none; border-bottom: 1px solid var(--muted); padding-bottom: 3px;
}
.text-link:hover { border-color: var(--white); color: var(--white); }

.kicker {
  font: 500 14px var(--mono); color: var(--muted);
  display: flex; align-items: center; gap: 14px; margin-bottom: 40px;
}
.kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; }

section { position: relative; scroll-margin-top: var(--nav-h); }

/* Practice */

.practice { padding: clamp(96px, 12vw, 160px) 0; border-top: 1px solid var(--line); overflow: hidden; }
.practice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.schedule { list-style: none; margin: 0 0 24px; padding: 0; }
.schedule li {
  display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 6px 16px;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.schedule li:first-child { border-top: 1px solid var(--line); }
.schedule .day { font-family: var(--serif); color: var(--white); font-size: clamp(34px, 4vw, 56px); line-height: 1; letter-spacing: -.02em; }
.schedule .what { grid-column: 1 / -1; grid-row: 2; color: var(--text); font-size: 16px; }
.schedule .time { font: 500 clamp(17px, 1.6vw, 20px) var(--mono); color: var(--white); white-space: nowrap; }
.where { color: var(--text); margin-bottom: 26px; }
.first { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.first h3 { font-size: 24px; margin-bottom: 14px; }
.first p { max-width: 34em; }
.practice-media { position: relative; align-self: stretch; min-height: 520px; margin-right: calc(-1 * var(--gutter)); }
.practice-media video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 35% center;
  -webkit-mask-image: radial-gradient(ellipse 70% 75% at 55% 50%, #000 45%, transparent 100%);
          mask-image: radial-gradient(ellipse 70% 75% at 55% 50%, #000 45%, transparent 100%);
}

/* Join */

.join { padding: clamp(96px, 12vw, 160px) 0; border-top: 1px solid var(--line); }
.join-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.salute { position: relative; aspect-ratio: 900 / 926; }
.salute canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 70%, transparent 100%);
          mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 70%, transparent 100%);
}
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 56px 1fr; padding: 28px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.step-n { font: 500 13px var(--mono); color: #6f8fd0; padding-top: 10px; }
.steps h3 { font-size: clamp(28px, 2.8vw, 40px); line-height: 1.05; margin-bottom: 10px; }
.steps p { max-width: 26em; margin-bottom: 20px; }
.steps li:last-child p { margin-bottom: 0; }

/* LPAP */

.lpap { padding: clamp(80px, 10vw, 130px) 0; background: var(--navy); color: #dfe5f0; }
.lpap .kicker { color: #9fb0cf; }
.lpap .text-link { border-color: #9fb0cf; }
.lpap-grid { display: grid; grid-template-columns: 1fr 2fr; column-gap: 60px; align-items: start; }
.lpap-grid .kicker { grid-row: span 2; }
.lpap p { font-size: clamp(19px, 1.8vw, 24px); line-height: 1.5; max-width: 34em; color: #dfe5f0; }
.lpap strong { color: var(--white); font-weight: 650; }
.lpap .text-link { justify-self: start; }

/* Weapons */

.weapons { padding: clamp(96px, 12vw, 170px) 0; }
.weapon-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.weapon { padding: 40px 32px 24px; border-right: 1px solid var(--line); cursor: default; }
.weapon:first-child { padding-left: 0; }
.weapon:last-child { border-right: 0; }
.figure { width: auto; height: 230px; margin: 0 0 32px; overflow: visible; }
.figure .p { fill: #1b2029; stroke: #1b2029; transition: fill .5s ease, stroke .5s ease; }
.figure .legs, .figure .arms { fill: none !important; stroke-linecap: round; stroke-linejoin: round; }
.figure .legs { stroke-width: 15; }
.figure .arms { stroke-width: 12; }
.figure .blade { fill: none; stroke: #6f7782; stroke-width: 1.6; stroke-linecap: round; }
.figure .guard { fill: #6f7782; }
.weapon.lit[data-weapon="foil"] .torso,
.weapon.lit[data-weapon="epee"] .p,
.weapon.lit[data-weapon="sabre"] :is(.torso, .arms, .head) { fill: var(--white); stroke: var(--white); }
.weapon.lit:hover[data-weapon="foil"] .torso,
.weapon.lit:hover[data-weapon="epee"] .p,
.weapon.lit:hover[data-weapon="sabre"] :is(.torso, .arms, .head) { fill: var(--green); stroke: var(--green); }
.weapon h3 {
  font-size: clamp(40px, 4.4vw, 60px); line-height: 1; margin-bottom: 14px;
}
.weapon p { max-width: 24em; }

.learn { margin-top: 72px; display: grid; grid-template-columns: 1fr 2fr; gap: 40px; }
.learn h3 { font-size: clamp(28px, 2.6vw, 38px); }
.learn-list { list-style: none; margin: 0; padding: 0; }
.learn-list a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none;
}
.learn-list li:first-child a { border-top: 1px solid var(--line); }
.l-title { color: var(--white); font-size: 18px; }
.l-src { font: 500 13px var(--mono); color: var(--muted); white-space: nowrap; }
.learn-list a:hover .l-title { text-decoration: underline; text-underline-offset: 4px; }

/* Compete */

.compete { min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; padding: 120px 0 clamp(64px, 8vh, 110px); background: var(--bg); }
#extend { position: absolute; inset: 0; width: 100%; height: 100%; }
.compete::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, var(--bg), transparent 18%, transparent 55%, rgba(7, 8, 10, .85) 100%);
}
.compete-inner { position: relative; z-index: 2; }
.compete-inner > * { max-width: min(560px, 40vw); }
.compete .lead {
  color: var(--white); font-weight: 700;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(28px, 2.9vw, 44px); line-height: 1.1; letter-spacing: -.02em;
  margin-bottom: 20px;
}
.compete p:not(.lead) { max-width: 32em; }

/* Photos */

.photos { padding: clamp(96px, 12vw, 150px) 0 clamp(60px, 8vw, 110px); overflow: hidden; }
.strip { display: flex; gap: 16px; padding: 0 var(--gutter); width: max-content; }
.shot { margin: 0; height: min(64vh, 620px); background: var(--bg-2); overflow: hidden; }
.shot.tall { aspect-ratio: 788 / 1400; }
.shot.wide { aspect-ratio: 1400 / 788; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.shot:hover img { transform: scale(1.03); }

/* FAQ */

.faq { padding: clamp(80px, 10vw, 130px) 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); max-width: 860px; }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 40px 24px 0; position: relative;
  font-size: clamp(20px, 2vw, 26px); font-weight: 650; color: var(--white);
  font-family: var(--serif); font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background: linear-gradient(var(--text), var(--text)) center / 14px 1.5px no-repeat,
              linear-gradient(var(--text), var(--text)) center / 1.5px 14px no-repeat;
  transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { max-width: 40em; padding-bottom: 20px; }

/* Footer */

.footer { padding: clamp(80px, 10vw, 140px) 0 48px; background: #040506; border-top: 1px solid var(--line); }
.footer-owl { width: 160px; height: auto; margin-bottom: 48px; opacity: .9; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; align-items: end; }
.mail {
  display: inline-block; color: var(--white); text-decoration: none; font-weight: 850;
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(40px, 7vw, 104px); line-height: 1; letter-spacing: -.03em;
  border-bottom: 2px solid transparent;
}
.mail:hover { border-color: var(--white); }
.links { display: flex; gap: 24px; margin-top: 28px; }
.links a { font-size: 15px; font-weight: 500; text-decoration: none; color: var(--text); }
.links a:hover { color: var(--white); }
.small { font-size: 16px; color: var(--muted); }
.credits { font-size: 13px; margin-top: 24px; }

/* Native scroll-driven reveals where supported (Chrome, Edge, Safari 26). */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 5% entry 55%;
    }
    @keyframes rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
  }
}

/* Small screens */

@media (max-width: 900px) {
  .nav nav a:not(.nav-join):not(.nav-keep) { display: none; }
  .practice-grid, .lpap-grid, .footer-grid { grid-template-columns: 1fr; }
  .lpap-grid .kicker { grid-row: auto; }
  .join-grid { grid-template-columns: 1fr; }
  .salute { width: 78%; margin: 0 auto; }
  .practice-media { min-height: 0; aspect-ratio: 4 / 3; margin: 0 calc(-1 * var(--gutter)); order: -1; }
  .compete { min-height: 0; display: block; padding: 0 0 80px; }
  #extend { position: relative; inset: auto; height: auto; aspect-ratio: 1600 / 844; }
  .compete-inner > * { max-width: none; }
  .compete::before { display: none; }
  .weapon-grid { grid-template-columns: 1fr; }
  .learn { grid-template-columns: 1fr; gap: 20px; margin-top: 56px; }
  .weapon { display: grid; grid-template-columns: 96px 1fr; column-gap: 24px; padding: 32px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .weapon .figure { grid-row: span 2; height: 190px; margin: 0; }
  .weapon h3 { align-self: end; }
  .strip { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .strip::-webkit-scrollbar { display: none; }
  .shot { scroll-snap-align: center; height: 60vh; flex: none; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .poster { object-fit: cover; }
  .steps li { grid-template-columns: 40px 1fr; }
  /* The jacket fills the lower screen on phones, so commands use the dark band up top. */
  .cmd-1, .cmd-2, .cmd-3 { top: 12%; bottom: auto; left: var(--gutter); right: auto; text-align: left; font-size: 56px; }
  .title { bottom: 88px; right: var(--gutter); }
  .title-line { margin: 20px 0; font-size: 18px; white-space: normal; }
  .brand-fencing { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .intro { height: auto; }
  .poster { opacity: .6 !important; object-position: 0% center; }
  .stage { position: relative; }
  #hero { display: none; }
  .poster { opacity: 1; }
  .cmd, .lamp { display: none; }
  .title { opacity: 1; visibility: visible; }
  html { scroll-behavior: auto; }
}

@media (prefers-reduced-motion: reduce) and (max-width: 700px) {
  .poster { opacity: .35 !important; object-position: center; }
}

/* The smallest phones (iPhone SE, 320px): the owl alone carries the brand. */
@media (max-width: 360px) {
  .brand-words { display: none; }
}

/* Phones held sideways: short screens need a smaller title so it clears the nav. */
@media (max-height: 500px) and (orientation: landscape) {
  .title { bottom: 20px; }
  .title h1 { font-size: 15vh; }
  .title-line { margin: 12px 0 14px; font-size: 16px; }
  .btn { min-height: 40px; }
  .cmd { font-size: 18vh; }
}
