:root {
  --void: #030303;
  --ink: #0a0908;
  --gold: #c9b07a;
  --cream: #f3e6b6;
  --dim: #8d846f;
  --line: rgba(243, 230, 182, 0.16);
  --sol-a: #00ffa3;
  --sol-b: #dc1fff;
  --pad: clamp(18px, 3.2vw, 44px);
  --wide: "Michroma", "Eurostile", "Bank Gothic", sans-serif;
  --body: "Chakra Petch", "Segoe UI", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: radial-gradient(120% 90% at 50% 45%, #0d0b07 0%, var(--void) 62%) fixed, var(--void);
  color: var(--cream);
  font: 400 16px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
a { color: inherit; }
::selection { background: var(--gold); color: var(--void); }

#scene {
  position: fixed; inset: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity 1.6s ease;
}
.scene-on #scene { opacity: 1; }
.grain {
  position: fixed; inset: -50%; pointer-events: none; opacity: 0.06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- bars ---- */
.bar {
  position: fixed; left: 0; right: 0; top: 0; z-index: 3;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(var(--pad) * 0.8) var(--pad);
  font: 400 10px/1 var(--wide); letter-spacing: 0.22em; text-transform: uppercase;
}
.bar-bottom { top: auto; bottom: 0; color: var(--dim); justify-content: flex-end; padding-bottom: max(calc(var(--pad) * 0.8), env(safe-area-inset-bottom)); }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--dim); }
.brand img { width: 34px; height: 34px; }
.idx { color: var(--gold); margin-right: 12px; font-size: 0.85em; opacity: 0.8; }
.nav-contact {
  position: relative; text-decoration: none; padding: 12px 0 12px 4px; display: inline-flex; align-items: center;
}
.nav-contact i {
  position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: var(--gold);
  transform: scaleX(0.25); transform-origin: right; transition: transform 0.5s cubic-bezier(.2,.8,.2,1);
}
.nav-contact:hover i, .nav-contact:focus-visible i { transform: scaleX(1); }
.sol { display: inline-flex; align-items: center; gap: 12px; }
.sol span {
  background: linear-gradient(90deg, var(--sol-a), var(--sol-b)); -webkit-background-clip: text; background-clip: text;
  color: transparent; opacity: 0.9;
}

/* ---- hero ---- */
.hero {
  position: relative; z-index: 2; height: 100%;
  display: grid; place-content: center; justify-items: center; text-align: center;
  padding: 0 var(--pad);
  pointer-events: none;
}
.hero > * { pointer-events: auto; }
h1 { margin: 0; line-height: 0; }
h1 img {
  width: min(64vw, 620px); height: auto;
  filter: drop-shadow(0 0 24px rgba(0, 0, 0, 0.9));
  animation: rise 1.4s cubic-bezier(.2,.8,.2,1) both 0.2s;
}
.disciplines {
  margin: clamp(22px, 3.4vh, 34px) 0 0; display: flex; align-items: center; gap: clamp(12px, 2vw, 22px);
  font: 400 clamp(9px, 1.05vw, 12px)/1 var(--wide); letter-spacing: 0.34em; text-transform: uppercase; color: var(--cream);
  text-shadow: 0 0 14px #000, 0 0 30px #000;
  animation: rise 1.4s cubic-bezier(.2,.8,.2,1) both 0.55s;
}
.disciplines span { margin-right: -0.34em; white-space: nowrap; }
.disciplines b { width: 5px; height: 5px; border: 1px solid var(--gold); transform: rotate(45deg); }
.cta {
  margin-top: clamp(40px, 7vh, 72px); display: inline-flex; align-items: center; gap: 18px;
  text-decoration: none; color: var(--cream); padding: 14px 4px;
  font: 400 11px/1 var(--wide); letter-spacing: 0.3em; text-transform: uppercase;
  animation: rise 1.4s cubic-bezier(.2,.8,.2,1) both 0.9s;
}
.cta-line { width: 56px; height: 1px; background: var(--gold); transition: width 0.6s cubic-bezier(.2,.8,.2,1); }
.cta-arrow { width: 22px; height: 12px; color: var(--gold); margin-left: -14px; }
.cta:hover .cta-line, .cta:focus-visible .cta-line { width: 110px; }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 6px; }

.split .hero {
  justify-items: start; text-align: left; place-content: center start;
  padding-left: calc(var(--pad) * 2.2);
}
.split .hero > * { max-width: var(--text-w); }
.split h1 img { width: min(var(--text-w), 600px); }
.split .disciplines { font-size: clamp(8.5px, calc(var(--text-w) * 0.021), 12px); }
html:not(.split) .hero { place-content: start center; padding-top: var(--text-top); }

@keyframes rise { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } }

/* ---- contact ---- */
.contact { position: fixed; inset: 0; z-index: 10; }
.contact[hidden] { display: none; }
.contact-scrim {
  position: absolute; inset: 0; background: rgba(3, 3, 3, 0.55); backdrop-filter: blur(3px);
  animation: fade 0.5s ease both;
}
.contact-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(560px, 100%);
  background: linear-gradient(180deg, rgba(14, 12, 8, 0.97), rgba(6, 5, 4, 0.98));
  border-left: 1px solid var(--line);
  padding: calc(var(--pad) * 1.5) calc(var(--pad) * 1.3) calc(var(--pad) * 0.8);
  overflow-y: auto; overscroll-behavior: contain;
  animation: slide 0.7s cubic-bezier(.2,.8,.2,1) both;
}
.contact-panel::before {
  content: ""; position: absolute; left: -1px; top: 18%; width: 1px; height: 120px;
  background: linear-gradient(var(--gold), transparent);
}
.closing .contact-scrim { animation: fade 0.35s ease reverse both; }
.closing .contact-panel { animation: slide 0.4s cubic-bezier(.6,0,.8,.2) reverse both; }
@keyframes fade { from { opacity: 0; } }
@keyframes slide { from { transform: translateX(100%); } }

.close {
  position: absolute; top: calc(var(--pad) * 0.8); right: calc(var(--pad) * 0.8);
  width: 44px; height: 44px; background: none; border: 1px solid var(--line); cursor: pointer;
  transition: border-color 0.3s, transform 0.5s cubic-bezier(.2,.8,.2,1);
}
.close i { position: absolute; left: 13px; right: 13px; top: 50%; height: 1px; background: var(--cream); transform: rotate(45deg); }
.close i + i { transform: rotate(-45deg); }
.close:hover { border-color: var(--gold); transform: rotate(90deg); }

.kicker { margin: 0 0 14px; font: 400 10px/1 var(--wide); letter-spacing: 0.3em; text-transform: uppercase; color: var(--dim); }
.contact h2 {
  margin: 0; font: 300 clamp(34px, 4.6vw, 48px)/1.05 var(--body); letter-spacing: -0.01em; color: var(--cream);
}
.lede { margin: 12px 0 26px; color: var(--dim); max-width: 40ch; }
.lede a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }

.field { display: block; position: relative; margin-bottom: 18px; }
.field span {
  display: block; margin-bottom: 8px;
  font: 400 9px/1 var(--wide); letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold);
}
.field em { font-style: normal; color: var(--dim); letter-spacing: 0.2em; margin-left: 8px; }
.field input, .field textarea {
  width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--cream);
  font: 400 17px/1.4 var(--body); padding: 6px 0 8px; border-radius: 0; resize: vertical;
  transition: border-color 0.3s;
}
.field textarea { min-height: 96px; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--gold); }
.field::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--cream);
  transform: scaleX(0); transform-origin: left; transition: transform 0.6s cubic-bezier(.2,.8,.2,1);
}
.field:focus-within::after { transform: scaleX(1); }
.field.bad span { color: #e0866a; }
.field.bad input, .field.bad textarea { border-bottom-color: #e0866a; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.captcha { min-height: 65px; margin: 4px 0 16px; }
.send {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; background: var(--cream); color: var(--void); border: 0; cursor: pointer;
  font: 400 11px/1 var(--wide); letter-spacing: 0.34em; text-transform: uppercase;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  transition: background 0.3s;
}
.send svg { width: 24px; height: 12px; transition: transform 0.4s cubic-bezier(.2,.8,.2,1); }
.send:hover { background: #fff6d2; }
.send:hover svg { transform: translateX(6px); }
.send[disabled] { opacity: 0.5; cursor: progress; }
.status { min-height: 1.5em; margin: 10px 0 0; color: var(--dim); font-size: 14px; }
.status.err { color: #e0866a; }

.legal { margin: 18px 0 0; font: 400 9px/1 var(--wide); letter-spacing: 0.24em; text-transform: uppercase; color: var(--dim); }
.sent { padding-top: 20px; }
.sent svg { width: 160px; color: var(--gold); }
.sent svg path { stroke-dasharray: 200; animation: draw 1.6s cubic-bezier(.2,.8,.2,1) both; }
.sent h3 { font: 300 32px/1.1 var(--body); margin: 18px 0 8px; }
.sent p { color: var(--dim); margin: 0; }
@keyframes draw { from { stroke-dashoffset: 200; } }

@media (max-width: 640px) {
  .brand span { display: none; }
  .bar-bottom { justify-content: center; font-size: 8.5px; }
  h1 img { width: min(86vw, 420px); }
  .disciplines { flex-direction: column; gap: 12px; font-size: 10px; }
  .cta { margin-top: 34px; }
  .disciplines b { display: none; }
  .contact-panel { border-left: 0; padding-top: 88px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
