:root {
  --paper: #f5f4ef;
  --ink: #1a1918;
  --muted: #54514f;
  --line: #d5d2cb;
  --purple: #4833c9;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font: 100%/1.55 system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }
body, h1, h2, h3, p { margin: 0; }
a { color: inherit; text-underline-offset: .2em; }
button { font: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--purple); outline-offset: 5px; }
[hidden] { display: none !important; }
.shell { width: min(100% - 64px, 1200px); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: -10rem; z-index: 2; padding: .65rem 1rem; background: white; }
.skip:focus { top: 1rem; }

.masthead, .footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
}
.masthead a, .footer a { text-decoration: none; }
.masthead nav { display: flex; gap: clamp(1rem, 4vw, 2.25rem); }
.masthead nav a:hover, .footer a:hover { text-decoration: underline; }
.brand { display: inline-flex; align-items: center; font-size: 1.45rem; font-weight: 850; letter-spacing: -.07em; }
.brand-mark { color: var(--purple); margin-right: .45rem; font-size: 1.45rem; }
.brand-dot, .hero h1 span { color: var(--purple); }

.hero { display: grid; grid-template-columns: 1.12fr 1fr; gap: 2.5rem; align-items: center; padding: 3.5rem 0 4.5rem; }
.eyebrow { font: 650 .79rem/1.5 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .075em; }
.hero h1 { font-size: clamp(3.65rem, 7.85vw, 7.35rem); line-height: .97; letter-spacing: -.09em; margin: .9rem 0 1.2rem; }
.intro { max-width: 27rem; color: var(--muted); font-size: clamp(1rem, 1.75vw, 1.25rem); }
.button {
  display: inline-block;
  padding: .7rem 1rem;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 6px;
  color: white;
  text-decoration: none;
  font-weight: 650;
}
.button:hover { background: var(--purple); border-color: var(--purple); }
.hero .button { margin-top: 1.65rem; }

.hero-art {
  position: relative;
  display: grid;
  isolation: isolate;
  place-items: center;
  overflow: hidden;
  min-height: 300px;
  aspect-ratio: 1.4;
  background: #4934c8;
  color: #f2edff;
  border-radius: 12px;
  container-type: inline-size;
}
.art-grid, .art-outline { position: absolute; pointer-events: none; }
.art-grid {
  inset: 0;
  background-image: linear-gradient(#ffffff21 1px, transparent 1px), linear-gradient(90deg, #ffffff21 1px, transparent 1px);
  background-size: 26px 26px;
}
.art-outline { inset: 7%; border: 1px solid #ffffff78; }
.art-number { font: 850 48cqw/.9 system-ui, sans-serif; letter-spacing: -.12em; padding-right: .12em; transform: translateY(-3%); }
.art-star { position: absolute; top: 9%; right: 10%; font-size: clamp(1.8rem, 4vw, 3.5rem); line-height: 1; color: #d5fd83; }
.art-caption { position: absolute; left: 10%; bottom: 10%; font: 600 .75rem var(--mono); letter-spacing: .13em; }

.work { scroll-margin-top: 1rem; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-top: .85rem; border-top: 1px solid var(--line); margin-bottom: 1.4rem; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.1; letter-spacing: -.065em; }
.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.project { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fffefa; }
.project-art {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  height: 184px;
  overflow: hidden;
  background-image: radial-gradient(#1a191824 1px, transparent 1px);
  background-size: 11px 11px;
}
.art-call { background-color: #ddd5ff; }
.art-note { background-color: #dceaac; }
.art-scroll { background-color: #ffccb8; }
.call-bubble, .note-sheet, .reader { position: absolute; border: 2px solid var(--ink); box-shadow: 4px 5px var(--ink); }
.call-bubble {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 110px;
  height: 65px;
  border-radius: 23px 23px 23px 5px;
}
.call-bubble i { width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.call-back { transform: translate(-32px, -19px) rotate(-12deg); background: #f8f3ff; }
.call-front { transform: translate(27px, 17px) rotate(9deg); background: #674ee7; color: white; }
.note-sheet { width: 100px; height: 120px; border-radius: 7px; }
.note-back { transform: translate(-24px, -2px) rotate(-15deg); background: #9bb87a; }
.note-front { padding: 24px 16px; transform: translate(13px, -1px) rotate(10deg); background: #fffde1; }
.note-front i, .reader i { display: block; height: 3px; margin-bottom: 10px; background: currentColor; border-radius: 3px; }
.note-front i:nth-child(3), .reader i:nth-of-type(3) { width: 62%; }
.note-front b { position: absolute; right: 10px; bottom: 6px; font-size: 1.35rem; }
.reader { width: 94px; height: 132px; border-radius: 9px; }
.reader-back { transform: translate(30px, 0) rotate(14deg); background: #e77358; }
.reader-front { transform: translate(-12px, -1px) rotate(-8deg); padding: 10px 14px; background: #fff1df; }
.reader-front span { display: block; margin-bottom: 6px; font: 700 2.15rem/1.25 Georgia, serif; }
.reader-front i { margin-bottom: 7px; }
.reader-front b { display: block; margin-top: 16px; width: 100%; height: 4px; background: linear-gradient(to right, #e77358 55%, #ead9c8 55%); border-radius: 2px; }

.project-copy { flex: 1; display: flex; flex-direction: column; padding: 1.2rem 1.35rem 1.35rem; }
.project h3 { font-size: 2.15rem; letter-spacing: -.07em; line-height: 1.12; margin: .22rem 0 .45rem; }
.project-copy p + a { align-self: start; margin-top: auto; padding-top: 1.15rem; font-weight: 700; color: var(--purple); }
.project-copy a:hover { text-decoration-thickness: 2px; }

.contact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-block: 3.5rem 0;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.contact p { color: var(--muted); margin-top: .45rem; }
.contact-actions { position: relative; display: flex; align-items: center; gap: .65rem; }
.contact-actions button { background: transparent; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); padding: .7rem .85rem; cursor: pointer; }
.contact-actions button:hover { border-color: var(--purple); color: var(--purple); }
.copy-status { position: absolute; top: 100%; right: 0; font-size: .79rem; white-space: nowrap; }
.footer { min-height: 72px; border-bottom: 0; font-size: .88rem; color: var(--muted); }

@media (max-width: 900px) {
  .hero { gap: 1.75rem; }
  .hero-art { min-height: 235px; }
}
@media (max-width: 700px) {
  .shell { width: calc(100% - 36px); }
  .masthead { min-height: 65px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; padding: 2.5rem 0 2.85rem; }
  .hero h1 { font-size: clamp(3rem, 13.5vw, 6rem); }
  .hero-art { min-height: 0; }
  .projects { grid-template-columns: minmax(0, 1fr); }
  .contact { margin-top: 2.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
}
