:root {
  --ink: #111413;
  --ink-soft: #2a302e;
  --paper: #f6f0e4;
  --paper-strong: #fffaf0;
  --line: rgba(17, 20, 19, 0.14);
  --muted: #68716d;
  --coral: #ff684d;
  --teal: #00a7a5;
  --sun: #ffd166;
  --blue: #4456f0;
  --radius: 8px;
  --shadow: 0 24px 80px rgba(17, 20, 19, 0.18);
}

@keyframes intro-up {
  from {
    opacity: 0;
    transform: translateY(26px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes soft-zoom {
  from {
    transform: scale(1.12);
  }

  to {
    transform: scale(1.17);
  }
}

@keyframes line-grow {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes modal-rise {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pulse-play {
  0%,
  100% {
    box-shadow: 0 18px 48px rgba(17, 20, 19, 0.36);
  }

  50% {
    box-shadow: 0 18px 48px rgba(255, 104, 77, 0.42);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--spotlight-x, 20%) var(--spotlight-y, 20%), rgba(255, 104, 77, 0.16), transparent 24rem),
    linear-gradient(rgba(17, 20, 19, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 20, 19, 0.02) 1px, transparent 1px);
  background-size: auto, 32px 32px, 32px 32px;
  z-index: -1;
}

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

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

p,
h1,
h2,
h3 {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  transform: translateY(-140%);
  z-index: 100;
  border-radius: var(--radius);
  background: var(--paper-strong);
  color: var(--ink);
  padding: 10px 14px;
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  width: min(1120px, calc(100% - 32px));
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 250, 240, 0.22);
  border-radius: 999px;
  background: rgba(17, 20, 19, 0.62);
  color: var(--paper-strong);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px);
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(17, 20, 19, 0.86);
  border-color: rgba(255, 250, 240, 0.32);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 900;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--coral);
  color: var(--paper-strong);
  font-size: 15px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  border-radius: 999px;
  padding: 10px 14px;
  color: rgba(255, 250, 240, 0.82);
  font-size: 14px;
  font-weight: 800;
  transition:
    background 180ms ease,
    color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(255, 250, 240, 0.13);
  color: var(--paper-strong);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 250, 240, 0.12);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--paper-strong);
}

.hero {
  position: relative;
  min-height: 88svh;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  padding: 116px max(24px, calc((100vw - 1120px) / 2)) 88px;
  color: var(--paper-strong);
}

.hero-bg,
.hero-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-bg {
  object-fit: cover;
  object-position: center bottom;
  transform: scale(1.12);
  transform-origin: center bottom;
  z-index: -3;
  animation: soft-zoom 12s ease-in-out infinite alternate;
}

.hero-scrim {
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(17, 20, 19, 0.98) 0%, rgba(17, 20, 19, 0.82) 22%, rgba(17, 20, 19, 0.08) 48%),
    linear-gradient(90deg, rgba(17, 20, 19, 0.94) 0%, rgba(17, 20, 19, 0.73) 40%, rgba(17, 20, 19, 0.14) 100%),
    linear-gradient(0deg, rgba(17, 20, 19, 0.28), rgba(17, 20, 19, 0.05));
}

.hero-content {
  width: min(760px, 100%);
  padding-top: 16px;
}

.hero-content .eyebrow,
.hero-content h1,
.hero-lede,
.hero-actions {
  opacity: 0;
  animation: intro-up 680ms ease forwards;
}

.hero-content .eyebrow {
  animation-delay: 120ms;
}

.hero-content h1 {
  animation-delay: 220ms;
}

.hero-lede {
  animation-delay: 340ms;
}

.hero-actions {
  animation-delay: 460ms;
}

.eyebrow,
.label,
.date {
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: uppercase;
  font-weight: 900;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 250, 240, 0.8);
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: left center;
  animation: line-grow 680ms ease both;
}

.eyebrow.dark {
  color: var(--coral);
}

.hero h1 {
  margin-top: 18px;
  font-size: 96px;
  line-height: 0.92;
  letter-spacing: 0;
  max-width: 740px;
}

.hero-lede {
  width: min(660px, 100%);
  margin-top: 28px;
  color: rgba(255, 250, 240, 0.83);
  font-size: 22px;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  max-width: 100%;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 13px 19px;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--coral);
  color: var(--paper-strong);
  box-shadow: 0 16px 44px rgba(255, 104, 77, 0.28);
}

.button.secondary {
  border-color: rgba(255, 250, 240, 0.34);
  color: var(--paper-strong);
  background: rgba(255, 250, 240, 0.1);
}

.button.light {
  background: var(--paper-strong);
  color: var(--ink);
}

.button.ghost-light {
  border-color: rgba(255, 250, 240, 0.3);
  color: var(--paper-strong);
}

.hero-proof {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  width: min(1120px, calc(100% - 48px));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 250, 240, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.12);
  backdrop-filter: blur(16px);
}

.hero-proof span {
  min-height: 58px;
  display: flex;
  align-items: center;
  padding: 16px 18px;
  color: rgba(255, 250, 240, 0.88);
  font-weight: 850;
  background: rgba(17, 20, 19, 0.22);
  opacity: 0;
  animation: float-in 580ms ease forwards;
}

.hero-proof span:nth-child(1) {
  animation-delay: 560ms;
}

.hero-proof span:nth-child(2) {
  animation-delay: 640ms;
}

.hero-proof span:nth-child(3) {
  animation-delay: 720ms;
}

.hero-proof span:nth-child(4) {
  animation-delay: 800ms;
}

.section {
  padding: 106px max(24px, calc((100vw - 1120px) / 2));
}

.section-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px;
  align-items: start;
}

.section h2,
.contact-section h2 {
  margin-top: 14px;
  font-size: 58px;
  line-height: 0.98;
  letter-spacing: 0;
}

.intro-section {
  background:
    radial-gradient(circle at 82% 12%, rgba(0, 167, 165, 0.2), transparent 26rem),
    linear-gradient(135deg, #111413 0%, #1e2522 58%, #173f3d 100%);
  color: var(--paper-strong);
}

.profile-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
  gap: 56px;
  align-items: stretch;
  padding: 0 0 46px;
  border-bottom: 1px solid rgba(255, 250, 240, 0.16);
}

.profile-copy {
  display: grid;
  align-content: center;
}

.profile-copy h2 {
  width: min(760px, 100%);
  color: var(--paper-strong);
}

.profile-copy p:not(.eyebrow) {
  width: min(720px, 100%);
  margin-top: 22px;
  color: rgba(255, 250, 240, 0.78);
  font-size: 21px;
}

.profile-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.profile-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border: 1px solid rgba(255, 250, 240, 0.18);
  border-radius: 999px;
  padding: 9px 13px;
  background: rgba(255, 250, 240, 0.08);
  color: var(--paper-strong);
  font-size: 14px;
  font-weight: 900;
}

.profile-photo {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 420px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 250, 240, 0.18);
  border-radius: var(--radius);
  background: var(--paper-strong);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(1);
  transition:
    filter 240ms ease,
    transform 360ms ease;
}

.profile-photo:hover img {
  filter: grayscale(0.35);
  transform: scale(1.025);
}

.profile-photo figcaption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  border-radius: var(--radius);
  padding: 11px 12px;
  background: rgba(17, 20, 19, 0.76);
  color: var(--paper-strong);
  font-size: 14px;
  font-weight: 900;
  backdrop-filter: blur(12px);
}

.profile-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 24px;
}

.service-tile {
  min-height: 210px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: rgba(255, 250, 240, 0.96);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.service-tile:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 104, 77, 0.34);
  box-shadow: 0 18px 58px rgba(17, 20, 19, 0.11);
}

.service-tile h3 {
  color: var(--ink);
  font-size: 25px;
  line-height: 1.1;
}

.service-tile p {
  margin-top: 14px;
  color: var(--muted);
}

.work-section {
  background: var(--paper-strong);
}

.section-heading {
  width: min(760px, 100%);
  margin-bottom: 40px;
}

.section-heading p:not(.eyebrow) {
  margin-top: 18px;
  color: var(--muted);
  font-size: 18px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.work-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 14px 44px rgba(17, 20, 19, 0.06);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.project-card {
  position: relative;
  color: inherit;
  cursor: pointer;
}

.work-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(255, 104, 77, 0.34);
}

.project-card .work-card-body::after {
  content: "Open project";
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-top: 22px;
  border-bottom: 2px solid var(--coral);
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
}

.project-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.work-card img {
  width: 100%;
  aspect-ratio: 1.38 / 1;
  object-fit: cover;
  transition: transform 520ms ease;
}

.work-card:hover img {
  transform: scale(1.045);
}

.work-card-body {
  padding: 24px;
}

.label {
  color: var(--teal);
}

.work-card h3,
.timeline-item h3,
.skill-panel h3 {
  margin-top: 10px;
  font-size: 25px;
  line-height: 1.1;
  letter-spacing: 0;
}

.work-card p:not(.label),
.timeline-item p,
.skill-panel p {
  margin-top: 14px;
  color: var(--muted);
}

.work-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.work-card li {
  position: relative;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 800;
  background: rgba(246, 240, 228, 0.72);
}

.work-card li::before {
  content: none;
}

.experience-section {
  background:
    linear-gradient(180deg, rgba(0, 167, 165, 0.1), transparent 36%),
    var(--paper);
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 32px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: 0;
  height: 2px;
  background: var(--coral);
  transition: width 700ms ease var(--reveal-delay, 0ms);
}

.timeline-item.is-visible::before {
  width: 120px;
}

.timeline-item:last-child {
  border-bottom: 1px solid var(--line);
}

.date {
  color: var(--coral);
  padding-top: 6px;
}

.meta {
  color: var(--ink) !important;
  font-weight: 850;
}

.skills-section {
  background: var(--ink);
  color: var(--paper-strong);
}

.skills-section .eyebrow.dark {
  color: var(--sun);
}

.skills-section .section-heading p:not(.eyebrow) {
  color: rgba(255, 250, 240, 0.68);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 250, 240, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.14);
}

.skill-panel {
  position: relative;
  min-height: 260px;
  padding: 28px;
  background:
    linear-gradient(160deg, rgba(255, 250, 240, 0.09), rgba(255, 250, 240, 0.03)),
    var(--ink);
  transition:
    transform 220ms ease,
    background 220ms ease;
}

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

.skill-panel::before {
  content: "";
  position: absolute;
  left: 28px;
  top: 24px;
  width: 34px;
  height: 3px;
  border-radius: 999px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 420ms ease;
}

.skill-panel.is-visible::before {
  transform: scaleX(1);
}

.skill-panel:nth-child(2) {
  background:
    linear-gradient(160deg, rgba(0, 167, 165, 0.2), rgba(255, 250, 240, 0.03)),
    var(--ink);
}

.skill-panel:nth-child(3) {
  background:
    linear-gradient(160deg, rgba(255, 209, 102, 0.18), rgba(255, 250, 240, 0.03)),
    var(--ink);
}

.skill-panel:nth-child(4) {
  background:
    linear-gradient(160deg, rgba(255, 104, 77, 0.2), rgba(255, 250, 240, 0.03)),
    var(--ink);
}

.skill-panel p {
  color: rgba(255, 250, 240, 0.7);
}

.contact-section {
  padding: 120px max(24px, calc((100vw - 1120px) / 2));
  background:
    linear-gradient(120deg, rgba(17, 20, 19, 0.92), rgba(17, 20, 19, 0.78)),
    url("assets/hero-studio.png") center / cover;
  color: var(--paper-strong);
}

.contact-inner {
  width: min(820px, 100%);
}

.contact-inner p:not(.eyebrow) {
  margin-top: 24px;
  color: rgba(255, 250, 240, 0.74);
  font-size: 20px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px max(24px, calc((100vw - 1120px) / 2));
  background: var(--ink);
  color: rgba(255, 250, 240, 0.72);
  border-top: 1px solid rgba(255, 250, 240, 0.12);
  font-size: 14px;
}

.site-footer span:first-child,
.site-footer a {
  color: var(--paper-strong);
  font-weight: 850;
}

body.project-open {
  overflow: hidden;
}

.project-viewer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition:
    opacity 180ms ease,
    visibility 180ms ease;
}

body.project-open .project-viewer {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.project-viewer__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background:
    radial-gradient(circle at 22% 18%, rgba(0, 167, 165, 0.18), transparent 26rem),
    radial-gradient(circle at 78% 82%, rgba(255, 104, 77, 0.18), transparent 28rem),
    rgba(17, 20, 19, 0.76);
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.project-viewer__panel {
  position: relative;
  width: min(1280px, 100%);
  max-height: calc(100svh - 36px);
  overflow: auto;
  border: 1px solid rgba(255, 250, 240, 0.2);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), transparent 360px),
    var(--paper);
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.35);
}

.project-viewer__panel:focus {
  outline: none;
}

body.project-open .project-viewer__panel {
  animation: modal-rise 260ms ease both;
}

.project-viewer__bar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px;
  border-bottom: 1px solid rgba(255, 250, 240, 0.14);
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 104, 77, 0.18), transparent 24rem),
    rgba(17, 20, 19, 0.96);
  color: var(--paper-strong);
  backdrop-filter: blur(18px);
}

.project-viewer__bar > div {
  min-width: 0;
}

.project-viewer__bar .eyebrow.dark {
  color: var(--coral);
}

.project-viewer__bar h2 {
  margin-top: 10px;
  color: var(--paper-strong);
  font-size: 38px;
  line-height: 1;
}

.project-viewer__close {
  flex: 0 0 auto;
  min-height: 42px;
  border: 1px solid rgba(255, 250, 240, 0.32);
  border-radius: 999px;
  padding: 10px 14px;
  background: var(--paper-strong);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.project-viewer__content {
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(340px, 0.76fr);
  gap: 20px;
  padding: 20px;
}

.project-viewer__media {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink);
  align-self: start;
  box-shadow: 0 18px 58px rgba(17, 20, 19, 0.12);
}

.project-viewer__media iframe,
.project-viewer__media img {
  display: block;
  width: 100%;
  border: 0;
}

.video-shell {
  position: relative;
  background: var(--ink);
}

.video-poster {
  position: relative;
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  color: var(--paper-strong);
  cursor: pointer;
  overflow: hidden;
}

.video-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(17, 20, 19, 0.06), rgba(17, 20, 19, 0.34)),
    radial-gradient(circle at 50% 50%, transparent 0 16%, rgba(17, 20, 19, 0.32) 58%);
}

.video-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  transform: scale(1.02);
  transition:
    opacity 180ms ease,
    transform 220ms ease;
}

.video-poster:hover img,
.video-poster:focus-visible img {
  opacity: 0.86;
  transform: scale(1.04);
}

.video-poster span {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  min-height: 58px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: var(--coral);
  box-shadow: 0 18px 48px rgba(17, 20, 19, 0.36);
  color: var(--paper-strong);
  font-size: 16px;
  font-weight: 950;
  animation: pulse-play 1800ms ease-in-out infinite;
}

.project-viewer__media iframe {
  aspect-ratio: 16 / 9;
  height: auto;
}

.video-fallback {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid rgba(255, 250, 240, 0.18);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--paper-strong);
  font-size: 14px;
  font-weight: 900;
  background: rgba(17, 20, 19, 0.72);
  backdrop-filter: blur(12px);
}

.project-viewer__media img {
  max-height: 720px;
  object-fit: contain;
  background: var(--paper);
}

.project-viewer__media .video-poster img {
  height: 100%;
  max-height: none;
  object-fit: cover;
  background: var(--ink);
}

.project-viewer__text {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
  align-self: start;
}

.project-summary,
.project-detail-block {
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(17, 20, 19, 0.06);
}

.project-summary {
  border-color: rgba(17, 20, 19, 0.24);
  background:
    linear-gradient(135deg, rgba(0, 167, 165, 0.2), transparent 70%),
    var(--ink);
  color: var(--paper-strong);
  font-size: 21px;
  font-weight: 850;
  line-height: 1.45;
}

.project-detail-block {
  position: relative;
  overflow: hidden;
}

.project-detail-block::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--coral);
}

.project-detail-block h3,
.project-viewer__gallery h3 {
  font-size: 21px;
  line-height: 1.1;
}

.project-detail-block p,
.project-detail-list {
  margin-top: 12px;
  color: var(--muted);
}

.project-detail-list {
  display: grid;
  gap: 8px;
  list-style: none;
  padding-left: 0;
}

.project-detail-list li {
  position: relative;
  padding-left: 20px;
}

.project-detail-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
}

.project-viewer__gallery {
  display: grid;
  gap: 16px;
  grid-column: 1 / -1;
  margin-top: 4px;
  padding-top: 6px;
}

.project-gallery-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.project-gallery-heading span {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 250, 240, 0.7);
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.detail-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.detail-gallery-item,
.portfolio-page {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 14px 42px rgba(17, 20, 19, 0.08);
}

.detail-gallery-item img {
  width: 100%;
  aspect-ratio: 1.35 / 1;
  object-fit: cover;
}

.detail-gallery-item figcaption,
.portfolio-page figcaption {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.portfolio-pages {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.portfolio-page img {
  width: 100%;
  background: #ffffff;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 620ms ease var(--reveal-delay, 0ms),
    transform 620ms ease var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 4px;
}

@media (max-width: 980px) {
  .site-header {
    width: min(720px, calc(100% - 24px));
  }

  .hero {
    min-height: 86svh;
    padding: 106px 24px 118px;
  }

  .hero h1 {
    font-size: 72px;
  }

  .section,
  .contact-section {
    padding-left: 24px;
    padding-right: 24px;
  }

  .section-grid,
  .work-grid,
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .profile-band,
  .profile-services {
    grid-template-columns: 1fr;
  }

  .profile-photo {
    width: min(420px, 100%);
    min-height: 380px;
  }

  .section h2,
  .contact-section h2 {
    font-size: 44px;
  }

  .work-card {
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) 1.1fr;
  }

  .work-card img {
    height: 100%;
    min-height: 330px;
    aspect-ratio: auto;
  }

  .skills-grid {
    gap: 1px;
  }

  .skill-panel {
    min-height: auto;
  }

  .project-viewer__text,
  .project-viewer__content,
  .detail-gallery-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 720px) {
  .site-header {
    top: 10px;
    align-items: center;
    border-radius: 999px;
    flex-wrap: wrap;
    padding: 8px;
  }

  body.nav-open .site-header {
    align-items: flex-start;
    border-radius: 26px;
  }

  .brand {
    max-width: calc(100% - 56px);
  }

  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 6px;
  }

  body.nav-open .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 12px 14px;
  }

  .hero {
    min-height: 100svh;
    align-items: flex-end;
    padding: 104px 18px 42px;
  }

  .hero-bg {
    object-position: 68% center;
    opacity: 0.46;
    transform: scale(1.14);
    animation: none;
  }

  .hero-scrim {
    background:
      linear-gradient(180deg, rgba(17, 20, 19, 0.9) 0%, rgba(17, 20, 19, 0.48) 42%, rgba(17, 20, 19, 0.96) 100%),
      linear-gradient(90deg, rgba(17, 20, 19, 0.98) 0%, rgba(17, 20, 19, 0.82) 62%, rgba(17, 20, 19, 0.42) 100%);
  }

  .hero-content {
    width: min(350px, 100%);
    padding-top: 0;
  }

  .hero-content .eyebrow {
    display: flex;
    align-items: flex-start;
    max-width: 100%;
    color: rgba(255, 250, 240, 0.86);
  }

  .hero h1 {
    font-size: 64px;
    max-width: 11ch;
    color: var(--paper-strong);
    text-shadow: 0 14px 40px rgba(0, 0, 0, 0.42);
  }

  .hero-lede,
  .profile-copy p:not(.eyebrow),
  .contact-inner p:not(.eyebrow) {
    font-size: 16px;
  }

  .hero-lede {
    width: 100%;
    margin-top: 18px;
    color: rgba(255, 250, 240, 0.9);
  }

  .hero-actions,
  .contact-actions {
    gap: 9px;
    margin-top: 24px;
  }

  .hero-actions .button {
    flex: 1 1 140px;
  }

  .button {
    min-height: 46px;
    padding: 12px 15px;
    font-size: 14px;
  }

  .hero-proof {
    display: none;
  }

  .section {
    padding-top: 78px;
    padding-bottom: 78px;
  }

  .section h2,
  .contact-section h2 {
    font-size: 34px;
  }

  .profile-band,
  .profile-services,
  .work-card,
  .timeline-item {
    grid-template-columns: 1fr;
  }

  .profile-band {
    gap: 24px;
    padding-bottom: 30px;
  }

  .profile-pills {
    gap: 8px;
    margin-top: 22px;
  }

  .profile-photo {
    min-height: 320px;
  }

  .profile-services {
    margin-top: 18px;
  }

  .service-tile {
    min-height: auto;
    padding: 18px;
  }

  .work-card img {
    min-height: auto;
    aspect-ratio: 1.35 / 1;
  }

  .project-viewer {
    place-items: stretch;
    padding: 0;
  }

  .project-viewer__panel {
    width: 100%;
    height: 100svh;
    max-height: 100svh;
    border: 0;
    border-radius: 0;
  }

  .project-viewer__bar {
    gap: 12px;
    padding: 14px;
  }

  .project-viewer__bar h2 {
    margin-top: 7px;
    font-size: 25px;
  }

  .project-viewer__close {
    min-height: 40px;
    padding: 9px 12px;
  }

  .project-viewer__content {
    gap: 14px;
    padding: 14px;
  }

  .project-summary {
    padding: 16px;
    font-size: 17px;
  }

  .project-detail-block {
    padding: 16px;
  }

  .project-gallery-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  .portfolio-pages {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .video-poster span {
    min-width: 118px;
    min-height: 50px;
    font-size: 14px;
  }

  .work-card-body,
  .skill-panel {
    padding: 20px;
  }

  .timeline-item {
    gap: 10px;
  }

  .contact-section {
    padding-top: 78px;
    padding-bottom: 78px;
  }
}

@media (max-width: 430px) {
  .hero {
    padding-top: 104px;
  }

  .hero h1 {
    font-size: 54px;
    max-width: none;
  }

  .hero-actions .button,
  .contact-actions .button {
    flex-basis: 100%;
    width: 100%;
  }
}

@media (max-width: 360px) {
  .hero h1 {
    font-size: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
