@import url('https://fonts.googleapis.com/css?family=Quicksand:400,500,700');

html,
body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Quicksand", sans-serif;
  font-size: 10px;
}

:root {
  --sky: #cfe0ee;
  --sky-dark: #b3cfe3;
  --ink: #1a2535;
  --ink-light: #3d4f63;
  --white: #f8f5f0;
  --accent: #e8654a;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Mono", monospace;
  background: var(--white);
  color: var(--ink);
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.6rem 3rem;
  transition:
    background 0.4s ease,
    padding 0.4s ease,
    backdrop-filter 0.4s ease;
}

nav a {
  text-decoration: none;
  color: rgba(248, 245, 240, 0.9);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: opacity 0.4s ease;
}
nav a:hover {
  opacity: 0.45;
}

.nav-logo {
  text-align: center;
  line-height: 1.15;
}
.nav-logo .wordmark {
  font-family: "Playfair Display", serif;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  display: block;
  font-style: italic;
  color: var(--white);
}
.nav-logo .sub {
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(248, 245, 240, 0.5);
}

/* ── PAGES ── */
section {
  min-height: 100vh;
  width: 100%;
}

/* ── HOME ── */
#home {
  position: relative;
  overflow: hidden;
  height: 100dvh;
  margin-bottom: -1px;
}

.video-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #a8c4d8;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.video-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
}

.main-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  display: block;
  vertical-align: bottom;
}

/* dark overlay so nav + social text stay readable */
.video-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26, 37, 53, 0.18) 0%,
    rgba(26, 37, 53, 0) 40%,
    rgba(26, 37, 53, 0) 65%,
    rgba(26, 37, 53, 0.28) 100%
  );
  pointer-events: none;
}

.video-placeholder {
  position: relative;
  z-index: 1;
  text-align: center;
}
.video-placeholder .play-btn {
  width: 72px;
  height: 72px;
  border: 1.5px solid rgba(248, 245, 240, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  cursor: pointer;
  backdrop-filter: blur(4px);
  background: rgba(255, 255, 255, 0.08);
  transition:
    background 0.3s,
    border-color 0.3s,
    transform 0.3s;
}
.video-placeholder .play-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: white;
  transform: scale(1.08);
}
.video-placeholder .play-btn svg path {
  stroke: var(--white);
}
.video-placeholder p {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(248, 245, 240, 0.6);
}

/* Social bar */
.social-bar {
  position: absolute;
  bottom: 2.6rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  text-align: center;
  align-items: center;
  gap: 2.4rem;
  white-space: nowrap;
}

.social-label {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(248, 245, 240, 0.65);
}

.social-links {
  display: flex;
  gap: 1.6rem;
}

.social-links a {
  text-decoration: none;
  color: rgba(248, 245, 240, 0.85);
  font-size: 0.72rem;
  transition: opacity 0.3s ease;
}

.social-links a:hover {
  opacity: 0.4;
}

/* ── ABOUT ── */
#about {
  display: flex;
  flex-direction: column;
  padding: 8rem 3rem 5rem;
  position: relative;
  overflow: hidden;
}

.about-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.about-slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.about-slides img.active {
  opacity: 1;
}

#about::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 18, 0.52);
  z-index: 1;
}

#about .section-tag,
#about .about-content,
#about .credits-bar {
  position: relative;
  z-index: 2;
}

.section-tag {
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(248, 245, 240, 0.85);
  margin-bottom: 4rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.about-content {
  max-width: 680px;
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-bio {
  font-family: sans-serif;
  font-size: clamp(0.7rem, 2vw, 1.6rem);
  line-height: 1.45;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 3.5rem;
}

.about-bio em {
  font-style: italic;
  color: rgba(248, 245, 240, 0.65);
}

.credits-bar {
  position: absolute;
  z-index: 3;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  white-space: nowrap;
}

.credits-bar p {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(248, 245, 240, 0.5);
  line-height: 1.9;
}

.credits-bar span {
  color: rgba(248, 245, 240, 0.85);
}

/* ── CONTACT ── */
#contact {
  background: var(--sky);
  display: flex;
  flex-direction: column;
  padding: 8rem 3rem 5rem;
  position: relative;
  overflow: hidden;
}

#contact .contact-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

#contact::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(26, 37, 53, 0.45);
  z-index: 1;
}

#contact .section-tag,
#contact .contact-inner {
  position: relative;
  z-index: 2;
}

#contact .section-tag {
  color: rgba(248, 245, 240, 0.85);
}

.contact-inner {
  max-width: 560px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0 auto;
  width: 100%;
}

.field-group {
  margin-bottom: 2.2rem;
}

.field-label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(248, 245, 240, 0.6);
  margin-bottom: 0.7rem;
}

.field-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(248, 245, 240, 0.35);
  padding: 0.5rem 0;
  font-family: "DM Mono", monospace;
  font-size: 0.9rem;
  color: var(--white);
  outline: none;
  transition: border-color 0.3s;
}

.field-input::placeholder {
  color: rgba(248, 245, 240, 0.3);
}

.field-input:focus {
  border-bottom-color: var(--white);
}

.field-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(248, 245, 240, 0.25);
  padding: 1.2rem;
  font-family: "DM Mono", monospace;
  font-size: 0.88rem;
  color: var(--white);
  outline: none;
  resize: none;
  min-height: 160px;
  transition: border-color 0.3s;
}

.field-input:-webkit-autofill,
.field-input:-webkit-autofill:hover,
.field-input:-webkit-autofill:focus,
.field-textarea:-webkit-autofill,
.field-textarea:-webkit-autofill:hover,
.field-textarea:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0px 1000px transparent inset;
  box-shadow: 0 0 0px 1000px transparent inset;
  -webkit-text-fill-color: var(--white);
  transition: background-color 5000s ease-in-out 0s;
  background-color: transparent !important;
}

.field-textarea:focus {
  border-color: rgba(248, 245, 240, 0.6);
}

.submit-btn {
  margin-top: 2rem;
  background: var(--ink);
  color: var(--white);
  border: none;
  padding: 1rem 2.8rem;
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 0.3s,
    transform 0.2s;
  align-self: center;
}

.submit-btn:hover {
  background: rgb(156, 41, 64);
  transform: translateY(-2px);
}

/* ── NOISE OVERLAY ── */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.video-placeholder {
  animation: fadeUp 1s ease 0.3s both;
}
.social-bar {
  animation: fadeUp 1s ease 0.6s both;
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  nav {
    padding: 1.2rem 1.4rem;
  }
  #about,
  #contact {
    padding: 7rem 1.5rem 4rem;
  }
  .social-bar {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (min-width: 1245px) {
  html {
    font-size: 16px;
  }
}

@media (max-width: 1345px) {
  html {
    font-size: 24px;
  }
}

@media (max-width: 845px) {
  html {
    font-size: 24px;
  }
}

@media (max-width: 445px) {
  html {
    font-size: 14px;
  }

  nav {
    padding: 0.8rem 1rem;
    gap: 0.6rem;
  }

  nav a {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
  }

  .nav-logo .wordmark {
    font-size: 0.88rem;
  }

  .nav-logo .sub {
    font-size: 0.55rem;
    letter-spacing: 0.18em;
  }

  #about,
  #contact {
    padding: 5.5rem 1rem 3rem;
  }

  .section-tag {
    font-size: 0.65rem;
    margin-bottom: 1.5rem;
  }

  .about-bio {
    font-size: 0.9rem !important;
    line-height: 1.4;
    margin-bottom: 1.5rem;
  }

  .credits-bar p {
    font-size: 0.58rem;
    line-height: 1.6;
  }

  .video-placeholder .play-btn {
    width: 56px;
    height: 56px;
  }

  .social-bar {
    bottom: 1rem;
    gap: 0.6rem;
  }

  .social-label {
    font-size: 0.6rem;
  }

  .social-links {
    gap: 1rem;
  }

  .social-links a {
    font-size: 0.72rem;
  }

  .field-group {
    margin-bottom: 1.4rem;
  }

  .field-label {
    font-size: 0.6rem;
    margin-bottom: 0.4rem;
  }

  .field-input {
    font-size: 0.85rem;
  }

  .field-textarea {
    min-height: 120px;
    padding: 0.8rem;
    font-size: 0.82rem;
  }

  .submit-btn {
    width: 100%;
    padding: 0.8rem 1.5rem;
    font-size: 0.68rem;
    letter-spacing: 0.15em;
  }
}

@media (max-width: 344px) {
  html {
    font-size: 15px !important;
  }

  nav {
    flex-direction: column !important;
    gap: 0.1rem !important;
    text-align: right;
  }

  #about,
  #contact {
    padding-top: 7.5rem !important;
  }

  .about-bio {
    font-size: 0.82rem !important;
  }
}
