:root {
  --bg: #fffdf8;
  --ink: #090909;
  --muted: #4d4d46;
  --line: #d9d4c9;
  --cyan: #12a8f4;
  --red: #ff4d43;
  --mint: #38d190;
  --yellow: #ffd84a;
  --blue-soft: #e9fbff;
  --warm: #fff5d9;
  --shadow: 0 22px 60px rgba(20, 19, 16, 0.16);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

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

.site-header {
  align-items: center;
  background: rgba(255, 253, 248, 0.92);
  border-bottom: 1px solid var(--line);
  display: flex;
  height: 78px;
  justify-content: space-between;
  left: 0;
  padding: 0 clamp(22px, 5vw, 64px);
  position: sticky;
  right: 0;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
}

.brand {
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

nav {
  display: flex;
  gap: clamp(18px, 4vw, 54px);
  font-size: 0.97rem;
  font-weight: 800;
}

nav a {
  padding: 10px 0;
}

.hero {
  align-items: center;
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(520px, 1.28fr);
  min-height: calc(100vh - 78px);
  overflow: hidden;
  padding: clamp(44px, 6vw, 88px) clamp(22px, 5vw, 64px) 0;
  position: relative;
}

.hero::after {
  background: linear-gradient(90deg, var(--bg) 0%, rgba(255, 253, 248, 0.9) 18%, rgba(255, 253, 248, 0) 45%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.hero-copy {
  max-width: 560px;
  padding-top: clamp(12px, 4vw, 62px);
  position: relative;
  z-index: 2;
}

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

h1 {
  font-size: clamp(2.85rem, 10.4vw, 9.2rem);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 0.9;
  max-width: 100%;
  white-space: nowrap;
}

.hero-copy p {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 650;
  line-height: 1.42;
  margin-top: 26px;
  max-width: 470px;
}

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

.button {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-size: 0.98rem;
  font-weight: 850;
  gap: 12px;
  min-height: 58px;
  padding: 0 28px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

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

.button svg {
  height: 19px;
  width: 19px;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.primary {
  background: var(--cyan);
  box-shadow: 0 14px 25px rgba(18, 168, 244, 0.28);
  color: white;
}

.secondary {
  background: white;
  border: 2px solid var(--ink);
}

.workbench-scene {
  min-height: 680px;
  position: relative;
  z-index: 1;
}

.workbench-art {
  align-self: end;
  margin: 0 -3vw 0 -8vw;
  min-height: 620px;
  position: relative;
  z-index: 1;
}

.workbench-art img {
  display: block;
  filter: drop-shadow(0 24px 42px rgba(20, 19, 16, 0.12));
  height: min(72vw, 760px);
  max-height: calc(100vh - 78px);
  min-height: 560px;
  object-fit: cover;
  object-position: center right;
  width: 100%;
}

.workbench-art figcaption {
  background: #111;
  bottom: 26px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.13em;
  left: 28px;
  padding: 8px 12px;
  position: absolute;
  text-transform: uppercase;
}

.lamp {
  background: radial-gradient(circle at 50% 90%, #fff4bc 0 24%, transparent 25%),
    linear-gradient(120deg, #0c0c0b 0 55%, #2e2d29 56%);
  border-radius: 70% 70% 45% 45%;
  height: 102px;
  position: absolute;
  right: 38px;
  top: 8px;
  transform: rotate(18deg);
  width: 134px;
}

.lamp::before {
  background: #12110f;
  content: "";
  height: 10px;
  position: absolute;
  right: 88px;
  top: -28px;
  transform: rotate(-25deg);
  width: 120px;
}

.sticky {
  align-items: center;
  box-shadow: 0 12px 24px rgba(22, 20, 16, 0.16);
  display: flex;
  font-family: "Comic Sans MS", "Segoe Print", cursive;
  font-size: 1rem;
  font-weight: 800;
  height: 86px;
  justify-content: center;
  line-height: 1.15;
  padding: 10px;
  position: absolute;
  text-align: center;
  width: 96px;
}

.sticky-yellow {
  background: var(--yellow);
  left: 120px;
  top: 22px;
  transform: rotate(-6deg);
}

.sticky-pink {
  background: #ffb7ba;
  right: 140px;
  top: 155px;
  transform: rotate(8deg);
}

.sticky-mint {
  background: #9ee9c5;
  left: 32px;
  top: 280px;
  transform: rotate(-4deg);
}

.window,
.code-card,
.terminal-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #c9c4b8;
  border-radius: 8px;
  box-shadow: var(--shadow);
  position: absolute;
}

.window-bar {
  align-items: center;
  display: flex;
  gap: 6px;
  height: 24px;
  padding: 8px 10px 0;
}

.window-bar span {
  background: #ff6257;
  border-radius: 50%;
  display: block;
  height: 8px;
  width: 8px;
}

.window-bar span:nth-child(2) {
  background: #ffc33d;
}

.window-bar span:nth-child(3) {
  background: #34c978;
}

.pixel-window {
  display: grid;
  gap: 14px;
  grid-template-columns: 132px 140px;
  left: 170px;
  padding: 0 16px 16px;
  top: 125px;
  width: 330px;
}

.pixel-window .window-bar {
  grid-column: 1 / -1;
}

.pixel-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  height: 132px;
  overflow: hidden;
}

.pixel-grid i {
  background: hsl(calc(var(--n, 1) * 24), 80%, 58%);
  display: block;
}

.pixel-grid i:nth-child(3n) {
  --n: 2;
}

.pixel-grid i:nth-child(4n) {
  --n: 9;
}

.pixel-grid i:nth-child(5n) {
  --n: 15;
}

.control-lines {
  display: grid;
  gap: 20px;
  padding-top: 18px;
}

.control-lines span {
  background: linear-gradient(90deg, #111 0 55%, var(--cyan) 55%);
  border-radius: 999px;
  height: 6px;
}

.todo-window {
  padding: 0 18px 18px;
  right: 26px;
  top: 300px;
  width: 230px;
}

.todo-window strong {
  display: block;
  font-size: 1rem;
  margin: 6px 0 14px;
}

.todo-window p {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.9;
  padding-left: 18px;
  position: relative;
}

.todo-window p::before {
  border: 1px solid currentColor;
  border-radius: 50%;
  content: "";
  height: 7px;
  left: 0;
  position: absolute;
  top: 11px;
  width: 7px;
}

.code-card {
  background: #171914;
  color: #d7ffd8;
  left: 60px;
  padding: 0 22px 24px;
  top: 365px;
  transform: rotate(1deg);
  width: 410px;
}

pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92rem;
  line-height: 1.7;
  margin: 8px 0 0;
  white-space: pre-wrap;
}

.terminal-card {
  background: #20231f;
  bottom: 38px;
  color: #7dff91;
  display: grid;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.82rem;
  gap: 8px;
  padding: 18px;
  right: 130px;
  transform: rotate(2deg);
  width: 220px;
}

.experiment-rack {
  align-items: end;
  background: #9a6630;
  border-radius: 6px;
  bottom: 2px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 14px;
  left: 0;
  padding: 18px 16px 24px;
  position: absolute;
}

.experiment-rack b {
  background: #111;
  color: white;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  padding: 8px 10px;
  position: absolute;
  text-transform: uppercase;
  top: calc(100% - 18px);
}

.experiment-rack span {
  background: linear-gradient(0deg, var(--liquid) 0 38%, transparent 39%), rgba(255, 255, 255, 0.65);
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 0 0 12px 12px;
  display: block;
  height: 82px;
  width: 24px;
}

.section-inner {
  margin: 0 auto;
  max-width: 1180px;
  padding: clamp(70px, 10vw, 112px) clamp(22px, 5vw, 48px);
}

.workbench-section {
  background: linear-gradient(120deg, #e9fbff, #f2fff9);
  border-top: 1px solid var(--line);
}

.section-label {
  color: #0078ee;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.18em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(2.15rem, 5vw, 4.1rem);
  font-weight: 950;
  line-height: 1;
}

.experiment-list {
  margin-top: 32px;
}

.experiment-row {
  align-items: center;
  border-bottom: 1px solid rgba(20, 20, 20, 0.18);
  display: grid;
  gap: clamp(20px, 4vw, 52px);
  grid-template-columns: 126px 1fr auto;
  padding: 25px 0;
}

.experiment-icon {
  align-items: center;
  border-radius: 8px;
  color: white;
  display: flex;
  height: 116px;
  justify-content: center;
  width: 116px;
}

.experiment-icon svg {
  height: 62px;
  width: 62px;
}

.blue {
  background: var(--cyan);
}

.red {
  background: var(--red);
}

.green {
  background: var(--mint);
}

h3 {
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 950;
}

.experiment-row p,
.about-copy p,
.contact-section p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.55;
  margin-top: 8px;
  max-width: 520px;
}

.experiment-row a,
.text-link {
  color: #0078ee;
  font-size: 1rem;
  font-weight: 900;
  white-space: nowrap;
}

.sites-section {
  background: #fffdf8;
  border-top: 1px solid var(--line);
}

.site-list {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 34px;
}

.site-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 36px rgba(20, 19, 16, 0.08);
  display: grid;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.site-card:hover {
  box-shadow: 0 24px 48px rgba(20, 19, 16, 0.13);
  transform: translateY(-3px);
}

.site-card img {
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: cover;
  object-position: top center;
  width: 100%;
}

.site-card span {
  display: grid;
  gap: 7px;
  padding: 18px;
}

.site-card strong {
  font-size: 1.15rem;
  font-weight: 950;
}

.site-card small {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.45;
}
.about-section {
  background: linear-gradient(100deg, #fff8db 0%, #fffdf8 58%);
  border-top: 1px solid var(--line);
}

.about-grid {
  align-items: center;
  display: grid;
  gap: clamp(42px, 8vw, 110px);
  grid-template-columns: 0.95fr 1fr;
}

.portrait-card {
  margin: 0;
  position: relative;
}

.portrait-card img {
  border-radius: 8px;
  display: block;
  filter: drop-shadow(0 20px 38px rgba(20, 19, 16, 0.12));
  height: auto;
  width: 100%;
}

.paper {
  background: white;
  border: 2px solid #161616;
  height: 88px;
  position: absolute;
  width: 70px;
}

.paper::after {
  background: repeating-linear-gradient(#111 0 2px, transparent 2px 12px);
  content: "";
  inset: 24px 12px 12px;
  opacity: 0.25;
  position: absolute;
}

.paper-one {
  left: 18px;
  top: 32px;
  transform: rotate(-6deg);
}

.paper-two {
  right: 72px;
  top: 8px;
  transform: rotate(4deg);
}

.bob-portrait {
  bottom: 0;
  height: 330px;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  width: 310px;
}

.head {
  background: #ffe2be;
  border: 4px solid #111;
  border-radius: 46% 46% 42% 42%;
  height: 118px;
  left: 96px;
  position: absolute;
  top: 30px;
  width: 110px;
}

.hair {
  background: #111;
  border-radius: 60% 50% 25% 25%;
  height: 48px;
  left: 90px;
  position: absolute;
  top: 20px;
  transform: rotate(-8deg);
  width: 122px;
}

.glasses {
  border-bottom: 4px solid #111;
  height: 36px;
  left: 107px;
  position: absolute;
  top: 86px;
  width: 88px;
}

.glasses::before,
.glasses::after {
  border: 4px solid #111;
  border-radius: 50%;
  content: "";
  height: 30px;
  position: absolute;
  top: -6px;
  width: 30px;
}

.glasses::before {
  left: 0;
}

.glasses::after {
  right: 0;
}

.body {
  background: white;
  border: 4px solid #111;
  border-radius: 44px 44px 14px 14px;
  height: 178px;
  left: 56px;
  position: absolute;
  top: 146px;
  width: 196px;
}

.notebook {
  background: white;
  border: 4px solid #111;
  border-radius: 8px;
  bottom: 8px;
  height: 72px;
  left: 42px;
  position: absolute;
  transform: rotate(4deg);
  width: 225px;
}

.red-label,
.text-link {
  color: var(--red);
}

.about-copy .lead {
  color: var(--ink);
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  font-weight: 850;
  line-height: 1.35;
  margin-top: 22px;
}

.text-link {
  display: inline-block;
  margin-top: 24px;
}

.contact-section {
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.contact-grid {
  align-items: start;
  display: grid;
  gap: 44px;
  grid-template-columns: 1fr 0.95fr;
  padding-bottom: 44px;
}

address {
  display: grid;
  font-style: normal;
  gap: 20px;
  padding-top: 14px;
}

address a {
  align-items: center;
  display: flex;
  font-size: 1rem;
  font-weight: 800;
  gap: 20px;
}

address svg {
  height: 28px;
  width: 28px;
}

.site-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  font-size: 0.9rem;
  font-weight: 750;
  justify-content: space-between;
  padding: 26px clamp(22px, 5vw, 64px);
}

@media (max-width: 920px) {
  .site-header {
    height: auto;
    min-height: 72px;
  }

  nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 34px;
  }

  .hero::after {
    background: linear-gradient(180deg, var(--bg) 0%, rgba(255, 253, 248, 0) 46%);
  }

  .hero-copy {
    padding-top: 14px;
  }

  .workbench-art {
    margin: 26px -22px 0;
    min-height: 0;
  }

  .workbench-art img {
    height: auto;
    max-height: none;
    min-height: 0;
    object-fit: contain;
    width: 100%;
  }

  .experiment-row {
    grid-template-columns: 92px 1fr;
  }

  .experiment-row a {
    grid-column: 2;
  }

  .experiment-icon {
    height: 82px;
    width: 82px;
  }

  .experiment-icon svg {
    height: 46px;
    width: 46px;
  }

  .site-list {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 560px) {
  .hero {
    padding-left: 22px;
    padding-right: 22px;
  }

  h1 {
    font-size: clamp(2.25rem, 12vw, 3.9rem);
  }

  .hero-copy p {
    font-size: 1.16rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    justify-content: center;
  }

  .workbench-art {
    margin-left: -34px;
    margin-right: -34px;
  }

  .workbench-art figcaption {
    bottom: 16px;
    left: 22px;
  }

  .experiment-row {
    gap: 16px;
    grid-template-columns: 72px 1fr;
  }

  .experiment-icon {
    height: 64px;
    width: 64px;
  }

  .experiment-icon svg {
    height: 36px;
    width: 36px;
  }
}

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