@font-face {
  font-family: "Wix Madefor Display";
  src: url("../fonts/WixMadeforDisplay-Regular.ttf?v=20260901-fonts-v2") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Wix Madefor Display";
  src: url("../fonts/WixMadeforDisplay-Bold.ttf?v=20260901-fonts-v2") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --md-charcoal: #1b1b1a;
  --md-ink: #26231f;
  --md-paper: #f5f1e8;
  --md-beige: #e5e0d3;
  --md-taupe: #7b7168;
  --md-earth: #5d4534;
  --md-moss: #7d8060;
  --md-water: #152b41;
  --md-mist: #aeb8bb;
  --md-clay: #ad7464;
  --md-ember: #743026;
  --md-line: rgba(38, 35, 31, 0.18);
  --md-muted: rgba(38, 35, 31, 0.68);
  --md-serif: Georgia, "Times New Roman", serif;
  --md-sans: "Wix Madefor Display", Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--md-beige);
  color: var(--md-ink);
  font-family: var(--md-sans);
  letter-spacing: 0;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

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

.site-header {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 30px;
  align-items: center;
  min-height: 82px;
  padding: 16px clamp(20px, 4vw, 56px);
  background: var(--md-charcoal);
  color: var(--md-paper);
}

.mark {
  display: inline-flex;
  width: 48px;
  height: 46px;
  align-items: center;
  justify-content: center;
}

.mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: invert(1);
}

.site-nav,
.header-actions,
.category-nav,
.catalog-actions {
  display: flex;
  align-items: center;
}

.site-nav {
  flex-wrap: wrap;
  gap: clamp(16px, 2.2vw, 32px);
  justify-content: center;
  font-size: 12px;
}

.site-nav a,
.header-actions a,
.text-link {
  border-bottom: 1px solid transparent;
}

.site-nav a:hover,
.header-actions a:hover,
.text-link:hover {
  border-bottom-color: currentColor;
}

.header-actions {
  gap: 18px;
  font-size: 12px;
}

.cart-link {
  display: inline-flex;
  gap: 7px;
  align-items: center;
}

.cart-count {
  display: inline-grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid rgba(245, 241, 232, 0.55);
  border-radius: 50%;
  font-size: 10px;
}

.page-shell {
  padding: 0 clamp(20px, 4vw, 56px);
}

.catalog-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: clamp(32px, 7vw, 96px);
  padding: clamp(58px, 9vw, 128px) 0 clamp(42px, 7vw, 92px);
  border-bottom: 1px solid var(--md-line);
}

.catalog-kicker,
.eyebrow,
.meta,
.filter-heading,
.filter-option,
.status,
.footer-label {
  font-size: 11px;
  line-height: 1.35;
  text-transform: uppercase;
}

.catalog-kicker {
  margin: 0 0 26px;
  color: var(--md-muted);
}

.brand-lockup {
  width: min(330px, 75vw);
  margin-bottom: 26px;
}

.catalog-title {
  max-width: 680px;
  margin: 0;
  font-family: var(--md-serif);
  font-size: clamp(46px, 6.8vw, 90px);
  font-weight: 400;
  line-height: 0.92;
}

.catalog-intro-copy {
  align-self: end;
  max-width: 400px;
  margin: 0;
  color: var(--md-muted);
  font-family: var(--md-serif);
  font-size: clamp(19px, 2.2vw, 29px);
  line-height: 1.25;
}

.catalog-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  padding: 24px 0;
  border-bottom: 1px solid var(--md-line);
}

.category-nav {
  flex-wrap: wrap;
  gap: 9px 20px;
}

.category-nav a {
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  color: var(--md-muted);
  font-size: 13px;
}

.category-nav a[aria-current="page"],
.category-nav a:hover {
  border-bottom-color: var(--md-ink);
  color: var(--md-ink);
}

.catalog-actions {
  gap: 18px;
  justify-content: flex-end;
}

.sort-control,
.filter-toggle {
  min-height: 38px;
  border: 1px solid var(--md-line);
  border-radius: 0;
  background: transparent;
  color: var(--md-ink);
  font-size: 12px;
}

.sort-control {
  padding: 0 12px;
}

.filter-toggle {
  display: none;
  padding: 0 14px;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  padding: 34px 0 clamp(58px, 9vw, 120px);
}

.filters {
  position: sticky;
  top: 20px;
  align-self: start;
}

.filter-group {
  padding: 0 0 21px;
  margin-bottom: 21px;
  border-bottom: 1px solid var(--md-line);
}

.filter-heading {
  display: block;
  margin-bottom: 14px;
  color: var(--md-muted);
}

.filter-option {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 30px;
  color: var(--md-ink);
  cursor: pointer;
}

.filter-option input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--md-charcoal);
}

.swatch {
  width: 11px;
  height: 11px;
  border: 1px solid rgba(38, 35, 31, 0.26);
  border-radius: 50%;
}

.swatch.earth { background: var(--md-earth); }
.swatch.water { background: var(--md-water); }
.swatch.air { background: var(--md-taupe); }
.swatch.fire { background: var(--md-clay); }

.catalog-main {
  min-width: 0;
}

.catalog-meta {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 22px;
  color: var(--md-muted);
  font-size: 12px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--md-line);
  border-left: 1px solid var(--md-line);
}

.product-card {
  min-width: 0;
  border-right: 1px solid var(--md-line);
  border-bottom: 1px solid var(--md-line);
  background: var(--md-paper);
}

.product-visual {
  position: relative;
  display: grid;
  min-height: 330px;
  place-items: center;
  overflow: hidden;
  background: var(--md-paper);
}

.product-visual::after {
  position: absolute;
  right: 14px;
  bottom: 13px;
  color: rgba(38, 35, 31, 0.58);
  content: "moon & dawn";
  font-family: var(--md-serif);
  font-size: 12px;
  font-style: italic;
}

.notebook {
  position: relative;
  width: min(68%, 210px);
  aspect-ratio: 0.7;
  transform: rotate(-5deg);
  border: 1px solid rgba(38, 35, 31, 0.36);
  box-shadow: 13px 15px 0 rgba(38, 35, 31, 0.08);
}

.notebook::before {
  position: absolute;
  top: 12%;
  bottom: 12%;
  left: 16%;
  width: 1px;
  background: currentColor;
  content: "";
  opacity: 0.65;
}

.notebook::after {
  position: absolute;
  right: 14%;
  bottom: 15%;
  left: 23%;
  content: "начни с\A чистого листа";
  white-space: pre;
  font-family: var(--md-serif);
  font-size: clamp(13px, 1.2vw, 18px);
  font-style: italic;
  line-height: 1.1;
}

.notebook.earth {
  background: #8b725c;
  color: var(--md-paper);
}

.notebook.water {
  background: #28445b;
  color: var(--md-paper);
}

.notebook.air {
  background: #cbc3b2;
  color: var(--md-ink);
}

.notebook.fire {
  background: #9b4d3f;
  color: var(--md-paper);
}

.product-copy {
  min-height: 134px;
  padding: 17px 18px 20px;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
  color: var(--md-muted);
}

.status {
  letter-spacing: 0;
}

.product-title {
  display: inline-block;
  margin-bottom: 8px;
  border-bottom: 1px solid transparent;
  font-family: var(--md-serif);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.05;
}

.product-title:hover {
  border-bottom-color: currentColor;
}

.product-details {
  margin: 0;
  color: var(--md-muted);
  font-size: 12px;
  line-height: 1.45;
}

.product-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
}

.price {
  font-size: 13px;
}

.add-button {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--md-ink);
  border-radius: 50%;
  background: transparent;
  color: var(--md-ink);
  font-size: 19px;
  line-height: 1;
}

.add-button:hover {
  background: var(--md-charcoal);
  color: var(--md-paper);
}

.collection-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  min-height: 400px;
  margin-top: clamp(42px, 7vw, 92px);
  background: var(--md-charcoal);
  color: var(--md-paper);
}

.collection-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: end;
  padding: clamp(30px, 5vw, 64px);
}

.collection-copy h2 {
  max-width: 420px;
  margin: 18px 0 22px;
  font-family: var(--md-serif);
  font-size: clamp(34px, 4vw, 58px);
  font-weight: 400;
  line-height: 1;
}

.collection-copy p {
  max-width: 390px;
  margin: 0 0 25px;
  color: rgba(245, 241, 232, 0.75);
  font-size: 13px;
  line-height: 1.7;
}

.outline-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border-bottom: 1px solid currentColor;
  font-size: 12px;
}

.collection-image {
  min-height: 280px;
  background: url("../images/moon-dawn-still-life.png") center / cover no-repeat;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 26px;
  padding: clamp(38px, 6vw, 72px) clamp(20px, 4vw, 56px);
  background: var(--md-paper);
  border-top: 1px solid var(--md-line);
}

.footer-logo {
  width: min(220px, 100%);
  margin-bottom: 26px;
}

.footer-note {
  max-width: 240px;
  margin: 0;
  color: var(--md-muted);
  font-family: var(--md-serif);
  font-size: 16px;
  line-height: 1.35;
}

.footer-label {
  display: block;
  margin-bottom: 15px;
  color: var(--md-muted);
}

.footer-links {
  display: grid;
  gap: 10px;
  font-size: 13px;
}

.footer-links a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--md-water);
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 52px 1fr auto;
    gap: 18px;
  }

  .site-nav {
    gap: 12px 18px;
  }

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

@media (max-width: 720px) {
  .site-header {
    grid-template-columns: 44px 1fr auto;
    gap: 10px;
    min-height: 70px;
    padding: 12px 20px;
  }

  .mark {
    width: 40px;
    height: 38px;
  }

  .site-nav {
    display: flex;
    grid-column: 1 / -1;
    grid-row: 2;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 3px 0 2px;
  }

  .site-nav a {
    flex: 0 0 auto;
  }

  .header-actions a:first-child {
    display: none;
  }

  .page-shell {
    padding: 0 20px;
  }

  .catalog-intro {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .catalog-intro-copy {
    font-size: 21px;
  }

  .catalog-controls {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .category-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .category-nav a {
    flex: 0 0 auto;
  }

  .catalog-actions {
    justify-content: space-between;
  }

  .filter-toggle {
    display: inline-flex;
    align-items: center;
  }

  .catalog-layout {
    grid-template-columns: 1fr;
    padding-top: 24px;
  }

  .filters {
    display: none;
  }

  .product-visual {
    min-height: 260px;
  }

  .collection-panel,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .collection-image {
    min-height: 260px;
    grid-row: 1;
  }

  .collection-copy {
    min-height: 320px;
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-visual {
    min-height: 325px;
  }

  .catalog-title,
  .account-heading h1,
  .states-page h1 {
    font-size: clamp(38px, 12vw, 46px);
    overflow-wrap: anywhere;
  }

  .promo-form {
    grid-template-columns: 1fr;
  }

  .promo-form .primary-button {
    width: 100%;
  }
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding: 20px 0;
  border-bottom: 1px solid var(--md-line);
  color: var(--md-muted);
  font-size: 11px;
}

.breadcrumb a:hover {
  color: var(--md-ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.product-page {
  padding: clamp(30px, 5vw, 72px) 0 clamp(58px, 9vw, 120px);
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.74fr);
  gap: clamp(34px, 7vw, 104px);
  align-items: start;
}

.product-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: var(--md-line);
}

.gallery-frame {
  display: grid;
  min-height: clamp(280px, 36vw, 490px);
  place-items: center;
  margin: 0;
  overflow: hidden;
  background: var(--md-paper);
}

.gallery-frame .notebook {
  width: min(62%, 280px);
}

.gallery-frame:nth-child(2) .notebook {
  transform: rotate(6deg);
}

.gallery-material {
  min-height: clamp(280px, 36vw, 490px);
  background: url("../images/moon-dawn-still-life.png") center / cover no-repeat;
}

.gallery-note {
  display: grid;
  min-height: clamp(280px, 36vw, 490px);
  place-items: end start;
  padding: 28px;
  background: var(--md-earth);
  color: var(--md-paper);
}

.gallery-note p {
  max-width: 190px;
  margin: 0;
  font-family: var(--md-serif);
  font-size: clamp(22px, 2.5vw, 36px);
  font-style: italic;
  line-height: 1.05;
}

.product-info {
  position: sticky;
  top: 25px;
}

.product-info .meta {
  margin: 0 0 18px;
  color: var(--md-muted);
}

.product-name {
  max-width: 520px;
  margin: 0 0 20px;
  font-family: var(--md-serif);
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 400;
  line-height: 0.94;
}

.product-description {
  max-width: 460px;
  margin: 0 0 28px;
  color: var(--md-muted);
  font-family: var(--md-serif);
  font-size: 19px;
  line-height: 1.35;
}

.product-price {
  margin: 0 0 26px;
  font-size: 18px;
}

.purchase-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  margin-bottom: 15px;
}

.quantity-control {
  display: grid;
  grid-template-columns: 38px 38px 38px;
  min-height: 44px;
  border: 1px solid var(--md-line);
}

.quantity-control button {
  border: 0;
  border-right: 1px solid var(--md-line);
  background: transparent;
  color: var(--md-ink);
  font-size: 18px;
}

.quantity-control button:last-child {
  border-right: 0;
}

.quantity-control output {
  display: grid;
  place-items: center;
  font-size: 13px;
}

.primary-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--md-charcoal);
  border-radius: 0;
  background: var(--md-charcoal);
  color: var(--md-paper);
  font-size: 13px;
}

.primary-button:hover {
  background: transparent;
  color: var(--md-ink);
}

.secondary-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--md-ink);
  border-radius: 0;
  background: transparent;
  color: var(--md-ink);
  font-size: 12px;
}

.product-note {
  margin: 0;
  color: var(--md-muted);
  font-size: 12px;
  line-height: 1.65;
}

.product-specs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 8px 20px;
  margin: 38px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--md-line);
  font-size: 13px;
  line-height: 1.45;
}

.product-specs dt {
  color: var(--md-muted);
}

.product-specs dd {
  margin: 0;
}

.product-details-section {
  display: grid;
  grid-template-columns: minmax(0, 0.45fr) minmax(0, 1fr);
  gap: clamp(26px, 6vw, 92px);
  padding: clamp(60px, 9vw, 128px) 0;
  border-top: 1px solid var(--md-line);
}

.product-details-section h2,
.recommendations h2 {
  max-width: 360px;
  margin: 0;
  font-family: var(--md-serif);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 400;
  line-height: 1;
}

.product-accordions {
  border-top: 1px solid var(--md-line);
}

.product-accordions details {
  border-bottom: 1px solid var(--md-line);
}

.product-accordions summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  list-style: none;
  cursor: pointer;
  font-size: 15px;
}

.product-accordions summary::-webkit-details-marker {
  display: none;
}

.product-accordions summary::after {
  flex: 0 0 auto;
  content: "+";
  font-size: 19px;
  line-height: 0.8;
}

.product-accordions details[open] summary::after {
  content: "-";
}

.product-accordions p {
  max-width: 610px;
  margin: 0 0 20px;
  color: var(--md-muted);
  font-size: 14px;
  line-height: 1.75;
}

.recommendations {
  padding: 0 0 clamp(60px, 9vw, 120px);
}

.recommendation-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 30px;
}

@media (max-width: 900px) {
  .product-layout {
    grid-template-columns: 1fr;
  }

  .product-info {
    position: static;
  }
}

@media (max-width: 720px) {
  .product-gallery,
  .product-details-section {
    grid-template-columns: 1fr;
  }

  .product-details-section {
    gap: 34px;
  }

  .gallery-frame,
  .gallery-material,
  .gallery-note {
    min-height: 420px;
  }

  .recommendation-head {
    display: grid;
    align-items: start;
  }
}

.brand-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.84fr);
  min-height: min(760px, 78svh);
  border-bottom: 1px solid var(--md-line);
}

.brand-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: end;
  padding: clamp(52px, 8vw, 112px) clamp(28px, 6vw, 84px);
}

.brand-hero-copy .brand-lockup {
  width: min(380px, 78vw);
}

.brand-hero-copy h1 {
  max-width: 680px;
  margin: 0 0 26px;
  font-family: var(--md-serif);
  font-size: clamp(46px, 6.4vw, 88px);
  font-weight: 400;
  line-height: 0.92;
}

.brand-hero-copy p {
  max-width: 440px;
  margin: 0;
  color: var(--md-muted);
  font-family: var(--md-serif);
  font-size: clamp(19px, 2.2vw, 29px);
  line-height: 1.25;
}

.brand-hero-image {
  min-height: 420px;
  background: url("../images/moon-dawn-still-life.png") center / cover no-repeat;
}

.brand-section {
  padding: clamp(64px, 10vw, 146px) 0;
  border-bottom: 1px solid var(--md-line);
}

.brand-section-head {
  display: grid;
  grid-template-columns: minmax(160px, 0.45fr) minmax(0, 1fr);
  gap: clamp(26px, 7vw, 100px);
}

.section-index {
  margin: 5px 0 0;
  color: var(--md-muted);
  font-size: 11px;
  text-transform: uppercase;
}

.brand-large-copy {
  max-width: 760px;
  margin: 0;
  font-family: var(--md-serif);
  font-size: clamp(29px, 4vw, 54px);
  font-weight: 400;
  line-height: 1.08;
}

.brand-support-copy {
  max-width: 560px;
  margin: 28px 0 0;
  color: var(--md-muted);
  font-size: 14px;
  line-height: 1.8;
}

.philosophy-intro {
  position: relative;
  display: grid;
  grid-template-columns: minmax(190px, 0.56fr) minmax(0, 1.44fr);
  column-gap: clamp(36px, 8vw, 132px);
  isolation: isolate;
}

.philosophy-background-ampersand {
  position: absolute;
  top: clamp(-54px, -3vw, -18px);
  left: 38%;
  z-index: 0;
  color: var(--md-ink);
  font-family: var(--md-serif);
  font-size: clamp(280px, 31vw, 400px);
  font-weight: 400;
  line-height: 0.8;
  opacity: 0.045;
  pointer-events: none;
  transform-origin: center;
}

.philosophy-index,
.philosophy-formula-block,
.philosophy-statement,
.philosophy-states {
  position: relative;
  z-index: 1;
}

.philosophy-index { grid-column: 1; }

.philosophy-formula-block {
  grid-column: 1;
  margin-top: clamp(72px, 9vw, 142px);
  align-self: start;
}

.philosophy-formula {
  display: grid;
  grid-template-columns: auto minmax(18px, 34px) auto minmax(18px, 34px) auto;
  gap: 9px;
  align-items: center;
  width: max-content;
  max-width: 100%;
  color: var(--md-ink);
  font-size: 10px;
  line-height: 1;
  text-transform: uppercase;
}

.philosophy-formula i,
.philosophy-meeting span {
  display: block;
  height: 1px;
  background: currentColor;
  opacity: 0.45;
}

.philosophy-formula b,
.philosophy-meeting b {
  font-family: var(--md-serif);
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
}

.philosophy-formula-block p {
  max-width: 245px;
  margin: 26px 0 0;
  color: var(--md-muted);
  font-size: 12px;
  line-height: 1.7;
}

.philosophy-statement {
  grid-column: 2;
  grid-row: 1 / span 2;
  justify-self: end;
  max-width: 760px;
}

.philosophy-statement .brand-large-copy {
  max-width: 690px;
  font-size: clamp(38px, 4.5vw, 64px);
  line-height: 1.01;
}

.philosophy-statement .brand-support-copy {
  max-width: 480px;
  margin-top: clamp(32px, 4vw, 56px);
}

.philosophy-states {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 0.5fr) minmax(0, 1fr);
  gap: clamp(22px, 5vw, 82px);
  align-items: center;
  margin-top: clamp(88px, 11vw, 164px);
}

.philosophy-state {
  max-width: 250px;
}

.philosophy-state--pause { justify-self: end; }
.philosophy-state--intention { justify-self: start; text-align: right; }

.philosophy-state-number {
  display: block;
  color: var(--md-muted);
  font-size: 10px;
  line-height: 1;
}

.philosophy-state h3 {
  margin: 18px 0 24px;
  font-family: var(--md-serif);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 400;
  line-height: 1;
}

.philosophy-state p {
  display: grid;
  gap: 9px;
  margin: 0;
  color: var(--md-muted);
  font-size: 10px;
  line-height: 1.4;
  text-transform: uppercase;
}

.philosophy-meeting {
  display: grid;
  grid-template-columns: minmax(25px, 1fr) auto minmax(25px, 1fr);
  gap: 13px;
  align-items: center;
  color: var(--md-muted);
}

.philosophy-meeting b { font-size: 21px; }

.philosophy-intro[data-animated="true"] .philosophy-index,
.philosophy-intro[data-animated="true"] .philosophy-formula-block,
.philosophy-intro[data-animated="true"] .philosophy-statement,
.philosophy-intro[data-animated="true"] .philosophy-state,
.philosophy-intro[data-animated="true"] .philosophy-meeting {
  opacity: 0;
}

.philosophy-intro[data-animated="true"] .philosophy-index { transition: opacity 700ms ease; }
.philosophy-intro[data-animated="true"] .philosophy-formula-block { transform: translateY(12px); transition: opacity 760ms ease 180ms, transform 760ms cubic-bezier(0.22, 0.61, 0.36, 1) 180ms; }
.philosophy-intro[data-animated="true"] .philosophy-statement { transform: translateY(18px); transition: opacity 850ms ease 80ms, transform 850ms cubic-bezier(0.22, 0.61, 0.36, 1) 80ms; }
.philosophy-intro[data-animated="true"] .philosophy-state--pause { transform: translateX(-28px); transition: opacity 760ms ease 380ms, transform 760ms cubic-bezier(0.22, 0.61, 0.36, 1) 380ms; }
.philosophy-intro[data-animated="true"] .philosophy-state--intention { transform: translateX(28px); transition: opacity 760ms ease 380ms, transform 760ms cubic-bezier(0.22, 0.61, 0.36, 1) 380ms; }
.philosophy-intro[data-animated="true"] .philosophy-meeting { transform: scaleX(0.92); transition: opacity 620ms ease 610ms, transform 620ms cubic-bezier(0.22, 0.61, 0.36, 1) 610ms; }

.philosophy-intro.is-visible .philosophy-index,
.philosophy-intro.is-visible .philosophy-formula-block,
.philosophy-intro.is-visible .philosophy-statement,
.philosophy-intro.is-visible .philosophy-state,
.philosophy-intro.is-visible .philosophy-meeting {
  opacity: 1;
  transform: none;
}

.opposites {
  --moon-share: 50%;
  --opposites-ease: cubic-bezier(0.45, 0, 0.2, 1);
  position: relative;
  display: grid;
  grid-template-columns: var(--moon-share) calc(100% - var(--moon-share));
  height: clamp(270px, 27vw, 350px);
  margin-top: clamp(48px, 8vw, 112px);
  overflow: hidden;
  border-top: 1px solid var(--md-line);
  border-bottom: 1px solid var(--md-line);
  transition: grid-template-columns 900ms var(--opposites-ease);
}

.opposites[data-active="moon"] {
  --moon-share: 68%;
}

.opposites[data-active="dawn"] {
  --moon-share: 32%;
}

.opposites::after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--moon-share);
  z-index: 3;
  width: 1px;
  background: rgba(245, 241, 232, 0.34);
  content: "";
  transform: translateX(-0.5px);
  transition: left 900ms var(--opposites-ease), background-color 900ms var(--opposites-ease);
}

.opposite {
  position: relative;
  min-width: 0;
  padding: clamp(25px, 4vw, 54px);
  overflow: hidden;
  border: 0;
  border-radius: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
}

.opposite--moon {
  background: var(--md-charcoal);
  color: var(--md-paper);
}

.opposite--dawn {
  background: var(--md-beige);
  color: var(--md-ink);
}

.opposite-copy {
  position: relative;
  z-index: 2;
  display: block;
  max-width: 340px;
  transition: transform 900ms var(--opposites-ease);
}

.opposite-name {
  display: block;
  margin-bottom: 22px;
  font-family: var(--md-serif);
  font-size: clamp(30px, 3.5vw, 48px);
  font-weight: 400;
  line-height: 1;
}

.opposite-description {
  display: block;
  max-width: 350px;
  color: currentColor;
  font-size: 13px;
  line-height: 1.75;
  opacity: 0.72;
  transition: opacity 700ms var(--opposites-ease);
}

.opposite-graphic {
  position: absolute;
  z-index: 1;
  fill: none;
  pointer-events: none;
  stroke: currentColor;
  stroke-width: 1;
  transition: transform 900ms var(--opposites-ease), opacity 900ms var(--opposites-ease);
}

.moon-orbit {
  top: 50%;
  right: -56px;
  width: clamp(290px, 32vw, 430px);
  height: clamp(290px, 32vw, 430px);
  opacity: 0.17;
  transform: translateY(-50%) scale(1);
}

.dawn-sun {
  right: -84px;
  bottom: -152px;
  width: clamp(330px, 34vw, 460px);
  height: auto;
  color: var(--md-taupe);
  opacity: 0.34;
  transform: translateY(0);
}

.opposites[data-active="moon"] .opposite--moon .opposite-copy {
  transform: translateX(14px);
}

.opposites[data-active="dawn"] .opposite--dawn .opposite-copy {
  transform: translateX(-14px);
}

.opposites[data-active="moon"] .opposite--moon .opposite-description,
.opposites[data-active="dawn"] .opposite--dawn .opposite-description {
  opacity: 0.92;
}

.opposites[data-active="moon"] .opposite--dawn .opposite-description,
.opposites[data-active="dawn"] .opposite--moon .opposite-description {
  opacity: 0.47;
}

.opposites[data-active="moon"] .moon-orbit {
  opacity: 0.25;
  transform: translateY(-50%) scale(1.035);
}

.opposites[data-active="dawn"] .dawn-sun {
  opacity: 0.5;
  transform: translateY(-16px);
}

.opposites[data-active="dawn"]::after {
  background: rgba(38, 35, 31, 0.24);
}

.opposites-ampersand {
  position: absolute;
  top: 50%;
  left: var(--moon-share);
  z-index: 4;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(38, 35, 31, 0.38);
  border-radius: 50%;
  background: var(--md-beige);
  color: var(--md-ink);
  font-family: var(--md-serif);
  font-size: 22px;
  line-height: 1;
  pointer-events: auto;
  touch-action: none;
  cursor: ew-resize;
  user-select: none;
  transform: translate(-50%, -50%);
  transition: left 900ms var(--opposites-ease);
}

.opposites-ampersand::before {
  content: '';
  position: absolute;
  inset: -8px;
}

.opposites.is-dragging,
.opposites.is-dragging::after,
.opposites.is-dragging .opposites-ampersand {
  transition: none;
}

.opposites-hint {
  display: grid;
  grid-template-columns: minmax(20px, 1fr) auto minmax(20px, 1fr);
  gap: 13px;
  align-items: center;
  margin-top: 16px;
  color: var(--md-muted);
}

.opposites-hint span {
  height: 1px;
  background: var(--md-line);
}

.opposites-hint p {
  margin: 0;
  font-size: 10px;
  line-height: 1.35;
  text-align: center;
  text-transform: uppercase;
}

.opposite:focus-visible {
  position: relative;
  z-index: 5;
  outline: 1px solid currentColor;
  outline-offset: -5px;
}

@media (prefers-reduced-motion: reduce) {
  .philosophy-intro[data-animated="true"] .philosophy-index,
  .philosophy-intro[data-animated="true"] .philosophy-formula-block,
  .philosophy-intro[data-animated="true"] .philosophy-statement,
  .philosophy-intro[data-animated="true"] .philosophy-state,
  .philosophy-intro[data-animated="true"] .philosophy-meeting,
  .opposites,
  .opposites::after,
  .opposites-ampersand,
  .opposite-copy,
  .opposite-description,
  .opposite-graphic {
    transition: none;
  }
}

@media (max-width: 720px) {
  .philosophy-intro {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .philosophy-background-ampersand {
    top: 48px;
    left: auto;
    right: -16px;
    font-size: clamp(210px, 62vw, 300px);
    opacity: 0.035;
  }

  .philosophy-index { order: 0; }

  .philosophy-formula-block {
    order: 1;
    margin-top: 38px;
  }

  .philosophy-statement {
    order: 2;
    align-self: auto;
    margin-top: 54px;
  }

  .philosophy-statement .brand-large-copy {
    font-size: 30px;
    overflow-wrap: anywhere;
  }

  .philosophy-statement .brand-support-copy {
    margin-top: 28px;
  }

  .philosophy-statement .brand-support-copy br { display: none; }

  .philosophy-states {
    order: 3;
    grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    margin-top: 72px;
  }

  .philosophy-state,
  .philosophy-state--pause,
  .philosophy-state--intention {
    justify-self: start;
    max-width: none;
    text-align: left;
  }

  .philosophy-state h3 { margin-bottom: 18px; font-size: 25px; }

  .philosophy-state p {
    grid-template-columns: minmax(0, 1fr);
    column-gap: 18px;
    row-gap: 8px;
  }

  .philosophy-meeting {
    grid-template-columns: 1fr;
    justify-items: center;
    margin-top: 28px;
    order: 1;
  }

  .philosophy-meeting span { display: none; }

  .philosophy-state--pause { order: 0; }
  .philosophy-state--intention { order: 2; }

  .opposites {
    height: 322px;
    margin-top: 62px;
  }

  .opposites[data-active="moon"] {
    --moon-share: 66%;
  }

  .opposites[data-active="dawn"] {
    --moon-share: 34%;
  }

  .opposite {
    padding: 22px 17px 26px;
  }

  .opposite-name {
    margin-bottom: 16px;
    font-size: 30px;
  }

  .opposite-description {
    font-size: 11px;
    line-height: 1.55;
  }

  .moon-orbit {
    right: -102px;
    width: 265px;
    height: 265px;
  }

  .dawn-sun {
    right: -142px;
    bottom: -122px;
    width: 340px;
  }

  .opposites-ampersand {
    width: 32px;
    height: 32px;
    font-size: 19px;
  }

  .opposites-hint {
    gap: 9px;
    margin-top: 13px;
  }

  .opposites-hint p {
    max-width: 170px;
    font-size: 9px;
  }
}

.principles-head {
  display: block;
}

.principles-head .section-index {
  margin-bottom: clamp(44px, 5vw, 74px);
}

.principles-head .brand-large-copy {
  max-width: 660px;
  margin: 0;
}

.principle-list {
  margin-top: clamp(84px, 9vw, 148px);
  border-top: 1px solid var(--md-line);
}

.principle {
  display: grid;
  grid-template-columns: 42px 128px minmax(230px, 0.58fr) minmax(260px, 0.72fr);
  column-gap: clamp(22px, 3vw, 52px);
  align-items: center;
  min-height: 104px;
  padding: clamp(21px, 2.3vw, 31px) 0;
  border-bottom: 1px solid var(--md-line);
}

.principle-number {
  color: var(--md-muted);
  font-family: var(--md-sans);
  font-size: 11px;
  line-height: 1;
}

.principle-symbol {
  display: grid;
  width: 128px;
  height: 80px;
  place-items: center;
}

.principle-icon {
  width: 116px;
  height: 76px;
  overflow: visible;
}

.principle-icon--space,
.principle-icon--texture,
.principle-icon--detail {
  fill: none;
  stroke: var(--md-ink);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.space-corner,
.contrast-solid,
.contrast-outline,
.detail-front {
  transform-box: fill-box;
  transform-origin: center;
}

.space-corner {
  animation: principle-space-open 8.6s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

.principle-icon--contrast .contrast-solid {
  fill: var(--md-charcoal);
  animation: principle-contrast-solid 7.4s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

.principle-icon--contrast .contrast-outline {
  fill: none;
  stroke: var(--md-ink);
  stroke-width: 1.2;
  animation: principle-contrast-outline 7.4s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

.principle-icon--detail .detail-front {
  fill: var(--md-beige);
  animation: principle-detail 6.8s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

@keyframes principle-space-open {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(var(--space-x), var(--space-y)); }
}

@keyframes principle-contrast-solid {
  0%, 100% { transform: translateX(0); }
  48% { transform: translateX(11px); }
  63% { transform: translateX(8px); }
}

@keyframes principle-contrast-outline {
  0%, 100% { transform: translateX(0); }
  48% { transform: translateX(-11px); }
  63% { transform: translateX(-8px); }
}

@keyframes principle-detail {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-13px); }
}

@media (prefers-reduced-motion: reduce) {
  .principle-icon .space-corner,
  .principle-icon .contrast-solid,
  .principle-icon .contrast-outline,
  .principle-icon .detail-front {
    animation: none;
  }

  .principle-icon animate {
    display: none;
  }
}

.principle h3 {
  margin: 0;
  font-family: var(--md-serif);
  font-size: clamp(25px, 2.1vw, 32px);
  font-weight: 400;
  line-height: 1;
}

.principle p {
  max-width: 520px;
  margin: 0;
  color: var(--md-muted);
  font-size: 13px;
  line-height: 1.75;
}

.principles-tail {
  max-width: 520px;
  margin: clamp(42px, 6vw, 84px) 0 0 auto;
  font-family: var(--md-serif);
  font-size: clamp(31px, 3.6vw, 52px);
  font-weight: 400;
  line-height: 1.04;
}

.principles-tail em {
  font-style: italic;
}

.material-divider {
  padding: 0;
  border-bottom: 0;
}

.material-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  min-height: 510px;
  margin-top: 0;
  background: var(--md-earth);
  color: var(--md-paper);
}

.material-image {
  min-height: 310px;
  background: url("../images/moon-dawn-still-life.png") center / cover no-repeat;
}

.material-copy {
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: clamp(30px, 6vw, 86px);
}

.material-copy h2 {
  max-width: 500px;
  margin: 0 0 22px;
  font-family: var(--md-serif);
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 400;
  line-height: 1;
}

.material-copy p {
  max-width: 480px;
  margin: 0;
  color: rgba(245, 241, 232, 0.76);
  font-size: 14px;
  line-height: 1.8;
}

.elements-stage {
  display: grid;
  grid-template-columns: 25fr 25fr 25fr 25fr;
  height: clamp(330px, 33vw, 470px);
  margin-top: clamp(48px, 7vw, 96px);
  overflow: hidden;
  transition: grid-template-columns 1250ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.elements-stage[data-active="earth"] { grid-template-columns: 46fr 18fr 18fr 18fr; }
.elements-stage[data-active="water"] { grid-template-columns: 18fr 46fr 18fr 18fr; }
.elements-stage[data-active="air"] { grid-template-columns: 18fr 18fr 46fr 18fr; }
.elements-stage[data-active="fire"] { grid-template-columns: 18fr 18fr 18fr 46fr; }

.element-panel {
  position: relative;
  display: block;
  min-width: 0;
  padding: clamp(22px, 2.4vw, 38px);
  overflow: hidden;
  border: 0;
  border-radius: 0;
  color: var(--md-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: color 1250ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.element-panel:focus-visible { outline: 1px solid currentColor; outline-offset: -8px; }
.element-panel.earth { background: #b6a287; }
.element-panel.water { background: #496174; color: var(--md-paper); }
.element-panel.air { background: #d8d1c3; }
.element-panel.fire { background: #9c6556; color: var(--md-paper); }

.element-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.element-number {
  font-size: 11px;
  line-height: 1;
  opacity: 0.72;
}

.element-name {
  margin-top: auto;
  overflow: hidden;
  font-family: var(--md-serif);
  font-size: clamp(27px, 2.75vw, 42px);
  font-weight: 400;
  line-height: 0.96;
  transition: font-size 1250ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.element-description {
  max-width: 250px;
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.65;
  opacity: 0.72;
  transition: opacity 1250ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.elements-stage[data-active] .element-panel[aria-pressed="true"] .element-name {
  font-size: clamp(48px, 5.8vw, 76px);
}

.elements-stage[data-active] .element-panel[aria-pressed="true"] .element-description { opacity: 0.94; }

.element-graphic {
  position: absolute;
  right: -22%;
  bottom: -10%;
  width: 130%;
  height: auto;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.15;
  opacity: 0.48;
  pointer-events: none;
}

.element-graphic--earth { color: var(--md-earth); }
.element-graphic--water { color: rgba(245, 241, 232, 0.8); }
.element-graphic--air { color: rgba(38, 35, 31, 0.52); }
.element-graphic--fire { color: rgba(245, 241, 232, 0.8); }
.element-graphic--air .air-dot { fill: currentColor; stroke: none; }

.elements-stage[data-active="earth"] .earth-line--one { animation: element-earth-one 11s ease-in-out infinite; }
.elements-stage[data-active="earth"] .earth-line--two { animation: element-earth-two 13s ease-in-out infinite; }
.elements-stage[data-active="earth"] .earth-line--three { animation: element-earth-three 12s ease-in-out infinite; }
.elements-stage[data-active="water"] .water-line--one { animation: element-water-one 9.5s cubic-bezier(0.45, 0, 0.55, 1) infinite; }
.elements-stage[data-active="water"] .water-line--two { animation: element-water-two 11s cubic-bezier(0.45, 0, 0.55, 1) infinite; }
.elements-stage[data-active="water"] .water-line--three { animation: element-water-three 10.5s cubic-bezier(0.45, 0, 0.55, 1) infinite; }
.elements-stage[data-active="air"] .air-line { animation: element-air-line 9s ease-in-out infinite; }
.elements-stage[data-active="air"] .air-dot { animation: element-air-dot 8.5s ease-in-out infinite; }
.elements-stage[data-active="fire"] .fire-line--one { animation: element-fire-one 7.4s ease-in-out infinite; }
.elements-stage[data-active="fire"] .fire-line--two { animation: element-fire-two 8.4s ease-in-out infinite; }
.elements-stage[data-active="fire"] .fire-line--three { animation: element-fire-three 7.8s ease-in-out infinite; }
.elements-stage[data-active="fire"] .fire-line--four { animation: element-fire-four 8.8s ease-in-out infinite; }

@keyframes element-earth-one { 50% { transform: translate(-14px, -5px); } }
@keyframes element-earth-two { 50% { transform: translate(9px, 4px); } }
@keyframes element-earth-three { 50% { transform: translate(-7px, 7px); } }
@keyframes element-water-one { 50% { transform: translateX(30px); } }
@keyframes element-water-two { 50% { transform: translateX(-25px); } }
@keyframes element-water-three { 50% { transform: translateX(20px); } }
@keyframes element-air-line { 50% { transform: translate(16px, -8px); } }
@keyframes element-air-dot { 50% { transform: translate(23px, -10px); } }
@keyframes element-fire-one { 50% { transform: translate(-4px, -19px); } }
@keyframes element-fire-two { 50% { transform: translate(6px, -14px); } }
@keyframes element-fire-three { 50% { transform: translate(-6px, -23px); } }
@keyframes element-fire-four { 50% { transform: translate(5px, -16px); } }

.elements-hint {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  color: var(--md-muted);
}

.elements-hint span {
  display: block;
  flex: 1;
  height: 1px;
  background: var(--md-line);
}

.elements-hint span::before {
  display: block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.elements-hint span:last-child::before { margin-left: auto; }

.elements-hint p,
.elements-keyboard-hint {
  margin: 0;
  font-size: 10px;
  line-height: 1.4;
  text-align: center;
  text-transform: uppercase;
}

.elements-keyboard-hint {
  margin-top: 6px;
  color: var(--md-muted);
  font-size: 9px;
  text-transform: none;
}

.brand-ending {
  --ending-accent: var(--md-water);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(180px, .65fr) minmax(0, 1.15fr);
  gap: 48px;
  padding: 100px 0 110px;
  border-top: 1px solid var(--md-line);
  align-items: center;
}
.brand-ending[data-choice="earth"] { --ending-accent: var(--md-earth); }
.brand-ending[data-choice="air"] { --ending-accent: var(--md-mist); }
.brand-ending[data-choice="fire"] { --ending-accent: var(--md-ember); }
.ending-kicker { font: 10px/1.6 var(--md-sans); text-transform: uppercase; margin: 0 0 28px; }
.ending-intro h2 { font: 400 48px/1.1 var(--md-serif); margin: 0 0 30px; }
.ending-intro > p:last-child { font-size: 13px; line-height: 1.9; color: var(--md-muted); }
.ending-choices button { display: grid; grid-template-columns: 20px auto minmax(12px, 1fr) 8px; gap: 12px; align-items: center; width: 100%; min-height: 56px; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--md-muted); cursor: pointer; text-align: left; }
.ending-choices small { font: 10px var(--md-sans); }
.ending-choices button span { font: 26px var(--md-serif); }
.ending-choices i { height: 1px; background: var(--md-line); }
.ending-choices b { width: 6px; height: 6px; border: 1px solid currentColor; border-radius: 50%; transition: background 650ms, transform 650ms; }
.ending-choices [aria-pressed="true"] { color: var(--md-ink); }
.ending-choices [aria-pressed="true"] b { background: var(--ending-accent); border-color: var(--ending-accent); transform: translateX(3px); }
.ending-choices button:focus-visible, .ending-link:focus-visible { outline: 1px solid var(--md-ink); outline-offset: 6px; }
.ending-product { position: relative; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) 108px; gap: 24px; align-items: center; }
.ending-contour { position: absolute; width: 125%; height: 100%; left: -12%; top: -25px; pointer-events: none; fill: none; stroke: var(--ending-accent); stroke-width: 1; opacity: .22; }
.ending-contour [data-contour] { opacity: 0; transition: opacity 750ms; }
[data-choice="earth"] [data-contour="earth"], [data-choice="water"] [data-contour="water"], [data-choice="air"] [data-contour="air"], [data-choice="fire"] [data-contour="fire"] { opacity: 1; }
.ending-stack { position: relative; aspect-ratio: 3 / 4; margin: 25px 0; }
.ending-stack img { position: absolute; width: 100%; height: 100%; object-fit: contain; transform: translate(-16px, -12px) rotate(-2deg); }
.ending-stack img:nth-child(even) { transform: translate(16px, -8px) rotate(2deg); }
.ending-stack [data-cover="water"] { z-index: 2; transform: translate(0, 10px) rotate(0deg); }
.ending-description { position: relative; font-size: 11px; line-height: 1.8; color: var(--md-muted); }
.ending-description .ending-kicker { margin-bottom: 16px; }
.ending-description span { display: block; color: var(--md-ink); }
.ending-link { position: relative; grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; color: var(--md-ink); text-decoration: none; font-size: 10px; text-transform: uppercase; min-height: 44px; }
.ending-link svg { width: 100px; max-width: 35%; height: 12px; fill: none; stroke: currentColor; stroke-width: 1; overflow: visible; transform-origin: left; transition: transform 700ms; }
.ending-link:hover svg, .ending-link:focus-visible svg { transform: scaleX(1.08); }
.ending-ready .ending-intro, .ending-ready .ending-choices, .ending-ready .ending-product { opacity: 0; transform: translateY(18px); transition: opacity 850ms, transform 850ms; }
.ending-ready .ending-choices { transition-delay: 150ms; }
.ending-ready .ending-product { transition-delay: 350ms; }
.ending-visible .ending-intro, .ending-visible .ending-choices, .ending-visible .ending-product { opacity: 1; transform: none; }
@media (max-width: 1100px) {
  .brand-ending { grid-template-columns: 1fr 1fr; gap: 50px; }
  .ending-intro { grid-column: 1 / -1; max-width: 540px; }
}
@media (max-width: 720px) {
  .brand-ending { grid-template-columns: minmax(0, 1fr); gap: 48px; padding: 64px 0; }
  .ending-intro h2 { font-size: 38px; }
  .ending-product { grid-template-columns: minmax(0, 1fr); }
  .ending-stack { width: 75%; max-width: 320px; justify-self: center; }
  .ending-description { max-width: 230px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .brand-ending *, .brand-ending *::before { transition: none !important; }
}

.brand-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: end;
  padding: clamp(56px, 9vw, 120px) 0;
}

.brand-cta h2 {
  max-width: 680px;
  margin: 0;
  font-family: var(--md-serif);
  font-size: clamp(38px, 5vw, 66px);
  font-weight: 400;
  line-height: 0.98;
}

.story-page { overflow: hidden; }

.story-hero {
  min-height: min(780px, calc(100vh - 76px));
  border-bottom: 1px solid var(--md-line);
}

.story-hero-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(230px, 0.65fr) 108px;
  min-height: inherit;
  gap: clamp(30px, 6vw, 94px);
  padding-top: clamp(76px, 11vw, 164px);
  padding-bottom: clamp(74px, 10vw, 148px);
  isolation: isolate;
}

.story-hero-copy,
.story-hero-lead,
.story-wayfinding { position: relative; z-index: 1; }

.story-hero-copy { align-self: start; }

.story-mobile-copy { display: none; }

.story-hero-copy h1 {
  max-width: 680px;
  margin-top: 26px;
  margin-bottom: 0;
  font-size: clamp(50px, 6.3vw, 88px);
  line-height: 0.94;
}

.story-hero-lead {
  align-self: end;
  max-width: 320px;
  margin: 0 0 clamp(12px, 5vw, 70px);
  color: var(--md-muted);
  font-size: 14px;
  line-height: 1.8;
}

.story-hero-arcs {
  position: absolute;
  top: 18%;
  left: 29%;
  z-index: 0;
  width: min(47vw, 560px);
  fill: none;
  stroke: var(--md-ink);
  stroke-width: 1;
  opacity: 0.1;
  pointer-events: none;
}

.story-wayfinding {
  display: flex;
  flex-direction: column;
  align-self: center;
  gap: 13px;
  color: var(--md-muted);
  font-size: 9px;
  line-height: 1.25;
  text-transform: uppercase;
}

.story-wayfinding span { color: var(--md-ink); }
.story-wayfinding i { width: 1px; height: 55px; margin: 2px 0 5px; background: var(--md-line); }
.story-wayfinding a { color: inherit; text-decoration: none; }
.story-wayfinding a:hover,
.story-wayfinding a:focus-visible { color: var(--md-ink); }

.story-naming,
.story-object,
.story-materials,
.story-today,
.story-finale { border-bottom: 1px solid var(--md-line); }

.story-naming-layout,
.story-object-layout,
.story-materials-layout,
.story-today-layout,
.story-finale-layout { position: relative; }

.story-naming-layout {
  display: grid;
  grid-template-columns: minmax(185px, 0.5fr) minmax(0, 1.3fr) 108px;
  gap: clamp(28px, 6vw, 96px);
  align-items: center;
  padding-top: clamp(86px, 12vw, 172px);
  padding-bottom: clamp(86px, 12vw, 172px);
}

.story-section-label {
  margin: 0 0 28px;
  color: var(--md-muted);
  font-size: 10px;
  line-height: 1;
  text-transform: uppercase;
}

.story-naming-copy > p:last-child,
.story-object-copy > p:last-child,
.story-materials-copy > p:last-child,
.story-today-copy > p:last-child {
  max-width: 290px;
  margin: 0;
  color: var(--md-muted);
  font-size: 13px;
  line-height: 1.8;
}

.story-name-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.story-name-sky {
  color: var(--md-muted);
  font-size: 10px;
  line-height: 1;
  text-transform: uppercase;
}

.story-name-cross {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) minmax(120px, 0.62fr) minmax(110px, 1fr);
  width: min(100%, 670px);
  gap: clamp(18px, 3vw, 48px);
  align-items: center;
  margin: 24px 0;
}

.story-name-side h2 {
  margin: 0 0 18px;
  font-family: var(--md-serif);
  font-size: clamp(47px, 6vw, 82px);
  font-weight: 400;
  line-height: 0.9;
}

.story-name-side p {
  margin: 0;
  color: var(--md-muted);
  font-size: 11px;
  line-height: 1.65;
}

.story-name-meeting {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: center;
  color: var(--md-ink);
}

.story-name-meeting i { height: 1px; background: currentColor; opacity: 0.38; }
.story-name-meeting b { font-family: var(--md-serif); font-size: 35px; font-weight: 400; line-height: 1; }

.story-name-afterthought {
  max-width: 260px;
  margin: 34px 0 0;
  color: var(--md-muted);
  font-size: 11px;
  line-height: 1.65;
}

.story-margin-note {
  display: flex;
  flex-direction: column;
  align-self: center;
  gap: 13px;
  color: var(--md-muted);
  font-size: 10px;
  line-height: 1.45;
  text-transform: uppercase;
}

.story-margin-note span { color: var(--md-ink); }
.story-margin-note i { width: 1px; height: 46px; background: var(--md-line); }
.story-margin-note p { margin: 0; }

.story-object-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(310px, 0.72fr) 108px;
  gap: clamp(28px, 6vw, 96px);
  align-items: center;
  padding-top: clamp(88px, 12vw, 178px);
  padding-bottom: clamp(88px, 12vw, 178px);
}

.story-object-copy h2,
.story-materials-copy h2,
.story-today-copy h2 {
  max-width: 590px;
  margin: 0 0 28px;
  font-family: var(--md-serif);
  font-size: clamp(41px, 5vw, 70px);
  font-weight: 400;
  line-height: 0.96;
}

.story-object-copy > p:last-child { max-width: 510px; }

.story-object-visual { position: relative; min-width: 0; margin: 0; }

.story-object-image {
  min-height: clamp(370px, 42vw, 610px);
  background: url("../images/moon-dawn-still-life.png") center / cover no-repeat;
  transform: translateY(var(--story-parallax, 0));
  will-change: transform;
}

.story-object-visual figcaption {
  position: absolute;
  right: calc(100% + 30px);
  bottom: 0;
  display: grid;
  width: 150px;
  gap: 8px;
  margin: 0;
  color: var(--md-muted);
  font-size: 9px;
  line-height: 1.35;
  text-transform: uppercase;
}

.story-materials { overflow: hidden; }

.story-materials-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.1fr) 108px;
  gap: clamp(28px, 7vw, 112px);
  align-items: center;
  min-height: clamp(570px, 61vw, 790px);
  padding-top: clamp(86px, 11vw, 168px);
  padding-bottom: clamp(86px, 11vw, 168px);
}

.story-materials-copy > p:last-child { max-width: 470px; }

.story-materials-copy,
.story-materials .story-margin-note { position: relative; z-index: 1; }

.story-materials blockquote {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--md-serif);
  max-width: 100%;
  font-size: clamp(60px, 6.2vw, 98px);
  font-style: italic;
  font-weight: 400;
  line-height: 0.84;
}

.story-materials-arc {
  position: absolute;
  right: -15%;
  bottom: -24%;
  z-index: 0;
  width: min(60vw, 740px);
  fill: none;
  stroke: var(--md-earth);
  stroke-width: 1;
  opacity: 0.35;
  pointer-events: none;
}

.story-today-layout {
  display: grid;
  grid-template-columns: minmax(245px, 0.7fr) minmax(0, 1.3fr) 108px;
  gap: clamp(28px, 6vw, 96px);
  align-items: center;
  padding-top: clamp(86px, 12vw, 176px);
  padding-bottom: clamp(86px, 12vw, 176px);
}

.story-today-copy > p:last-child { max-width: 405px; }

.story-fragments {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  min-height: clamp(330px, 34vw, 470px);
}

.story-fragment { background: url("../images/moon-dawn-still-life.png") center / cover no-repeat; }
.story-fragment--cover { background-position: 18% center; }
.story-fragment--texture { background-position: 52% center; }
.story-fragment--paper { background-position: 84% center; }

.story-finale-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(200px, 0.45fr) minmax(155px, 0.3fr);
  gap: clamp(30px, 7vw, 112px);
  align-items: end;
  min-height: min(730px, calc(100vh - 76px));
  padding-top: clamp(90px, 13vw, 190px);
  padding-bottom: clamp(90px, 12vw, 176px);
}

.story-finale h2 {
  max-width: 690px;
  margin: 0;
  font-family: var(--md-serif);
  font-size: clamp(50px, 6.4vw, 88px);
  font-weight: 400;
  line-height: 0.92;
}

.story-final-actions { display: grid; width: min(100%, 360px); gap: 22px; align-self: center; }

.story-text-link {
  display: grid;
  grid-template-columns: 150px minmax(35px, 1fr);
  gap: 12px;
  align-items: center;
  color: var(--md-muted);
  font-size: 13px;
  text-decoration: none;
}

.story-text-link__arrow { display: block; width: 100%; height: 12px; overflow: visible; transition: transform 700ms cubic-bezier(0.22, 0.61, 0.36, 1); }
.story-text-link__arrow path { fill: none; stroke: currentColor; stroke-width: 1; vector-effect: non-scaling-stroke; }
.story-text-link:hover .story-text-link__arrow,
.story-text-link:focus-visible .story-text-link__arrow { transform: translateX(4px); }
.story-text-link--strong { color: var(--md-ink); }
.story-text-link:focus-visible { outline: 1px solid currentColor; outline-offset: 7px; }

.story-final-note {
  margin: 0;
  color: var(--md-muted);
  font-size: 11px;
  line-height: 1.7;
}

.story-reveal[data-story-animated="true"] .story-hero-copy,
.story-reveal[data-story-animated="true"] .story-naming-copy,
.story-reveal[data-story-animated="true"] .story-object-copy,
.story-reveal[data-story-animated="true"] .story-object-visual,
.story-reveal[data-story-animated="true"] .story-materials-copy,
.story-reveal[data-story-animated="true"] .story-materials blockquote,
.story-reveal[data-story-animated="true"] .story-today-copy,
.story-reveal[data-story-animated="true"] .story-fragments,
.story-reveal[data-story-animated="true"] .story-finale h2,
.story-reveal[data-story-animated="true"] .story-final-actions,
.story-reveal[data-story-animated="true"] .story-final-note {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 1000ms cubic-bezier(0.22, 0.61, 0.36, 1), transform 1100ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.story-reveal[data-story-animated="true"] .story-object-visual,
.story-reveal[data-story-animated="true"] .story-materials blockquote,
.story-reveal[data-story-animated="true"] .story-fragments,
.story-reveal[data-story-animated="true"] .story-final-actions { transition-delay: 170ms; }

.story-naming[data-story-animated="true"] .story-name-moon,
.story-naming[data-story-animated="true"] .story-name-dawn,
.story-naming[data-story-animated="true"] .story-name-meeting,
.story-naming[data-story-animated="true"] .story-name-sky,
.story-naming[data-story-animated="true"] .story-name-afterthought {
  opacity: 0;
  transition: opacity 1000ms cubic-bezier(0.22, 0.61, 0.36, 1), transform 1100ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.story-naming[data-story-animated="true"] .story-name-moon { transform: translateX(-30px); }
.story-naming[data-story-animated="true"] .story-name-dawn { transform: translateX(30px); }
.story-naming[data-story-animated="true"] .story-name-meeting { transition-delay: 220ms; }
.story-naming[data-story-animated="true"] .story-name-sky { transition-delay: 400ms; }
.story-naming[data-story-animated="true"] .story-name-afterthought { transform: translateY(14px); transition-delay: 460ms; }

.story-reveal.is-visible .story-hero-copy,
.story-reveal.is-visible .story-naming-copy,
.story-reveal.is-visible .story-object-copy,
.story-reveal.is-visible .story-object-visual,
.story-reveal.is-visible .story-materials-copy,
.story-reveal.is-visible .story-materials blockquote,
.story-reveal.is-visible .story-today-copy,
.story-reveal.is-visible .story-fragments,
.story-reveal.is-visible .story-finale h2,
.story-reveal.is-visible .story-final-actions,
.story-reveal.is-visible .story-final-note,
.story-reveal.is-visible .story-name-moon,
.story-reveal.is-visible .story-name-dawn,
.story-reveal.is-visible .story-name-meeting,
.story-reveal.is-visible .story-name-sky,
.story-reveal.is-visible .story-name-afterthought {
  opacity: 1;
  transform: none;
}

@media (max-width: 960px) {
  .story-hero-layout,
  .story-naming-layout,
  .story-object-layout,
  .story-materials-layout,
  .story-today-layout { grid-template-columns: minmax(0, 1fr) minmax(250px, 0.85fr); }

  .story-wayfinding,
  .story-margin-note { display: none; }

  .story-hero-lead { justify-self: end; }

  .story-finale-layout { grid-template-columns: minmax(0, 1fr) minmax(200px, 0.55fr); }
  .story-final-note { grid-column: 2; }
}

@media (max-width: 720px) {
  .story-hero { min-height: 0; }

  .story-hero-layout,
  .story-naming-layout,
  .story-object-layout,
  .story-materials-layout,
  .story-today-layout,
  .story-finale-layout { grid-template-columns: 1fr; min-height: 0; }

  .story-hero-layout { gap: 58px; padding-top: 68px; padding-bottom: 86px; }
  .story-hero-copy h1 {
    max-width: calc(100vw - 40px);
    font-size: clamp(38px, 10.2vw, 48px);
    overflow-wrap: anywhere;
  }
  .story-desktop-copy { display: none; }
  .story-mobile-copy { display: inline; }
  .story-hero-lead { justify-self: start; margin: 0; }
  .story-hero-arcs { top: 9%; left: 13%; width: 96vw; opacity: 0.08; }

  .story-naming-layout,
  .story-object-layout,
  .story-materials-layout,
  .story-today-layout { padding-top: 78px; padding-bottom: 78px; }

  .story-name-mark { align-items: stretch; text-align: left; }
  .story-name-cross { grid-template-columns: 1fr; gap: 28px; margin: 28px 0; }
  .story-name-side h2 { font-size: clamp(52px, 16vw, 76px); }
  .story-name-meeting { grid-template-columns: minmax(30px, 1fr) auto minmax(30px, 1fr); max-width: 250px; }
  .story-name-sky:last-of-type { text-align: right; }
  .story-name-afterthought { margin-top: 30px; }

  .story-object-visual { order: 2; }
  .story-object-image { min-height: 420px; }
  .story-object-visual figcaption { position: static; width: auto; margin-top: 18px; }

  .story-materials-layout { gap: 60px; }
  .story-materials blockquote { font-size: clamp(38px, 10.5vw, 52px); }
  .story-materials-arc { right: -52%; bottom: -7%; width: 155vw; }

  .story-fragments { min-height: 350px; gap: 7px; }
  .story-today-layout { gap: 52px; }

  .story-finale-layout { gap: 54px; padding-top: 88px; padding-bottom: 98px; }
  .story-finale h2 {
    max-width: calc(100vw - 40px);
    font-size: clamp(38px, 10.2vw, 50px);
    overflow-wrap: anywhere;
  }
  .story-final-actions { width: min(100%, 300px); justify-self: start; }
  .story-final-note { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .story-reveal[data-story-animated="true"] *,
  .story-text-link__arrow { transition: none; }

  .story-object-image { transform: none; }
}

@media (max-width: 720px) {
  .brand-hero,
  .material-layout,
  .brand-cta {
    grid-template-columns: 1fr;
  }

  .brand-hero-image {
    min-height: 330px;
    grid-row: 1;
  }

  .brand-section-head {
    grid-template-columns: 1fr;
  }

  .principles-head {
    display: block;
  }

  .principles-head .brand-large-copy {
    max-width: 570px;
  }

  .principles-head .brand-large-copy br {
    display: none;
  }

  .principles-head .section-index {
    margin-bottom: 36px;
  }

  .principle-list {
    margin-top: 72px;
  }

  .principle {
    grid-template-columns: 80px minmax(0, 1fr);
    grid-template-areas:
      "number number"
      "symbol title"
      "description description";
    column-gap: 16px;
    row-gap: 15px;
    align-items: center;
    min-height: 0;
    padding: 28px 0 32px;
  }

  .principle-number {
    grid-area: number;
  }

  .principle-symbol {
    grid-area: symbol;
    width: 80px;
  }

  .principle-symbol .principle-icon { width: 80px; height: 64px; }

  .principle h3 {
    grid-area: title;
    margin: 0;
    font-size: 25px;
    line-height: 1.12;
  }

  .principle p {
    grid-area: description;
    max-width: none;
  }

  .principles-tail {
    max-width: 440px;
    margin-top: 48px;
    margin-left: 0;
  }

  .material-image {
    min-height: 270px;
  }

  .elements-stage,
  .elements-stage[data-active="earth"],
  .elements-stage[data-active="water"],
  .elements-stage[data-active="air"],
  .elements-stage[data-active="fire"] {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, minmax(0, 125fr));
    height: 500px;
    transition: grid-template-rows 850ms cubic-bezier(0.45, 0, 0.2, 1);
  }

  .elements-stage[data-active="earth"] { grid-template-rows: minmax(0,284fr) minmax(0,72fr) minmax(0,72fr) minmax(0,72fr); }
  .elements-stage[data-active="water"] { grid-template-rows: minmax(0,72fr) minmax(0,284fr) minmax(0,72fr) minmax(0,72fr); }
  .elements-stage[data-active="air"] { grid-template-rows: minmax(0,72fr) minmax(0,72fr) minmax(0,284fr) minmax(0,72fr); }
  .elements-stage[data-active="fire"] { grid-template-rows: minmax(0,72fr) minmax(0,72fr) minmax(0,72fr) minmax(0,284fr); }

  .element-panel { padding: 19px 22px; min-height: 0; }

  .element-copy { justify-content: flex-start; }

  .element-number {
    position: absolute;
    top: 10px;
    left: 0;
  }

  .element-name {
    margin: 0 0 0 42px;
    font-size: 31px;
  }

  .elements-stage[data-active] .element-panel[aria-pressed="true"] .element-name {
    margin-top: 0;
    font-size: 38px;
  }

  .element-description {
    max-width: 270px;
    max-height: 0;
    margin: 0 0 0 42px;
    overflow: hidden;
    opacity: 0;
    transition: max-height 650ms cubic-bezier(0.22, 0.61, 0.36, 1), margin 650ms cubic-bezier(0.22, 0.61, 0.36, 1), opacity 650ms cubic-bezier(0.22, 0.61, 0.36, 1);
  }

  .elements-stage[data-active] .element-panel[aria-pressed="true"] .element-description {
    max-height: 80px;
    margin-top: 16px;
    opacity: 0.94;
  }

  .element-graphic {
    right: 0;
    bottom: 0;
    width: 100%;
    height: 120px;
    opacity: 0;
    transition: opacity 650ms ease;
  }

  .elements-stage[data-active] .element-panel[aria-pressed="true"] .element-graphic { opacity: 0.48; }

  .elements-hint,
  .elements-keyboard-hint { display: none; }

  .brand-cta {
    align-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .elements-stage,
  .element-name,
  .element-description,
  .element-graphic {
    transition-duration: 0s !important;
  }

  .elements-stage .element-graphic * { animation: none !important; }
}

.contact-editorial { padding-top: 80px; padding-bottom: 100px; }
.contact-spread { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .6fr) minmax(0, 1.1fr); gap: 36px; border-bottom: 1px solid var(--md-line); padding-bottom: 70px; isolation: isolate; }
.contact-arcs { position: absolute; width: 65%; top: 25px; left: -5%; fill: none; stroke: var(--md-ink); stroke-width: 1; opacity: .06; pointer-events: none; z-index: -1; }
.contact-letter, .contact-message, .contact-photo { min-width: 0; }
.contact-eyebrow, .contact-spread small, .contact-input label { font: 10px/1.6 var(--md-sans); text-transform: uppercase; }
.contact-letter h1 { font: 400 50px/1.08 var(--md-serif); margin: 26px 0; }
.contact-lead { max-width: 360px; font-size: 13px; line-height: 1.9; color: var(--md-muted); }
.contact-rows { margin-top: 42px; }
.contact-rows > * { display: grid; grid-template-columns: 86px minmax(0, 1fr) 14px; align-items: center; gap: 12px; border-bottom: 1px solid var(--md-line); min-height: 76px; padding: 14px 0; color: var(--md-muted); text-decoration: none; font-size: 12px; line-height: 1.7; transition: color 400ms, border-color 400ms; }
.contact-rows span { overflow-wrap: anywhere; }
.contact-rows a:hover { color: var(--md-ink); border-color: var(--md-ink); }
.contact-arrow { transition: transform 400ms; }
.contact-rows a:hover .contact-arrow { transform: translateX(5px); }
.contact-afterword { display: grid; grid-template-columns: 30px 1fr; gap: 18px; margin-top: 55px; align-items: center; color: var(--md-muted); }
.contact-afterword i { height: 1px; background: var(--md-line); }
.contact-afterword p { font: italic 20px/1.4 var(--md-serif); margin: 0; }
.contact-afterword small { grid-column: 2; }
.contact-photo { margin: 50px 0 0; align-self: stretch; overflow: hidden; }
.contact-photo img { display: block; width: 100%; height: 100%; min-height: 490px; object-fit: cover; object-position: 65% center; }
.contact-message { padding: 30px 26px; border: 1px solid var(--md-line); background: rgba(245,241,232,.35); }
.contact-form-heading { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 35px; }
.contact-form-heading h2 { font: 400 32px/1.15 var(--md-serif); margin: 0; }
.contact-form-heading small { white-space: nowrap; color: var(--md-muted); }
.contact-input { margin-bottom: 24px; }
.contact-input label { display: block; margin-bottom: 8px; }
.contact-input input, .contact-input select, .contact-input textarea { display: block; width: 100%; min-width: 0; border: 0; border-bottom: 1px solid var(--md-line); border-radius: 0; padding: 10px 0; min-height: 44px; background: transparent; color: var(--md-ink); font: 14px/1.5 var(--md-sans); box-shadow: none; }
.contact-input textarea { min-height: 140px; resize: vertical; }
.contact-input :focus { border-bottom-color: var(--md-ink); }
.contact-spread a:focus-visible, .contact-spread button:focus-visible, .contact-input :focus-visible { outline: 1px solid var(--md-ink); outline-offset: 4px; }
.contact-send { display: flex; align-items: start; gap: 20px; }
.contact-send button { display: flex; align-items: center; gap: 24px; background: var(--md-charcoal); color: var(--md-paper); border: 0; border-radius: 0; padding: 14px 20px; font: 13px var(--md-sans); cursor: pointer; transition: background 400ms; }
.contact-send button:hover { background: #383733; }
.contact-send button span { transition: transform 400ms; }
.contact-send button:hover span { transform: translateX(5px); }
.contact-send p { margin: 0; font-size: 10px; line-height: 1.65; color: var(--md-muted); }
.contact-send a { color: inherit; text-underline-offset: 3px; }
.contact-status, .contact-error { font-size: 12px; line-height: 1.6; }
.contact-status:empty { display: none; }
.contact-error[hidden] { display: none; }
@keyframes contact-enter { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .contact-letter h1 { animation: contact-enter 800ms both; }
  .contact-rows { animation: contact-enter 800ms 120ms both; }
  .contact-photo { animation: contact-enter 850ms 200ms both; }
  .contact-message { animation: contact-enter 850ms 350ms both; }
}
@media (max-width: 1100px) {
  .contact-spread { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .contact-photo { grid-column: 1; height: 300px; margin-top: 0; }
  .contact-photo img { min-height: 0; }
  .contact-message { grid-column: 2; grid-row: 1 / 3; }
  .contact-send { flex-direction: column; }
}
@media (max-width: 720px) {
  .contact-editorial { padding-top: 45px; padding-bottom: 50px; }
  .contact-spread { display: flex; flex-direction: column; gap: 40px; padding-bottom: 40px; }
  .contact-letter h1 { font-size: 42px; }
  .contact-photo { height: 380px; }
  .contact-message { padding: 0; border: 0; background: transparent; }
  .contact-arcs { width: 100%; }
  .contact-send { flex-direction: row; }
}
@media (prefers-reduced-motion: reduce) {
  .contact-spread * { transition: none !important; }
}

.journal { padding-bottom: 80px; min-width: 0; }
.journal > *, .journal-feature > *, .journal-tools > * { min-width: 0; }
.journal h1, .journal h2, .journal p { overflow-wrap: anywhere; white-space: normal; }
.journal [hidden] { display: none !important; }
.journal-hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 90px; padding: 48px 0 48px; }
.journal h1 { font: 400 68px/1.06 var(--md-serif); margin: 25px 0 0; }
.journal-aside { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 90px; gap: 50px; align-items: end; padding-bottom: 10px; }
.journal-aside svg { position: absolute; inset: -30px 0 auto; width: 100%; fill: none; stroke: var(--md-ink); opacity: .07; pointer-events: none; }
.journal-aside > p { max-width: 340px; font-size: 14px; line-height: 1.9; color: var(--md-muted); }
.journal-aside .journal-whisper { font: italic 14px/1.5 var(--md-serif); opacity: .65; grid-column: 2; grid-row: 1; }
.journal-aside > p:last-child { grid-column: 1; grid-row: 1; }
.journal-aside svg { left: 50%; width: 80%; }
.journal-tools { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; border-block: 1px solid var(--md-line); padding: 6px 0; margin-bottom: 20px; }
.journal-tools nav { display: flex; flex-wrap: wrap; gap: 24px; margin-right: auto; }
.journal-tools button { background: none; border: 0; padding: 10px 0; border-bottom: 1px solid transparent; font: 13px var(--md-sans); color: var(--md-muted); cursor: pointer; border-radius: 0; }
.journal-tools [aria-pressed="true"] { color: var(--md-ink); border-bottom-color: currentColor; }
.journal-search input { width: 160px; max-width: 100%; border: 0; border-bottom: 1px solid var(--md-line); border-radius: 0; background: none; padding: 10px 0; font: 13px var(--md-sans); color: var(--md-ink); }
.journal-sort { border: 0; background: transparent; font: 13px var(--md-sans); color: var(--md-muted); padding: 10px 0; max-width: 100%; }
.journal-feature { position: relative; display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr) 40px; gap: 36px; align-items: center; margin-bottom: 16px; padding-bottom: 4px; border-bottom: 1px solid var(--md-line); }
.journal-feature-photo { display: block; overflow: hidden; aspect-ratio: 2.45; }
.journal-feature > div > .journal-meta { position: absolute; left: 18px; top: 16px; margin: 0; color: var(--md-paper); }
.journal img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 550ms ease; }
.journal-feature h2 { font: 400 40px/1.05 var(--md-serif); max-width: 340px; margin: 16px 0; }
.journal h2 a { color: inherit; text-decoration: none; }
.journal-feature p:not(.journal-meta), .journal-entry > p { font-size: 13px; line-height: 1.85; color: var(--md-muted); }
.journal-meta { font-size: 9px; line-height: 1.5; text-transform: uppercase; }
.journal-margin { font-size: 9px; text-transform: uppercase; line-height: 1.8; color: var(--md-muted); }
.journal-margin i { display: block; width: 1px; height: 50px; background: var(--md-line); margin: 18px 0; }
.journal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 22px; }
.journal-entry { min-width: 0; display: flex; flex-direction: column; background: rgba(245,241,232,.55); }
.journal-photo { position: relative; display: block; aspect-ratio: 3.35; overflow: hidden; }
.journal-photo .journal-meta { position: absolute; top: 18px; left: 18px; right: 12px; color: var(--md-ink); }
.journal-photo img { object-position: center 30%; }
.journal-crop-1 img { object-position: 70% 10%; }
.journal-crop-2 img { object-position: 30% 55%; }
.journal-crop-3 img { object-position: 90% 0; }
.journal-crop-4 img { object-position: 50% 80%; }
.journal-crop-5 img { object-position: 0 20%; }
.journal-entry h2 { font: 400 23px/1.08 var(--md-serif); margin: 12px 24px 8px; }
.journal-entry > p { margin: 0 24px 8px; }
.journal-link { display: inline-flex; gap: 18px; align-items: center; background: none; border: 0; padding: 12px 0; font: 12px var(--md-sans); color: var(--md-ink); text-decoration: none; cursor: pointer; }
.journal-entry .journal-link { margin: auto 24px 4px; align-self: start; }
.journal-link svg { display: block; width: 64px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1; transform-origin: left; transition: transform 500ms; }
.journal-link:hover svg, .journal-link:focus-visible svg { transform: translateX(6px) scaleX(1.08); }
.journal-photo:hover img, .journal-feature-photo:hover img { transform: scale(1.02); }
.journal a:focus-visible, .journal button:focus-visible, .journal input:focus-visible, .journal select:focus-visible { outline: 1px solid var(--md-ink); outline-offset: 5px; }
.journal-bottom { display: flex; justify-content: space-between; margin-top: 22px; padding-top: 0; font-size: 10px; }
.journal-bottom p { margin-left: auto; }
.journal-empty { padding: 60px 0; }
@media (max-width: 1050px) {
  .journal-hero { gap: 40px; }
  .journal h1 { font-size: 52px; }
  .journal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .journal-feature { grid-template-columns: 1.2fr 1fr; gap: 30px; }
  .journal-margin { display: none; }
}
@media (max-width: 720px) {
  .journal-hero { grid-template-columns: minmax(0, 1fr); padding: 60px 0 40px; gap: 24px; }
  .journal h1 { font-size: 40px; }
  .journal-aside { align-items: start; }
  .journal-aside { display: block; }
  .journal-feature-photo { aspect-ratio: 1.65; }
  .journal-feature > div > .journal-meta { position: static; color: var(--md-muted); }
  .journal-photo { aspect-ratio: 2.4; }
  .journal-aside svg, .journal-whisper { display: none; }
  .journal-tools { gap: 16px; margin-bottom: 35px; }
  .journal-tools nav { width: 100%; gap: 18px; flex-wrap: wrap; min-width: 0; }
  .journal-feature h2, .journal-entry h2 { max-width: 100%; }
  .journal-feature, .journal-grid { grid-template-columns: minmax(0, 1fr); }
  .journal-feature h2 { font-size: 34px; }
  .journal-feature { margin-bottom: 50px; }
}
@media (prefers-reduced-motion: reduce) {
  .journal img, .journal-link svg { transition: none; transform: none !important; }
}

.blog-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(240px, 0.62fr);
  gap: clamp(30px, 7vw, 96px);
  padding: clamp(64px, 10vw, 142px) 0 clamp(48px, 8vw, 108px);
  border-bottom: 1px solid var(--md-line);
}

.blog-intro h1,
.article-heading h1 {
  max-width: 760px;
  margin: 0;
  font-family: var(--md-serif);
  font-size: clamp(48px, 6.6vw, 90px);
  font-weight: 400;
  line-height: 0.92;
}

.blog-intro p {
  align-self: end;
  max-width: 355px;
  margin: 0;
  color: var(--md-muted);
  font-size: 14px;
  line-height: 1.8;
}

.blog-categories {
  display: flex;
  gap: 10px 24px;
  flex-wrap: wrap;
  padding: 22px 0;
  border-bottom: 1px solid var(--md-line);
}

.blog-categories a {
  padding: 5px 0;
  border-bottom: 1px solid transparent;
  color: var(--md-muted);
  font-size: 13px;
}

.blog-categories a:hover,
.blog-categories a[aria-current="page"] {
  border-bottom-color: var(--md-ink);
  color: var(--md-ink);
}

.featured-article {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  margin: clamp(40px, 7vw, 92px) 0;
  background: var(--md-charcoal);
  color: var(--md-paper);
}

.featured-image {
  min-height: 460px;
  background: url("../images/moon-dawn-still-life.png") center / cover no-repeat;
}

.featured-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: end;
  padding: clamp(30px, 5vw, 70px);
}

.featured-copy .meta,
.article-heading .meta {
  margin: 0 0 20px;
  color: rgba(245, 241, 232, 0.68);
}

.featured-copy h2 {
  max-width: 430px;
  margin: 0 0 22px;
  font-family: var(--md-serif);
  font-size: clamp(35px, 4vw, 57px);
  font-weight: 400;
  line-height: 1;
}

.featured-copy p {
  max-width: 410px;
  margin: 0 0 26px;
  color: rgba(245, 241, 232, 0.75);
  font-size: 13px;
  line-height: 1.75;
}

.article-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: clamp(60px, 10vw, 130px);
  border-top: 1px solid var(--md-line);
  border-left: 1px solid var(--md-line);
}

.article-preview {
  min-height: 360px;
  padding: 23px;
  border-right: 1px solid var(--md-line);
  border-bottom: 1px solid var(--md-line);
  background: var(--md-paper);
}

.article-preview:nth-child(2n) {
  background: #ded6c7;
}

.article-preview .meta {
  margin: 0 0 72px;
  color: var(--md-muted);
}

.article-preview h2 {
  max-width: 310px;
  margin: 0 0 18px;
  font-family: var(--md-serif);
  font-size: 29px;
  font-weight: 400;
  line-height: 1.05;
}

.article-preview p {
  max-width: 290px;
  margin: 0 0 24px;
  color: var(--md-muted);
  font-size: 13px;
  line-height: 1.7;
}

.article-heading {
  max-width: 920px;
  padding: clamp(65px, 11vw, 154px) 0 clamp(44px, 8vw, 92px);
}

.article-heading .meta {
  color: var(--md-muted);
}

.article-lead {
  max-width: 640px;
  margin: 30px 0 0;
  color: var(--md-muted);
  font-family: var(--md-serif);
  font-size: clamp(20px, 2.5vw, 32px);
  line-height: 1.3;
}

.article-cover {
  min-height: clamp(320px, 46vw, 680px);
  margin-bottom: clamp(56px, 9vw, 130px);
  background: url("../images/moon-dawn-still-life.png") center / cover no-repeat;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(150px, 0.32fr) minmax(0, 0.84fr) minmax(160px, 0.32fr);
  gap: clamp(25px, 5vw, 78px);
  padding-bottom: clamp(62px, 9vw, 126px);
}

.article-aside {
  color: var(--md-muted);
  font-size: 11px;
  line-height: 1.6;
}

.article-body {
  max-width: 650px;
}

.article-body h2 {
  margin: 46px 0 18px;
  font-family: var(--md-serif);
  font-size: clamp(30px, 3.5vw, 44px);
  font-weight: 400;
  line-height: 1.05;
}

.article-body p {
  margin: 0 0 20px;
  color: var(--md-muted);
  font-size: 15px;
  line-height: 1.85;
}

.article-quote {
  margin: 38px 0;
  padding: 25px 0;
  border-top: 1px solid var(--md-line);
  border-bottom: 1px solid var(--md-line);
  font-family: var(--md-serif);
  font-size: clamp(25px, 3.3vw, 40px);
  line-height: 1.1;
}

.related-product {
  align-self: start;
  padding: 18px;
  border: 1px solid var(--md-line);
  background: var(--md-paper);
}

.related-product .notebook {
  width: 116px;
  margin: 13px auto 28px;
}

.related-product h2 {
  margin: 0 0 8px;
  font-family: var(--md-serif);
  font-size: 22px;
  font-weight: 400;
}

.related-product p {
  margin: 0 0 16px;
  color: var(--md-muted);
  font-size: 12px;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .article-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-layout {
    grid-template-columns: minmax(0, 1fr) 200px;
  }

  .article-aside {
    display: none;
  }
}

@media (max-width: 720px) {
  .blog-intro,
  .featured-article,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .featured-image {
    min-height: 330px;
  }

  .related-product {
    max-width: 320px;
  }
}

@media (max-width: 480px) {
  .article-list {
    grid-template-columns: 1fr;
  }
}

.utility-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1.1fr);
  min-height: min(700px, 72svh);
  background: var(--md-charcoal);
  color: var(--md-paper);
}

.utility-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: end;
  padding: clamp(42px, 7vw, 100px);
}

.utility-copy .meta {
  margin: 0 0 20px;
  color: rgba(245, 241, 232, 0.66);
}

.utility-copy h1 {
  max-width: 530px;
  margin: 0 0 24px;
  font-family: var(--md-serif);
  font-size: clamp(46px, 6vw, 80px);
  font-weight: 400;
  line-height: 0.94;
}

.utility-copy p {
  max-width: 410px;
  margin: 0 0 28px;
  color: rgba(245, 241, 232, 0.75);
  font-size: 14px;
  line-height: 1.8;
}

.utility-preview {
  position: relative;
  min-height: 380px;
  overflow: hidden;
  background: var(--md-earth);
}

.utility-preview::before {
  position: absolute;
  inset: -20px;
  background: url("../images/moon-dawn-still-life.png") center / cover no-repeat;
  content: "";
  filter: blur(9px);
  opacity: 0.8;
}

.utility-preview::after {
  position: absolute;
  inset: 0;
  background: rgba(27, 27, 26, 0.28);
  content: "";
}

.coming-window {
  position: absolute;
  z-index: 1;
  right: clamp(24px, 6vw, 84px);
  bottom: clamp(24px, 6vw, 84px);
  left: clamp(24px, 6vw, 84px);
  padding: 22px;
  border: 1px solid rgba(245, 241, 232, 0.62);
  color: var(--md-paper);
}

.coming-window span {
  display: block;
  margin-bottom: 34px;
  font-size: 11px;
  text-transform: uppercase;
}

.coming-window strong {
  display: block;
  max-width: 280px;
  font-family: var(--md-serif);
  font-size: clamp(27px, 3vw, 40px);
  font-weight: 400;
  line-height: 1.02;
}

.coming-details,
.gift-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.45fr) minmax(0, 1fr);
  gap: clamp(28px, 7vw, 104px);
  padding: clamp(64px, 10vw, 144px) 0;
  border-bottom: 1px solid var(--md-line);
}

.coming-details h2,
.gift-layout h1,
.contact-layout h1 {
  max-width: 540px;
  margin: 0;
  font-family: var(--md-serif);
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 400;
  line-height: 0.98;
}

.simple-list {
  border-top: 1px solid var(--md-line);
}

.simple-list article {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--md-line);
}

.simple-list span {
  color: var(--md-muted);
  font-size: 11px;
  text-transform: uppercase;
}

.simple-list p {
  max-width: 530px;
  margin: 0;
  color: var(--md-muted);
  font-size: 14px;
  line-height: 1.75;
}

.gift-layout {
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.72fr);
  align-items: start;
}

.gift-intro {
  padding-top: clamp(0px, 5vw, 60px);
}

.gift-intro .meta {
  margin: 0 0 18px;
  color: var(--md-muted);
}

.gift-intro p {
  max-width: 480px;
  margin: 27px 0 0;
  color: var(--md-muted);
  font-size: 15px;
  line-height: 1.8;
}

.certificate {
  display: flex;
  min-height: 440px;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  background: var(--md-water);
  color: var(--md-paper);
}

.certificate img {
  width: min(230px, 65%);
  filter: invert(1);
}

.certificate-main {
  margin: 55px 0;
  font-family: var(--md-serif);
  font-size: clamp(36px, 5vw, 62px);
  line-height: 0.95;
}

.certificate-bottom {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  color: rgba(245, 241, 232, 0.75);
  font-size: 11px;
}

.gift-options {
  padding-bottom: clamp(64px, 10vw, 140px);
}

.gift-options h2 {
  max-width: 540px;
  margin: clamp(56px, 9vw, 118px) 0 30px;
  font-family: var(--md-serif);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 400;
  line-height: 1;
}

.nominal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--md-line);
  border-left: 1px solid var(--md-line);
}

.nominal-grid button {
  min-height: 116px;
  border: 0;
  border-right: 1px solid var(--md-line);
  border-bottom: 1px solid var(--md-line);
  border-radius: 0;
  background: var(--md-paper);
  color: var(--md-ink);
  font-family: var(--md-serif);
  font-size: clamp(25px, 3vw, 38px);
}

.nominal-grid button:hover,
.nominal-grid button[aria-pressed="true"] {
  background: var(--md-charcoal);
  color: var(--md-paper);
}

.contact-layout {
  grid-template-columns: minmax(0, 0.75fr) minmax(320px, 0.8fr);
}

.contact-intro .meta {
  margin: 0 0 18px;
  color: var(--md-muted);
}

.contact-intro p {
  max-width: 400px;
  margin: 26px 0 0;
  color: var(--md-muted);
  font-size: 14px;
  line-height: 1.8;
}

.contact-info {
  margin-top: 54px;
  border-top: 1px solid var(--md-line);
}

.contact-info a,
.contact-info span {
  display: block;
  padding: 17px 0;
  border-bottom: 1px solid var(--md-line);
  font-size: 14px;
}

.contact-info a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.contact-form {
  padding: clamp(24px, 4vw, 48px);
  background: var(--md-paper);
  border: 1px solid var(--md-line);
}

.contact-form h2 {
  margin: 0 0 28px;
  font-family: var(--md-serif);
  font-size: 34px;
  font-weight: 400;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

.field label {
  color: var(--md-muted);
  font-size: 11px;
  text-transform: uppercase;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 0;
  border: 0;
  border-bottom: 1px solid var(--md-line);
  border-radius: 0;
  outline: none;
  background: transparent;
  color: var(--md-ink);
  resize: vertical;
}

.field textarea {
  min-height: 92px;
}

.form-note {
  margin: 15px 0 0;
  color: var(--md-muted);
  font-size: 11px;
  line-height: 1.6;
}

@media (max-width: 720px) {
  .utility-hero,
  .coming-details,
  .gift-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .utility-preview {
    min-height: 380px;
    grid-row: 1;
  }

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

@media (max-width: 480px) {
  .simple-list article {
    grid-template-columns: 1fr;
    gap: 9px;
  }
}

.purchase-page-heading {
  max-width: 780px;
  padding: clamp(58px, 10vw, 142px) 0 clamp(34px, 6vw, 72px);
}

.purchase-page-heading .meta {
  margin: 0 0 18px;
  color: var(--md-muted);
}

.purchase-page-heading h1 {
  margin: 0;
  font-family: var(--md-serif);
  font-size: clamp(46px, 6vw, 80px);
  font-weight: 400;
  line-height: 0.95;
}

.purchase-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.46fr);
  gap: clamp(32px, 7vw, 102px);
  align-items: start;
  padding-bottom: clamp(64px, 10vw, 144px);
}

.cart-list {
  border-top: 1px solid var(--md-line);
}

.cart-item {
  position: relative;
  display: grid;
  grid-template-columns: 112px minmax(170px, 1fr) 116px 112px 32px;
  gap: clamp(12px, 2vw, 24px);
  align-items: center;
  min-height: 156px;
  border-bottom: 1px solid var(--md-line);
}

.cart-thumb {
  display: grid;
  width: 92px;
  height: 112px;
  place-items: center;
  background: var(--md-paper);
}

.cart-thumb .notebook {
  width: 54px;
  transform: rotate(-4deg);
}

.cart-product-name {
  display: inline-block;
  margin-bottom: 8px;
  border-bottom: 1px solid transparent;
  font-family: var(--md-serif);
  font-size: 23px;
  line-height: 1.05;
}

.cart-product-name:hover {
  border-bottom-color: currentColor;
}

.cart-product-meta {
  margin: 0;
  color: var(--md-muted);
  font-size: 12px;
  line-height: 1.55;
}

.cart-price,
.cart-total {
  font-size: 13px;
}

.cart-quantity {
  display: grid;
  grid-template-columns: repeat(3, 30px);
  min-height: 32px;
  border: 1px solid var(--md-line);
}

.cart-quantity button {
  border: 0;
  border-right: 1px solid var(--md-line);
  background: transparent;
  font-size: 16px;
}

.cart-quantity button:last-child {
  border-right: 0;
}

.cart-quantity span {
  display: grid;
  place-items: center;
  font-size: 12px;
}

.remove-button {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--md-muted);
  font-size: 20px;
}

.remove-button:hover {
  background: var(--md-charcoal);
  color: var(--md-paper);
}

.cart-preview {
  position: absolute;
  z-index: 4;
  top: calc(100% - 12px);
  left: 95px;
  display: none;
  width: min(320px, calc(100vw - 44px));
  padding: 16px;
  border: 1px solid var(--md-line);
  background: var(--md-paper);
  box-shadow: 12px 14px 0 rgba(38, 35, 31, 0.08);
}

.cart-item:hover .cart-preview,
.cart-item:focus-within .cart-preview {
  display: grid;
  grid-template-columns: 75px 1fr;
  gap: 14px;
}

.cart-preview .notebook {
  width: 55px;
  margin: auto;
}

.cart-preview strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--md-serif);
  font-size: 18px;
  font-weight: 400;
}

.cart-preview p {
  margin: 0;
  color: var(--md-muted);
  font-size: 11px;
  line-height: 1.55;
}

.cart-mobile-preview {
  display: none;
}

.order-summary {
  position: sticky;
  top: 22px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--md-line);
  background: var(--md-paper);
}

.order-summary h2,
.checkout-section h2 {
  margin: 0 0 23px;
  font-family: var(--md-serif);
  font-size: 31px;
  font-weight: 400;
  line-height: 1;
}

.promo-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-bottom: 28px;
}

.promo-form input {
  min-width: 0;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--md-line);
  border-radius: 0;
  background: transparent;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 0;
  color: var(--md-muted);
  font-size: 13px;
}

.summary-row.total {
  margin-top: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--md-line);
  color: var(--md-ink);
  font-size: 16px;
}

.summary-row.discount {
  color: var(--md-ember);
}

.summary-action {
  width: 100%;
  margin-top: 25px;
}

.checkout-form {
  border-top: 1px solid var(--md-line);
}

.checkout-section {
  padding: 31px 0;
  border-bottom: 1px solid var(--md-line);
}

.checkout-section h2 {
  margin-bottom: 25px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 19px 26px;
}

.form-grid .field {
  margin: 0;
}

.form-grid .field.full {
  grid-column: 1 / -1;
}

.delivery-options,
.payment-options {
  display: grid;
  gap: 1px;
  border: 1px solid var(--md-line);
}

.option-control {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 13px;
  align-items: start;
  padding: 17px;
  background: var(--md-paper);
  cursor: pointer;
}

.option-control + .option-control {
  border-top: 1px solid var(--md-line);
}

.option-control input {
  width: 15px;
  height: 15px;
  margin: 2px 0 0;
  accent-color: var(--md-charcoal);
}

.option-control strong {
  display: block;
  margin-bottom: 5px;
  font-size: 13px;
  font-weight: 400;
}

.option-control span {
  color: var(--md-muted);
  font-size: 12px;
  line-height: 1.5;
}

.option-price {
  color: var(--md-ink) !important;
  white-space: nowrap;
}

.agreement {
  display: flex;
  gap: 10px;
  align-items: start;
  margin-top: 22px;
  color: var(--md-muted);
  font-size: 11px;
  line-height: 1.6;
}

.agreement input {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  margin: 1px 0 0;
  accent-color: var(--md-charcoal);
}

@media (max-width: 980px) {
  .cart-item {
    grid-template-columns: 92px minmax(150px, 1fr) 100px 30px;
  }

  .cart-price {
    display: none;
  }
}

@media (max-width: 720px) {
  .purchase-layout {
    grid-template-columns: 1fr;
  }

  .order-summary {
    position: static;
  }

  .cart-item {
    grid-template-columns: 74px minmax(0, 1fr) 28px;
    gap: 14px;
    min-height: 134px;
  }

  .cart-thumb {
    width: 68px;
    height: 92px;
  }

  .cart-total,
  .cart-preview {
    display: none;
  }

  .cart-quantity {
    margin-top: 10px;
  }

  .cart-mobile-preview {
    display: block;
    grid-column: 2 / -1;
    padding: 0 0 15px;
    color: var(--md-muted);
    font-size: 11px;
    line-height: 1.55;
  }

  .cart-mobile-preview summary {
    cursor: pointer;
  }

  .cart-mobile-preview p {
    margin: 9px 0 0;
  }

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

  .form-grid .field.full {
    grid-column: auto;
  }
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1.28fr);
  min-height: 100svh;
}

.auth-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: clamp(24px, 4vw, 56px);
  background: var(--md-paper);
}

.auth-mark {
  display: inline-flex;
  width: 48px;
  height: 46px;
}

.auth-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.auth-card {
  width: min(100%, 400px);
  margin: 48px 0;
}

.auth-card .meta {
  margin: 0 0 18px;
  color: var(--md-muted);
}

.auth-card h1 {
  margin: 0 0 30px;
  font-family: var(--md-serif);
  font-size: clamp(38px, 4.5vw, 57px);
  font-weight: 400;
  line-height: 0.95;
}

.auth-card .field {
  margin-bottom: 19px;
}

.auth-card .primary-button {
  width: 100%;
  margin-top: 6px;
}

.auth-links {
  display: grid;
  gap: 11px;
  margin-top: 23px;
  color: var(--md-muted);
  font-size: 12px;
}

.auth-links a:hover {
  color: var(--md-ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.auth-footnote {
  color: var(--md-muted);
  font-size: 11px;
  line-height: 1.55;
}

.auth-visual {
  min-height: 420px;
  background: url("../images/moon-dawn-still-life.png") center / cover no-repeat;
}

.account-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(56px, 9vw, 126px) 0 clamp(36px, 6vw, 74px);
  border-bottom: 1px solid var(--md-line);
}

.account-heading .meta {
  margin: 0 0 17px;
  color: var(--md-muted);
}

.account-heading h1 {
  margin: 0;
  font-family: var(--md-serif);
  font-size: clamp(46px, 6vw, 76px);
  font-weight: 400;
  line-height: 0.95;
}

.account-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: clamp(30px, 7vw, 96px);
  padding: 35px 0 clamp(64px, 10vw, 142px);
}

.account-nav {
  position: sticky;
  top: 20px;
  align-self: start;
  display: grid;
  gap: 3px;
}

.account-nav a {
  padding: 10px 0;
  border-bottom: 1px solid transparent;
  color: var(--md-muted);
  font-size: 13px;
}

.account-nav a:hover,
.account-nav a[aria-current="page"] {
  border-bottom-color: var(--md-ink);
  color: var(--md-ink);
}

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

.profile-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: end;
  padding: 0 0 27px;
  border-bottom: 1px solid var(--md-line);
}

.profile-strip h2,
.account-section h2 {
  margin: 0 0 9px;
  font-family: var(--md-serif);
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
}

.profile-strip p {
  margin: 0;
  color: var(--md-muted);
  font-size: 13px;
  line-height: 1.6;
}

.account-section {
  padding: 38px 0 0;
}

.account-section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.account-section-header h2 {
  margin: 0;
}

.account-section-header a {
  color: var(--md-muted);
  font-size: 12px;
}

.account-section-header a:hover {
  color: var(--md-ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.order-list {
  border-top: 1px solid var(--md-line);
}

.order-card {
  display: grid;
  grid-template-columns: 115px minmax(0, 1fr) minmax(160px, 0.5fr);
  gap: 22px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--md-line);
}

.order-contents {
  display: flex;
  align-items: center;
  height: 86px;
}

.order-contents .notebook {
  width: 54px;
  margin-right: -20px;
  box-shadow: 4px 5px 0 rgba(38, 35, 31, 0.1);
}

.order-contents .notebook:nth-child(2) {
  transform: rotate(8deg);
}

.order-info .meta {
  margin: 0 0 7px;
  color: var(--md-muted);
}

.order-info h3 {
  margin: 0 0 7px;
  font-family: var(--md-serif);
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
}

.order-info p {
  margin: 0;
  color: var(--md-muted);
  font-size: 12px;
  line-height: 1.55;
}

.order-actions {
  display: grid;
  justify-items: start;
  gap: 11px;
}

.order-actions .status {
  color: var(--md-moss);
}

.order-action-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.order-action-links a,
.order-action-links button {
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--md-ink);
  font-size: 11px;
}

.saved-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--md-line);
  border-left: 1px solid var(--md-line);
}

.saved-item {
  padding: 15px;
  border-right: 1px solid var(--md-line);
  border-bottom: 1px solid var(--md-line);
  background: var(--md-paper);
}

.saved-item .notebook {
  width: 86px;
  margin: 12px auto 25px;
}

.saved-item h3 {
  margin: 0 0 6px;
  font-family: var(--md-serif);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}

.saved-item p {
  margin: 0;
  color: var(--md-muted);
  font-size: 12px;
}

@media (max-width: 850px) {
  .auth-shell,
  .account-layout {
    grid-template-columns: 1fr;
  }

  .auth-visual {
    min-height: 280px;
    grid-row: 1;
  }

  .auth-panel {
    min-height: 640px;
  }

  .account-nav {
    position: static;
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: max-content;
    overflow-x: auto;
    padding-bottom: 7px;
    border-bottom: 1px solid var(--md-line);
  }
}

@media (max-width: 720px) {
  .account-heading,
  .profile-strip {
    display: grid;
    align-items: start;
  }

  .order-card {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 16px;
  }

  .order-actions {
    grid-column: 2;
  }

  .order-contents {
    height: 74px;
  }

  .order-contents .notebook {
    width: 46px;
  }

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

.account-page-title {
  margin: 0 0 28px;
  font-family: var(--md-serif);
  font-size: clamp(36px, 4.5vw, 58px);
  font-weight: 400;
  line-height: 1;
}

.account-page-copy {
  max-width: 560px;
  margin: -8px 0 30px;
  color: var(--md-muted);
  font-size: 13px;
  line-height: 1.75;
}

.account-form {
  max-width: 610px;
  padding-bottom: 40px;
}

.account-form .form-grid {
  margin-bottom: 26px;
}

.account-form .primary-button {
  min-width: 190px;
}

.account-order-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.44fr);
  gap: clamp(30px, 6vw, 84px);
}

.order-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 35px;
  border-top: 1px solid var(--md-line);
  border-left: 1px solid var(--md-line);
}

.progress-step {
  min-height: 96px;
  padding: 14px;
  border-right: 1px solid var(--md-line);
  border-bottom: 1px solid var(--md-line);
  color: var(--md-muted);
  font-size: 11px;
  line-height: 1.45;
}

.progress-step.done {
  background: var(--md-paper);
  color: var(--md-ink);
}

.progress-step .status {
  display: block;
  margin-bottom: 8px;
  color: var(--md-moss);
}

.order-product-list {
  border-top: 1px solid var(--md-line);
}

.order-product-row {
  display: grid;
  grid-template-columns: auto 82px minmax(0, 1fr) auto;
  gap: 17px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--md-line);
}

.order-product-row input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--md-charcoal);
}

.order-product-row .cart-thumb {
  width: 66px;
  height: 82px;
}

.order-product-row .cart-thumb .notebook {
  width: 43px;
}

.order-product-row h3 {
  margin: 0 0 5px;
  font-family: var(--md-serif);
  font-size: 21px;
  font-weight: 400;
  line-height: 1;
}

.order-product-row p {
  margin: 0;
  color: var(--md-muted);
  font-size: 11px;
}

.order-detail-summary {
  align-self: start;
  padding: 23px;
  border: 1px solid var(--md-line);
  background: var(--md-paper);
}

.order-detail-summary h2 {
  margin: 0 0 18px;
  font-family: var(--md-serif);
  font-size: 29px;
  font-weight: 400;
}

.order-detail-summary .primary-button {
  width: 100%;
  margin-top: 20px;
}

.order-detail-summary .secondary-button {
  margin: 15px auto 0;
}

.account-empty {
  display: grid;
  min-height: 310px;
  place-items: center;
  padding: 35px;
  border-top: 1px solid var(--md-line);
  border-bottom: 1px solid var(--md-line);
  text-align: center;
}

.account-empty h2 {
  margin: 0 0 14px;
  font-family: var(--md-serif);
  font-size: 34px;
  font-weight: 400;
}

.account-empty p {
  max-width: 330px;
  margin: 0 0 22px;
  color: var(--md-muted);
  font-size: 13px;
  line-height: 1.65;
}

.saved-item-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 15px;
}

.saved-item-actions button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--md-muted);
  font-size: 11px;
}

.saved-item-actions button:hover {
  color: var(--md-ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 850px) {
  .account-order-detail {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .order-progress {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .order-product-row {
    grid-template-columns: auto 62px minmax(0, 1fr);
  }

  .order-product-row > strong {
    grid-column: 3;
  }
}

.payment-state {
  display: grid;
  min-height: calc(100svh - 82px);
  place-items: center;
  padding: clamp(50px, 8vw, 110px) 20px;
}

.payment-state-inner {
  width: min(100%, 660px);
  text-align: center;
}

.payment-state-mark {
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  margin: 0 auto 30px;
  border: 1px solid var(--md-ink);
  border-radius: 50%;
  font-family: var(--md-serif);
  font-size: 35px;
}

.payment-state-mark.fail {
  border-color: var(--md-clay);
  color: var(--md-ember);
}

.payment-state .meta {
  margin: 0 0 18px;
  color: var(--md-muted);
}

.payment-state h1 {
  margin: 0 0 20px;
  font-family: var(--md-serif);
  font-size: clamp(42px, 5.5vw, 72px);
  font-weight: 400;
  line-height: 0.95;
}

.payment-state p {
  max-width: 440px;
  margin: 0 auto 28px;
  color: var(--md-muted);
  font-size: 14px;
  line-height: 1.8;
}

.payment-state-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: 100svh;
  background: var(--md-paper);
}

.admin-sidebar {
  display: flex;
  position: sticky;
  top: 0;
  height: 100svh;
  flex-direction: column;
  padding: 22px 16px;
  background: var(--md-charcoal);
  color: var(--md-paper);
}

.admin-logo {
  display: inline-flex;
  width: 48px;
  height: 46px;
  margin: 0 0 48px 8px;
}

.admin-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: invert(1);
}

.admin-nav {
  display: grid;
  gap: 2px;
}

.admin-nav-label {
  margin: 25px 0 8px 9px;
  color: rgba(245, 241, 232, 0.52);
  font-size: 10px;
  text-transform: uppercase;
}

.admin-nav a {
  padding: 9px;
  border-left: 1px solid transparent;
  color: rgba(245, 241, 232, 0.7);
  font-size: 12px;
}

.admin-nav a:hover,
.admin-nav a[aria-current="page"] {
  border-left-color: var(--md-paper);
  background: rgba(245, 241, 232, 0.09);
  color: var(--md-paper);
}

.admin-user {
  margin-top: auto;
  padding: 14px 9px 4px;
  border-top: 1px solid rgba(245, 241, 232, 0.2);
  color: rgba(245, 241, 232, 0.7);
  font-size: 11px;
  line-height: 1.55;
}

.admin-user strong {
  display: block;
  color: var(--md-paper);
  font-weight: 400;
}

.admin-main {
  min-width: 0;
  padding: clamp(24px, 4vw, 54px);
}

.admin-topbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--md-line);
}

.admin-topbar .meta {
  margin: 0 0 11px;
  color: var(--md-muted);
}

.admin-topbar h1 {
  margin: 0;
  font-family: var(--md-serif);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 400;
  line-height: 1;
}

.admin-primary-action {
  white-space: nowrap;
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 30px 0;
  border-top: 1px solid var(--md-line);
  border-left: 1px solid var(--md-line);
}

.admin-metric {
  min-height: 134px;
  padding: 18px;
  border-right: 1px solid var(--md-line);
  border-bottom: 1px solid var(--md-line);
}

.admin-metric span {
  display: block;
  margin-bottom: 30px;
  color: var(--md-muted);
  font-size: 11px;
  text-transform: uppercase;
}

.admin-metric strong {
  font-family: var(--md-serif);
  font-size: clamp(27px, 3vw, 40px);
  font-weight: 400;
}

.admin-section {
  padding: 36px 0 0;
}

.admin-section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 17px;
}

.admin-section-header h2 {
  margin: 0;
  font-family: var(--md-serif);
  font-size: 28px;
  font-weight: 400;
}

.admin-section-header a {
  color: var(--md-muted);
  font-size: 12px;
}

.admin-section-header a:hover {
  color: var(--md-ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--md-line);
}

.admin-table {
  width: 100%;
  min-width: 670px;
  border-collapse: collapse;
  font-size: 12px;
}

.admin-table th,
.admin-table td {
  padding: 14px 15px;
  border-bottom: 1px solid var(--md-line);
  text-align: left;
  vertical-align: middle;
}

.admin-table th {
  color: var(--md-muted);
  font-size: 10px;
  font-weight: 400;
  text-transform: uppercase;
}

.admin-table tr:last-child td {
  border-bottom: 0;
}

.admin-table tbody tr:hover {
  background: rgba(229, 224, 211, 0.48);
}

.admin-table a {
  border-bottom: 1px solid transparent;
}

.admin-table a:hover {
  border-bottom-color: currentColor;
}

.admin-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  font-size: 11px;
}

.admin-status::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--md-moss);
  content: "";
}

.admin-status.draft::before { background: var(--md-taupe); }
.admin-status.waiting::before { background: var(--md-clay); }
.admin-status.hidden::before { background: var(--md-ember); }

.admin-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
  margin: 28px 0 18px;
}

.admin-toolbar-start,
.admin-toolbar-end {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-search,
.admin-select {
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid var(--md-line);
  border-radius: 0;
  background: transparent;
  color: var(--md-ink);
  font-size: 12px;
}

.admin-search {
  min-width: min(240px, 62vw);
}

.admin-ghost-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--md-line);
  background: transparent;
  color: var(--md-ink);
  font-size: 12px;
}

.admin-ghost-button:hover {
  border-color: var(--md-ink);
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 30px;
  padding-top: 28px;
}

.admin-form-grid .field {
  margin: 0;
}

.admin-form-grid .field.full {
  grid-column: 1 / -1;
}

.admin-form-grid .field input,
.admin-form-grid .field textarea,
.admin-form-grid .field select {
  border: 1px solid var(--md-line);
  padding: 10px 11px;
}

.admin-form-grid .field textarea {
  min-height: 120px;
}

.admin-form-section {
  padding: 28px 0;
  border-top: 1px solid var(--md-line);
}

.admin-form-section h2 {
  margin: 0 0 22px;
  font-family: var(--md-serif);
  font-size: 28px;
  font-weight: 400;
}

.admin-upload {
  display: grid;
  min-height: 205px;
  place-items: center;
  border: 1px dashed rgba(38, 35, 31, 0.36);
  color: var(--md-muted);
  font-size: 12px;
  text-align: center;
}

.admin-form-actions {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 28px 0 0;
}

.admin-auth {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 25px;
  background: var(--md-charcoal);
}

.admin-auth-card {
  width: min(100%, 390px);
  padding: 32px;
  background: var(--md-paper);
}

.admin-auth-card .admin-logo {
  margin: 0 0 40px;
}

.admin-auth-card h1 {
  margin: 0 0 27px;
  font-family: var(--md-serif);
  font-size: 43px;
  font-weight: 400;
  line-height: 1;
}

.admin-auth-card .field {
  margin-bottom: 18px;
}

.admin-auth-card .primary-button {
  width: 100%;
}

@media (max-width: 900px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
    padding: 14px 20px;
  }

  .admin-logo {
    width: 39px;
    height: 37px;
    margin: 0 0 13px;
  }

  .admin-nav {
    display: flex;
    overflow-x: auto;
    gap: 3px;
  }

  .admin-nav-label,
  .admin-user {
    display: none;
  }

  .admin-nav a {
    flex: 0 0 auto;
    border-left: 0;
    border-bottom: 1px solid transparent;
  }

  .admin-nav a:hover,
  .admin-nav a[aria-current="page"] {
    border-left: 0;
    border-bottom-color: var(--md-paper);
  }

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

@media (max-width: 800px) {
  .admin-topbar {
    display: grid;
    align-items: start;
  }

  .admin-primary-action {
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .admin-topbar,
  .admin-form-actions {
    display: grid;
    align-items: start;
  }

  .admin-primary-action {
    width: 100%;
  }

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

  .admin-form-grid .field.full {
    grid-column: auto;
  }
}

.admin-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 28px;
  border: 1px solid var(--md-line);
  background: var(--md-line);
}

.admin-info-item {
  min-height: 112px;
  padding: 16px;
  background: var(--md-paper);
}

.admin-info-item span {
  display: block;
  margin-bottom: 22px;
  color: var(--md-muted);
  font-size: 10px;
  text-transform: uppercase;
}

.admin-info-item strong,
.admin-info-item a {
  font-family: var(--md-serif);
  font-size: 20px;
  font-weight: 400;
}

.admin-promo-callout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  padding: 17px;
  margin: 25px 0;
  border: 1px solid var(--md-line);
  background: #e4ddd0;
}

.admin-promo-callout strong {
  font-family: var(--md-serif);
  font-size: 24px;
  font-weight: 400;
}

.admin-promo-callout p {
  margin: 0;
  color: var(--md-muted);
  font-size: 12px;
  line-height: 1.6;
}

@media (max-width: 760px) {
  .admin-info-grid {
    grid-template-columns: 1fr;
  }
}

.admin-editor-preview {
  min-height: 280px;
  padding: 18px;
  border: 1px solid var(--md-line);
  color: var(--md-muted);
  font-family: var(--md-serif);
  font-size: 18px;
  line-height: 1.6;
}

.admin-chart {
  display: grid;
  grid-template-columns: repeat(7, minmax(32px, 1fr));
  gap: 10px;
  align-items: end;
  height: 240px;
  padding: 20px;
  border: 1px solid var(--md-line);
}

.admin-chart-bar {
  display: grid;
  min-height: 30px;
  align-items: end;
  background: var(--md-water);
}

.admin-chart-bar span {
  padding: 6px 0;
  color: var(--md-muted);
  font-size: 10px;
  transform: translateY(26px);
}

.states-page {
  padding: clamp(55px, 9vw, 125px) 0;
}

.states-page h1 {
  max-width: 700px;
  margin: 0 0 55px;
  font-family: var(--md-serif);
  font-size: clamp(44px, 6vw, 78px);
  font-weight: 400;
  line-height: 0.95;
}

.state-group {
  padding: 34px 0;
  border-top: 1px solid var(--md-line);
}

.state-group h2 {
  margin: 0 0 18px;
  font-family: var(--md-serif);
  font-size: 28px;
  font-weight: 400;
}

.state-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--md-line);
  border-left: 1px solid var(--md-line);
}

.state-sample {
  min-height: 250px;
  padding: 25px;
  border-right: 1px solid var(--md-line);
  border-bottom: 1px solid var(--md-line);
  background: var(--md-paper);
}

.state-sample.dark {
  background: var(--md-charcoal);
  color: var(--md-paper);
}

.state-sample.dark .empty-state p {
  color: rgba(245, 241, 232, 0.72);
}

.state-label {
  display: block;
  margin-bottom: 36px;
  color: var(--md-muted);
  font-size: 10px;
  text-transform: uppercase;
}

.state-sample.dark .state-label {
  color: rgba(245, 241, 232, 0.62);
}

.empty-state {
  display: grid;
  min-height: 170px;
  place-items: center;
  text-align: center;
}

.empty-state h3 {
  margin: 0 0 11px;
  font-family: var(--md-serif);
  font-size: 29px;
  font-weight: 400;
}

.empty-state p {
  max-width: 290px;
  margin: 0 0 18px;
  color: var(--md-muted);
  font-size: 12px;
  line-height: 1.6;
}

.form-error {
  padding: 12px 0;
  border-bottom: 1px solid var(--md-ember);
  color: var(--md-ember);
  font-size: 12px;
  line-height: 1.55;
}

.field input.is-error,
.field textarea.is-error {
  border-bottom-color: var(--md-ember);
}

.loading-state {
  display: grid;
  min-height: 170px;
  place-items: center;
}

.loading-lines {
  display: grid;
  width: min(100%, 260px);
  gap: 10px;
}

.loading-lines span {
  display: block;
  height: 10px;
  background: var(--md-beige);
  animation: md-pulse 1.4s ease-in-out infinite;
}

.loading-lines span:nth-child(2) { width: 77%; animation-delay: 0.12s; }
.loading-lines span:nth-child(3) { width: 56%; animation-delay: 0.24s; }

@keyframes md-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

@media (max-width: 680px) {
  .state-grid {
    grid-template-columns: 1fr;
  }
}
