:root {
  color-scheme: light;
  --ink: #1f1a14;
  --ink-muted: #4a4239;
  --paper: #f6f2ec;
  --card: rgba(255, 255, 255, 0.78);
  --stroke: rgba(31, 26, 20, 0.1);
  --accent: #ff7a59;
  --accent-2: #19a29b;
  --accent-3: #f2c14e;
  --shadow: 0 24px 60px rgba(23, 21, 18, 0.16);
  --radius-lg: 25px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background: radial-gradient(80% 60% at 10% 10%, rgba(242, 193, 78, 0.25), transparent 60%),
    radial-gradient(70% 60% at 90% 15%, rgba(25, 162, 155, 0.2), transparent 55%),
    radial-gradient(60% 60% at 50% 95%, rgba(255, 122, 89, 0.22), transparent 55%),
    var(--paper);
  min-height: 100vh;
}

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

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

.backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  width: 45vw;
  height: 45vw;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
}

.orb-one {
  background: rgba(255, 122, 89, 0.5);
  top: -10%;
  left: -10%;
}

.orb-two {
  background: rgba(25, 162, 155, 0.5);
  top: 5%;
  right: -15%;
}

.orb-three {
  background: rgba(242, 193, 78, 0.4);
  bottom: -25%;
  left: 15%;
}

.grid-glow {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
  background-size: 120px 120px;
  opacity: 0.25;
  mix-blend-mode: multiply;
}

.hero,
main,
footer {
  position: relative;
  z-index: 1;
}

.hero {
  padding: 32px clamp(20px, 4vw, 64px) 64px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
}

.logo {
  font-family: "Fraunces", serif;
  font-size: 20px;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: 24px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.hero-title {
  font-family: "Fraunces", serif;
  font-size: clamp(36px, 4vw, 54px);
  margin: 16px 0 20px;
  line-height: 1.05;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.28em;
  color: var(--ink-muted);
  margin: 0;
}

.hero-lead {
  font-size: 18px;
  line-height: 1.6;
  margin: 0 0 24px;
  color: var(--ink-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn.primary {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn.primary:hover {
  transform: translateY(-2px);
}

.btn.ghost {
  border-color: var(--ink);
  background: transparent;
}

.btn.text {
  padding: 12px 8px;
  border: none;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.stat {
  background: var(--card);
  border-radius: 16px;
  padding: 14px 16px;
  border: 1px solid var(--stroke);
  backdrop-filter: blur(6px);
}

.stat-value {
  display: block;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-muted);
}

.hero-panel {
  display: grid;
  gap: 24px;
}

.panel-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-muted);
}

.panel-card h2 {
  font-family: "Fraunces", serif;
  font-size: 28px;
  margin: 18px 0 12px;
}

.panel-card p {
  margin: 0;
  color: var(--ink-muted);
  line-height: 1.6;
}

.panel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.panel-tags span {
  background: rgba(25, 162, 155, 0.12);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
}

.hire-panel {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 16px;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
}

.hire-panel-head h3 {
  font-family: "Fraunces", serif;
  font-size: 18px;
  margin: 6px 0 6px;
}

.hire-panel-head p {
  margin: 0;
  color: var(--ink-muted);
  line-height: 1.4;
  font-size: 14px;
}

.hire-buttons {
  display: flex;
  gap: 10px;
}

.hire-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(31, 26, 20, 0.2);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  min-height: 48px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.hire-button:hover {
  transform: translateY(-1px);
  border-color: rgba(25, 162, 155, 0.35);
  box-shadow: 0 16px 26px rgba(20, 18, 16, 0.14);
}

.hire-button[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.7;
}

.hire-logo {
  width: 22px;
  height: 22px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(25, 162, 155, 0.35), rgba(255, 122, 89, 0.28));
  font-size: 12px;
  font-weight: 700;
  color: #1f1a14;
}

.pill {
  background: rgba(255, 122, 89, 0.2);
  padding: 6px 12px;
  border-radius: 999px;
}

.panel-art {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.art-slab {
  height: 120px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(25, 162, 155, 0.4), rgba(255, 122, 89, 0.25));
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 18px 30px rgba(20, 18, 16, 0.16);
}

.section {
  padding: 72px clamp(20px, 4vw, 64px);
}

.section-head {
  max-width: 720px;
  margin-bottom: 40px;
}

.section-head h2 {
  font-family: "Fraunces", serif;
  font-size: clamp(28px, 3vw, 40px);
  margin: 16px 0 12px;
}

.section-head p {
  color: var(--ink-muted);
  line-height: 1.6;
}

.project-group {
  margin-bottom: 64px;
}

.project-group h3 {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 24px;
  color: var(--ink-muted);
}

.project {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(24px, 4vw, 48px);
  padding: 56px 28px 28px;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.project.reverse {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.project.reverse .project-content {
  order: 2;
}

.project.reverse .project-media {
  order: 1;
}

.project-title {
  padding-right: 0;
}

.project-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.project-title h4 {
  font-size: 22px;
  margin: 0;
}

.project-year {
  position: absolute;
  top: 20px;
  right: 28px;
  left: auto;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-muted);
  white-space: nowrap;
}

.project-subtitle {
  color: var(--ink-muted);
  margin: 8px 0 12px;
}

.project ul {
  padding-left: 18px;
  margin: 0 0 16px;
  color: var(--ink-muted);
  line-height: 1.6;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span {
  background: rgba(255, 122, 89, 0.18);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
}

.link {
  display: inline-flex;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.card-action {
  margin-top: 0;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 18px rgba(31, 26, 20, 0.08);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.project-media {
  display: flex;
  align-items: center;
  justify-content: center;
}

.project.date-safe .project-media {
  padding-top: 28px;
}

.phone-frame {
  --frame-radius: 31px;
  --frame-border: 6px;
  position: relative;
  width: min(200px, 60vw);
  aspect-ratio: 9 / 19.5;
  border-radius: var(--frame-radius);
  background: linear-gradient(140deg, #111, #2a2a2a);
  border: var(--frame-border) solid rgba(15, 15, 15, 0.9);
  box-shadow:
    0 24px 45px rgba(0, 0, 0, 0.25),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 10px 18px rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.phone-frame video {
  width: 100%;
  height: 100%;
  border-radius: calc(var(--frame-radius) - var(--frame-border));
  object-fit: cover;
  display: block;
}

.concept-panel,
.dolly-panel,
.paper-panel,
.screen-frame {
  width: min(420px, 100%);
  max-width: 100%;
  margin: 0 auto;
  border-radius: 22px;
  padding: 20px;
  border: 1px solid rgba(31, 26, 20, 0.12);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 20px 40px rgba(20, 18, 16, 0.18);
}

.concept-panel {
  display: grid;
  gap: 16px;
  align-items: center;
  text-align: center;
}

.concept-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.concept-grid span {
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(25, 162, 155, 0.3), rgba(255, 122, 89, 0.25));
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.dolly-panel {
  position: relative;
  text-align: center;
  min-height: 220px;
  overflow: hidden;
}

.dolly-rails {
  position: absolute;
  inset: 20px 30px;
  border-radius: 20px;
  border: 2px dashed rgba(31, 26, 20, 0.2);
}

.dolly-lens {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin: 30px auto 12px;
  background: radial-gradient(circle at 30% 30%, #fff, rgba(25, 162, 155, 0.45), rgba(31, 26, 20, 0.7));
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.35);
}

.dolly-panel p {
  margin: 0;
  font-weight: 600;
}

.paper-panel {
  display: grid;
  gap: 12px;
  background: rgba(255, 255, 255, 0.9);
}

.pdf-trigger {
  cursor: pointer;
  text-align: left;
  border: 1px solid rgba(31, 26, 20, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pdf-trigger:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 40px rgba(20, 18, 16, 0.2);
}

.pdf-trigger:focus-visible {
  outline: 2px solid rgba(25, 162, 155, 0.6);
  outline-offset: 4px;
}

.paper-lines {
  height: 140px;
  border-radius: 12px;
  background: repeating-linear-gradient(
    to bottom,
    rgba(31, 26, 20, 0.06),
    rgba(31, 26, 20, 0.06) 2px,
    transparent 2px,
    transparent 12px
  );
}

.paper-title {
  font-weight: 700;
  margin: 0;
}

.paper-caption {
  margin: 0;
  color: var(--ink-muted);
}

.screen-frame {
  padding: 0;
  background: #101010;
  border: none;
  overflow: hidden;
}

.screen-frame video {
  width: 100%;
  height: auto;
  border-radius: inherit;
  object-fit: cover;
  display: block;
}

.skills-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.skill-card {
  padding: 20px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--stroke);
  box-shadow: 0 18px 34px rgba(20, 18, 16, 0.12);
}

.skill-card h4 {
  margin: 0 0 8px;
  font-size: 16px;
}

.skill-card p {
  margin: 0;
  color: var(--ink-muted);
  line-height: 1.5;
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.6fr);
  gap: 24px;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: rgba(31, 26, 20, 0.9);
  color: #fff;
}

.contact-card h2 {
  font-family: "Fraunces", serif;
  margin: 16px 0 12px;
}

.contact-card p {
  margin: 0;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.contact-actions .btn {
  width: 100%;
}

.contact-meta {
  margin-top: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.footer {
  padding: 40px clamp(20px, 4vw, 64px) 60px;
  color: var(--ink-muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.modal.is-open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 13, 11, 0.65);
  backdrop-filter: blur(6px);
}

.modal-card {
  position: relative;
  width: min(900px, 92vw);
  height: min(720px, 88vh);
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
  z-index: 1;
  display: grid;
  grid-template-rows: auto 1fr;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 0;
  gap: 12px;
}

.modal-close {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(31, 26, 20, 0.2);
  background: #fff;
  cursor: pointer;
  font-weight: 600;
}

.modal-link {
  font-size: 14px;
  color: #2a1f14;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 600;
}

.modal-link:focus-visible {
  outline: 2px solid rgba(42, 31, 20, 0.5);
  outline-offset: 4px;
}

.modal-frame {
  width: 100%;
  height: 100%;
  border: none;
}

body.modal-open {
  overflow: hidden;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--delay, 0s);
}

[data-reveal].in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .project,
  .project.reverse {
    grid-template-columns: 1fr;
  }

  .project.reverse .project-content,
  .project.reverse .project-media {
    order: unset;
  }

  .contact-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 12px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .panel-art {
    grid-template-columns: 1fr;
  }

  .project {
    padding: 48px 20px 20px;
  }

  .project-title {
    padding-right: 0;
  }

  .project-year {
    top: 16px;
    right: 20px;
    left: auto;
  }

  .project.date-safe .project-media {
    padding-top: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    transition: none;
    transform: none;
    opacity: 1;
  }

  .btn {
    transition: none;
  }
}
