/* MINT v7 Concession: v4 Ballpark recomposed on one continuous cream card stock ground.
   Every loop and render is feathered into the ground with a mask; sections are separated by space only.
   All type is JetBrains Mono. */

:root {
  color-scheme: only light;
  --ground-top: #e5d3b6;
  --ground-bottom: #eadbc0;
  --sage-hex: #8da08d;
  --cream: #f3ecd9;
  --ink: #111111;
  --white: #ffffff;
  --walnut: #5a341a;
  --oxblood: #6c2c1d;
  --cognac: #9f6d46;
  --ease: cubic-bezier(0.215, 0.61, 0.355, 1);
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --logo-w: clamp(220px, 44vw, 720px);
  --logo-top: 28px;
  --nav-row: 44px;
  --feather-x: 18%;
  --feather-y: 18%;
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n' x='0' y='0' width='100%25' height='100%25'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch' seed='7'/><feColorMatrix type='saturate' values='0'/><feComponentTransfer><feFuncA type='table' tableValues='0 0.04'/></feComponentTransfer></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--ground-bottom);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: auto;
}

body {
  margin: 0;
  background-color: var(--ground-bottom);
  background-image: var(--grain), linear-gradient(to bottom, var(--ground-top), var(--ground-bottom));
  background-repeat: repeat, no-repeat;
  background-size: 240px 240px, 100% 100%;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  animation: page-in 600ms var(--ease) both;
}

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

h1,
h2,
p,
figure {
  margin: 0;
}

img {
  display: block;
}

video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1.0001);
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--oxblood);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

/* Feathered media: the outer band of every loop and render fades into the ground */

.feather {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--feather-x), #000 calc(100% - var(--feather-x)), transparent), linear-gradient(to bottom, transparent, #000 var(--feather-y), #000 calc(100% - var(--feather-y)), transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 var(--feather-x), #000 calc(100% - var(--feather-x)), transparent), linear-gradient(to bottom, transparent, #000 var(--feather-y), #000 calc(100% - var(--feather-y)), transparent);
  mask-composite: intersect;
}

/* Header over the hero: wordmark centered at the top, nav in a row under it (top right from 1280px) */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--logo-top) 24px 0;
  color: var(--white);
}

.wordmark {
  width: var(--logo-w);
  height: auto;
  filter: invert(1);
  user-select: none;
}

.site-nav {
  height: var(--nav-row);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  flex-wrap: wrap;
  column-gap: 16px;
  row-gap: 4px;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.5;
}

.site-nav a:hover {
  color: var(--cream);
}

/* Hero: full viewport loop, its lower part fading into the ground; lockup under the logo row on the calm wall */

.hero {
  position: relative;
  min-height: max(480px, 100svh);
  overflow: hidden;
  padding: calc(var(--logo-top) + var(--logo-w) * 341 / 1920 + var(--nav-row) + 32px) 24px 64px;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0) 46%);
  pointer-events: none;
}

.hero h1 {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: normal;
  text-transform: uppercase;
  text-align: center;
  color: var(--white);
}

/* Shared rhythm: centered content column, sections separated by space only */

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.intro {
  padding-top: 48px;
  padding-bottom: 96px;
}

.intro-grid {
  display: grid;
  gap: 24px;
}

.intro h2 {
  font-size: clamp(2rem, 5.5vw, 4.25rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 13ch;
}

.intro p {
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);
  line-height: 1.6;
  max-width: 34ch;
}

/* Scenes: a loop next to a block of copy */

.scene {
  padding-top: 48px;
  padding-bottom: 48px;
}

.scene-grid {
  display: grid;
  gap: 32px;
  align-items: center;
}

.scene-media {
  --feather-x: 26%;
  --feather-y: 12%;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.scene-copy {
  padding: 16px 0;
}

.scene-froyo .scene-copy {
  order: -1;
}

/* Toppings: the Shoku copy block, then the flat lay at up to 1440px, feathered into the ground on every side */

.flatlay {
  --feather-x: 10%;
  --feather-y: 10%;
  width: 100%;
  max-width: 1440px;
  margin: 8px auto 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.scene-copy h2,
.space h2,
.visit h2 {
  font-size: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.scene-copy p,
.space-head p {
  margin-top: 20px;
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.125rem);
  line-height: 1.6;
  max-width: 36ch;
}

.shoku-logo {
  width: 88px;
  height: auto;
  margin-bottom: 28px;
  user-select: none;
}

/* Cards: five cards fanned as objects on the ground, animated by holo-card.css. Charizard
   leads in front; the baseball cards sit right beside it, mostly clear of it (62% of a card
   width out, 7deg); Blastoise and Venusaur tuck in behind at the edges (92%, 12deg). Slots
   are a share of the fan, so the whole spread stays inside the fan at every width. */

.holo-fan {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
}

.holo-fan .holo-card {
  --card-w: 100%;
}

.holo-slot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(32%, 300px);
  transform: translate(-50%, -50%);
}

.holo-slot-far-left {
  transform: translate(-50%, -50%) translate(-92%, 9%) rotate(-12deg);
}

.holo-slot-left {
  z-index: 1;
  transform: translate(-50%, -50%) translate(-62%, 4%) rotate(-7deg);
}

.holo-slot-center {
  z-index: 2;
  transform: translate(-50%, -50%) translateY(-3%);
}

.holo-slot-right {
  z-index: 1;
  transform: translate(-50%, -50%) translate(62%, 4%) rotate(7deg);
}

.holo-slot-far-right {
  transform: translate(-50%, -50%) translate(92%, 9%) rotate(12deg);
}

/* The space: a swipeable strip of the designer's renders (gallery.css) under a column aligned head */

.space {
  padding-top: 48px;
  padding-bottom: 48px;
}

.space-head {
  padding-bottom: 40px;
}

/* Visit: the address, text only, on the content column */

.visit {
  padding-top: 48px;
  padding-bottom: 64px;
}

.visit-copy {
  max-width: 520px;
}

.address {
  margin-top: 24px;
  display: grid;
  font-size: clamp(1.25rem, 1rem + 1.2vw, 1.875rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.directions {
  display: inline-block;
  margin-top: 24px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 0.25em;
  text-decoration-thickness: 1px;
}

.directions:hover {
  text-decoration-thickness: 2px;
}

/* Footer */

.site-footer {
  padding-top: 32px;
  padding-bottom: 40px;
  font-size: 0.875rem;
  color: var(--walnut);
}

/* Scroll reveal: one fade with a 14px rise, only when JS is present */

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* Wider screens */

@media (min-width: 768px) {
  :root {
    --logo-top: 40px;
  }

  .site-header {
    padding-left: 40px;
    padding-right: 40px;
  }

  .site-nav {
    column-gap: 24px;
    font-size: 0.875rem;
  }

  .hero {
    padding-left: 40px;
    padding-right: 40px;
    padding-bottom: 80px;
  }

  .hero h1 {
    font-size: 16px;
  }

  .wrap {
    padding: 0 40px;
  }

  .intro {
    padding-top: 64px;
    padding-bottom: 128px;
  }

  .intro-grid {
    grid-template-columns: 7fr 5fr;
    align-items: end;
    gap: 40px;
  }

  .scene,
  .space,
  .visit {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .shoku-logo {
    width: 104px;
  }

  .site-footer {
    padding-top: 48px;
    padding-bottom: 56px;
  }
}

@media (min-width: 900px) {
  .scene-grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }

  .scene-cards .scene-grid {
    grid-template-columns: 5fr 7fr;
  }

  .scene-froyo .scene-copy {
    order: 0;
  }

  .flatlay {
    margin-top: 24px;
  }

  .scene-copy {
    padding: 0 24px;
  }

  .scene-copy > div {
    max-width: 520px;
  }
}

@media (min-width: 1280px) {
  :root {
    --logo-w: clamp(220px, min(44vw, 100vw - 800px), 720px);
    --nav-row: 0px;
  }

  .site-nav {
    position: absolute;
    top: var(--logo-top);
    right: 40px;
    height: auto;
    align-items: center;
    justify-content: flex-end;
  }

  .hero {
    padding-top: calc(var(--logo-top) + var(--logo-w) * 341 / 1920 + 40px);
  }

  .scene-copy {
    padding: 0 32px;
  }
}

/* Reduced motion: no entrance or reveal animation; main.js stops the loops */

@media (prefers-reduced-motion: reduce) {
  body {
    animation: none;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
