/* =========================================================
   CreatiVoiden — main page styles
   ========================================================= */

:root {
  --bg: #05070d;
  --bg-soft: #070b14;
  --surface: rgba(13, 21, 39, 0.62);
  --surface-strong: rgba(16, 26, 48, 0.88);
  --line: rgba(151, 181, 231, 0.13);
  --line-strong: rgba(151, 181, 231, 0.26);
  --text: #eef4fc;
  --muted: #93a2ba;
  --muted-strong: #b8c5da;
  --brand-100: #d9f6ff;
  --brand-200: #a9ecff;
  --brand-300: #7ee0ff;
  --brand-400: #4ec3ff;
  --brand-500: #3c8dff;
  --brand-700: #2459c9;
  --brand-900: #10265c;
  --grad: linear-gradient(115deg, #b6f2ff 0%, #69ccff 34%, #4b91ff 68%, #8b7bff 100%);
  --grad-soft: linear-gradient(135deg, rgba(126, 224, 255, 0.14), rgba(75, 145, 255, 0.04));
  --container: 1180px;
  --nav-h: 84px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-body: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --font-mono: "Cascadia Code", "SFMono-Regular", "Cascadia Mono", Consolas, "Liberation Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
  scrollbar-color: rgba(126, 224, 255, 0.32) #05070d;
  scrollbar-width: thin;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #05070d;
}

::-webkit-scrollbar-thumb {
  border: 2px solid #05070d;
  border-radius: 999px;
  background: #182642;
}

::-webkit-scrollbar-thumb:hover {
  background: #27406b;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

::selection {
  background: rgba(94, 200, 255, 0.3);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--brand-300);
  outline-offset: 3px;
  border-radius: 6px;
}

main {
  display: block;
}

main:focus {
  outline: none;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.mono {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--muted);
}

.nowrap {
  white-space: nowrap;
}

.grad-text {
  color: var(--brand-300);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .grad-text {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.skip-link {
  position: fixed;
  top: -90px;
  left: 18px;
  z-index: 120;
  padding: 12px 18px;
  border: 1px solid var(--brand-300);
  border-radius: 10px;
  background: #0a1324;
  color: var(--text);
  font-size: 0.85rem;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

/* ---------- fixed backdrop ---------- */

.site-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 75% 52% at 78% -6%, rgba(38, 104, 220, 0.2), transparent 62%),
    radial-gradient(ellipse 52% 42% at 4% 22%, rgba(26, 180, 255, 0.07), transparent 62%),
    radial-gradient(ellipse 62% 46% at 52% 108%, rgba(80, 70, 255, 0.1), transparent 66%),
    linear-gradient(180deg, #05070d 0%, #060a13 46%, #04060b 100%);
}

.site-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 178, 224, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 178, 224, 0.045) 1px, transparent 1px);
  background-size: 88px 88px;
  opacity: 0.55;
  -webkit-mask-image: radial-gradient(ellipse 72% 58% at 50% 0%, #000 8%, transparent 72%);
  mask-image: radial-gradient(ellipse 72% 58% at 50% 0%, #000 8%, transparent 72%);
}

.site-bg::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -220px;
  width: min(1100px, 90vw);
  height: 520px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(56, 110, 255, 0.1), transparent 68%);
  filter: blur(40px);
}

.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 70;
  height: 2px;
  background: rgba(255, 255, 255, 0.035);
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--grad);
  box-shadow: 0 0 14px rgba(126, 224, 255, 0.55);
}

/* ---------- header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(4, 7, 13, 0.72), rgba(4, 7, 13, 0));
  transition: background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}

.site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: var(--line);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(5, 8, 15, 0.88);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.32);
  --nav-h: 70px;
}

.site-header.is-scrolled::after,
.site-header.is-open::after {
  opacity: 1;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--nav-h);
  transition: height 0.35s var(--ease);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(126, 224, 255, 0.18);
  background: radial-gradient(circle at 30% 25%, rgba(126, 224, 255, 0.2), rgba(7, 12, 24, 0.86));
  box-shadow: inset 0 0 18px rgba(78, 195, 255, 0.1);
}

.brand-mark img {
  width: 32px;
  height: 32px;
}

.brand-text strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: 0.18em;
  white-space: nowrap;
}

.brand-text small {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  line-height: 1.2;
  letter-spacing: 0.15em;
  color: var(--muted);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted-strong);
  font-size: 0.86rem;
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 5px;
  height: 1px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s var(--ease);
}

.nav-links a:not(.nav-cta):hover::after {
  transform: scaleX(0.45);
}

.nav-links a.is-active {
  color: var(--text);
}

.nav-links a.is-active::after {
  transform: scaleX(1);
}

.nav-links .nav-cta {
  margin-left: 10px;
  padding: 9px 16px;
  border: 1px solid rgba(126, 224, 255, 0.3);
  background: rgba(78, 195, 255, 0.08);
  color: var(--brand-100);
}

.nav-links .nav-cta .icon {
  width: 14px;
  height: 14px;
}

.nav-links .nav-cta:hover {
  border-color: rgba(126, 224, 255, 0.52);
  background: rgba(78, 195, 255, 0.16);
  transform: translateY(-1px);
}

.nav-links .nav-cta:hover .icon {
  transform: translateY(2px);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(3, 5, 10, 0.58);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

/* ---------- buttons & small pieces ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--text);
  white-space: nowrap;
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.btn .icon {
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--ease);
}

.btn:hover .icon {
  transform: translateX(3px);
}

.btn:active {
  transform: translateY(0) scale(0.99);
}

.btn-primary {
  background: linear-gradient(115deg, #b9f2ff 0%, #6ccdff 36%, #5a8fff 100%);
  background-size: 180% 100%;
  background-position: 0 0;
  color: #03101f;
  box-shadow: 0 14px 34px rgba(63, 145, 255, 0.28);
}

.btn-primary:hover {
  background-position: 100% 0;
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(63, 145, 255, 0.38);
}

.btn-ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  border-color: rgba(126, 224, 255, 0.45);
  background: rgba(126, 224, 255, 0.06);
  transform: translateY(-2px);
}

.btn-submit {
  width: 100%;
  margin-top: 6px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  padding: 6px 11px;
  border: 1px solid rgba(78, 195, 255, 0.22);
  border-radius: 999px;
  background: rgba(78, 195, 255, 0.08);
  color: var(--brand-300);
  font-family: var(--font-mono);
  font-size: 9.5px;
  line-height: 1.2;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.live-dot {
  display: inline-block;
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-300);
  box-shadow: 0 0 10px rgba(126, 224, 255, 0.9);
  animation: pulse 2.2s ease-out infinite;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 28px;
}

.pill {
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted-strong);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  color: var(--brand-300);
  font-size: 0.9rem;
  font-weight: 600;
}

.link-arrow span {
  transition: transform 0.3s var(--ease);
}

.link-arrow:hover span {
  transform: translateX(4px);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 72px) 0 72px;
  overflow: hidden;
}

#starfield {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-aurora {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  animation: drift 18s ease-in-out infinite alternate;
}

.aurora-1 {
  top: -180px;
  right: -60px;
  width: 540px;
  height: 540px;
  background: radial-gradient(circle, rgba(46, 130, 255, 0.5), transparent 68%);
}

.aurora-2 {
  bottom: -160px;
  left: -100px;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(45, 200, 255, 0.3), transparent 68%);
  animation-delay: -6s;
}

.aurora-3 {
  top: 32%;
  left: 42%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(120, 90, 255, 0.24), transparent 68%);
  animation-delay: -12s;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  align-items: center;
  gap: 64px;
}

.hero-copy {
  max-width: 640px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid rgba(126, 224, 255, 0.2);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(78, 195, 255, 0.1), rgba(78, 195, 255, 0.02));
  color: var(--brand-100);
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.2;
  letter-spacing: 0.16em;
}

.hero h1 {
  margin: 28px 0 24px;
  font-family: var(--font-display);
  font-size: clamp(3.1rem, 6.6vw, 5.6rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.hero-sub {
  max-width: 36em;
  color: var(--muted-strong);
  font-size: clamp(0.98rem, 1.25vw, 1.12rem);
  line-height: 1.9;
}

.hero-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 26px 0 32px;
  color: var(--muted-strong);
  font-size: 0.86rem;
}

.hero-status strong {
  padding-left: 2px;
  color: var(--brand-300);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 570px;
  margin: 52px 0 0;
  padding: 26px 0 0;
  border-top: 1px solid var(--line);
}

.hero-meta li {
  min-width: 0;
}

.hero-meta strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.hero-meta span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.55;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 570px;
  perspective: 1100px;
}

.visual-glow {
  position: absolute;
  width: 76%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.32), rgba(34, 211, 238, 0.1) 46%, transparent 70%);
  filter: blur(50px);
}

.orb-stage {
  position: relative;
  width: min(430px, 88%);
  aspect-ratio: 1;
  transform-style: preserve-3d;
  transition: transform 0.45s var(--ease);
}

.orb {
  position: absolute;
  inset: 12%;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(151, 181, 231, 0.22);
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 22%, rgba(126, 224, 255, 0.26), transparent 42%),
    radial-gradient(circle at 76% 78%, rgba(75, 120, 255, 0.3), transparent 56%),
    linear-gradient(155deg, rgba(18, 33, 62, 0.96) 0%, rgba(7, 12, 24, 0.98) 60%, rgba(4, 7, 14, 1) 100%);
  box-shadow:
    0 50px 120px rgba(0, 15, 55, 0.6),
    0 0 80px rgba(56, 130, 255, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -40px 80px rgba(0, 8, 24, 0.7);
}

.orb::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 210deg, transparent 0deg, transparent 250deg, rgba(126, 224, 255, 0.16) 300deg, transparent 340deg);
  animation: spin 24s linear infinite;
}

.orb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, transparent 38%, rgba(2, 5, 12, 0.58) 100%);
  pointer-events: none;
}

.orb-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(126, 224, 255, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 224, 255, 0.11) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.55;
  -webkit-mask-image: radial-gradient(circle, #000 24%, transparent 70%);
  mask-image: radial-gradient(circle, #000 24%, transparent 70%);
}

.orb img {
  position: relative;
  z-index: 2;
  width: 54%;
  height: auto;
  filter:
    drop-shadow(0 18px 30px rgba(0, 8, 30, 0.55))
    drop-shadow(0 0 28px rgba(78, 195, 255, 0.26));
}

.orb-ring {
  position: absolute;
  inset: -7%;
  border: 1px dashed rgba(126, 224, 255, 0.22);
  border-radius: 50%;
  pointer-events: none;
  animation: spin 42s linear infinite;
}

.orb-ring::before {
  content: "";
  position: absolute;
  top: 8%;
  left: 18%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-300);
  box-shadow: 0 0 14px 2px rgba(126, 224, 255, 0.65);
}

.orb-ring-2 {
  inset: -20%;
  border-style: solid;
  border-color: rgba(151, 181, 231, 0.08);
  animation-direction: reverse;
  animation-duration: 64s;
}

.orb-ring-2::before {
  top: auto;
  bottom: 4%;
  left: 50%;
  width: 4px;
  height: 4px;
  opacity: 0.7;
}

.chip {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid rgba(151, 181, 231, 0.22);
  border-radius: 999px;
  background: rgba(8, 14, 27, 0.72);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  color: var(--brand-100);
  font-family: var(--font-mono);
  font-size: 9.5px;
  line-height: 1.2;
  letter-spacing: 0.18em;
  animation: float 6s ease-in-out infinite;
}

.chip em {
  color: var(--muted);
  font-style: normal;
  font-size: 9.5px;
  letter-spacing: 0.08em;
}

.chip-a {
  top: 9%;
  left: -3%;
}

.chip-b {
  top: 42%;
  right: -5%;
  animation-delay: -2s;
}

.chip-c {
  bottom: 8%;
  left: 4%;
  animation-delay: -4s;
}

/* ---------- marquee ---------- */

.marquee {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(6, 10, 20, 0.5);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-right: 32px;
}

.marquee span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.32em;
  white-space: nowrap;
}

.marquee i {
  color: var(--brand-400);
  font-size: 9px;
  font-style: normal;
  opacity: 0.72;
}

/* ---------- section shells ---------- */

.section {
  position: relative;
  z-index: 1;
  padding: 124px 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  gap: 48px;
  margin-bottom: 64px;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.section-no {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--brand-300);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
}

.section-kicker {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  font-weight: 750;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.section-desc {
  justify-self: end;
  max-width: 40ch;
  padding-left: 28px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.85;
}

/* ---------- about ---------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  align-items: center;
  gap: 64px;
}

.profile-card {
  position: relative;
  overflow: hidden;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 18% 0%, rgba(126, 224, 255, 0.1), transparent 42%),
    linear-gradient(160deg, rgba(20, 34, 62, 0.78), rgba(8, 13, 24, 0.9));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.profile-watermark {
  position: absolute;
  right: -46px;
  bottom: -54px;
  width: 220px;
  height: 220px;
  opacity: 0.06;
  transform: rotate(-12deg);
  pointer-events: none;
}

.profile-photo {
  width: 116px;
  height: 116px;
  margin-bottom: 26px;
  padding: 3px;
  border-radius: 50%;
  background: conic-gradient(from 140deg, var(--brand-300), rgba(126, 224, 255, 0.1), var(--brand-500), var(--brand-300));
  box-shadow: 0 0 40px rgba(78, 195, 255, 0.16);
}

.profile-photo img {
  width: 100%;
  height: 100%;
  border: 4px solid #080d18;
  border-radius: 50%;
  background: #080d18;
  object-fit: cover;
}

.profile-card .tag {
  margin-bottom: 14px;
}

.profile-card h3 {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 750;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.profile-role {
  margin-top: 6px;
  color: var(--brand-300);
  font-size: 0.92rem;
  letter-spacing: 0.08em;
}

.profile-detail {
  max-width: 240px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.7;
}

.profile-foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
}

.about-copy h3 {
  margin-bottom: 24px;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.1vw, 2.7rem);
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.about-copy p {
  max-width: 55ch;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.95;
}

/* ---------- ongoing project ---------- */

.now {
  padding-top: 24px;
}

.project-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: 48px;
  overflow: hidden;
  padding: clamp(32px, 5vw, 64px);
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    radial-gradient(circle at 82% 18%, rgba(54, 126, 255, 0.2), transparent 44%),
    radial-gradient(circle at 12% 100%, rgba(40, 190, 255, 0.08), transparent 42%),
    linear-gradient(145deg, rgba(18, 32, 62, 0.84), rgba(7, 12, 24, 0.94));
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.38);
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(126, 224, 255, 0.48), rgba(126, 224, 255, 0.02) 36%, rgba(75, 145, 255, 0.36));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.project-card::after {
  content: "";
  position: absolute;
  top: -190px;
  right: -110px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(65, 130, 255, 0.22), transparent 66%);
  filter: blur(26px);
  pointer-events: none;
}

.project-copy,
.project-visual {
  position: relative;
  z-index: 1;
}

.project-copy h2 {
  margin: 18px 0 20px;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.2vw, 3.5rem);
  font-weight: 780;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.project-copy > p {
  max-width: 44ch;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.9;
}

.project-note {
  margin: 8px 0 30px;
  color: var(--muted) !important;
  font-family: var(--font-mono);
  font-size: 0.72rem !important;
  letter-spacing: 0.08em;
  opacity: 0.8;
}

.project-visual {
  display: grid;
  place-items: center;
  min-height: 440px;
  perspective: 1200px;
}

.poster-stack {
  position: relative;
  width: min(300px, 72%);
  aspect-ratio: 4 / 5;
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease);
}

.project-card:hover .poster-stack {
  transform: translateY(-6px) rotateX(2deg) rotateY(-4deg);
}

.poster {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid rgba(151, 181, 231, 0.22);
  border-radius: 22px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.42);
}

.poster-back,
.poster-mid {
  background: linear-gradient(160deg, rgba(20, 36, 68, 0.9), rgba(7, 12, 24, 0.94));
  border-color: rgba(151, 181, 231, 0.12);
}

.poster-back {
  opacity: 0.5;
  transform: translate(-24px, 22px) rotate(-7deg);
}

.poster-mid {
  opacity: 0.72;
  transform: translate(20px, 8px) rotate(5deg);
}

.poster-front {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  background:
    radial-gradient(circle at 72% 18%, rgba(92, 196, 255, 0.28), transparent 44%),
    linear-gradient(155deg, #14274e 0%, #0a1328 46%, #060a13 100%);
}

.poster-front::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.6;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 8%, transparent 72%);
  mask-image: radial-gradient(circle at 50% 50%, #000 8%, transparent 72%);
}

.poster-front::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 72%;
  aspect-ratio: 1;
  border: 1px solid rgba(126, 224, 255, 0.13);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.poster-top,
.poster-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.16em;
}

.poster-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand-300);
}

.poster-live .live-dot {
  width: 4px;
  height: 4px;
}

.poster-mark {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
}

.poster-mark::before,
.poster-mark::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(126, 224, 255, 0.16);
  border-radius: 50%;
}

.poster-mark::before {
  width: min(150px, 68%);
  aspect-ratio: 1;
}

.poster-mark::after {
  width: min(190px, 86%);
  aspect-ratio: 1;
  border-style: dashed;
  border-color: rgba(126, 224, 255, 0.1);
}

.poster-mark img {
  width: 94px;
  height: auto;
  filter: drop-shadow(0 14px 26px rgba(0, 8, 30, 0.6)) drop-shadow(0 0 22px rgba(78, 195, 255, 0.24));
}

.poster-bottom strong {
  color: var(--text);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

/* ---------- ideas ---------- */

.ideas::before {
  content: "";
  position: absolute;
  inset: 12% 0;
  z-index: -1;
  background: radial-gradient(ellipse at 50% 50%, rgba(45, 110, 220, 0.08), transparent 68%);
  pointer-events: none;
}

.quote-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.quote-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 252px;
  overflow: hidden;
  padding: 32px 32px 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(165deg, rgba(15, 25, 45, 0.72), rgba(7, 12, 22, 0.82));
  transition: border-color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}

.quote-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 0%, rgba(126, 224, 255, 0.09), transparent 45%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.quote-card:hover {
  border-color: rgba(126, 224, 255, 0.32);
  box-shadow: 0 24px 60px rgba(0, 10, 30, 0.35);
}

.quote-card:hover::before {
  opacity: 1;
}

.quote-card > * {
  position: relative;
  z-index: 1;
}

.quote-index {
  position: absolute;
  top: 26px;
  right: 28px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  opacity: 0.55;
}

.quote-mark {
  height: 42px;
  margin-bottom: 10px;
  color: var(--brand-300);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 62px;
  line-height: 0.9;
  opacity: 0.32;
}

.quote-text {
  color: var(--muted-strong);
  font-size: clamp(0.98rem, 1.35vw, 1.08rem);
  line-height: 1.9;
}

.quote-author {
  margin-top: auto;
  padding-top: 24px;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
}

.quote-author::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 1px;
  margin-right: 10px;
  vertical-align: middle;
  background: var(--brand-400);
}

/* ---------- contact ---------- */

.contact {
  padding-top: 110px;
  padding-bottom: 140px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  align-items: start;
  gap: 64px;
}

.contact-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  font-weight: 780;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.contact-copy > p {
  max-width: 36ch;
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.9;
}

.contact-list {
  display: grid;
  gap: 0;
  margin-top: 40px;
}

.contact-list li {
  border-top: 1px solid var(--line);
}

.contact-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.contact-list a {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 17px 0;
  transition: padding 0.3s var(--ease);
}

.contact-list a:hover {
  padding-left: 6px;
}

.contact-label {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
}

.contact-value {
  overflow-wrap: anywhere;
  color: var(--muted-strong);
  font-size: 0.9rem;
  transition: color 0.25s ease;
}

.contact-list a:hover .contact-value {
  color: var(--text);
}

.contact-arrow {
  color: var(--muted);
  font-size: 1rem;
  transition: transform 0.3s var(--ease), color 0.25s ease;
}

.contact-list a:hover .contact-arrow {
  color: var(--brand-300);
  transform: translate(3px, -3px);
}

.feedback-card {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(18, 30, 54, 0.8), rgba(8, 13, 24, 0.92));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
}

.feedback-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(126, 224, 255, 0.5), transparent);
}

.feedback-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

.feedback-head h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  margin-bottom: 18px;
}

.field-row .field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted-strong);
  font-size: 0.8rem;
}

.field input,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  background: rgba(5, 10, 20, 0.58);
  color: var(--text);
  font-size: 0.9rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(148, 162, 186, 0.48);
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(126, 224, 255, 0.58);
  background: rgba(8, 14, 28, 0.82);
  box-shadow: 0 0 0 3px rgba(78, 195, 255, 0.12);
}

.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px #0a1324 inset;
  caret-color: var(--text);
}

.field textarea {
  min-height: 138px;
  resize: vertical;
}

.field.is-invalid input,
.field.is-invalid textarea {
  border-color: rgba(255, 124, 124, 0.62);
  box-shadow: 0 0 0 3px rgba(255, 100, 100, 0.08);
}

.field-error {
  display: none;
  margin-top: 6px;
  color: #ff9d9d;
  font-size: 0.74rem;
}

.field.is-invalid .field-error {
  display: block;
}

.form-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.75;
}

.form-note a {
  color: var(--brand-300);
  border-bottom: 1px solid rgba(126, 224, 255, 0.28);
  white-space: nowrap;
}

/* ---------- footer ---------- */

.site-footer {
  position: relative;
  z-index: 1;
  padding: 64px 0 28px;
  border-top: 1px solid var(--line);
  background: rgba(4, 7, 13, 0.6);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 0.8fr);
  gap: 48px;
}

.footer-brand p {
  max-width: 30ch;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.8;
}

.footer-col h4 {
  margin-bottom: 18px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.footer-col ul {
  display: grid;
  gap: 10px;
}

.footer-col a {
  color: var(--muted-strong);
  font-size: 0.86rem;
  transition: color 0.25s ease;
}

.footer-col a:hover {
  color: var(--brand-300);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.76rem;
}

.back-top {
  color: var(--muted-strong);
  transition: color 0.25s ease;
}

.back-top span {
  display: inline-block;
  margin-left: 4px;
  transition: transform 0.3s var(--ease);
}

.back-top:hover {
  color: var(--brand-300);
}

.back-top:hover span {
  transform: translateY(-3px);
}

/* ---------- toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 90;
  max-width: min(540px, calc(100% - 32px));
  padding: 14px 18px;
  border: 1px solid rgba(126, 224, 255, 0.3);
  border-radius: 14px;
  background: rgba(10, 17, 32, 0.95);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  color: var(--text);
  font-size: 0.82rem;
  line-height: 1.6;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 18px);
  transition: opacity 0.3s ease, transform 0.3s var(--ease), visibility 0.3s ease;
}

.toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

/* ---------- reveal on scroll ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.8s var(--ease) var(--reveal-delay, 0s),
    transform 0.8s var(--ease) var(--reveal-delay, 0s),
    border-color 0.35s ease,
    background 0.35s ease,
    box-shadow 0.35s ease;
}

.js .quote-grid .reveal:nth-child(2) {
  --reveal-delay: 0.08s;
}

.js .quote-grid .reveal:nth-child(3) {
  --reveal-delay: 0.16s;
}

.js .quote-grid .reveal:nth-child(4) {
  --reveal-delay: 0.24s;
}

/* ---------- keyframes ---------- */

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(126, 224, 255, 0.45);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(126, 224, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(126, 224, 255, 0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

@keyframes drift {
  to {
    transform: translate3d(38px, 28px, 0) scale(1.08);
  }
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .hero-grid {
    gap: 40px;
  }

  .hero h1 {
    font-size: clamp(3rem, 6.4vw, 5rem);
  }

  .hero-visual {
    min-height: 500px;
  }
}

@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: fixed;
    top: calc(var(--nav-h) + 10px);
    left: 16px;
    right: 16px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px;
    border: 1px solid var(--line-strong);
    border-radius: 20px;
    background: rgba(8, 13, 24, 0.96);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.3s var(--ease), visibility 0.25s ease;
  }

  .nav-links.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a {
    padding: 13px 16px;
    border-radius: 12px;
    font-size: 0.98rem;
  }

  .nav-links a:not(.nav-cta)::after {
    display: none;
  }

  .nav-links a.is-active {
    background: rgba(78, 195, 255, 0.1);
    color: var(--brand-100);
  }

  .nav-links .nav-cta {
    justify-content: center;
    margin: 8px 0 0;
  }

  .section-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    margin-bottom: 48px;
  }

  .section-desc {
    justify-self: start;
    max-width: 52ch;
    padding-left: 16px;
    border-left: 2px solid var(--line);
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
  }

  .profile-card {
    max-width: 480px;
  }

  .project-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .project-visual {
    min-height: 420px;
  }

  .project-copy > p {
    max-width: 52ch;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .hero {
    min-height: auto;
    padding: calc(var(--nav-h) + 56px) 0 68px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .hero-copy {
    max-width: 680px;
  }

  .hero-visual {
    min-height: 500px;
  }

  .hero h1 {
    font-size: clamp(3rem, 9vw, 4.8rem);
  }

  .section {
    padding: 92px 0;
  }

  .now {
    padding-top: 12px;
  }

  .contact {
    padding-bottom: 104px;
  }
}

@media (max-width: 640px) {
  :root {
    --nav-h: 72px;
  }

  .container {
    width: calc(100% - 32px);
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand-mark img {
    width: 29px;
    height: 29px;
  }

  .brand-text strong {
    font-size: 0.84rem;
  }

  .hero {
    padding: calc(var(--nav-h) + 48px) 0 56px;
  }

  .hero h1 {
    margin: 24px 0 20px;
    font-size: clamp(2.7rem, 13vw, 4rem);
    letter-spacing: -0.045em;
  }

  .hero-sub {
    font-size: 0.96rem;
    line-height: 1.85;
  }

  .hero-status {
    margin: 22px 0 26px;
    font-size: 0.8rem;
  }

  .hero-meta {
    gap: 14px;
    margin-top: 36px;
    padding-top: 22px;
  }

  .hero-meta strong {
    font-size: 1.16rem;
  }

  .hero-meta span {
    font-size: 0.66rem;
  }

  .hero-visual {
    min-height: 390px;
  }

  .orb-stage {
    width: min(320px, 92%);
  }

  .chip {
    padding: 7px 10px;
    font-size: 8.5px;
  }

  .chip em {
    font-size: 8.5px;
  }

  .chip-a {
    left: -2%;
  }

  .chip-b {
    right: -2%;
  }

  .aurora {
    filter: blur(54px);
  }

  .marquee {
    padding: 16px 0;
  }

  .marquee-group {
    gap: 24px;
    padding-right: 24px;
  }

  .marquee span {
    font-size: 9.5px;
    letter-spacing: 0.26em;
  }

  .section {
    padding: 80px 0;
  }

  .section-head {
    margin-bottom: 38px;
  }

  .section-head h2 {
    font-size: clamp(1.9rem, 8vw, 2.5rem);
  }

  .about-grid {
    gap: 34px;
  }

  .profile-card {
    padding: 28px;
  }

  .profile-photo {
    width: 100px;
    height: 100px;
    margin-bottom: 22px;
  }

  .profile-card h3 {
    font-size: 2rem;
  }

  .about-copy h3 {
    font-size: clamp(1.75rem, 7.5vw, 2.2rem);
  }

  .about-copy p {
    font-size: 0.9rem;
  }

  .project-card {
    padding: 26px 22px 30px;
    border-radius: 24px;
  }

  .project-copy h2 {
    font-size: clamp(1.9rem, 9vw, 2.6rem);
  }

  .project-copy > p {
    font-size: 0.89rem;
  }

  .project-visual {
    min-height: 360px;
  }

  .poster-stack {
    width: min(240px, 70%);
  }

  .poster-front {
    padding: 18px;
  }

  .poster-mark img {
    width: 76px;
  }

  .poster-bottom strong {
    font-size: 10.5px;
  }

  .quote-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .quote-card {
    min-height: 0;
    padding: 26px 24px 24px;
  }

  .quote-mark {
    height: 36px;
    font-size: 54px;
  }

  .quote-text {
    font-size: 0.96rem;
  }

  .contact {
    padding-top: 80px;
    padding-bottom: 88px;
  }

  .contact-grid {
    gap: 34px;
  }

  .contact-copy h2 {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  .contact-list {
    margin-top: 30px;
  }

  .contact-list a {
    grid-template-columns: 68px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 15px 0;
  }

  .contact-value {
    font-size: 0.84rem;
  }

  .feedback-card {
    padding: 24px 20px;
  }

  .field-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .site-footer {
    padding-top: 48px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-top: 34px;
  }
}

@media (max-width: 520px) {
  .brand-text small {
    display: none;
  }

  .brand-text strong {
    font-size: 0.8rem;
    letter-spacing: 0.14em;
  }

  .eyebrow {
    gap: 8px;
    padding: 7px 11px;
    font-size: 9px;
    letter-spacing: 0.12em;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .btn {
    min-height: 50px;
    padding: 0 16px;
    font-size: 0.85rem;
  }

  .hero-meta {
    gap: 10px;
  }

  .hero-meta strong {
    font-size: 1.02rem;
  }

  .hero-meta span {
    font-size: 0.62rem;
  }

  .chip-c {
    display: none;
  }

  .profile-foot {
    flex-wrap: wrap;
    gap: 8px;
  }

  .contact-list a {
    grid-template-columns: 58px minmax(0, 1fr) auto;
  }

  .contact-label {
    font-size: 8px;
  }

  .feedback-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}

/* ---------- no-JS fallback ---------- */

.no-js .reveal {
  opacity: 1;
  transform: none;
}

@media (max-width: 960px) {
  .no-js .nav-toggle {
    display: none;
  }

  .no-js .nav {
    height: auto;
    min-height: 72px;
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .no-js .nav-links {
    position: static;
    left: auto;
    right: auto;
    top: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .no-js .nav-links a {
    padding: 8px 10px;
    font-size: 0.85rem;
  }

  .no-js .nav-links .nav-cta {
    margin: 0 0 0 6px;
  }

  .no-js .nav-backdrop {
    display: none;
  }
}

/* ---------- motion & print preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .marquee-track {
    animation: none;
    transform: none;
  }
}

@media print {
  .site-header,
  .scroll-progress,
  .site-bg,
  #starfield,
  .hero-aurora,
  .marquee,
  .nav-backdrop,
  .hero-visual,
  .toast {
    display: none !important;
  }

  body {
    background: #fff;
    color: #111;
  }

  .section {
    padding: 28px 0;
    break-inside: avoid;
  }

  .project-card,
  .profile-card,
  .quote-card,
  .feedback-card {
    background: #fff;
    color: #111;
    box-shadow: none;
  }

  .grad-text {
    background: none;
    color: #111 !important;
    -webkit-text-fill-color: #111;
  }
}
