/* HASAKI — base styles */
:root {
  --ink: #0a0a0a;
  --panel: #0f0f0f;
  --panel-2: #131313;
  --paper: #ffffff;
  --muted: rgba(255, 255, 255, 0.55);
  --muted-2: rgba(255, 255, 255, 0.45);
  --hairline: rgba(255, 255, 255, 0.12);
  --serif: "Zen Old Mincho", Georgia, serif;
  --sans: "Zen Kaku Gothic New", system-ui, sans-serif;
  --gutter: clamp(18px, 4vw, 40px);
  --header-h: clamp(84px, 7vw, 112px);
  --max: 1440px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--paper); text-decoration: none; }
a:hover { color: #fff; }
::selection { background: var(--paper); color: var(--ink); }
img { display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { font-size: 11px; letter-spacing: 0.4em; color: var(--muted); }
.serif { font-family: var(--serif); font-weight: 500; }

/* ---------- reveal ---------- */
.reveal { opacity: 1; }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- header ---------- */
.header {
  position: relative;
  z-index: 1;
  background: var(--ink);
  border-bottom: 1px solid var(--hairline);
}
.header__row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-areas: "logo nav utils";
  align-items: center;
  gap: clamp(14px, 2vw, 34px);
  height: var(--header-h);
}
.lockup {
  grid-area: logo;
  display: flex;
  align-items: center;
  justify-self: start;
  gap: clamp(10px, 1.2vw, 18px);
  height: var(--header-h);
  margin-left: calc(-1 * var(--gutter) - max(0px, (100vw - var(--max)) / 2)); /* mark sits flush to the viewport edge, even past max-width */
}
.lockup img { height: 100%; width: auto; max-width: none; object-fit: contain; }
.lockup__text { display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.lockup__name { font-family: var(--serif); font-size: 26px; font-weight: 600; letter-spacing: 0.26em; line-height: 1; }
.lockup__kanji { font-size: 11px; letter-spacing: 0.52em; color: var(--muted); line-height: 1; }

.nav {
  grid-area: nav;
  display: flex;
  align-items: center;
  justify-self: center;
  gap: clamp(13px, 1.7vw, 28px);
  min-width: 0;
  max-width: 100%;
  height: var(--header-h);
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }
.nav a { display: inline-block; font-size: 14px; font-weight: 700; letter-spacing: 0.14em; color: var(--paper); transition: transform 0.2s ease; }
.nav a.is-active { box-shadow: 0 2px 0 0 var(--paper); }
.nav a:hover { transform: scale(1.1); }
.nav a:first-child { transform-origin: left center; }
.nav a:last-child { transform-origin: right center; }

.utils {
  grid-area: utils;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  gap: 22px;
  margin-right: calc(-1 * var(--gutter) - max(0px, (100vw - var(--max)) / 2)); /* sits flush to the viewport edge, even past max-width */
}
.utils a { display: flex; align-items: center; gap: 7px; opacity: 0.8; }
.utils a:hover { opacity: 1; }
.utils svg { width: 17px; height: 17px; }
.utils__count { font-size: 11px; letter-spacing: 0.1em; }
.utils .lang { font-size: 11px; }

/* ---------- marquee ---------- */
.marquee { position: relative; z-index: 2; background: var(--panel); border-bottom: 1px solid var(--hairline); overflow: hidden; }
.marquee__track { display: flex; width: max-content; animation: marquee 160s linear infinite; }
.marquee__half { display: flex; flex: none; width: max-content; gap: 80px; padding: 11px 40px 11px 0; align-items: center; }
.marquee span { font-size: 11px; letter-spacing: 0.24em; color: rgba(255, 255, 255, 0.62); white-space: nowrap; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* ---------- buttons ---------- */
.btn, .btn-ghost {
  display: inline-block;
  padding: 16px 32px;
  font-size: 11px;
  letter-spacing: 0.24em;
}
.btn { background: var(--paper); color: var(--ink); font-weight: 700; }
.btn:hover { background: #fff; color: var(--ink); }
.btn-ghost { border: 1px solid rgba(255, 255, 255, 0.3); font-weight: 500; }
.btn-ghost:hover { border-color: var(--paper); }
.link-underline { align-self: flex-start; font-size: 11px; font-weight: 600; letter-spacing: 0.24em; border-bottom: 1px solid rgba(255, 255, 255, 0.4); padding-bottom: 6px; }
.link-underline:hover { border-color: var(--paper); }

/* ---------- hero (emblem) ---------- */
.hero {
  position: relative;
  z-index: 2;
  min-height: min(88vh, 780px);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--hairline);
  background: var(--ink);
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 1;
  clip-path: polygon(42% 0, 100% 0, 100% 100%, 58% 100%);
}
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.hero__video-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, var(--ink) 0%, rgba(10, 10, 10, 0.55) 30%, rgba(10, 10, 10, 0.4) 100%);
}
@media (prefers-reduced-motion: reduce) { .hero__video { display: none; } }
.hero__left {
  position: relative;
  z-index: 2;
  align-self: stretch;
  width: min(52%, 720px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__mark {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(70%, 560px);
  opacity: 0.1;
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  text-align: center;
  max-width: 480px;
  padding: clamp(60px, 8vw, 100px) var(--gutter);
}
.hero h1 { font-family: var(--serif); font-size: clamp(32px, 4.2vw, 58px); font-weight: 500; line-height: 1.08; margin: 0; text-wrap: balance; }
.hero__lead { display: flex; flex-direction: column; gap: 0; }
.hero p { margin: 0; font-size: 15px; line-height: 1.8; color: rgba(255, 255, 255, 0.6); max-width: 480px; font-weight: 300; }
.hero__kicker { font-size: 11px; letter-spacing: 0.44em; color: var(--muted); }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

@media (max-width: 860px) {
  .hero__media { clip-path: none; }
  .hero__video { opacity: 0.28; }
  .hero__left { width: 100%; }
  .hero__mark { width: min(86vw, 620px); }
}

/* ---------- disabled links (WIP) ---------- */
.is-wip-disabled { pointer-events: none; opacity: 0.35; cursor: not-allowed; }

/* ---------- work-in-progress overlay ---------- */
.wip {
  position: relative;
  z-index: 2;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  background: var(--ink);
  border-bottom: 1px solid var(--hairline);
  text-align: center;
  padding: 60px var(--gutter);
}
.wip__ring {
  position: relative;
  width: 128px;
  height: 128px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wip__ring::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--hairline);
  border-top-color: var(--paper);
  animation: wip-spin 1.3s linear infinite;
}
.wip__logo { width: 56px; height: auto; opacity: 0.9; }
.wip__label { font-size: 12px; font-weight: 500; letter-spacing: 0.32em; color: var(--muted); text-transform: uppercase; }
@keyframes wip-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .wip__ring::before { animation: none; } }

/* ---------- credentials ---------- */
.creds { position: relative; z-index: 2; background: var(--ink); border-bottom: 1px solid var(--hairline); }
.creds__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); column-gap: clamp(28px, 4vw, 56px); }
.creds__cell { padding: 34px 0; display: flex; flex-direction: column; gap: 8px; }
.creds__cell + .creds__cell { position: relative; }
.creds__cell strong { font-family: var(--serif); font-size: 15px; font-weight: 500; }
.creds__cell span { font-size: 12px; color: rgba(255, 255, 255, 0.48); font-weight: 300; }

/* ---------- generic section ---------- */
.section { padding: 96px 0; }
.section--catalog { position: relative; z-index: 2; background: var(--ink); padding: 96px 0 40px; }
.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--hairline);
}
.section__head h1, .section__head h2 { font-family: var(--serif); font-size: clamp(32px, 3.4vw, 50px); font-weight: 500; line-height: 1.05; margin: 0; }
.section__head-titles { display: flex; flex-direction: column; gap: 14px; }
.section__meta { font-size: 12px; color: var(--muted-2); font-weight: 300; padding-bottom: 6px; }

/* ---------- media placeholder ---------- */
.media { position: relative; background: #141414; overflow: hidden; }
.media::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  letter-spacing: 0.24em;
  color: rgba(255, 255, 255, 0.28);
  text-align: center;
  padding: 12px;
}
.media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media:has(img)::after { content: none; }

/* ---------- catalog ---------- */
.filters { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding: 22px 0 44px; }
.filters__row { display: flex; gap: 10px; flex-wrap: wrap; }
.chip { padding: 10px 20px; border: 1px solid rgba(255, 255, 255, 0.2); font-size: 11px; letter-spacing: 0.18em; color: rgba(255, 255, 255, 0.72); }
.chip:hover { border-color: var(--paper); color: var(--paper); }
.chip.is-active { border-color: var(--paper); background: var(--paper); color: var(--ink); font-weight: 600; }
.sort { font-size: 11px; letter-spacing: 0.18em; color: rgba(255, 255, 255, 0.5); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
  border-top: 1px solid var(--hairline);
  border-left: 1px solid var(--hairline);
}
.grid > * { border-right: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.card { background: var(--ink); padding: 22px; display: flex; flex-direction: column; gap: 18px; }
.card:hover { background: var(--panel-2); }
.card__media { position: relative; aspect-ratio: 4 / 5; }
.card__badge { position: absolute; top: 12px; left: 12px; padding: 5px 10px; background: var(--paper); color: var(--ink); font-size: 9px; font-weight: 700; letter-spacing: 0.18em; z-index: 1; }
.card__badge--outline { background: rgba(10, 10, 10, 0.6); color: var(--paper); border: 1px solid rgba(255, 255, 255, 0.4); font-weight: 600; }
.card__body { display: flex; flex-direction: column; gap: 6px; }
.card__steel { font-size: 10px; letter-spacing: 0.24em; color: var(--muted-2); }
.card__name { font-family: var(--serif); font-size: 19px; }
.card__bg { font-size: 12px; color: var(--muted-2); font-weight: 300; }
.card__price { display: flex; align-items: baseline; gap: 10px; margin-top: auto; }
.card__price b { font-size: 15px; font-weight: 400; letter-spacing: 0.04em; }
.card__price span { font-size: 11px; color: rgba(255, 255, 255, 0.4); }
.center { display: flex; justify-content: center; padding: 56px 0 0; }

/* ---------- split (craft) ---------- */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 64px; align-items: center; }
.split__media { height: min(72vh, 600px); }
.split__body { display: flex; flex-direction: column; gap: 26px; }
.split__body h2 { font-family: var(--serif); font-size: clamp(30px, 3.2vw, 46px); font-weight: 500; line-height: 1.14; margin: 0; }
.split__body p { margin: 0; font-size: 15px; line-height: 1.85; color: rgba(255, 255, 255, 0.6); font-weight: 300; max-width: 460px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 110px), 1fr)); border-top: 1px solid var(--hairline); border-left: 1px solid var(--hairline); margin-top: 6px; }
.stats > div { border-right: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.stats div { background: var(--ink); padding: 22px 18px; display: flex; flex-direction: column; gap: 6px; }
.stats b { font-family: var(--serif); font-size: 28px; font-weight: 500; }
.stats span { font-size: 11px; letter-spacing: 0.14em; color: var(--muted-2); }

/* ---------- steel banner ---------- */
.banner { position: relative; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.banner__media { position: absolute; inset: 0; }
.banner__media::after { align-items: flex-end; justify-content: flex-end; padding: 20px 24px; }
.banner__scrim { position: absolute; inset: 0; background: rgba(10, 10, 10, 0.72); }
.banner__inner { position: relative; max-width: var(--max); margin: 0 auto; padding: clamp(72px, 10vw, 120px) var(--gutter); }
.banner__body { max-width: 640px; display: flex; flex-direction: column; gap: 24px; }
.banner h2 { font-family: var(--serif); font-size: clamp(30px, 3.4vw, 50px); font-weight: 500; line-height: 1.1; margin: 0; }
.banner p { margin: 0; font-size: 15px; line-height: 1.85; color: rgba(255, 255, 255, 0.62); font-weight: 300; max-width: 480px; }
.banner .btn { align-self: flex-start; }

/* ---------- journal ---------- */
.journal { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); border-left: 1px solid var(--hairline); }
.journal > a { border-right: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.journal a { background: var(--ink); padding: 34px 28px 40px; display: flex; flex-direction: column; gap: 16px; min-height: 260px; }
.journal a:hover { background: var(--panel-2); }
.journal__kicker { font-size: 10px; letter-spacing: 0.24em; color: var(--muted-2); }
.journal__title { font-family: var(--serif); font-size: 24px; line-height: 1.3; }
.journal__excerpt { font-size: 13px; line-height: 1.8; color: rgba(255, 255, 255, 0.5); font-weight: 300; margin-top: auto; }
.journal-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 36px; border-bottom: 1px solid var(--hairline); }
.journal-head h2 { font-family: var(--serif); font-size: clamp(28px, 3vw, 42px); font-weight: 500; margin: 0; }

/* ---------- newsletter ---------- */
.news { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); background: var(--panel); }
.news__inner { max-width: var(--max); margin: 0 auto; padding: 72px var(--gutter); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 56px; align-items: center; }
.news h2 { font-family: var(--serif); font-size: clamp(24px, 2.4vw, 34px); font-weight: 500; margin: 0 0 12px; }
.news p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--muted); font-weight: 300; }
.news form { display: flex; border-bottom: 1px solid rgba(255, 255, 255, 0.3); }
.news input { flex: 1; background: transparent; border: 0; outline: none; color: var(--paper); font-family: var(--sans); font-size: 15px; padding: 16px 0; }
.news button { background: transparent; border: 0; color: var(--paper); font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: 0.24em; padding: 16px 4px; cursor: pointer; }

/* ---------- footer ---------- */
.footer { padding: 72px 0 32px; }
.footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 48px; padding-bottom: 56px; }
.footer__brand { display: flex; flex-direction: column; gap: 18px; }
.footer__mark { display: flex; align-items: center; gap: 12px; }
.footer__mark img { width: 56px; height: 56px; object-fit: contain; }
.footer__mark span { font-family: var(--serif); font-size: 19px; letter-spacing: 0.26em; }
.footer__brand p { margin: 0; font-size: 13px; line-height: 1.85; color: var(--muted-2); font-weight: 300; max-width: 280px; }
.footer__col { display: flex; flex-direction: column; gap: 14px; }
.footer__col h3 { margin: 0; font-size: 10px; font-weight: 400; letter-spacing: 0.26em; color: rgba(255, 255, 255, 0.4); }
.footer__col a { font-size: 13px; color: rgba(255, 255, 255, 0.75); font-weight: 300; }
.footer__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 26px; border-top: 1px solid var(--hairline); }
.footer__bar small { font-size: 11px; letter-spacing: 0.14em; color: rgba(255, 255, 255, 0.35); }
.footer__right { display: flex; align-items: center; gap: 20px; }
.lang { display: flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: 0.16em; }
.lang a[aria-current="true"] { color: var(--paper); }
.lang a { color: rgba(255, 255, 255, 0.5); }
.lang i { opacity: 0.3; font-style: normal; }

/* ---------- narrow ---------- */
@media (max-width: 860px) {
  .header__row {
    height: auto;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "logo utils"
      "nav nav";
    padding: 0 0 12px;
  }
  .lockup { height: var(--header-h); }
  .nav { justify-self: stretch; height: 42px; }
  .section { padding: 64px 0; }
  .split { gap: 36px; }
  .split__media { height: 56vh; }
}
