@import url("https://fonts.googleapis.com/css2?family=Lora:wght@400;500;600;700&display=swap");

:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: rgba(17, 17, 17, 0.34);
  --line: rgba(17, 17, 17, 0.1);
  --panel: #f6f3ee;
  --shadow: 0 22px 60px rgba(17, 17, 17, 0.1);
  --font-sans: "Avenir Next", "Helvetica Neue", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #ffffff;
  color: var(--text);
  font-family: var(--font-sans);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0.45rem 1.6rem;
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(18px);
}

.logo-link {
  width: 100px;
}

.site-logo {
  display: block;
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.site-name {
  margin: 0;
  justify-self: center;
  font-size: 1rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.header-right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.site-nav a {
  padding: 0.7rem 1rem;
  border-radius: 999px;
  font-size: 0.96rem;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
body[data-page="home"] .site-nav a[href="index.html"],
body[data-page="work"] .site-nav a[href="work.html"],
body[data-page="profile"] .site-nav a[href="profile.html"],
body[data-page="feedback"] .site-nav a[href="feedback.html"] {
  background: rgba(17, 17, 17, 0.08);
  color: #000000;
}

.site-nav a:hover {
  transform: translateY(-1px);
}

.eyes {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.35rem 0 0.35rem 0.5rem;
}

.eye {
  position: relative;
  width: 15px;
  height: 29px;
  border-radius: 999px;
  background: #ffffff;
  border: 1.5px solid #000000;
  overflow: hidden;
  box-shadow: none;
}

.pupil {
  position: absolute;
  top: 50%;
  left: 42%;
  width: 8px;
  height: 13px;
  border-radius: 50% / 45%;
  background: #000000;
  transform: translate(-50%, -50%);
  transition: transform 80ms linear;
}

.pupil::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 1px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ffffff;
}

.hero {
  position: relative;
  min-height: calc(100vh - 82px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
}

.hero-video-shell {
  width: 100%;
  height: calc(100vh - 82px);
}

.hero-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #ffffff;
}

.hero-overlay {
  pointer-events: none;
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  padding: 0 2rem 1.2rem;
}

.hero-year,
.hero-title {
  margin: 0;
  line-height: 1;
  font-family: "Lora", serif;
}

.hero-year {
  justify-self: start;
  align-self: end;
  font-size: clamp(3.8rem, 8vw, 5.8rem);
  font-weight: 600;
  letter-spacing: -0.08em;
  color: #000000;
  transform: translateY(-1rem);
}

.hero-title {
  justify-self: end;
  align-self: end;
  font-size: clamp(3.4rem, 9vw, 6.1rem);
  font-weight: 500;
  letter-spacing: 0.00em;
  color: #000000;
  transform: translateY(-1rem);
}

.work-main {
  padding: 0 1.75rem 5rem;
}

.work-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 2rem;
  padding: 2rem 0 5rem;
}

.work-heading {
  margin: 0;
  font-size: clamp(4rem, 10vw, 8rem);
  line-height: 0.9;
  letter-spacing: -0.08em;
  font-weight: 500;
}

.work-count {
  margin: 0;
  font-size: clamp(4rem, 10vw, 7rem);
  line-height: 0.9;
  letter-spacing: -0.08em;
  color: rgba(17, 17, 17, 0.18);
  font-weight: 600;
}

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

.project-card {
  display: block;
}

.project-card-topline {
  margin-bottom: 0.55rem;
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.48);
}

.project-card-title {
  margin: 0 0 0.2rem;
  font-size: clamp(1.6rem, 2.4vw, 2.3rem);
  line-height: 1.02;
  font-weight: 500;
  color: #111111;
}

.project-card-subtitle {
  margin: 0 0 1rem;
  font-size: 1rem;
  color: rgba(17, 17, 17, 0.6);
}

.project-cover,
.project-cover-placeholder {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #efe9df;
}

.project-cover-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-cover-placeholder {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.92), transparent 36%),
    linear-gradient(145deg, #f6f2eb, #ebe3d8);
}

.project-cover-placeholder span {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.06em;
  color: rgba(17, 17, 17, 0.18);
}

.project-main {
  padding: 2rem 1.75rem 5rem;
}

.project-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.8fr);
  gap: 2rem;
  align-items: start;
  padding-bottom: 3rem;
}

.project-label {
  margin: 0 0 0.8rem;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.48);
}

.project-title {
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 0.94;
  letter-spacing: -0.08em;
  font-weight: 500;
  color: #111111;
}

.project-subtitle {
  margin: 0.45rem 0 0;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: rgba(17, 17, 17, 0.62);
}

.project-intro-right {
  padding-top: 0.45rem;
}

.project-description {
  margin: 0;
  max-width: 28rem;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(17, 17, 17, 0.78);
}

.project-media-stream {
  display: grid;
  gap: 1rem;
}

.project-media-frame {
  margin: 0;
}

.project-media {
  width: 100%;
  display: block;
  background: #f3efe8;
}

.project-empty-state {
  padding: 2rem;
  border: 1px solid rgba(17, 17, 17, 0.12);
  color: rgba(17, 17, 17, 0.78);
  line-height: 1.7;
  background: #faf8f4;
}

.project-empty-state code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: #111111;
}

.subpage-main {
  min-height: calc(100vh - 90px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
}

.subpage-main-with-cta {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 2rem;
}

.subpage-card {
  width: min(760px, 100%);
  padding: 3rem;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.subpage-card h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 0.98;
}

.subpage-card p:last-child {
  margin-bottom: 0;
  max-width: 46ch;
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(17, 17, 17, 0.72);
}

.feedback-main {
  padding: 3rem 1.5rem 5rem;
}

.feedback-section {
  width: min(980px, 100%);
  margin: 0 auto;
}

.feedback-kicker {
  margin: 0 0 0.8rem;
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.38);
}

.feedback-heading {
  margin: 0 0 1rem;
  font-size: clamp(3.2rem, 7vw, 6rem);
  line-height: 0.92;
  letter-spacing: -0.08em;
  font-weight: 500;
}

.feedback-subheading {
  margin: 0 0 2.4rem;
  max-width: 34rem;
  font-size: 1.08rem;
  line-height: 1.8;
  color: rgba(17, 17, 17, 0.72);
}

.feedback-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.feedback-field {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.feedback-field span {
  font-size: 0.92rem;
  color: rgba(17, 17, 17, 0.72);
}

.feedback-field input,
.feedback-field textarea {
  width: 100%;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 22px;
  background: #faf8f4;
  padding: 1rem 1.1rem;
  font: inherit;
  color: #111111;
  outline: none;
  transition:
    border-color 180ms ease,
    background-color 180ms ease;
}

.feedback-field input {
  min-height: 58px;
}

.feedback-field textarea {
  min-height: 240px;
  resize: vertical;
}

.feedback-field input:focus,
.feedback-field textarea:focus {
  border-color: rgba(17, 17, 17, 0.28);
  background: #ffffff;
}

.feedback-field-full {
  grid-column: 1 / -1;
}

.feedback-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-start;
}

.feedback-submit {
  border: 0;
  border-radius: 999px;
  background: #111111;
  color: #ffffff;
  padding: 0.95rem 1.4rem;
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background-color 180ms ease;
}

.feedback-submit:hover,
.feedback-submit:focus-visible {
  background: #2a2a2a;
  transform: translateY(-1px);
}

.profile-main {
  padding: 2rem 2rem 5rem;
}

.profile-hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(360px, 1.05fr);
  gap: 4rem;
  align-items: start;
  min-height: calc(100vh - 160px);
}

.profile-left {
  position: sticky;
  top: 7.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.4rem;
}

.profile-kicker {
  margin: 0;
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.38);
}

.profile-photo {
  width: min(100%, 460px);
  height: min(68vh, 700px);
  object-fit: cover;
  object-position: center top;
  background: #f2f0eb;
}

.profile-right {
  padding-top: 3.2rem;
}

.profile-name {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.46);
}

.profile-role {
  margin: 0 0 1.3rem;
  max-width: 10ch;
  font-size: clamp(3rem, 7vw, 6.2rem);
  line-height: 0.92;
  letter-spacing: -0.08em;
  font-weight: 500;
}

.profile-description {
  max-width: 38rem;
  margin: 0 0 1.1rem;
  font-size: 1.08rem;
  line-height: 1.8;
  color: rgba(17, 17, 17, 0.78);
}

.profile-social-section {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: end;
  padding: 8rem 0 2rem;
  min-height: 56vh;
}

.profile-social-copy h2 {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 0.96;
  letter-spacing: -0.07em;
  font-weight: 500;
}

.profile-social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.9rem;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-width: 138px;
  padding: 1rem 1.35rem;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 999px;
  background: #111111;
  color: #ffffff;
  font-size: 0.98rem;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.social-pill:hover,
.social-pill:focus-visible {
  transform: translateY(-2px);
  background: #2a2a2a;
  border-color: #2a2a2a;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.4rem;
  padding: 0.95rem 2rem 0.85rem;
  border-top: 1px solid rgba(17, 17, 17, 0.08);
  background: #ffffff;
}

.footer-left {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.9rem;
}

.footer-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.footer-copy {
  margin: 0;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.68);
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 999px;
  border: 0;
  background: #ffffff;
  color: #111111;
  transition:
    transform 180ms ease,
    background-color 180ms ease;
}

.footer-social:hover,
.footer-social:focus-visible {
  transform: translateY(-1px);
  background: #faf8f4;
}

.footer-social-icon {
  display: block;
  width: 1.15rem;
  height: 1.15rem;
  object-fit: contain;
}

.social-pill-icon {
  display: block;
  width: 1.05rem;
  height: 1.05rem;
  object-fit: contain;
  flex-shrink: 0;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "logo right"
      "name name";
    gap: 0.9rem 1rem;
    padding: 0.4rem 0.9rem 0.55rem;
  }

  .logo-link {
    grid-area: logo;
  }

  .site-name {
    grid-area: name;
    font-size: 0.86rem;
  }

  .header-right {
    grid-area: right;
    gap: 0.8rem;
  }

  .profile-main {
    padding: 1.4rem 1.2rem 4rem;
  }

  .profile-hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    min-height: auto;
  }

  .profile-left {
    position: static;
  }

  .profile-photo {
    width: min(100%, 520px);
    height: auto;
    aspect-ratio: 4 / 5;
  }

  .profile-right {
    padding-top: 0;
  }

  .profile-role {
    max-width: 12ch;
  }

  .profile-social-section {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    min-height: auto;
    padding-top: 4rem;
  }

  .profile-social-copy h2 {
    max-width: 14ch;
  }

  .profile-social-links {
    justify-content: flex-start;
  }

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

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

  .site-footer {
    padding: 0.9rem 1.2rem 0.8rem;
  }

  .footer-logo {
    width: 46px;
    height: 46px;
  }

  .feedback-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    position: sticky;
  }

  .header-right {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .site-nav {
    gap: 0.2rem;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .site-nav a {
    padding: 0.55rem 0.75rem;
    font-size: 0.9rem;
  }

  .site-logo {
    width: 64px;
    height: 64px;
  }

  .hero {
    min-height: calc(100vh - 108px);
    padding: 0;
  }

  .hero-video-shell {
    width: 100%;
    height: calc(100vh - 108px);
  }

  .hero-overlay {
    grid-template-columns: auto 1fr;
    gap: 0.2rem;
    padding: 0 1rem 1rem;
  }

  .hero-year,
  .hero-title {
    align-self: end;
  }

  .hero-year {
    justify-self: start;
    transform: translateY(-0.55rem);
  }

  .hero-title {
    justify-self: end;
    font-size: clamp(2.8rem, 15vw, 4.5rem);
    transform: translateY(-0.55rem);
  }

  .hero-year {
    font-size: clamp(2.7rem, 12vw, 4rem);
  }

  .profile-main {
    padding: 1rem 1rem 3rem;
  }

  .profile-role {
    font-size: clamp(2.4rem, 12vw, 4rem);
  }

  .profile-description {
    font-size: 1rem;
    line-height: 1.7;
  }

  .profile-social-copy h2 {
    font-size: clamp(2rem, 11vw, 3.3rem);
  }

  .social-pill {
    min-width: 124px;
    padding: 0.92rem 1.1rem;
  }

  .feedback-main {
    padding: 2rem 1rem 3rem;
  }

  .feedback-heading {
    font-size: clamp(2.6rem, 14vw, 4rem);
  }

  .feedback-subheading {
    font-size: 1rem;
    line-height: 1.7;
  }

  .work-main,
  .project-main {
    padding: 0 1rem 3rem;
  }

  .work-hero {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding-bottom: 2.5rem;
  }

  .work-grid {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }

  .project-card-title {
    font-size: 1.8rem;
  }

  .project-intro {
    padding-bottom: 2rem;
  }

  .project-description {
    font-size: 0.98rem;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.95rem 1rem 0.85rem;
  }

  .footer-left {
    gap: 0.7rem;
  }

  .footer-right {
    align-items: flex-start;
  }

  .footer-social {
    width: 2.15rem;
    height: 2.15rem;
  }

  .subpage-card {
    padding: 2rem 1.4rem;
    border-radius: 24px;
  }
}
