:root {
  color-scheme: light;
  --ink: #171614;
  --muted: #68645d;
  --line: rgba(23, 22, 20, 0.14);
  --paper: #f7f3ea;
  --paper-deep: #e8dcc7;
  --accent: #177b70;
  --accent-dark: #0e4f4a;
  --rose: #c15c54;
  --blue: #436f94;
  --shadow: 0 24px 70px rgba(44, 35, 22, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

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

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 4vw, 56px);
  color: #fbf7ef;
  mix-blend-mode: difference;
}

.wordmark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  letter-spacing: 0;
}

nav {
  display: flex;
  gap: clamp(16px, 3vw, 34px);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center start;
  overflow: hidden;
  padding: 120px clamp(22px, 6vw, 84px) 70px;
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(12, 34, 33, 0.82), rgba(12, 34, 33, 0.34) 46%, rgba(247, 243, 234, 0.1)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), transparent 52%, rgba(247, 243, 234, 0.9));
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 82% 20%, rgba(193, 92, 84, 0.34), transparent 24rem),
    linear-gradient(140deg, #102d2d 0%, #254a52 34%, #dfcfb4 72%, #f7f3ea 100%);
}

.ambient-grid {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.2) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(900px) rotateX(58deg) translateY(-20%);
  transform-origin: top;
}

.image-window {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(252, 248, 239, 0.16);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
  animation: rise-in 900ms ease both;
}

.image-window-primary {
  right: clamp(18px, 9vw, 124px);
  top: 16%;
  width: min(47vw, 620px);
  aspect-ratio: 1.16;
}

.image-window-secondary {
  right: clamp(18px, 18vw, 260px);
  bottom: 9%;
  width: min(31vw, 380px);
  aspect-ratio: 1.55;
  animation-delay: 180ms;
}

.window-toolbar {
  display: flex;
  gap: 8px;
  padding: 14px;
}

.window-toolbar span,
.browser-bar span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
}

.generated-scene {
  position: absolute;
  inset: 46px 18px 18px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(23, 123, 112, 0.66), transparent 42%),
    linear-gradient(315deg, rgba(67, 111, 148, 0.76), rgba(255, 255, 255, 0.42));
}

.scene-orbit {
  position: absolute;
  width: 42%;
  aspect-ratio: 1;
  right: 10%;
  top: 11%;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 999px;
}

.scene-panel {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.22);
}

.scene-panel-one {
  left: 8%;
  bottom: 13%;
  width: 42%;
  height: 38%;
}

.scene-panel-two {
  left: 18%;
  top: 16%;
  width: 34%;
  height: 16%;
  background: rgba(193, 92, 84, 0.32);
}

.scene-panel-three {
  right: 11%;
  bottom: 15%;
  width: 26%;
  height: 14%;
  background: rgba(23, 123, 112, 0.32);
}

.mini-ui {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.mini-ui span {
  display: block;
  height: 22px;
  background: rgba(255, 255, 255, 0.34);
}

.mini-ui span:nth-child(2) {
  width: 72%;
  background: rgba(255, 255, 255, 0.24);
}

.mini-ui span:nth-child(3) {
  width: 48%;
  background: rgba(193, 92, 84, 0.4);
}

.hero-copy {
  max-width: 680px;
  color: #fffaf1;
  animation: copy-in 700ms ease both;
}

.eyebrow {
  margin: 0 0 14px;
  color: currentColor;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(5.2rem, 18vw, 13.5rem);
  line-height: 0.78;
  font-weight: 400;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 600px;
  margin-bottom: 30px;
  color: rgba(255, 250, 241, 0.86);
  font-size: clamp(1.05rem, 1.8vw, 1.34rem);
}

.hero-link,
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-bottom: 1px solid currentColor;
  font-weight: 700;
}

.intro,
.projects,
.repo-projects {
  padding: clamp(78px, 12vw, 150px) clamp(22px, 6vw, 84px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(280px, 1.15fr);
  gap: clamp(34px, 8vw, 110px);
  background: #f7f3ea;
}

.intro h2,
.section-heading h2,
.pending h2 {
  max-width: 820px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 6vw, 5.4rem);
  line-height: 0.95;
  font-weight: 400;
  letter-spacing: 0;
}

.intro p:last-child,
.pending p {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.8vw, 1.3rem);
}

.projects {
  background: #ece3d5;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
  margin-bottom: clamp(34px, 6vw, 70px);
}

.project-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: clamp(26px, 5vw, 62px);
  align-items: center;
}

.project-media {
  position: relative;
  display: block;
  min-height: 500px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(23, 123, 112, 0.86), rgba(67, 111, 148, 0.74)),
    #193e3e;
  box-shadow: 0 28px 80px rgba(34, 30, 24, 0.18);
}

.project-media:hover .project-overlay,
.project-media:focus-visible .project-overlay {
  opacity: 1;
  transform: translateY(0);
}

.project-media:hover .mock-browser,
.project-media:focus-visible .mock-browser {
  transform: translateY(-8px) scale(1.01);
}

.mock-browser {
  position: absolute;
  inset: clamp(22px, 4vw, 54px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(253, 249, 239, 0.92);
  box-shadow: 0 20px 60px rgba(7, 30, 30, 0.26);
  transition: transform 280ms ease;
}

.browser-bar {
  display: flex;
  gap: 8px;
  height: 42px;
  align-items: center;
  padding: 0 15px;
  background: rgba(23, 22, 20, 0.08);
}

.browser-bar span {
  background: rgba(23, 22, 20, 0.22);
}

.image-lab-ui {
  height: calc(100% - 42px);
  display: grid;
  grid-template-columns: 190px 1fr;
}

.image-lab-ui aside {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 24px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
}

.image-lab-ui aside strong {
  color: var(--ink);
  font-size: 0.9rem;
}

.image-stage {
  display: grid;
  grid-template-rows: 1fr 76px;
  gap: 18px;
  padding: 24px;
}

.image-frame {
  min-height: 0;
  background:
    radial-gradient(circle at 72% 24%, rgba(193, 92, 84, 0.8), transparent 11rem),
    linear-gradient(145deg, #105851, #f1d8b9 52%, #436f94);
}

.variant-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.variant-strip span {
  background: rgba(23, 123, 112, 0.16);
  border: 1px solid var(--line);
}

.project-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: clamp(20px, 4vw, 42px);
  color: #fffaf1;
  background: linear-gradient(180deg, transparent, rgba(7, 30, 30, 0.86));
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.project-overlay h3 {
  max-width: 560px;
  margin-bottom: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 3.5vw, 3.4rem);
  line-height: 1;
  font-weight: 400;
}

.project-overlay p {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 250, 241, 0.84);
}

.project-details {
  max-width: 430px;
}

.project-kicker {
  margin-bottom: 12px;
  color: var(--accent-dark);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.project-details h3 {
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 4.1rem);
  line-height: 0.98;
  font-weight: 400;
}

.project-details p {
  color: var(--muted);
  font-size: 1.05rem;
}

.repo-projects {
  background: #123232;
  color: #fffaf1;
}

.repo-heading {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(280px, 1.1fr);
  gap: clamp(30px, 8vw, 100px);
  margin-bottom: clamp(36px, 7vw, 78px);
}

.repo-heading h2 {
  max-width: 860px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.3rem, 6vw, 5.7rem);
  line-height: 0.95;
  font-weight: 400;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 250, 241, 0.18);
  border: 1px solid rgba(255, 250, 241, 0.18);
}

.project-card {
  display: grid;
  grid-template-rows: minmax(260px, 1fr) auto;
  min-height: 440px;
  background: #123232;
}

.project-card:hover .soft-overlay,
.project-card:focus-visible .soft-overlay {
  opacity: 1;
  transform: translateY(0);
}

.project-card:hover .ui-snippet,
.project-card:focus-visible .ui-snippet {
  filter: saturate(1.08);
}

.ui-snippet {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  padding: 22px;
  transition: filter 220ms ease;
}

.snippet-label {
  position: relative;
  z-index: 2;
  display: inline-flex;
  color: rgba(255, 250, 241, 0.76);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.soft-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  min-height: 44%;
  display: flex;
  align-items: end;
  padding: 24px;
  background: linear-gradient(180deg, transparent, rgba(6, 22, 22, 0.9));
  color: rgba(255, 250, 241, 0.9);
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.card-copy {
  padding: 24px;
  border-top: 1px solid rgba(255, 250, 241, 0.12);
}

.card-copy h3 {
  margin-bottom: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 3vw, 2.7rem);
  line-height: 1;
  font-weight: 400;
}

.card-copy p {
  margin: 0;
  color: rgba(255, 250, 241, 0.68);
}

.snippet-fret {
  background: linear-gradient(145deg, #171614, #436f94);
}

.lane {
  position: absolute;
  left: 18%;
  right: 18%;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.16);
}

.lane-one {
  top: 34%;
}

.lane-two {
  top: 50%;
}

.lane-three {
  top: 66%;
}

.hit-line {
  position: absolute;
  top: 24%;
  bottom: 22%;
  left: 30%;
  width: 3px;
  background: var(--rose);
}

.snippet-locus {
  background:
    linear-gradient(90deg, rgba(255, 250, 241, 0.1) 1px, transparent 1px),
    linear-gradient(rgba(255, 250, 241, 0.1) 1px, transparent 1px),
    linear-gradient(145deg, #284349, #e8dcc7);
  background-size: 38px 38px, 38px 38px, auto;
}

.map-path {
  position: absolute;
  left: 17%;
  top: 43%;
  width: 66%;
  height: 20%;
  border-top: 3px solid rgba(23, 123, 112, 0.72);
  border-right: 3px solid rgba(23, 123, 112, 0.72);
  transform: skewY(-10deg);
}

.pin,
.target-dot {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--rose);
  box-shadow: 0 0 0 10px rgba(193, 92, 84, 0.18);
}

.pin-one {
  left: 28%;
  top: 42%;
}

.pin-two {
  right: 24%;
  top: 54%;
}

.snippet-edfolio {
  background: linear-gradient(145deg, #0e4f4a, #f2d7b7);
}

.balance-line {
  position: absolute;
  left: 18%;
  right: 18%;
  top: 34%;
  height: 42%;
  border-left: 2px solid rgba(255, 250, 241, 0.34);
  border-bottom: 2px solid rgba(255, 250, 241, 0.34);
}

.balance-line::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 8%;
  top: 36%;
  height: 3px;
  background: var(--accent-dark);
  transform: rotate(-12deg);
  transform-origin: left;
}

.money-row {
  position: absolute;
  left: 54%;
  right: 16%;
  top: 42%;
  height: 18px;
  background: rgba(255, 250, 241, 0.42);
}

.money-row.short {
  top: 54%;
  right: 25%;
  background: rgba(255, 250, 241, 0.26);
}

.snippet-eglantine {
  background: linear-gradient(145deg, #c15c54, #e8dcc7 58%, #436f94);
}

.storybook-page {
  position: absolute;
  left: 19%;
  top: 27%;
  width: 34%;
  height: 44%;
  background: rgba(255, 250, 241, 0.72);
  box-shadow: 12px 12px 0 rgba(23, 22, 20, 0.12);
}

.storybook-page::after {
  content: "";
  position: absolute;
  left: 16%;
  right: 16%;
  top: 20%;
  height: 42%;
  background: linear-gradient(135deg, var(--rose), var(--accent));
}

.storybook-page.page-two {
  left: 48%;
  top: 33%;
  opacity: 0.72;
}

.snippet-cobra {
  background: linear-gradient(145deg, #233c25, #123232 50%, #d6bd85);
}

.arena {
  position: absolute;
  inset: 27% 16% 19%;
  border: 1px solid rgba(255, 250, 241, 0.22);
  background:
    radial-gradient(circle at 78% 28%, rgba(193, 92, 84, 0.48), transparent 4rem),
    rgba(255, 250, 241, 0.08);
}

.cobra-path {
  position: absolute;
  left: 22%;
  top: 49%;
  width: 46%;
  height: 24px;
  border-radius: 999px;
  background: repeating-linear-gradient(90deg, #0d1710 0 18px, #f09a36 18px 28px);
}

.target-dot {
  right: 24%;
  top: 37%;
  width: 16px;
  height: 16px;
}

.snippet-redline {
  background: linear-gradient(145deg, #f7f3ea, #436f94);
}

.doc-line {
  position: absolute;
  left: 18%;
  right: 18%;
  top: 36%;
  height: 14px;
  background: rgba(23, 22, 20, 0.28);
}

.doc-line.marked {
  top: 50%;
  background: rgba(193, 92, 84, 0.72);
}

.doc-line.short {
  top: 64%;
  right: 38%;
}

.project-header {
  color: #fffaf1;
  mix-blend-mode: normal;
}

.detail-fret {
  background:
    linear-gradient(90deg, rgba(23, 22, 20, 0.85), rgba(23, 22, 20, 0.34)),
    linear-gradient(135deg, #171614, #436f94);
}

.detail-locus {
  background:
    linear-gradient(90deg, rgba(18, 50, 50, 0.84), rgba(18, 50, 50, 0.28)),
    linear-gradient(135deg, #123232, #e8dcc7);
}

.detail-edfolio {
  background:
    linear-gradient(90deg, rgba(14, 79, 74, 0.88), rgba(14, 79, 74, 0.3)),
    linear-gradient(135deg, #0e4f4a, #f2d7b7);
}

.detail-eglantine {
  background:
    linear-gradient(90deg, rgba(91, 37, 41, 0.86), rgba(91, 37, 41, 0.26)),
    linear-gradient(135deg, #c15c54, #e8dcc7 58%, #436f94);
}

.detail-cobra {
  background:
    linear-gradient(90deg, rgba(18, 42, 23, 0.88), rgba(18, 42, 23, 0.24)),
    linear-gradient(135deg, #233c25, #123232 50%, #d6bd85);
}

.detail-redline {
  background:
    linear-gradient(90deg, rgba(42, 50, 61, 0.88), rgba(42, 50, 61, 0.24)),
    linear-gradient(135deg, #436f94, #f7f3ea);
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  margin-top: 28px;
}

.detail-body .text-link {
  color: var(--accent-dark);
}

/* retained for older project-detail markup */
.pending {
  min-height: 62svh;
  background: #123232;
  color: #fffaf1;
}

.pending p {
  color: rgba(255, 250, 241, 0.72);
}

.detail-hero {
  min-height: 82svh;
  display: grid;
  align-items: end;
  padding: 130px clamp(22px, 6vw, 84px) clamp(54px, 8vw, 96px);
  background:
    linear-gradient(90deg, rgba(18, 50, 50, 0.86), rgba(18, 50, 50, 0.34)),
    radial-gradient(circle at 78% 28%, rgba(193, 92, 84, 0.38), transparent 22rem),
    linear-gradient(135deg, #123232, #436f94 52%, #e8dcc7);
  color: #fffaf1;
}

.detail-hero div {
  max-width: 920px;
}

.detail-hero h1 {
  max-width: 980px;
  font-size: clamp(4.2rem, 12vw, 10rem);
}

.detail-hero p:last-child {
  max-width: 680px;
  color: rgba(255, 250, 241, 0.82);
  font-size: clamp(1.08rem, 2vw, 1.45rem);
}

.detail-body {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) auto;
  gap: clamp(28px, 6vw, 86px);
  align-items: end;
  padding: clamp(78px, 12vw, 150px) clamp(22px, 6vw, 84px);
  background: #f7f3ea;
}

.detail-panel {
  max-width: 820px;
}

.detail-panel h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 6vw, 5.4rem);
  line-height: 0.95;
  font-weight: 400;
}

.detail-panel p:last-child {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.8vw, 1.3rem);
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes copy-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@media (max-width: 860px) {
  .site-header {
    padding: 18px 20px;
  }

  nav {
    gap: 14px;
    font-size: 0.72rem;
  }

  .hero {
    min-height: 92svh;
    align-items: end;
  }

  .hero::after {
    background:
      linear-gradient(180deg, rgba(12, 34, 33, 0.12), rgba(12, 34, 33, 0.85) 58%, rgba(12, 34, 33, 0.96)),
      linear-gradient(180deg, transparent, rgba(247, 243, 234, 0.25));
  }

  .image-window-primary {
    top: 12%;
    right: -20%;
    width: 92vw;
  }

  .image-window-secondary {
    display: none;
  }

  .intro,
  .project-feature,
  .detail-body,
  .repo-heading {
    grid-template-columns: 1fr;
  }

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

  .section-heading {
    display: block;
  }

  .project-media {
    min-height: 430px;
  }

  .image-lab-ui {
    grid-template-columns: 1fr;
  }

  .image-lab-ui aside {
    display: none;
  }

  .project-overlay {
    opacity: 1;
    transform: none;
  }

  .soft-overlay {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: clamp(4.4rem, 25vw, 7rem);
  }

  .hero-copy {
    padding-bottom: 18px;
  }

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

  .mock-browser {
    inset: 16px;
  }

  .image-stage {
    padding: 16px;
    grid-template-rows: 1fr 54px;
  }

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

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

/* Aisthos brand refresh: logo-led black, ivory, and gold system. */
:root {
  --ink: #080807;
  --ink-soft: #1c1a15;
  --muted: #6f6655;
  --line: rgba(8, 8, 7, 0.12);
  --paper: #f8f4ec;
  --paper-deep: #ece3d2;
  --gold: #c9a24d;
  --gold-soft: #efe0b8;
  --ivory: #fffaf0;
  --shadow: 0 26px 80px rgba(8, 8, 7, 0.14);
}

body {
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.92), rgba(248, 244, 236, 1) 32%),
    var(--paper);
  color: var(--ink);
}

.site-header {
  position: sticky;
  height: 78px;
  padding: 0 clamp(18px, 5vw, 64px);
  color: var(--ink);
  background: rgba(255, 250, 240, 0.9);
  border-bottom: 1px solid rgba(8, 8, 7, 0.12);
  backdrop-filter: blur(18px);
  mix-blend-mode: normal;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 1.28rem;
  font-weight: 800;
}

.wordmark img {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(8, 8, 7, 0.18);
}

nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  gap: clamp(24px, 5vw, 64px);
  color: #272335;
  font-size: 0.94rem;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
}

nav a {
  position: relative;
}

nav a:first-child::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -15px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--gold);
  transform: translateX(-50%);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(8, 8, 7, 0.14);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.68);
  font-size: 0.94rem;
  font-weight: 750;
  box-shadow: 0 12px 30px rgba(8, 8, 7, 0.06);
}

.hero {
  min-height: calc(100svh - 78px);
  display: grid;
  grid-template-columns: minmax(320px, 0.78fr) minmax(520px, 1.22fr);
  gap: clamp(42px, 5vw, 76px);
  align-items: center;
  padding: clamp(36px, 6vw, 70px) clamp(24px, 5vw, 64px) clamp(36px, 6vw, 70px);
  background:
    linear-gradient(90deg, rgba(8, 8, 7, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(8, 8, 7, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 76px 76px, 76px 76px, auto;
}

.hero::after,
.hero-visual {
  display: none;
}

.hero-copy {
  max-width: 520px;
  position: relative;
  z-index: 2;
  color: var(--ink);
}

.hero .eyebrow,
.intro .eyebrow,
.projects .eyebrow,
.repo-projects .eyebrow {
  color: var(--gold);
}

h1 {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: clamp(3.8rem, 8.6vw, 7.7rem);
  line-height: 0.9;
}

.hero-copy h2 {
  margin: 0 0 20px;
  max-width: 520px;
  color: var(--gold);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: clamp(2.05rem, 4.15vw, 3.85rem);
  line-height: 1;
  font-weight: 850;
}

.hero-lede {
  max-width: 610px;
  margin-bottom: 24px;
  color: #312c22;
  font-size: clamp(1rem, 1.3vw, 1.14rem);
}

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

.hero-link {
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid rgba(8, 8, 7, 0.14);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.74);
  color: var(--ink);
  box-shadow: 0 14px 32px rgba(8, 8, 7, 0.08);
}

.hero-link-primary {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--ivory);
}

.hero-showcase {
  position: relative;
  z-index: 1;
  justify-self: end;
  width: min(50vw, 640px);
  min-height: min(56vw, 590px);
  transform: none;
  animation: rise-in 800ms ease both;
}

.hero-logo {
  position: absolute;
  top: 50%;
  left: 51%;
  width: min(38vw, 430px);
  max-width: 74%;
  border-radius: 8px;
  box-shadow: 0 26px 80px rgba(8, 8, 7, 0.24);
  transform: translate(-50%, -50%);
}

.float-card {
  position: absolute;
  display: grid;
  gap: 12px;
  width: min(32vw, 252px);
  min-height: 190px;
  padding: 20px;
  border: 1px solid rgba(201, 162, 77, 0.34);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.94);
  box-shadow: var(--shadow);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease;
}

.float-card:hover,
.float-card:focus-visible {
  transform: translateY(-8px) rotate(var(--tilt, 0deg));
  box-shadow: 0 34px 90px rgba(8, 8, 7, 0.2);
}

.float-card span {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.float-card strong {
  max-width: 220px;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.18;
}

.float-card i {
  align-self: end;
  display: block;
  height: 78px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(8, 8, 7, 0.14) 1px, transparent 1px),
    linear-gradient(rgba(8, 8, 7, 0.12) 1px, transparent 1px),
    linear-gradient(145deg, var(--ink), var(--gold-soft));
  background-size: 18px 18px, 18px 18px, auto;
}

.float-card img {
  align-self: end;
  display: block;
  width: 100%;
  height: 92px;
  border-radius: 8px;
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.76) contrast(0.98) brightness(0.78);
}

.card-fret {
  --tilt: 7deg;
  top: 7%;
  right: 6%;
  transform: rotate(var(--tilt));
}

.card-locus {
  --tilt: -3deg;
  left: 6%;
  bottom: 8%;
  transform: rotate(var(--tilt));
}

.card-edfolio {
  --tilt: 5deg;
  right: 4%;
  bottom: 14%;
  transform: rotate(var(--tilt));
}

.intro {
  background: #0a0a09;
  color: var(--ivory);
}

.intro p:last-child {
  color: rgba(255, 250, 240, 0.72);
}

.projects {
  background: var(--paper);
}

.section-heading h2,
.intro h2,
.repo-heading h2 {
  color: inherit;
}

.project-media {
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(8, 8, 7, 0.9), rgba(201, 162, 77, 0.55)),
    #0a0a09;
}

.mock-browser {
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.94);
}

.image-frame {
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 250, 240, 0.12) 1px, transparent 1px),
    linear-gradient(rgba(255, 250, 240, 0.12) 1px, transparent 1px),
    linear-gradient(145deg, #050505, #c9a24d);
  background-size: 24px 24px, 24px 24px, auto;
}

.project-kicker,
.project-details .text-link,
.detail-body .text-link {
  color: #8a6a20;
}

.repo-projects {
  background: #090908;
  color: var(--ivory);
}

.project-grid {
  gap: 16px;
  background: transparent;
  border: 0;
}

.project-card {
  overflow: hidden;
  border: 1px solid rgba(255, 250, 240, 0.14);
  border-radius: 8px;
  background: #11100d;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.18);
}

.ui-snippet {
  background: linear-gradient(145deg, #080807, #c9a24d) !important;
}

.ui-snippet.has-snapshot {
  background: #080807 !important;
}

.ui-snippet.has-snapshot > :not(.snapshot-img):not(.snippet-label):not(.soft-overlay) {
  display: none;
}

.snapshot-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.72) contrast(0.95) brightness(0.72);
  transform: scale(1.02);
}

.ui-snippet.has-snapshot::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(8, 8, 7, 0.18), rgba(8, 8, 7, 0.58)),
    linear-gradient(135deg, rgba(8, 8, 7, 0.34), rgba(201, 162, 77, 0.28));
  pointer-events: none;
}

.ui-snippet.has-snapshot .snippet-label,
.ui-snippet.has-snapshot .soft-overlay {
  z-index: 2;
}

.card-copy p {
  color: rgba(255, 250, 240, 0.68);
}

.soft-overlay {
  background: linear-gradient(180deg, transparent, rgba(8, 8, 7, 0.92));
}

.detail-hero {
  background:
    linear-gradient(90deg, rgba(8, 8, 7, 0.92), rgba(8, 8, 7, 0.58)),
    linear-gradient(135deg, #080807, #c9a24d);
}

@media (max-width: 980px) {
  .site-header {
    position: sticky;
  }

  nav {
    position: static;
    transform: none;
  }

  .header-cta {
    display: none;
  }

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

  .hero-showcase {
    min-height: 560px;
    transform: none;
  }

  .hero-logo {
    width: min(76vw, 360px);
  }

  .float-card {
    width: min(42vw, 250px);
  }
}

@media (max-width: 640px) {
  .site-header {
    gap: 14px;
    height: auto;
    min-height: 72px;
    flex-wrap: wrap;
    padding: 14px 18px;
  }

  .wordmark img {
    width: 38px;
    height: 38px;
  }

  nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.86rem;
  }

  nav a:first-child::after {
    bottom: -8px;
  }

  .hero {
    padding-top: 42px;
    background-size: 48px 48px, 48px 48px, auto;
  }

  .hero-showcase {
    min-height: 620px;
  }

  .float-card {
    width: 58vw;
    min-height: 168px;
  }

  .card-fret {
    right: 0;
    top: 23%;
  }

  .card-locus {
    left: 0;
    bottom: 9%;
  }

  .card-edfolio {
    right: 0;
    bottom: 0;
  }
}

/* Keep experiment grid cells visually identical regardless of copy length. */
.repo-projects .project-grid {
  grid-auto-rows: 600px;
  align-items: stretch;
}

.repo-projects .project-card {
  height: 100%;
  min-height: 0;
  grid-template-rows: minmax(0, 360px) minmax(0, 240px);
}

.repo-projects .ui-snippet {
  min-height: 0;
  height: 100%;
}

.repo-projects .card-copy {
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(22px, 3vw, 34px);
}

.repo-projects .card-copy h3 {
  font-size: clamp(2rem, 2.7vw, 2.7rem);
}

.repo-projects .card-copy p {
  max-width: 92%;
  line-height: 1.45;
}

@media (max-width: 980px) {
  .repo-projects .project-grid {
    grid-auto-rows: 560px;
  }

  .repo-projects .project-card {
    grid-template-rows: minmax(0, 330px) minmax(0, 230px);
  }
}

@media (max-width: 640px) {
  .repo-projects .project-grid {
    grid-auto-rows: auto;
  }

  .repo-projects .project-card {
    min-height: 430px;
    grid-template-rows: 260px minmax(170px, auto);
  }
}
