/* Obanai — hero

   The plate is dense key art: violet lightning, white highlight and crystal
   edge to edge. Measured per cell it gives 1.0-2.0:1 for a dark ink and
   1.2-3.5:1 for a white one, so there is no quiet corner to drop type into.
   It runs full bleed all the same, and the letters carry their own dark halo
   instead — a shadow on the glyphs, not a scrim over the footage, so the
   plate keeps every bit of its quality. The copy sits where the plate is
   calmest and the controls are opaque, grounded on themselves. */

:root {
  --night: #140925;   /* the plate's darkest violet: page ground, poster fallback */
  --deep:  #0C0518;
  --ink:   #F7F2FD;
  --dim:   rgba(247, 242, 253, .88);
  --volt:  #A855F7;   /* the lightning */

  /* white letters on busy art: a tight opaque core plus two soft falls, so
     each glyph sits in its own pool of dark */
  --halo:  0 0 1px rgba(10, 4, 20, 1), 0 0 2px rgba(10, 4, 20, 1),
           0 0 4px rgba(10, 4, 20, 1), 0 0 9px rgba(10, 4, 20, .98),
           0 0 20px rgba(10, 4, 20, .92), 0 0 44px rgba(10, 4, 20, .8);

  --gutter: clamp(1.5rem, 4vw, 4rem);
  --ease:   cubic-bezier(.2, .7, .2, 1);

  --display: "Syne", system-ui, sans-serif;
  --text:    "Inter Tight", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--night);
  color: var(--ink);
  font-family: var(--text);
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

:where(a):focus-visible {
  outline: 2px solid var(--volt);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--deep);
  border-radius: 6px;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hero__plate {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;   /* the face is centred in the frame */
  z-index: 0;
}

.topbar, .copy { position: relative; z-index: 1; }

/* ---------- top bar ---------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: clamp(1rem, 2.4vh, 1.6rem) var(--gutter);
  text-shadow: var(--halo);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -.02em;
  line-height: 1;
}
.mark { width: 28px; height: 28px; flex: none; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
  font-size: .92rem;
  font-weight: 600;
}
.nav__link { color: var(--ink); transition: color .25s var(--ease); }
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--ink); }

/* ---------- copy ---------- */

.copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;   /* down on the haori, clear of the face */
  padding: 2rem var(--gutter) clamp(2.5rem, 7vh, 4rem);
  max-width: min(36rem, 46%);
  text-shadow: var(--halo);
}

.title {
  margin: 0;
  max-width: 15ch;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.4rem, 3.6vw, 3.8rem);
  line-height: 1.02;
  letter-spacing: -.025em;
}


/* filled, so it stands on its own footprint rather than on the art */
.btn {
  display: inline-flex;
  margin-top: 2rem;
  padding: .78rem 1.45rem;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 600;
  background: var(--ink);
  color: var(--deep);
  text-shadow: none;
  box-shadow: 0 10px 30px rgba(10, 4, 20, .5);
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { background: #D8C2F6; }
.btn:active { transform: translateY(1px); }

/* ---------- entrance ---------- */

@media (prefers-reduced-motion: no-preference) {
  .brand, .nav__link, .title, .btn {
    opacity: 0;
    animation: rise .9s var(--ease) forwards;
  }
  .nav__link:nth-child(1) { animation-delay: .08s; }
  .nav__link:nth-child(2) { animation-delay: .12s; }
  .nav__link:nth-child(3) { animation-delay: .16s; }
  .nav__link:nth-child(4) { animation-delay: .2s; }
  .title { animation-delay: .3s; }
  .btn   { animation-delay: .46s; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- tablets ---------- */
@media (max-width: 899px) {
  .copy { max-width: 32rem; }
}

/* ---------- phones ---------- */
@media (max-width: 599px) {
  /* cropped to a phone the face fills the frame, so the copy drops to the
     foot of it, over the haori, and leaves the face alone */
  .copy  { justify-content: flex-end; max-width: 24rem; padding-bottom: clamp(2rem, 6vh, 3rem); }
  .title { font-size: clamp(2.2rem, 9vw, 3rem); max-width: 12ch; }
  .topbar { flex-wrap: wrap; row-gap: .75rem; }
  .nav { gap: .5rem 1.1rem; flex-wrap: wrap; font-size: .85rem; }
  .btn { margin-top: 1.5rem; padding: .7rem 1.3rem; }
}

/* ---------- a phone on its side ---------- */
@media (max-height: 460px) and (orientation: landscape) {
  .copy  { max-width: 40%; padding-block: .75rem 1.25rem; }
  .title { font-size: clamp(1.6rem, 5.4vh, 2.2rem); max-width: 14ch; }
  .btn   { margin-top: .9rem; padding: .58rem 1.1rem; font-size: .88rem; }
  .topbar { padding-block: .5rem; }
}

@media (max-width: 360px) {
  .title { font-size: 2rem; }
  .brand { font-size: 1.15rem; }
}
