:root {
  --bg: #03050a;
  --bg-deep: #010206;
  --text: #f4f1ea;
  --text-main: rgba(255,255,255,1);
  --text-soft: rgba(255,255,255,0.95);
  --text-muted: rgba(255,255,255,0.88);
  --text-quiet: rgba(255,255,255,0.82);
  --nav-text: rgba(255,255,255,0.96);
  --footer-text: rgba(255,255,255,0.78);
  --line: rgba(255, 255, 255, 0.22);
  --line-soft: rgba(255,255,255,0.22);
  --gold: #d6aa56;
  --gold-soft: rgba(214, 170, 86, 0.55);
  --max: 1320px;
  --header-wordmark-width: clamp(150px, 10vw, 210px);
  --hero-logo-width: clamp(88px, 8vw, 138px);
  --hero-wordmark-width: clamp(360px, 40vw, 620px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.22, 0.61, 0.36, 1);
  --duration-fast: 220ms;
  --duration-slow: 1400ms;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(ellipse at 50% 18%, rgba(48, 58, 76, 0.22), transparent 34%),
    radial-gradient(ellipse at 50% 80%, rgba(214, 170, 86, 0.07), transparent 30%),
    linear-gradient(180deg, #07090f 0%, #020307 48%, #050506 100%);
  color: var(--text);
  font-family: "Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-synthesis: none;
  letter-spacing: 0;
}

::selection {
  background: rgba(216, 175, 91, 0.28);
  color: #fff9ea;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.86' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23noise)' opacity='0.42'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  opacity: 0.045;
  mix-blend-mode: soft-light;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(ellipse at 50% 42%, rgba(255, 255, 255, 0.025), transparent 42%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.28), transparent 24%, transparent 76%, rgba(0, 0, 0, 0.28)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.28));
}

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

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

a:focus-visible {
  outline: 1px solid rgba(216, 175, 91, 0.74);
  outline-offset: 7px;
}

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

.site-shell {
  min-height: 100vh;
  overflow-x: hidden;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--max), calc(100vw - 96px));
  margin: 0 auto;
  padding: 54px 0 0;
  animation: headerIn var(--duration-slow) var(--ease-out) both;
}

.brand-wordmark,
.site-nav a {
  color: var(--text-main);
  font-size: 17px;
  font-weight: 400;
  line-height: 1;
}

.brand-wordmark {
  display: block;
  width: var(--header-wordmark-width);
  max-width: 100%;
  height: auto;
  opacity: 0.98;
  transition: opacity var(--duration-fast) var(--ease-soft), filter var(--duration-fast) var(--ease-soft);
}

.brand-wordmark img {
  width: 100%;
  height: auto;
}

.brand-wordmark:hover,
.brand-wordmark:focus-visible {
  opacity: 1;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.08));
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(36px, 5vw, 76px);
}

.site-nav a {
  color: var(--nav-text);
  letter-spacing: 0.03em;
  opacity: 1;
  transition:
    color var(--duration-fast) var(--ease-soft),
    opacity var(--duration-fast) var(--ease-soft),
    transform var(--duration-fast) var(--ease-soft);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--gold);
  opacity: 1;
  transform: translateY(-1px);
}

.hero {
  --hero-offset-y: -34px;
  --scroll-offset-y: 0px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100svh;
  padding: 0 24px;
}

.hero-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100svh;
  width: min(1320px, calc(100vw - 96px));
}

.hero-stage::before {
  position: absolute;
  left: 50%;
  top: 42%;
  z-index: 0;
  width: clamp(520px, 54vw, 860px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%) rotate(-8deg);
  pointer-events: none;
  content: "";
  background: url("assets/kalveri-k.png") center / contain no-repeat;
  opacity: 0.016;
  filter: grayscale(1) sepia(0.58) saturate(1.05) brightness(1.08);
}

/* Bottom divider only. The glow belongs to the scroll indicator, not the footer/page. */
.hero-stage::after {
  position: absolute;
  left: 50%;
  bottom: 58px;
  z-index: 1;
  width: 100%;
  height: 1px;
  transform: translateX(-50%);
  content: "";
  background:
    linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.11) 18%, rgba(214, 170, 86, 0.36) 50%, rgba(255, 255, 255, 0.11) 82%, transparent 100%);
}


.hero-footer {
  position: absolute;
  left: 50%;
  bottom: 20px;
  z-index: 2;
  margin: 0;
  transform: translateX(-50%);
  color: var(--footer-text);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-indent: 0.26em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  animation: scrollIn 2200ms var(--ease-out) both;
}

.hero-composition {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(980px, calc(100vw - 64px));
  --composition-x: -2px;
  z-index: 2;
  text-align: center;
  transform: translate(var(--composition-x), var(--hero-offset-y));
  animation: heroIn 1900ms var(--ease-out) both;
  will-change: opacity, transform;
}

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

.hero-k {
  position: relative;
  isolation: isolate;
  display: block;
  width: var(--hero-logo-width);
  height: auto;
  margin-bottom: clamp(56px, 7vh, 78px);
}

.hero-k::before {
  position: absolute;
  inset: -64px;
  z-index: 0;
  pointer-events: none;
  content: "";
  background: radial-gradient(circle, rgba(214, 170, 86, 0.2), rgba(214, 170, 86, 0.07) 34%, transparent 64%);
  opacity: 0.78;
  filter: blur(20px);
}

.hero-k img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
}

.hero-logo {
  display: block;
  width: min(var(--hero-wordmark-width), calc(100vw - 64px));
  max-width: 100%;
  height: auto;
  margin-bottom: 36px;
}

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

.gold-rule {
  width: 68px;
  height: 1px;
  margin-bottom: 28px;
  background: linear-gradient(90deg, transparent, rgba(214, 170, 86, 0.9), transparent);
}

.tagline {
  margin-bottom: 17px;
  color: var(--text-soft);
  font-size: clamp(12px, 1.2vw, 15px);
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  text-transform: uppercase;
  text-wrap: balance;
}

.hero-line {
  max-width: 480px;
  margin: 0;
  color: var(--text-muted);
  font-size: clamp(15px, 1.4vw, 17px);
  font-weight: 400;
  line-height: 1.8;
  text-wrap: pretty;
}

.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: clamp(126px, 13vh, 154px);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  margin-top: 0;
  transform: translate(-50%, var(--scroll-offset-y));
  color: rgba(255, 255, 255, 0.78);
  animation: scrollIn 2200ms var(--ease-out) both;
  will-change: opacity, transform;
}

.scroll-indicator::before {
  position: absolute;
  left: 50%;
  top: 52%;
  z-index: -1;
  width: min(360px, 34vw);
  height: 120px;
  transform: translate(-50%, -18%);
  pointer-events: none;
  content: "";
  background: radial-gradient(
    ellipse at center,
    rgba(214, 170, 86, 0.22) 0%,
    rgba(214, 170, 86, 0.09) 42%,
    transparent 78%
  );
  opacity: 0.8;
  filter: blur(24px);
}

.scroll-indicator span {
  display: block;
  width: 1px;
  height: 38px;
  background: linear-gradient(180deg, transparent, rgba(214, 170, 86, 0.86));
  animation: scrollLine 4.6s var(--ease-soft) infinite;
}

.scroll-indicator p {
  margin: 0;
  color: var(--text-quiet);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  text-transform: uppercase;
}

.section {
  position: relative;
  z-index: 0;
  display: grid;
  grid-template-columns: minmax(180px, 0.5fr) minmax(280px, 1fr);
  gap: clamp(36px, 8vw, 128px);
  align-content: center;
  min-height: 100svh;
  width: min(980px, calc(100vw - 96px));
  margin: 0 auto;
  padding: clamp(92px, 12vw, 156px) 0;
  border-top: 1px solid var(--line-soft);
  scroll-margin-top: 0;
}

.about::before {
  position: absolute;
  left: 20%;
  top: 43%;
  z-index: 0;
  width: min(640px, 58vw);
  height: 320px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  content: "";
  background:
    radial-gradient(
      ellipse at center,
      rgba(214, 170, 86, 0.18) 0%,
      rgba(214, 170, 86, 0.075) 34%,
      rgba(214, 170, 86, 0.025) 54%,
      transparent 74%
    );
  opacity: 0.78;
  filter: blur(28px);
}

.section > * {
  position: relative;
  z-index: 1;
}

.section-heading {
  margin: 0;
}

.eyebrow {
  margin-bottom: 28px;
  color: rgba(214,170,86,0.94);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

h2 {
  max-width: 520px;
  margin: 0;
  color: var(--text-main);
  font-size: clamp(28px, 4.6vw, 52px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0;
  text-wrap: balance;
}

.section h2 {
  color: var(--text-main);
}

.section > p {
  max-width: 560px;
  margin: 48px 0 0;
  color: var(--text-soft);
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 400;
  line-height: 1.7;
  text-wrap: pretty;
}

.company-list {
  display: grid;
  gap: 0;
  padding: 0;
  margin-top: 34px;
  list-style: none;
}

.company-list li {
  display: grid;
  grid-template-columns: minmax(130px, 0.42fr) 1fr;
  gap: 24px;
  padding: 23px 0;
  border-top: 1px solid var(--line-soft);
  transition:
    background var(--duration-fast) var(--ease-soft),
    border-color var(--duration-fast) var(--ease-soft);
}

.company-list li:last-child {
  border-bottom: 1px solid var(--line-soft);
}

.company-list li:hover {
  border-color: rgba(214, 170, 86, 0.22);
  background: rgba(255, 255, 255, 0.024);
}

.company-list h3 {
  margin: 0;
  color: var(--text-main);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color var(--duration-fast) var(--ease-soft);
}

.company-list p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: color var(--duration-fast) var(--ease-soft);
}

.company-list li:hover h3 {
  color: rgba(255, 255, 255, 0.98);
}

.company-list li:hover p {
  color: var(--text-soft);
}

.site-footer {
  width: min(1320px, calc(100vw - 96px));
  margin: 0 auto;
  padding: 34px 0 42px;
  border-top: 1px solid rgba(255, 255, 255, 0.26);
  color: var(--footer-text);
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-indent: 0.26em;
  text-transform: uppercase;
}

.reveal {
  animation: sectionIn 1300ms var(--ease-out) both;
  will-change: opacity, transform;
}

@keyframes headerIn {
  from {
    opacity: 1;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroIn {
  from {
    opacity: 1;
    transform: translate(var(--composition-x), calc(var(--hero-offset-y) + 18px));
  }
  to {
    opacity: 1;
    transform: translate(var(--composition-x), var(--hero-offset-y));
  }
}

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

@keyframes scrollIn {
  from {
    opacity: 0.86;
  }
  to {
    opacity: 1;
  }
}

@keyframes scrollLine {
  0% {
    transform: translateY(-8px);
    opacity: 0.35;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateY(8px);
    opacity: 0.35;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

  .scroll-indicator span {
    animation: none !important;
  }
}

@media (hover: none) {
  .site-nav a:hover,
  .site-nav a:focus-visible {
    transform: none;
  }
}

@media (max-height: 820px) {
  .hero {
    --hero-offset-y: -48px;
  }

  .hero-k {
    margin-bottom: clamp(38px, 5vh, 58px);
  }

  .hero-logo {
    margin-bottom: 28px;
  }

  .gold-rule {
    margin-bottom: 20px;
  }

  .scroll-indicator {
    bottom: 96px;
  }
}

@media (max-height: 720px) {
  .hero {
    --hero-offset-y: -58px;
  }

  .scroll-indicator {
    display: none;
  }
}

@media (max-width: 900px) {
  :root {
    --header-wordmark-width: clamp(132px, 20vw, 164px);
    --hero-logo-width: clamp(76px, 13vw, 118px);
    --hero-wordmark-width: clamp(320px, 88vw, 520px);
  }

  .site-header {
    width: min(100% - 40px, var(--max));
    padding-top: 28px;
  }

  a:focus-visible {
    outline-offset: 5px;
  }

  .site-nav {
    gap: 22px;
  }

  .site-nav a {
    font-size: 14px;
  }

  .hero {
    padding-inline: 20px;
  }

  .tagline {
    max-width: 520px;
    letter-spacing: 0.28em;
    text-indent: 0.28em;
  }

  .section {
    grid-template-columns: 1fr;
    width: min(100% - 40px, 680px);
    gap: 22px;
    min-height: 100svh;
    padding: 92px 0;
  }

  .about::before {
    left: 46%;
    top: 45%;
    width: min(520px, 82vw);
    height: 280px;
    opacity: 0.62;
  }

  .section > p,
  .company-list {
    margin-top: 0;
  }
}

@media (max-width: 640px) {
  :root {
    --hero-logo-width: clamp(67px, 18vw, 82px);
    --hero-wordmark-width: clamp(300px, 90vw, 360px);
  }

  .site-header {
    align-items: flex-start;
  }

  .site-nav {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 12px 20px;
    justify-content: end;
  }

  .site-nav a {
    font-size: 13px;
  }

  .hero {
    min-height: 100svh;
    --hero-offset-y: -24px;
    --scroll-offset-y: 0px;
  }

  .hero-stage::before {
    top: 38%;
    width: min(520px, 116vw);
    opacity: 0.01;
  }

  .hero-composition {
    --composition-x: 0px;
  }

  .hero-logo {
    margin-bottom: 30px;
  }

  .gold-rule {
    margin-bottom: 22px;
  }

  .tagline {
    font-size: clamp(10.5px, 2.8vw, 12px);
    letter-spacing: 0.18em;
    text-indent: 0.18em;
  }

  .hero-line {
    max-width: 300px;
    font-size: clamp(12px, 3.1vw, 13px);
    line-height: 1.65;
  }

  .hero-stage {
    width: min(100% - 40px, 1320px);
  }

  .hero-stage::after {
    bottom: 54px;
    background:
      linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.16) 18%, rgba(214, 170, 86, 0.42) 50%, rgba(255, 255, 255, 0.16) 82%, transparent 100%);
  }

  .scroll-indicator {
    bottom: clamp(112px, 14vh, 132px);
  }

  .hero-footer {
    bottom: 21px;
    width: 100%;
    color: rgba(255, 255, 255, 0.72);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-indent: 0.18em;
  }

  .company-list li {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 21px 0;
  }
}

@media (max-width: 430px) {
  :root {
    --header-wordmark-width: clamp(104px, 30vw, 128px);
    --hero-wordmark-width: min(300px, calc(100vw - 44px));
  }

  .site-header {
    width: min(100% - 28px, var(--max));
  }

  .site-nav {
    gap: 10px 14px;
  }

  .site-nav a {
    font-size: 12px;
  }

  .hero-line {
    max-width: 280px;
  }

  .about::before {
    width: 92vw;
    height: 240px;
    opacity: 0.52;
  }

  .site-footer {
    width: min(100% - 28px, var(--max));
    padding-bottom: 34px;
  }
}
