:root {
  color-scheme: dark;
  --paper: #f4f4f0;
  --ink: #080b0e;
  --muted: #a9adb0;
  --line: rgba(244, 244, 240, 0.24);
  --line-strong: rgba(244, 244, 240, 0.68);
  font-family: 'Helvetica Neue', 'Nimbus Sans L', Helvetica, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}

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

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-stage {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 560px;
  isolation: isolate;
  overflow: hidden;
}

.stage-background,
.stage-shade {
  position: absolute;
  z-index: -2;
  inset: 0;
}

.stage-background {
  background: url('/assets/background.png') center center / cover no-repeat;
  transform: scale(1.015);
  animation: scene-drift 24s ease-out both;
}

.stage-shade {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(4, 7, 9, 0.46), rgba(4, 7, 9, 0.04) 64%, rgba(4, 7, 9, 0.28)),
    linear-gradient(
      90deg,
      rgba(4, 7, 9, 0.22),
      transparent 28%,
      transparent 72%,
      rgba(4, 7, 9, 0.2)
    );
}

.site-header {
  position: absolute;
  z-index: 20;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 92px;
  padding: 0 max(40px, calc((100vw - 1360px) / 2));
}

.brand-control {
  width: 172px;
  height: 58px;
  padding: 0;
  border: 0;
  background: transparent;
}

.brand-control img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.site-navigation {
  display: flex;
  align-items: center;
  gap: 34px;
}

.site-navigation button {
  position: relative;
  padding: 12px 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  transition: color 160ms ease;
}

.site-navigation button::after {
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 1px;
  background: var(--paper);
  content: '';
  opacity: 0;
  transition: opacity 160ms ease;
}

.site-navigation button:hover,
.site-navigation button[aria-current='page'] {
  color: #fff;
}

.site-navigation button[aria-current='page']::after {
  opacity: 1;
}

.menu-toggle {
  display: none;
}

.stage-content {
  position: relative;
  width: 100%;
  height: 100%;
}

.home-state {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(720px, calc(100vw - 64px));
  padding: 80px 96px 72px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, calc(-50% - 7vh)) scale(0.99);
  transition:
    opacity 360ms ease,
    transform 360ms ease;
}

.home-state.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, calc(-50% - 8vh)) scale(1);
}

.home-frame {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.home-frame i {
  position: absolute;
  width: 62px;
  height: 62px;
  border-color: rgba(255, 255, 255, 0.82);
  border-style: solid;
}

.home-frame i:nth-child(1) {
  top: 0;
  left: 0;
  border-width: 1px 0 0 1px;
}
.home-frame i:nth-child(2) {
  top: 0;
  right: 0;
  border-width: 1px 1px 0 0;
}
.home-frame i:nth-child(3) {
  right: 0;
  bottom: 0;
  border-width: 0 1px 1px 0;
}
.home-frame i:nth-child(4) {
  bottom: 0;
  left: 0;
  border-width: 0 0 1px 1px;
}

.home-identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-logo {
  width: min(440px, 88%);
  height: auto;
  margin: -36px 0 -18px;
}

.home-state h1 {
  margin: 0;
  font-size: clamp(34px, 4vw, 62px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1;
}

.home-identity > p {
  max-width: 580px;
  margin: 24px auto 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 16px;
  line-height: 1.65;
}

.home-actions {
  display: flex;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 2px;
  background: transparent;
  font-size: 13px;
  transition:
    background-color 150ms ease,
    color 150ms ease,
    border-color 150ms ease;
}

.button-primary {
  border-color: var(--paper);
  background: var(--paper);
  color: var(--ink);
}
.button-primary:hover {
  background: #fff;
}
.button-secondary:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.panel-region {
  position: absolute;
  z-index: 5;
  top: 112px;
  right: max(42px, calc((100vw - 1360px) / 2));
  bottom: 54px;
  width: min(720px, 52vw);
  pointer-events: none;
}

.editorial-panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 34px 42px 42px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(7, 10, 13, 0.88);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transform: translateX(18px) scale(0.992);
  transition:
    opacity 340ms ease,
    transform 340ms ease;
}

.editorial-panel::before,
.editorial-panel::after {
  position: absolute;
  width: 42px;
  height: 42px;
  border-color: rgba(255, 255, 255, 0.75);
  border-style: solid;
  content: '';
  pointer-events: none;
}

.editorial-panel::before {
  top: 12px;
  right: 12px;
  border-width: 1px 1px 0 0;
}
.editorial-panel::after {
  bottom: 12px;
  left: 12px;
  border-width: 0 0 1px 1px;
}

.editorial-panel.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0) scale(1);
}

.panel-back {
  align-self: flex-start;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
}

.panel-back span {
  margin-right: 8px;
}
.panel-back:hover {
  color: #fff;
}
.panel-number {
  margin: 26px 0 18px;
  color: #858a8d;
  font-size: 11px;
  letter-spacing: 0.12em;
}

.panel-body {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
}

.panel-body h2 {
  max-width: 590px;
  margin: 0;
  font-size: clamp(44px, 4.3vw, 72px);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.panel-copy {
  max-width: 570px;
  margin-top: auto;
  padding-top: 50px;
}

.panel-copy p,
.panel-intro {
  margin: 0 0 20px;
  color: #c7c9ca;
  font-size: clamp(16px, 1.4vw, 21px);
  line-height: 1.52;
}

.studio-copy blockquote {
  margin: 40px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--line-strong);
  color: #fff;
  font-size: 14px;
  line-height: 1.65;
}

.brand-list {
  margin-top: 34px;
  border-top: 1px solid var(--line-strong);
}
.brand-entry {
  display: grid;
  grid-template-columns: minmax(130px, 0.65fr) 1.35fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.brand-entry-active {
  border-top: 2px solid var(--paper);
}
.brand-entry h3 {
  margin: 0 0 7px;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.brand-status,
.brand-names span {
  margin: 0;
  color: #858a8d;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.brand-entry-active .brand-status {
  color: var(--paper);
}
.brand-description {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.brand-names {
  margin: 0 0 14px;
  color: var(--paper);
  font-size: 15px;
  line-height: 1.65;
}
.brand-names span {
  margin-left: 7px;
}

.panel-intro {
  max-width: 570px;
  margin-top: 28px;
}
.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: auto 0 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
  list-style: none;
}
.process-list li {
  min-height: 126px;
  padding: 18px 14px 20px 0;
  border-right: 1px solid var(--line);
}
.process-list li + li {
  padding-left: 14px;
}
.process-list li:last-child {
  border-right: 0;
}
.process-list span {
  display: block;
  margin-bottom: 50px;
  color: #858a8d;
  font-size: 10px;
}
.process-list strong {
  font-size: 13px;
  font-weight: 500;
}
.technology-principle {
  margin-top: 40px !important;
  color: #fff !important;
}

.contact-body {
  justify-content: center;
}
.contact-body > p {
  margin: 40px 0 34px;
  color: #c7c9ca;
  font-size: 17px;
  line-height: 1.7;
}
.contact-link {
  width: fit-content;
  padding-bottom: 5px;
  border-bottom: 1px solid currentColor;
  font-size: clamp(20px, 2.4vw, 30px);
  text-decoration: none;
}
footer {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: rgba(255, 255, 255, 0.58);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stage-notes {
  position: absolute;
  z-index: 2;
  right: max(40px, calc((100vw - 1360px) / 2));
  bottom: 26px;
  left: max(40px, calc((100vw - 1360px) / 2));
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.46);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.stage-notes span:nth-child(2) {
  color: rgba(255, 255, 255, 0.7);
}

@keyframes scene-drift {
  from {
    transform: scale(1.045);
  }
  to {
    transform: scale(1.015);
  }
}

@media (max-width: 900px) {
  .site-header {
    height: 78px;
    padding: 0 28px;
  }
  .brand-control {
    width: 142px;
    height: 48px;
  }
  .menu-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0 12px 12px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 12px;
  }
  .menu-lines,
  .menu-lines::after {
    display: block;
    width: 20px;
    height: 1px;
    background: currentColor;
    content: '';
    transition: transform 150ms ease;
  }
  .menu-lines::after {
    transform: translateY(6px);
  }
  .menu-toggle[aria-expanded='true'] .menu-lines {
    transform: translateY(3px) rotate(45deg);
  }
  .menu-toggle[aria-expanded='true'] .menu-lines::after {
    transform: rotate(-90deg);
  }
  .site-navigation {
    position: fixed;
    inset: 78px 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 18px 28px 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(8, 11, 14, 0.97);
  }
  .site-navigation.is-open {
    display: flex;
  }
  .site-navigation button {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    text-align: left;
    font-size: 15px;
  }
  .site-navigation button::after {
    display: none;
  }
  .panel-region {
    top: 98px;
    right: 28px;
    bottom: 40px;
    left: 28px;
    width: auto;
  }
  .editorial-panel {
    padding: 28px 34px 36px;
  }
  .panel-body h2 {
    font-size: clamp(42px, 8vw, 64px);
  }
}

@media (max-width: 560px) {
  html,
  body {
    height: 100dvh;
    min-height: 100svh;
  }
  .site-stage {
    height: 100dvh;
    min-height: 100svh;
  }
  .stage-background {
    background-position: 50% 58%;
  }
  .stage-shade {
    background: linear-gradient(
      180deg,
      rgba(4, 7, 9, 0.46),
      rgba(4, 7, 9, 0.07) 65%,
      rgba(4, 7, 9, 0.28)
    );
  }
  .site-header {
    height: 70px;
    padding: 0 20px;
  }
  .brand-control {
    width: 120px;
    height: 42px;
  }
  .site-navigation {
    inset: 70px 0 auto;
    padding-right: 20px;
    padding-left: 20px;
  }
  .home-state {
    width: calc(100vw - 40px);
    padding: 46px 22px 40px;
    transform: translate(-50%, calc(-50% - 3vh)) scale(0.99);
  }
  .home-state.is-active {
    transform: translate(-50%, calc(-50% - 4vh)) scale(1);
  }
  .home-frame i {
    width: 42px;
    height: 42px;
  }
  .hero-logo {
    width: min(82%, 300px);
    margin: -22px 0 -8px;
  }
  .home-state h1 {
    font-size: clamp(32px, 9.3vw, 40px);
  }
  .home-identity > p {
    max-width: 320px;
    margin-top: 16px;
    font-size: 13px;
    line-height: 1.5;
  }
  .home-actions {
    width: 100%;
    margin-top: 22px;
  }
  .button {
    min-height: 44px;
    min-width: 0;
    flex: 1;
    padding: 0 12px;
  }
  .panel-region {
    top: 86px;
    right: 14px;
    bottom: 30px;
    left: 14px;
  }
  .editorial-panel {
    padding: 22px 24px 30px;
    background: rgba(7, 10, 13, 0.9);
    backdrop-filter: blur(7px);
  }
  .panel-number {
    margin: 20px 0 14px;
  }
  .panel-body h2 {
    font-size: clamp(38px, 11.5vw, 50px);
  }
  .panel-copy {
    padding-top: 34px;
  }
  .panel-copy p,
  .panel-intro {
    font-size: 16px;
  }
  .studio-copy blockquote {
    margin-top: 30px;
  }
  .brand-list {
    margin-top: 24px;
  }
  .brand-entry {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px 0;
  }
  .brand-description {
    font-size: 13px;
  }
  .process-list {
    grid-template-columns: 1fr 1fr;
  }
  .process-list li:nth-child(2) {
    border-right: 0;
  }
  .process-list li:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .process-list span {
    margin-bottom: 32px;
  }
  .contact-body {
    justify-content: flex-start;
    padding-top: 26px;
  }
  .contact-body > p {
    margin: 34px 0 28px;
  }
  footer {
    flex-direction: column;
    gap: 8px;
  }
  .stage-notes {
    display: none;
  }
}

@media (max-width: 420px) {
  .site-header {
    padding-right: 18px;
    padding-left: 18px;
  }
  .brand-control {
    width: 112px;
  }
  .home-state {
    width: calc(100vw - 32px);
    padding-right: 20px;
    padding-left: 20px;
  }
  .home-actions {
    flex-direction: column;
    gap: 9px;
  }
  .button {
    width: 100%;
    flex: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .stage-background {
    transform: none;
  }
  .home-state,
  .home-state.is-active {
    transform: translate(-50%, calc(-50% - 7vh));
  }
  .editorial-panel,
  .editorial-panel.is-active {
    transform: none;
  }
}
