:root {
  color-scheme: light;
  --red: #aa2222;
  --red-deep: #7b1414;
  --yellow: #ffc221;
  --cream: #fff6df;
  --paper: #fffaf0;
  --white: #ffffff;
  --ink: #17100c;
  --muted: #6c564b;
  --line: rgba(23, 16, 12, 0.16);
  --shadow: rgba(64, 25, 16, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei",
    sans-serif;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 12px clamp(18px, 4vw, 52px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
  color: var(--white);
  background: rgba(170, 34, 34, 0.95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--white);
  font-size: 17px;
  font-weight: 950;
  line-height: 1;
  text-decoration: none;
}

.brand-lockup img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(12px, 2vw, 24px);
  min-width: 0;
  font-size: 14px;
  font-weight: 820;
  white-space: nowrap;
}

.site-nav a {
  text-decoration: none;
  opacity: 0.92;
}

.site-nav a:hover {
  opacity: 1;
}

.mobile-quick-nav {
  display: none;
}

.hero {
  min-height: clamp(560px, calc(80svh - 72px), 720px);
  display: grid;
  align-items: end;
  padding: clamp(38px, 5vw, 72px) clamp(22px, 6vw, 82px);
  color: var(--white);
  border-bottom: 10px solid var(--yellow);
  background:
    linear-gradient(90deg, rgba(23, 16, 12, 0.98) 0%, rgba(60, 18, 16, 0.93) 34%, rgba(123, 20, 20, 0.58) 62%, rgba(23, 16, 12, 0.24) 100%),
    linear-gradient(0deg, rgba(23, 16, 12, 0.92) 0%, rgba(23, 16, 12, 0.16) 48%),
    url("./kotones-origin-store.png") center 42% / cover no-repeat,
    var(--red);
}

.hero-copy {
  max-width: min(680px, 48vw);
  width: 100%;
}

.eyebrow,
.section-kicker,
.menu-badge {
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow {
  width: fit-content;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  color: var(--yellow);
}

.hero-year {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

h1 {
  max-width: 660px;
  margin-top: 14px;
  font-size: clamp(50px, 5.6vw, 88px);
  font-weight: 980;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-title-line {
  display: block;
  white-space: nowrap;
}

.hero-lede {
  max-width: 590px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(16px, 1.45vw, 20px);
  font-weight: 680;
  line-height: 1.68;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-actions {
  margin-top: 28px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--ink);
  background: var(--yellow);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.16);
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.62);
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.band {
  padding: clamp(54px, 7vw, 96px) clamp(22px, 6vw, 82px);
}

section[id] {
  scroll-margin-top: 88px;
}

.band-warm {
  background: var(--cream);
}

.band-red {
  color: var(--white);
  background: var(--red-deep);
}

.section-kicker {
  margin-bottom: 16px;
  color: var(--red);
}

.band-red .section-kicker,
.band-red p {
  color: rgba(255, 255, 255, 0.82);
}

h2 {
  font-size: clamp(34px, 5vw, 68px);
  font-weight: 980;
  line-height: 1.04;
  letter-spacing: 0;
}

.split-layout,
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}

.story-layout {
  display: grid;
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  grid-template-columns: minmax(280px, 0.88fr) minmax(320px, 1.12fr);
  grid-template-areas:
    "intro media"
    "chapters chapters";
  gap: clamp(30px, 5vw, 66px);
  align-items: start;
}

.story-intro {
  grid-area: intro;
  align-self: center;
}

.split-layout p,
.section-head p,
.career-copy p,
.story-intro p,
.story-chapter p {
  color: var(--muted);
  font-size: clamp(16px, 1.7vw, 19px);
  font-weight: 650;
  line-height: 1.82;
}

.split-layout p + p,
.story-intro p + p {
  margin-top: 18px;
}

.story-intro p + p {
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink);
}

.band-red .split-layout p {
  color: rgba(255, 255, 255, 0.84);
}

.story-media {
  grid-area: media;
  margin: 0;
  display: grid;
  gap: 12px;
}

.story-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(64, 25, 16, 0.16);
  filter: contrast(1.04);
  object-fit: cover;
  object-position: center 42%;
}

.story-media figcaption {
  color: var(--muted);
  font-size: 14px;
  font-weight: 680;
  line-height: 1.62;
}

.story-chapters {
  grid-area: chapters;
  display: grid;
  width: 100%;
  max-width: 1040px;
  margin-inline: auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.story-chapter {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: clamp(18px, 4vw, 42px);
  align-items: start;
  padding: clamp(24px, 4vw, 36px) 0;
}

.story-chapter + .story-chapter {
  border-top: 1px solid var(--line);
}

.story-chapter span {
  color: var(--red);
  font-size: 14px;
  font-weight: 980;
  line-height: 1;
}

.story-chapter h3 {
  color: var(--ink);
  font-size: clamp(21px, 2.2vw, 30px);
  font-weight: 950;
  line-height: 1.12;
}

.story-chapter p {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 620;
  line-height: 1.84;
}

.story-chapter p + p {
  margin-top: 14px;
}

.story-chapter > div {
  max-width: 700px;
}

.story-feature {
  width: 100%;
  max-width: 1040px;
  margin: 0;
  margin-inline: auto;
  padding: clamp(24px, 4vw, 40px) 0;
  border-top: 1px solid var(--line);
}

.story-feature img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  box-shadow: 0 20px 46px rgba(64, 25, 16, 0.18);
  filter: saturate(0.96) contrast(0.98);
  object-fit: cover;
  object-position: center center;
}

.story-feature figcaption {
  max-width: 700px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.62;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: clamp(30px, 5vw, 56px);
}

.menu-card {
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  padding: 0;
  border: 1px solid rgba(255, 194, 33, 0.36);
  border-radius: 8px;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(170, 34, 34, 0.86), rgba(123, 20, 20, 0.98)),
    var(--red-deep);
  box-shadow: 0 16px 34px rgba(64, 25, 16, 0.14);
  overflow: hidden;
}

.menu-visual {
  aspect-ratio: 1 / 1;
  margin: 0;
  padding: clamp(10px, 1.8vw, 16px);
  background:
    linear-gradient(180deg, rgba(255, 246, 223, 0.14), rgba(255, 194, 33, 0.06)),
    linear-gradient(135deg, rgba(255, 194, 33, 0.18), transparent 52%),
    var(--red-deep);
  overflow: hidden;
}

.menu-visual img {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  box-shadow: 0 14px 28px rgba(23, 16, 12, 0.18);
  filter: saturate(0.98) contrast(0.98);
  object-fit: cover;
}

.menu-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: clamp(18px, 3vw, 28px);
  background: linear-gradient(180deg, rgba(123, 20, 20, 0.08), rgba(23, 16, 12, 0.1));
  border-top: 1px solid rgba(255, 194, 33, 0.18);
}

.menu-badge {
  width: fit-content;
  margin-bottom: 18px;
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--yellow);
}

.menu-card h3 {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 950;
  line-height: 1.1;
}

.registered-mark {
  margin-left: 2px;
  font-size: 0.46em;
  line-height: 0;
  vertical-align: super;
}

.menu-card p {
  margin-top: 14px;
  font-size: 15px;
  font-weight: 640;
  line-height: 1.62;
}

.menu-card p {
  color: rgba(255, 255, 255, 0.82);
}

.team-head p {
  max-width: 760px;
}

.band-red .team-head p {
  color: rgba(255, 255, 255, 0.84);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(30px, 5vw, 56px);
}

.team-card {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid rgba(255, 194, 33, 0.38);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 18px 42px rgba(23, 16, 12, 0.2);
  overflow: hidden;
}

.team-photo {
  aspect-ratio: 3 / 4;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 246, 223, 0.2), rgba(255, 194, 33, 0.08)),
    var(--red-deep);
  overflow: hidden;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

.team-card-placeholder {
  aspect-ratio: 3 / 4;
  display: grid;
  place-items: center;
  color: var(--red-deep);
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.46), rgba(255, 194, 33, 0.74)),
    var(--yellow);
  font-size: clamp(54px, 9vw, 108px);
  font-weight: 980;
  line-height: 1;
}

.team-copy {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: clamp(20px, 3vw, 30px);
}

.team-role {
  width: fit-content;
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--yellow);
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
}

.team-card h3 {
  color: var(--ink);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 980;
  line-height: 1.08;
}

.team-card p {
  color: var(--muted);
  font-size: 15px;
  font-weight: 680;
  line-height: 1.72;
}

.team-card h3 + p {
  margin-top: 0;
}

.team-card-placeholder + .team-copy .team-role {
  color: var(--red);
  background: var(--cream);
  box-shadow: inset 0 0 0 1px rgba(170, 34, 34, 0.14);
}

.careers {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: clamp(24px, 5vw, 58px);
  border-top: 1px solid var(--line);
}

.career-copy {
  max-width: 760px;
}

.career-actions {
  margin-top: 24px;
}

.career-toggle[aria-expanded="true"] {
  box-shadow: inset 0 0 0 2px rgba(23, 16, 12, 0.18);
}

.career-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: clamp(16px, 3vw, 22px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 34px rgba(64, 25, 16, 0.08);
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.career-panel[hidden] {
  display: none;
}

.career-panel.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.career-panel-copy {
  min-width: 0;
  display: grid;
  gap: 14px;
  justify-items: start;
}

.author-note {
  display: grid;
  gap: 8px;
}

.author-note p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 720;
  line-height: 1.62;
}

.author-note-lead {
  color: var(--red);
  font-weight: 950;
}

.author-name {
  display: inline-block;
  color: var(--red);
  font-weight: 950;
  white-space: nowrap;
}

.octopus-blink {
  position: relative;
  width: clamp(82px, 10vw, 118px);
  aspect-ratio: 1;
  flex: 0 0 auto;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  animation: octopusFloat 2.4s ease-in-out infinite;
}

.octopus-blink img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.octopus-open {
  animation: octopusOpenEye 2.4s steps(1, end) infinite;
}

.octopus-closed {
  opacity: 0;
  animation: octopusClosedEye 2.4s steps(1, end) infinite;
}

@keyframes octopusOpenEye {
  0%,
  55%,
  68%,
  100% {
    opacity: 1;
  }

  56%,
  67% {
    opacity: 0;
  }
}

@keyframes octopusClosedEye {
  0%,
  55%,
  68%,
  100% {
    opacity: 0;
  }

  56%,
  67% {
    opacity: 1;
  }
}

@keyframes octopusFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .octopus-blink,
  .octopus-open,
  .octopus-closed {
    animation: none;
  }

  .octopus-open {
    opacity: 1;
  }

  .octopus-closed {
    opacity: 0;
  }
}

@media (max-width: 920px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .split-layout,
  .section-head,
  .careers {
    grid-template-columns: 1fr;
  }

  .story-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "intro"
      "media"
      "chapters";
  }

  .hero {
    min-height: auto;
  }
  .menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .mobile-quick-nav {
    position: fixed;
    top: 50%;
    right: max(8px, env(safe-area-inset-right));
    z-index: 40;
    display: grid;
    gap: 6px;
    width: 48px;
    padding: 7px 5px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 999px;
    background: rgba(170, 34, 34, 0.92);
    box-shadow: 0 18px 34px rgba(64, 25, 16, 0.2);
    transform: translateY(-50%);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }

  .mobile-quick-nav a {
    min-height: 36px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: var(--white);
    background: rgba(255, 250, 240, 0.1);
    font-size: 12px;
    font-weight: 920;
    line-height: 1;
    text-align: center;
    text-decoration: none;
  }

  .mobile-quick-nav a:first-child {
    color: var(--ink);
    background: var(--yellow);
  }

  .mobile-quick-nav a:focus-visible {
    outline: 3px solid var(--yellow);
    outline-offset: 2px;
  }

  .band {
    padding-right: max(66px, calc(18px + env(safe-area-inset-right)));
  }

  .hero-copy {
    max-width: min(100%, 420px);
  }

  .story-chapter,
  .team-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .brand-lockup span {
    font-size: 15px;
  }

  .site-nav {
    gap: 14px;
    font-size: 13px;
  }

  .hero,
  .band {
    padding-inline: 18px;
  }

  .band {
    padding-right: max(66px, calc(18px + env(safe-area-inset-right)));
  }

  .hero {
    gap: 18px;
    min-height: calc(90svh - 72px);
    padding-block: 34px;
    background:
      linear-gradient(180deg, rgba(23, 16, 12, 0.14) 0%, rgba(110, 24, 20, 0.72) 44%, rgba(23, 16, 12, 0.94) 100%),
      url("./kotones-origin-store.png") 62% center / auto 104% no-repeat,
      var(--red);
  }

  h1 {
    margin-top: 18px;
    font-size: clamp(40px, 11.4vw, 46px);
    line-height: 1.05;
  }

  .hero-lede {
    margin-top: 18px;
    font-size: 16px;
    line-height: 1.58;
  }

  .story-feature {
    padding-block: 22px;
  }

  .story-feature img {
    aspect-ratio: 4 / 3;
    object-position: 55% center;
  }

  .story-feature figcaption {
    font-size: 13px;
  }

  .hero-actions {
    margin-top: 22px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .career-panel {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .career-panel-copy {
    justify-items: center;
  }

  .button {
    width: 100%;
  }

  .menu-grid {
    grid-template-columns: 1fr;
  }

  .menu-card {
    min-height: 210px;
  }
}

@media (max-width: 360px) {
  .mobile-quick-nav {
    right: 4px;
    width: 42px;
    padding-inline: 4px;
  }

  .mobile-quick-nav a {
    min-height: 34px;
    font-size: 11px;
  }

  .band {
    padding-right: 54px;
  }
}
