@import url("assets/korber-tokens.css");

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --page-bg: #000000;
  --page-fg: #fefefe;
  --gold: #c99a60;
  --gold-soft: #cfaa7d;
  --ink-on-gold: #1a1208;
  --muted: rgba(254, 254, 254, 0.66);
  --quiet: rgba(254, 254, 254, 0.44);
  --line: rgba(201, 154, 96, 0.34);
  --line-soft: rgba(201, 154, 96, 0.16);
}

html,
body {
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  background: var(--page-bg);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--page-fg);
  font-family: var(--kr-font-body);
  font-weight: var(--kr-w-light);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
}

.mobile-bg-video {
  display: none;
}

.site-shell {
  position: relative;
  height: 100vh;
  height: 100svh;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(20px, 3vw, 42px) clamp(26px, 5vw, 78px) clamp(16px, 2.2vw, 28px);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.97) 0%, rgba(0, 0, 0, 0.82) 39%, rgba(0, 0, 0, 0.34) 100%),
    radial-gradient(circle at 46% 47%, rgba(201, 154, 96, 0.09), transparent 28%),
    url("assets/website_textura_backgroud.png") center / cover no-repeat,
    #000000;
}

.site-shell::before {
  content: "";
  position: absolute;
  inset: -18%;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 66% 30%, rgba(207, 170, 125, 0.12), transparent 22%),
    radial-gradient(circle at 20% 72%, rgba(201, 154, 96, 0.08), transparent 28%);
  animation: ambient-shift 18s var(--kr-ease) infinite;
}

.site-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.8)),
    radial-gradient(circle at 50% 50%, transparent 0%, rgba(0, 0, 0, 0.46) 72%);
}

.ambient {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  background: url("assets/tree-rings.png") center / contain no-repeat;
  mix-blend-mode: screen;
}

.ambient-rings-one {
  width: min(660px, 46vw);
  aspect-ratio: 1;
  right: -10vw;
  bottom: -18vw;
  opacity: 0.07;
}

.ambient-rings-two {
  width: min(300px, 32vw);
  aspect-ratio: 1;
  left: -92px;
  top: -86px;
  opacity: 0.05;
}

.frame {
  position: fixed;
  inset: 16px;
  z-index: 3;
  border: 1px solid var(--line-soft);
  pointer-events: none;
}

.frame::before,
.frame::after,
.frame>span::before,
.frame>span::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: var(--gold);
}

.frame::before {
  top: -1px;
  left: -1px;
  border-top: 1px solid;
  border-left: 1px solid;
}

.frame::after {
  top: -1px;
  right: -1px;
  border-top: 1px solid;
  border-right: 1px solid;
}

.frame>span {
  position: absolute;
  inset: 0;
}

.frame>span::before {
  bottom: -1px;
  left: -1px;
  border-bottom: 1px solid;
  border-left: 1px solid;
}

.frame>span::after {
  right: -1px;
  bottom: -1px;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

.topbar {
  position: absolute;
  top: clamp(24px, 3vw, 42px);
  left: 50%;
  z-index: 4;
  display: flex;
  justify-content: center;
  transform: translateX(-50%);
}

.js .topbar.reveal {
  transform: translate(-50%, 12px);
}

.js .topbar.reveal.is-visible {
  transform: translate(-50%, 0);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 32px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.12);
  color: var(--gold);
  font-size: 10px;
  font-weight: var(--kr-w-semibold);
  letter-spacing: 0.26em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2.8s var(--kr-ease) infinite;
}

.hero {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.78fr);
  align-items: center;
  gap: clamp(44px, 7vw, 112px);
  width: min(1240px, 100%);
  height: calc(100% - clamp(20px, 2vw, 34px));
  margin: 0 auto;
  padding-top: clamp(42px, 5.6vh, 62px);
}

.hero-copy {
  max-width: 660px;
  padding-top: 0;
}

.hero-logo {
  display: inline-flex;
  width: clamp(172px, 14vw, 224px);
  margin: 0 0 clamp(14px, 1.7vh, 20px);
  text-decoration: none;
}

.hero-logo img {
  width: 100%;
  height: auto;
}

.headline {
  margin: 0;
  color: var(--gold);
  font-family: var(--kr-font-display);
  font-size: clamp(42px, 5.1vw, 78px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.98;
  text-wrap: balance;
}

.headline span {
  display: block;
  color: var(--page-fg);
  font-style: italic;
}

.lead {
  max-width: 56ch;
  margin: clamp(18px, 2vw, 26px) 0 0;
  color: var(--muted);
  font-size: clamp(15px, 1.02vw, 17px);
  line-height: 1.66;
}

.tagline {
  max-width: 34ch;
  margin: 14px 0 0;
  color: var(--gold-soft);
  font-family: var(--kr-font-display);
  font-size: clamp(17px, 1.28vw, 21px);
  font-style: italic;
  line-height: 1.35;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(24px, 2.8vw, 34px);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid var(--gold);
  font-size: 11px;
  font-weight: var(--kr-w-semibold);
  letter-spacing: 0.18em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    background var(--kr-dur-base) var(--kr-ease),
    color var(--kr-dur-base) var(--kr-ease),
    opacity var(--kr-dur-base) var(--kr-ease),
    transform var(--kr-dur-fast) var(--kr-ease);
}

.button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.45;
}

.button-primary {
  background: var(--gold);
  color: var(--ink-on-gold);
}

.button-secondary {
  color: var(--gold);
  background: rgba(0, 0, 0, 0.18);
}

.button:hover {
  opacity: 0.86;
}

.button:active {
  transform: translateY(1px);
}

.button:focus-visible,
.hero-logo:focus-visible {
  outline: 2px solid var(--gold-soft);
  outline-offset: 5px;
}

.hero-art {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 0;
}

.product-stage {
  position: relative;
  width: min(520px, 38vw);
  min-width: 360px;
  animation: product-float 10s var(--kr-ease) infinite;
}

.product-stage::before {
  content: "";
  position: absolute;
  top: 9%;
  bottom: 12%;
  left: -22px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(201, 154, 96, 0.5), transparent);
}

.product-mask {
  position: relative;
  width: 100%;
  aspect-ratio: 0.78;
  overflow: hidden;
  border: 1px solid rgba(201, 154, 96, 0.3);
  background: #000000;
}

.product-mask::before {
  content: "";
  position: absolute;
  inset: 18px;
  z-index: 3;
  border: 1px solid rgba(201, 154, 96, 0.16);
  pointer-events: none;
}

.product-mask::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.34) 0%, rgba(0, 0, 0, 0.02) 48%, rgba(0, 0, 0, 0.34) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.38));
}

.product-mask img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 55%;
  filter: saturate(1.02) contrast(1.06) brightness(0.98);
  transform: scale(1.025);
  animation: product-breathe 16s var(--kr-ease) infinite;
}

.product-caption {
  max-width: 100%;
  margin: 14px 0 0;
  color: var(--gold-soft);
  font-size: 10px;
  font-weight: var(--kr-w-semibold);
  letter-spacing: 0.3em;
  line-height: 1.35;
  text-align: right;
  text-transform: uppercase;
}

.materials {
  display: none;
}

.footer {
  position: absolute;
  right: clamp(32px, 5vw, 86px);
  bottom: clamp(22px, 2.8vw, 40px);
  left: clamp(32px, 5vw, 86px);
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--quiet);
  font-size: 10px;
  font-weight: var(--kr-w-semibold);
  letter-spacing: 0.2em;
  line-height: 1.5;
  text-transform: uppercase;
}

.js .reveal {
  opacity: 0;
  transform: translateY(12px);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 900ms var(--kr-ease),
    transform 900ms var(--kr-ease);
}

.reveal:nth-child(2) {
  transition-delay: 90ms;
}

.reveal:nth-child(3) {
  transition-delay: 180ms;
}

.reveal:nth-child(4) {
  transition-delay: 270ms;
}

.reveal:nth-child(5) {
  transition-delay: 360ms;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 0.42;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.16);
  }
}

@keyframes ambient-shift {

  0%,
  100% {
    opacity: 0.68;
    transform: translate3d(0, 0, 0);
  }

  50% {
    opacity: 1;
    transform: translate3d(-1.2%, 0.8%, 0);
  }
}

@keyframes mobile-light-sweep {

  0%,
  100% {
    opacity: 0.55;
    transform: translate3d(-12%, -6%, 0) rotate(-10deg);
  }

  50% {
    opacity: 0.9;
    transform: translate3d(10%, 7%, 0) rotate(-10deg);
  }
}

@keyframes product-float {

  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, -6px, 0);
  }
}

@keyframes product-breathe {

  0%,
  100% {
    transform: scale(1.025);
  }

  50% {
    transform: scale(1.055);
  }
}

@media (max-height: 780px) and (min-width: 900px) {
  .hero {
    height: calc(100% - 12px);
    padding-top: 42px;
  }

  .hero-logo {
    width: clamp(158px, 12vw, 192px);
    margin-bottom: 12px;
  }

  .headline {
    font-size: clamp(39px, 4.72vw, 64px);
  }

  .lead {
    max-width: 54ch;
    margin-top: 15px;
    font-size: 15px;
    line-height: 1.58;
  }

  .actions {
    margin-top: 21px;
  }

  .product-stage {
    width: min(440px, 34vw);
    min-width: 330px;
  }

  .tagline {
    font-size: 17px;
  }

  .footer {
    display: none;
  }
}

@media (max-width: 960px) {
  body {
    background: #000000;
  }

  .site-shell {
    padding: 18px 22px 22px;
    overflow-y: auto;
    background: transparent;
  }

  .mobile-bg-video {
    position: fixed;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100vw;
    height: 100vh;
    height: 100svh;
    object-fit: cover;
    object-position: center;
    opacity: 0.40;
    pointer-events: none;
    filter: brightness(0.72) saturate(0.95) contrast(1.08);
  }

  .site-shell::before {
    inset: -24%;
    z-index: 1;
    background:
      linear-gradient(105deg, transparent 18%, rgba(201, 154, 96, 0.12) 42%, transparent 66%),
      radial-gradient(circle at 70% 20%, rgba(207, 170, 125, 0.1), transparent 26%);
    mix-blend-mode: screen;
    animation: mobile-light-sweep 16s var(--kr-ease) infinite;
  }

  .site-shell::after {
    z-index: 1;
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.18) 38%, rgba(0, 0, 0, 0.5) 100%),
      radial-gradient(circle at 18% 58%, rgba(201, 154, 96, 0.1), transparent 38%);
  }

  .ambient {
    z-index: 1;
  }

  .topbar {
    top: calc(env(safe-area-inset-top, 0px) + 16px);
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  .hero {
    grid-template-columns: 1fr;
    align-content: start;
    height: auto;
    min-height: 100%;
    padding-top: 56px;
    gap: 18px;
    transform: none;
  }

  .hero-copy {
    max-width: 100%;
  }

  .product-stage {
    width: min(560px, 100%);
    min-width: 0;
    margin-top: -2px;
  }

  .product-mask {
    aspect-ratio: 1.35;
  }

  .hero-art {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    margin-top: 2px;
  }

  .js .hero-art.reveal,
  .js .hero-art.reveal.is-visible {
    opacity: 1;
    transform: none;
  }

  .footer {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    width: 100%;
    margin-top: 24px;
  }
}

@media (max-width: 720px) {
  .frame {
    display: none;
  }

  .status {
    max-width: calc(100vw - 72px);
    min-height: 30px;
    padding: 7px 11px;
    font-size: 8px;
    letter-spacing: 0.16em;
    white-space: nowrap;
  }

  .hero-logo {
    width: clamp(154px, 46vw, 188px);
    margin-bottom: 10px;
  }

  .headline {
    font-size: clamp(39px, 11.5vw, 60px);
    text-shadow: 0 14px 34px rgba(0, 0, 0, 0.86);
  }

  .lead {
    max-width: 34ch;
    margin-top: 18px;
    color: rgba(254, 254, 254, 0.82);
    font-size: 16px;
    line-height: 1.58;
    text-shadow: 0 10px 26px rgba(0, 0, 0, 0.9);
  }

  .tagline {
    margin-top: 16px;
    color: rgba(207, 170, 125, 0.95);
    font-size: 18px;
    line-height: 1.38;
    text-shadow: 0 10px 24px rgba(0, 0, 0, 0.86);
  }

  .actions {
    margin-top: 24px;
  }

  .actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
    min-height: 52px;
    padding: 0 18px;
    font-size: 11px;
    letter-spacing: 0.14em;
  }

  .product-caption {
    color: rgba(207, 170, 125, 0.88);
    text-align: left;
  }

  .footer {
    flex-direction: column;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .reveal,
  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .mobile-bg-video {
    display: none !important;
  }

  .site-shell {
    background:
      linear-gradient(90deg, rgba(0, 0, 0, 0.97) 0%, rgba(0, 0, 0, 0.82) 39%, rgba(0, 0, 0, 0.34) 100%),
      radial-gradient(circle at 46% 47%, rgba(201, 154, 96, 0.09), transparent 28%),
      url("assets/website_textura_backgroud.png") center / cover no-repeat,
      #000000;
  }
}