:root {
  --gutter: 32px;
  --ink: #edf0e8;
  --paper: #111512;
  --cream: #1b211c;
  --muted: #9ca59a;
  --line: rgba(237, 240, 232, 0.18);
  --lime: #c8e56a;
  --white: #f8f9f3;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Manrope", "Segoe UI", sans-serif;
  --mono: "DM Mono", monospace;
  --accent: #c8e56a;
  --accent-soft: #c8e56a;
  --body-copy: #b7beb5;
  --secondary-copy: #b0b8ae;
  --card-meta: #a0aaa0;
  --contact-copy: #b4bdb3;
  --footer-copy: #a0aaa0;
  --shadow: rgba(0, 0, 0, 0.55);
  --dark-surface: #090c0a;
}
* {
  box-sizing: border-box;
}
html {
  color-scheme: dark;
  transition: background-color 0.45s ease;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.55;
  transition:
    color 0.45s ease,
    background-color 0.45s ease;
}
body,
.mode-strip,
.personal,
.contact,
.site-footer {
  transition:
    color 0.45s ease,
    background-color 0.45s ease,
    border-color 0.45s ease;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
}
.section-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 80px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 max(32px, calc((100% - 1176px) / 2));
  background: var(--paper);
  background: color-mix(in srgb, var(--paper) 80%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.3s ease,
    background-color 0.45s ease;
}
.site-header .brand {
  justify-self: start;
  background: linear-gradient(110deg in oklch, #a8cf42, #c8e56a, #e4f5a1);
  background-clip: text;
}
.site-header nav {
  justify-self: center;
}
.site-header .header-actions {
  justify-self: end;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
}
.site-header.is-hidden {
  transform: translateY(-100%);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.08em;
}
.brand span {
  color: var(--accent);
}
.site-header nav {
  display: flex;
  gap: 32px;
  font: 12px var(--mono);
  text-transform: uppercase;
}
nav a,
.header-link,
.text-link,
.detail-button,
.footer-links a {
  transition: color 0.2s ease;
}
nav a:hover,
.text-link:hover,
.detail-button:hover {
  color: var(--accent);
}
.header-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  isolation: isolate;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font: 11px var(--mono);
  text-transform: uppercase;
  transition:
    color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    background-color 0.25s var(--ease),
    transform 0.25s var(--ease);
}
.header-link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--lime);
  transform: translateX(-102%);
  transition: transform 0.35s var(--ease);
}
.header-link:hover {
  color: #101311;
  border-color: var(--lime);
  transform: translateY(-2px);
}
.header-link:hover::before {
  transform: translateX(0);
}
.hero {
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 90px;
  align-items: center;
  padding-top: 88px;
  padding-bottom: 110px;
}
.eyebrow,
.note-index,
.project-meta,
.skill-list,
dt,
small {
  font: 11px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.eyebrow {
  margin: 0 0 24px;
  color: var(--accent-soft);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  max-width: 880px;
  margin-bottom: 28px;
  font-size: clamp(3.5rem, 7.2vw, 7rem);
  line-height: 0.96;
  letter-spacing: -0.075em;
  font-weight: 600;
}
h1 em,
h2 em {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.04em;
}
.text-sweep {
  position: relative;
  display: inline-block;
  color: inherit;
  isolation: isolate;
  background: linear-gradient(
    105deg,
    currentColor 0%,
    currentColor 42%,
    var(--lime) 50%,
    currentColor 58%,
    currentColor 100%
  );
  background-size: 240% 100%;
  background-position: 100% 0;
  background-repeat: no-repeat;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: currentColor;
  transition:
    background-position 0.85s var(--ease),
    filter 0.35s ease;
}
.text-sweep:hover {
  background-position: -40% 0;
  filter: brightness(1.12);
}
.hero-text {
  max-width: 530px;
  font-size: 1.1rem;
  color: var(--body-copy);
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 40px;
}
.button {
  display: inline-flex;
  gap: 18px;
  align-items: center;
  padding: 15px 20px;
  font: 11px var(--mono);
  text-transform: uppercase;
  border: 1px solid transparent;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}
.button:hover {
  box-shadow: 0 10px 24px var(--shadow);
}
.button-dark {
  color: var(--white);
  background: var(--dark-surface);
}
.button-light {
  color: #101311;
  background: var(--lime);
}
.button-dark {
  border-color: var(--line);
}
.text-link {
  font: 11px var(--mono);
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 5px;
}
.hero-note {
  border-left: 1px solid var(--line);
  padding-left: 34px;
}
.hero-note p {
  margin: 42px 0 60px;
  max-width: 270px;
  font-family: var(--serif);
  font-size: 1.65rem;
  line-height: 1.18;
}
dl {
  margin: 0;
}
dl div {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
dt {
  color: var(--muted);
}
dd {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
}
.mode-strip {
  color: var(--white);
  background: var(--dark-surface);
  padding: 72px 0 80px;
}
.mode-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 100px;
}
.mode-strip .eyebrow {
  color: var(--lime);
}
.mode-strip h2 {
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: -0.07em;
  max-width: 450px;
}
.mode-switch {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  margin-bottom: 30px;
}
.mode-button {
  border: 0;
  padding: 12px 20px 14px;
  color: #888d83;
  background: transparent;
  cursor: pointer;
  font: 11px var(--mono);
  text-transform: uppercase;
}
.mode-button.is-active {
  color: var(--lime);
}
.mode-statement {
  max-width: 580px;
  margin-bottom: 14px;
  font-size: clamp(1.5rem, 2.7vw, 2.7rem);
  line-height: 1.1;
  letter-spacing: -0.05em;
}
.mode-proof {
  color: #a6aaa2;
}
.about {
  padding-top: 110px;
  padding-bottom: 120px;
  border-top: 1px solid var(--line);
}
.about-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 80px;
  align-items: center;
}
.about-photo {
  position: relative;
  width: 100%;
  max-width: 300px;
  margin: 0;
  margin-left: auto;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: linear-gradient(160deg, #2c3429, #0c0f0d 80%);
}
.about-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.35);
  transition:
    filter 0.6s ease,
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.about-photo:hover .about-photo-img {
  filter: grayscale(0);
  transform: scale(1.03);
}
.about-photo-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: 11px var(--mono);
  text-transform: uppercase;
  color: var(--muted);
}
.about-copy {
  max-width: 520px;
  color: var(--secondary-copy);
  font-size: 1.15rem;
}
.about-copy > .eyebrow {
  margin-bottom: 18px;
}
.about-copy p + p {
  margin-top: 20px;
}
.about-copy .text-link {
  display: inline-block;
  margin-top: 22px;
}
.about-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 28px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
}
.about-facts div {
  display: block;
  padding: 0;
  border-top: 0;
}
.about-facts dt {
  margin-bottom: 5px;
  color: var(--muted);
}
.about-facts dd {
  font-size: 12px;
}
.work {
  padding-top: 145px;
  padding-bottom: 150px;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 65px;
}
h2 {
  margin-bottom: 0;
  font-size: clamp(2.6rem, 5vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.075em;
}
.section-intro {
  max-width: 340px;
  margin: 0;
  color: var(--body-copy);
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 64px 28px;
}
.project-grid .project-card:nth-child(n + 3) {
  display: none;
}
.project-card-large {
  grid-column: span 2;
  grid-row: span 2;
}
@media (max-width: 1080px) and (min-width: 761px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .project-card-large {
    grid-column: span 2;
    grid-row: span 1;
  }
  .project-card-large .project-art {
    aspect-ratio: 1.6;
  }
}
.project-art {
  aspect-ratio: 1.2;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  padding: 24px;
  color: var(--white);
  overflow: hidden;
}
.project-card-large .project-art {
  aspect-ratio: 0.88;
}
.project-art span {
  font: 11px var(--mono);
}
.project-art strong {
  font-size: clamp(1.5rem, 3vw, 3rem);
  line-height: 0.86;
  letter-spacing: -0.08em;
}
.art-salon {
  background: linear-gradient(145deg, #51644f, #15221b 70%);
}
.art-saas {
  background: linear-gradient(145deg, #b39d7a, #473d30 75%);
}
.art-calista {
  background: linear-gradient(145deg, #b8828c, #3c2229 75%);
}
.art-auto {
  background: linear-gradient(145deg, #5c7690, #1a2530 75%);
}
.art-fintech {
  background: linear-gradient(145deg, #8a7a4d, #1c2233 75%);
}
.art-video {
  background: linear-gradient(145deg, #705a63, #1b1418 75%);
}
.art-energy {
  background: linear-gradient(145deg, #6b766e, #25332e 75%);
}
.art-next {
  color: #101311;
  background: var(--lime);
}
.project-info {
  padding-top: 18px;
}
.project-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--card-meta);
}
.project-info h3 {
  margin: 14px 0 10px;
  font-size: 1.65rem;
  letter-spacing: -0.06em;
}
.project-info p {
  max-width: 480px;
  color: var(--secondary-copy);
}
.detail-button {
  padding: 0;
  color: var(--ink);
  background: none;
  border: 0;
  border-bottom: 1px solid var(--ink);
  cursor: pointer;
  font: 11px var(--mono);
  text-transform: uppercase;
}
.detail-button span {
  padding-left: 10px;
}
.project-card-muted {
  opacity: 0.85;
}
.approach {
  padding: 115px 32px 130px;
  border-top: 1px solid var(--line);
}
.approach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
}
.approach h2 {
  font-size: clamp(2.8rem, 5vw, 5rem);
}
.approach-copy > p {
  max-width: 480px;
  font-size: 1.2rem;
  color: var(--secondary-copy);
}
.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 42px;
}
.skill-list span {
  padding: 9px 12px;
  border: 1px solid var(--line);
}
.personal {
  padding-top: 110px;
  padding-bottom: 130px;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 100px;
  background: var(--cream);
}
.personal-list > div {
  display: grid;
  grid-template-columns: 40px 1fr;
  column-gap: 15px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.personal-list span {
  grid-row: span 2;
  font: 11px var(--mono);
  color: var(--accent-soft);
}
.personal-list h3 {
  margin: 0 0 6px;
  font-size: 1.25rem;
  letter-spacing: -0.04em;
}
.personal-list p {
  margin: 0;
  color: var(--secondary-copy);
}
.contact {
  color: var(--white);
  background: var(--dark-surface);
  padding-top: 135px;
  padding-bottom: 140px;
}
.contact .eyebrow {
  color: var(--lime);
}
.contact h2 {
  font-size: clamp(3.3rem, 7vw, 7rem);
}
.contact-layout {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 90px;
  margin-top: 60px;
  align-items: start;
}
.contact-side {
  position: sticky;
  top: 120px;
}
.contact-intro {
  max-width: 400px;
  margin-bottom: 26px;
  font-size: 1.1rem;
  color: var(--contact-copy);
}
.availability {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 40px;
  padding: 9px 14px;
  font: 11px var(--mono);
  text-transform: uppercase;
  color: var(--lime);
  border: 1px solid rgba(200, 229, 106, 0.35);
  border-radius: 999px;
}
.availability-dot {
  width: 8px;
  height: 8px;
  background: var(--lime);
  border-radius: 50%;
  animation: pulse-dot 2s ease-out infinite;
}
@keyframes pulse-dot {
  0% {
    box-shadow: 0 0 0 0 rgba(200, 229, 106, 0.55);
  }
  100% {
    box-shadow: 0 0 0 10px rgba(200, 229, 106, 0);
  }
}
.contact-details {
  max-width: 440px;
}
.contact-details div {
  flex-wrap: wrap;
  gap: 4px 20px;
  padding: 16px 0;
  border-top-color: rgba(255, 255, 255, 0.16);
}
.contact-details div:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}
.contact-details dt {
  color: var(--footer-copy);
}
.contact-details dd {
  min-width: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  overflow-wrap: anywhere;
}
.contact-details a {
  border-bottom: 1px solid rgba(248, 247, 242, 0.4);
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}
.contact-details a:hover {
  color: var(--lime);
  border-color: var(--lime);
}
.contact-form {
  display: grid;
  gap: 26px;
}
.contact-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.contact-choice {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}
.contact-choice legend,
.field label {
  padding: 0;
  margin-bottom: 8px;
  font: 11px var(--mono);
  text-transform: uppercase;
  color: var(--lime);
}
.contact-choice legend {
  width: 100%;
}
.contact-choice label {
  position: relative;
}
.contact-choice input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}
.contact-choice span {
  display: inline-block;
  padding: 10px 16px;
  font: 12px var(--mono);
  color: var(--contact-copy);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}
.contact-choice label:hover span {
  border-color: var(--lime);
}
.contact-choice input:checked + span {
  color: #101311;
  background: var(--lime);
  border-color: var(--lime);
}
.contact-choice input:focus-visible + span {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}
.field {
  display: flex;
  flex-direction: column;
}
.field input,
.field textarea {
  width: 100%;
  padding: 12px 0;
  color: var(--white);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0;
  font: 16px var(--sans);
  resize: vertical;
  transition: border-color 0.25s ease;
}
.field input:focus,
.field textarea:focus {
  outline: 0;
  border-bottom-color: var(--lime);
}
.field .is-invalid {
  border-bottom-color: #ff8a7a;
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}
.form-actions .button {
  cursor: pointer;
}
.form-actions .button:disabled {
  opacity: 0.6;
  cursor: progress;
}
.form-status {
  margin: 0;
  font: 12px var(--mono);
  color: var(--contact-copy);
}
.form-status.is-success {
  color: var(--lime);
}
.form-status.is-error {
  color: #ff8a7a;
}
.site-footer {
  padding-top: 64px;
  padding-bottom: 40px;
  background: var(--dark-surface);
  color: var(--white);
  border-top: 1px solid var(--line);
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px 48px;
}
.site-footer p {
  margin: 10px 0 0;
  color: var(--footer-copy);
  font-size: 12px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  padding-top: 8px;
  font: 11px var(--mono);
  text-transform: uppercase;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 32px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.site-footer small {
  color: var(--footer-copy);
}

/* Full-bleed backgrounds: the element spans the viewport, while padding keeps
   the content inside the same 1240px column as .section-wrap. */
.approach,
.personal,
.contact,
.site-footer {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding-left: max(var(--gutter), calc((100% - 1176px) / 2));
  padding-right: max(var(--gutter), calc((100% - 1176px) / 2));
}

/* ---------- Motion: reveal on scroll & hero entrance ----------
   Initial hidden state and the animation itself are handled by GSAP
   (script.js) via gsap.set()/gsap.to(), not CSS. This keeps content
   visible by default if JS fails to load, and avoids double-driving
   the same properties from both CSS transitions and JS. */

/* ---------- Motion: mode switch indicator ---------- */
.mode-switch {
  position: relative;
}
.mode-indicator {
  position: absolute;
  bottom: -1px;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--lime);
  transition:
    transform 0.35s cubic-bezier(0.65, 0, 0.35, 1),
    width 0.35s cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- Motion: project card hover glow ---------- */
.project-card {
  position: relative;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.project-card:hover {
  transform: translateY(-6px);
}
.project-art {
  position: relative;
}
.project-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.project-card:hover .project-shot {
  transform: scale(1.06);
}
.project-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(16, 19, 17, 0.55),
    rgba(16, 19, 17, 0) 55%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.project-art:has(.project-shot)::before {
  opacity: 1;
}
.project-art::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(
    220px circle at var(--mx, 50%) var(--my, 50%),
    rgba(248, 247, 242, 0.22),
    transparent 70%
  );
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.project-art:hover::after {
  opacity: 1;
}

/* ---------- Motion: buttons & links ---------- */
.button,
.detail-button,
.text-link {
  position: relative;
}
.button-dark:hover,
.button-light:hover {
  box-shadow: 0 14px 30px var(--shadow);
}
.button span,
.text-link span,
.header-link span {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.button:hover span,
.text-link:hover span,
.header-link:hover span {
  transform: translate(3px, -3px);
}
.detail-button span {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.detail-button:hover span {
  transform: translate(4px, -1px);
}

.site-header nav a {
  position: relative;
  display: inline-block;
  padding: 8px 10px;
  border-radius: 4px;
  transition:
    color 0.25s var(--ease),
    background-color 0.25s var(--ease),
    transform 0.25s var(--ease);
}
.site-header nav a::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 3px;
  left: 10px;
  height: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.site-header nav a:hover {
  color: var(--accent);
  background: color-mix(in srgb, var(--lime) 8%, transparent);
  transform: translateY(-1px);
}
.site-header nav a:hover::after,
.site-header nav a:focus-visible::after,
.site-header nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}
.site-header nav a:focus-visible,
.header-link:focus-visible,
.footer-links a:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

/* ---------- Mobile floating dock ---------- */
.mobile-dock {
  display: none;
}

.brand {
  display: inline-block;
  color: inherit;
  transition:
    color 0.35s var(--ease),
    transform 0.35s var(--ease);
}
.brand span {
  display: inline;
  color: var(--accent);
  transform: none;
  transition: color 0.35s var(--ease);
}
.brand:hover {
  color: var(--lime);
  transform: translateY(-2px);
}
.brand:hover span {
  color: var(--lime);
  transform: none;
}
.site-header .brand,
.site-footer .brand {
  color: var(--ink);
}
.site-header .brand span,
.site-footer .brand span {
  color: var(--accent);
}
.site-footer .brand {
  color: var(--white);
}
.site-header .brand:hover,
.site-footer .brand:hover {
  color: var(--lime);
}
.site-header .brand:hover span,
.site-footer .brand:hover span {
  color: var(--lime);
}
.brand:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 5px;
  border-radius: 2px;
}

.skill-list span {
  transition:
    transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
}
.skill-list span:hover {
  transform: translateY(-3px);
  color: var(--accent);
  border-color: var(--accent);
  background: var(--cream);
}
.skill-list span:hover {
  background: rgba(200, 229, 106, 0.08);
}

.footer-links a {
  position: relative;
  display: inline-flex;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 4px;
  transition:
    color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    background-color 0.25s var(--ease),
    transform 0.25s var(--ease);
}
.footer-links a::after {
  content: "";
  position: absolute;
  right: 9px;
  bottom: 3px;
  left: 9px;
  height: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.footer-links a:hover {
  color: var(--lime);
  background: rgba(200, 229, 106, 0.06);
  border-color: rgba(200, 229, 106, 0.18);
  transform: translateY(-1px);
}
.footer-links a:hover::after,
.footer-links a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}
.personal-list > div {
  transition: padding-left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.personal-list > div:hover {
  padding-left: 10px;
}

.work-note {
  max-width: 640px;
  margin: 72px 0 0;
  font: 12px var(--mono);
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.work-note a {
  color: var(--accent);
  border-bottom: 1px solid currentColor;
}

/* ---------- 404 page ---------- */
.notfound {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  min-height: 64vh;
  padding-top: 60px;
  padding-bottom: 100px;
}
.notfound-number {
  position: relative;
  display: flex;
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(7rem, 15vw, 13rem);
  line-height: 0.88;
  letter-spacing: -0.06em;
  color: var(--ink);
  --glitch-x: 0px;
  --glitch-opacity: 0;
}
.notfound-digit {
  display: inline-block;
}
.notfound-number::before,
.notfound-number::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  opacity: var(--glitch-opacity);
  pointer-events: none;
  mix-blend-mode: screen;
}
.notfound-number::before {
  color: var(--lime);
  transform: translateX(var(--glitch-x));
}
.notfound-number::after {
  color: #ff8a7a;
  transform: translateX(calc(var(--glitch-x) * -1));
}
.notfound-text {
  max-width: 420px;
  margin-top: 8px;
  font-size: 1.1rem;
  color: var(--body-copy);
}
.notfound-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-top: 36px;
}
.notfound-countdown {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font: 11px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.notfound-countdown strong {
  color: var(--lime);
}
.notfound-cancel {
  padding: 0;
  color: var(--muted);
  background: none;
  border: 0;
  border-bottom: 1px solid var(--muted);
  cursor: pointer;
  font: 11px var(--mono);
  text-transform: uppercase;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}
.notfound-cancel:hover {
  color: var(--accent);
  border-color: var(--accent);
}
@media (max-width: 760px) {
  .notfound {
    display: block;
    min-height: auto;
    padding-top: 40px;
    padding-bottom: 70px;
  }
  .notfound-number {
    justify-content: center;
    font-size: clamp(4.5rem, 24vw, 7rem);
    margin-bottom: 36px;
  }
  .notfound-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

/* ---------- Case study pages ---------- */
.case-hero {
  padding-top: 72px;
  padding-bottom: 56px;
}
.case-hero h1 {
  max-width: 980px;
  font-size: clamp(3rem, 8vw, 6.5rem);
}
.case-lede {
  max-width: 660px;
  font-size: 1.25rem;
  color: var(--body-copy);
}
.case-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0 32px;
  margin-top: 56px;
}
.case-meta div {
  display: block;
}
.case-meta dd {
  margin-top: 6px;
  font-size: 14px;
}
.case-meta a {
  border-bottom: 1px solid var(--ink);
}
.case-meta a:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.case-shots {
  display: grid;
  grid-template-columns: 1fr 0.36fr;
  gap: 24px;
  padding-bottom: 96px;
}
.shot {
  position: relative;
  display: grid;
  place-items: center;
  margin: 0;
  overflow: hidden;
  color: var(--white);
}
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.shot-wide {
  aspect-ratio: 16 / 10;
}
.shot-tall {
  aspect-ratio: 9 / 16;
  align-self: end;
}
.shot-label {
  padding: 8px 12px;
  font: 11px var(--mono);
  text-transform: uppercase;
  border: 1px solid rgba(248, 247, 242, 0.35);
  text-align: center;
}
.case-body {
  padding-bottom: 96px;
}
.case-section {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 80px;
  padding: 56px 0;
  border-top: 1px solid var(--line);
}
.case-section h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}
.case-copy p,
.case-list li {
  max-width: 640px;
  font-size: 1.1rem;
  color: var(--secondary-copy);
}
.case-copy p:last-child {
  margin-bottom: 0;
}
.case-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.case-list li {
  position: relative;
  padding: 0 0 18px 26px;
}
.case-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 12px;
  height: 1px;
  background: var(--accent);
}
.case-list strong {
  color: var(--ink);
}
.case-next {
  padding: 96px 0 110px;
  background: var(--cream);
}
.case-next-link {
  display: block;
  margin-top: 8px;
}
.case-next-link strong {
  display: block;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.07em;
  transition:
    color 0.3s ease,
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.case-next-link:hover strong {
  color: var(--accent);
  transform: translateX(10px);
}
.case-next-link span {
  display: inline-block;
  margin-top: 18px;
  font: 11px var(--mono);
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Signature ---------- */
.signature {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.signature-text {
  font-family: "Caveat", var(--serif), cursive;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--white);
}
.signature-svg {
  width: 190px;
  height: 24px;
  overflow: visible;
}
.signature-svg path {
  fill: none;
  stroke: var(--lime);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  transition: stroke-dashoffset 1.1s cubic-bezier(0.65, 0, 0.35, 1) 0.15s;
}
.signature.is-visible .signature-svg path {
  stroke-dashoffset: 0;
}
.signature.is-visible .signature-text {
  animation: sig-fade 0.6s ease forwards;
}
@keyframes sig-fade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .availability-dot {
    animation: none;
  }
  .text-sweep {
    transition: none;
  }
  .mobile-dock a.is-active::after {
    animation: none;
  }
  .signature-text {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .signature-svg path {
    transition: none !important;
    stroke-dashoffset: 0 !important;
  }
  .project-card,
  .project-shot,
  .project-art::after,
  .button span,
  .text-link span,
  .header-link span,
  .detail-button span,
  .site-header nav a::after,
  .site-header,
  .mobile-dock a,
  .brand,
  .skill-list span,
  .header-link,
  .header-link::before,
  .footer-links a,
  .footer-links a::after,
  .personal-list > div {
    transition: none !important;
  }
}

@media (max-width: 760px) {
  :root {
    --gutter: 20px;
  }
  .section-wrap,
  .site-header {
    padding-left: 20px;
    padding-right: 20px;
  }
  .site-header {
    height: 64px;
    grid-template-columns: 1fr auto;
  }
  .site-header nav {
    display: none;
  }
  .hero-actions {
    flex-wrap: wrap;
    gap: 18px 24px;
    margin-top: 32px;
  }
  .button {
    padding: 14px 16px;
    gap: 12px;
  }
  .mobile-dock {
    position: fixed;
    left: 50%;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    z-index: 60;
    display: flex;
    gap: 2px;
    padding: 6px;
    max-width: calc(100% - 24px);
    transform: translateX(-50%);
    background: var(--paper);
    background: color-mix(in srgb, var(--paper) 78%, transparent);
    -webkit-backdrop-filter: blur(16px) saturate(1.5);
    backdrop-filter: blur(16px) saturate(1.5);
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: 0 10px 30px var(--shadow);
    font: 11px var(--mono);
    text-transform: uppercase;
  }
  .mobile-dock a {
    position: relative;
    padding: 11px 15px;
    border-radius: 999px;
    color: var(--muted);
    transition:
      background-color 0.25s ease,
      color 0.25s ease,
      box-shadow 0.25s ease,
      transform 0.25s ease;
  }
  .mobile-dock a.is-active {
    color: #101311;
    background: var(--lime);
    box-shadow:
      0 4px 12px rgba(200, 229, 106, 0.28),
      inset 0 0 0 1px rgba(16, 19, 17, 0.12);
    transform: translateY(-1px);
  }
  .mobile-dock a.is-active::after {
    position: absolute;
    left: 50%;
    bottom: 4px;
    width: 3px;
    height: 3px;
    content: "";
    background: currentColor;
    border-radius: 50%;
    transform: translateX(-50%);
    animation: dock-pulse 1.8s ease-in-out infinite;
  }
  .mobile-dock a:active {
    transform: translateY(1px) scale(0.96);
  }
  .site-footer {
    padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px));
  }
  .header-link {
    font-size: 10px;
  }
  .hero {
    display: block;
    min-height: auto;
    padding-top: 80px;
    padding-bottom: 85px;
  }
  h1 {
    font-size: clamp(3.2rem, 15vw, 5rem);
  }
  .hero-note {
    margin-top: 75px;
    padding-left: 20px;
  }
  .hero-note p {
    margin: 25px 0 35px;
    font-size: 1.35rem;
  }
  .mode-layout,
  .about-layout,
  .approach-grid,
  .personal {
    display: block;
  }
  .about {
    padding-top: 80px;
    padding-bottom: 90px;
  }
  .about-copy {
    font-size: 1.05rem;
  }
  .about-facts {
    gap: 8px;
  }
  .about-facts dd {
    font-size: 10px;
  }
  .about-photo {
    max-width: 220px;
    margin: 36px auto 0;
  }
  .mode-layout > div + div {
    margin-top: 50px;
  }
  .work {
    padding-top: 90px;
    padding-bottom: 95px;
  }
  .section-heading {
    display: block;
    margin-bottom: 45px;
  }
  .section-intro {
    margin-top: 25px;
  }
  .project-grid {
    display: block;
  }
  .project-card {
    margin-bottom: 60px;
  }
  .project-card-large .project-art {
    aspect-ratio: 1;
  }
  .project-art {
    aspect-ratio: 1.15;
  }
  .approach {
    padding-top: 80px;
    padding-bottom: 90px;
  }
  .approach-copy {
    margin-top: 45px;
  }
  .personal {
    padding-top: 80px;
    padding-bottom: 90px;
  }
  .personal-list {
    margin-top: 55px;
  }
  .contact {
    padding-top: 90px;
    padding-bottom: 95px;
  }
  .contact-layout {
    display: block;
    margin-top: 45px;
  }
  .contact-side {
    position: static;
  }
  .contact-details {
    max-width: none;
  }
  .contact-form {
    margin-top: 56px;
  }
  .site-footer {
    padding-top: 48px;
  }
  .footer-top {
    flex-direction: column;
    gap: 24px;
  }
  .footer-links {
    padding-top: 0;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    margin-top: 36px;
  }
}

@keyframes dock-pulse {
  0%,
  100% {
    opacity: 0.45;
    transform: translateX(-50%) scale(0.8);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) scale(1.25);
  }
}

@media (max-width: 760px) {
  .case-hero {
    padding-top: 48px;
    padding-bottom: 40px;
  }
  .case-lede {
    font-size: 1.1rem;
  }
  .case-meta {
    grid-template-columns: 1fr 1fr;
    margin-top: 40px;
  }
  .case-shots {
    grid-template-columns: 1fr;
    padding-bottom: 64px;
  }
  .shot-tall {
    width: 56%;
  }
  .case-section {
    display: block;
    padding: 40px 0;
  }
  .case-section h2 {
    margin-bottom: 20px;
  }
  .case-body {
    padding-bottom: 64px;
  }
  .case-next {
    padding: 72px 0 80px;
  }
}

@media (max-width: 400px) {
  h1 {
    font-size: 2.85rem;
    letter-spacing: -0.065em;
  }
  .contact h2 {
    font-size: 2.85rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 22px;
  }
  .hero-actions .button {
    justify-content: space-between;
  }
  .hero-actions .text-link {
    align-self: flex-start;
  }
  .mobile-dock a {
    padding: 11px 12px;
  }
}
