:root {
  --bg: #050812;
  --bg-deep: #02040a;
  --text: #ecf7ff;
  --muted: rgba(221, 240, 255, 0.68);
  --faint: rgba(221, 240, 255, 0.42);
  --cyan: #48e8ff;
  --blue: #6b8cff;
  --magenta: #ff4fd8;
  --green: #67ffbd;
  --glass: rgba(8, 17, 34, 0.46);
  --glass-strong: rgba(13, 27, 54, 0.62);
  --border: rgba(126, 220, 255, 0.26);
  --border-hot: rgba(72, 232, 255, 0.62);
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.42);
  --radius: 18px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 0%, rgba(72, 232, 255, 0.16), transparent 32rem),
    linear-gradient(180deg, var(--bg), var(--bg-deep));
  color: var(--text);
  font-family: "Noto Sans SC", system-ui, sans-serif;
  overflow-x: hidden;
}

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

/* ── Intro overlay ───────────────────────────────────── */

body.intro-active {
  overflow: hidden;
}

.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: var(--bg-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.intro-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

.intro-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  animation: introScale 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.intro-mark {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border: 2px solid var(--border-hot);
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(72, 232, 255, 0.22), rgba(255, 79, 216, 0.12));
  box-shadow: 0 0 60px rgba(72, 232, 255, 0.36), inset 0 0 30px rgba(72, 232, 255, 0.12);
  font-family: "Orbitron", system-ui, sans-serif;
  font-weight: 700;
  font-size: 2.4rem;
  color: var(--cyan);
  text-shadow: 0 0 20px var(--cyan);
}

.intro-label {
  font-family: "Orbitron", system-ui, sans-serif;
  font-size: 0.84rem;
  letter-spacing: 0.24em;
  color: var(--muted);
  margin: 0;
  opacity: 0;
  animation: introFadeUp 0.7s 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.intro-bar {
  width: 120px;
  height: 2px;
  background: rgba(72, 232, 255, 0.15);
  border-radius: 2px;
  overflow: hidden;
  opacity: 0;
  animation: introFadeUp 0.5s 0.7s ease forwards;
}

.intro-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  box-shadow: 0 0 10px var(--cyan);
  animation: introBarFill 1s 0.75s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes introScale {
  from {
    transform: scale(0.22);
    opacity: 0;
  }
  65% {
    transform: scale(1.06);
    opacity: 1;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes introFadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

@keyframes introBarFill {
  to { width: 100%; }
}

/* ── Hero deco & typed ───────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
}

.hero-copy,
.hero-panel {
  position: relative;
  z-index: 1;
}

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

.deco-ring {
  position: absolute;
  border-radius: 50%;
}

.deco-ring-1 {
  width: 620px;
  height: 620px;
  top: -200px;
  left: -110px;
  border: 1px solid rgba(72, 232, 255, 0.08);
  animation: driftRing 55s linear infinite;
}

.deco-ring-2 {
  width: 400px;
  height: 400px;
  top: 80px;
  left: -150px;
  border: 1px solid rgba(255, 79, 216, 0.07);
  animation: driftRing 75s linear infinite reverse;
}

.deco-frag {
  position: absolute;
  left: var(--x);
  top: var(--y);
  color: rgba(72, 232, 255, 0.22);
  font-family: "Orbitron", monospace;
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  white-space: nowrap;
  animation: fragFloat 7s var(--del) ease-in-out infinite;
}

.hero-typed {
  margin: 14px 0 0;
  min-height: 1.6em;
  color: var(--green);
  font-family: "Orbitron", system-ui, sans-serif;
  font-size: clamp(0.8rem, 1.3vw, 0.96rem);
  letter-spacing: 0.18em;
}

.hero-typed::after {
  content: "_";
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

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

@keyframes fragFloat {
  0%, 100% { transform: translateY(0);    opacity: 0.55; }
  50%       { transform: translateY(-14px); opacity: 1; }
}

/* ── Data ticker ─────────────────────────────────────── */

.data-ticker {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 11px 0;
  border-top: 1px solid rgba(72, 232, 255, 0.1);
  border-bottom: 1px solid rgba(72, 232, 255, 0.1);
  background: rgba(72, 232, 255, 0.025);
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 26px;
  width: max-content;
  font-family: "Orbitron", system-ui, sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: rgba(72, 232, 255, 0.58);
  white-space: nowrap;
  animation: tickerScroll 30s linear infinite;
}

.t-sep {
  color: rgba(72, 232, 255, 0.28) !important;
  font-size: 0.6rem;
}

@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Grain overlay ────────────────────────────────────── */

.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

/* ── Background scene ─────────────────────────────────── */

#starfield,
.scene-grid,
.scene-scan,
.scene-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

#starfield {
  z-index: -5;
  width: 100%;
  height: 100%;
}

.scene-grid {
  z-index: -4;
  right: auto;
  width: 100vw;
  background-image:
    linear-gradient(rgba(72, 232, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(72, 232, 255, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 76%, transparent);
  transform: perspective(700px) rotateX(58deg) translateY(10vh) scale(1.45);
  transform-origin: center bottom;
  animation: gridDrift 18s linear infinite;
}

.scene-scan {
  z-index: -3;
  background: linear-gradient(
    to bottom,
    transparent 0,
    rgba(72, 232, 255, 0.05) 48%,
    rgba(72, 232, 255, 0.16) 50%,
    rgba(72, 232, 255, 0.05) 52%,
    transparent 100%
  );
  height: 42vh;
  animation: scanMove 7.5s ease-in-out infinite;
}

.scene-glow {
  z-index: -2;
  filter: blur(30px);
  opacity: 0.68;
}

.scene-glow-a {
  background: radial-gradient(circle at 18% 24%, rgba(255, 79, 216, 0.24), transparent 28rem);
}

.scene-glow-b {
  background: radial-gradient(circle at 82% 18%, rgba(72, 232, 255, 0.22), transparent 30rem);
}

/* ── Cursor glow ──────────────────────────────────────── */

.cursor-glow {
  position: fixed;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(72, 232, 255, 0.055), transparent 65%);
  pointer-events: none;
  z-index: 0;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  transition: top 0.08s linear, left 0.08s linear;
  will-change: top, left;
}

/* ── Header ───────────────────────────────────────────── */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 72px;
  padding: 0 clamp(18px, 4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(5, 8, 18, 0.82), rgba(5, 8, 18, 0));
  backdrop-filter: blur(14px);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  background: rgba(5, 8, 18, 0.94);
  box-shadow: 0 1px 0 rgba(72, 232, 255, 0.12), 0 4px 24px rgba(0, 0, 0, 0.4);
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-family: "Orbitron", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-hot);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(72, 232, 255, 0.22), rgba(255, 79, 216, 0.12));
  box-shadow: 0 0 30px rgba(72, 232, 255, 0.2), inset 0 0 20px rgba(72, 232, 255, 0.12);
}

.brand-text {
  font-size: 0.86rem;
}

.nav-links {
  gap: 24px;
  color: var(--muted);
  font-size: 0.94rem;
}

.nav-links a {
  position: relative;
  padding: 6px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--cyan);
  box-shadow: 0 0 16px var(--cyan);
  transition: right 0.24s ease;
}

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

.nav-links a:hover::after {
  right: 0;
}

/* ── Main / Hero ──────────────────────────────────────── */

main {
  position: relative;
  z-index: 1;
}

.hero {
  min-height: 100svh;
  padding: 118px clamp(18px, 5vw, 80px) 76px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.72fr);
  gap: clamp(28px, 5vw, 78px);
  align-items: center;
}

.signal,
.section-heading p,
.card-kicker {
  margin: 0;
  color: var(--green);
  font-family: "Orbitron", system-ui, sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.2em;
}

.hero h1 {
  margin: 14px 0 22px;
  font-family: "Orbitron", system-ui, sans-serif;
  font-size: clamp(4.2rem, 10vw, 9rem);
  line-height: 0.88;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  text-shadow: 0 0 34px rgba(72, 232, 255, 0.2);
  animation: glitchTitle 9s ease-in-out infinite;
}

.hero-text {
  width: min(620px, 100%);
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.22rem);
  line-height: 1.9;
  overflow-wrap: anywhere;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

/* ── Buttons ──────────────────────────────────────────── */

.button {
  min-height: 46px;
  padding: 12px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.button:hover {
  transform: translateY(-4px);
}

.button.primary {
  color: #021018;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  box-shadow: 0 14px 40px rgba(72, 232, 255, 0.22);
}

.button.primary:hover {
  box-shadow: 0 18px 48px rgba(72, 232, 255, 0.38);
}

.button.ghost {
  border: 1px solid var(--border);
  background: rgba(8, 17, 34, 0.35);
  color: var(--text);
}

/* ── Glass panels & cards ─────────────────────────────── */

.glass-panel,
.glass-card {
  border: 1px solid var(--border);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02)),
    var(--glass);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px) saturate(1.3);
}

/* ── Hero panel ───────────────────────────────────────── */

.hero-panel {
  min-height: 420px;
  padding: 26px;
  border-radius: 28px;
  display: grid;
  gap: 22px;
  align-content: space-between;
}

.panel-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--faint);
  font-size: 0.82rem;
}

.panel-line span,
.panel-line strong {
  min-width: 0;
}

.panel-line strong {
  color: var(--text);
  font-family: "Orbitron", system-ui, sans-serif;
  font-size: 0.82rem;
  text-align: right;
  overflow-wrap: anywhere;
}

.status-online {
  color: var(--green) !important;
  animation: statusPulse 3s ease-in-out infinite;
}

/* ── Orbital ring ─────────────────────────────────────── */

.orbital-ring {
  position: relative;
  width: min(100%, 320px);
  justify-self: center;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(72, 232, 255, 0.28);
  overflow: visible;
  background: radial-gradient(circle, rgba(72, 232, 255, 0.18), transparent 34%);
}

.orbital-ring::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: conic-gradient(from 90deg, transparent, rgba(72, 232, 255, 0.54), transparent 38%, rgba(255, 79, 216, 0.4), transparent 72%);
  mask: radial-gradient(circle, transparent 42%, #000 43%);
  animation: rotateRing 12s linear infinite;
}

.orbital-ring span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 22px var(--cyan), 0 0 8px var(--cyan);
  animation: orbitDot 6s linear infinite;
}

/* ── Sections ─────────────────────────────────────────── */

.section {
  padding: 90px clamp(18px, 5vw, 80px);
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 8px 0 0;
  font-family: "Orbitron", system-ui, sans-serif;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1;
}

.section-heading h2 em {
  font-style: normal;
  color: var(--cyan);
  text-shadow: 0 0 28px rgba(72, 232, 255, 0.4);
}

/* ── Card grid ────────────────────────────────────────── */

.card-grid {
  display: grid;
  gap: 18px;
}

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

/* ── Glass card base ──────────────────────────────────── */

.glass-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  transition: transform 0.28s ease, border-color 0.28s ease, background 0.28s ease, box-shadow 0.28s ease;
}

.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  transform: translateX(-120%);
  transition: transform 0.7s ease;
}

.glass-card:hover {
  border-color: var(--border-hot);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03)),
    var(--glass-strong);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0 28px rgba(72, 232, 255, 0.14);
}

.glass-card:hover::before {
  transform: translateX(120%);
}

/* ── Project cards ────────────────────────────────────── */

.project-card {
  min-height: 280px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.project-card strong {
  margin-top: 24px;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
}

.project-card p {
  color: var(--muted);
  line-height: 1.8;
}

.card-link {
  margin-top: 14px;
  color: var(--cyan);
  font-family: "Orbitron", system-ui, sans-serif;
  font-size: 0.76rem;
  transition: letter-spacing 0.2s ease;
}

.glass-card:hover .card-link {
  letter-spacing: 0.06em;
}

/* ── Friends grid ─────────────────────────────────────── */

.friends-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.friend-card {
  min-height: 176px;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.friend-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(72, 232, 255, 0.08);
  display: grid;
  place-items: center;
  color: var(--cyan);
  font-family: "Orbitron", system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  overflow: hidden;
  flex-shrink: 0;
}

.friend-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.friend-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.friend-desc {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.friend-card.friend-placeholder {
  border-style: dashed;
  border-color: rgba(72, 232, 255, 0.18);
  background: rgba(8, 17, 34, 0.28);
  opacity: 0.46;
  pointer-events: none;
  box-shadow: none;
}

.friend-card.friend-placeholder::before {
  display: none;
}

.friend-plus {
  font-size: 1.8rem;
  color: var(--cyan);
  font-family: "Orbitron", system-ui, sans-serif;
  line-height: 1;
  opacity: 0.7;
}

/* ── Contact list (row layout) ────────────────────────── */

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 680px;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 22px;
  border-radius: var(--radius);
  transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease, box-shadow 0.24s ease;
}

.contact-row:hover {
  border-color: var(--border-hot);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03)),
    var(--glass-strong);
  box-shadow: var(--shadow), 0 0 28px rgba(72, 232, 255, 0.1);
  transform: translateX(6px);
}

.contact-icon-sq {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--cyan);
  font-family: "Orbitron", system-ui, sans-serif;
  font-weight: 800;
  font-size: 0.8rem;
  background: rgba(72, 232, 255, 0.08);
  transition: background 0.24s ease, box-shadow 0.24s ease;
}

.contact-row:hover .contact-icon-sq {
  background: rgba(72, 232, 255, 0.16);
  box-shadow: 0 0 16px rgba(72, 232, 255, 0.18);
}

.contact-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.contact-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.contact-value {
  color: var(--muted);
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}

.contact-arrow {
  flex-shrink: 0;
  color: var(--cyan);
  font-family: "Orbitron", system-ui, sans-serif;
  font-size: 0.9rem;
  transition: transform 0.2s ease;
}

.contact-row:hover .contact-arrow {
  transform: translateX(4px);
}

/* ── Footer ───────────────────────────────────────────── */

.site-footer {
  position: relative;
  z-index: 1;
  min-height: 68px;
  padding: 20px clamp(18px, 5vw, 80px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--faint);
  border-top: 1px solid rgba(126, 220, 255, 0.14);
  background: rgba(2, 4, 10, 0.52);
}

.site-footer a {
  color: var(--cyan);
}

/* ── Scroll-reveal ────────────────────────────────────── */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ── Animations ───────────────────────────────────────── */

@keyframes gridDrift {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 0 72px, 72px 0; }
}

@keyframes scanMove {
  0%, 100% { transform: translateY(-60vh); opacity: 0; }
  20%, 75%  { opacity: 1; }
  50%       { transform: translateY(120vh); }
}

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

@keyframes orbitDot {
  0%   { transform: translate(-50%, -50%) rotate(0deg)   translateX(135px); }
  100% { transform: translate(-50%, -50%) rotate(360deg) translateX(135px); }
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

@keyframes glitchTitle {
  0%, 88%, 100% {
    clip-path: none;
    transform: none;
    text-shadow: 0 0 34px rgba(72, 232, 255, 0.2);
  }
  90% {
    clip-path: inset(22% 0 42% 0);
    transform: translateX(-5px);
    text-shadow: -4px 0 var(--magenta), 4px 0 var(--cyan);
  }
  92% {
    clip-path: inset(58% 0 8% 0);
    transform: translateX(5px);
    text-shadow: 4px 0 var(--magenta), -4px 0 var(--cyan);
  }
  94% {
    clip-path: none;
    transform: none;
  }
}

/* ── Reduced motion ───────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ── Responsive: tablet ───────────────────────────────── */

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: 320px;
  }

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

/* ── Responsive: mobile ───────────────────────────────── */

@media (max-width: 700px) {
  .site-header {
    height: auto;
    padding-top: 14px;
    padding-bottom: 14px;
    align-items: flex-start;
    gap: 12px;
  }

  .brand-text {
    display: none;
  }

  .nav-links {
    gap: 10px;
    font-size: 0.82rem;
  }

  .hero {
    padding-top: 110px;
  }

  .signal,
  .section-heading p,
  .card-kicker {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    overflow-wrap: anywhere;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 12vw, 3.55rem);
    letter-spacing: -0.035em;
  }

  .hero-text {
    max-width: 100%;
    word-break: break-word;
  }

  .projects-grid,
  .friends-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .glass-card {
    width: 100%;
  }

  .project-card {
    min-height: 210px;
  }

  .contact-list {
    max-width: 100%;
  }

  .contact-row:hover {
    transform: translateX(3px);
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .cursor-glow {
    display: none;
  }
}
