:root {
  --bg: #050508;
  --surface: #0a0c12;
  --surface-hover: #0f1119;
  --line: rgba(255, 255, 255, 0.06);
  --line-strong: rgba(255, 255, 255, 0.12);
  --gold: #c8a96e;
  --text: #f5f0e8;
  --muted: #8b8d94;
  --dim: #3d3f46;
  --success: #4a9e7b;
  --warning: #c8964a;
  --error: #9e4a4a;
  --max: 1180px;
  --section-pad: clamp(72px, 11vw, 132px);
  --small: clamp(11px, 1.15vw, 14px);
  --body: clamp(13px, 1.25vw, 16px);
  --title: clamp(22px, 3.6vw, 42px);
  --hero: clamp(38px, 7.5vw, 86px);
  --radius: 8px;
  --header-h: 78px;
  --page-h: calc(100dvh - var(--header-h));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  width: 100%;
  min-height: 100dvh;
  background: var(--bg);
  color: #e9f0f8;
  font-family:
    Georgia, "Times New Roman", "Cormorant Garamond", "Noto Serif SC", "Songti SC", serif;
  font-style: italic;
  font-weight: 700;
  font-size: var(--body);
  line-height: 1.7;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.42),
    0 4px 0 rgba(39, 45, 55, 0.92),
    0 9px 14px rgba(0, 0, 0, 0.78);
  overflow-x: clip;
}

body.auth-pending {
  overflow: hidden;
}

body.auth-pending .site-header,
body.auth-pending main {
  visibility: hidden;
}

body::before {
  content: "";
  display: none;
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.035;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.6) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.6) 1px, transparent 1px);
  background-size: 48px 48px;
}

a,
button {
  color: inherit;
}

#particle-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-liquid-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: auto;
}

.site-header {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(920px, calc(100% - 40px));
  height: 54px;
  padding: 0 clamp(16px, 2vw, 26px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04)),
    rgba(5, 5, 8, 0.2);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08),
    0 18px 50px rgba(0, 0, 0, 0.32);
  transform: translateX(-50%);
}

.brand-mark,
.nav-links a {
  text-decoration: none;
}

.brand-mark {
  display: grid;
  gap: 2px;
  letter-spacing: 0.18em;
  font-size: 10px;
}

.brand-mark span {
  color: #e9f0f8;
}

.brand-mark small {
  color: #e9f0f8;
  font-size: 8px;
}

.nav-links {
  display: flex;
  gap: clamp(12px, 1.8vw, 24px);
  color: #e9f0f8;
  font-size: 10px;
  letter-spacing: 0.06em;
}

.nav-links a:hover {
  color: #fff;
}

.section {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(var(--max), calc(100% - 40px));
  height: var(--page-h);
  min-height: var(--page-h);
  margin: 0 auto;
  padding: clamp(22px, 4.4vh, 46px) 0;
  overflow: hidden;
  scroll-margin-top: var(--header-h);
}

.hero {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100dvh;
  min-height: 100dvh;
  text-align: center;
  scroll-margin-top: 0;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-height: 82vh;
  will-change: transform, opacity;
}

.threads-page-bg {
  position: absolute;
  top: calc(var(--header-h) * -1);
  bottom: auto;
  left: 50%;
  z-index: 0;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  opacity: 0.68;
  pointer-events: auto;
  transform: translateX(-50%);
}

.threads-page-bg canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.philosophy > :not(.threads-page-bg) {
  position: relative;
  z-index: 1;
}

.philosophy {
  margin-top: clamp(92px, 10vh, 136px);
  overflow: visible;
}

.kicker,
.section-head span,
.portfolio-intro span,
.product-copy span,
.contact-inner span {
  display: inline-block;
  color: #e9f0f8;
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 18px 0 4px;
  font-family: Georgia, "Times New Roman", "Cormorant Garamond", serif;
  font-size: var(--hero);
  font-style: italic;
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: 0.08em;
  text-transform: none;
  color: #e9f0f8;
  text-shadow:
    0 2px 0 rgba(255, 255, 255, 0.45),
    0 7px 0 rgba(39, 45, 55, 0.95),
    0 14px 18px rgba(0, 0, 0, 0.84);
}

.cn-title {
  margin: 0;
  color: #e9f0f8;
  font-size: clamp(13px, 1.8vw, 18px);
  letter-spacing: 0.42em;
}

.hero-line {
  margin: 20px auto 0;
  max-width: 56ch;
  color: #e9f0f8;
  font-size: clamp(15px, 2vw, 22px);
  letter-spacing: 0.06em;
}

.micro-copy,
.section-head p,
.belief p,
.product-copy p,
.contact-inner p {
  color: #e9f0f8;
}

.micro-copy {
  margin-top: 12px;
  font-size: var(--small);
}

main > section:not(.hero),
.portfolio {
  font-size: clamp(6.5px, 0.625vw, 8px);
}

main > section:not(.hero) .kicker,
main > section:not(.hero) .section-head span,
main > section:not(.hero) .portfolio-intro span,
main > section:not(.hero) .product-copy span,
main > section:not(.hero) .contact-inner span,
.portfolio .portfolio-intro span {
  font-size: 5.5px;
}

.zh-note {
  display: block;
  margin-top: 0.38em;
  font-size: 0.56em;
  line-height: 1.35;
  opacity: 0.72;
}

.zh-note.inline {
  display: inline;
  margin-left: 0.45em;
  margin-top: 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(18px, 3.8vh, 34px);
}

.section-head h2,
.product-copy h2,
.contact-inner h2,
.portfolio-intro h2 {
  margin: 12px 0 14px;
  font-size: var(--title);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0;
}

main > section:not(.hero) .section-head h2,
main > section:not(.hero) .product-copy h2,
main > section:not(.hero) .contact-inner h2,
.portfolio .portfolio-intro h2 {
  font-size: clamp(11px, 1.8vw, 21px);
}

main > section:not(.hero) .belief h3,
main > section:not(.hero) .service-card h3,
main > section:not(.hero) .system-grid h3 {
  font-size: clamp(8px, 1vw, 11px);
}

main > section:not(.hero) .belief strong {
  font-size: clamp(28px, 4.5vw, 60px);
}

.section-head p {
  max-width: 64ch;
  margin: 0;
}

.belief-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.belief {
  position: relative;
  min-height: clamp(178px, 28vh, 220px);
  padding: clamp(20px, 3vh, 30px);
  border-right: 1px solid var(--line);
}

.belief:last-child {
  border-right: 0;
}

.belief strong {
  display: block;
  color: #e9f0f8;
  font-size: clamp(56px, 9vw, 120px);
  font-weight: 700;
  line-height: 0.84;
}

.belief h3,
.service-card h3,
.system-grid h3 {
  margin: clamp(12px, 2vh, 20px) 0 8px;
  font-size: clamp(16px, 2vw, 22px);
  line-height: 1.28;
}

.architecture-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.architecture-list > div {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 22px;
  padding: clamp(10px, 1.9vh, 15px) 0;
  border-bottom: 1px solid var(--line);
}

.architecture-list b {
  color: #e9f0f8;
  font-size: 12px;
  letter-spacing: 0.14em;
}

.architecture-list span {
  color: #e9f0f8;
}

.architecture-flowing-list {
  height: clamp(460px, 52vh, 540px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.architecture .section-head {
  margin-bottom: clamp(14px, 2.8vh, 26px);
}

.architecture-flowing-list .architecture-flowing-root {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
}

.architecture-flowing-list .menu__item-link {
  font-family: Georgia, "Times New Roman", "Cormorant Garamond", "Noto Serif SC", "Songti SC", serif;
  font-style: italic;
  font-weight: 700;
  font-size: clamp(26px, 3.4vh, 38px);
  letter-spacing: 0.08em;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.42),
    0 4px 0 rgba(39, 45, 55, 0.92),
    0 9px 14px rgba(0, 0, 0, 0.78);
}

.architecture-flowing-list .marquee span {
  font-family: Georgia, "Times New Roman", "Cormorant Garamond", "Noto Serif SC", "Songti SC", serif;
  font-style: italic;
  font-weight: 700;
  font-size: clamp(26px, 3.4vh, 38px);
  letter-spacing: 0.08em;
}

.architecture {
  justify-content: flex-start;
  padding-top: clamp(86px, 11vh, 108px);
}

.gallery-wrap {
  position: relative;
}

.floating-lines-page-bg {
  position: absolute;
  top: calc(var(--header-h) * -1);
  left: 50%;
  z-index: 0;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  opacity: 0.72;
  pointer-events: auto;
  transform: translateX(-50%);
}

.floating-lines-page-bg canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.services {
  margin-top: clamp(92px, 10vh, 136px);
  overflow: visible;
}

.services > :not(.floating-lines-page-bg) {
  position: relative;
  z-index: 1;
}

.service-gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 500px);
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 2px 24px;
  scrollbar-width: none;
}

.service-gallery::-webkit-scrollbar {
  display: none;
}

.service-card {
  min-height: clamp(230px, 38vh, 278px);
  scroll-snap-align: start;
  padding: clamp(20px, 3vh, 26px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(10, 12, 18, 0.72);
  backdrop-filter: blur(20px) saturate(1.8);
  transform-style: preserve-3d;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.service-card:hover {
  border-color: rgba(200, 169, 110, 0.45);
  background:
    linear-gradient(145deg, rgba(200, 169, 110, 0.12), rgba(255, 255, 255, 0.025)),
    rgba(15, 17, 25, 0.86);
}

.service-card small {
  color: #e9f0f8;
  letter-spacing: 0.18em;
}

.service-card p {
  max-width: 32ch;
  color: #e9f0f8;
}

.progress-track {
  height: 1px;
  background: var(--line);
}

.progress-track span {
  display: block;
  width: 0%;
  height: 100%;
  background: var(--gold);
}

.portfolio {
  --portfolio-page-gap: clamp(92px, 10vh, 136px);
  position: relative;
  z-index: 1;
  margin-top: var(--portfolio-page-gap);
  background: #000;
  scroll-margin-top: var(--header-h);
}

.portfolio::before {
  content: "";
  position: absolute;
  top: calc(var(--portfolio-page-gap) * -1);
  left: 50%;
  z-index: 0;
  width: 100vw;
  height: var(--portfolio-page-gap);
  background: #000;
  transform: translateX(-50%);
  pointer-events: none;
}

.portfolio-intro {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  width: min(var(--max), calc(100% - 40px));
  height: var(--page-h);
  min-height: var(--page-h);
  margin: 0 auto;
  padding: clamp(22px, 4.4vh, 46px) 0;
  overflow: hidden;
  scroll-margin-top: var(--header-h);
}

.portfolio-intro.rock-spotlight-page {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  isolation: isolate;
  width: 100%;
  height: var(--page-h);
  min-height: var(--page-h);
  margin-bottom: clamp(92px, 10vh, 136px);
  padding: clamp(44px, 7vh, 70px) 0 0;
  overflow: hidden;
  scroll-margin-top: var(--header-h);
}

body.rock-spotlight-active .site-header,
body.rock-spotlight-keep-nav .site-header {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateX(-50%) !important;
}

.portfolio-intro.rock-spotlight-page > :not(#portfolio-rock-root) {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
  pointer-events: none;
}

#portfolio-rock-root {
  position: absolute;
  inset: calc(var(--header-h) * -1) 0 0;
  z-index: 0;
  width: 100%;
  height: 100dvh;
}

.work-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
  height: var(--page-h);
  min-height: var(--page-h);
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(22px, 4.4vh, 46px) 0;
  overflow: hidden;
  scroll-margin-top: var(--header-h);
  border-top: 1px solid var(--line);
}

.work-visual {
  aspect-ratio: 16 / 10;
  max-height: min(48vh, 430px);
  border: 1px solid rgba(200, 169, 110, 0.28);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 30px 110px rgba(0, 0, 0, 0.42), 0 0 42px rgba(200, 169, 110, 0.06);
  will-change: clip-path, transform;
}

.asset-canvas {
  display: block;
  width: 100%;
  height: 100%;
  will-change: transform;
}

.work-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  will-change: transform;
}

.roi-tilted-root {
  width: 100%;
  height: 100%;
}

.roi-tilted-visual {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  opacity: 1 !important;
  visibility: visible !important;
  clip-path: inset(0% 0% 0% 0%) !important;
  pointer-events: auto;
}

.work-copy small {
  color: #e9f0f8;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.work-copy h3 {
  margin: 14px 0 10px;
  font-size: clamp(28px, 4.4vw, 56px);
  line-height: 1.05;
  font-weight: 700;
}

.work-copy h3 {
  font-size: clamp(14px, 2.2vw, 28px);
}

.work-copy small,
.service-card small,
.architecture-list b,
.step small {
  font-size: 6px;
}

.work-copy p {
  max-width: 46ch;
  color: #e9f0f8;
}

.studio {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: clamp(24px, 4.6vw, 60px);
  align-items: center;
}

.product-frame {
  perspective: 1200px;
}

.product-screen {
  overflow: hidden;
  border: 1px solid rgba(200, 169, 110, 0.4);
  border-radius: var(--radius);
  background: #080910;
  box-shadow: 0 0 42px rgba(200, 169, 110, 0.12);
  transform: rotateY(-7deg) rotateX(3deg);
  transition: transform 0.25s ease;
}

.product-screen:hover {
  transform: rotateY(-3deg) rotateX(1deg);
}

.screen-bar {
  display: flex;
  gap: 7px;
  padding: 13px;
  border-bottom: 1px solid var(--line);
}

.screen-bar span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--dim);
}

.studio-large {
  height: min(42vh, 360px);
}

.lead {
  color: #e9f0f8 !important;
  font-size: clamp(15px, 1.8vw, 20px);
}

.feature-list {
  display: grid;
  gap: clamp(6px, 1.2vh, 10px);
  margin: clamp(14px, 2.4vh, 22px) 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  padding: clamp(7px, 1.25vh, 10px) 0 clamp(7px, 1.25vh, 10px) 16px;
  border-top: 1px solid var(--line);
  color: #e9f0f8;
}

.feature-list li::marker {
  color: #e9f0f8;
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.timeline::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  animation: flow 3s linear infinite;
  pointer-events: none;
}

.step {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: clamp(106px, 18vh, 132px);
  padding: clamp(14px, 2.2vh, 18px) 14px;
  border: 0;
  background: rgba(10, 12, 18, 0.86);
  color: #e9f0f8;
  text-align: left;
}

.step b {
  color: #e9f0f8;
  font-weight: 700;
}

.step span {
  color: #e9f0f8;
}

.step small {
  color: #e9f0f8;
}

.step.active,
.step:hover {
  background: rgba(200, 169, 110, 0.08);
}

.step-detail {
  margin-top: clamp(14px, 2.2vh, 20px);
  padding: clamp(16px, 2.4vh, 20px);
  border: 1px solid rgba(200, 169, 110, 0.28);
  border-radius: var(--radius);
  color: #e9f0f8;
  background: rgba(10, 12, 18, 0.72);
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.system-grid article {
  min-height: clamp(142px, 23vh, 176px);
  padding: clamp(18px, 2.8vh, 22px);
  background: rgba(10, 12, 18, 0.86);
}

.system-grid p {
  color: #e9f0f8;
}

.contact {
  display: grid;
  place-items: center;
  text-align: center;
}

.contact-inner {
  display: grid;
  justify-items: center;
  gap: 16px;
}

.contact-inner p {
  max-width: 52ch;
  margin: 0;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  max-width: min(100%, 680px);
  margin-top: 4px;
}

.contact-links a {
  color: #e9f0f8;
  font-size: clamp(10px, 1vw, 13px);
  letter-spacing: 0.04em;
  text-decoration: none;
}

.contact-links a:hover {
  color: #fff;
}

.magnet-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  min-width: 180px;
  height: 52px;
  margin-top: 14px;
  border: 1px solid rgba(200, 169, 110, 0.55);
  border-radius: 999px;
  color: #e9f0f8;
  background: var(--gold);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.magnet-button::before {
  content: "";
  position: absolute;
  inset: -9px;
  border: 1px solid rgba(200, 169, 110, 0.28);
  border-radius: inherit;
  animation: halo 30s linear infinite;
}

.magnet-button:hover::before {
  animation-duration: 4s;
}

.contact-inner small {
  margin-top: 32px;
  color: #e9f0f8;
}

.reveal {
  will-change: transform, opacity, clip-path;
}

.motion-word,
.motion-char {
  display: inline-block;
  will-change: transform, opacity, filter;
}

.motion-space {
  display: inline-block;
  width: 0.28em;
}

.opening-curtain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  overflow: hidden;
}

.opening-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 58vw;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.06), transparent 38%),
    #050508;
  backface-visibility: hidden;
  will-change: transform, clip-path;
}

.opening-panel-left {
  left: 0;
  clip-path: polygon(0 0, 100% 0, 82% 100%, 0 100%);
  transform-origin: left center;
}

.opening-panel-right {
  right: 0;
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
  transform-origin: right center;
}

.opening-brand {
  position: absolute;
  left: 50%;
  top: 46%;
  z-index: 2;
  display: grid;
  justify-items: center;
  width: min(82vw, 880px);
  text-align: center;
  transform: translate(-50%, -50%);
  will-change: transform, opacity, filter;
}

.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding: clamp(22px, 5vw, 64px);
  overflow: hidden;
  color: #edf3fb;
  background: #050508;
}

.auth-gate::before {
  display: none;
}

.auth-gate::after {
  display: none;
}

.auth-dark-veil-root {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.auth-dark-veil-root canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.auth-panel {
  position: relative;
  z-index: 1;
  width: min(92vw, 560px);
  padding: clamp(18px, 4vw, 42px) clamp(10px, 3vw, 28px);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
}

.auth-brand {
  margin: 0 0 10px;
  color: rgba(237, 243, 251, 0.64);
  font-size: clamp(10px, 1.45vw, 12px);
  line-height: 1.2;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.auth-title {
  margin: 0 0 clamp(22px, 4vw, 34px);
  font-size: clamp(34px, 9.5vw, 58px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0;
  white-space: nowrap;
  color: #f3f7ff;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.72),
    0 6px 0 rgba(47, 54, 66, 0.92),
    0 18px 28px rgba(0, 0, 0, 0.82),
    0 0 52px rgba(226, 236, 255, 0.22);
}

.auth-options {
  display: grid;
  gap: 14px;
  width: min(100%, 470px);
  margin: 0 auto;
}

.auth-option {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 0;
  color: rgba(237, 243, 251, 0.78);
  background: transparent;
  font: inherit;
  font-size: clamp(15px, 2.1vw, 19px);
  line-height: 1.2;
  letter-spacing: 0.06em;
  cursor: pointer;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.42),
    0 5px 0 rgba(35, 39, 48, 0.7),
    0 14px 24px rgba(0, 0, 0, 0.76);
  transition:
    transform 220ms ease,
    color 220ms ease,
    letter-spacing 220ms ease,
    text-shadow 220ms ease,
    opacity 220ms ease;
}

.auth-option:hover,
.auth-option:focus-visible {
  color: #ffffff;
  letter-spacing: 0.11em;
  outline: none;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.68),
    0 6px 0 rgba(47, 54, 66, 0.84),
    0 0 28px rgba(233, 240, 248, 0.5),
    0 18px 34px rgba(0, 0, 0, 0.82);
  transform: translateY(-2px) scale(1.035);
}

.auth-option:active {
  transform: translateY(1px) scale(0.99);
}

.auth-option.is-selected {
  color: #fff7e7;
}

.auth-submit {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 0;
  color: #edf3fb;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12) 50%, transparent),
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent) 50% 100% / 100% 1px no-repeat;
  font: inherit;
  font-size: clamp(14px, 2vw, 17px);
  line-height: 1.2;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition:
    transform 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease;
}

.auth-submit:hover,
.auth-submit:focus-visible {
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.19) 50%, transparent),
    linear-gradient(90deg, transparent, rgba(200, 169, 110, 0.58), transparent) 50% 100% / 100% 1px no-repeat;
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.22),
    0 0 42px rgba(233, 240, 248, 0.08);
  outline: none;
  transform: translateY(-1px);
}

.auth-submit:active {
  transform: translateY(1px) scale(0.99);
}

.auth-admin {
  display: grid;
  gap: 12px;
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 320ms ease,
    margin-top 320ms ease,
    opacity 220ms ease;
}

.auth-admin.is-open {
  max-height: 230px;
  margin-top: 16px;
  opacity: 1;
}

.auth-field {
  width: 100%;
  height: 46px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 0;
  padding: 0 14px;
  color: #f6f8fb;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.075), transparent);
  font: inherit;
  font-size: 14px;
  letter-spacing: 0.04em;
  outline: none;
}

.auth-field:focus {
  border-color: rgba(233, 240, 248, 0.58);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
}

.auth-message {
  min-height: 20px;
  margin: 14px 0 0;
  color: rgba(237, 243, 251, 0.7);
  font-size: 12px;
  line-height: 1.55;
  letter-spacing: 0.06em;
}

.auth-message.is-error {
  color: #f0b8b8;
}

.auth-message.is-success {
  color: #cfe8dd;
}

.auth-gate.is-leaving {
  pointer-events: none;
}

.opening-brand-main {
  display: block;
  font-family: Georgia, "Times New Roman", "Cormorant Garamond", serif;
  font-size: clamp(52px, 10vw, 132px);
  font-style: italic;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.1em;
  color: #f3f7ff;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.72),
    0 7px 0 rgba(47, 54, 66, 0.95),
    0 18px 28px rgba(0, 0, 0, 0.88),
    0 0 64px rgba(226, 236, 255, 0.28);
}

.opening-brand-sub {
  display: block;
  margin-top: 16px;
  color: rgba(233, 240, 248, 0.72);
  font-size: clamp(10px, 1.35vw, 13px);
  line-height: 1.2;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.opening-loader {
  position: absolute;
  left: 50%;
  bottom: clamp(36px, 7vh, 72px);
  z-index: 2;
  width: min(62vw, 520px);
  transform: translateX(-50%);
  will-change: transform, opacity;
}

.opening-loader-track {
  position: relative;
  height: 2px;
  overflow: hidden;
  background: rgba(233, 240, 248, 0.16);
  box-shadow:
    0 0 0 1px rgba(233, 240, 248, 0.12),
    0 0 34px rgba(233, 240, 248, 0.18);
}

.opening-loader-fill {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(233, 240, 248, 0.36), #f7fbff, rgba(233, 240, 248, 0.58));
  box-shadow: 0 0 26px rgba(233, 240, 248, 0.7);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.opening-scan {
  position: fixed;
  left: 50%;
  top: 0;
  z-index: 61;
  width: 1px;
  height: 100dvh;
  background: linear-gradient(180deg, transparent, rgba(233, 240, 248, 0.9), transparent);
  box-shadow: 0 0 42px rgba(233, 240, 248, 0.55);
  pointer-events: none;
  transform: translateX(-50%) scaleY(0);
  transform-origin: center;
  will-change: transform, opacity;
}

@keyframes flow {
  from {
    transform: translateX(-55%);
  }
  to {
    transform: translateX(55%);
  }
}

@keyframes halo {
  from {
    transform: rotate(0turn);
  }
  to {
    transform: rotate(1turn);
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 64px;
  }

  .site-header {
    height: var(--header-h);
  }

  .nav-links {
    display: none;
  }

  .belief-grid,
  .studio,
  .work-panel,
  .system-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: clamp(16px, 3vh, 28px) 0;
  }

  .section-head {
    margin-bottom: clamp(12px, 2.4vh, 20px);
  }

  .section-head h2,
  .product-copy h2,
  .contact-inner h2,
  .portfolio-intro h2 {
    font-size: clamp(11px, 3.6vw, 17px);
  }

  .section-head p,
  .belief p,
  .service-card p,
  .work-copy p,
  .product-copy p,
  .contact-inner p,
  .feature-list li,
  .step-detail {
    font-size: 6.5px;
    line-height: 1.55;
  }

  main > section:not(.hero) .belief h3,
  main > section:not(.hero) .service-card h3,
  main > section:not(.hero) .system-grid h3,
  .work-copy h3 {
    font-size: clamp(10px, 3.4vw, 16px);
  }

  .belief-grid,
  .service-gallery,
  .system-grid {
    grid-auto-flow: column;
    grid-auto-columns: minmax(250px, 82vw);
    grid-template-columns: none;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .belief-grid::-webkit-scrollbar,
  .system-grid::-webkit-scrollbar {
    display: none;
  }

  .belief {
    min-height: clamp(250px, 42vh, 320px);
    border-right: 0;
    border-bottom: 1px solid var(--line);
    scroll-snap-align: start;
  }

  .belief:last-child {
    border-bottom: 0;
  }

  .service-gallery {
    grid-auto-flow: column;
    grid-auto-columns: minmax(250px, 82vw);
    overflow-x: auto;
    overflow-y: hidden;
  }

  .service-card {
    min-height: clamp(260px, 42vh, 320px);
  }

  .system-grid article {
    min-height: clamp(210px, 34vh, 260px);
    scroll-snap-align: start;
  }

  .product-frame {
    display: none;
  }

  .feature-list {
    gap: 6px;
    margin-top: 12px;
  }

  .feature-list li {
    padding: 6px 0 6px 12px;
  }

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

  .step {
    min-height: 76px;
    padding: 10px;
    gap: 3px;
  }

  .step-detail {
    margin-top: 10px;
    padding: 12px;
  }

  .work-copy h3 {
    font-size: clamp(28px, 10vw, 48px);
  }

  .hero h1 {
    font-size: clamp(60px, 15vw, 120px);
  }

  .timeline {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .section,
  .work-panel,
  .portfolio-intro {
    width: min(100% - 28px, var(--max));
  }

  .architecture-list div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .step {
    min-height: 74px;
  }

  .hero h1 {
    font-size: clamp(48px, 17vw, 86px);
    text-shadow:
      0 1px 0 rgba(255, 255, 255, 0.45),
      0 5px 0 rgba(39, 45, 55, 0.95),
      0 10px 16px rgba(0, 0, 0, 0.82);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
