@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Instrument+Serif:ital@0;1&display=swap");

:root {
  color-scheme: light;
  --bg: #faf4f0;
  --bg-elevated: #ffffff;
  --text: #103a46;
  --text-muted: #5a6b74;
  --text-soft: #8a969c;
  --accent: #0f5b65;
  --accent-warm: #e85d4a;
  --border: rgba(16, 58, 70, 0.08);
  --shadow: 0 20px 50px rgba(16, 58, 70, 0.08);
  --shadow-hover: 0 28px 60px rgba(16, 58, 70, 0.14);
  --radius-sm: 16px;
  --radius-md: 24px;
  --radius-lg: 32px;
  --font-sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.page-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 28px 80px;
}

.page-shell-wide {
  max-width: 1600px;
  padding-left: 20px;
  padding-right: 20px;
  padding-bottom: 40px;
}

/* Header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0 28px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(to bottom, var(--bg) 70%, transparent);
  backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.brand-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent) 0%, #2b7a8a 100%);
  display: grid;
  place-items: center;
  position: relative;
  box-shadow: 0 8px 20px rgba(15, 91, 101, 0.25);
}

.brand-icon::after {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: var(--bg);
  transform: rotate(45deg);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--text-soft);
}

.brand-tagline {
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 3px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px;
  box-shadow: 0 4px 16px rgba(16, 58, 70, 0.04);
}

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 10px 18px;
  border-radius: 999px;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}

.nav-link:hover {
  color: var(--text);
  background: rgba(16, 58, 70, 0.04);
}

.nav-link.active {
  color: var(--bg);
  background: var(--accent);
}

.header-cta {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
  flex-shrink: 0;
}

.header-cta:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}

/* Hero */

.hero {
  padding: 20px 0 56px;
  max-width: 820px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero-eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--accent-warm);
  border-radius: 2px;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 5.5vw, 4.6rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
}

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

.hero-lead {
  margin: 24px 0 0;
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 620px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-tag {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Work section */

.work-page .site-header {
  padding-bottom: 42px;
}

.work-section-first {
  padding-top: 0;
}

.work-section-first .work-grid {
  margin-top: 0;
}

.work-section {
  padding-top: 8px;
}

.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-warm);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 400;
  margin: 0 0 36px;
  letter-spacing: -0.01em;
}

.work-grid-max {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}

.video-thumb {
  border-radius: 0;
  overflow: hidden;
  background: #0a1f24;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  position: relative;
}

.video-thumb:hover {
  transform: scale(1.015);
  box-shadow: var(--shadow-hover);
  z-index: 1;
}

.video-thumb-media {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background-color: #0a1f24;
  background-size: cover;
  background-position: center;
}

/* Play icon overlay — shows on hover so it's obvious videos play on hover */
.video-thumb-media::after {
  content: "▶";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  background: rgba(255, 255, 255, 0.92);
  color: #0a1f24;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  padding-left: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  z-index: 1;
  pointer-events: none;
}

.video-thumb:hover .video-thumb-media::after {
  opacity: 0.95;
  transform: translate(-50%, -50%) scale(1.03);
}

/* When the preview iframe is playing inside, it covers the play icon automatically */
.video-thumb-media iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  z-index: 2;
}

.video-thumb-placeholder {
  outline: 2px dashed rgba(16, 58, 70, 0.12);
  outline-offset: -2px;
}

/* About page */

.about-page-body .site-header {
  padding-bottom: 16px;
}

.experience-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 20px;
}

.experience-list li {
  display: grid;
  gap: 6px;
}

.experience-list strong {
  font-size: 1rem;
  color: var(--text);
}

.experience-list span {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.content-grid {
  display: grid;
  align-items: start;
  gap: 48px;
  margin-top: 12px;
}

.about-page {
  grid-template-columns: 0.9fr 1.1fr;
  margin-top: 48px;
}

.about-visual {
  position: sticky;
  top: 120px;
}

.profile-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}

.profile-avatar {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  overflow: hidden;
  position: relative;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.profile-detail {
  display: grid;
  gap: 16px;
}

.profile-detail dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 4px;
}

.profile-detail dd {
  margin: 0;
  font-weight: 600;
  font-size: 0.95rem;
}

.profile-detail a {
  color: var(--accent);
  text-decoration: none;
}

.profile-detail a:hover {
  text-decoration: underline;
}

.about-copy h1,
.process-intro h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 400;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.about-copy .lead,
.process-intro .lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin: 0 0 28px;
  max-width: 560px;
}

.about-copy p,
.process-intro p {
  max-width: 640px;
  color: var(--text-muted);
  margin: 0 0 1.2em;
  font-size: 1rem;
  line-height: 1.8;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 32px 0;
}

.skill-pill {
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.about-meta {
  display: grid;
  gap: 28px;
  margin-top: 36px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}

.about-meta h2 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-warm);
  margin: 0 0 12px;
}

.about-meta p {
  margin: 0;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  padding: 14px 24px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.contact-link:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.testimonial-section {
  margin-top: 80px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

.testimonial-video {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding-top: 56.25%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0a1f24;
  box-shadow: var(--shadow);
}

.testimonial-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.testimonial-credit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  text-align: center;
}

.testimonial-credit strong {
  font-size: 1rem;
}

.testimonial-credit a {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}

.testimonial-credit a:hover {
  text-decoration: underline;
}

/* Process page */

.process-page {
  margin-top: 8px;
}

.process-intro {
  max-width: 680px;
  margin-bottom: 56px;
}

.process-projects {
  display: grid;
  gap: 72px;
}

.process-project {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: start;
}

.process-project-reverse .process-project-copy {
  order: 2;
}

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

.process-project-num {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-warm);
  margin-bottom: 14px;
}

.process-project-copy h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 400;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.process-project-copy p {
  margin: 0 0 1.1em;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.8;
  max-width: 520px;
}

.process-project-copy p:last-child {
  margin-bottom: 0;
}

.process-project-media {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #0a1f24;
  box-shadow: var(--shadow);
}

.process-project-media iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.process-project-media-empty {
  display: grid;
  place-items: center;
  padding-top: 56.25%;
  outline: 2px dashed rgba(16, 58, 70, 0.12);
  outline-offset: -2px;
}

.process-project-media-empty span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--text-soft);
  font-weight: 600;
  font-size: 0.92rem;
}

/* Project detail page */

.project-page {
  margin-top: 8px;
}

.project-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.project-back:hover {
  color: var(--accent-warm);
}

.project-video {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0a1f24;
  box-shadow: var(--shadow);
  margin-bottom: 40px;
}

.project-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.project-copy {
  max-width: 720px;
  margin: 0 auto;
}

.project-copy h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.project-copy p {
  margin: 0 0 1.2em;
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.8;
}

.project-copy p:last-child {
  margin-bottom: 0;
}

/* Footer */

.site-footer {
  margin-top: 80px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.work-page .site-footer {
  margin-top: 32px;
}

.site-footer-minimal {
  border-top: none;
  padding-top: 0;
  justify-content: center;
}

.footer-copy {
  font-size: 0.88rem;
  color: var(--text-soft);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* Animations */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.7s var(--ease) forwards;
}

.fade-in-delay-1 { animation-delay: 0.1s; }
.fade-in-delay-2 { animation-delay: 0.2s; }
.fade-in-delay-3 { animation-delay: 0.3s; }

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

/* Responsive */

@media (max-width: 1024px) {
  .about-page {
    grid-template-columns: 1fr;
  }

  .about-visual {
    position: static;
  }
}

@media (max-width: 900px) {
  .work-grid-max {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media (max-width: 760px) {
  .page-shell {
    padding: 20px 18px 60px;
  }

  .page-shell-wide {
    padding-left: 12px;
    padding-right: 12px;
  }

  .site-header {
    flex-wrap: wrap;
  }

  .site-nav {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .header-cta {
    margin-left: auto;
  }

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

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

  .process-projects {
    gap: 56px;
  }

  .hero {
    padding-bottom: 40px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .site-nav {
    flex-wrap: wrap;
    border-radius: var(--radius-md);
    justify-content: stretch;
  }

  .nav-link {
    flex: 1;
    text-align: center;
    padding: 10px 12px;
  }

  .header-cta {
    width: 100%;
    text-align: center;
    margin-left: 0;
  }
}