/* Layout: quiet system type, generous white space, full-bleed photo bands, rounded tiles; crimson only for actions and rank marks */
:root {
  --bg: #fbfbfd;
  --alt: #f5f5f7;
  --tile: #ffffff;
  --fg: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --accent: #a3201b;
  --accent-hi: #c0281f;
  --link: #a3201b;
  --black: #000000;
  --on-dark: #f5f5f7;
  --on-dark-muted: #a1a1a6;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --r-tile: 22px;
  --r-small: 12px;
  --wrap: 68rem;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000; --alt: #101012; --tile: #1c1c1e; --fg: #f5f5f7; --muted: #a1a1a6; --line: #38383a;
    --link: #ff6a5c; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000000; --alt: #101012; --tile: #1c1c1e; --fg: #f5f5f7; --muted: #a1a1a6; --line: #38383a;
  --link: #ff6a5c; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 17px; line-height: 1.47; letter-spacing: -0.01em; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.025em; line-height: 1.08; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; border-radius: 4px; }

html:not([data-lang="en"]) .en, html[data-lang="en"] .fi { display: none !important; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: max(22px, env(safe-area-inset-left, 0px)); padding-right: max(22px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: 46rem; }
.section { padding-block: clamp(4rem, 9vw, 7rem); }
.alt { background: var(--alt); }
.dark { background: var(--black); color: var(--on-dark); }
.center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.stack { display: flex; flex-direction: column; gap: 1rem; }
.kicker { font-size: 1.05rem; font-weight: 600; color: var(--accent); letter-spacing: -0.01em; }
.dark .kicker { color: #ff7b6e; }
.headline { font-size: clamp(2.2rem, 5.5vw, 3.5rem); }
.sub { font-size: clamp(1.15rem, 2.2vw, 1.5rem); line-height: 1.35; color: var(--muted); font-weight: 500; max-width: 38rem; letter-spacing: -0.015em; }
.dark .sub { color: var(--on-dark-muted); }
.body-muted { color: var(--muted); }

/* Navigation */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: color-mix(in srgb, var(--bg) 78%, transparent); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 52px; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--fg); font-size: .9rem; font-weight: 600; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 50%; }
.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a { color: var(--fg); opacity: .8; font-size: .8rem; }
.nav a:hover { opacity: 1; text-decoration: none; }
.nav a[aria-current="page"] { opacity: 1; font-weight: 600; }
.lang { display: flex; background: var(--alt); border-radius: 999px; padding: 2px; }
.lang button { font: inherit; font-size: .7rem; font-weight: 600; text-transform: uppercase; border: 0; background: none; color: var(--muted); padding: .2rem .6rem; border-radius: 999px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--tile); color: var(--fg); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.menu-btn { display: none; background: none; border: 0; color: var(--fg); width: 2.25rem; height: 2.25rem; cursor: pointer; }
@media (max-width: 760px) {
  .menu-btn { display: inline-grid; place-items: center; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: .5rem max(22px, env(safe-area-inset-right, 0px)) 1.25rem max(22px, env(safe-area-inset-left, 0px)); }
  .nav a { font-size: 1.5rem; font-weight: 600; opacity: 1; padding-block: .45rem; }
  .nav .lang { margin-top: .75rem; }
  .nav[data-open="false"] { display: none; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .7rem 1.4rem; border-radius: 980px; font-size: 1rem; font-weight: 500; border: 1px solid transparent; transition: background .2s, color .2s; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hi); }
.btn-secondary { border-color: var(--accent); color: var(--link); }
.btn-secondary:hover { background: var(--accent); color: #fff; }
.dark .btn-secondary, .hero .btn-secondary { border-color: rgba(245,245,247,.6); color: var(--on-dark); }
.dark .btn-secondary:hover, .hero .btn-secondary:hover { background: var(--on-dark); color: #000; }
.textlink { font-size: 1.05rem; color: var(--link); }
.textlink::after { content: " ›"; }
.dark .textlink { color: #ff8a7e; }
.row { display: flex; flex-wrap: wrap; gap: .9rem 1.25rem; align-items: center; }
.center .row { justify-content: center; }

/* Hero */
.hero { position: relative; background: #000; color: var(--on-dark); overflow: hidden; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .62; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.35), rgba(0,0,0,.15) 40%, rgba(0,0,0,.85)); }
.hero .wrap { position: relative; z-index: 1; padding-block: clamp(7rem, 16vw, 11rem) clamp(4rem, 9vw, 6rem); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1.25rem; }
.hero h1 { font-size: clamp(2.6rem, 8vw, 5.25rem); letter-spacing: -0.035em; }
.hero .sub { color: rgba(245,245,247,.82); }
.hero .eyebrow-dark { font-size: 1.05rem; font-weight: 600; color: #ff8a7e; }

/* Facts strip */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; text-align: center; }
.facts strong { display: block; font-size: clamp(1.6rem, 3.5vw, 2.4rem); letter-spacing: -0.03em; line-height: 1.1; }
.facts span { color: var(--muted); font-size: .95rem; }
@media (max-width: 640px) { .facts { grid-template-columns: 1fr; gap: 1.5rem; } }

/* Tiles */
.tiles { display: grid; gap: 1.25rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tiles-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .tiles, .tiles-3 { grid-template-columns: 1fr; } }
.tile { background: var(--tile); border-radius: var(--r-tile); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.alt .tile { background: var(--tile); }
.section:not(.alt) .tile { background: var(--alt); }
.tile-body { padding: clamp(1.75rem, 4vw, 2.75rem); display: flex; flex-direction: column; gap: .75rem; flex: 1; }
.tile h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
.tile p { color: var(--muted); }
.tile .row { margin-top: auto; padding-top: .5rem; }
.tile-photo { aspect-ratio: 3 / 2; overflow: hidden; }
.tile-photo img { width: 100%; height: 100%; object-fit: cover; }
.tile.dark-tile { background: #000 !important; color: var(--on-dark); }
.tile.dark-tile p { color: var(--on-dark-muted); }
.card { background: var(--tile); border-radius: var(--r-tile); padding: 1.75rem; display: flex; flex-direction: column; gap: .5rem; min-width: 0; }
.section:not(.alt) .card { background: var(--alt); }
.card .label { font-size: .8rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.card h3 { font-size: 1.3rem; letter-spacing: -0.02em; }
.card p { color: var(--muted); font-size: .97rem; }
.card .textlink { margin-top: auto; padding-top: .5rem; font-size: .97rem; }

/* Dojo kun */
.kun-list { list-style: none; margin: 2.5rem 0 0; padding: 0; width: 100%; max-width: 44rem; text-align: left; counter-reset: kun; }
.kun-list li { display: grid; grid-template-columns: 2.5rem 1fr; gap: 1rem; padding-block: 1.25rem; border-top: 1px solid #2c2c2e; }
.kun-list li:last-child { border-bottom: 1px solid #2c2c2e; }
.kun-list li::before { counter-increment: kun; content: counter(kun); font-size: 1.6rem; font-weight: 700; color: #ff7b6e; letter-spacing: -0.03em; line-height: 1.1; }
.kun-list strong { display: block; font-size: 1.2rem; letter-spacing: -0.02em; }
.kun-list span { color: var(--on-dark-muted); font-size: .97rem; }

/* Banner */
.banner { background: #000; }
.banner img { width: 100%; max-height: 320px; object-fit: cover; object-position: right center; }
.page-head { padding-block: clamp(3.5rem, 8vw, 6rem) clamp(2rem, 5vw, 3rem); }
.page-head h1 { font-size: clamp(2.5rem, 7vw, 4.5rem); letter-spacing: -0.035em; }

/* Belts */
.belts { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr)); }
.belts li { background: var(--tile); border-radius: var(--r-small); padding: 1rem .9rem; display: flex; flex-direction: column; gap: .5rem; }
.swatch { display: block; width: 100%; height: 10px; border-radius: 5px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.belts strong { font-size: .95rem; letter-spacing: -0.01em; }
.belts small { font-size: .82rem; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Accordions */
.acc { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 1rem; padding: 1.25rem .25rem; font-weight: 600; font-size: 1.1rem; letter-spacing: -0.015em; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; margin-left: auto; font-weight: 300; font-size: 1.6rem; line-height: 1; color: var(--muted); transition: transform .25s; }
details[open] summary::after { transform: rotate(45deg); }
summary .swatch { width: 2.75rem; flex-shrink: 0; }
.acc-body { padding: 0 .25rem 1.75rem; display: flex; flex-direction: column; gap: 1.25rem; font-size: .95rem; }
.acc-body .two { display: grid; gap: 2rem; grid-template-columns: 1fr 1fr; }
.acc-body .two > * { min-width: 0; display: flex; flex-direction: column; gap: .5rem; }
@media (max-width: 760px) { .acc-body .two { grid-template-columns: 1fr; } }
.acc-body h4 { margin: 0; font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.acc-body ol { margin: 0; padding-left: 1.25rem; display: flex; flex-direction: column; gap: .25rem; }
.acc-body .intro { color: var(--muted); font-style: italic; }
.acc-body .note { background: var(--alt); border-radius: var(--r-small); padding: .8rem 1rem; color: var(--muted); font-size: .88rem; }
.acc-body .note b { color: var(--fg); }
.videos { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; }
.videos a { font-size: .9rem; }
.faq p { padding: 0 .25rem 1.4rem; color: var(--muted); max-width: 40rem; }

/* Join */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(3, minmax(0, 1fr)); counter-reset: step; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.steps .card::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; margin-bottom: .5rem; }

/* Location */
.location { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: stretch; }
@media (max-width: 860px) { .location { grid-template-columns: 1fr; } }
.map { position: relative; border-radius: var(--r-tile); overflow: hidden; min-height: 340px; background: var(--alt); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 1; }
.map .map-fallback { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 2rem; color: var(--muted);
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 40px 40px; }
.map .pin { width: 44px; height: 44px; margin: 0 auto .75rem; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--accent); box-shadow: 0 6px 18px rgba(163,32,27,.35); }
.contact-list { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-list .value { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; color: var(--fg); overflow-wrap: anywhere; }
.contact-list a.value:hover { color: var(--link); text-decoration: none; }

/* Prose */
.prose { display: flex; flex-direction: column; gap: 2.25rem; }
.prose h2 { font-size: 1.3rem; letter-spacing: -0.02em; }
.prose p { color: var(--muted); margin-top: .5rem; }

/* Footer */
.site-footer { background: var(--alt); color: var(--muted); font-size: .8rem; border-top: 1px solid var(--line); }
.site-footer .wrap { padding-block: 2.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.footer-top .who { display: flex; gap: .75rem; align-items: center; color: var(--fg); }
.footer-top .who img { width: 40px; height: 40px; border-radius: 50%; }
.footer-top address { font-style: normal; line-height: 1.6; }
.footer-links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--fg); }
.icons { display: flex; gap: 1rem; }
.icons a { color: var(--muted); }
.icons a:hover { color: var(--fg); }
.icons svg { width: 20px; height: 20px; }

.notfound { padding-block: 8rem; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1.25rem; }
.notfound h1 { font-size: 5rem; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
