:root {
  --bg: #ffffff;
  --text: #1d1d1f;
  --muted: #4a4a4a;
  --frame: #cfcfcf;
  --font-title: "Avenir Heavy", "Avenir LT Std 85 Heavy", "Avenir Next", "Inter", sans-serif;
  --font-subtitle: "Avenir Heavy", "Avenir LT Std 85 Heavy", "Avenir Next", "Inter", sans-serif;
  --font-light: "Avenir Light", "Avenir LT Std 35 Light", "Avenir Next", "Inter", sans-serif;
  --size-title: 19px;
  --size-subtitle: 19px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-subtitle);
  font-size: var(--size-subtitle);
  font-weight: 800;
  background: var(--bg);
  color: var(--text);
}

body {
  padding-top: 72px;
}

body.bio-static {
  overflow-y: auto;
  height: auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  max-width: 980px;
  margin: 0 auto;
  padding: 1.2rem 1rem 1rem;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: var(--size-title);
  letter-spacing: 0.03em;
  font-family: var(--font-title);
  z-index: 1001;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  border: 0;
  background: transparent;
  padding: 0.5rem;
  cursor: pointer;
}

.nav-hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s ease;
}

.nav-hamburger.is-open span:nth-child(1) {
  transform: rotate(45deg) translateY(10px);
}

.nav-hamburger.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.is-open span:nth-child(3) {
  transform: rotate(-45deg) translateY(-10px);
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2rem;
  width: 100%;
}

.top-nav .nav-brand {
  margin-right: auto;
  display: none;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}

.nav-brand-role {
  margin-top: 0.3rem;
  font-family: var(--font-light);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.01em;
}

.top-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: var(--size-subtitle);
  letter-spacing: 0.03em;
  font-family: var(--font-title);
}

.top-nav a:not(.nav-brand) {
  position: relative;
  transition: color 0.2s ease, transform 0.08s ease;
}

.top-nav a.is-active {
  color: var(--muted);
}

.top-nav a:not(.nav-brand)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.22rem;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
  opacity: 0.7;
}

.top-nav a:not(.nav-brand):hover {
  color: var(--muted);
}

.top-nav a:not(.nav-brand):hover::after,
.top-nav a:not(.nav-brand):focus-visible::after,
.top-nav a:not(.nav-brand).is-active::after {
  transform: scaleX(1);
}

.top-nav a:not(.nav-brand):active {
  transform: translateY(1px);
}

.nav-instagram {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem;
}

.nav-instagram svg {
  display: block;
  transition: transform 0.2s ease;
}

.nav-instagram:hover svg {
  transform: scale(1.1);
}

.nav-language {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-language-current {
  border: 0;
  background: transparent;
  padding: 0.2rem 0.35rem;
  color: var(--text);
  cursor: pointer;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: var(--size-subtitle);
  letter-spacing: 0.03em;
}

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 1rem 4rem;
}

.intro h1 {
  margin: 0;
  font-size: var(--size-title);
  letter-spacing: 0.12em;
  font-weight: 800;
  font-family: var(--font-title);
}

.intro p {
  margin: 0.35rem 0 1.2rem;
  font-size: var(--size-subtitle);
  color: var(--muted);
  font-weight: 800;
  font-family: var(--font-subtitle);
}

.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

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

.reel-block {
  padding-top: 3.8rem;
}

.contact {
  padding: 5rem 0 6rem;
}

.contact-inner {
  max-width: 980px;
  margin: 0 auto;
}

.contact h2 {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.16em;
  font-family: var(--font-title);
  font-weight: 800;
  color: var(--text);
}

.contact-form {
  margin-top: 2.2rem;
  display: grid;
  gap: 1.8rem;
}

.contact-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem;
}

.contact-field {
  display: grid;
  gap: 0.6rem;
  font-family: var(--font-light);
}

.contact-field span {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #9f9f9f;
  padding: 0.4rem 0 0.6rem;
  font-size: 15px;
  font-family: var(--font-light);
  color: var(--text);
  background: transparent;
  outline: none;
}

.contact-field input:focus,
.contact-field textarea:focus {
  border-bottom-color: var(--text);
}

.contact-message textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-actions {
  display: flex;
  justify-content: flex-end;
}

.contact-actions button {
  border: 1px solid var(--text);
  background: var(--text);
  color: #fff;
  padding: 0.55rem 1.8rem;
  font-size: 12px;
  letter-spacing: 0.12em;
  font-family: var(--font-title);
  font-weight: 800;
  cursor: pointer;
}

.contact-actions button:hover {
  background: #2b2b2e;
}

.projects {
  padding-top: 2.5rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.project-frame {
  min-height: 240px;
  background: linear-gradient(140deg, #3a3a3a 0%, #5e5e5e 45%, #2f2f2f 100%);
  text-decoration: none;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  position: relative;
  overflow: hidden;
}

.project-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-frame-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.05));
}

.project-frame-cover {
  min-height: 0;
  padding: 0;
  background: transparent;
  display: block;
  position: relative;
}

.project-frame-cover img {
  position: static;
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.project-frame-cover::after {
  display: none;
}

.project-frame-cover .project-title {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}

.project-title {
  color: #fff;
  font-size: var(--size-subtitle);
  font-weight: 800;
  letter-spacing: 0.02em;
  position: relative;
  z-index: 1;
  font-family: var(--font-subtitle);
}

.project-page h1 {
  margin-bottom: 1rem;
}

.project-page {
  padding-top: 0;
}

.project-page .top-nav a {
  font-size: var(--size-subtitle);
  letter-spacing: 0.02em;
}

.project-intro {
  text-align: center;
  padding: 3rem 0 2.2rem;
}

.project-intro h1 {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.03em;
  font-family: var(--font-title);
}

.project-intro p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 300;
  font-family: var(--font-light);
}

.project-gallery {
  display: grid;
  gap: 0;
}

.project-gallery img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0;
}

.project-gallery-placeholder,
.project-video-placeholder {
  width: 100%;
  min-height: 220px;
  display: grid;
  place-items: center;
  border: 1px solid #bcbcbc;
  color: var(--muted);
  font-size: var(--size-subtitle);
  font-family: var(--font-subtitle);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 1rem;
}

.project-video-link {
  text-align: center;
  padding: 2rem 0 1rem;
}

.project-video-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

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

.project-end {
  padding: 5rem 0 2rem;
}

.project-credits {
  text-align: center;
  color: #3a3a3a;
  font-size: 11px;
  font-family: var(--font-light);
  font-weight: 300;
  letter-spacing: 0.01em;
}

.project-credits p {
  margin: 0 0 0.75rem;
}

.project-social {
  margin-top: 8rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.8rem;
}

.project-social a {
  color: #111;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.bio-placeholder {
  padding-top: 2rem;
  color: var(--muted);
  font-size: var(--size-subtitle);
  font-family: var(--font-subtitle);
}

.bio-page {
  padding: 72px 0 4rem 0;
  min-height: 100vh;
  overflow-y: visible;
  box-sizing: border-box;
}

body.bio-static .bio-page {
  overflow-y: visible;
}

.bio-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1rem 1rem;
}

.bio-photo {
  width: 100%;
  max-width: 900px;
  height: 70vh;
  max-height: 70vh;
  display: block;
  margin: 0 auto 1.2rem;
  object-fit: cover;
  object-position: center;
}

.bio-text {
  color: var(--muted);
  font-family: var(--font-light);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.4;
  margin-top: 0;
}

.bio-text p {
  margin: 0 0 0.8rem;
}

.bio-text p:first-child {
  margin-top: 0;
}

.education {
  margin-top: 2.4rem;
}

.education h2 {
  margin: 0 0 1.2rem;
  font-size: 14px;
  letter-spacing: 0.16em;
  font-family: var(--font-title);
  font-weight: 800;
  color: var(--text);
}

.education-list {
  display: grid;
  gap: 1.2rem;
}

.education-item {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.5rem;
  align-items: start;
}

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

.education-years {
  font-family: var(--font-subtitle);
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.02em;
}

.education-title {
  font-family: var(--font-light);
  font-size: 15px;
  font-weight: 300;
  color: var(--muted);
  letter-spacing: 0.01em;
  line-height: 1.4;
}

.education-detail {
  font-family: var(--font-light);
  font-size: 15px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.4;
  padding-left: 2rem;
  border-left: 1px solid #bdbdbd;
}

@media (max-width: 720px) {
  .education-item {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .education-years {
    font-size: 12px;
  }

  .education-detail {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 720px) {
  body {
    padding-top: 62px;
  }

  body.bio-static {
    overflow: visible;
    height: auto;
  }

  body.bio-static .bio-page {
    overflow-y: auto;
    height: auto;
  }

  .site-header {
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
    flex-direction: row;
  }

  .nav-hamburger {
    display: flex;
    order: 2;
    margin-left: auto;
  }

  .top-nav {
    position: fixed;
    top: 62px;
    left: 0;
    right: 0;
    width: 100%;
    height: calc(100vh - 62px);
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    padding: 2rem 1rem;
    max-width: none;
    z-index: 999;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }

  .top-nav.is-open {
    transform: translateX(0);
  }

  .top-nav a:not(.nav-brand) {
    display: block;
    padding: 1rem 0;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
  }

  .top-nav a {
    gap: 1.2rem;
    font-size: var(--size-subtitle);
  }

  .nav-instagram {
    padding: 1.5rem 0;
  }

  .nav-language {
    padding: 1.5rem 0;
    border-bottom: 1px solid #f0f0f0;
  }

  .top-nav a:not(.nav-brand)::after {
    display: none;
  }

  .intro p {
    font-size: 15px;
  }

  .project-frame {
    min-height: 180px;
  }

  .project-end {
    padding-top: 3rem;
  }

  .reel-block {
    padding-top: 2.2rem;
  }

  .project-intro {
    padding: 1.8rem 0 1.6rem;
  }

  .project-credits {
    font-size: 10px;
  }

  .project-social {
    margin-top: 4rem;
  }

  .bio-page {
    padding-top: 2rem;
  }

  .bio-photo {
    height: 50vh;
  }

  .contact {
    padding: 3rem 0 4rem;
  }

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