:root {
  --bg: #f6f1e8;
  --bg-deep: #efe7d9;
  --ink: #1d1a16;
  --ink-soft: #5b544b;
  --accent: #2f22c8;
  --accent-ink: #ffffff;
  --line: rgba(29, 26, 22, 0.14);
  --serif: "Fraunces", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
  --max: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(17px, 1.15vw, 19px);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
html, body { overflow-x: clip; }
section[id] { scroll-margin-top: 64px; }
.card[id] { scroll-margin-top: 100px; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--gutter);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.nav__logo img { width: 52px; height: 52px; transition: transform .4s cubic-bezier(.3,1.6,.5,1); }
.nav__logo:hover img { transform: rotate(-12deg) scale(1.08); }
.nav__links { display: flex; gap: clamp(18px, 3vw, 40px); }
.nav__links a {
  text-decoration: none; font-size: 15px; letter-spacing: .02em; white-space: nowrap;
  color: var(--accent); position: relative;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .3s ease;
}
.nav__links a:hover::after { transform: scaleX(1); }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(24px, 5vw, 64px) var(--gutter) clamp(56px, 8vw, 110px);
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: clamp(32px, 6vw, 96px); align-items: center;
}
.hero__hi {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(26px, 3vw, 40px); margin: 0; color: var(--ink-soft);
  cursor: default; display: inline-block;
}
.hero__name {
  font-family: var(--serif); font-weight: 600;
  font-variation-settings: "SOFT" 50, "opsz" 144;
  font-size: clamp(64px, 10vw, 147px);
  line-height: .85; letter-spacing: -.035em;
  color: var(--ink); margin: 0 0 .22em -.04em;
}
.hero__tagline {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(22px, 2.2vw, 30px); line-height: 1.3;
  letter-spacing: -.01em; margin-bottom: 1.1em;
}
.nowrap { white-space: nowrap; }
.hero__body { max-width: 52ch; color: var(--ink-soft); }


/* hand-drawn underline */
.scribble {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 10' preserveAspectRatio='none'%3E%3Cpath d='M2 7 C 25 2, 45 9, 65 5 S 105 3, 118 6' fill='none' stroke='%232f22c8' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 0 100%; background-size: 100% .32em;
  padding-bottom: .08em;
}

.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.8em; }
.btn {
  display: inline-flex; align-items: center; gap: .45em;
  padding: .85em 1.4em; border-radius: 999px;
  font-weight: 600; font-size: 16px; text-decoration: none;
  border: 1.5px solid var(--ink);
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn--solid { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn--solid:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.btn .arrow, .project__name .arrow { display: inline-block; transition: transform .25s ease; }
.btn:hover .arrow, .project:hover .arrow { transform: translate(3px, -3px); }

.hero__photo { position: relative; margin: 0; justify-self: end; width: 100%; max-width: min(460px, 60vh); }
.hero__photo img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 12%;
  border-radius: 6px;
  transform: rotate(1.5deg);
  box-shadow: 0 30px 60px -30px rgba(29, 26, 22, .45);
  transition: transform .5s cubic-bezier(.3,1.4,.5,1);
}
.hero__photo:hover img { transform: rotate(-1deg) scale(1.01); }

/* ---------- Marquee ---------- */
.marquee {
  border-block: 1.5px solid var(--ink);
  background: var(--ink); color: var(--bg);
  overflow: hidden; white-space: nowrap;
  transform: rotate(-1.2deg); margin: 0 -10px;
}
.marquee__track {
  display: inline-flex; gap: 28px; padding: 16px 0;
  font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2vw, 28px);
  animation: marquee 38s linear infinite;
}
.marquee__track span:nth-child(even) { color: #9d95ff; font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(56px, 7vw, 96px) var(--gutter) 0;
}
.eyebrow {
  font-size: 13px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: .8em;
}
.section__title {
  font-family: var(--serif); font-weight: 600;
  font-variation-settings: "SOFT" 50, "opsz" 144;
  font-size: clamp(32px, 5vw, 75px); line-height: 1; letter-spacing: -.025em;
  margin: 0 0 .35em;
}
.dots { color: var(--accent); }
.rocket { display: inline-block; font-size: .6em; vertical-align: .25em; transition: transform .6s cubic-bezier(.4,0,.2,1); }
.section__title:hover .rocket { transform: translate(14px, -18px) rotate(8deg); }
.lede { font-family: var(--serif); font-size: clamp(20px, 2vw, 28px); line-height: 1.35; margin-bottom: 0; white-space: nowrap; }
.lede em { color: var(--accent); }

/* Projects */
.projects { margin-top: clamp(24px, 3vw, 36px); border-top: 1.5px solid var(--ink); }
.project {
  display: grid; grid-template-columns: minmax(56px, 120px) 1fr; gap: clamp(12px, 2.5vw, 36px);
  padding: clamp(18px, 2.2vw, 28px) 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none; color: inherit;
  transition: background .3s ease, padding .3s ease;
}
a.project:hover { background: var(--bg-deep); }
.project__num {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(28px, 3.4vw, 48px); line-height: 1; color: var(--accent);
}
.project__name {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(22px, 2.3vw, 32px); line-height: 1.05; letter-spacing: -.015em; margin: 0 0 .2em;
}
.project__name .arrow { color: var(--accent); font-size: .7em; }
.project__tag { font-family: var(--serif); font-style: italic; font-size: clamp(18px, 1.5vw, 21px); color: var(--accent); margin-bottom: .4em; }
.project p:last-child { max-width: 62ch; color: var(--ink-soft); margin: 0; }

.btn--soon {
  margin-top: 1.2em;
  border-style: dashed; border-color: var(--ink-soft); color: var(--ink-soft);
  cursor: default; font-weight: 500;
}

/* Backstory */
.story { max-width: 720px; margin-left: auto; margin-right: clamp(0px, 8vw, 120px); }
.story p { color: var(--ink-soft); }
.story__line {
  font-family: var(--serif); font-style: italic; color: var(--ink) !important;
  font-size: clamp(24px, 2.4vw, 32px); line-height: 1.25; margin-bottom: .3em;
}
.story__line + p:not(.story__line) { margin-top: 1em; }
mark {
  background: linear-gradient(transparent 58%, rgba(47, 34, 200, .18) 58%);
  color: var(--ink); padding: 0 .1em;
}

.closer { margin-top: 1em; }
.closer__accent {
  color: var(--accent);
  position: relative; white-space: nowrap;
}
.closer__accent::after {
  content: ""; position: absolute; left: 0; right: 0; top: 52%; height: .07em;
  background: var(--ink); transform: scaleX(0); transform-origin: left;
  transition: transform .8s cubic-bezier(.6,0,.2,1) .4s;
}
.closer.in .closer__accent::after { transform: scaleX(1); }

/* In-person */
.lede--wrap { white-space: normal; max-width: 40ch; }
.cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 28px);
  margin-top: clamp(24px, 3vw, 40px);
}
.card {
  display: flex; flex-direction: column;
  background: var(--bg-deep); border-radius: 24px;
  padding: clamp(24px, 3vw, 40px);
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -24px rgba(29, 26, 22, .45); }
.card__label {
  font-family: var(--sans); font-size: 14px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
  margin: 0; padding-bottom: 16px; border-bottom: 1.5px solid var(--ink);
}
.card__label span { font-size: 1.25em; letter-spacing: 0; margin-right: .25em; }
.card__body {
  font-family: var(--serif); font-size: clamp(20px, 1.8vw, 24px); line-height: 1.35;
  margin: 20px 0 0; padding-bottom: 20px; border-bottom: 1px solid var(--line);
}
.card__meta { padding: 18px 0 4px; margin-bottom: 22px; font-size: 15.5px; color: var(--ink-soft); line-height: 1.6; }
.card__meta p { margin: 0 0 .5em; }
.card__meta strong { color: var(--ink); font-weight: 600; }
.card__cta { align-self: flex-start; margin-top: auto; }
.card__list { list-style: none; margin: 0 0 1em; padding: 0; }
.card__list li { position: relative; padding-left: 1.4em; margin-bottom: .3em; }
.card__list li::before { content: "✦"; position: absolute; left: 0; color: var(--accent); font-size: .85em; top: .1em; }

/* Photo strip */
.photostrip {
  margin-top: clamp(40px, 5vw, 64px);
  overflow: hidden;
  padding: 18px 0;
}
.photostrip__track {
  display: flex; gap: clamp(14px, 1.6vw, 24px); width: max-content;
  animation: photostrip 100s linear infinite;
}
.photostrip:hover .photostrip__track { animation-play-state: paused; }
.photostrip figure {
  margin: 0; flex: none;
  height: clamp(190px, 22vw, 300px);
  border-radius: 10px; overflow: hidden;
  background: var(--bg-deep);
  box-shadow: 0 18px 36px -22px rgba(29, 26, 22, .5);
  transition: transform .4s cubic-bezier(.3,1.4,.5,1);
}
.photostrip .tilt-l { transform: rotate(-1.6deg); }
.photostrip .tilt-r { transform: rotate(1.4deg) translateY(10px); }
.photostrip figure:hover { transform: rotate(0) scale(1.04); z-index: 1; }
.photostrip img { height: 100%; width: auto; max-width: none; object-fit: cover; }
@keyframes photostrip { to { transform: translateX(calc(-50% - clamp(7px, .8vw, 12px))); } }

/* Connect */
.connect {
  max-width: var(--max); margin: clamp(64px, 8vw, 110px) auto 0;
  padding: clamp(40px, 5vw, 72px) var(--gutter);
  background: var(--ink); color: var(--bg);
  border-radius: clamp(0px, 3vw, 36px);
  text-align: center;
}
.connect .eyebrow { color: rgba(246,241,232,.6); }
.connect__title {
  font-family: var(--serif); font-weight: 600;
  font-variation-settings: "SOFT" 50, "opsz" 144;
  font-size: clamp(28px, 4vw, 56px); line-height: 1.05; letter-spacing: -.025em; margin: 0 0 .4em;
}
.connect__sub { font-size: clamp(18px, 1.4vw, 21px); opacity: .85; }
.connect .hero__ctas { justify-content: center; }
.connect .btn--solid { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.connect .btn--solid:hover { box-shadow: 4px 4px 0 rgba(246,241,232,.35); }
.connect .btn--ghost { border-color: rgba(246,241,232,.7); }
.connect .btn--ghost:hover { background: var(--bg); color: var(--ink); }

.footer {
  max-width: var(--max); margin: 0 auto;
  padding: 40px var(--gutter) 48px;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  font-size: 14px; color: var(--ink-soft);
}
.footer p { margin: 0; }
.footer img { width: 40px; height: 40px; opacity: .8; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero__photo { max-width: 420px; margin: 8px auto 0; justify-self: center; width: calc(100% - 24px); }
  .cards { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .lede { white-space: normal; }
  .story { margin: 0; }
}
@media (max-width: 560px) {
  .nav__links { gap: 16px; }
  .nav__links a { font-size: 14px; }
  .nowrap { white-space: normal; }
  .card { padding: 22px 20px; }
  .card__cta { font-size: 14.5px; padding: .8em 1.1em; white-space: nowrap; }
  .nav__logo img { width: 44px; height: 44px; }
  .project { grid-template-columns: 40px 1fr; gap: 10px; }
  .project__num { font-size: 26px; padding-top: 2px; }
  .hero__ctas .btn { flex: 1 1 auto; justify-content: center; }
  .connect { border-radius: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .photostrip { overflow-x: auto; }
  html { scroll-behavior: auto; }
}

@media (max-width: 440px) {
  .nav__extra { display: none; }
}
