@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("/assets/fonts/inter-tight-latin.woff2") format("woff2");
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/jetbrains-mono-latin.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --ink: #f2f3ef;
  --secondary: #92968f;
  --rule: #252824;
  --accent: #d5ff70;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background: #000;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
::selection { background: var(--accent); color: #000; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
[hidden] { display: none !important; }

.page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: clip;
}

.header, .footer { position: relative; z-index: 2; padding-inline: 5vw; }
.header { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 48px; --delay: 0.1s; }
.brand { display: flex; align-items: center; gap: 16px; font: 500 20px "Inter Tight", Arial, sans-serif; letter-spacing: -0.04em; }
.brand img { display: block; }
.header-contact { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--secondary); transition: color 0.3s; }
.header-contact:hover { color: var(--ink); }
.arrow { flex-shrink: 0; transition: transform 0.3s; }
a:hover .arrow { transform: translate(2px, -2px); }

.hero { flex: 1; min-height: 560px; display: flex; flex-direction: column; justify-content: center; position: relative; padding: 72px 5vw; }
.artwork { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 80%; max-width: 1000px; pointer-events: none; }
.parallax { transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1); }
.sculpture { display: block; width: 100%; height: auto; }
.composition { width: 100%; max-width: 1400px; margin-inline: auto; position: relative; }
h1 { display: flex; flex-direction: column; margin: 0; font: 500 min(7.5vw, 210px)/0.9 "Inter Tight", Arial, sans-serif; letter-spacing: -0.04em; text-transform: uppercase; }
.inventions { --delay: 0.3s; }
.investments { display: flex; align-items: center; gap: 16px; margin-left: 24px; font-weight: 600; color: var(--secondary); --delay: 0.5s; }
.and { position: relative; top: -0.2em; font-size: 0.6em; font-style: italic; font-weight: 500; letter-spacing: 0; text-transform: lowercase; color: transparent; -webkit-text-stroke: 1px var(--ink); }
.square { position: relative; top: -0.2em; width: 20px; height: 20px; margin-left: 8px; border-radius: 2px; background: var(--accent); flex-shrink: 0; }
.contact-wrap { margin-top: 24px; margin-right: 128px; display: flex; justify-content: flex-end; --delay: 0.7s; }
.contact { display: inline-flex; align-items: center; gap: 24px; min-height: 44px; padding-bottom: 8px; border-bottom: 1px solid var(--rule); font-size: 20px; letter-spacing: 0.1em; text-transform: uppercase; transition: border-color 0.3s; }
.contact:hover { border-color: var(--accent); }
.contact-icon { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--rule); border-radius: 50%; transition: color 0.3s, background 0.3s, border-color 0.3s; }
.contact:hover .contact-icon { background: var(--accent); color: #000; border-color: var(--accent); }
.index { position: absolute; left: 5vw; top: 50%; transform: rotate(-90deg); transform-origin: left; display: flex; align-items: center; gap: 16px; font: 10px "JetBrains Mono", monospace; letter-spacing: 0.1em; color: var(--secondary); opacity: 0.4; }
.index-line { height: 1px; width: 32px; background: var(--rule); }
.crosshair { position: absolute; right: 5vw; top: 33%; color: var(--secondary); opacity: 0.3; }

.footer { padding-bottom: 40px; --delay: 0.7s; }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid var(--rule); padding-top: 24px; min-height: 69px; font: 12px "JetBrains Mono", monospace; color: var(--secondary); }
.signature { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
#motion-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--rule); border-radius: 24px; background: transparent; color: var(--secondary); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; transition: color 0.3s, border-color 0.3s; }
#motion-toggle:hover:not(:disabled) { color: var(--ink); border-color: var(--secondary); }
#motion-toggle:disabled { cursor: default; }
.play-icon, .paused .pause-icon { display: none; }
.paused .play-icon { display: block; }

@media (prefers-reduced-motion: no-preference) {
  .entrance { animation: reveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) var(--delay, 0s) backwards; }
  .motion-ready .sculpture { animation: float 12s ease-in-out infinite; }
  .motion-ready .square, .motion-ready .dot { animation: pulse 4s ease-in-out infinite; }
  .paused .sculpture, .paused .square, .paused .dot { animation-play-state: paused; }
}

@keyframes reveal { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-20px) rotate(1deg); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

@media (max-width: 1023px) {
  .hero { min-height: 540px; padding-block: 80px; }
  h1 { font-size: 8vw; }
  .investments { margin-left: 48px; }
  .contact-wrap { margin-right: 48px; }
  .index, .crosshair { display: none; }
}

@media (max-width: 767px) {
  .header, .footer { padding-inline: 24px; }
  .header { padding-top: 24px; }
  .brand { gap: 12px; }
  .header-contact { font-size: 12px; gap: 4px; }
  .hero { padding-inline: 24px; min-height: 510px; }
  .artwork { width: 120%; opacity: 0.9; }
  .composition { margin-top: -10svh; }
  h1 { font-size: 9.3vw; }
  .investments { margin-left: 0; gap: 6px; }
  .square { width: 6px; height: 6px; margin-left: 0; }
  .contact-wrap { justify-content: flex-start; margin-top: 64px; margin-right: 0; }
  .contact { font-size: 18px; }
  .footer { padding-bottom: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .parallax { transform: none !important; }
}
