
:root {
  --ink: #121318;
  --muted: #666a73;
  --paper: #f2f3ef;
  --surface: #fbfcf9;
  --line: rgba(18, 19, 24, 0.13);
  --blue: #596cff;
  --orange: #ff704c;
  --night: #15161b;
  --white: #f8f9f6;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  scroll-behavior: auto;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "SF Pro Display", "SF Pro Text", -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

a {
  text-decoration: none;
}

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

.product-grid[hidden] {
  display: none !important;
}

main {
  overflow-x: clip;
}

#work,
#studio {
  scroll-margin-top: 76px;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid #8c9aff;
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 76px;
  padding: 0 4vw;
  border-bottom: 1px solid var(--line);
  background: rgba(246, 247, 243, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 12px;
  padding: 0;
  background: transparent;
  text-align: left;
}

.brand-mark {
  display: grid;
  flex: none;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-copy {
  display: flex;
  flex-direction: column;
}

.brand-copy strong {
  font-size: 0.83rem;
  font-weight: 720;
  letter-spacing: -0.02em;
}

.brand-copy small {
  margin-top: 2px;
  color: #757983;
  font-size: 0.61rem;
  font-weight: 590;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
}

.site-header nav button {
  padding: 8px 18px;
  border-radius: 999px;
  background: transparent;
  font-size: 0.75rem;
  font-weight: 680;
  transition: background 180ms ease, color 180ms ease;
}

.site-header nav button:hover {
  background: var(--ink);
  color: #fff;
}

.header-contact {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 5px;
  border-bottom: 1px solid currentColor;
  font-size: 0.75rem;
  font-weight: 700;
}

.hero {
  display: grid;
  min-height: calc(100svh - 76px);
  grid-template-columns: minmax(420px, 0.9fr) minmax(620px, 1.1fr);
  gap: clamp(45px, 6vw, 110px);
  align-items: center;
  padding: 68px 4vw 88px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 14% 18%, rgba(89, 108, 255, 0.12), transparent 28%),
    linear-gradient(145deg, #f7f8f5 0%, #eff1ec 100%);
}

.eyebrow,
.section-kicker {
  font-size: 0.66rem;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #61656e;
}

.eyebrow > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #57c48d;
  box-shadow: 0 0 0 5px rgba(87, 196, 141, 0.13);
}

.hero h1 {
  margin: 45px 0 32px;
  font-size: clamp(4.7rem, 7.2vw, 8.2rem);
  font-weight: 710;
  letter-spacing: -0.079em;
  line-height: 0.84;
}

.hero h1 span {
  color: #747984;
}

.hero-copy > p {
  max-width: 520px;
  margin: 0;
  color: #555a63;
  font-size: clamp(1rem, 1.25vw, 1.2rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 40px;
}

.hero-actions button,
.hero-actions a {
  display: inline-flex;
  min-height: 51px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 20px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 720;
}

.hero-actions button {
  background: var(--ink);
  color: #fff;
}

.hero-actions a {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.hero-actions button:hover,
.hero-actions a:hover {
  transform: translateY(-2px);
}

.release-board {
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 26px;
  background: var(--night);
  box-shadow: 0 34px 90px rgba(25, 28, 35, 0.17);
  color: #f4f5f1;
}

.release-board-head {
  display: flex;
  justify-content: space-between;
  padding: 21px 23px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #9a9da6;
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.release-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.09);
}

.release-item {
  display: flex;
  min-width: 0;
  min-height: 134px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 15px 8px 13px;
  background: #191a20;
  color: #f3f4f0;
  text-align: center;
  transition: background 180ms ease;
}

.release-item:hover {
  background: #24262d;
}

.product-icon {
  position: relative;
  display: grid;
  flex: none;
  width: 70px;
  height: 70px;
  place-items: center;
  overflow: hidden;
  border-radius: 17px;
  background: var(--accent);
  box-shadow: 0 13px 30px rgba(5, 7, 12, 0.18);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 800;
}

.product-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.release-icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
}

.release-item > span:not(.product-icon) {
  width: 100%;
  overflow: hidden;
  margin-top: 10px;
  font-size: 0.68rem;
  font-weight: 690;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.release-item small {
  margin-top: 3px;
  color: #7f828c;
  font-size: 0.56rem;
  font-weight: 600;
}

.release-board-foot {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.release-board-foot > div {
  padding: 22px 23px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.release-board-foot > div:last-child {
  border-right: 0;
}

.release-board-foot strong,
.release-board-foot span {
  display: block;
}

.release-board-foot strong {
  font-size: 1.35rem;
  font-weight: 680;
  letter-spacing: -0.04em;
}

.release-board-foot span {
  margin-top: 5px;
  color: #878a94;
  font-size: 0.58rem;
  font-weight: 620;
}

.work {
  --collection-accent: var(--blue);
  padding: 125px 5vw 145px;
  background: #f7f8f4;
}

.work-game {
  --collection-accent: var(--orange);
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(160px, 0.35fr) minmax(0, 1fr);
  gap: 5vw;
  align-items: start;
  max-width: 1260px;
  margin: 0 auto 70px;
}

.section-kicker {
  color: #777b84;
}

.section-intro > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.48fr);
  gap: 5vw;
  align-items: end;
}

.section-intro h2,
.studio-copy h2 {
  margin: 0;
  font-size: clamp(3.7rem, 6vw, 6.6rem);
  font-weight: 700;
  letter-spacing: -0.07em;
  line-height: 0.9;
}

.section-intro p {
  max-width: 430px;
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.collection-switch {
  display: grid;
  max-width: 1260px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  padding: 5px;
}

.collection-switch button {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  padding: 0 23px;
  border-radius: 13px;
  background: transparent;
  color: #777b83;
  transition: background 180ms ease, color 180ms ease;
}

.collection-switch button:first-child.active {
  background: var(--blue);
  color: #fff;
}

.collection-switch button:last-child.active {
  background: var(--orange);
  color: #17181d;
}

.collection-switch button:not(.active):hover {
  background: #f1f2ef;
  color: var(--ink);
}

.collection-switch button > span {
  font-size: 1.05rem;
  font-weight: 730;
  letter-spacing: -0.025em;
}

.collection-switch button small {
  font-size: 0.65rem;
  font-weight: 760;
}

.collection-summary {
  display: flex;
  max-width: 1260px;
  align-items: center;
  justify-content: space-between;
  margin: 29px auto 22px;
  color: #6b6f77;
  font-size: 0.7rem;
  font-weight: 660;
}

.collection-summary > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.summary-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--collection-accent);
}

.product-grid {
  display: grid;
  max-width: 1260px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  margin: 0 auto;
}

.product-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 320px;
  flex-direction: column;
  overflow: hidden;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  transition: transform 180ms ease, border-color 180ms ease,
    box-shadow 180ms ease;
}

.product-card::before {
  position: absolute;
  top: -80px;
  right: -70px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
  filter: blur(75px);
  opacity: 0.1;
  pointer-events: none;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: 0 20px 50px rgba(23, 26, 31, 0.08);
}

.product-card-wide {
  grid-column: 1 / -1;
}

.product-card-wide .product-description {
  max-width: 720px;
}

.product-card-main {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 18px;
}

.product-card-icon {
  width: 76px;
  height: 76px;
  border-radius: 18px;
}

.product-card-title {
  min-width: 0;
}

.product-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #7b7f87;
  font-size: 0.58rem;
  font-weight: 730;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.product-meta span + span::before {
  margin-right: 10px;
  content: "·";
}

.product-card h3 {
  margin: 7px 0 0;
  font-size: clamp(1.45rem, 2vw, 2rem);
  font-weight: 710;
  letter-spacing: -0.046em;
  line-height: 1.05;
}

.product-card-title > p {
  margin: 6px 0 0;
  color: #696d75;
  font-size: 0.76rem;
  font-weight: 560;
}

.product-description {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin: 28px 0 25px;
  color: #5e626a;
  font-size: 0.86rem;
  line-height: 1.65;
}

.product-card-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(18, 19, 24, 0.1);
}

.platforms,
.store-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.platforms span {
  padding: 6px 9px;
  border-radius: 999px;
  background: #f0f1ee;
  color: #686c74;
  font-size: 0.57rem;
  font-weight: 720;
}

.store-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid currentColor;
  font-size: 0.66rem;
  font-weight: 730;
}

.store-links a:hover {
  color: var(--accent);
}

.studio {
  padding: 36px 3vw;
  background: #dfe2dc;
}

.studio-card {
  display: grid;
  max-width: 1460px;
  min-height: 720px;
  grid-template-columns: minmax(390px, 0.88fr) minmax(560px, 1.12fr);
  overflow: hidden;
  margin: 0 auto;
  border-radius: 30px;
  background: var(--night);
  color: #f5f6f2;
}

.studio-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(50px, 6vw, 92px);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.studio-copy .section-kicker {
  margin-bottom: 58px;
  color: #9498a1;
}

.studio-copy h2 {
  max-width: 620px;
  font-size: clamp(3.3rem, 5vw, 5.8rem);
}

.studio-copy > p {
  max-width: 530px;
  margin: 35px 0 0;
  color: #a9adb5;
  font-size: 0.93rem;
  line-height: 1.72;
}

.studio-copy > a {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 10px;
  margin-top: 42px;
  padding-bottom: 7px;
  border-bottom: 1px solid currentColor;
  font-size: 0.73rem;
  font-weight: 720;
}

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

.studio-principles article {
  display: flex;
  min-height: 360px;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(35px, 4vw, 58px);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.studio-principles article:nth-child(2n) {
  border-right: 0;
}

.studio-principles article:nth-child(n + 3) {
  border-bottom: 0;
}

.studio-principles article > span {
  margin-bottom: auto;
  color: #7f838d;
  font-size: 0.62rem;
  font-weight: 760;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.studio-principles h3 {
  margin: 0;
  font-size: clamp(1.55rem, 2.3vw, 2.5rem);
  font-weight: 690;
  letter-spacing: -0.05em;
  line-height: 1.04;
}

.studio-principles p {
  max-width: 310px;
  margin: 16px 0 0;
  color: #9ca0a8;
  font-size: 0.77rem;
  line-height: 1.62;
}

.studio-principles .platform-card {
  background: #dfff67;
  color: #17181d;
}

.studio-principles .platform-card > span,
.studio-principles .platform-card p {
  color: #505632;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 55px;
  align-items: end;
  padding: 90px 5vw 30px;
  background: #0e0f13;
  color: #f4f5f1;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 15px;
}

.footer-brand .brand-mark {
  background: #f4f5f1;
  color: #111217;
}

.footer-brand > div {
  display: flex;
  flex-direction: column;
}

.footer-brand strong {
  font-size: 0.9rem;
  font-weight: 700;
}

.footer-brand > div > span {
  margin-top: 4px;
  color: #858992;
  font-size: 0.66rem;
}

footer > a {
  display: inline-flex;
  gap: 9px;
  padding-bottom: 6px;
  border-bottom: 1px solid currentColor;
  font-size: 0.76rem;
  font-weight: 680;
}

.footer-bottom {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #777b84;
  font-size: 0.62rem;
  font-weight: 620;
}

.footer-bottom > div {
  display: flex;
  gap: 24px;
}

.footer-bottom button {
  justify-self: end;
  padding: 0;
  background: transparent;
  color: #a5a8af;
}

/* Legal pages */

.legal-page {
  min-height: 100vh;
  background: #f5f6f2;
}

.legal-header {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  padding: 0 4vw;
  border-bottom: 1px solid var(--line);
  background: #f5f6f2;
}

.legal-brand,
.admin-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.legal-brand > span:last-child,
.admin-brand > span:last-child {
  display: flex;
  flex-direction: column;
}

.legal-brand strong,
.admin-brand strong {
  font-size: 0.82rem;
  font-weight: 720;
}

.legal-brand small,
.admin-brand small {
  margin-top: 2px;
  color: #777b84;
  font-size: 0.61rem;
}

.legal-header nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.7rem;
  font-weight: 680;
}

.legal-header nav a:last-child {
  padding: 10px 14px;
  border-radius: 9px;
  background: var(--ink);
  color: #fff;
}

.legal-hero {
  padding: 100px 7vw 78px;
  background:
    radial-gradient(circle at 80% 0%, rgba(89, 108, 255, 0.3), transparent 30%),
    #15161b;
  color: #f6f7f3;
}

.legal-hero > span {
  color: #a4a8b1;
  font-size: 0.65rem;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.legal-hero h1 {
  max-width: 1000px;
  margin: 42px 0 30px;
  font-size: clamp(4rem, 8vw, 8rem);
  font-weight: 710;
  letter-spacing: -0.075em;
  line-height: 0.86;
}

.legal-hero > p {
  max-width: 780px;
  margin: 0;
  color: #adb1b9;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  line-height: 1.7;
}

.legal-hero > div {
  display: flex;
  gap: 28px;
  margin-top: 55px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  color: #858993;
  font-size: 0.63rem;
  font-weight: 650;
}

.legal-layout {
  display: grid;
  max-width: 1280px;
  grid-template-columns: minmax(210px, 0.34fr) minmax(0, 1fr);
  gap: clamp(55px, 9vw, 140px);
  margin: 0 auto;
  padding: 110px 5vw 140px;
}

.legal-layout > aside {
  position: sticky;
  top: 40px;
  height: max-content;
  padding-top: 7px;
}

.legal-layout > aside > span {
  color: #777b84;
  font-size: 0.62rem;
  font-weight: 760;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.legal-layout > aside p {
  margin: 24px 0;
  color: #686c74;
  font-size: 0.78rem;
  line-height: 1.72;
}

.legal-layout > aside a {
  display: inline-block;
  padding-bottom: 5px;
  border-bottom: 1px solid currentColor;
  font-size: 0.68rem;
  font-weight: 690;
}

.legal-content {
  min-width: 0;
}

.legal-content section {
  position: relative;
  padding: 0 0 70px 72px;
  border-bottom: 1px solid var(--line);
}

.legal-content section + section {
  padding-top: 70px;
}

.legal-content section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.legal-number {
  position: absolute;
  top: 5px;
  left: 0;
  color: #8b8f97;
  font-size: 0.62rem;
  font-weight: 760;
}

.legal-content section + section .legal-number {
  top: 75px;
}

.legal-content h2 {
  margin: 0 0 28px;
  font-size: clamp(2rem, 3.2vw, 3.25rem);
  font-weight: 690;
  letter-spacing: -0.05em;
  line-height: 1;
}

.legal-content p,
.legal-content li {
  color: #555a63;
  font-size: 0.9rem;
  line-height: 1.82;
}

.legal-content p {
  margin: 0;
}

.legal-content p + p,
.legal-content ul + p,
.legal-content p + ul {
  margin-top: 18px;
}

.legal-content ul {
  margin-bottom: 0;
  padding-left: 20px;
}

.legal-content li + li {
  margin-top: 8px;
}

.legal-content a {
  color: #4358dd;
  text-decoration: underline;
  text-decoration-color: rgba(67, 88, 221, 0.35);
  text-underline-offset: 3px;
}

.legal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 34px 5vw;
  background: #0e0f13;
  color: #8a8e97;
  font-size: 0.64rem;
}

.legal-footer > div {
  display: flex;
  gap: 24px;
}

.legal-footer a {
  color: #d5d7d2;
}

/* Private product admin */

.admin-shell {
  min-height: 100vh;
  padding-bottom: 70px;
  background: #eceee9;
}

.admin-header {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  padding: 0 4vw;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 248, 244, 0.92);
  backdrop-filter: blur(16px);
}

.admin-account {
  display: flex;
  align-items: center;
  gap: 17px;
  color: #747881;
  font-size: 0.65rem;
  font-weight: 650;
}

.admin-account a {
  padding: 9px 12px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
}

.admin-signout {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font-size: 0.65rem;
  font-weight: 700;
}

.admin-signout:hover {
  border-color: var(--ink);
}

.admin-overview {
  display: grid;
  max-width: 1450px;
  grid-template-columns: 1fr auto;
  gap: 55px;
  align-items: end;
  margin: 0 auto;
  padding: 75px 4vw 48px;
}

.admin-kicker {
  display: block;
  color: #727680;
  font-size: 0.62rem;
  font-weight: 760;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.admin-overview h1,
.admin-access-card h1 {
  margin: 28px 0 16px;
  font-size: clamp(3.2rem, 6vw, 6rem);
  font-weight: 710;
  letter-spacing: -0.07em;
  line-height: 0.9;
}

.admin-overview p,
.admin-access-card p {
  max-width: 640px;
  margin: 0;
  color: #61656d;
  font-size: 0.87rem;
  line-height: 1.65;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, 120px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #f9faf7;
}

.admin-stats > div {
  padding: 19px;
  border-right: 1px solid var(--line);
}

.admin-stats > div:last-child {
  border-right: 0;
}

.admin-stats strong,
.admin-stats span {
  display: block;
}

.admin-stats strong {
  font-size: 1.5rem;
  font-weight: 720;
}

.admin-stats span {
  margin-top: 4px;
  color: #777b83;
  font-size: 0.57rem;
  font-weight: 650;
}

.admin-notice {
  max-width: 1450px;
  margin: 0 auto 18px;
  padding: 14px 4vw;
  border: 1px solid rgba(50, 142, 93, 0.25);
  border-radius: 12px;
  background: #ddf4e7;
  color: #246f46;
  font-size: 0.72rem;
  font-weight: 650;
}

.admin-notice-error {
  border-color: rgba(190, 66, 66, 0.25);
  background: #fae3df;
  color: #a13a32;
}

.admin-layout {
  display: grid;
  max-width: 1450px;
  grid-template-columns: minmax(0, 1.15fr) minmax(420px, 0.85fr);
  gap: 18px;
  margin: 0 auto;
  padding: 0 4vw;
}

.admin-list-panel,
.admin-editor-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fafbf8;
}

.admin-editor-panel {
  height: max-content;
}

.admin-panel-head {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
}

.admin-panel-head > div {
  display: flex;
  flex-direction: column;
}

.admin-panel-head span {
  color: #848891;
  font-size: 0.57rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.admin-panel-head strong {
  margin-top: 5px;
  font-size: 0.84rem;
  font-weight: 700;
}

.admin-panel-head button {
  padding: 10px 13px;
  border-radius: 9px;
  background: var(--ink);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
}

.admin-product-list article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(18, 19, 24, 0.09);
}

.admin-product-list article:last-child {
  border-bottom: 0;
}

.admin-product-list article.is-hidden {
  background: #f0f1ee;
  opacity: 0.72;
}

.admin-product-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  overflow: hidden;
  border-radius: 13px;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
}

.admin-product-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-product-info {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.admin-product-info > span {
  color: #868a92;
  font-size: 0.53rem;
  font-weight: 720;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-product-info strong {
  overflow: hidden;
  margin-top: 5px;
  font-size: 0.82rem;
  font-weight: 710;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-product-info small {
  margin-top: 4px;
  color: #747881;
  font-size: 0.57rem;
}

.admin-row-actions {
  display: flex;
  gap: 6px;
}

.admin-row-actions button {
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  font-size: 0.58rem;
  font-weight: 690;
}

.admin-row-actions button:hover {
  border-color: var(--ink);
}

.admin-row-actions .danger {
  color: #b3433b;
}

.admin-empty {
  margin: 0;
  padding: 55px 20px;
  color: #858992;
  font-size: 0.72rem;
  text-align: center;
}

.admin-form {
  display: grid;
  gap: 17px;
  padding: 22px;
}

.admin-form label {
  display: grid;
  gap: 7px;
  color: #5d6169;
  font-size: 0.61rem;
  font-weight: 720;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  border: 1px solid rgba(18, 19, 24, 0.16);
  border-radius: 9px;
  outline: 0;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.72rem;
}

.admin-form input,
.admin-form select {
  min-height: 43px;
  padding: 0 11px;
}

.admin-form textarea {
  resize: vertical;
  padding: 11px;
  line-height: 1.55;
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(89, 108, 255, 0.12);
}

.admin-field-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-lookup {
  min-height: 40px;
  border: 1px solid rgba(89, 108, 255, 0.25);
  border-radius: 9px;
  background: #edf0ff;
  color: #4457d8;
  font-size: 0.64rem;
  font-weight: 720;
}

.admin-color-field {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 7px;
}

.admin-color-field input[type="color"] {
  padding: 4px;
}

.admin-form .admin-check {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px;
  border-radius: 9px;
  background: #f0f1ee;
}

.admin-check input {
  width: 16px;
  min-height: 16px;
  margin: 0;
}

.admin-save {
  min-height: 49px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-size: 0.69rem;
  font-weight: 720;
}

.admin-save:disabled {
  cursor: wait;
  opacity: 0.55;
}

.admin-access-shell {
  display: grid;
  place-items: center;
  padding: 30px;
}

.admin-access-card {
  max-width: 680px;
  padding: clamp(35px, 7vw, 75px);
  border: 1px solid var(--line);
  border-radius: 25px;
  background: #fafbf8;
}

.admin-access-card .admin-kicker {
  margin-top: 50px;
}

.admin-access-card .admin-notice {
  margin: 24px 0 0;
  padding: 14px 16px;
}

.admin-login-form {
  padding: 28px 0 0;
}

.admin-access-card a {
  display: inline-block;
  margin-top: 35px;
  padding: 13px 17px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
}

@media (max-width: 1050px) {
  .admin-overview,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-stats {
    width: max-content;
  }

  .admin-editor-panel {
    order: -1;
  }
}

@media (max-width: 760px) {
  .legal-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .legal-header nav {
    width: 100%;
    gap: 15px;
    justify-content: space-between;
  }

  .legal-header nav a:last-child {
    padding: 8px 10px;
  }

  .legal-hero {
    padding: 75px 5vw 55px;
  }

  .legal-hero h1 {
    font-size: 4rem;
  }

  .legal-hero > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 65px;
    padding-top: 75px;
  }

  .legal-layout > aside {
    position: static;
  }

  .legal-content section {
    padding-left: 44px;
  }

  .legal-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
  }

  .admin-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .admin-account {
    width: 100%;
    justify-content: space-between;
  }

  .admin-overview {
    padding-top: 55px;
  }

  .admin-stats {
    width: 100%;
    grid-template-columns: repeat(3, 1fr);
  }

  .admin-layout {
    padding: 0 3vw;
  }

  .admin-product-list article {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .admin-row-actions {
    grid-column: 1 / -1;
    padding-left: 66px;
  }

  .admin-field-pair {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) {
  .hero {
    min-height: 0;
    grid-template-columns: 1fr;
    padding-top: 90px;
  }

  .hero-copy {
    max-width: 820px;
  }

  .hero h1 {
    font-size: clamp(5rem, 11vw, 8rem);
  }

  .release-board {
    max-width: 860px;
  }

  .studio-card {
    grid-template-columns: 1fr;
  }

  .studio-copy {
    min-height: 650px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
}

@media (max-width: 850px) {
  #work,
  #studio {
    scroll-margin-top: 68px;
  }

  .site-header {
    min-height: 68px;
    grid-template-columns: 1fr auto;
  }

  .header-contact {
    display: none;
  }

  .site-header nav {
    justify-self: end;
  }

  .hero {
    padding: 72px 5vw 78px;
  }

  .section-intro,
  .section-intro > div {
    grid-template-columns: 1fr;
  }

  .section-intro {
    gap: 34px;
  }

  .section-intro > div {
    gap: 24px;
  }

  .section-intro p {
    max-width: 560px;
  }

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

  .product-card-wide {
    grid-column: auto;
  }
}

@media (max-width: 650px) {
  .site-header {
    padding: 0 4vw;
  }

  .brand-copy {
    display: none;
  }

  .site-header nav {
    gap: 1px;
  }

  .site-header nav button {
    padding: 7px 11px;
    font-size: 0.69rem;
  }

  .hero h1 {
    margin: 38px 0 27px;
    font-size: clamp(3.65rem, 16.5vw, 5.4rem);
  }

  .hero-copy > p {
    font-size: 0.93rem;
  }

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

  .hero-actions button,
  .hero-actions a {
    width: 100%;
    justify-content: space-between;
  }

  .release-board {
    border-radius: 20px;
  }

  .release-board-head {
    padding: 17px;
  }

  .release-item {
    min-height: 108px;
    padding: 12px 5px 10px;
  }

  .release-icon {
    width: 47px;
    height: 47px;
    border-radius: 12px;
  }

  .release-item > span:not(.product-icon) {
    font-size: 0.58rem;
  }

  .release-item small {
    font-size: 0.5rem;
  }

  .release-board-foot > div {
    padding: 18px 14px;
  }

  .release-board-foot strong {
    font-size: 1.12rem;
  }

  .release-board-foot span {
    font-size: 0.51rem;
  }

  .work {
    padding: 90px 4.5vw 105px;
  }

  .section-intro {
    margin-bottom: 48px;
  }

  .section-intro h2 {
    font-size: 3.65rem;
  }

  .collection-switch button {
    min-height: 62px;
    padding: 0 15px;
  }

  .collection-summary {
    align-items: flex-start;
    gap: 18px;
    font-size: 0.61rem;
  }

  .collection-summary > div {
    max-width: 75%;
  }

  .product-card {
    min-height: 0;
    padding: 20px;
  }

  .product-card-main {
    align-items: flex-start;
    gap: 14px;
  }

  .product-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 15px;
  }

  .product-card h3 {
    font-size: 1.43rem;
  }

  .product-meta {
    gap: 6px;
    font-size: 0.52rem;
  }

  .product-meta span + span::before {
    margin-right: 6px;
  }

  .product-card-footer {
    align-items: flex-end;
  }

  .studio {
    padding: 18px;
  }

  .studio-card {
    border-radius: 22px;
  }

  .studio-copy {
    min-height: 590px;
    padding: 52px 30px;
  }

  .studio-copy .section-kicker {
    margin-bottom: 48px;
  }

  .studio-copy h2 {
    font-size: 3.5rem;
  }

  .studio-principles {
    grid-template-columns: 1fr;
  }

  .studio-principles article,
  .studio-principles article:nth-child(2n),
  .studio-principles article:nth-child(n + 3) {
    min-height: 300px;
    padding: 35px 30px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .studio-principles article:last-child {
    border-bottom: 0;
  }

  footer {
    grid-template-columns: 1fr;
    padding: 70px 5vw 28px;
  }

  footer > a {
    width: max-content;
  }

  .footer-bottom {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-bottom > div,
  .footer-bottom button {
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
