@font-face {
  font-family: Inter;
  src: url('assets/inter-variable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --navy: #01122e;
  --blue: #0066ff;
  --muted: #a3b5d1;
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--navy); color: #fff; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; }
button[hidden] { display: none; }
::selection { background: #0066ff; color: white; }
:focus-visible { outline: 2px solid #8bbdff; outline-offset: 6px; }

.scene { position: fixed; inset: 0; overflow: hidden; pointer-events: none; }
.scene::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 42%, transparent 12%, #01122e70 85%); }
.scene__grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(#73a2ed08 1px, transparent 1px), linear-gradient(90deg, #73a2ed08 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at center, transparent 10%, black 100%);
}
.scene__light {
  position: absolute;
  inset: -25%;
  background: radial-gradient(ellipse at 50% 42%, #0757cd25, transparent 44%);
  animation: drift 18s ease-in-out infinite alternate;
}
.scene__scan {
  position: absolute;
  top: 45%;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #3b8aff55 15%, transparent 38%, transparent 62%, #3b8aff55 85%, transparent);
  box-shadow: 0 0 22px #247bff12;
  opacity: 0;
  animation: scan 20s ease-in-out infinite;
}

.bim-model {
  position: absolute;
  width: min(116vw, 156svh, 1900px);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #639ce9;
  stroke-width: .8;
  mask-image: radial-gradient(ellipse 35% 45% at 50% 45%, #0001 30%, #0004 70%, #000 100%);
}
.bim-model__step { --part-opacity: .16; opacity: var(--part-opacity); }
.bim-model__step--slab { --part-opacity: .27; }
.motion-ready .bim-model__step { opacity: 0; }
.bim-building .bim-model__step {
  animation: bim-rise var(--build-duration) ease-out var(--build-delay) both;
}
.bim-building .bim-model__step--beam,
.bim-building .bim-model__step--column {
  stroke-dasharray: 1;
  animation-name: bim-draw;
}
.bim-complete .bim-model__step { opacity: var(--part-opacity); }
.motion-ready .bim-model__ambient { opacity: 0; }
.bim-complete .bim-model__ambient { opacity: 1; }
.bim-complete .bim-model__drawing { animation: model-drift 28s ease-in-out infinite alternate; }
.bim-model__finish { opacity: 0; color: #8fceff; stroke-width: 1.1; }
.bim-complete .bim-model__finish { animation: bim-finish 1s ease-out both; }
.bim-model__scan { color: #7ec9ff; stroke-width: 1.1; opacity: .4; }
.bim-model__scan-window { animation: model-scan 18s ease-in-out infinite; }
.bim-model__beacon { stroke: #69acff; stroke-width: 1; opacity: 0; transform-box: fill-box; transform-origin: center; animation: beacon 8s ease-out infinite; }
.bim-model__beacon--late { animation-delay: -4s; }

.page { position: relative; display: flex; flex-direction: column; min-height: 100svh; max-width: 1800px; margin: auto; padding: clamp(18px, 3.56svh, 32px) clamp(24px, 3.33vw, 48px) clamp(14px, 2.45svh, 22px); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #9baecb; font-size: 10px; font-weight: 500; letter-spacing: .16em; }
.topbar__label { display: flex; align-items: center; gap: 13px; }
.brand-cross { color: #4f97ff; font-size: 25px; font-weight: 300; line-height: 1; }
.topbar__domain { letter-spacing: .04em; font-size: 11px; }

.hero { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: clamp(16px, 3.3svh, 32px) 0 clamp(16px, 3svh, 28px); }
.hero__logo { width: clamp(220px, min(21.85vw, 35svh), 342px); max-width: 100%; height: auto; margin-bottom: clamp(14px, 2.45svh, 22px); }
.hero__announcement { display: flex; align-items: center; gap: 11px; color: #9abdec; font-size: clamp(9px, 1.27svh, 11.4px); font-weight: 500; letter-spacing: .24em; }
.hero__announcement > span { width: 6px; height: 6px; background: #5096ff; border-radius: 50%; box-shadow: 0 0 12px #0066ff; }
h1 { margin: clamp(12px, 1.78svh, 16px) 0 clamp(14px, 2.22svh, 20px); font-size: clamp(87.4px, min(11.59vw, 18.55svh), 180.5px); line-height: .98; font-weight: 800; letter-spacing: -.045em; }
.hero__intro { margin: 0; font-size: clamp(18px, min(1.995vw, 3.2svh), 29.45px); line-height: 1.3; font-weight: 500; letter-spacing: -.03em; }
.hero__description { margin: clamp(12px, 2svh, 18px) 0 0; max-width: 800px; color: var(--muted); font-size: clamp(13px, 1.8svh, 16.15px); line-height: 1.7; font-weight: 400; }
.hero__rule { display: flex; align-items: center; gap: 18px; width: 266px; margin: clamp(14px, 2.45svh, 22px) 0 clamp(10px, 1.56svh, 14px); color: #4186e9; }
.hero__rule span { height: 1px; flex: 1; background: linear-gradient(90deg, transparent, #3976c65c); }
.hero__rule span:last-child { transform: rotate(180deg); }
.hero__rule b { font-weight: 300; font-size: 20.9px; line-height: 1; }
.hero__note { margin: 0; font-size: clamp(10.45px, 1.38svh, 12.35px); line-height: 1.5; letter-spacing: .06em; color: #8fa7c9; }
.hero > * { animation: reveal .8s both; }
.hero > :nth-child(2) { animation-delay: .1s; }
.hero > :nth-child(3) { animation-delay: .18s; }
.hero > :nth-child(4) { animation-delay: .26s; }
.hero > :nth-child(5) { animation-delay: .34s; }
.hero > :nth-child(n+6) { animation-delay: .42s; }

.footer { width: 100%; }
.footer__credit { display: flex; flex-direction: column; align-items: center; gap: clamp(10px, 1.45svh, 13px); }
.footer__label { font-size: clamp(8.55px, 1.056svh, 9.5px); font-weight: 500; letter-spacing: .2em; color: #99acc8; }
.katre-link { display: flex; align-items: center; gap: 16px; text-decoration: none; border-radius: 5px; }
.katre-link__logo { display: flex; align-items: center; justify-content: center; padding: 4px 0; transition: transform .2s ease; }
.katre-link img { display: block; width: clamp(209px, 28.5svh, 256.5px); height: auto; filter: brightness(0) invert(1); }
.katre-link__arrow { color: #afc3df; font-size: 23px; transition: transform .2s ease; }
.katre-link:hover .katre-link__logo { transform: translateY(-2px); }
.katre-link:hover .katre-link__arrow { transform: translate(2px, -2px); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 15px; border-top: 1px solid #8eb4e51c; margin-top: clamp(18px, 3.33svh, 30px); padding-top: clamp(10px, 1.78svh, 16px); color: #8b9ebc; }
.footer__bottom small { font-size: 10px; letter-spacing: .025em; }
.motion-toggle { display: inline-flex; align-items: center; gap: 7px; padding: 6px 0 6px 10px; border: 0; background: transparent; color: #9fb3d0; font-size: 10px; cursor: pointer; min-height: 32px; }
.motion-toggle:hover { color: #fff; }
.motion-toggle__play { display: none; }
.motion-toggle[aria-pressed="true"] .motion-toggle__pause { display: none; }
.motion-toggle[aria-pressed="true"] .motion-toggle__play { display: block; }

@keyframes reveal { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes drift { to { transform: translate3d(4%, 2%, 0); } }
@keyframes scan {
  0%, 100% { opacity: 0; transform: translateY(-200px); }
  20% { opacity: .6; }
  65% { opacity: .45; }
  85% { opacity: 0; transform: translateY(260px); }
}
@keyframes beacon {
  0%, 65%, 100% { opacity: 0; transform: scale(.6); }
  8% { opacity: .7; }
  55% { opacity: 0; transform: scale(3.2); }
}
@keyframes model-drift { to { transform: translateY(-10px); } }
@keyframes bim-rise {
  from { opacity: 0; transform: translateY(2px); }
  to { opacity: var(--part-opacity); transform: translateY(0); }
}
@keyframes bim-draw {
  from { opacity: 0; stroke-dashoffset: 1; }
  to { opacity: var(--part-opacity); stroke-dashoffset: 0; }
}
@keyframes bim-finish {
  0%, 100% { opacity: 0; }
  30% { opacity: .23; }
}
@keyframes model-scan {
  0%, 12% { transform: translateY(820px); }
  78%, 100% { transform: translateY(-85px); }
}
.scene * { animation-play-state: paused; }
.motion-ready .scene__light,
.bim-building .bim-model__step,
.bim-complete .scene * { animation-play-state: running; }
.motion-paused .scene * { animation-play-state: paused !important; }

@media (max-width: 700px) {
  .page { padding: 23px 24px 16px; }
  .topbar { font-size: 8px; letter-spacing: .1em; }
  .topbar__label { gap: 8px; }
  .topbar__domain { font-size: 9px; }
  .brand-cross { font-size: 21px; }
  .hero { padding: 38px 0 36px; }
  .hero__logo { width: 251.75px; margin-bottom: 28px; }
  .hero__announcement { font-size: 8.55px; letter-spacing: .18em; gap: 8px; }
  h1 { margin: 20px 0; font-size: clamp(50.35px, 16.15vw, 104.5px); }
  .hero__intro { max-width: 480px; font-size: clamp(18.05px, 5.035vw, 23.75px); }
  .hero__description { max-width: 460px; font-size: 13.3px; margin-top: 18px; }
  .desktop-break { display: none; }
  .hero__rule { margin-top: 24px; width: 228px; }
  .hero__note { font-size: 10.45px; }
  .bim-model {
    width: min(1050px, 200vw, 156svh);
    color: #7caef1;
    stroke-width: 1.05;
    mask-image: radial-gradient(ellipse 45% 55% at 50% 45%, #0003 25%, #000a 70%, #000 100%);
  }
  .bim-model__step { --part-opacity: .28; }
  .bim-model__step--slab { --part-opacity: .4; }
  .bim-model__scan { display: none; }
  .katre-link img { width: 209px; }
  .footer__label { font-size: 8.55px; }
  .footer__bottom { margin-top: 24px; padding-top: 10px; }
  .motion-toggle { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .bim-model__step { opacity: var(--part-opacity) !important; }
  .bim-model__scan, .bim-model__finish { display: none; }
  .motion-toggle { display: none; }
}
