/* Akihabara Co. shared design language.
   One base for Garajisan, RNTFR, Ready4Flame and akihabara.co. A site only sets data-site on <html>.
   Accent colours are ESTIMATES read off the four mockups: confirm the brand-approved values before reuse. */
@font-face { font-family: 'Barlow Condensed'; font-weight: 600; font-style: normal; font-display: swap; src: url('/fonts/barlow-condensed-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 800; font-style: normal; font-display: swap; src: url('/fonts/barlow-condensed-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 800; font-style: italic; font-display: swap; src: url('/fonts/barlow-condensed-latin-800-italic.woff2') format('woff2'); }
@font-face { font-family: 'Exo 2'; font-weight: 900; font-style: italic; font-display: swap; src: url('/fonts/exo-2-latin-900-italic.woff2') format('woff2'); }

:root {
  --bg: #000000;
  --panel: #0f0f11;
  --panel-2: #17171a;
  --line: #2e2e34;
  --fg: #f4f2ee;
  --mut: #a8a5ad;
  --accent: #f2b705;
  --accent-2: #f2b705;
  --accent-ink: #0b0b0d;
  --head: 'Barlow Condensed', 'Arial Narrow', Impact, sans-serif;
  --mark: 'Exo 2', 'Barlow Condensed', Impact, sans-serif;
  --cjk: 'Hiragino Sans', 'Yu Gothic', 'Noto Sans JP', 'Noto Sans CJK JP', sans-serif;
  color-scheme: dark;
}
[data-site='garajisan'] { --accent: #f2b705; --accent-2: #f2b705; }
[data-site='rntfr'] { --accent: #ff2d6f; --accent-2: #1ee3ff; --accent-ink: #fff; }
[data-site='ready4flame'] { --accent: #e0161b; --accent-2: #ff8a1a; --accent-ink: #fff; }
[data-site='akihabara'] { --accent: #1e90ff; --accent-2: #1e90ff; --accent-ink: #fff; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.55 system-ui, -apple-system, 'Segoe UI', sans-serif; }
img { display: block; max-width: 100%; }
a { color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 18px; }
.i { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
h1, h2, h3 { font-family: var(--head); font-weight: 800; font-style: italic; text-transform: uppercase; line-height: .95; margin: 0; letter-spacing: .01em; }
.sl { display: inline-block; width: 26px; height: 22px; margin-right: 10px; vertical-align: -2px; background: linear-gradient(115deg, transparent 0 18%, var(--accent) 18% 38%, transparent 38% 52%, var(--accent) 52% 72%, transparent 72%); }

/* Header: company seal | slash | site mark, then the site navigation */
.site { position: sticky; top: 0; z-index: 30; background: rgba(8, 8, 9, .96); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); padding-top: env(safe-area-inset-top); }
.bar { display: flex; align-items: center; gap: 22px; min-height: 66px; }
.lockup { display: flex; align-items: center; gap: 14px; text-decoration: none; min-height: 48px; }
.co { display: flex; align-items: center; gap: 10px; }
.seal { width: 42px; height: 42px; flex: none; }
.co-t b { display: block; font: 600 20px/1 var(--head); letter-spacing: .08em; }
.co-t i { display: block; font: normal 11px/1.3 var(--cjk); color: var(--mut); letter-spacing: .08em; margin-top: 2px; }
.slash { width: 12px; height: 38px; background: linear-gradient(115deg, transparent 0 30%, var(--accent) 30% 62%, transparent 62%); }
.site-mark b { display: block; font: italic 900 26px/1 var(--mark); letter-spacing: .02em; }
.site-mark small { display: block; font: 600 9px/1.2 var(--head); letter-spacing: .26em; color: var(--mut); margin-top: 4px; }
.main { display: none; margin-left: auto; gap: 26px; }
.main a { position: relative; text-decoration: none; font: 600 17px var(--head); letter-spacing: .1em; text-transform: uppercase; padding: 24px 0; }
.main a[aria-current='page']::after { content: ''; position: absolute; left: 0; right: 0; bottom: 14px; height: 3px; background: var(--accent); }
.main a:hover { color: var(--accent); }
.nav-off { font: 600 17px var(--head); letter-spacing: .1em; text-transform: uppercase; padding: 24px 0; color: #9a98a0; cursor: default; }
.tools { display: none; gap: 18px; font-size: 24px; }
.tools a, .tools span { display: inline-flex; text-decoration: none; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
.menu { margin-left: auto; position: relative; }
.menu summary { list-style: none; cursor: pointer; font: 600 16px var(--head); letter-spacing: .12em; text-transform: uppercase; padding: 11px 16px; min-height: 44px; box-sizing: border-box; border: 1px solid #3a3a40; border-radius: 999px; }
.menu summary::-webkit-details-marker { display: none; }
.menu nav { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; background: #000; border: 1px solid var(--line); border-radius: 10px; padding: 6px; }
.menu nav a { display: block; padding: 13px 12px; border-radius: 6px; text-decoration: none; font: 600 18px var(--head); letter-spacing: .08em; text-transform: uppercase; }
.menu nav a:hover { background: #15151a; }
.co-t { display: none; }
@media (min-width: 560px) { .co-t { display: block; } }
@media (min-width: 1020px) {
  .bar { min-height: 86px; }
  .main { display: flex; }
  .tools { display: flex; }
  .menu { display: none; }
}

/* Hero: distressed italic wordmark, accent slashes, hazard bars */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero picture, .hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero picture img { object-fit: cover; object-position: 70% 50%; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.7) 42%, rgba(0,0,0,.05) 78%), linear-gradient(to top, #000 0%, transparent 30%); }
.hazard { position: absolute; z-index: 2; left: 0; top: 0; width: 120px; height: 200px; overflow: hidden; pointer-events: none; }
.hazard::before, .hazard::after { content: ''; position: absolute; top: -20px; width: 34px; height: 300px; background: var(--accent); transform: skewX(-24deg); }
.hazard::before { left: -6px; } .hazard::after { left: 52px; width: 14px; }
.hero .wrap { position: relative; z-index: 3; padding-top: 150px; padding-bottom: 30px; }
@media (max-width: 899px) { .hazard { width: 80px; height: 120px; } .hazard::before { width: 22px; } .hazard::after { left: 36px; width: 9px; } .hero picture img { object-position: 62% 50%; } }
.wordmark { display: block; width: min(100%, 760px); height: auto; overflow: visible; }
.wordmark text { font: italic 900 168px 'Exo 2', Impact, sans-serif; fill: var(--fg); }
.wordmark .sls { fill: var(--accent); }
.kana { margin: 2px 0 14px; width: min(100%, 560px); text-align: center; font: 300 clamp(18px, 3.4vw, 30px)/1 var(--cjk); letter-spacing: .5em; padding-left: .5em; }
.tag { max-width: 560px; margin: 0 0 20px; font: italic 600 clamp(15px, 2.4vw, 21px)/1.35 'Barlow Condensed', sans-serif; letter-spacing: .26em; text-transform: uppercase; }
.btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; padding: 13px 24px; border-radius: 5px; cursor: pointer; font: 600 20px var(--head); letter-spacing: .04em; border: 2px solid var(--accent); background: var(--accent); color: var(--accent-ink); }
.btn.ghost { background: rgba(0,0,0,.35); border-color: #d9d6dc; color: var(--fg); }
.btn:hover { filter: brightness(1.12); }
.btn:disabled, .btn[aria-disabled='true'] { background: transparent; border-color: #3a3a40; color: #b4b1b9; cursor: not-allowed; filter: none; }
@media (min-width: 900px) { .hero .wrap { padding-top: 64px; padding-bottom: 56px; min-height: 420px; } .hero::before { background: linear-gradient(90deg, rgba(0,0,0,.9) 0%, rgba(0,0,0,.55) 38%, rgba(0,0,0,0) 66%), linear-gradient(to top, #000 0%, transparent 24%); } }

/* Tile row */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px auto 0; }
.tile { position: relative; display: flex; flex-direction: column; min-height: 160px; padding: 16px 16px 58px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none;
  background: radial-gradient(120% 90% at 100% 0%, #1d1d21 0%, transparent 60%), var(--panel); overflow: hidden; }
.tile:last-child { grid-column: span 2; }
.tile .i { font-size: 40px; margin-bottom: 8px; }
.tile h3 { font-size: 28px; }
.tile p { margin: 6px 0 0; color: #cfccd3; font-size: 14px; line-height: 1.35; max-width: 17ch; }
.go { position: absolute; right: 0; bottom: 0; width: 56px; height: 42px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); border-radius: 8px 0 7px 0; font-size: 22px; }
.tile.off { cursor: default; }
.tile.off .go { background: #202024; color: #b4b1b9; font: 600 12px var(--head); letter-spacing: .14em; text-transform: uppercase; width: 64px; }
.tile:not(.off):hover { border-color: var(--accent); }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(5, 1fr); } .tile:last-child { grid-column: auto; } .tile p { max-width: 20ch; } }

/* Featured rail and current project */
.feat { padding-top: 26px; }
.feat-grid { display: grid; gap: 14px; }
.rail-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.rail-head h2 { font-size: clamp(26px, 5vw, 34px); display: flex; align-items: center; flex-wrap: wrap; }
.rail-head small { font: 400 14px var(--cjk); color: var(--mut); margin-left: 14px; letter-spacing: .06em; text-transform: none; font-style: normal; }
.soon-link { font: 600 13px var(--head); letter-spacing: .16em; text-transform: uppercase; color: #a8a5ad; white-space: nowrap; }
.rail-row { position: relative; }
.rail { align-items: flex-start; display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 2px; }
.rail::-webkit-scrollbar { display: none; }
.rail figure { position: relative; margin: 0; flex: 0 0 62%; scroll-snap-align: start; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #000; }
.rail img { display: block; height: auto; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.rail figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 8px; font: 600 15px var(--head); letter-spacing: .08em; text-transform: uppercase; background: linear-gradient(to top, rgba(0,0,0,.9), transparent); }
.arrow { display: none; position: absolute; top: 50%; transform: translateY(-50%); width: 34px; height: 44px; place-items: center; border: 1px solid #44444a; border-radius: 6px; background: rgba(0,0,0,.75); color: var(--fg); cursor: pointer; font-size: 20px; z-index: 2; }
.arrow.prev { left: -6px; } .arrow.next { right: -6px; }
.panel { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; padding: 18px; min-height: 190px; background: var(--panel); }
.panel .disc { position: absolute; right: -50px; top: -30px; width: 210px; height: 210px; border-radius: 50%; background: var(--accent); opacity: .92; }
.panel .disc::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 30% 70%, rgba(0,0,0,.35) 0 2px, transparent 3px) 0 0 / 9px 9px; }
.panel > * { position: relative; z-index: 1; }
.panel .k { font: 600 15px var(--head); letter-spacing: .14em; text-transform: uppercase; display: flex; align-items: center; margin: 0 0 10px; }
.panel h3 { font-size: 32px; max-width: 11ch; }
.panel .s { margin: 6px 0 14px; font: italic 600 16px var(--head); letter-spacing: .08em; text-transform: uppercase; }
.bar-p { display: flex; gap: 3px; width: 70%; }
.bar-p i { flex: 1; height: 14px; background: var(--accent); transform: skewX(-24deg); }
.bar-p i:nth-child(n+8) { background: #3a3a40; }
.sample { display: inline-block; margin-top: 10px; font: 600 12px var(--head); letter-spacing: .18em; text-transform: uppercase; color: var(--mut); border: 1px solid #44444a; padding: 2px 8px; border-radius: 3px; }
@media (min-width: 900px) {
  .feat-grid { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
  .rail figure { flex-basis: calc((100% - 30px) / 4); }
  .arrow { display: grid; }
  .panel { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* The seal lands once and settles into the header. */
@media (prefers-reduced-motion: no-preference) {
  .maker-stamp {
    animation: press-makers-seal 640ms both;
    transform-origin: 52% 55%;
  }
  @keyframes press-makers-seal {
    0% { opacity: 0; transform: translateY(-5px) rotate(-9deg) scale(1.16); }
    46% { opacity: 1; transform: translateY(1px) rotate(1deg) scale(.94); }
    68% { transform: translateY(-.5px) rotate(-.5deg) scale(1.02); }
    100% { opacity: 1; transform: none; }
  }
}
