@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --bg: #050914;
  --bg-soft: #081020;
  --panel: rgba(10, 18, 35, .78);
  --panel-strong: #0b1425;
  --line: rgba(139, 173, 255, .16);
  --line-bright: rgba(139, 173, 255, .34);
  --text: #f7f8fb;
  --muted: #97a4bb;
  --orange: #ff641f;
  --orange-2: #ff9a30;
  --pink: #ff3d6b;
  --violet: #8257ff;
  --cyan: #30c8ff;
  --green: #3fe69a;
  --shadow: 0 24px 90px rgba(0, 0, 0, .42);
  --radius: 24px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 18% -10%, rgba(130, 87, 255, .18), transparent 32%),
    radial-gradient(circle at 85% 5%, rgba(255, 100, 31, .12), transparent 24%),
    linear-gradient(180deg, #07101e 0%, #050914 50%, #04070f 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
  z-index: -1;
}

a { color: inherit; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; display: block; }

.wrap { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }
.section { padding: 104px 0; position: relative; }
.eyebrow {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  color: #ffb066;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 800;
  font-size: .76rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: linear-gradient(90deg, transparent, var(--orange)); }
.section-title { font: 700 clamp(2.2rem, 5vw, 4.4rem)/.96 "Space Grotesk", Inter, sans-serif; letter-spacing: -.045em; margin: 16px 0 18px; }
.section-copy { color: var(--muted); font-size: 1.03rem; line-height: 1.75; max-width: 650px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  height: 74px;
  display: flex;
  align-items: center;
  background: rgba(4, 9, 20, .68);
  border-bottom: 1px solid rgba(255,255,255,.06);
  backdrop-filter: blur(18px) saturate(140%);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font: 700 1rem/1 "Space Grotesk", sans-serif; letter-spacing: -.02em; white-space: nowrap; }
.brand img { width: 38px; height: 38px; filter: drop-shadow(0 7px 14px rgba(255, 91, 31, .18)); }
.brand strong span { color: var(--orange); }
.nav-links { display: flex; gap: 8px; align-items: center; }
.nav-links a { text-decoration: none; color: #cbd3e1; font-size: .9rem; padding: 11px 13px; border-radius: 12px; transition: .22s ease; }
.nav-links a:hover, .nav-links a:focus-visible { color: white; background: rgba(255,255,255,.06); outline: none; }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.mobile-menu { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: white; cursor: pointer; }

.button {
  appearance: none;
  border: 0;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  font-weight: 750;
  font-size: .91rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: linear-gradient(135deg, var(--orange), #ff3e35); box-shadow: 0 10px 32px rgba(255, 83, 35, .24); }
.button-primary:hover { box-shadow: 0 16px 36px rgba(255, 83, 35, .33); }
.button-ghost { color: #dbe1ec; border: 1px solid var(--line-bright); background: rgba(255,255,255,.035); }
.button-small { min-height: 40px; padding: 0 14px; border-radius: 12px; font-size: .84rem; }

.admin-trigger { position: relative; }
.admin-trigger > button { min-height: 42px; border: 1px solid rgba(255, 117, 51, .38); background: rgba(255, 99, 31, .08); color: #ffd0b8; border-radius: 12px; padding: 0 13px; cursor: pointer; font-weight: 700; }
.admin-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: 285px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(7, 13, 27, .97);
  border: 1px solid var(--line-bright);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px) scale(.98);
  transform-origin: top right;
  transition: .18s ease;
}
.admin-menu.open { opacity: 1; pointer-events: auto; transform: none; }
.admin-menu-head { padding: 10px 10px 13px; border-bottom: 1px solid var(--line); }
.admin-menu-head b { display: block; font-size: .9rem; }
.admin-menu-head span { color: var(--muted); font-size: .76rem; }
.admin-menu-status { margin: 10px 0; padding: 11px; border-radius: 12px; background: rgba(255,255,255,.035); display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: .82rem; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 14px currentColor; display: inline-block; margin-right: 6px; }
.status-dot.offline { background: #ff4f67; }
.admin-menu form, .admin-menu a.menu-link { display: block; margin-top: 7px; }
.admin-menu button, .admin-menu a.menu-link { width: 100%; text-align: left; border: 0; border-radius: 11px; padding: 11px; background: transparent; color: #dfe5ee; text-decoration: none; cursor: pointer; }
.admin-menu button:hover, .admin-menu a.menu-link:hover { background: rgba(255,255,255,.055); }

.maintenance-banner { background: linear-gradient(90deg, rgba(255, 62, 85, .88), rgba(255, 115, 27, .9)); color: white; text-align: center; padding: 9px 16px; font-size: .83rem; font-weight: 700; }

.hero { min-height: calc(100vh - 74px); display: grid; align-items: center; position: relative; overflow: hidden; padding: 88px 0 70px; }
.hero::before {
  content: "";
  position: absolute;
  width: min(76vw, 980px);
  aspect-ratio: 1.25;
  right: -18vw;
  top: 2%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(130, 87, 255, .22), rgba(38, 109, 255, .08) 38%, transparent 68%);
  filter: blur(3px);
  animation: breathe 8s ease-in-out infinite alternate;
}
.hero::after {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  left: -250px;
  bottom: -230px;
  background: radial-gradient(circle, rgba(255, 97, 31, .17), transparent 68%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); align-items: center; gap: 72px; position: relative; z-index: 2; }
.hero-copy h1 { margin: 18px 0 22px; max-width: 820px; font: 700 clamp(3.7rem, 8vw, 7.6rem)/.86 "Space Grotesk", sans-serif; letter-spacing: -.065em; }
.hero-copy h1 em { font-style: normal; color: transparent; background: linear-gradient(100deg, #ffb241 0%, var(--orange) 48%, #ff3458 100%); background-clip: text; -webkit-background-clip: text; }
.hero-copy > p { color: #a8b3c7; line-height: 1.75; font-size: 1.08rem; max-width: 650px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.hero-meta { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 44px; color: #9aa7bc; font-size: .83rem; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 14px rgba(63,230,154,.9); }

.hero-visual { position: relative; min-height: 510px; display: grid; place-items: center; perspective: 1000px; }
.orbit { position: absolute; border: 1px solid rgba(94, 142, 255, .18); border-radius: 50%; animation: spin 18s linear infinite; }
.orbit.one { width: 410px; height: 410px; }
.orbit.two { width: 315px; height: 315px; animation-direction: reverse; animation-duration: 14s; border-color: rgba(255, 104, 35, .18); }
.orbit::after { content: ""; position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--orange); top: 12%; left: 16%; box-shadow: 0 0 20px rgba(255,100,31,.8); }
.visual-card {
  width: min(390px, 86vw);
  aspect-ratio: .82;
  position: relative;
  border-radius: 32px;
  border: 1px solid rgba(131, 166, 255, .28);
  overflow: hidden;
  background:
    linear-gradient(180deg, transparent 34%, rgba(4, 7, 16, .96) 88%),
    radial-gradient(circle at 68% 20%, rgba(255, 138, 66, .5), transparent 22%),
    linear-gradient(145deg, #182d58, #401c5e 50%, #0b1830);
  box-shadow: 0 32px 100px rgba(0,0,0,.48), inset 0 1px rgba(255,255,255,.06);
  transform: rotateY(-7deg) rotateX(4deg);
  animation: float 5s ease-in-out infinite;
  transform-style: preserve-3d;
  will-change: transform;
  transition: box-shadow .28s ease;
}
.visual-card::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, transparent 0 24px, rgba(255,255,255,.018) 24px 25px); }
.visual-card::after { content: ""; position: absolute; width: 260px; height: 260px; border: 1px solid rgba(255,255,255,.1); border-radius: 48% 52% 58% 42%; left: 62px; top: 68px; transform: rotate(26deg); box-shadow: inset 0 0 50px rgba(108, 84, 255, .16); }
.visual-code { position: absolute; inset: 28px 28px auto; color: #a7bbde; font: 600 .7rem/1.8 ui-monospace, SFMono-Regular, Menlo, monospace; opacity: .7; }
.visual-title { position: absolute; left: 28px; bottom: 34px; right: 28px; z-index: 2; }
.visual-title small { color: #ffad74; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.visual-title b { display: block; margin-top: 7px; font: 700 2rem/1.05 "Space Grotesk", sans-serif; }
.visual-chip { position: absolute; z-index: 3; padding: 9px 12px; border-radius: 12px; border: 1px solid rgba(255,255,255,.11); background: rgba(5, 10, 22, .72); backdrop-filter: blur(12px); color: #c9d3e4; font-size: .72rem; box-shadow: 0 14px 36px rgba(0,0,0,.25); }
.visual-chip.a { top: 86px; right: -24px; animation: floatSmall 4s ease-in-out infinite; }
.visual-chip.b { bottom: 105px; left: -40px; animation: floatSmall 4.6s ease-in-out infinite reverse; }

.stats { margin-top: -10px; position: relative; z-index: 3; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 22px; background: rgba(7, 13, 27, .65); backdrop-filter: blur(18px); box-shadow: 0 18px 70px rgba(0,0,0,.2); overflow: hidden; }
.stat { padding: 24px 26px; position: relative; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { display: block; font: 700 1.45rem/1 "Space Grotesk", sans-serif; }
.stat span { display: block; color: var(--muted); font-size: .76rem; margin-top: 7px; }

.projects-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 42px; }
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.project-card {
  min-height: 430px;
  border-radius: 26px;
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
  background: #0a1325;
  box-shadow: 0 20px 70px rgba(0,0,0,.22);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .3s ease, box-shadow .3s ease;
}
.project-card:hover { transform: translateY(-8px); border-color: rgba(133,165,255,.38); box-shadow: 0 28px 90px rgba(0,0,0,.34); }
.project-art { height: 250px; position: relative; overflow: hidden; background: #101b34; }
.project-art::before, .project-art::after { content: ""; position: absolute; }
.project-art.a { background: radial-gradient(circle at 65% 30%, #ff9159 0 8%, transparent 23%), linear-gradient(155deg, #0d4739, #122643 50%, #160e1d); }
.project-art.a::before { width: 180px; height: 180px; border-radius: 46% 54% 55% 45%; background: linear-gradient(140deg, rgba(74,246,166,.35), rgba(0,0,0,.25)); right: 12%; top: 20%; transform: rotate(18deg); }
.project-art.a::after { inset: auto 0 0; height: 95px; background: repeating-linear-gradient(165deg, rgba(0,0,0,.45) 0 18px, transparent 18px 36px); opacity: .6; }
.project-art.b { background: radial-gradient(circle at 76% 38%, #ff3c7c 0 5%, transparent 23%), linear-gradient(135deg, #17114c, #181f49 44%, #090e18); }
.project-art.b::before { width: 68%; height: 72px; left: 16%; bottom: 34px; border-radius: 45% 55% 30% 25%; transform: skewX(-13deg); background: linear-gradient(90deg, #2c1c67, #b72aff 52%, #2ce0ff); box-shadow: 0 -16px 60px rgba(166,38,255,.35); }
.project-art.b::after { inset: 0; background: repeating-linear-gradient(90deg, transparent 0 40px, rgba(79,79,255,.1) 40px 42px); }
.project-art.c { background: radial-gradient(circle at 56% 23%, #ff8a42 0 4%, transparent 26%), linear-gradient(145deg, #4a1c17, #17152d 46%, #07101c); }
.project-art.c::before { width: 180px; height: 260px; left: 36%; top: 16%; background: linear-gradient(160deg, rgba(255,160,80,.42), rgba(8,10,20,.5)); clip-path: polygon(38% 0, 62% 0, 82% 35%, 70% 100%, 30% 100%, 18% 35%); filter: drop-shadow(0 20px 20px rgba(0,0,0,.45)); }
.project-art.d { background: radial-gradient(circle at 40% 30%, rgba(76,180,255,.55), transparent 24%), linear-gradient(145deg, #0a2445, #2d1e5a 55%, #091125); }
.project-art.d::before { width: 230px; height: 140px; border-radius: 50%; border: 2px solid rgba(173,210,255,.28); left: 29%; top: 22%; transform: rotate(-18deg); box-shadow: inset 0 0 70px rgba(65,160,255,.13), 0 0 40px rgba(95,93,255,.14); }
.project-art.d::after { width: 18px; height: 18px; border-radius: 50%; background: #fff2b2; top: 34%; left: 52%; box-shadow: 0 0 38px rgba(255,227,134,.8); }
.project-index { position: absolute; top: 18px; left: 18px; z-index: 3; padding: 8px 10px; border-radius: 10px; background: rgba(4,8,18,.65); border: 1px solid rgba(255,255,255,.11); backdrop-filter: blur(10px); color: #d4dbea; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.project-body { padding: 25px 25px 27px; }
.project-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.project-tags span { font-size: .67rem; padding: 6px 9px; border-radius: 999px; color: #c6d2e6; border: 1px solid rgba(143,177,255,.16); background: rgba(255,255,255,.035); }
.project-body h3 { margin: 15px 0 8px; font: 700 1.55rem/1.1 "Space Grotesk", sans-serif; }
.project-body p { margin: 0; color: var(--muted); line-height: 1.65; font-size: .9rem; }
.placeholder-note { color: #ffb173; font-size: .71rem; margin-top: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.about-panel { position: relative; min-height: 490px; border-radius: 30px; border: 1px solid var(--line); background: linear-gradient(145deg, rgba(22,37,68,.85), rgba(10,16,31,.88)); overflow: hidden; box-shadow: var(--shadow); }
.about-panel::before { content: ""; position: absolute; width: 350px; height: 350px; border-radius: 50%; border: 1px solid rgba(121,159,255,.22); left: 50%; top: 48%; transform: translate(-50%,-50%); box-shadow: inset 0 0 90px rgba(85,104,255,.08); }
.about-panel::after { content: "SG"; position: absolute; inset: 0; display: grid; place-items: center; font: 700 8rem/1 "Space Grotesk", sans-serif; color: rgba(255,255,255,.035); letter-spacing: -.08em; }
.code-lines { position: absolute; left: 34px; right: 34px; top: 34px; color: #7fa2da; font: 500 .72rem/2 ui-monospace, SFMono-Regular, Menlo, monospace; opacity: .6; }
.about-points { display: grid; gap: 13px; margin-top: 28px; }
.about-point { padding: 17px 18px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.025); }
.about-point b { display: block; margin-bottom: 5px; }
.about-point span { color: var(--muted); font-size: .85rem; line-height: 1.55; }

.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 42px; }
.process-card { padding: 28px; border: 1px solid var(--line); background: rgba(8,15,29,.72); border-radius: 22px; min-height: 230px; position: relative; overflow: hidden; }
.process-card::after { content: attr(data-step); position: absolute; right: 18px; bottom: -24px; color: rgba(255,255,255,.025); font: 700 8rem/1 "Space Grotesk", sans-serif; }
.process-icon { width: 44px; height: 44px; border-radius: 13px; background: rgba(255,100,31,.1); border: 1px solid rgba(255,100,31,.22); display: grid; place-items: center; color: #ff9d5c; font-weight: 800; }
.process-card h3 { font: 700 1.25rem/1.1 "Space Grotesk", sans-serif; margin: 28px 0 10px; }
.process-card p { color: var(--muted); font-size: .86rem; line-height: 1.65; margin: 0; }

.contact-shell { display: grid; grid-template-columns: .82fr 1.18fr; gap: 28px; border: 1px solid var(--line); border-radius: 30px; overflow: hidden; background: rgba(8,15,29,.76); box-shadow: var(--shadow); }
.contact-copy { padding: 48px; background: radial-gradient(circle at 20% 20%, rgba(255,99,31,.14), transparent 35%), rgba(255,255,255,.018); }
.contact-copy h2 { font: 700 clamp(2.2rem,5vw,4rem)/.98 "Space Grotesk", sans-serif; letter-spacing: -.045em; margin: 16px 0 18px; }
.contact-copy p { color: var(--muted); line-height: 1.7; }
.contact-mail { display: inline-flex; margin-top: 24px; color: #ffb58b; text-decoration: none; border-bottom: 1px solid rgba(255,180,139,.28); padding-bottom: 3px; }
.contact-form { padding: 40px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 8px; margin-bottom: 14px; }
.field label { color: #b8c2d3; font-size: .78rem; font-weight: 700; }
.field input, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(4,9,20,.62);
  color: white;
  border-radius: 13px;
  padding: 14px 15px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.field input:focus, .field textarea:focus { border-color: rgba(255,112,48,.7); box-shadow: 0 0 0 4px rgba(255,95,31,.09); background: rgba(7,12,24,.88); }
.field textarea { min-height: 148px; resize: vertical; }
.form-foot { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin-top: 8px; }
.form-note { color: var(--muted); font-size: .72rem; line-height: 1.5; }
.form-alert { margin-bottom: 16px; padding: 13px 14px; border-radius: 13px; font-size: .82rem; border: 1px solid; }
.form-alert.success { color: #b9fbd8; background: rgba(48,202,132,.09); border-color: rgba(63,230,154,.22); }
.form-alert.error { color: #ffc5cc; background: rgba(255,61,92,.08); border-color: rgba(255,76,100,.22); }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.site-footer { border-top: 1px solid var(--line); padding: 34px 0 44px; color: #7e8ba1; }
.footer-row { display: flex; justify-content: space-between; gap: 30px; align-items: center; }
.footer-row .brand { color: white; }
.footer-links { display: flex; gap: 18px; font-size: .76rem; flex-wrap: wrap; }
.footer-links a { color: #8f9db2; text-decoration: none; }
.footer-links a:hover { color: white; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.visible { opacity: 1; transform: none; }

/* Admin and maintenance */
.auth-page, .maintenance-page { min-height: 100vh; display: grid; place-items: center; padding: 28px; position: relative; overflow: hidden; }
.auth-page::before, .maintenance-page::before { content: ""; position: fixed; inset: -20%; background: radial-gradient(circle at 50% 30%, rgba(85,72,255,.18), transparent 30%), radial-gradient(circle at 70% 70%, rgba(255,80,32,.12), transparent 25%); animation: breathe 8s ease-in-out infinite alternate; pointer-events: none; }
.auth-card, .maintenance-card { width: min(100%, 460px); border: 1px solid var(--line-bright); background: rgba(7,13,27,.9); backdrop-filter: blur(20px); border-radius: 28px; padding: 34px; box-shadow: var(--shadow); position: relative; z-index: 2; }
.auth-logo { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 30px; text-align: center; }
.auth-logo img { width: 68px; height: 68px; }
.auth-logo h1 { font: 700 1.65rem/1 "Space Grotesk", sans-serif; margin: 0; }
.auth-logo p { color: var(--muted); margin: 0; font-size: .85rem; }
.auth-card .field-grid { grid-template-columns: 1fr; }
.auth-card .button { width: 100%; margin-top: 4px; }
.auth-back { display: block; text-align: center; color: var(--muted); margin-top: 18px; text-decoration: none; font-size: .78rem; }
.auth-back:hover { color: white; }

.admin-page { min-height: 100vh; background: linear-gradient(180deg,#07101e,#040811); }
.admin-top { height: 72px; border-bottom: 1px solid var(--line); display: flex; align-items: center; background: rgba(5,10,21,.78); backdrop-filter: blur(15px); position: sticky; top: 0; z-index: 20; }
.admin-top-row { display: flex; align-items: center; justify-content: space-between; }
.admin-user { color: #aab5c7; font-size: .82rem; }
.admin-main { padding: 70px 0 100px; }
.admin-heading { display: flex; justify-content: space-between; align-items: end; gap: 28px; margin-bottom: 34px; }
.admin-heading h1 { margin: 0; font: 700 clamp(2.4rem,6vw,4rem)/1 "Space Grotesk", sans-serif; letter-spacing: -.05em; }
.admin-heading p { color: var(--muted); margin: 10px 0 0; }
.dashboard-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 22px; }
.dashboard-card { border: 1px solid var(--line); background: rgba(9,16,31,.75); border-radius: 24px; padding: 28px; box-shadow: 0 18px 60px rgba(0,0,0,.18); }
.dashboard-card h2 { margin: 0 0 8px; font: 700 1.3rem/1.1 "Space Grotesk", sans-serif; }
.dashboard-card p { margin: 0; color: var(--muted); font-size: .85rem; line-height: 1.6; }
.maintenance-control { margin-top: 24px; padding: 20px; border-radius: 18px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 24px; background: rgba(255,255,255,.025); }
.maintenance-control.live { border-color: rgba(63,230,154,.2); background: rgba(63,230,154,.04); }
.maintenance-control.maintenance { border-color: rgba(255,76,100,.24); background: rgba(255,76,100,.045); }
.maintenance-label b { display: block; margin-bottom: 5px; }
.maintenance-label span { color: var(--muted); font-size: .78rem; }
.toggle-form { margin: 0; }
.toggle {
  border: 0; width: 62px; height: 34px; border-radius: 999px; padding: 4px; background: #29344a; cursor: pointer; transition: background .2s ease; position: relative;
}
.toggle::after { content: ""; display: block; width: 26px; height: 26px; border-radius: 50%; background: white; box-shadow: 0 3px 10px rgba(0,0,0,.35); transition: transform .22s ease; }
.toggle.on { background: #ff4a52; }
.toggle.on::after { transform: translateX(28px); }
.quick-actions { display: grid; gap: 10px; margin-top: 20px; }
.quick-actions a, .quick-actions button { width: 100%; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.025); color: #dbe2ed; text-decoration: none; text-align: left; cursor: pointer; }
.quick-actions a:hover, .quick-actions button:hover { border-color: var(--line-bright); background: rgba(255,255,255,.045); }
.status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 11px; border-radius: 999px; color: #bdf4d7; background: rgba(63,230,154,.08); border: 1px solid rgba(63,230,154,.18); font-size: .75rem; font-weight: 700; }
.status-pill.maintenance { color: #ffc5cc; background: rgba(255,76,100,.08); border-color: rgba(255,76,100,.2); }

.maintenance-card { text-align: center; width: min(100%, 560px); padding: 46px 36px; }
.maintenance-card img { width: 86px; margin: 0 auto 24px; }
.maintenance-card h1 { font: 700 clamp(2.3rem,8vw,4.4rem)/.95 "Space Grotesk", sans-serif; letter-spacing: -.05em; margin: 0 0 18px; }
.maintenance-card p { color: var(--muted); line-height: 1.7; margin: 0 auto; max-width: 420px; }
.maintenance-progress { height: 6px; background: rgba(255,255,255,.07); border-radius: 99px; overflow: hidden; margin: 34px 0 18px; }
.maintenance-progress span { display: block; width: 62%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--orange), var(--violet)); animation: progressGlow 2.5s ease-in-out infinite alternate; }

@keyframes float { 0%,100% { transform: rotateY(-7deg) rotateX(4deg) translateY(0); } 50% { transform: rotateY(-5deg) rotateX(2deg) translateY(-11px); } }
@keyframes floatSmall { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { from { transform: scale(.98); opacity: .7; } to { transform: scale(1.05); opacity: 1; } }
@keyframes progressGlow { to { width: 78%; filter: brightness(1.25); } }

@media (max-width: 980px) {
  .nav-links { position: fixed; top: 74px; left: 16px; right: 16px; padding: 12px; display: grid; background: rgba(6,12,25,.98); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(-10px); transition: .18s ease; }
  .nav-links.open { opacity: 1; pointer-events: auto; transform: none; }
  .nav-links a { padding: 13px 14px; }
  .mobile-menu { display: inline-grid; place-items: center; }
  .nav-actions .button-ghost { display: none; }
  .hero { min-height: auto; padding-top: 70px; }
  .hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .hero-copy { text-align: center; }
  .hero-copy > p { margin-inline: auto; }
  .hero-actions, .hero-meta { justify-content: center; }
  .hero-visual { min-height: 470px; }
  .project-grid { grid-template-columns: 1fr; }
  .about-grid, .contact-shell { grid-template-columns: 1fr; }
  .about-panel { order: -1; min-height: 390px; }
  .process-grid { grid-template-columns: 1fr; }
  .dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .wrap { width: min(calc(100% - 28px), var(--max)); }
  .section { padding: 78px 0; }
  .site-header { height: 68px; }
  .nav-links { top: 68px; }
  .brand strong { font-size: .92rem; }
  .brand img { width: 34px; height: 34px; }
  .nav-actions { gap: 7px; }
  .admin-trigger > button { width: 42px; padding: 0; font-size: 0; }
  .admin-trigger > button::after { content: "A"; font-size: .82rem; }
  .admin-menu { position: fixed; left: 14px; right: 14px; top: 78px; width: auto; }
  .hero { padding: 58px 0 42px; }
  .hero-copy h1 { font-size: clamp(3rem, 16vw, 5rem); }
  .hero-copy > p { font-size: .98rem; }
  .hero-actions { display: grid; grid-template-columns: 1fr; width: 100%; max-width: 420px; margin: 28px auto 0; }
  .hero-actions .button { width: 100%; min-height: 52px; }
  .hero-meta { gap: 12px 18px; font-size: .75rem; }
  .hero-visual { min-height: 390px; margin-top: 10px; }
  .orbit.one { width: 330px; height: 330px; }
  .orbit.two { width: 255px; height: 255px; }
  .visual-card { width: min(310px, 82vw); border-radius: 26px; }
  .visual-chip.a { right: -4px; }
  .visual-chip.b { left: -4px; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .stat { padding: 20px 18px; }
  .stat + .stat { border-left: 0; }
  .stat:nth-child(even) { border-left: 1px solid var(--line); }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .projects-head { display: block; }
  .project-card { min-height: auto; }
  .project-art { height: 210px; }
  .about-grid { gap: 34px; }
  .about-panel { min-height: 320px; border-radius: 24px; }
  .code-lines { left: 22px; right: 22px; top: 22px; font-size: .63rem; }
  .contact-shell { border-radius: 24px; }
  .contact-copy, .contact-form { padding: 28px 22px; }
  .field-grid { grid-template-columns: 1fr; gap: 0; }
  .form-foot { align-items: stretch; flex-direction: column; }
  .form-foot .button { width: 100%; min-height: 52px; }
  .footer-row { flex-direction: column; align-items: flex-start; }
  .auth-page, .maintenance-page { padding: 16px; }
  .auth-card, .maintenance-card { border-radius: 22px; padding: 28px 20px; }
  .admin-main { padding-top: 48px; }
  .admin-heading { display: block; }
  .admin-heading .status-pill { margin-top: 18px; }
  .dashboard-card { padding: 22px 18px; }
  .maintenance-control { align-items: flex-start; }
}

@media (max-width: 390px) {
  .wrap { width: min(calc(100% - 22px), var(--max)); }
  .hero-copy h1 { font-size: 2.9rem; }
  .visual-card { width: 280px; }
  .hero-visual { min-height: 355px; }
  .orbit.one { width: 292px; height: 292px; }
  .orbit.two { width: 226px; height: 226px; }
  .project-body { padding: 21px 19px 23px; }
  .section-title { font-size: 2.25rem; }
  .maintenance-control { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Uploaded Savannah Games artwork */
.visual-card.with-art {
  background: #09101d;
  isolation: isolate;
  cursor: pointer;
  transform-origin: center;
  animation: none;
  transition: transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .2s ease, filter .2s ease;
}
.visual-card.with-art::before {
  inset: 0;
  width: auto;
  height: auto;
  background:
    radial-gradient(circle at var(--glare-x, 62%) var(--glare-y, 18%), rgba(255,255,255,.22), transparent 26%),
    linear-gradient(180deg, rgba(3,7,15,.05) 20%, rgba(3,7,15,.22) 55%, rgba(3,7,15,.92) 100%);
  z-index: 1;
  opacity: .9;
  transform: translateZ(24px);
  transition: opacity .25s ease;
}
.visual-card.with-art::after { display: none; }
.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  transform: scale(1.02);
  transition: filter .28s ease;
}
.visual-card.with-art.is-tilting {
  animation: none;
  box-shadow: -22px 34px 110px rgba(0,0,0,.58), 0 0 0 1px rgba(255,255,255,.04), inset 0 1px rgba(255,255,255,.08);
}
.visual-card.with-art:hover {
  animation: none;
  transform: perspective(850px) translate3d(0, -10px, 0) rotateY(14deg) rotateX(7deg);
  box-shadow: -22px 34px 110px rgba(0,0,0,.58), 0 0 0 1px rgba(255,255,255,.04), inset 0 1px rgba(255,255,255,.08);
}
.visual-card.with-art.is-tilting .hero-art { filter: saturate(1.06) contrast(1.025); }
.visual-card.with-art:hover .hero-art { filter: saturate(1.06) contrast(1.025); }
.visual-card.with-art .visual-title { z-index: 3; text-shadow: 0 4px 24px rgba(0,0,0,.75); transform: translateZ(38px); }
.visual-card.with-art + .visual-chip,
.visual-card.with-art ~ .visual-chip { transition: transform .28s ease; }
.project-art.with-image { background: #0b1425; }
.project-art.with-image::before,
.project-art.with-image::after { display: none; }
.project-art.with-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.015);
  transition: transform .55s cubic-bezier(.2,.8,.2,1), filter .35s ease;
}
.project-card:hover .project-art.with-image img { transform: scale(1.065); filter: saturate(1.08) contrast(1.025); }
.project-art.with-image::after {
  content: "";
  display: block;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 48%, rgba(5,9,20,.55) 100%);
}
.project-index { box-shadow: 0 8px 24px rgba(0,0,0,.24); }
@media (max-width: 720px) {
  .visual-card.with-art { width: min(340px, 88vw); aspect-ratio: 16 / 10; }
  .visual-card.with-art .visual-title b { font-size: 1.35rem; }
  .project-art.with-image { height: 220px; }
}

/* Hero artwork sizing refinement */
@media (min-width: 981px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(500px, .95fr);
    gap: 56px;
  }
  .hero-visual {
    min-height: 500px;
  }
  .visual-card.with-art {
    width: min(540px, 100%);
    aspect-ratio: 16 / 10.5;
    border-radius: 30px;
  }
  .visual-card.with-art .hero-art {
    object-fit: cover;
    object-position: center center;
    transform: scale(1.005);
  }
  .visual-card.with-art:hover .hero-art {
    transform: scale(1.005);
  }
  .visual-chip.a { right: -8px; top: 104px; }
  .visual-chip.b { left: -18px; bottom: 82px; }
}
