:root {
  --bg: #03050d;
  --panel: rgba(8, 10, 22, 0.78);
  --panel-strong: rgba(13, 16, 34, 0.88);
  --line: rgba(158, 170, 255, 0.16);
  --line-strong: rgba(158, 170, 255, 0.28);
  --text: #f6f7ff;
  --muted: #9ca3b8;
  --purple: #9b4dff;
  --cyan: #18e1ff;
  --blue: #2978ff;
  --orange: #ff8a2a;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  padding: clamp(12px, 1.4vw, 22px);
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(circle at 50% 10%, rgba(121, 54, 255, 0.2), transparent 34%),
    radial-gradient(circle at 85% 40%, rgba(255, 105, 30, 0.08), transparent 24%),
    radial-gradient(circle at 20% 55%, rgba(24, 225, 255, 0.08), transparent 30%),
    #02030a;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.28) 1px, transparent 1px),
    radial-gradient(circle, rgba(24, 225, 255, 0.18) 1px, transparent 1px);
  background-size: 90px 90px, 55px 55px;
  opacity: 0.16;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
}

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

.page-shell {
  position: relative;
  z-index: 1;
  max-width: 1880px;
  min-height: calc(100vh - 44px);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(7, 8, 18, 0.92), rgba(3, 5, 13, 0.96)),
    #050712;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 24px 80px rgba(0, 0, 0, 0.65);
}

/* Header */

.topbar {
  height: 78px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 40px;
  border-bottom: 1px solid var(--line);
  background: rgba(4, 6, 15, 0.82);
  backdrop-filter: blur(22px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(155, 77, 255, 0.85);
  border-radius: 10px;
  color: #cdb7ff;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  background:
    linear-gradient(135deg, rgba(155, 77, 255, 0.28), rgba(41, 120, 255, 0.1));
  box-shadow:
    0 0 22px rgba(155, 77, 255, 0.65),
    inset 0 0 18px rgba(155, 77, 255, 0.28);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 54px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(246, 247, 255, 0.68);
}

.main-nav a {
  position: relative;
}

.main-nav a:hover,
.main-nav a.active {
  color: #ad7cff;
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -19px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: var(--purple);
  box-shadow: 0 0 16px var(--purple);
}

.chaos-toggle {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-width: 206px;
  padding: 15px 25px;
  border: 1px solid rgba(24, 225, 255, 0.72);
  border-radius: 8px;
  color: var(--text);
  background: rgba(5, 8, 19, 0.75);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: inset 0 0 18px rgba(24, 225, 255, 0.08);
}

/* Hero */

.hero-panel {
  position: relative;
  display: grid;
  grid-template-columns: 0.84fr 1.16fr;
  min-height: 570px;
  padding: 52px 74px 34px;
  border-bottom: 1px solid rgba(158, 170, 255, 0.1);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(24, 225, 255, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 225, 255, 0.11) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.16;
  mask-image: linear-gradient(90deg, black, transparent 44%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding-top: 8px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--cyan);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

h1 {
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(64px, 6.7vw, 92px);
  line-height: 0.94;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.25),
    0 0 28px rgba(255, 255, 255, 0.14);
}

h1 span {
  color: var(--purple);
  text-shadow: 0 0 24px var(--purple);
}

.hero-subtitle {
  max-width: 620px;
  margin: 24px 0 34px;
  color: rgba(246, 247, 255, 0.68);
  font-size: 24px;
  line-height: 1.52;
}

.hero-actions {
  display: flex;
  gap: 18px;
  margin-bottom: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 62px;
  padding: 0 29px;
  border-radius: 9px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.btn-primary {
  background: linear-gradient(135deg, #a215ff, #207dff);
  box-shadow:
    0 0 28px rgba(155, 77, 255, 0.74),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.btn-ghost,
.btn-outline {
  border: 1px solid rgba(155, 77, 255, 0.58);
  background: rgba(8, 10, 22, 0.54);
  box-shadow: inset 0 0 16px rgba(155, 77, 255, 0.08);
}

.btn-outline {
  min-height: 52px;
  border-color: rgba(24, 225, 255, 0.58);
}

.scroll-hint {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  color: rgba(156, 163, 184, 0.58);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.mouse-dot {
  width: 30px;
  height: 44px;
  border: 1px solid rgba(155, 77, 255, 0.85);
  border-radius: 99px;
  position: relative;
}

.mouse-dot::after {
  content: "";
  position: absolute;
  top: 9px;
  left: 50%;
  width: 4px;
  height: 8px;
  border-radius: 99px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.8);
}

/* Hero visual */

.hero-visual {
  position: relative;
  min-height: 500px;
  overflow: visible;
  isolation: isolate;
  cursor: grab;
}

.hero-visual:active {
  cursor: grabbing;
}

.starfield {
  position: absolute;
  inset: 0;
  opacity: 0.92;
  background:
    radial-gradient(circle at 11% 20%, #a34dff 0 2px, transparent 3px),
    radial-gradient(circle at 30% 32%, #18e1ff 0 1px, transparent 2px),
    radial-gradient(circle at 53% 12%, #fff 0 1px, transparent 2px),
    radial-gradient(circle at 84% 18%, #ff8a2a 0 2px, transparent 3px),
    radial-gradient(circle at 70% 72%, #18e1ff 0 1px, transparent 2px),
    radial-gradient(circle at 25% 78%, #fff 0 1px, transparent 2px),
    radial-gradient(circle at 90% 76%, #a34dff 0 1px, transparent 2px);
}

.orbit {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  border: 2px dotted rgba(155, 77, 255, 0.62);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.72;
  pointer-events: none;
}

.orbit-two {
  opacity: 0.17;
}

.logo-core {
  position: absolute;
  left: 52%;
  top: 48%;
  width: 190px;
  height: 180px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border-radius: 44px;
  background:
    linear-gradient(135deg, rgba(155, 77, 255, 0.9), rgba(24, 225, 255, 0.85));
  box-shadow:
    0 0 38px rgba(155, 77, 255, 0.72),
    0 0 62px rgba(24, 225, 255, 0.28);
  pointer-events: none;
}

.logo-core::before {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 36px;
  background:
    radial-gradient(circle at 70% 28%, rgba(255, 255, 255, 0.12), transparent 24%),
    #070a18;
}

.logo-core-inner {
  position: relative;
  z-index: 1;
  width: 126px;
  height: 124px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(155, 170, 255, 0.32);
  border-radius: 30px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 82px;
  font-weight: 700;
  text-shadow: 0 0 24px rgba(255, 255, 255, 0.46);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0));
}

.float-card {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 4;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  width: 250px;
  padding: 19px;
  border: 1px solid rgba(155, 77, 255, 0.55);
  border-radius: 17px;
  background: rgba(9, 11, 27, 0.8);
  box-shadow:
    0 0 30px rgba(155, 77, 255, 0.22),
    inset 0 0 20px rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  will-change: transform;
  transform-origin: center;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    opacity 180ms ease;
}

.float-card:hover {
  background: rgba(12, 15, 34, 0.92);
  box-shadow:
    0 0 38px rgba(155, 77, 255, 0.36),
    inset 0 0 20px rgba(255, 255, 255, 0.04);
}

.float-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.float-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.42;
}

.float-icon {
  font-size: 27px;
  line-height: 1;
}

.purple {
  color: var(--purple);
  text-shadow: 0 0 18px var(--purple);
}

.cyan {
  color: var(--cyan);
  text-shadow: 0 0 18px var(--cyan);
}

.orange {
  color: var(--orange);
  text-shadow: 0 0 18px var(--orange);
}

.card-web {
  border-color: rgba(155, 77, 255, 0.58);
}

.card-photo {
  border-color: rgba(24, 225, 255, 0.52);
}

.card-builds {
  border-color: rgba(255, 138, 42, 0.56);
}

.ground-glow {
  position: absolute;
  left: 52%;
  bottom: 36px;
  width: 300px;
  height: 46px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(155, 77, 255, 0.68), transparent 66%);
  filter: blur(4px);
  pointer-events: none;
}

.floating-cube,
.floating-pyramid {
  position: absolute;
  width: 42px;
  height: 42px;
  opacity: 0.9;
  filter: drop-shadow(0 0 16px rgba(24, 225, 255, 0.35));
  pointer-events: none;
}

.floating-cube {
  background: linear-gradient(135deg, #18e1ff, #8b4dff);
  transform: rotate(35deg) skew(-8deg);
}

.cube-one {
  left: 18%;
  top: 28%;
}

.cube-two {
  right: 21%;
  bottom: 21%;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #ff8a2a, #ff4d1c);
}

.floating-pyramid {
  right: 14%;
  top: 20%;
  clip-path: polygon(50% 0, 100% 100%, 0 70%);
  background: linear-gradient(135deg, #865cff, #2e59ff);
}

/* Dashboard */

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.92fr) minmax(0, 1fr);
  gap: 0;
  padding: 28px 36px 28px;
}

.glass-panel {
  position: relative;
  min-height: 440px;
  padding: 26px 20px 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(10, 12, 27, 0.78), rgba(5, 7, 17, 0.88));
  box-shadow: inset 0 0 28px rgba(255, 255, 255, 0.02);
}

.panel-heading {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
  padding: 0 10px;
}

.panel-heading h2 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.panel-heading h2 span {
  color: var(--purple);
}

.panel-heading a {
  color: var(--cyan);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.left-only {
  justify-content: flex-start;
}

/* Project cards */

.mini-project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.mini-project-card {
  min-height: 352px;
  padding: 15px 15px 20px;
  border: 1px solid rgba(158, 170, 255, 0.18);
  border-radius: 12px;
  background: rgba(5, 7, 17, 0.68);
  transition: transform 180ms ease, border-color 180ms ease;
}

.mini-project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(24, 225, 255, 0.5);
}

.project-thumb {
  height: 134px;
  margin-bottom: 14px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
}

.thumb-one {
  background:
    linear-gradient(to bottom, rgba(4, 6, 15, 0.05), rgba(4, 6, 15, 0.45)),
    url("/assets/img/project-dashboard.webp?v=10");
  background-size: cover;
  background-position: center;
}

.thumb-two {
  background:
    linear-gradient(to bottom, rgba(4, 6, 15, 0.05), rgba(4, 6, 15, 0.45)),
    url("/assets/img/project-neon-alley.webp?v=10");
  background-size: cover;
  background-position: center;
}

.thumb-three {
  background:
    linear-gradient(to bottom, rgba(4, 6, 15, 0.05), rgba(4, 6, 15, 0.45)),
    url("/assets/img/project-mountain-build.webp?v=10");
  background-size: cover;
  background-position: center;
}

.pill {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 8px 14px;
  border-radius: 7px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.purple-pill {
  background: linear-gradient(135deg, #8927ff, #5b35ff);
}

.cyan-pill {
  background: linear-gradient(135deg, #0da4bd, #126d87);
}

.orange-pill {
  background: linear-gradient(135deg, #bf641e, #8a3815);
}

.mini-project-card h3 {
  margin: 0 0 10px;
  font-size: 19px;
}

.mini-project-card p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.arrow {
  color: #fff;
  font-size: 22px;
}

/* Photos */

.photo-feature {
  position: relative;
  display: block;
  height: 266px;
  margin: 0 0 14px;
  overflow: hidden;
  border-radius: 12px;
  background:
    linear-gradient(to bottom, transparent 42%, rgba(0, 0, 0, 0.65)),
    url("/assets/img/bahamas-cover.webp?v=10");
  background-size: cover;
  background-position: center;
}

.photo-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 60% 30%, transparent, rgba(0, 0, 0, 0.24));
}

.photo-badge {
  position: absolute;
  left: 20px;
  bottom: 20px;
  z-index: 2;
  min-width: 210px;
  padding: 18px 20px;
  border-radius: 10px;
  background: rgba(7, 12, 20, 0.72);
  backdrop-filter: blur(14px);
}

.photo-badge strong,
.photo-badge span {
  display: block;
}

.photo-badge strong {
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.photo-badge span {
  color: var(--muted);
}

.photo-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.photo-strip span {
  height: 72px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
}

.photo-strip span:nth-child(1) {
  background-image: url("/assets/img/bahamas-thumb-01.webp?v=10");
}

.photo-strip span:nth-child(2) {
  background-image: url("/assets/img/bahamas-thumb-02.webp?v=10");
}

.photo-strip span:nth-child(3) {
  background-image: url("/assets/img/bahamas-thumb-03.webp?v=10");
}

.photo-strip span:nth-child(4) {
  background-image: url("/assets/img/bahamas-thumb-04.webp?v=10");
}

.photo-strip span:nth-child(5) {
  background-image: url("/assets/img/bahamas-thumb-05.webp?v=10");
}

/* About panel */

.about-panel {
  position: relative;
  display: block;
  min-height: 470px;
  overflow: hidden;
  isolation: isolate;
}

.about-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 82% 24%, rgba(155, 77, 255, 0.22), transparent 34%),
    radial-gradient(circle at 78% 60%, rgba(24, 225, 255, 0.1), transparent 30%),
    radial-gradient(circle at 80% 16%, #a34dff 0 1px, transparent 2px),
    radial-gradient(circle at 94% 18%, #fff 0 1px, transparent 2px),
    radial-gradient(circle at 73% 78%, #18e1ff 0 1px, transparent 2px),
    radial-gradient(circle at 93% 66%, #a34dff 0 1px, transparent 2px);
}

.about-layout {
  position: static;
  display: block;
  min-height: 0;
  height: auto;
}

.about-copy {
  position: relative;
  z-index: 4;
  width: 54%;
  max-width: 430px;
  padding: 2px 0 0 10px;
}

.about-copy::before {
  content: "";
  position: absolute;
  inset: -20px -92px -22px -16px;
  z-index: -1;
  border-radius: 24px;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(5, 7, 17, 0.98) 0%,
    rgba(5, 7, 17, 0.95) 58%,
    rgba(5, 7, 17, 0.72) 78%,
    rgba(5, 7, 17, 0.22) 92%,
    rgba(5, 7, 17, 0) 100%
  );
}

.about-copy p {
  margin: 0 0 18px;
  max-width: 390px;
  color: rgba(246, 247, 255, 0.68);
  font-size: 16px;
  line-height: 1.62;
}

.signature {
  position: relative;
  z-index: 5;
  display: block;
  margin: 18px 0 22px;
}

.signature-line {
  display: none;
}

.signature-name {
  display: inline-block;
  padding-bottom: 0.12em;
  font-family: "Caveat", cursive;
  font-size: clamp(34px, 2.6vw, 46px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  transform: rotate(-2deg);
  background: linear-gradient(
    90deg,
    #9b4dff 0%,
    #d6b6ff 48%,
    #18e1ff 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow:
    0 0 14px rgba(155, 77, 255, 0.34),
    0 0 22px rgba(24, 225, 255, 0.14);
}

.neon-avatar {
  position: absolute;
  z-index: 2;
  top: 52px;
  right: -6px;
  bottom: -38px;
  width: 49%;
  min-height: 0;
  height: auto;
  overflow: visible;
  pointer-events: none;
  background: none;
}

.neon-avatar img {
  position: absolute;
  right: 0;
  bottom: 0;
  width: auto;
  height: 116%;
  max-width: none;
  object-fit: contain;
  object-position: right bottom;
  user-select: none;
  filter:
    drop-shadow(0 0 18px rgba(24, 225, 255, 0.38))
    drop-shadow(0 0 34px rgba(155, 77, 255, 0.32));
}

.btn-outline {
  position: relative;
  z-index: 5;
}

/* Footer */

.site-footer {
  min-height: 104px;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 0 58px;
  border-top: 1px solid rgba(158, 170, 255, 0.12);
}

.socials {
  display: flex;
  gap: 28px;
  color: rgba(246, 247, 255, 0.82);
  font-size: 22px;
}

.quote {
  margin: 0;
  color: #a968ff;
  font-size: 20px;
  font-style: italic;
  letter-spacing: 0.03em;
}

.copyright {
  justify-self: end;
  color: rgba(246, 247, 255, 0.58);
}

.back-top {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(158, 170, 255, 0.18);
  border-radius: 50%;
  color: #fff;
  font-size: 28px;
}

/* Chaos mode */

body.chaos-mode {
  animation: chaosPulse 900ms infinite alternate;
}

body.chaos-mode .brand-mark {
  animation: tinyWobble 800ms infinite alternate;
}

body.chaos-mode .logo-core {
  animation: coreWobble 800ms infinite alternate;
}

@keyframes chaosPulse {
  from {
    filter: hue-rotate(0deg) saturate(1);
  }

  to {
    filter: hue-rotate(55deg) saturate(1.4);
  }
}

@keyframes tinyWobble {
  from {
    transform: rotate(-2deg) scale(1);
  }

  to {
    transform: rotate(2deg) scale(1.03);
  }
}

@keyframes coreWobble {
  from {
    transform: translate(-50%, -50%) rotate(-2deg) scale(1);
  }

  to {
    transform: translate(-50%, -50%) rotate(2deg) scale(1.03);
  }
}

/* Laptop / MacBook Air compact tuning */

@media (min-width: 1000px) and (max-width: 1600px) {
  .page-shell {
    max-width: 1500px;
  }

  .topbar {
    height: 68px;
    padding: 0 30px;
  }

  .brand {
    gap: 14px;
  }

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

  .brand-name {
    font-size: 16px;
    letter-spacing: 0.18em;
  }

  .main-nav {
    gap: 40px;
    font-size: 12px;
    letter-spacing: 0.16em;
  }

  .main-nav a.active::after {
    bottom: -16px;
  }

  .chaos-toggle {
    min-width: 180px;
    padding: 12px 20px;
    font-size: 12px;
  }

  .hero-panel {
    min-height: 430px;
    padding: 34px 52px 22px;
    grid-template-columns: 0.86fr 1.14fr;
  }

  .eyebrow {
    margin-bottom: 14px;
    font-size: 14px;
  }

  h1 {
    font-size: clamp(56px, 5vw, 80px);
    line-height: 0.95;
  }

  .hero-subtitle {
    max-width: 560px;
    margin: 18px 0 26px;
    font-size: 18px;
    line-height: 1.45;
  }

  .hero-actions {
    gap: 14px;
    margin-bottom: 28px;
  }

  .btn {
    min-height: 52px;
    padding: 0 24px;
    font-size: 12px;
    letter-spacing: 0.14em;
  }

  .scroll-hint {
    gap: 14px;
    font-size: 11px;
    letter-spacing: 0.22em;
  }

  .mouse-dot {
    width: 26px;
    height: 38px;
  }

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

  .orbit {
    left: 20%;
    top: 16%;
    width: 560px;
    height: 235px;
  }

  .orbit-two {
    left: 29%;
    top: 24%;
    width: 390px;
    height: 150px;
  }

  .logo-core {
    width: 195px;
    height: 184px;
    left: 46%;
    top: 40%;
  }

  .logo-core::before {
    inset: 8px;
    border-radius: 40px;
  }

  .logo-core-inner {
    width: 132px;
    height: 128px;
    border-radius: 30px;
    font-size: 82px;
  }

  .float-card {
    width: 245px;
    padding: 18px;
    gap: 14px;
  }

  .float-card h3 {
    margin-bottom: 8px;
    font-size: 13px;
  }

  .float-card p {
    font-size: 13px;
    line-height: 1.35;
  }

  .float-icon {
    font-size: 26px;
  }

  .card-web {
    left: 50%;
    top: 8%;
  }

  .card-photo {
    left: 10%;
    top: 50%;
  }

  .card-builds {
    right: 3%;
    top: 43%;
  }

  .ground-glow {
    width: 290px;
    height: 45px;
    bottom: 30px;
  }

  .dashboard-grid {
    padding: 18px 26px 18px;
  }

  .glass-panel {
    min-height: 345px;
    padding: 18px 16px 16px;
  }

  .panel-heading {
    margin-bottom: 18px;
    padding: 0 6px;
  }

  .panel-heading h2 {
    gap: 10px;
    font-size: 16px;
  }

  .panel-heading a {
    font-size: 11px;
  }

  .mini-project-grid {
    gap: 14px;
  }

  .mini-project-card {
    min-height: 300px;
    padding: 12px;
  }

  .project-thumb {
    height: 108px;
    margin-bottom: 12px;
  }

  .pill {
    margin-bottom: 10px;
    padding: 6px 10px;
    font-size: 10px;
  }

  .mini-project-card h3 {
    margin-bottom: 8px;
    font-size: 17px;
  }

  .mini-project-card p {
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.4;
  }

  .arrow {
    font-size: 18px;
  }

  .photo-feature {
    height: 215px;
  }

  .photo-badge {
    left: 16px;
    bottom: 16px;
    min-width: 180px;
    padding: 14px 16px;
  }

  .photo-badge strong {
    margin-bottom: 6px;
    font-size: 15px;
  }

  .photo-badge span {
    font-size: 14px;
  }

  .photo-strip {
    gap: 8px;
  }

  .photo-strip span {
    height: 56px;
  }

  .about-panel {
    min-height: 370px;
  }

  .about-copy {
    width: 52%;
    max-width: 390px;
    padding: 0 0 0 6px;
  }

  .about-copy p {
    margin: 0 0 14px;
    max-width: 350px;
    font-size: 15px;
    line-height: 1.5;
  }

  .signature {
    margin: 12px 0 18px;
    gap: 12px;
  }

  .signature-line {
    display: none;
  }

  .signature-name {
    font-size: 38px;
  }

  .neon-avatar {
    top: 48px;
    right: -4px;
    bottom: -36px;
    width: 50%;
  }

  .neon-avatar img {
    height: 115%;
  }

  .btn-outline {
    min-height: 48px;
  }

  .site-footer {
    min-height: 76px;
    padding: 0 30px;
    gap: 18px;
  }

  .socials {
    gap: 20px;
    font-size: 18px;
  }

  .quote {
    font-size: 16px;
  }

  .copyright {
    font-size: 14px;
  }

  .back-top {
    width: 48px;
    height: 48px;
    font-size: 24px;
  }
}

/* Slightly tighter for shorter laptop screens */

@media (min-width: 1000px) and (max-height: 850px) {
  .hero-panel {
    min-height: 400px;
    padding-top: 28px;
    padding-bottom: 18px;
  }

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

  .dashboard-grid {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .glass-panel {
    min-height: 322px;
  }

  .photo-feature {
    height: 198px;
  }

  .mini-project-card {
    min-height: 280px;
  }

  .project-thumb {
    height: 96px;
  }

  .about-panel {
    min-height: 340px;
  }

  .about-copy {
    width: 53%;
  }

  .about-copy p {
    max-width: 340px;
  }

  .neon-avatar {
    top: 44px;
    right: -6px;
    bottom: -42px;
    width: 49%;
  }

  .neon-avatar img {
    height: 114%;
  }
}

/* Tablet */

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

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

  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .glass-panel {
    min-height: auto;
  }

  .about-panel {
    min-height: 380px;
  }

  .about-copy {
    width: 54%;
  }

  .neon-avatar {
    width: 48%;
  }
}

/* Mobile */

@media (max-width: 850px) {
  body {
    padding: 0;
  }

  .page-shell {
    min-height: 100vh;
    border-radius: 0;
  }

  .topbar {
    height: auto;
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 24px;
  }

  .brand {
    justify-content: center;
  }

  .brand-name {
    font-size: 14px;
  }

  .main-nav {
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .chaos-toggle {
    justify-self: stretch;
  }

  .hero-panel {
    padding: 44px 24px;
  }

  h1 {
    font-size: clamp(52px, 16vw, 76px);
  }

  .hero-subtitle {
    font-size: 19px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-visual {
    display: none;
  }

  .dashboard-grid {
    padding: 20px;
  }

  .mini-project-grid {
    grid-template-columns: 1fr;
  }

  .about-panel {
    min-height: auto;
  }

  .about-layout {
    display: block;
  }

  .about-copy {
    width: 100%;
    max-width: none;
    padding: 0 0 0 4px;
  }

  .about-copy::before {
    inset: -16px;
    background: rgba(5, 7, 17, 0.84);
  }

  .about-copy p {
    max-width: none;
  }

  .neon-avatar {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    height: 340px;
    margin-top: 20px;
  }

  .neon-avatar img {
    right: 50%;
    bottom: -30px;
    height: 120%;
    transform: translateX(50%);
  }

  .site-footer {
    grid-template-columns: 1fr;
    padding: 32px 24px;
    text-align: center;
  }

  .copyright {
    justify-self: center;
  }

  .socials {
    justify-content: center;
  }

  .back-top {
    margin: 0 auto;
  }
}

/* Pages */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-main {
  position: relative;
  padding: clamp(22px, 3vw, 46px);
}

.page-about .page-main {
  background:
    radial-gradient(circle at 82% 12%, rgba(155, 77, 255, 0.16), transparent 34%),
    radial-gradient(circle at 18% 42%, rgba(24, 225, 255, 0.07), transparent 28%);
}

/* Compact About hero */

.page-about .page-hero {
  --hero-avatar-size: clamp(118px, 15vw, 210px);

  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(22px, 4vw, 70px);
  max-width: 1180px;
  min-height: auto;
  margin: 0 auto 18px;
  padding: clamp(24px, 3.2vw, 42px) clamp(28px, 4vw, 58px);
  overflow: hidden;
  border: 1px solid rgba(158, 170, 255, 0.18);
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(12, 15, 35, 0.9), rgba(5, 7, 17, 0.72)),
    radial-gradient(circle at 86% 42%, rgba(155, 77, 255, 0.26), transparent 34%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 22px 58px rgba(0, 0, 0, 0.32),
    inset 0 0 38px rgba(255, 255, 255, 0.024);
}

.page-about .page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(24, 225, 255, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 225, 255, 0.075) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.2;
  mask-image: linear-gradient(90deg, black, transparent 78%);
}

.page-about .page-hero::after {
  content: "";
  position: absolute;
  right: clamp(28px, 5.2vw, 76px);
  top: 50%;
  z-index: 3;
  width: var(--hero-avatar-size);
  height: var(--hero-avatar-size);
  border: 1px dashed rgba(155, 77, 255, 0.52);
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow:
    0 0 42px rgba(155, 77, 255, 0.16),
    inset 0 0 42px rgba(24, 225, 255, 0.08);
  opacity: 0.85;
  pointer-events: none;
}

.about-hero-copy {
  position: relative;
  z-index: 5;
  max-width: 790px;
}

.page-about .page-hero .eyebrow {
  margin: 0 0 12px;
}

.about-hero-line {
  max-width: 780px;
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(30px, 3.15vw, 52px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.22),
    0 0 26px rgba(255, 255, 255, 0.12);
}

.about-hero-avatar {
  position: relative;
  z-index: 2;
  width: var(--hero-avatar-size);
  height: var(--hero-avatar-size);
  overflow: hidden;
  border-radius: 50%;
  opacity: 0.34;
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.18), transparent 26%),
    radial-gradient(circle, rgba(155, 77, 255, 0.22), rgba(5, 7, 17, 0.18) 68%);
  box-shadow:
    0 0 32px rgba(155, 77, 255, 0.2),
    inset 0 0 30px rgba(24, 225, 255, 0.08);
  filter:
    saturate(0.95)
    contrast(1.08);
  mix-blend-mode: screen;
  pointer-events: none;
}

.about-hero-avatar::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, transparent 42%, rgba(3, 5, 13, 0.44) 76%),
    linear-gradient(180deg, rgba(155, 77, 255, 0.08), rgba(24, 225, 255, 0.04));
}

.about-hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  transform: scale(1.22);
  opacity: 0.82;
  user-select: none;
}

/* Compact content cards */

.content-section {
  position: relative;
  max-width: 1180px;
  margin: 0 auto 18px;
  padding: clamp(22px, 2.4vw, 32px);
  border: 1px solid rgba(158, 170, 255, 0.16);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(10, 13, 30, 0.78), rgba(5, 7, 17, 0.86));
  box-shadow:
    inset 0 0 28px rgba(255, 255, 255, 0.02),
    0 15px 42px rgba(0, 0, 0, 0.2);
}

.content-section h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(21px, 1.9vw, 30px);
  letter-spacing: -0.02em;
}

.content-section h2::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 28px;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--purple), var(--cyan));
  box-shadow: 0 0 20px rgba(155, 77, 255, 0.55);
}

.content-section p {
  margin: 0 0 14px;
  color: rgba(246, 247, 255, 0.74);
  font-size: clamp(15px, 1vw, 17px);
  line-height: 1.58;
}

.content-section p:last-child {
  margin-bottom: 0;
}

.content-section strong {
  color: #fff;
  text-shadow: 0 0 16px rgba(155, 77, 255, 0.5);
}

.about-story {
  padding-bottom: clamp(20px, 2.2vw, 30px);
}

.about-copy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(24px, 4vw, 54px);
  row-gap: 14px;
}

.about-copy-grid p {
  max-width: none;
}

/* Smaller bottom cards */

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.split-section > div {
  min-height: 138px;
  padding: clamp(20px, 2.2vw, 28px);
  border: 1px solid rgba(158, 170, 255, 0.16);
  border-radius: 24px;
  background:
    radial-gradient(circle at 90% 18%, rgba(155, 77, 255, 0.16), transparent 36%),
    linear-gradient(180deg, rgba(10, 13, 30, 0.78), rgba(5, 7, 17, 0.86));
  box-shadow:
    inset 0 0 28px rgba(255, 255, 255, 0.02),
    0 14px 38px rgba(0, 0, 0, 0.18);
}

.split-section ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.split-section li {
  padding: 9px 12px;
  border: 1px solid rgba(24, 225, 255, 0.22);
  border-radius: 999px;
  color: rgba(246, 247, 255, 0.84);
  background: rgba(24, 225, 255, 0.06);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.split-section > div:last-child p {
  max-width: 620px;
  font-size: clamp(16px, 1.15vw, 19px);
  color: rgba(246, 247, 255, 0.82);
}

/* Projects / Photography page layout */

.page-photography .album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

/* Extra compact laptop tuning */

@media (min-width: 1000px) and (max-height: 850px) {
  .page-main {
    padding: 22px 42px;
  }

  .page-about .page-hero {
    margin-bottom: 16px;
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .about-hero-line {
    font-size: clamp(28px, 2.8vw, 44px);
  }

  .content-section {
    margin-bottom: 16px;
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .content-section h2 {
    margin-bottom: 12px;
  }

  .content-section p {
    font-size: 15px;
    line-height: 1.5;
  }

  .split-section > div {
    min-height: 122px;
  }
}

/* Tablet */

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

  .page-about .page-hero::after,
  .about-hero-avatar {
    display: none;
  }

  .about-copy-grid {
    grid-template-columns: 1fr;
  }

  .split-section {
    grid-template-columns: 1fr;
  }
}

/* Mobile */

@media (max-width: 850px) {
  .page-main {
    padding: 24px 18px;
  }

  .page-about .page-hero {
    padding: 28px 20px;
    border-radius: 20px;
  }

  .about-hero-line {
    font-size: clamp(28px, 9vw, 42px);
  }

  .content-section {
    padding: 22px 18px;
    border-radius: 20px;
  }

  .split-section > div {
    min-height: auto;
    padding: 22px 18px;
    border-radius: 20px;
  }
}

/* =========================================================
   404 Page
   ========================================================= */

.page-404 .page-shell {
  display: flex;
  flex-direction: column;
}

.page-404 .error-main {
  flex: 1;
  display: grid;
  align-items: center;
  padding: clamp(28px, 5vw, 76px);
  background:
    radial-gradient(circle at 82% 14%, rgba(155, 77, 255, 0.18), transparent 34%),
    radial-gradient(circle at 18% 72%, rgba(24, 225, 255, 0.1), transparent 30%);
}

.page-404 .error-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(310px, 0.86fr) minmax(0, 1.14fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  width: min(1240px, 100%);
  min-height: clamp(440px, 54vh, 620px);
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3.4rem);
  overflow: hidden;
  border: 1px solid rgba(158, 170, 255, 0.16);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(12, 15, 35, 0.82), rgba(5, 7, 17, 0.78)),
    radial-gradient(circle at 84% 18%, rgba(155, 77, 255, 0.16), transparent 34%);
  box-shadow:
    inset 0 0 34px rgba(255, 255, 255, 0.025),
    0 22px 70px rgba(0, 0, 0, 0.34);
}

.page-404 .error-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(24, 225, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 225, 255, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.24;
  mask-image: linear-gradient(90deg, black, transparent 82%);
}

.page-404 .error-hero::after {
  content: "";
  position: absolute;
  right: -160px;
  bottom: -190px;
  z-index: -1;
  width: 440px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(24, 225, 255, 0.17), transparent 58%),
    radial-gradient(circle, rgba(155, 77, 255, 0.22), transparent 64%);
  filter: blur(8px);
  pointer-events: none;
}

.page-404 .error-visual {
  position: relative;
  min-height: 390px;
  overflow: visible;
  isolation: isolate;
}

.page-404 .error-visual .starfield {
  inset: -12%;
  opacity: 0.82;
}

.page-404 .error-orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  border: 2px dotted rgba(155, 77, 255, 0.62);
  border-radius: 50%;
  opacity: 0.72;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.page-404 .error-orbit-one {
  width: min(94%, 390px);
  height: min(52vw, 210px);
  animation: errorOrbitSpin 22s linear infinite;
}

.page-404 .error-orbit-two {
  width: min(70%, 280px);
  height: min(38vw, 130px);
  border-color: rgba(24, 225, 255, 0.28);
  opacity: 0.46;
  animation: errorOrbitSpinReverse 18s linear infinite;
}

.page-404 .error-core {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: clamp(180px, 24vw, 250px);
  height: clamp(170px, 23vw, 238px);
  overflow: hidden;
  border-radius: 44px;
  background:
    linear-gradient(135deg, rgba(155, 77, 255, 0.9), rgba(24, 225, 255, 0.85));
  box-shadow:
    0 0 38px rgba(155, 77, 255, 0.72),
    0 0 62px rgba(24, 225, 255, 0.28);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.page-404 .error-core::before {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 36px;
  background:
    radial-gradient(circle at 70% 28%, rgba(255, 255, 255, 0.12), transparent 24%),
    #070a18;
}

.page-404 .error-core span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 74%;
  height: 66%;
  border: 1px solid rgba(155, 170, 255, 0.32);
  border-radius: 30px;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 7.4vw, 6.8rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.12em;
  text-shadow: 0 0 24px rgba(255, 255, 255, 0.46);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0));
  transform: translateX(-0.04em);
}

.page-404 .error-cube-one {
  left: 7%;
  top: 24%;
}

.page-404 .error-cube-two {
  right: 12%;
  bottom: 22%;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #ff8a2a, #ff4d1c);
}

.page-404 .error-pyramid {
  right: 8%;
  top: 18%;
}

.page-404 .error-visual .ground-glow {
  left: 50%;
  bottom: 24px;
}

.page-404 .error-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.page-404 .error-content .eyebrow {
  margin-bottom: 0.9rem;
}

.page-404 .error-content h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3.4rem, 7vw, 6.8rem);
  line-height: 0.9;
  letter-spacing: -0.075em;
}

.page-404 .error-content h1 span {
  color: var(--purple);
  text-shadow: 0 0 24px var(--purple);
}

.page-404 .error-copy {
  max-width: 62ch;
  margin: 1.25rem 0 0;
  color: rgba(246, 247, 255, 0.72);
  font-size: clamp(1.02rem, 1.6vw, 1.24rem);
  line-height: 1.7;
}

.page-404 .error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.page-404 .error-actions .btn {
  min-height: 54px;
}

body.chaos-mode .error-core {
  animation: errorCoreWobble 800ms infinite alternate;
}

body.chaos-mode .error-orbit-one {
  animation-duration: 5s;
}

body.chaos-mode .error-orbit-two {
  animation-duration: 4s;
}

@keyframes errorOrbitSpin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes errorOrbitSpinReverse {
  from {
    transform: translate(-50%, -50%) rotate(-12deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(-372deg);
  }
}

@keyframes errorCoreWobble {
  from {
    transform: translate(-50%, -50%) rotate(-2deg) scale(1);
  }

  to {
    transform: translate(-50%, -50%) rotate(2deg) scale(1.03);
  }
}

@media (max-width: 1050px) {
  .page-404 .error-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .page-404 .error-visual {
    min-height: 310px;
  }

  .page-404 .error-content {
    margin-inline: auto;
  }

  .page-404 .error-copy {
    margin-inline: auto;
  }

  .page-404 .error-actions {
    justify-content: center;
  }
}

@media (max-width: 850px) {
  .page-404 .error-main {
    align-items: start;
    padding: 24px 18px;
  }

  .page-404 .error-hero {
    min-height: auto;
    padding: 28px 20px;
    border-radius: 22px;
  }

  .page-404 .error-visual {
    min-height: 250px;
  }

  .page-404 .error-core {
    width: 190px;
    height: 180px;
  }

  .page-404 .error-cube-one,
  .page-404 .error-cube-two,
  .page-404 .error-pyramid {
    display: none;
  }
}

@media (max-width: 520px) {
  .page-404 .error-actions {
    flex-direction: column;
  }

  .page-404 .error-actions .btn {
    width: 100%;
  }
}

/* ================================
   Projects Page
================================ */

.page-projects .page-main {
  padding-top: clamp(24px, 3vw, 44px);
}

.projects-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 2rem;
  align-items: center;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2.75rem, 5vw, 4rem) 0 3rem;
}

.projects-hero__content {
  max-width: 760px;
}

.projects-hero .eyebrow,
.projects-section .eyebrow,
.projects-callout .eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent, #8fd3ff);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.projects-hero h1 {
  margin: 0;
  color: var(--text, #f5f7fb);
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.projects-hero p:not(.eyebrow) {
  max-width: 680px;
  margin: 1.25rem 0 0;
  color: var(--muted, rgba(245, 247, 251, 0.72));
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.7;
}

.projects-hero__orb {
  position: relative;
  display: grid;
  place-items: center;
  width: 210px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background:
    radial-gradient(circle at 40% 35%, rgba(143, 211, 255, 0.22), transparent 34%),
    radial-gradient(circle at 65% 70%, rgba(255, 255, 255, 0.08), transparent 38%),
    rgba(255, 255, 255, 0.03);
  box-shadow:
    inset 0 0 40px rgba(255, 255, 255, 0.04),
    0 24px 70px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.projects-hero__orb::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: inherit;
  animation: projectsSpin 18s linear infinite;
}

.projects-hero__orb span {
  color: rgba(255, 255, 255, 0.12);
  font-size: 7rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.12em;
  transform: translateX(-0.04em);
}

.projects-section {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.projects-section__header {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: end;
  margin-bottom: 1.5rem;
}

.projects-section__header h2,
.projects-callout h2 {
  margin: 0;
  color: var(--text, #f5f7fb);
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.projects-section__header p {
  max-width: 410px;
  margin: 0;
  color: var(--muted, rgba(245, 247, 251, 0.68));
  line-height: 1.7;
}

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

.project-card {
  position: relative;
  display: flex;
  min-height: 310px;
  flex-direction: column;
  padding: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.035);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
  overflow: hidden;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background 220ms ease;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: auto -20% -40% 30%;
  height: 190px;
  border-radius: 999px;
  background: rgba(143, 211, 255, 0.12);
  filter: blur(40px);
  opacity: 0;
  transition: opacity 220ms ease;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(143, 211, 255, 0.35);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.045);
}

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

.project-card--featured {
  grid-row: span 2;
  min-height: 636px;
}

.project-card__top {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: auto;
}

.project-card__status {
  display: inline-flex;
  width: fit-content;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(143, 211, 255, 0.22);
  border-radius: 999px;
  color: rgba(245, 247, 251, 0.82);
  background: rgba(143, 211, 255, 0.08);
  font-size: 0.76rem;
  font-weight: 700;
}

.project-card__number {
  color: rgba(255, 255, 255, 0.12);
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.08em;
}

.project-card h3 {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin: 3rem 0 0;
  color: var(--text, #f5f7fb);
  font-size: clamp(1.45rem, 3vw, 2.4rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.project-card p {
  position: relative;
  z-index: 1;
  max-width: 580px;
  margin: 1rem 0 0;
  color: var(--muted, rgba(245, 247, 251, 0.68));
  line-height: 1.7;
}

.project-card__tags {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.35rem 0 1.5rem;
}

.project-card__tags span {
  padding: 0.42rem 0.62rem;
  border-radius: 999px;
  color: rgba(245, 247, 251, 0.72);
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.78rem;
  font-weight: 650;
}

.project-card__link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: fit-content;
  gap: 0.4rem;
  align-items: center;
  margin-top: auto;
  color: var(--text, #f5f7fb);
  font-weight: 800;
  text-decoration: none;
}

.project-card__link span {
  transition: transform 180ms ease;
}

.project-card__link:hover span {
  transform: translateX(4px);
}

.project-card__link--disabled {
  color: rgba(245, 247, 251, 0.45);
  pointer-events: none;
}

.projects-callout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: center;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto 4.5rem;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  background:
    radial-gradient(circle at top left, rgba(143, 211, 255, 0.14), transparent 34%),
    rgba(255, 255, 255, 0.04);
}

.projects-callout p:not(.eyebrow) {
  margin: 0;
  color: var(--muted, rgba(245, 247, 251, 0.7));
  line-height: 1.75;
}

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

@media (max-width: 820px) {
  .projects-hero {
    grid-template-columns: 1fr;
    padding-top: 3rem;
  }

  .projects-hero__orb {
    width: 160px;
  }

  .projects-hero__orb span {
    font-size: 5.5rem;
  }

  .projects-section__header,
  .projects-callout {
    display: block;
  }

  .projects-section__header p,
  .projects-callout p:not(.eyebrow) {
    margin-top: 1rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-card,
  .project-card--featured {
    min-height: 300px;
  }

  .project-card--featured {
    grid-row: auto;
  }
}

@media (max-width: 520px) {
  .projects-hero {
    width: min(100% - 1rem, 1120px);
  }

  .projects-section,
  .projects-callout {
    width: min(100% - 1rem, 1120px);
  }

  .project-card,
  .projects-callout {
    border-radius: 22px;
  }

  .project-card {
    padding: 1.1rem;
  }
}

/* ================================
   Project Detail Pages
================================ */

.project-detail-main {
  max-width: 1240px;
  margin: 0 auto;
}

.project-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: fit-content;
  margin: 0 0 clamp(1.4rem, 3vw, 2rem);
  color: rgba(246, 247, 255, 0.68);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.project-back-link:hover {
  color: var(--cyan);
  transform: translateX(-4px);
}

.project-detail-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: stretch;
  margin: 0 0 1rem;
}

.project-detail-hero__copy,
.project-detail-status-card,
.project-showcase,
.project-meta-grid article,
.project-detail-section,
.project-detail-next {
  border: 1px solid rgba(158, 170, 255, 0.16);
  background:
    radial-gradient(circle at 88% 12%, rgba(155, 77, 255, 0.16), transparent 32%),
    linear-gradient(180deg, rgba(10, 13, 30, 0.78), rgba(5, 7, 17, 0.88));
  box-shadow:
    inset 0 0 28px rgba(255, 255, 255, 0.02),
    0 16px 44px rgba(0, 0, 0, 0.22);
}

.project-detail-hero__copy {
  position: relative;
  min-height: 390px;
  padding: clamp(1.5rem, 4vw, 3.4rem);
  overflow: hidden;
  border-radius: 30px;
}

.project-detail-hero__copy::before {
  content: "";
  position: absolute;
  right: -130px;
  bottom: -150px;
  width: 390px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(24, 225, 255, 0.18), transparent 56%),
    radial-gradient(circle, rgba(155, 77, 255, 0.22), transparent 62%);
  filter: blur(6px);
  pointer-events: none;
}

.project-detail-hero__copy::after {
  content: "01";
  position: absolute;
  right: clamp(1rem, 4vw, 3rem);
  bottom: clamp(0.4rem, 2vw, 1.6rem);
  color: rgba(255, 255, 255, 0.055);
  font-family: var(--font-display);
  font-size: clamp(7rem, 16vw, 13rem);
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.12em;
  pointer-events: none;
}

.project-detail-hero h1 {
  position: relative;
  z-index: 1;
  max-width: 850px;
  margin: 0;
  font-size: clamp(3rem, 7vw, 6.8rem);
  line-height: 0.9;
  letter-spacing: -0.075em;
}

.project-detail-subtitle {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 1.25rem 0 0;
  color: rgba(246, 247, 255, 0.72);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.65;
}

.project-detail-tags {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.5rem;
}

.project-detail-tags span {
  display: inline-flex;
  padding: 0.5rem 0.72rem;
  border: 1px solid rgba(24, 225, 255, 0.2);
  border-radius: 999px;
  color: rgba(246, 247, 255, 0.78);
  background: rgba(24, 225, 255, 0.055);
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-detail-status-card {
  display: grid;
  grid-template-rows: auto 0.65fr auto auto 1fr;
  min-height: 390px;
  padding: 1.35rem;
  border-radius: 30px;
}

.project-detail-status-card__label {
  grid-row: 1;
  align-self: start;
  width: fit-content;
  margin-bottom: 0;
  padding: 0.48rem 0.7rem;
  border: 1px solid rgba(24, 225, 255, 0.24);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(24, 225, 255, 0.06);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-detail-status-card strong {
  grid-row: 3;
  align-self: end;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.project-detail-status-card p {
  grid-row: 4;
  margin: 1rem 0 0;
  color: rgba(246, 247, 255, 0.68);
  line-height: 1.65;
}

.project-showcase {
  margin: 0 0 1rem;
  padding: clamp(1rem, 2.6vw, 1.7rem);
  overflow: hidden;
  border-radius: 30px;
}

.project-showcase__browser {
  overflow: hidden;
  border: 1px solid rgba(158, 170, 255, 0.18);
  border-radius: 22px;
  background: rgba(2, 3, 10, 0.7);
}

.project-showcase__bar {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  min-height: 48px;
  padding: 0 1rem;
  border-bottom: 1px solid rgba(158, 170, 255, 0.12);
  background: rgba(255, 255, 255, 0.035);
}

.project-showcase__bar span {
  width: 0.72rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(246, 247, 255, 0.28);
}

.project-showcase__screen {
  position: relative;
  min-height: clamp(260px, 38vw, 460px);
  padding: clamp(1.3rem, 4vw, 3rem);
  overflow: hidden;
  background:
    radial-gradient(circle at 54% 14%, rgba(155, 77, 255, 0.34), transparent 34%),
    radial-gradient(circle at 80% 52%, rgba(24, 225, 255, 0.16), transparent 32%),
    linear-gradient(180deg, rgba(6, 7, 18, 0.98), rgba(2, 3, 10, 1));
}

.project-showcase__screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(24, 225, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 225, 255, 0.07) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.45;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

.project-showcase__nav,
.project-showcase__title,
.project-showcase__subtitle,
.project-showcase__cards {
  position: relative;
  z-index: 1;
}

.project-showcase__nav {
  width: min(520px, 72%);
  height: 18px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(246, 247, 255, 0.28), rgba(246, 247, 255, 0.06));
}

.project-showcase__title {
  width: min(680px, 88%);
  height: clamp(72px, 10vw, 122px);
  margin-top: clamp(2rem, 5vw, 4rem);
  border-radius: 24px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.92), rgba(155, 77, 255, 0.38));
  box-shadow: 0 0 40px rgba(155, 77, 255, 0.18);
}

.project-showcase__subtitle {
  width: min(540px, 72%);
  height: 22px;
  margin-top: 1.25rem;
  border-radius: 999px;
  background: rgba(246, 247, 255, 0.22);
}

.project-showcase__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: clamp(2rem, 5vw, 4rem);
}

.project-showcase__cards span {
  min-height: 118px;
  border: 1px solid rgba(158, 170, 255, 0.16);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025));
}

.project-showcase__intro {
  max-width: 760px;
  margin: 0 0 1.2rem;
}

.project-showcase__intro .eyebrow {
  margin-bottom: 0.65rem;
  font-size: 0.74rem;
}

.project-showcase__intro h2 {
  margin: 0 0 0.75rem;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.75rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.project-showcase__intro p:not(.eyebrow) {
  margin: 0;
  color: rgba(246, 247, 255, 0.72);
  font-size: clamp(1rem, 1.35vw, 1.08rem);
  line-height: 1.72;
}

.project-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 0 0 1rem;
}

.project-meta-grid article {
  min-height: 132px;
  padding: 1.1rem;
  border-radius: 24px;
}

.project-meta-grid span {
  display: block;
  margin-bottom: 0.85rem;
  color: var(--cyan);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-meta-grid strong {
  display: block;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.project-detail-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 0 0 1rem;
}

.project-detail-section {
  min-height: 300px;
  padding: clamp(1.2rem, 2.6vw, 2rem);
  border-radius: 28px;
}

.project-detail-section--wide {
  grid-column: 1 / -1;
  min-height: auto;
}

.project-detail-section .eyebrow,
.project-detail-next .eyebrow {
  margin-bottom: 0.8rem;
  font-size: 0.74rem;
}

.project-detail-section h2,
.project-detail-next h2 {
  margin: 0 0 1rem;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.75rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.project-detail-section p,
.project-detail-next p {
  margin: 0 0 1rem;
  color: rgba(246, 247, 255, 0.72);
  font-size: clamp(1rem, 1.35vw, 1.08rem);
  line-height: 1.72;
}

.project-detail-section p:last-child,
.project-detail-next p:last-child {
  margin-bottom: 0;
}

.project-detail-list {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.project-detail-list li {
  position: relative;
  padding-left: 1.35rem;
  color: rgba(246, 247, 255, 0.76);
  line-height: 1.55;
}

.project-detail-list li::before {
  content: "↯";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--cyan);
}

.project-detail-next {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto 2rem;
  padding: clamp(1.3rem, 3vw, 2rem);
  border-radius: 30px;
}

.project-detail-next div {
  max-width: 720px;
}

.project-detail-next .btn {
  flex: 0 0 auto;
}

@media (max-width: 1050px) {
  .project-detail-hero,
  .project-meta-grid,
  .project-detail-layout {
    grid-template-columns: 1fr;
  }

  .project-detail-status-card {
    min-height: 260px;
  }

  .project-detail-section--wide {
    grid-column: auto;
  }

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

  .project-detail-next {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 700px) {
  .project-detail-hero__copy,
  .project-detail-status-card,
  .project-showcase,
  .project-detail-section,
  .project-detail-next {
    border-radius: 22px;
  }

  .project-detail-hero__copy {
    min-height: auto;
  }

  .project-detail-status-card {
    min-height: auto;
  }

  .project-showcase__cards,
  .project-meta-grid {
    grid-template-columns: 1fr;
  }

  .project-showcase__title {
    width: 100%;
  }

  .project-showcase__subtitle {
    width: 86%;
  }
  
    .project-detail-status-card {
    grid-template-rows: auto;
    gap: 1rem;
  }

  .project-detail-status-card__label,
  .project-detail-status-card strong,
  .project-detail-status-card p {
    grid-row: auto;
  }

  .project-detail-status-card p {
    margin: 0;
  }
  
  .page-project-detail--automation .project-detail-hero__copy::after {
  content: "02";
}

.project-showcase--automation .project-showcase__title {
  background:
    linear-gradient(90deg, rgba(24, 225, 255, 0.85), rgba(155, 77, 255, 0.42));
}

.project-showcase--automation .project-showcase__cards span:nth-child(1) {
  background:
    linear-gradient(135deg, rgba(24, 225, 255, 0.16), rgba(255, 255, 255, 0.025));
}

.project-showcase--automation .project-showcase__cards span:nth-child(2) {
  background:
    linear-gradient(135deg, rgba(155, 77, 255, 0.16), rgba(255, 255, 255, 0.025));
}

.project-showcase--automation .project-showcase__cards span:nth-child(3) {
  background:
    linear-gradient(135deg, rgba(255, 138, 42, 0.13), rgba(255, 255, 255, 0.025));
}
}

/* ================================
   Photography Page
================================ */

.page-photography .page-main {
  padding-top: clamp(24px, 3vw, 44px);
  background:
    radial-gradient(circle at 78% 10%, rgba(24, 225, 255, 0.12), transparent 34%),
    radial-gradient(circle at 18% 34%, rgba(155, 77, 255, 0.12), transparent 32%),
    radial-gradient(circle at 88% 70%, rgba(255, 138, 42, 0.07), transparent 26%);
}

.photography-main {
  max-width: 1240px;
  margin: 0 auto;
}

.photography-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: stretch;
  margin: 0 0 1rem;
}

.photography-hero__copy,
.photography-hero__visual,
.photo-stats article,
.featured-album,
.photography-section,
.photo-mosaic-section,
.photo-callout {
  border: 1px solid rgba(158, 170, 255, 0.16);
  background:
    radial-gradient(circle at 88% 12%, rgba(155, 77, 255, 0.15), transparent 34%),
    linear-gradient(180deg, rgba(10, 13, 30, 0.78), rgba(5, 7, 17, 0.88));
  box-shadow:
    inset 0 0 28px rgba(255, 255, 255, 0.02),
    0 16px 44px rgba(0, 0, 0, 0.22);
}

.photography-hero__copy {
  position: relative;
  min-height: 440px;
  padding: clamp(1.6rem, 4vw, 3.6rem);
  overflow: hidden;
  border-radius: 30px;
}

.photography-hero__copy::before {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -140px;
  width: 380px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(24, 225, 255, 0.18), transparent 56%),
    radial-gradient(circle, rgba(155, 77, 255, 0.2), transparent 62%);
  filter: blur(8px);
  pointer-events: none;
}

.photography-hero__copy::after {
  content: "▣";
  position: absolute;
  right: clamp(1rem, 4vw, 3rem);
  bottom: clamp(0.8rem, 2.5vw, 2rem);
  color: rgba(255, 255, 255, 0.055);
  font-family: var(--font-display);
  font-size: clamp(8rem, 18vw, 14rem);
  font-weight: 700;
  line-height: 0.8;
  pointer-events: none;
}

.photography-hero h1 {
  position: relative;
  z-index: 1;
  max-width: 840px;
  margin: 0;
  font-size: clamp(3rem, 7vw, 6.8rem);
  line-height: 0.9;
  letter-spacing: -0.075em;
}

.photography-hero__copy p:not(.eyebrow) {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 1.25rem 0 0;
  color: rgba(246, 247, 255, 0.72);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.65;
}

.photography-hero__actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.8rem;
}

.photography-hero__visual {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  border-radius: 30px;
}

.photography-hero__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(24, 225, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 225, 255, 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.28;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

.photo-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.photo-orb--one {
  right: -90px;
  top: -100px;
  width: 260px;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(155, 77, 255, 0.32), transparent 64%);
}

.photo-orb--two {
  left: -100px;
  bottom: -120px;
  width: 300px;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(24, 225, 255, 0.22), transparent 66%);
}

.photo-frame-stack {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  perspective: 900px;
}

.photo-frame {
  position: absolute;
  overflow: hidden;
  border: 1px solid rgba(246, 247, 255, 0.18);
  border-radius: 24px;
  background-size: cover;
  background-position: center;
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.42),
    0 0 36px rgba(155, 77, 255, 0.16);
}

.photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, transparent 42%, rgba(0, 0, 0, 0.62)),
    radial-gradient(circle at 70% 18%, transparent, rgba(3, 5, 13, 0.22));
}

.photo-frame--large {
  width: min(78%, 300px);
  height: 320px;
  background-image: url("/assets/img/bahamas-cover.webp?v=13");
  transform: rotate(-4deg);
}

.photo-frame--small {
  width: 142px;
  height: 112px;
  border-radius: 18px;
}

.photo-frame--top {
  top: 54px;
  right: 34px;
  background-image: url("/assets/img/bahamas-thumb-02.webp?v=13");
  transform: rotate(8deg);
}

.photo-frame--bottom {
  left: 34px;
  bottom: 58px;
  background-image: url("/assets/img/bahamas-thumb-04.webp?v=13");
  transform: rotate(-10deg);
}

.photo-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0 0 1rem;
}

.photo-stats article {
  min-height: 160px;
  padding: 1.25rem;
  border-radius: 24px;
}

.photo-stats span {
  display: block;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.13);
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.08em;
}

.photo-stats strong {
  display: block;
  margin-bottom: 0.65rem;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.photo-stats p {
  margin: 0;
  color: rgba(246, 247, 255, 0.68);
  line-height: 1.6;
}

.featured-album {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 1rem;
  margin: 0 0 1rem;
  padding: 1rem;
  overflow: hidden;
  border-radius: 30px;
}

.featured-album__image {
  position: relative;
  display: block;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid rgba(158, 170, 255, 0.16);
  border-radius: 24px;
  background:
    linear-gradient(to bottom, transparent 42%, rgba(0, 0, 0, 0.68)),
    url("/assets/img/bahamas-cover.webp?v=13");
  background-size: cover;
  background-position: center;
}

.featured-album__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 62% 24%, transparent, rgba(3, 5, 13, 0.2)),
    linear-gradient(135deg, rgba(155, 77, 255, 0.08), rgba(24, 225, 255, 0.06));
  transition: opacity 220ms ease;
}

.featured-album__image:hover::after {
  opacity: 0.55;
}

.featured-album__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.25rem, 3vw, 2.4rem);
}

.featured-album__copy h2,
.photography-section__header h2,
.photo-mosaic-copy h2,
.photo-callout h2 {
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.6vw, 4.2rem);
  line-height: 0.92;
  letter-spacing: -0.065em;
}

.featured-album__copy p:not(.eyebrow),
.photography-section__header p,
.photo-mosaic-copy p,
.photo-callout p {
  margin: 1rem 0 0;
  color: rgba(246, 247, 255, 0.72);
  font-size: clamp(1rem, 1.35vw, 1.08rem);
  line-height: 1.72;
}

.featured-album__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.5rem 0 1.6rem;
}

.featured-album__meta span {
  display: inline-flex;
  padding: 0.5rem 0.72rem;
  border: 1px solid rgba(24, 225, 255, 0.2);
  border-radius: 999px;
  color: rgba(246, 247, 255, 0.78);
  background: rgba(24, 225, 255, 0.055);
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.photography-section {
  margin: 0 0 1rem;
  padding: clamp(1.2rem, 2.8vw, 2rem);
  border-radius: 30px;
}

.photography-section__header {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: end;
  margin-bottom: 1.25rem;
}

.photography-section__header > p {
  max-width: 480px;
  margin-top: 0;
}

.photography-section__header strong {
  color: #fff;
}

.page-photography .album-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.album-card {
  position: relative;
  display: flex;
  min-height: 330px;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.15rem;
  overflow: hidden;
  border: 1px solid rgba(158, 170, 255, 0.16);
  border-radius: 24px;
  background:
    linear-gradient(to bottom, rgba(4, 6, 15, 0.04), rgba(4, 6, 15, 0.72)),
    rgba(255, 255, 255, 0.04);
  background-size: cover;
  background-position: center;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.album-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 74% 18%, rgba(255, 255, 255, 0.16), transparent 26%),
    linear-gradient(to bottom, rgba(3, 5, 13, 0.08), rgba(3, 5, 13, 0.78));
  z-index: 0;
}

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

.album-card:hover {
  transform: translateY(-6px);
  border-color: rgba(24, 225, 255, 0.38);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.28),
    0 0 34px rgba(24, 225, 255, 0.1);
}

.album-card--bahamas {
  background-image:
    linear-gradient(to bottom, rgba(4, 6, 15, 0.04), rgba(4, 6, 15, 0.72)),
    url("/assets/img/bahamas-thumb-01.webp?v=13");
}

.album-card--coming {
  background:
    radial-gradient(circle at 80% 20%, rgba(155, 77, 255, 0.26), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.035);
}

.album-card--cyan {
  background:
    radial-gradient(circle at 80% 20%, rgba(24, 225, 255, 0.22), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.035);
}

.album-card--orange {
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 138, 42, 0.2), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.035);
}

.album-card__tag {
  display: inline-flex;
  width: fit-content;
  padding: 0.46rem 0.68rem;
  border: 1px solid rgba(24, 225, 255, 0.22);
  border-radius: 999px;
  color: rgba(246, 247, 255, 0.82);
  background: rgba(24, 225, 255, 0.08);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.album-card h3 {
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.album-card p {
  margin: 0.8rem 0 0;
  color: rgba(246, 247, 255, 0.7);
  line-height: 1.6;
}

.album-card strong {
  color: #fff;
  font-weight: 800;
}

.photo-mosaic-section {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 1rem;
  align-items: stretch;
  margin: 0 0 1rem;
  padding: 1rem;
  border-radius: 30px;
}

.photo-mosaic-copy {
  padding: clamp(1.25rem, 3vw, 2rem);
}

.photo-mosaic {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1fr;
  grid-auto-rows: 150px;
  gap: 0.75rem;
}

.photo-mosaic span {
  min-height: 120px;
  overflow: hidden;
  border: 1px solid rgba(158, 170, 255, 0.16);
  border-radius: 20px;
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 28px rgba(255, 255, 255, 0.02);
}

.photo-mosaic span:nth-child(1) {
  background-image: url("/assets/img/bahamas-thumb-01.webp?v=13");
}

.photo-mosaic span:nth-child(2) {
  background-image: url("/assets/img/bahamas-thumb-02.webp?v=13");
}

.photo-mosaic span:nth-child(3) {
  background-image: url("/assets/img/bahamas-thumb-03.webp?v=13");
}

.photo-mosaic span:nth-child(4) {
  background-image: url("/assets/img/bahamas-thumb-04.webp?v=13");
}

.photo-mosaic span:nth-child(5) {
  background-image: url("/assets/img/bahamas-thumb-05.webp?v=13");
}

.mosaic-tall {
  grid-row: span 2;
}

.mosaic-wide {
  grid-column: span 2;
}

.photo-callout {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 2rem;
  padding: clamp(1.3rem, 3vw, 2rem);
  border-radius: 30px;
}

.photo-callout div {
  max-width: 760px;
}

.photo-callout .btn {
  flex: 0 0 auto;
}

@media (max-width: 1100px) {
  .photography-hero,
  .featured-album,
  .photo-mosaic-section {
    grid-template-columns: 1fr;
  }

  .photography-hero__visual {
    min-height: 380px;
  }

  .photo-stats,
  .page-photography .album-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .featured-album__image {
    min-height: 360px;
  }
}

@media (max-width: 820px) {
  .photography-hero__copy,
  .photography-hero__visual,
  .featured-album,
  .photography-section,
  .photo-mosaic-section,
  .photo-callout {
    border-radius: 22px;
  }

  .photography-section__header,
  .photo-callout {
    display: block;
  }

  .photography-section__header > p,
  .photo-callout .btn {
    margin-top: 1rem;
  }

  .photo-stats,
  .page-photography .album-grid {
    grid-template-columns: 1fr;
  }

  .album-card {
    min-height: 280px;
  }

  .photo-mosaic {
    grid-template-columns: 1fr;
    grid-auto-rows: 170px;
  }

  .mosaic-tall,
  .mosaic-wide {
    grid-row: auto;
    grid-column: auto;
  }
}

@media (max-width: 520px) {
  .photography-hero__copy {
    min-height: auto;
  }

  .photography-hero__actions {
    flex-direction: column;
  }

  .photography-hero__visual {
    min-height: 320px;
  }

  .photo-frame--large {
    width: 74%;
    height: 260px;
  }

  .photo-frame--small {
    width: 116px;
    height: 92px;
  }

  .photo-frame--top {
    top: 36px;
    right: 18px;
  }

  .photo-frame--bottom {
    left: 18px;
    bottom: 36px;
  }

  .featured-album__image {
    min-height: 280px;
  }
}