:root {
  --ink: #0d0c0b;
  --soft-ink: #3d3934;
  --muted: #756e65;
  --line: #ded7cd;
  --cream: #f6f1e8;
  --warm: #ebe0d2;
  --white: #fffdf8;
  --black: #050505;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Inter", Arial, sans-serif;
  letter-spacing: 0;
}

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

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

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 800ms cubic-bezier(0.16, 1, 0.3, 1), transform 800ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(5, 5, 5, 0.74);
  backdrop-filter: blur(18px);
}

.navbar {
  min-height: 72px;
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.32);
}

.navbar-toggler-icon {
  filter: invert(1);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--white);
  line-height: 1;
}

.brand-logo {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.brand-text {
  display: grid;
  gap: 2px;
}

.brand-text span {
  font-size: 1.1rem;
  font-weight: 700;
}

.brand-text small {
  color: rgba(255, 253, 248, 0.7);
  font-size: 0.66rem;
  font-weight: 600;
  text-transform: uppercase;
}

.site-header .nav-link,
.site-header .lang-switch {
  color: rgba(255, 253, 248, 0.82);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.site-header .nav-link:hover,
.site-header .lang-switch a:hover {
  color: var(--white);
}

.site-header .nav-link:not(.nav-panel) {
  position: relative;
}

.site-header .nav-link:not(.nav-panel)::after {
  content: "";
  position: absolute;
  right: 100%;
  bottom: -4px;
  left: 0;
  height: 1px;
  background: currentColor;
  transition: right 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header .nav-link:not(.nav-panel):hover::after {
  right: 0;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0;
}

.lang-switch .is-active {
  color: var(--white);
  text-decoration: underline;
}

.nav-panel {
  border-bottom: 1px solid currentColor;
}

.hero {
  position: relative;
  min-height: 92svh;
  overflow: hidden;
  background: var(--black);
}

.hero-media,
.hero-media video,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media video,
.hero-media img {
  object-fit: cover;
}

.hero-media video {
  z-index: 2;
  opacity: 0;
  transition: opacity 500ms ease;
}

.hero-media img {
  z-index: 1;
}

.hero-media video.is-ready,
.studio-video video.is-ready {
  opacity: 1;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.28) 52%, rgba(0, 0, 0, 0.18)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.04) 44%);
}

.hero-content {
  position: relative;
  z-index: 4;
  display: flex;
  min-height: 92svh;
  width: min(1140px, calc(100% - 32px));
  margin: 0 auto;
  flex-direction: column;
  justify-content: center;
  padding: 116px 0 112px;
  color: var(--white);
}

.hero-content > * {
  animation: hero-rise 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-content .eyebrow {
  animation-delay: 80ms;
}

.hero-content h1 {
  animation-delay: 180ms;
}

.hero-content .hero-lead {
  animation-delay: 320ms;
}

.hero-content .hero-actions {
  animation-delay: 480ms;
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-content > * {
    animation: none;
  }
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: rgba(255, 253, 248, 0.72);
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(3.2rem, 8vw, 7.4rem);
  line-height: 0.92;
}

.hero-lead {
  max-width: 560px;
  margin: 1.5rem 0 0;
  color: rgba(255, 253, 248, 0.82);
  font-size: clamp(1rem, 1.7vw, 1.28rem);
  line-height: 1.7;
}

.hero-actions,
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.primary-link,
.secondary-link,
.admin-form button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  padding: 0.76rem 1.2rem;
  background: var(--ink);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  transition: background 240ms ease, color 240ms ease, border-color 240ms ease, transform 240ms ease;
}

.primary-link:hover,
.admin-form button:hover {
  background: transparent;
  color: var(--ink);
  transform: translateY(-2px);
}

.hero .primary-link {
  border-color: var(--white);
  background: var(--white);
  color: var(--black);
}

.hero .primary-link:hover {
  background: transparent;
  color: var(--white);
}

.secondary-link {
  background: transparent;
  color: var(--ink);
}

.secondary-link:hover {
  background: var(--ink);
  color: var(--white);
  transform: translateY(-2px);
}


.hero-ticker {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 5;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.5);
  color: rgba(255, 253, 248, 0.82);
  font-size: clamp(0.9rem, 1.8vw, 1.5rem);
  font-weight: 700;
  text-transform: uppercase;
}

.hero-ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 26s linear infinite;
}

.hero-ticker-track span {
  padding: 1rem 5vw;
  white-space: nowrap;
}

@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-ticker-track {
    animation: none;
  }
}

.feature-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--cream);
}

.feature-band article {
  min-height: 230px;
  border-right: 1px solid var(--line);
  padding: clamp(1.4rem, 4vw, 3.3rem);
  transition: background 260ms ease;
}

.feature-band article:hover {
  background: var(--white);
}

.feature-band article:last-child {
  border-right: 0;
}

.product-info span,
.featured-strip span,
.group-heading span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.feature-band h2,
.studio-copy h2,
.section-heading h2,
.admin-heading h1 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1;
}

.feature-band h2 {
  font-size: clamp(1.55rem, 2.5vw, 2.7rem);
}

.feature-band p,
.section-heading p,
.admin-heading p,
.product-info p {
  color: var(--soft-ink);
  line-height: 1.7;
}

.studio-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  min-height: 700px;
  background: var(--black);
  color: var(--white);
}

.studio-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 7vw, 6rem);
}

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

.studio-copy-body {
  max-width: 560px;
  color: rgba(255, 253, 248, 0.72);
}

.studio-copy-body h5 {
  margin: 1.1rem 0 0.35rem;
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 800;
}

.studio-copy-body h5:first-child {
  margin-top: 0;
}

.studio-copy-body p,
.studio-copy-body li {
  margin: 0 0 0.9rem;
  line-height: 1.7;
}

.studio-copy-body ul {
  margin: 0 0 0.9rem;
  padding-left: 1.2rem;
}

.studio-video {
  position: relative;
  min-height: 520px;
  overflow: hidden;
}

.studio-video video,
.studio-video img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 76% center;
}

.studio-video video {
  z-index: 2;
  opacity: 0;
  transition: opacity 500ms ease;
}

.studio-video img {
  z-index: 1;
}

.featured-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.featured-strip article {
  border-right: 1px solid var(--line);
  transition: background 260ms ease;
}

.featured-strip article:last-child {
  border-right: 0;
}

.featured-strip article:hover {
  background: var(--cream);
}

.featured-strip img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--cream);
}

.featured-strip div {
  min-height: 108px;
  padding: 1rem;
}

.featured-strip strong {
  display: block;
  margin-top: 0.4rem;
  line-height: 1.25;
}

.collection-section {
  background: var(--white);
  padding: clamp(2.4rem, 7vw, 6rem) 0;
}

.section-heading,
.product-groups,
.admin-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: 3rem;
}

.section-heading h2 {
  font-size: clamp(2.4rem, 5vw, 5rem);
}

.product-group {
  border-top: 1px solid var(--line);
  padding: 2.2rem 0 3rem;
}

.group-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.group-heading h3 {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 2.3rem);
  line-height: 1;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.product-card {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --tilt-scale: 1;
  position: relative;
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--line);
  transform-style: preserve-3d;
  transition: transform 550ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 550ms ease, border-color 350ms ease;
  will-change: transform;
}

/* Higher specificity than .reveal.is-visible so the tilt transform below wins once the card has settled in. */
.product-card.reveal.is-visible {
  transform: perspective(1000px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) scale(var(--tilt-scale));
}

.product-card.is-tilting {
  z-index: 2;
  border-color: transparent;
  box-shadow: 0 26px 48px -22px rgba(13, 12, 11, 0.42);
  transition: transform 90ms linear, box-shadow 350ms ease, border-color 350ms ease;
}

.product-image {
  overflow: hidden;
  background: var(--cream);
}

.product-image img {
  width: 100%;
  aspect-ratio: 1 / 1.12;
  object-fit: cover;
  transform: translateZ(0);
}

@media (prefers-reduced-motion: reduce) {
  .product-card {
    transition: none;
  }
}

.product-info {
  min-height: 170px;
  padding: 1.2rem;
}

.product-info h4 {
  margin: 0.55rem 0;
  font-size: 1.05rem;
  line-height: 1.25;
}

.product-info p {
  margin: 0;
  font-size: 0.9rem;
}

.ingredient-info {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  background: var(--cream);
  padding: clamp(1.4rem, 4vw, 2.6rem);
}

.ingredient-info h4 {
  margin: 0 0 1rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  line-height: 1.15;
}

.ingredient-info-body {
  columns: 2;
  column-gap: 2.4rem;
}

.ingredient-info-body > * {
  break-inside: avoid;
}

.ingredient-info-body h5 {
  margin: 1.1rem 0 0.35rem;
  font-size: 0.92rem;
  font-weight: 800;
}

.ingredient-info-body h5:first-child {
  margin-top: 0;
}

.ingredient-info-body p,
.ingredient-info-body li {
  margin: 0 0 0.6rem;
  color: var(--soft-ink);
  font-size: 0.88rem;
  line-height: 1.65;
}

.ingredient-info-body ul {
  margin: 0 0 0.6rem;
  padding-left: 1.1rem;
}

.research-warning {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.7;
}

.site-footer {
  background: var(--black);
  color: var(--white);
}

.footer-inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 2rem;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 2.3rem 0;
}

.footer-inner p {
  margin: 0.35rem 0 0;
  color: rgba(255, 253, 248, 0.68);
}

.footer-logo {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  margin-bottom: 1rem;
}

.admin-shell {
  padding: 120px 0 64px;
}

.admin-heading {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: end;
  margin-bottom: 2rem;
}

.admin-heading h1 {
  font-size: clamp(2.2rem, 5vw, 4.4rem);
}

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

.admin-table table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

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

.admin-table th {
  background: var(--cream);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.admin-table td span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
}

.table-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.table-actions a,
.table-actions button {
  border: 0;
  background: none;
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
}

.admin-form {
  display: grid;
  gap: 1.2rem;
  border: 1px solid var(--line);
  padding: clamp(1rem, 4vw, 2rem);
  background: var(--cream);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

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

.admin-form label {
  display: grid;
  gap: 0.5rem;
  color: var(--soft-ink);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  padding: 0.8rem;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  text-transform: none;
}

.check-line {
  display: flex !important;
  flex-direction: row;
  align-items: center;
}

.check-line input {
  width: auto;
}

.admin-preview,
.media-preview img {
  width: min(360px, 100%);
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
}

.status-message {
  margin-bottom: 1rem;
  border: 1px solid var(--line);
  background: var(--cream);
  padding: 1rem;
  font-weight: 700;
}

.status-error {
  border-color: #c0392b;
  background: #fbeae8;
  color: #922b21;
}

.status-error ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
  font-weight: 400;
}

.edit-layout {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.image-panel {
  display: grid;
  gap: 0.6rem;
}

.image-drop-zone {
  position: relative;
  display: grid;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px dashed var(--muted);
  background: var(--white);
  cursor: pointer;
  transition: border-color 220ms ease, background 220ms ease;
}

.image-drop-zone:hover,
.image-drop-zone.is-dragover {
  border-color: var(--ink);
  background: var(--warm);
}

.image-drop-zone img {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-drop-hint {
  grid-area: 1 / 1;
  align-self: end;
  padding: 0.7rem;
  background: rgba(5, 5, 5, 0.62);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  line-height: 1.5;
}

.sr-only-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.language-editor {
  display: grid;
  gap: 1rem;
}

.language-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.language-tab {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--soft-ink);
  padding: 0.6rem 1rem;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}

.language-tab:hover {
  border-color: var(--ink);
}

.language-tab.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.language-panel {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.language-panel.is-active {
  display: grid;
}

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

  .language-panel {
    grid-template-columns: 1fr;
  }
}

.danger-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid #c0392b;
  padding: 0.76rem 1.2rem;
  background: transparent;
  color: #c0392b;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 220ms ease, color 220ms ease;
}

.danger-link:hover {
  background: #c0392b;
  color: var(--white);
}

.delete-form {
  margin-top: 1.2rem;
}

.admin-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  background: var(--cream);
  border: 1px solid var(--line);
}

.logout-form {
  margin: 0;
}

.logout-form button {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
}

.login-shell {
  display: flex;
  min-height: 70svh;
  align-items: center;
  justify-content: center;
}

.login-card {
  width: min(420px, 100%);
}

.login-card h1 {
  margin: 0 0 1.5rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

@media (max-width: 1040px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .featured-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .site-header {
    background: rgba(5, 5, 5, 0.9);
  }

  .hero {
    min-height: 86svh;
  }

  .hero-content {
    min-height: 86svh;
    padding-top: 108px;
  }

  .feature-band,
  .studio-section,
  .section-heading,
  .footer-inner,
  .form-grid,
  .form-grid.two {
    grid-template-columns: 1fr;
  }

  .feature-band article {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .studio-section {
    min-height: 0;
  }

  .studio-video {
    min-height: 420px;
  }

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

  .ingredient-info-body {
    columns: 1;
  }

  .admin-heading {
    display: grid;
    align-items: start;
  }
}

@media (max-width: 560px) {
  .navbar {
    min-height: 64px;
  }

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

  .hero-ticker {
    text-align: left;
  }

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

  .featured-strip article {
    display: grid;
    grid-template-columns: 120px 1fr;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .featured-strip img {
    height: 100%;
  }

  .product-info {
    min-height: 0;
  }
}
