:root {
  --ink: #172219;
  --paper: #f5f0e7;
  --muted: #6e766d;
  --line: #d9d2c7;
  --acid: #cdf65f;
  --blue: #4a63d9;
  --red: #ef5e4d;
  --violet: #9870d8;
  --orange: #f4a544;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-rounded, "Avenir Next", Avenir, "Nunito Sans", system-ui, sans-serif;
}

main, footer { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-size: .79rem;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}
a { color: inherit; text-decoration: none; }
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue);
}
.wordmark img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  transition: transform .24s cubic-bezier(.2,.8,.2,1);
}
.wordmark:hover img { transform: rotate(8deg) scale(1.06); }
.eyebrow { margin: 0; color: var(--muted); font-size: .72rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }

.hero { padding: clamp(52px, 9vw, 112px) 0 clamp(70px, 10vw, 124px); }
h1, h2, h3 { font-weight: 600; letter-spacing: -.055em; }
h1 { max-width: 900px; margin: 18px 0 28px; font-size: clamp(3.9rem, 10.4vw, 8.4rem); line-height: .87; }
h1 em { color: var(--blue); font-family: Georgia, serif; font-weight: 400; }
.intro { max-width: 540px; margin: 0 0 32px; color: #425044; font-size: clamp(1.05rem, 2vw, 1.28rem); line-height: 1.62; }
.button {
  display: inline-flex; gap: 18px; align-items: center;
  padding: 15px 19px; border-radius: 999px;
  background: var(--ink); color: white; font-weight: 750;
  transition: transform .2s ease, background .2s ease;
}
.button:hover { background: var(--blue); transform: translateY(-2px); }
.button span { color: var(--acid); font-size: 1.25rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.text-button {
  padding: 10px 2px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: .86rem;
  font-weight: 750;
}
.text-button:hover { border-color: var(--blue); color: var(--blue); }

.work, .notes { border-top: 1px solid var(--line); padding: 26px 0 100px; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 26px; }
h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.6rem); }
.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.project-card { display: block; overflow: hidden; border: 1px solid #26332a; border-radius: 22px; background: #1b2437; }
.tile-grid { display: grid; grid-template-columns: repeat(4, 1fr); aspect-ratio: 16 / 7; gap: 3px; padding: 3px; background: #1b2437; }
.tile { min-height: 30px; border-radius: 3px; }
.tile-a,.tile-f,.tile-k { background: var(--red); }.tile-b,.tile-g,.tile-l { background: var(--blue); }
.tile-c,.tile-h,.tile-m { background: var(--violet); }.tile-d,.tile-i,.tile-o { background: var(--orange); }
.tile-e,.tile-j,.tile-p,.tile-n { background: var(--acid); }
.project-copy { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 22px; color: #eff5ed; }
.project-copy p { margin: 2px 0 0; font-family: Georgia, serif; font-size: 1.35rem; }
.project-copy .project-description {
  max-width: 440px;
  margin-top: 8px;
  color: rgba(239,245,237,.68);
  font-family: ui-rounded, "Avenir Next", Avenir, system-ui, sans-serif;
  font-size: .82rem;
  line-height: 1.5;
}
.project-copy > span { flex: 0 0 auto; color: var(--acid); font-weight: 750; font-size: .8rem; }
.project-copy small { color: rgba(239,245,237,.55); font-size: .65rem; font-weight: 800; letter-spacing: .12em; }
.lantern-card { background: #244332; }
.lantern-preview {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  aspect-ratio: 16 / 7;
  gap: 3px;
  padding: 3px;
  background: #244332;
}
.lantern-preview span, .lantern-preview i { position: relative; min-height: 30px; border-radius: 3px; background: #d4e5aa; }
.lantern-preview span:nth-child(3n) { background: #a9d5c4; }
.lantern-preview span:nth-child(4n) { background: #e9c0aa; }
.lantern-preview i { background: #d9c0e7; }
.lantern-preview i::after {
  content: "";
  position: absolute;
  width: 20%;
  aspect-ratio: .8;
  left: 40%;
  top: 34%;
  border: 2px solid #172219;
  border-radius: 45% 45% 35% 35%;
  background: var(--acid);
}
.signal-card { grid-column: 1 / -1; background: #0b100c; }
.signal-preview {
  position: relative;
  min-height: 235px;
  padding: 30px clamp(24px, 6vw, 72px);
  background:
    repeating-linear-gradient(to bottom, transparent 0 3px, rgba(0,0,0,.12) 3px 4px),
    radial-gradient(circle at 78% 20%, rgba(255,180,84,.09), transparent 18rem),
    #101a12;
}
.signal-score { color: #a4ff68; font-family: ui-monospace, monospace; font-size: clamp(1.3rem, 4vw, 2.2rem); font-weight: 800; letter-spacing: .12em; }
.signal-screen { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; width: min(620px, 100%); margin-top: 23px; }
.signal-screen span { aspect-ratio: 1; border: 1px solid rgba(164,255,104,.13); border-radius: 6px; background: rgba(164,255,104,.025); }
.signal-screen .on { border-color: #c5ff9f; background: #a4ff68; box-shadow: 0 0 12px rgba(164,255,104,.27); }
.signal-screen .amber { border-color: #ffd19b; background: #ffb454; box-shadow: 0 0 10px rgba(255,180,84,.22); }
.signal-labels { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; width: min(620px, 100%); margin-top: 7px; color: #ffb454; text-align: center; }
.signal-labels i { font-family: ui-monospace, monospace; font-size: .65rem; font-style: normal; }
.signal-card .project-copy { border-top: 1px solid rgba(164,255,104,.12); }
.signal-card .project-copy span { color: #a4ff68; }
.choir-card { background: #211c25; }
.choir-preview {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  background:
    radial-gradient(circle at 24% 18%, rgba(142,131,198,.23), transparent 14rem),
    linear-gradient(#2a2230, #121116);
}
.choir-rim {
  position: absolute;
  inset: 38px clamp(32px, 8vw, 100px) -45px;
  border: 2px solid rgba(243,234,223,.25);
  border-top-color: rgba(242,217,133,.55);
  border-radius: 20px 20px 45% 45%;
}
.choir-pebble {
  position: absolute;
  display: block;
  aspect-ratio: 1;
  border: 2px solid #211c23;
  border-radius: 50%;
  box-shadow: inset 6px 6px 0 rgba(255,255,255,.24), 0 0 20px rgba(0,0,0,.22);
}
.choir-one { width: 56px; left: 29%; bottom: 20px; background: #6fc1aa; }
.choir-two { width: 72px; left: 39%; bottom: 16px; background: #69a9c6; }
.choir-three { width: 44px; left: 51%; bottom: 24px; background: #e8b75e; }
.choir-four { width: 86px; left: 58%; bottom: 14px; background: #8e83c6; }
.choir-five { width: 34px; left: 49%; top: 34px; background: #f08b72; }
.choir-preview > span {
  position: absolute;
  right: 12%;
  top: 24px;
  color: var(--acid);
  font-family: Georgia, serif;
  font-size: 3rem;
  transform: rotate(8deg);
}
.choir-card .project-copy { border-top: 1px solid rgba(242,217,133,.14); }
.choir-card .project-copy > span { color: #f2d985; }

.notes { padding-bottom: 72px; }
.notes article { display: grid; grid-template-columns: 140px 1fr; max-width: 760px; gap: 24px; padding: 26px 0; border-top: 1px solid var(--line); }
.date { margin: 4px 0; color: var(--muted); font-size: .72rem; font-weight: 750; letter-spacing: .1em; }
h3 { margin: 0 0 9px; font-size: 1.55rem; }.notes article p:not(.date) { max-width: 600px; margin: 0; color: #526056; line-height: 1.6; }
footer { display: flex; justify-content: space-between; gap: 24px; padding: 30px 0 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; } footer p { margin: 0; }

@media (max-width: 620px) {
  main, footer { width: min(100% - 28px, 1120px); }
  nav { padding-top: 18px; }
  .hero { padding: 42px 0 58px; }
  h1 { font-size: clamp(3.35rem, 17vw, 5.2rem); }
  .wordmark { gap: 8px; }
  .wordmark img { width: 30px; height: 30px; border-radius: 9px; }
  .section-heading { display: block; }.section-heading h2 { margin-top: 8px; }
  .project-grid { grid-template-columns: 1fr; }
  .project-copy { align-items: flex-end; padding: 17px 18px; }
  .project-copy .project-description { font-size: .76rem; }
  .project-copy > span { max-width: 105px; text-align: right; }
  .signal-card { grid-column: auto; }
  .signal-preview { min-height: 190px; padding: 24px 18px; }
  .tile-grid, .lantern-preview { aspect-ratio: 1.7 / 1; }.notes article { grid-template-columns: 1fr; gap: 8px; }
  footer { display: block; } footer a { display: inline-block; margin-top: 12px; }
}
