@font-face {
  font-family: "Futura";
  src: url("fonts/FuturaCyrillicLight.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "Futura";
  src: url("fonts/FuturaCyrillicBook.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Futura";
  src: url("fonts/FuturaCyrillicMedium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "Futura";
  src: url("fonts/FuturaCyrillicDemi.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: "Futura";
  src: url("fonts/FuturaCyrillicBold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "Futura";
  src: url("fonts/FuturaCyrillicExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
}

@font-face {
  font-family: "Futura";
  src: url("fonts/FuturaCyrillicHeavy.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  background: #000;
}

body {
  background-color: #000;
  color: #fff;
  font-family: "Futura", "Helvetica Neue", Helvetica, Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: #fff;
  text-decoration: none;
}

/* ── Header / Logo ── */

.site-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 40px;
}

.site-header > a {
  display: block;
}

.site-logo {
  height: 250px;
  width: 800px;
  max-width: 90vw;
}

.site-logo svg {
  width: 100%;
  height: 100%;
}

.site-header hr {
  width: 100%;
  max-width: 600px;
  border: none;
  border-top: 3px solid #fff;
  margin-top: 0;
}

/* ── Main content ── */

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ── Homepage project grid ── */

.project-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 70px 32px;
  padding: 24px 0;
  align-content: center;
  align-items: center;
  justify-items: center;
}

.project-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.project-grid a:hover {
  opacity: 0.7;
}

.project-grid img {
  max-width: 300px;
  max-height: 200px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* ── About page ── */

.about-content {
  display: flex;
  gap: 48px;
  padding: 44px 0 64px;
  align-items: flex-start;
}

.about-text {
  flex: 1;
  font-size: 14px;
  line-height: 1.7;
  font-weight: 300;
}

.about-text p {
  margin-bottom: 16px;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-headshot {
  width: 280px;
  flex-shrink: 0;
  border-radius: 4px;
}

/* ── Contact form ── */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 44px 0 64px;
  max-width: 540px;
  margin: 0 auto;
}

.contact-intro {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
  opacity: 0.7;
  margin-bottom: 4px;
}

.form-row {
  display: flex;
  gap: 24px;
}

.form-row input,
.form-row .custom-select {
  flex: 1;
  min-width: 0;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid #fff;
  color: #fff;
  font-family: "Futura", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: 14px;
  padding: 8px 0;
  outline: none;
  border-radius: 0;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* ── Custom dropdowns ── */

.custom-select {
  position: relative;
  width: 100%;
}

.select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #fff;
  padding: 8px 0;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.select-trigger:hover {
  border-bottom-color: rgba(255, 255, 255, 0.6);
}

.select-label {
  font-family: "Futura", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s ease;
}

.custom-select.has-value .select-label {
  color: #fff;
}

.select-arrow {
  color: rgba(255, 255, 255, 0.5);
  transition: transform 0.3s ease, color 0.2s ease;
  flex-shrink: 0;
}

.custom-select.open .select-arrow {
  transform: rotate(180deg);
  color: #fff;
}

.select-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 100;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.2s ease;
}

.custom-select.open .select-options {
  max-height: 300px;
  opacity: 1;
}

.select-options li {
  font-family: "Futura", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  padding: 10px 12px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.select-options li:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.select-options li.active {
  color: #fff;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  align-self: flex-start;
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
  font-family: "Futura", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 10px 32px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.contact-form button:hover {
  background: #fff;
  color: #000;
}

/* ── Still Not Tired hero ── */

.snt-page {
  max-width: none;
  padding: 0;
}

.snt-hero {
  position: relative;
  width: 100%;
}

.snt-hero-bg {
  position: relative;
  width: 100%;
  line-height: 0;
  -webkit-mask-image: url('/projects/still-not-tired/hero/heroMask.svg');
  mask-image: url('/projects/still-not-tired/hero/heroMask.svg');
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.snt-hero-layer {
  width: 100%;
  height: auto;
  display: block;
}

.snt-hero-layer:not(:first-child) {
  position: absolute;
  top: 0;
  left: 0;
}

.snt-hero-layer-bg {
  position: relative;
  z-index: 1;
}

.snt-hero-bg > .snt-topbar {
  z-index: 2;
}

.snt-hero-layer-char {
  z-index: 3;
}

.snt-hero-layer-lenses {
  mix-blend-mode: lighten;
}

.snt-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  pointer-events: none;
}

.snt-topbar-bg {
  position: relative;
  width: 100%;
  line-height: 0;
}

.snt-topbar-swoosh {
  width: 100%;
  height: auto;
  display: block;
}

.snt-topbar-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 10px 20px 0;
}

.snt-logo-anim {
  margin-top: -47px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
  transform: scale(0.16);
  transform-origin: top center;
}

.snt-logo-anim svg {
  zoom: calc(1 / var(--page-zoom, 1));
}

/* ── Footer nav ── */

.site-footer {
  position: sticky;
  bottom: 0;
  text-align: center;
  padding: 32px 40px 40px;
  font-size: 18px;
  letter-spacing: 0.5px;
  background: #000;
  z-index: 10;
}

.site-footer a {
  transition: opacity 0.2s ease;
}

.site-footer a:hover {
  opacity: 0.7;
}

.site-footer .sep {
  margin: 0 12px;
  opacity: 0.5;
}

/* ── Page transitions ── */

.transition-line {
  position: fixed;
  height: 3px;
  background: #fff;
  z-index: 1000;
  pointer-events: none;
  opacity: 0;
}

.transition-overlay {
  position: fixed;
  left: 0;
  width: 100%;
  background: #000;
  z-index: 999;
  pointer-events: none;
  opacity: 0;
}

/* ── Responsive ── */

@media (max-width: 720px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 24px;
  }

  .about-content {
    flex-direction: column;
    align-items: center;
  }

  .about-headshot {
    width: 100%;
    max-width: 320px;
    order: -1;
  }

  .about-text {
    text-align: center;
  }

  .form-row {
    flex-direction: column;
    gap: 28px;
  }
}

@media (max-width: 480px) {
  .site-logo {
    height: 150px;
    width: 480px;
  }

  .site-header {
    padding: 0 24px;
  }

  main {
    padding: 0 24px;
  }

  .site-footer {
    padding: 24px 24px 32px;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .project-grid img {
    max-width: 180px;
    max-height: 120px;
  }
}
