:root {
  --bg: #0f1411;
  --panel: #161d19;
  --ink: #f6f1e7;
  --muted: #b0a89b;
  --gold: #d5a55a;
  --line: rgba(213, 165, 90, 0.22);
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body:after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.025;
  z-index: 20;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 150 150' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23fff' filter='url(%23n)' d='M0 0h150v150H0z'/%3E%3C/svg%3E");
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
  cursor: pointer;
  background: none;
  border: 0;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 4px;
}

.skip {
  position: fixed;
  top: -100px;
  z-index: 100;
  background: var(--bg);
  padding: 16px 22px;
  font-weight: 600;
}

.skip:focus {
  top: 0;
}

header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  height: 84px;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(15, 20, 17, 0.72);
  backdrop-filter: blur(18px);
}

header.scrolled {
  position: fixed;
  height: 74px;
  background: rgba(15, 20, 17, 0.92);
}

.brand {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 2.5px;
  white-space: nowrap;
  color: var(--ink);
}

.brand span {
  font-weight: 600;
}

.brand small {
  display: block;
  font: 600 8.5px var(--font-sans);
  letter-spacing: 3.6px;
  color: var(--gold);
  margin-top: 4px;
}

nav {
  display: flex;
  gap: 28px;
  font-size: 12.5px;
  font-weight: 600;
}

nav a {
  transition: color 0.25s ease;
}

nav a:hover {
  color: var(--gold);
}

.nav-tools {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  font-weight: 600;
}

.nav-tools button {
  padding: 8px 0;
}

.nav-tools span {
  margin-left: 6px;
}

.sound-label {
  font-size: 9.5px;
  letter-spacing: 0.8px;
}

.mono,
.eyebrow {
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--gold);
}

.eyebrow i {
  display: inline-block;
  height: 5px;
  width: 5px;
  background: var(--gold);
  border-radius: 50%;
  margin-right: 10px;
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(48px, 6.2vw, 92px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.035em;
  margin: 20px 0 18px;
}

h1 em,
h2 i,
h3 i {
  font-style: normal;
  font-weight: 700;
  color: var(--gold);
}

.intro {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.circle-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  margin-top: 24px;
}

.circle {
  border: 1px solid rgba(213, 165, 90, 0.55);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-size: 18px;
  background: rgba(213, 165, 90, 0.1);
  transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.circle-link:hover .circle {
  background: var(--gold);
  color: #111613;
  border-color: var(--gold);
  transform: rotate(45deg);
}

.section {
  padding: 88px 6%;
}

.section-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(213, 165, 90, 0.14);
}

.muted {
  color: var(--muted);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin: 28px 0 42px;
}

h2 {
  font-size: clamp(32px, 4.2vw, 54px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.028em;
}

.section-heading p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 540px;
}

.product-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(20, 27, 23, 0.65);
}

.product-tabs button {
  text-align: left;
  position: relative;
  padding: 20px 18px 22px;
  color: var(--muted);
  transition: background 0.28s ease, color 0.28s ease;
}

.product-tabs button + button {
  border-left: 1px solid var(--line);
}

.product-tabs button[aria-selected='true'] {
  background: rgba(213, 165, 90, 0.14);
  color: var(--ink);
  box-shadow: inset 0 3px 0 var(--gold);
}

.product-tabs small {
  display: block;
  font: 700 9.5px var(--font-sans);
  letter-spacing: 1.4px;
  margin-bottom: 8px;
  color: var(--gold);
}

.product-tabs span {
  font: 700 17px var(--font-display);
  letter-spacing: -0.01em;
}

.product-tabs b {
  position: absolute;
  right: 16px;
  top: 20px;
  font-size: 14px;
  font-weight: 600;
  opacity: 0.65;
}

.product-display {
  display: grid;
  grid-template-columns: 1.22fr 1fr;
  min-height: 540px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(18, 24, 20, 0.72);
}

.viewer {
  position: relative;
  background: radial-gradient(ellipse at center, rgba(213, 165, 90, 0.14), transparent 72%);
  min-width: 0;
}

.viewer-top,
.viewer-bottom {
  position: absolute;
  left: 22px;
  right: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 2;
  font-size: 10px;
  color: var(--muted);
}

.viewer-top {
  top: 20px;
}

.viewer-bottom {
  bottom: 18px;
}

.viewer-bottom .mono {
  font-size: 10px;
}

#product-scene {
  height: 100%;
  min-height: 540px;
  touch-action: pan-y;
  cursor: grab;
}

#product-scene:active {
  cursor: grabbing;
}

.lights {
  display: flex;
  gap: 6px;
}

.lights button {
  height: 32px;
  width: 32px;
  font-size: 15px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
}

.lights button.active,
.lights button:hover {
  color: #111613;
  background: var(--gold);
  border-color: var(--gold);
}

.product-info {
  padding: 44px 42px;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

h3 {
  font-size: clamp(24px, 2.8vw, 36px);
  line-height: 1.15;
  font-weight: 700;
}

.product-info h3 {
  margin: 14px 0 16px;
}

.product-info > p {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--muted);
}

.details-toggle {
  display: flex;
  gap: 24px;
  margin: 22px 0 14px;
  border-bottom: 1px solid var(--line);
}

.details-toggle button {
  padding: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.details-toggle .active {
  border-bottom: 2px solid var(--gold);
  color: var(--ink);
}

#product-details {
  font-size: 12.5px;
  line-height: 1.75;
  min-height: 68px;
  color: var(--muted);
}

.spec {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.spec span:last-child {
  color: var(--ink);
  font-weight: 600;
}

.button {
  padding: 14px 20px;
  border: 1px solid var(--gold);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 700;
  font-size: 12.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 20px;
  transition: all 0.25s ease;
}

.button:hover {
  background: rgba(213, 165, 90, 0.18);
}

.concept {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 12px;
}

.manifesto {
  border-top: 1px solid var(--line);
}

.manifesto h2 {
  margin: 28px 0 44px;
}

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.values article {
  padding: 32px;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(22, 30, 25, 0.55);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.values article:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
}

.value-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(213, 165, 90, 0.12);
  border: 1px solid var(--line);
  font-size: 22px;
  color: var(--gold);
  margin-bottom: 16px;
}

.values small {
  position: absolute;
  right: 28px;
  top: 28px;
  font: 700 11px var(--font-sans);
  color: var(--gold);
}

.values h3 {
  font-size: 21px;
  margin: 6px 0 10px;
}

.values p {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--muted);
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 0;
  color: var(--gold);
  transition: color 0.2s ease;
}

.text-button:hover {
  color: #e8751a;
}

.back-top {
  font: 700 11px var(--font-sans);
  letter-spacing: 1.2px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  font-size: 11.5px;
  color: var(--muted);
}

.footer-bottom p {
  font-size: 11.5px;
  color: var(--muted);
}

#ink-studio {
  padding: 36px;
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(20, 27, 23, 0.65);
  grid-template-columns: 1fr 1.8fr;
  gap: 40px;
}

#ink-studio:not([hidden]) {
  display: grid;
}

#ink-studio h3 {
  margin: 14px 0;
}

#ink-studio p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
}

#ink {
  width: 100%;
  height: 320px;
  background: #e6dac3;
  border-radius: 8px;
  touch-action: none;
  cursor: crosshair;
}

dialog {
  background: #141b17;
  color: var(--ink);
  border: 1px solid var(--gold);
  border-radius: 12px;
  width: min(560px, 92vw);
  padding: 36px;
  max-height: 90vh;
}

dialog::backdrop {
  background: rgba(7, 10, 8, 0.78);
  backdrop-filter: blur(10px);
}

dialog h2 {
  font-size: 28px;
  margin: 12px 0 14px;
}

dialog p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.75;
}

dialog label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  margin-top: 16px;
  color: var(--ink);
}

input,
select,
textarea {
  display: block;
  width: 100%;
  padding: 12px 14px;
  background: #0d120f;
  color: var(--ink);
  border: 1px solid rgba(213, 165, 90, 0.32);
  border-radius: 8px;
  margin-top: 6px;
  font-size: 13.5px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(213, 165, 90, 0.15);
}

textarea {
  resize: vertical;
  min-height: 96px;
}

.close {
  position: absolute;
  right: 18px;
  top: 14px;
  font-size: 26px;
  color: var(--muted);
}

#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #18231d;
  color: var(--ink);
  padding: 13px 24px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5);
  z-index: 120;
  display: none;
  font-size: 13px;
  font-weight: 600;
}

canvas {
  display: block;
}

.webgl-fallback {
  display: grid;
  place-items: center;
  height: 100%;
  padding: 40px;
  text-align: center;
  color: var(--gold);
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.in-view {
  animation: reveal 0.75s both;
}

@media (max-width: 960px) {
  .section {
    padding: 68px 5%;
  }
  .section-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin: 22px 0 32px;
  }
  .product-display {
    grid-template-columns: 1fr;
  }
  .product-info {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 32px 24px;
  }
  .values {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 56px 5%;
  }
  .viewer {
    height: 420px;
  }
  #product-scene {
    min-height: 420px;
  }
  #ink-studio:not([hidden]) {
    grid-template-columns: 1fr;
    padding: 22px;
  }
  dialog {
    padding: 26px 20px;
  }
  #toast {
    width: 90%;
    text-align: center;
    bottom: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}
