:root {
  --bg: #f6f1e8;
  --surface: #efe7d8;
  --fg: #141310;
  --muted: #5f584f;
  --accent: #ff3b1f;
  --accent-hover: #e22e14;
  --on-accent: #fff8f3;
  --cobalt: #2a4dff;
  --cobalt-hover: #1d3be0;
  --on-cobalt: #f4f6ff;
  --lime: #d6ff3c;
  --on-lime: #141310;
  --border: #d9d0c0;
  --font-display: "Fraunces", "Iowan Old Style", Palatino, serif;
  --font-sans: "Syne", ui-sans-serif, system-ui, sans-serif;
  --font-puffy: "Bagel Fat One", "Titan One", system-ui, sans-serif;
  --display: clamp(3.25rem, 11vw, 8.25rem);
  --kicker: 0.22em;
  --label: 0.16em;
  --shadow-border: 0 0 0 1px rgba(20, 19, 16, 0.08), 0 1px 2px -1px rgba(20, 19, 16, 0.08),
    0 2px 4px 0 rgba(20, 19, 16, 0.04);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  background: var(--bg);
  color: var(--fg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  text-wrap: balance;
  margin: 0;
}

p {
  text-wrap: pretty;
}

button:not(:disabled),
[role="button"]:not(:disabled) {
  cursor: pointer;
}

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 768px) {
  .wrap {
    padding: 0 2rem;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid transparent;
  background: var(--bg);
  transition: background 0.2s, border-color 0.2s;
}

.site-header.is-scrolled,
.site-header.is-open {
  border-color: var(--border);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  height: 4rem;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--fg);
}

.mark {
  display: flex;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.125rem;
}

.brand-name {
  display: none;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

@media (min-width: 640px) {
  .brand-name {
    display: block;
  }
}

.nav-desk {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .nav-desk {
    display: flex;
  }
}

.nav-desk a:not(.btn) {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
}

.nav-desk a:not(.btn):hover {
  color: var(--fg);
}

.menu-btn {
  position: relative;
  display: flex;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--fg);
}

@media (min-width: 768px) {
  .menu-btn {
    display: none;
  }
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
}

.icon-sm {
  width: 1rem;
  height: 1rem;
}

.icon-lg {
  width: 1.5rem;
  height: 1.5rem;
}

.nav-mobile {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 1.5rem 1.25rem;
}

.nav-mobile.is-open {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

@media (min-width: 768px) {
  .nav-mobile.is-open {
    display: none;
  }
}

.nav-mobile a:not(.btn) {
  display: flex;
  min-height: 2.75rem;
  align-items: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
}

.btn {
  display: inline-flex;
  height: 3rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  border: 0;
  transition: background 0.15s, transform 0.15s;
}

.btn:active {
  transform: scale(0.96);
}

.btn-coral {
  background: var(--accent);
  color: var(--on-accent);
}

.btn-coral:hover {
  background: var(--accent-hover);
}

.btn-lime {
  background: var(--lime);
  color: var(--on-lime);
}

.btn-lime:hover {
  background: color-mix(in srgb, var(--lime) 90%, black);
}

.btn-cobalt {
  background: var(--cobalt);
  color: var(--on-cobalt);
}

.btn-cobalt:hover {
  background: var(--cobalt-hover);
}

.btn-nav {
  height: 2.75rem;
  padding: 0 1rem;
}

.hero {
  display: grid;
  gap: 2.5rem;
  padding: 2rem 1.25rem 2.5rem;
  max-width: 72rem;
  margin: 0 auto;
  align-items: center;
}

@media (min-width: 768px) {
  .hero {
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
    padding: 3rem 2rem 3.5rem;
  }
  .hero-copy {
    grid-column: span 7;
  }
  .hero-type {
    grid-column: span 5;
  }
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--fg);
  color: var(--lime);
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--kicker);
}

.hero h1 {
  margin-top: 1.5rem;
  font-size: var(--display);
  line-height: 0.86;
  letter-spacing: -0.04em;
}

.hero h1 em {
  display: block;
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}

.hero h1 strong {
  display: block;
  font-weight: 500;
}

.tagline {
  margin: 2rem 0 0;
  max-width: 28rem;
  font-size: 1.125rem;
  font-weight: 500;
}

.intro {
  margin: 0.75rem 0 0;
  max-width: 32rem;
  color: var(--muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.avail {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--kicker);
  color: var(--muted);
}

.dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  margin-right: 0.5rem;
  border-radius: 999px;
  background: var(--lime);
  vertical-align: middle;
}

.float-3d {
  animation: float-3d 6.5s ease-in-out infinite;
  width: 100%;
  height: auto;
}

.type-stage {
  perspective: 1400px;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2rem 0;
}

.type-stage-inner {
  transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transform-style: preserve-3d;
  transition: transform 450ms cubic-bezier(0.2, 0, 0, 1);
}

.marquee-wrap {
  overflow: hidden;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.marquee-fast {
  animation-duration: 22s;
}

.marquee-slow {
  animation-duration: 38s;
}

.marquee-rev {
  animation-direction: reverse;
}

.phrase-row {
  margin-bottom: -1.5rem;
}

@media (min-width: 768px) {
  .phrase-row {
    margin-bottom: -2.5rem;
  }
}

.word-stack {
  margin-top: -1rem;
}

@media (min-width: 768px) {
  .word-stack {
    margin-top: -2rem;
  }
}

.word-row {
  overflow: hidden;
  padding: 0.25rem 0;
}

.type-word {
  --word-rot: -6deg;
  height: clamp(4.6rem, 13vw, 9.5rem);
  width: auto;
  max-width: none;
  flex-shrink: 0;
  animation: word-bob 5.5s ease-in-out infinite;
  filter: drop-shadow(0 16px 18px rgb(20 19 16 / 0.16));
}

.type-word-lg {
  height: clamp(6rem, 18vw, 13rem);
}

.type-word:nth-child(even) {
  --word-rot: 5deg;
  animation-delay: -1.6s;
}

.type-word:nth-child(3n) {
  --word-rot: -2deg;
  animation-delay: -3.2s;
}

.puffy {
  --puffy: var(--accent);
  position: relative;
  display: inline-flex;
  font-family: var(--font-puffy);
  font-size: clamp(2.6rem, 8.5vw, 6.6rem);
  line-height: 0.88;
  letter-spacing: -0.03em;
  white-space: nowrap;
  padding: 0 0.12em 0.22em;
}

.puffy-cobalt {
  --puffy: var(--cobalt);
}

.puffy-lime {
  --puffy: var(--lime);
}

.puffy-extrude,
.puffy-face {
  font: inherit;
  letter-spacing: inherit;
}

.puffy-extrude {
  position: absolute;
  left: 0.12em;
  top: 0.1em;
  color: color-mix(in srgb, var(--puffy) 40%, black);
  text-shadow: 0 1px 0 color-mix(in srgb, var(--puffy) 36%, black),
    0 2px 0 color-mix(in srgb, var(--puffy) 32%, black),
    0 3px 0 color-mix(in srgb, var(--puffy) 28%, black),
    0 4px 0 color-mix(in srgb, var(--puffy) 26%, black),
    0 6px 0 color-mix(in srgb, var(--puffy) 22%, black),
    0 8px 0 color-mix(in srgb, var(--puffy) 18%, black),
    0 14px 18px rgb(20 19 16 / 0.2);
  user-select: none;
  pointer-events: none;
}

.puffy-face {
  position: relative;
  background-image: repeating-linear-gradient(90deg, rgb(20 19 16 / 0.18) 0 1px, transparent 1px 0.09em),
    repeating-linear-gradient(0deg, rgb(20 19 16 / 0.18) 0 1px, transparent 1px 0.09em),
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--puffy) 68%, white) 0%,
      var(--puffy) 46%,
      color-mix(in srgb, var(--puffy) 74%, black) 100%
    );
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.band {
  overflow: hidden;
  background: var(--fg);
  border-top: 1px solid var(--fg);
  border-bottom: 1px solid var(--fg);
}

.band .marquee-track {
  padding: 0.75rem 0;
}

.band-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0 1.5rem;
  white-space: nowrap;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--kicker);
  color: var(--lime);
}

.band-sq {
  width: 0.5rem;
  height: 0.5rem;
  flex-shrink: 0;
  background: var(--accent);
}

.section {
  border-top: 1px solid var(--border);
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .section {
    padding: 6rem 0;
  }
}

.kicker {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--kicker);
}

.kicker-cobalt {
  color: var(--cobalt);
}

.kicker-coral {
  color: var(--accent);
}

.split {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .split {
    grid-template-columns: repeat(12, 1fr);
    gap: 3rem;
  }
  .split-5 {
    grid-column: span 5;
  }
  .split-7 {
    grid-column: span 7;
  }
}

.frame-coral {
  margin-top: 1.5rem;
  background: var(--accent);
  padding: 0.5rem;
}

.frame-cobalt {
  margin-top: 2rem;
  background: var(--cobalt);
  padding: 0.5rem;
  display: none;
}

@media (min-width: 768px) {
  .frame-cobalt {
    display: block;
  }
}

.aspect-still {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface);
}

.aspect-still img,
.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  outline: 1px solid rgba(20, 19, 16, 0.1);
  outline-offset: -1px;
}

h2.display {
  margin-top: 1rem;
  font-size: 2.25rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

@media (min-width: 768px) {
  h2.display {
    font-size: 3rem;
  }
}

.accent {
  color: var(--accent);
}

.body-copy {
  margin-top: 2rem;
  max-width: 36rem;
}

.body-copy p {
  margin: 0 0 1.25rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: color-mix(in srgb, var(--fg) 85%, transparent);
}

@media (min-width: 768px) {
  .body-copy p {
    font-size: 1.125rem;
  }
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}

.tag {
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tag-coral {
  background: var(--accent);
  color: var(--on-accent);
}

.tag-cobalt {
  background: var(--cobalt);
  color: var(--on-cobalt);
}

.tag-lime {
  background: var(--lime);
  color: var(--on-lime);
}

.tag-ink {
  background: var(--fg);
  color: var(--bg);
}

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

.skills {
  display: grid;
  gap: 1rem;
  margin: 3rem 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .skills {
    grid-template-columns: 1fr 1fr;
  }
}

.skill {
  display: flex;
  min-height: 12rem;
  flex-direction: column;
  background: var(--bg);
  padding: 1.5rem;
  box-shadow: var(--shadow-border);
  transition: transform 0.2s;
}

.skill:hover {
  transform: translateY(-4px);
}

.num {
  display: inline-flex;
  width: fit-content;
  padding: 0.125rem 0.5rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-style: italic;
}

.skill h3,
.step h3 {
  margin-top: 1rem;
  font-size: 1.5rem;
  font-weight: 500;
}

.skill p,
.step p {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  padding: 1.75rem 0;
}

.step + .step {
  border-top: 1px solid var(--border);
}

.step-n {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-style: italic;
  color: var(--cobalt);
}

.color-field {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  min-height: 13rem;
  overflow: hidden;
}

@media (min-width: 768px) {
  .color-field {
    min-height: 18rem;
  }
}

.color-field img {
  position: absolute;
  left: 50%;
  top: 50%;
  height: 70%;
  width: auto;
  max-width: none;
  transform: translate(-50%, -50%);
  pointer-events: none;
  filter: drop-shadow(0 12px 18px rgb(20 19 16 / 0.25));
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.field span {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--label);
  color: var(--muted);
}

.field input,
.field textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--fg);
  background: var(--bg);
  border: 0;
  box-shadow: var(--shadow-border);
  outline: none;
}

.field input {
  height: 3rem;
  padding: 0 0.75rem;
}

.field textarea {
  padding: 0.75rem;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  box-shadow: 0 0 0 2px var(--accent);
}

.phone {
  display: block;
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.linkedin-btn {
  margin-top: 1.5rem;
}

.status {
  display: none;
  align-items: center;
  gap: 0.5rem;
  min-height: 3rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
}

.status.is-on {
  display: inline-flex;
}

.draft {
  display: none;
}

.draft.is-on {
  display: flex;
}

.site-footer {
  background: var(--fg);
  color: var(--bg);
}

.stripe {
  height: 0.5rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2.5rem 1.25rem;
  max-width: 72rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    padding: 2.5rem 2rem;
  }
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
  margin: 0;
}

.footer-tag {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  color: var(--lime);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.875rem;
}

.footer-links a:first-child {
  color: var(--lime);
}

.footer-links a:nth-child(2) {
  color: color-mix(in srgb, var(--bg) 80%, transparent);
}

.footer-links a:hover {
  color: var(--lime);
}

.muted-year {
  color: color-mix(in srgb, var(--bg) 50%, transparent);
}

.fab {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 30;
  display: flex;
  height: 3.5rem;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1rem;
  background: var(--lime);
  color: var(--on-lime);
  font-size: 0.875rem;
  font-weight: 700;
  box-shadow: var(--shadow-border);
  transition: transform 0.15s;
}

.fab:hover {
  transform: scale(1.05);
}

.fab:active {
  transform: scale(0.96);
}

@media (min-width: 768px) {
  .fab {
    bottom: 2rem;
    right: 2rem;
  }
}

.stagger-in > * {
  animation: fade-up 500ms cubic-bezier(0.2, 0, 0, 1) both;
}

.stagger-in > *:nth-child(1) {
  animation-delay: 40ms;
}
.stagger-in > *:nth-child(2) {
  animation-delay: 140ms;
}
.stagger-in > *:nth-child(3) {
  animation-delay: 240ms;
}
.stagger-in > *:nth-child(4) {
  animation-delay: 340ms;
}
.stagger-in > *:nth-child(5) {
  animation-delay: 440ms;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes float-3d {
  0%,
  100% {
    transform: rotate(-4deg) translateY(0);
  }
  50% {
    transform: rotate(4deg) translateY(-14px);
  }
}

@keyframes word-bob {
  0%,
  100% {
    transform: rotate(var(--word-rot, -5deg)) translateY(0);
  }
  50% {
    transform: rotate(var(--word-rot, -5deg)) translateY(-8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .type-stage-inner {
    transform: none;
  }
}
