:root {
  --corn: #6495ed;
  --bg: #000;
  --fg: #eef2fb;
  --mut: #8d99b3;
  --line: #1a2240;
  --acc: #6495ed;
  --card: #0a0f1f;
  --pad: clamp(1.25rem, 4vw, 3.5rem);
}
[data-theme="light"] {
  --bg: #f3f6fd;
  --fg: #080d1c;
  --mut: #56617c;
  --line: #ccd6ee;
  --acc: #2a57b8;
  --card: #e6ecfa;
}
* {
  box-sizing: border-box;
  margin: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--bg);
  color: var(--fg);
  font:
    400 1.05rem/1.6 "Inter Tight",
    system-ui,
    sans-serif;
  transition:
    background 0.3s,
    color 0.3s;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    420px circle at var(--mx, 70%) var(--my, 20%),
    color-mix(in srgb, var(--corn) 18%, transparent),
    transparent 70%
  );
  z-index: 0;
}
main,
footer,
.bar {
  position: relative;
  z-index: 1;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--corn);
  outline-offset: 3px;
}
.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  background: var(--corn);
  color: #000;
  padding: 0.5rem 1rem;
  z-index: 9;
}
.bar {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem var(--pad);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  z-index: 5;
}
.mark {
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.02em;
}
nav {
  display: flex;
  gap: 1.4rem;
}
nav a {
  text-decoration: none;
  color: var(--mut);
  font-size: 0.95rem;
}
nav a:hover {
  color: var(--acc);
}
#theme {
  width: 42px;
  height: 24px;
  border-radius: 99px;
  border: 1px solid var(--mut);
  background: none;
  cursor: pointer;
  padding: 2px;
}
#theme span {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--corn);
  transition: transform 0.25s;
}
[data-theme="light"] #theme span {
  transform: translateX(18px);
}
section {
  padding: clamp(3.5rem, 9vw, 8rem) var(--pad);
  border-top: 1px solid var(--line);
}
h2 {
  font:
    400 clamp(1.8rem, 3.2vw, 2.6rem)/1.1 "Instrument Serif",
    Georgia,
    serif;
  font-style: italic;
  color: var(--acc);
}
.grid2 {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) 3fr;
  gap: 2rem;
}
.hero {
  border: 0;
  min-height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 2rem;
}
h1 {
  font:
    800 clamp(3.6rem, 17vw, 16rem)/0.82 "Inter Tight",
    sans-serif;
  letter-spacing: -0.055em;
  margin-top: 2vw;
}
.ln {
  display: block;
  white-space: nowrap;
}
.ch {
  display: inline-block;
  transition:
    transform 0.2s ease-out,
    color 0.2s;
  will-change: transform;
}
.ch.hot {
  color: var(--corn);
}
.ready .ch {
  animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
  animation-delay: calc(var(--i) * 55ms);
}
@keyframes rise {
  from {
    transform: translateY(60%) rotate(4deg);
    opacity: 0;
  }
}
.hero-foot {
  display: grid;
  grid-template-columns: 2fr 1.4fr auto;
  gap: 2rem;
  align-items: end;
  margin-top: 3rem;
}
.lede {
  max-width: 46ch;
  font-size: 1.15rem;
}
.avail {
  color: var(--mut);
  max-width: 34ch;
  font-size: 0.95rem;
}
.avail i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--corn);
  margin-right: 0.6rem;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--corn) 30%, transparent);
}
.cta {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 0.75rem 1.4rem;
  border-radius: 99px;
  background: var(--corn);
  color: #000;
  text-decoration: none;
  font:
    500 1rem "Inter Tight",
    sans-serif;
  border: 1px solid var(--corn);
  cursor: pointer;
  transition: transform 0.2s;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn.ghost {
  background: none;
  color: var(--fg);
  border-color: var(--mut);
}
.big {
  font:
    400 clamp(1.6rem, 3vw, 2.5rem)/1.2 "Instrument Serif",
    Georgia,
    serif;
  max-width: 28ch;
  margin-bottom: 1.5rem;
}
#about p:not(.big) {
  max-width: 62ch;
  color: var(--mut);
}
.about {
  display: grid;
  grid-template-columns: minmax(220px, 340px) 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.about-side {
  position: sticky;
  top: 5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.portrait {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--card);
}
.portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.facts {
  margin: 2rem 0;
  border-top: 1px solid var(--line);
}
.facts div {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
}
dt {
  color: var(--mut);
}
.creed {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.creed li {
  border: 1px solid var(--corn);
  border-radius: 99px;
  padding: 0.3rem 1rem;
  color: var(--acc);
}
.work {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  margin-top: 2.5rem;
  align-items: start;
}
#list {
  list-style: none;
  padding: 0;
}
#list button {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  text-align: left;
  padding: 1.1rem 0;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--mut);
  font:
    500 clamp(1.2rem, 2.2vw, 1.8rem)/1.2 "Inter Tight",
    sans-serif;
  cursor: pointer;
  transition:
    color 0.2s,
    padding 0.25s;
}
#list button span {
  font-size: 0.9rem;
  font-weight: 400;
  align-self: center;
}
#list button:hover,
#list button[aria-current="true"] {
  color: var(--fg);
  padding-left: 1rem;
}
#list button[aria-current="true"] {
  border-bottom-color: var(--corn);
}
#detail {
  position: sticky;
  top: 5rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.cover {
  height: 190px;
  background-color: var(--corn);
}
img.cover {
  display: block;
  width: 100%;
  height: auto;
  background: var(--card);
}
.p0 {
  background-image: repeating-linear-gradient(
    45deg,
    #0003 0 10px,
    transparent 10px 22px
  );
}
.p1 {
  background-image: radial-gradient(#0004 22%, transparent 24%);
  background-size: 26px 26px;
}
.p2 {
  background-image:
    linear-gradient(#0003 2px, transparent 2px),
    linear-gradient(90deg, #0003 2px, transparent 2px);
  background-size: 34px 34px;
}
.p3 {
  background-image: repeating-radial-gradient(
    circle at 80% 100%,
    #0003 0 8px,
    transparent 8px 24px
  );
}
.dbody {
  padding: 1.4rem;
}
.dbody h3 {
  font:
    800 1.5rem/1.1 "Inter Tight",
    sans-serif;
  letter-spacing: -0.02em;
}
.dbody .role {
  color: var(--acc);
  margin: 0.3rem 0 1rem;
}
.dbody p {
  font-size: 0.97rem;
  color: var(--mut);
  margin-bottom: 0.8rem;
}
.dbody b {
  color: var(--fg);
  font-weight: 500;
}
.ui {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.ui article {
  border: 1px solid var(--line);
  padding: 1.6rem;
  border-radius: 6px;
  background: var(--card);
}
.ui h3 {
  font:
    500 1.4rem "Inter Tight",
    sans-serif;
  margin-bottom: 0.6rem;
}
.ui p {
  color: var(--mut);
}
.tl {
  list-style: none;
  padding: 0;
}
.tl li {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 1.5rem;
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--line);
}
.tl time {
  color: var(--acc);
  font-size: 0.92rem;
}
.tl h3 {
  font:
    500 1.25rem "Inter Tight",
    sans-serif;
}
.tl .co {
  color: var(--mut);
  margin-bottom: 0.4rem;
}
.tl p {
  max-width: 60ch;
  color: var(--mut);
  font-size: 0.97rem;
}
.note {
  color: var(--mut);
  margin: 0.6rem 0 1.5rem;
}
.board {
  position: relative;
  height: clamp(300px, 48vh, 460px);
  border: 1px dashed var(--mut);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 1.2rem;
  touch-action: none;
  cursor: crosshair;
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 22px 22px;
}
.g {
  position: absolute;
  font:
    800 3.4rem/1 "Inter Tight",
    sans-serif;
  color: var(--corn);
  cursor: grab;
  user-select: none;
  touch-action: none;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.g.drag {
  cursor: grabbing;
  transition: none;
  color: var(--fg);
}
/* tools */
.tools {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
}
.tools li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.1rem 1rem 1.1rem 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.25s;
}
.tools li:nth-child(odd) {
  border-right: 1px solid var(--line);
}
.tools li:nth-child(even) {
  padding-left: 1.2rem;
}
.mono {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--corn);
  border-radius: 10px;
  color: var(--acc);
  font:
    800 1.15rem/1 "Inter Tight",
    sans-serif;
  letter-spacing: -0.02em;
  transition:
    background 0.25s,
    color 0.25s,
    transform 0.25s;
}
.tools h3 {
  font:
    500 1.15rem/1.2 "Inter Tight",
    sans-serif;
}
.tools p {
  color: var(--mut);
  font-size: 0.9rem;
  line-height: 1.4;
}
.freq {
  font-size: 0.78rem;
  color: var(--mut);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 0.15rem 0.6rem;
  white-space: nowrap;
}
.tools li:hover .mono {
  background: var(--corn);
  color: #000;
  transform: rotate(-6deg);
}
/* testimonials */
.quotes {
  max-width: 52rem;
}
#quote {
  position: relative;
  min-height: 14rem;
  padding-top: 3.2rem;
}
#quote::before {
  content: "“";
  position: absolute;
  top: -1.2rem;
  left: -0.3rem;
  font:
    400 7rem/1 "Instrument Serif",
    Georgia,
    serif;
  color: var(--corn);
}
#quote blockquote {
  font:
    400 clamp(1.5rem, 2.8vw, 2.3rem)/1.25 "Instrument Serif",
    Georgia,
    serif;
  animation: fadein 0.5s ease-out;
}
#quote figcaption {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 1.6rem;
  animation: fadein 0.5s 0.1s ease-out backwards;
}
.av {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--corn);
  color: #000;
  font-weight: 800;
  overflow: hidden;
  flex: none;
}
.av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#quote figcaption b {
  display: block;
  font-weight: 500;
}
#quote figcaption span {
  color: var(--mut);
  font-size: 0.92rem;
}
@keyframes fadein {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}
.qnav {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}
.qbtn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--mut);
  background: none;
  color: var(--fg);
  font-size: 1.1rem;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
}
.qbtn:hover {
  background: var(--corn);
  border-color: var(--corn);
  color: #000;
}
.qcount {
  color: var(--mut);
  font-variant-numeric: tabular-nums;
  font-size: 0.92rem;
}
footer {
  padding: clamp(4rem, 10vw, 9rem) var(--pad) 3rem;
  border-top: 1px solid var(--line);
}
footer h2 {
  font-size: clamp(2.4rem, 7vw, 6rem);
  color: var(--fg);
  max-width: 14ch;
}
.contact {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin: 3rem 0;
}
.contact div {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.mail {
  font:
    800 clamp(1.3rem, 3vw, 2.4rem)/1.1 "Inter Tight",
    sans-serif;
  letter-spacing: -0.03em;
  text-decoration-color: var(--corn);
  text-underline-offset: 6px;
}
.contact a:hover {
  color: var(--acc);
}
.small {
  color: var(--mut);
  font-size: 0.9rem;
  max-width: 60ch;
}
@media (max-width: 820px) {
  nav {
    display: none;
  }
  .grid2,
  .about,
  .work,
  .ui,
  .hero-foot,
  .contact {
    grid-template-columns: 1fr;
  }
  .about-side {
    position: static;
  }
  #detail {
    position: static;
  }
  .tl li {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }
  .portrait {
    max-width: 260px;
  }
  .tools {
    grid-template-columns: 1fr;
  }
  .tools li:nth-child(odd) {
    border-right: 0;
  }
  .tools li:nth-child(even) {
    padding-left: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}