:root {
  --bg: #030303;
  --text: #f1f1ef;
  --muted: #c0c0bc;
  --line: rgba(255,255,255,.20);
  --accent: #fff000;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; min-width: 320px; overflow-x: hidden; background: var(--bg); color: var(--text); font-family: Arial, Helvetica, sans-serif; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.site-header {
  position: fixed;
  z-index: 20;
  top: 24px;
  left: 50%;
  width: min(560px, calc(100% - 32px));
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  text-align: center;
}
.brand {
  position: relative;
  display: block;
  color: #f0f0eb;
  font-family: "Segoe UI Light", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(22px, 2.1vw, 30px);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: .24em;
  white-space: nowrap;
  text-shadow: 0 1px 18px #000;
}
.brand::before { content: "PIRAMIT WORLD"; visibility: hidden; }
.brand-text { position: absolute; inset: 0; white-space: nowrap; }
.brand.is-matrix .brand-text { color: #d8aa00; text-shadow: 0 0 5px #f0c000, 0 0 15px #ad7900, 0 0 28px rgba(116,72,0,.82); animation: matrix-flicker .11s steps(2) infinite; }
@keyframes matrix-flicker { 50% { opacity: .82; } }
.nav { display: flex; justify-content: center; align-items: center; gap: 34px; }
.nav-link {
  position: relative;
  min-width: 95px;
  padding: 6px 0 15px;
  color: #f7f7f4;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .24em;
  text-align: center;
  text-shadow: 0 1px 14px #000;
  transition: color .22s ease, text-shadow .22s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 26px;
  height: 1px;
  background: currentColor;
  transform: translateX(-50%);
  transition: width .28s ease, box-shadow .28s ease;
}
.nav-link.is-active::after { background: #d7a900; }
.nav-link:hover, .nav-link:focus-visible { color: #e5b900; text-shadow: 0 0 8px rgba(255,197,0,.9), 0 0 22px rgba(179,111,0,.85); }
.nav-link:hover::after, .nav-link:focus-visible::after { width: 100%; box-shadow: 0 0 8px #f4c100, 0 0 19px #b97d00; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

.panel { position: relative; min-height: 100svh; isolation: isolate; overflow: hidden; }
.panel-image { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; display: block; object-fit: cover; filter: grayscale(1) contrast(1.1); }
.hero { display: flex; align-items: flex-end; }
.hero-image { object-position: center 56%; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(0,0,0,.77), rgba(0,0,0,.21) 63%, rgba(0,0,0,.38)),
              linear-gradient(0deg, #000 0%, rgba(0,0,0,.15) 50%, rgba(0,0,0,.43) 100%);
}
.hero-topline, .hero-rail, .site-footer {
  display: flex; justify-content: space-between; gap: 20px;
  color: #bfbfbb;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  letter-spacing: .16em;
}
.hero-topline { position: absolute; top: 54px; left: 5.5vw; right: 5.5vw; }
.hero-copy { position: relative; width: min(1100px, 100%); padding: 200px 0 122px 8vw; }
.eyebrow { display: flex; align-items: center; gap: 13px; margin: 0 0 22px; color: #dfdfdc; font-size: 13px; font-weight: 700; letter-spacing: .22em; }
.diamond { width: 8px; height: 8px; flex: none; transform: rotate(45deg); background: var(--accent); }
h1, h2, p { margin-top: 0; }
h1 { margin: 0; font-size: clamp(66px, 10.6vw, 170px); font-weight: 900; letter-spacing: -.075em; line-height: .75; }
h1 span { display: block; }
h1 span + span { margin-top: .15em; }
h1 .outline { color: transparent; -webkit-text-stroke: 2px #e8e8e5; paint-order: stroke fill; }
.hero-description { max-width: 410px; margin: 47px 0 0; color: #d9d9d7; font-size: 19px; line-height: 1.45; }
.hero-rail { position: absolute; left: 5.5vw; right: 5.5vw; bottom: 28px; padding-top: 16px; border-top: 1px solid var(--line); }

.about { display: flex; align-items: center; min-height: 100svh; padding: 180px 6vw 115px; }
.about-image { object-position: center 62%; filter: grayscale(1) blur(5px) brightness(.67); transform: scale(1.025); }
.about-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(0,0,0,.76), transparent 37%, rgba(0,0,0,.33)), linear-gradient(90deg, rgba(0,0,0,.39), rgba(0,0,0,.09) 50%, rgba(0,0,0,.39)); }
.about-grid { width: min(1000px, 100%); margin: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.about-card { min-height: 398px; padding: clamp(30px, 3.5vw, 52px); border: 1px solid rgba(255,255,255,.26); background: rgba(3,3,3,.63); -webkit-backdrop-filter: blur(15px); backdrop-filter: blur(15px); box-shadow: 0 22px 65px rgba(0,0,0,.27); }
.card-kicker { display: flex; align-items: center; gap: 13px; margin: 0 0 38px; color: #d3d3ce; font: 700 11px Arial, sans-serif; letter-spacing: .17em; }
.card-kicker .diamond { width: 7px; height: 7px; background: #cca237; }
.about-card h2, .about-card h3 { margin: 0 0 25px; color: #f4f4f1; font-size: clamp(38px, 4vw, 58px); font-weight: 800; letter-spacing: -.055em; line-height: 1; }
.card-copy { max-width: 360px; margin: 0; color: #d4d4d0; font-size: 17px; line-height: 1.55; }
.about-contact { display: flex; flex-direction: column; align-items: flex-start; padding-bottom: 28px; }
.contact-actions { display: flex; flex: 1; flex-direction: column; align-items: stretch; gap: 16px; width: 100%; margin-top: 30px; }
.contact-email-display { display: block; width: 100%; padding: 0 0 15px; border-bottom: 1px solid rgba(222,172,77,.72); color: #e6b946; font-size: clamp(19px, 2vw, 22px); font-weight: 600; line-height: 1.35; letter-spacing: .005em; white-space: nowrap; user-select: text; }
.contact-demo { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; width: 100%; margin-top: auto; padding: 14px 17px; border: 1px solid #b68539; background: #76511d; color: #fff5df; font: 700 12px Arial, sans-serif; letter-spacing: .15em; transition: background .22s ease, border-color .22s ease, box-shadow .22s ease; }
.contact-demo:hover, .contact-demo:focus-visible { border-color: #e0ac55; background: #966925; box-shadow: 0 0 20px rgba(181,116,27,.25); }
.contact-demo span:last-child { font-size: 18px; line-height: 1; }
.social-list { margin-top: 25px; border-top: 1px solid rgba(255,255,255,.28); }
.social-row { min-height: 49px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid rgba(255,255,255,.2); color: #efefeb; font: 700 12px Arial, sans-serif; letter-spacing: .15em; transition: color .22s ease, padding .22s ease, background .22s ease; }
a.social-row:hover, a.social-row:focus-visible { padding-inline: 9px; color: #e7bd62; background: rgba(184,130,34,.09); }
.social-row.is-pending { color: #aaa9a3; }
.social-row small { color: #a69a7f; font-size: 10px; letter-spacing: .14em; }
.network-flag { display: block; width: 23px; height: 16px; object-fit: cover; border: 1px solid rgba(255,255,255,.18); border-radius: 1px; filter: drop-shadow(0 0 6px rgba(222,32,32,.35)); }
.site-footer { position: absolute; bottom: 28px; left: 5.5vw; right: 5.5vw; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding-top: 16px; border-top: 1px solid var(--line); }
.footer-egg { color: #bfbfbb; text-align: right; }
.footer-brand { color: #ededeb; transition: color .2s, text-shadow .2s; }
.footer-program { color: #f8e0a2; font-size: 12px; letter-spacing: .07em; text-align: center; text-shadow: 0 0 5px rgba(255,231,166,.7), 0 0 16px rgba(239,180,72,.56), 0 0 30px rgba(181,116,27,.37); }
.footer-brand:hover, .footer-brand:focus-visible { color: #e5b900; text-shadow: 0 0 12px rgba(255,194,0,.6); }

.application-page { display: flex; align-items: center; min-height: 100svh; padding: 165px 8vw 70px; }
.application-page .about-image { object-position: center 55%; }
.application-shell { width: min(720px, 100%); margin: auto; padding: clamp(30px, 4vw, 56px); border: 1px solid rgba(255,255,255,.28); background: rgba(3,3,3,.76); -webkit-backdrop-filter: blur(15px); backdrop-filter: blur(15px); box-shadow: 0 22px 65px rgba(0,0,0,.27); }
.application-heading { display: flex; align-items: center; gap: 14px; margin: 0 0 38px; color: #f4f4f1; font-size: clamp(17px, 2vw, 23px); font-weight: 700; letter-spacing: .17em; line-height: 1.25; }
.application-heading .diamond { width: 8px; height: 8px; background: #cca237; }
.application-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px 18px; }
.application-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.application-field { min-width: 0; }
.application-field-wide, .application-actions { grid-column: 1 / -1; }
.application-field label { display: block; margin-bottom: 11px; color: #e5e5e0; font-size: 12px; font-weight: 700; letter-spacing: .11em; }
.application-field input, .application-field textarea { display: block; width: 100%; min-height: 51px; padding: 14px 16px; border: 1px solid rgba(255,255,255,.3); border-radius: 0; outline: none; background: rgba(0,0,0,.43); color: #f4f4f1; font: 16px Arial, Helvetica, sans-serif; transition: border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.application-field textarea { min-height: 112px; resize: vertical; }
.application-field input::placeholder { color: #888780; opacity: 1; }
.application-field input:hover, .application-field textarea:hover { border-color: rgba(255,255,255,.6); }
.application-field input:focus-visible, .application-field textarea:focus-visible { border-color: #d6a746; background: rgba(0,0,0,.65); box-shadow: 0 0 0 2px rgba(187,135,45,.27); }
.application-actions { margin-top: 5px; }
.application-submit { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 56px; padding: 16px 19px; border: 1px solid #b98832; background: #9a6a22; color: #fff9e9; cursor: pointer; font: 700 12px Arial, sans-serif; letter-spacing: .15em; text-align: left; transition: background .22s ease, box-shadow .22s ease, border-color .22s ease; }
.application-submit:hover, .application-submit:focus-visible { border-color: #dbab52; background: #b5802b; box-shadow: 0 0 20px rgba(173,112,31,.23); }
.application-submit:disabled { cursor: wait; opacity: .65; }
.application-submit span { font-size: 20px; line-height: .7; }
.application-note, .application-status { margin: 13px 0 0; color: #b4b2aa; font-size: 10px; line-height: 1.4; letter-spacing: .12em; }
.application-status { margin-top: 0; color: #e8d1a0; }
.application-status.is-success { color: #c4e5ba; }
.application-status:not(:empty) { margin-top: 10px; }

@media (max-width: 900px) {
  .hero-topline { display: none; }
  .hero-copy { padding-left: 6vw; padding-right: 6vw; }
  h1 { font-size: clamp(56px, 11.4vw, 100px); }
}
@media (max-width: 600px) {
  .site-header { top: 19px; width: calc(100% - 20px); gap: 10px; }
  .brand { font-size: clamp(18px, 5vw, 22px); letter-spacing: .16em; }
  .nav { gap: 20px; }
  .nav-link { min-width: 82px; padding: 5px 0 12px; font-size: 11px; }
  .hero { min-height: 100svh; }
  .hero-image { object-position: 51% 50%; }
  .hero-shade { background: linear-gradient(0deg, #000 0%, rgba(0,0,0,.23) 54%, rgba(0,0,0,.52)), linear-gradient(90deg, rgba(0,0,0,.55), transparent); }
  .hero-copy { padding: 170px 22px 118px; }
  .eyebrow { font-size: 10px; letter-spacing: .12em; }
  h1 { font-size: clamp(49px, 12.3vw, 75px); letter-spacing: -.08em; }
  h1 .outline { -webkit-text-stroke-width: 1px; }
  .hero-description { margin-top: 32px; font-size: 16px; }
  .hero-rail, .site-footer { left: 22px; right: 22px; font-size: 10px; letter-spacing: .08em; }
  .about { padding: 160px 18px 125px; }
  .about-image { object-position: center 62%; }
  .about-grid { grid-template-columns: 1fr; gap: 14px; max-width: 460px; }
  .about-card { min-height: 300px; padding: 28px; }
  .card-kicker { margin-bottom: 25px; }
  .about-card h2, .about-card h3 { font-size: clamp(38px, 9vw, 52px); }
  .about-social { min-height: 340px; }
  .application-page { padding: 145px 18px 50px; }
  .application-shell { padding: 30px 24px; }
  .application-heading { margin-bottom: 30px; font-size: 17px; letter-spacing: .1em; }
  .application-form { grid-template-columns: 1fr; gap: 19px; }
  .application-field-wide, .application-actions { grid-column: 1; }
  .site-footer { grid-template-columns: 1fr auto; }
  .footer-egg { grid-column: 1 / -1; font-size: 9px; margin-top: 5px; }
  .footer-program { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; } }
@media (prefers-reduced-motion: reduce) { .brand.is-matrix .brand-text { animation: none; } }
