/* ==========================================================================
   HANNAH.FISH — Production CSS
   Consolidated from the original stylesheet + approved design passes.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root{
  --white: #ffffff;
  --bone: #f7f6f3;
  --paper: #fbfaf7;
  --ink: #171614;
  --slate: #6e6b66;
  --line: #e9e6df;
  --orange: #ff5a1f;
  --orange-deep: #cc4110;

  --display: "Space Grotesk", sans-serif;
  --body: "Inter", sans-serif;
  --mono: "JetBrains Mono", monospace;

  --wrap: 1240px;
  --radius: 8px;
  --shadow-soft: 0 18px 50px -36px rgba(23,22,20,.38);
}

/* ---------- Base ---------- */
*{
  box-sizing: border-box;
}

html{
  scroll-behavior: smooth;
}

body{
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;

  background: var(--paper);
  color: var(--ink);

  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;

  -webkit-font-smoothing: antialiased;
}

main{
  flex: 1 0 auto;
}

.wrap{
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

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

/* Subtle paper grain */
.grain{
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;

  opacity: .025;
  mix-blend-mode: multiply;

  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}


/* ==========================================================================
   Header / Navigation
   ========================================================================== */

.site-header{
  position: relative;
  padding: 0;
  margin: 0;

  border-bottom: 1px solid rgba(23,22,20,.08);

  background: rgba(251,250,247,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-header::before{
  content: "";
  position: absolute;
  inset: 0 auto auto 0;

  width: 100%;
  height: 3px;

  background: var(--orange);
}

.site-header .wrap{
  min-height: 84px;

  display: flex;
  align-items: center;
  gap: 34px;
}

.brand{
  display: flex;
  align-items: center;
  gap: 13px;
  flex: 0 0 auto;
  min-width: max-content;
}

.site-logo{
  display: block;
  width: auto;
  height: 3rem;
  object-fit: contain;

  transition: transform .2s ease;
}

.brand:hover .site-logo{
  transform: rotate(-4deg) scale(1.03);
}

.mark{
  font-family: var(--display);
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -.035em;
  white-space: nowrap;
}

.site-nav{
  margin-left: auto;

  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;

  flex: 0 1 auto;
  flex-wrap: nowrap;
}

.site-nav > a,
.nav-item > a{
  position: relative;

  display: inline-flex;
  align-items: center;

  min-height: 38px;
  padding: 0 11px;

  border: 0;
  border-radius: 999px;

  color: var(--slate);

  font-size: .84rem;
  font-weight: 600;

  transition:
    color .18s ease,
    background .18s ease;
}

.site-nav > a:hover,
.nav-item > a:hover{
  color: var(--ink);
  background: rgba(23,22,20,.045);
}

.site-nav > a.active,
.nav-item > a.active{
  color: var(--orange-deep);
  background: rgba(255,90,31,.09);
}

.site-nav > a.active::after,
.nav-item > a.active::after{
  content: "";

  position: absolute;
  left: 50%;
  bottom: 3px;

  width: 18px;
  height: 2px;

  border-radius: 999px;
  background: var(--orange);

  transform: translateX(-50%);
}

.nav-separator{
  display: block;
  width: 1px;
  height: 24px;
  margin: 0 8px;
  flex: 0 0 auto;

  background: rgba(23,22,20,.26);
}

.contact-link{
  display: inline-flex;
  align-items: center;
  gap: 7px;

  min-height: 38px;
  padding: 0 8px;
  margin: 0;

  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;

  color: var(--orange-deep);

  font-family: var(--body);
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: -.01em;
  white-space: nowrap;

  transition: color .18s ease;
}

.contact-link:hover{
  color: var(--orange);
}

.contact-link span{
  display: inline-block;
  transition: transform .18s ease;
}

.contact-link:hover span{
  transform: translate(2px,-2px);
}


/* ---------- Animation Work dropdown ---------- */

.nav-item{
  position: relative;

  display: inline-flex;
  align-items: center;
  gap: 0;
}

.nav-caret{
  margin-left: -8px;
  margin-right: 0;
  padding: 9px 8px;

  border: 0;
  border-radius: 999px;

  background: none;
  color: var(--slate);

  cursor: pointer;

  font-size: .95rem;
  line-height: 1;

  transition:
    color .15s ease,
    background .15s ease;
}

.nav-caret:hover,
.nav-caret[aria-expanded="true"]{
  color: var(--orange-deep);
  background: rgba(23,22,20,.045);
}

.nav-dropdown{
  display: none;

  position: absolute;
  top: 100%;
  left: 0;
  z-index: 20;

  min-width: 210px;
  margin-top: 8px;
  padding: 8px;

  border: 1px solid var(--line);
  border-radius: 12px;

  background: var(--white);
  box-shadow: 0 18px 42px -28px rgba(23,22,20,.45);
}

.nav-item.open .nav-dropdown{
  display: flex;
  flex-direction: column;
}

.nav-dropdown a{
  padding: 9px 10px;

  border: 0;
  border-radius: 6px;

  color: var(--ink);

  font-size: .88rem;
}

.nav-dropdown a:hover{
  color: var(--orange-deep);
  background: var(--bone);
}

.nav-dropdown a.active{
  color: var(--orange-deep);
  font-weight: 600;
}


/* ==========================================================================
   Page Titles / Intros
   ========================================================================== */

.page-title-banner{
  position: relative;

  width: auto;
  margin: 52px 0 0;

  background: transparent;
}

.page-title-banner .wrap{
  padding-top: 0;
  padding-bottom: 0;
}

.page-title-banner h1{
  position: relative;

  display: inline-block;
  margin: 0;

  color: var(--ink);

  font-family: var(--display);
  font-size: clamp(3rem, 6.2vw, 5.7rem);
  font-weight: 700;
  letter-spacing: -.055em;
  line-height: .94;
}

.page-title-banner h1::after{
  content: "";

  position: absolute;
  left: 100%;
  top: 53%;

  width: clamp(54px, 8vw, 120px);
  height: 3px;
  margin-left: 24px;

  background: var(--orange);

  transform: translateY(-50%);
}

/*
  .intro is also used with .wrap in the page markup.
  Keep the full wrapper width so the text shares the same left spine
  as the page title and reel grid; constrain only the paragraph itself.
*/
.intro{
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-top: 18px;
  padding-bottom: 52px;
  text-align: left;
}

.intro p{
  max-width: 760px;
  margin: 0;

  color: var(--slate);

  font-size: clamp(1rem, 1.35vw, 1.15rem);
  line-height: 1.6;
  text-align: left;
}

.hero-actions{
  margin-top: 24px;
}


/* ==========================================================================
   Buttons / Calls to Action
   ========================================================================== */

.btn{
  display: inline-block;

  padding: 11px 20px;

  border-radius: 8px;

  font-family: var(--body);
  font-size: .9rem;
  font-weight: 600;

  transition:
    background .15s ease,
    color .15s ease,
    border-color .15s ease;
}

.btn-solid{
  background: var(--orange);
  color: #fff;
}

.btn-solid:hover{
  background: var(--orange-deep);
}

.btn-outline{
  border: 1px solid var(--line);
  color: var(--ink);
}

.btn-outline:hover{
  color: var(--orange-deep);
  border-color: var(--orange);
}

/* Editorial CTA used beneath reel grids */
.hero-actions .btn-outline{
  position: relative;

  padding: 8px 30px 8px 0;

  border: 0;
  border-radius: 0;

  font-weight: 650;
}

.hero-actions .btn-outline::after{
  content: "→";

  position: absolute;
  right: 4px;

  transition: transform .18s ease;
}

.hero-actions .btn-outline:hover{
  color: var(--orange-deep);
}

.hero-actions .btn-outline:hover::after{
  transform: translateX(4px);
}


/* ==========================================================================
   Section Headings
   ========================================================================== */

.section-block{
  padding-bottom: 96px;
}

/*
  Keep interior hierarchy simple and stacked.
  This avoids the awkward two-column subheading layout and keeps
  SECTION / 01, title, and description on the same content spine.
*/
.section-head{
  display: block;

  margin: 0 0 34px;
  padding: 0 0 20px;

  border-bottom: 1px solid var(--line);
}

.section-head .section-eyebrow,
.section-head .section-kicker{
  display: block;

  margin: 0 0 8px;
  padding: 0;

  color: var(--orange-deep);

  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .11em;
  text-align: left;
}

.section-head h2{
  display: block;

  margin: 0 0 7px;
  padding: 0;

  font-family: var(--display);
  font-size: clamp(1.6rem, 2.4vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -.035em;
  text-align: left;
}

.section-head p:not(.section-eyebrow):not(.section-kicker){
  display: block;

  max-width: 620px;
  margin: 0;
  padding: 0;

  color: var(--slate);

  font-size: .95rem;
  text-align: left;
}


/* ==========================================================================
   Reel Grid
   ========================================================================== */

.reel-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 58px 38px;
}

.reel-grid + .hero-actions,
main > .wrap > .hero-actions{
  padding-bottom: 110px;
}

.reel-card{
  overflow: visible;

  border: 0;
  border-radius: 0;

  background: transparent;
  box-shadow: none;

  cursor: pointer;

  transition: transform .22s ease;
}

.reel-card:hover,
.reel-card:focus-visible{
  transform: translateY(-4px);
}

.reel-card:focus-visible{
  outline: 2px solid var(--orange);
  outline-offset: 7px;
}

.thumb{
  position: relative;

  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;

  border-radius: var(--radius);

  background:
    linear-gradient(
      135deg,
      #ffe3d2 0%,
      #ffcda9 52%,
      #ffae73 100%
    );

  box-shadow: var(--shadow-soft);

  transition: box-shadow .25s ease;
}

.reel-card:hover .thumb{
  box-shadow: 0 24px 60px -34px rgba(23,22,20,.55);
}

.thumb img,
.thumb video{
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;

  transition: transform .4s cubic-bezier(.2,.7,.2,1);
}

.reel-card:hover .thumb img,
.reel-card:hover .thumb video{
  transform: scale(1.018);
}

.thumb .placeholder-icon{
  position: absolute;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  color: rgba(23,22,20,.28);

  font-family: var(--display);
  font-size: 2.4rem;
}

.thumb .lock-badge{
  position: absolute;
  top: 12px;
  right: 12px;

  width: 30px;
  height: 30px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: rgba(23,22,20,.75);
  color: #fff;

  backdrop-filter: blur(2px);

  font-size: .85rem;
}

/* Timeline accent */
.scrub{
  position: absolute;
  left: 0;
  bottom: 0;

  width: 100%;
  height: 2px;

  background: rgba(255,255,255,.35);
}

.scrub::after{
  content: "";

  display: block;

  width: 0;
  height: 100%;

  background: var(--orange);

  transition: width .45s ease;
}

.reel-card:hover .scrub::after,
.reel-card:focus-visible .scrub::after{
  width: 100%;
}

.card-meta{
  padding: 16px 2px 0;
}

.card-number{
  margin: 0 0 7px;

  color: var(--orange-deep);

  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .095em;
}

.card-title{
  margin: 0 0 7px;

  font-family: var(--display);
  font-size: clamp(1.12rem, 1.5vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -.025em;
}

.card-sub{
  margin: 0;

  color: var(--slate);

  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .015em;
}


/* ==========================================================================
   About Page
   ========================================================================== */

.about-layout{
  display: grid;
  grid-template-columns: minmax(260px,360px) minmax(0,1fr);
  gap: clamp(48px,7vw,92px);

  align-items: start;

  padding-top: 22px;
  padding-bottom: 96px;
}

.about-portrait{
  display: flex;
  align-items: center;
  justify-content: center;

  aspect-ratio: 1;

  border-radius: var(--radius);

  background:
    linear-gradient(
      135deg,
      #ffe4d6 0%,
      #ffd0b3 45%,
      #ffb885 100%
    );

  color: rgba(23,22,20,.28);

  font-family: var(--display);
  font-size: 2rem;
}

.about-body{
  max-width: 690px;
}

.about-body p{
  margin: 0 0 18px;

  color: var(--ink);

  font-size: clamp(1.02rem,1.35vw,1.14rem);
  line-height: 1.72;
}

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

.about-facts{
  list-style: none;

  display: grid;
  gap: 10px;

  margin: 28px 0 0;
  padding: 20px 0 0;

  border-top: 1px solid var(--line);

  color: var(--slate);

  font-family: var(--mono);
  font-size: .82rem;
}

.about-facts b{
  color: var(--ink);
  font-weight: 600;
}


/* ==========================================================================
   Resume Page
   ========================================================================== */

.resume-layout{
  max-width: 900px;
  padding-bottom: 96px;
}

.resume-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;

  margin-bottom: 36px;
}

.resume-embed{
  overflow: hidden;

  aspect-ratio: 8.5 / 11;

  border: 1px solid var(--line);
  border-radius: var(--radius);

  background: var(--bone);
  box-shadow: var(--shadow-soft);
}

.resume-embed iframe{
  width: 100%;
  height: 100%;
  border: 0;
}

.resume-note{
  margin-top: 14px;

  color: var(--slate);

  font-size: .85rem;
}


/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer{
  flex: 0 0 auto;

  margin: 0;
  padding: 0;

  border-top: 1px solid rgba(23,22,20,.12);

  background: rgba(251,250,247,.94);
}

.footer-bar{
  min-height: 92px;

  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 36px !important;

  font-size: .78rem !important;
}

.footer-brandline,
.footer-links{
  display: flex;
  align-items: center;
  gap: 18px;

  min-width: 0;
}

.footer-brandline{
  flex: 1 1 auto;
}

.footer-links{
  flex: 0 1 auto;

  justify-content: flex-end;

  margin-left: auto;
}

.footer-wordmark{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;

  font-family: var(--display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.03em;
}

.footer-logo{
  width: 34px;
  height: 34px;

  border-radius: 50%;
  object-fit: cover;

  transition: transform .2s ease;
}

.footer-wordmark:hover .footer-logo{
  transform: rotate(-5deg);
}

.footer-tagline{
  margin: 0;

  color: var(--slate);

  font-family: var(--mono);
  font-size: .68rem;
  line-height: 1;
  white-space: nowrap;
}

.footer-separator{
  display: inline-block;

  width: 1px;
  height: 22px;
  flex: 0 0 auto;

  background: rgba(23,22,20,.22);
}

.footer-email{
  color: var(--ink);

  font-family: var(--body);
  font-size: .82rem;
  font-weight: 650;
  letter-spacing: -.01em;
  white-space: nowrap;
}

.footer-email:hover{
  color: var(--orange-deep);
}

.socials{
  display: flex;
  align-items: center;
  gap: 18px;
}

.socials a{
  display: inline-flex;
  align-items: center;
  gap: 4px;

  color: var(--ink);

  font-size: .8rem;
  font-weight: 650;
  white-space: nowrap;
}

.socials a span{
  color: var(--orange-deep);
  font-size: .8em;

  transition: transform .18s ease;
}

.socials a:hover{
  color: var(--orange-deep);
}

.socials a:hover span{
  transform: translate(2px,-2px);
}

.footer-copy{
  color: var(--slate);

  font-family: var(--mono);
  font-size: .63rem;
  white-space: nowrap;
}


/* ==========================================================================
   Modal
   ========================================================================== */

.modal{
  position: fixed;
  inset: 0;
  z-index: 1000;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 20px;

  visibility: hidden;
  opacity: 0;

  transition:
    opacity .2s ease,
    visibility .2s ease;
}

.modal.open{
  visibility: visible;
  opacity: 1;
}

.modal-backdrop{
  position: absolute;
  inset: 0;

  background: rgba(23,22,20,.6);
}

.modal-panel{
  position: relative;

  width: 100%;
  max-width: 780px;
  max-height: 88vh;
  overflow-y: auto;

  padding: 40px;

  border-radius: 10px;

  background: var(--white);

  transform: translateY(10px) scale(.98);

  transition: transform .2s ease;
}

.modal.open .modal-panel{
  transform: translateY(0) scale(1);
}

.modal-close{
  position: absolute;
  top: 14px;
  right: 16px;

  padding: 6px;

  border: 0;
  background: none;

  color: var(--slate);

  cursor: pointer;

  font-size: 1.6rem;
  line-height: 1;
}

.modal-close:hover{
  color: var(--orange);
}

.modal-eyebrow{
  margin: 0 0 8px;

  color: var(--orange-deep);

  font-family: var(--mono);
  font-size: .75rem;
}

.modal-body h2{
  margin: 0 0 20px;

  font-family: var(--display);
  font-size: 1.6rem;
  letter-spacing: -.01em;
}

.modal-embed{
  position: relative;

  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;

  margin-bottom: 18px;

  border-radius: 8px;

  background: #000;
}

.modal-embed iframe,
.modal-embed img{
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  border: 0;

  object-fit: cover;
}

.modal-desc{
  margin: 0;

  color: var(--slate);

  font-size: .95rem;
}


/* ---------- Locked modal ---------- */

.modal-lock{
  padding: 20px 0 8px;
  text-align: center;
}

.lock-icon{
  margin: 0 0 6px;
  font-size: 1.8rem;
}

.modal-lock h2{
  margin: 0 0 6px;

  font-family: var(--display);
  font-size: 1.4rem;
}

.lock-copy{
  margin: 0 0 22px;

  color: var(--slate);

  font-size: .9rem;
}

#lock-form{
  display: flex;
  gap: 10px;

  max-width: 320px;
  margin: 0 auto;
}

#lock-input{
  flex: 1;

  padding: 11px 14px;

  border: 1px solid var(--line);
  border-radius: 8px;

  background: var(--bone);
  color: var(--ink);

  font-family: var(--body);
  font-size: .95rem;
}

#lock-input:focus{
  outline: 2px solid var(--orange);
  outline-offset: 1px;
}

#lock-form button{
  padding: 11px 18px;

  border: 0;
  border-radius: 8px;

  background: var(--orange);
  color: #fff;

  cursor: pointer;

  font-family: var(--body);
  font-size: .9rem;
  font-weight: 600;

  transition: background .15s ease;
}

#lock-form button:hover{
  background: var(--orange-deep);
}

.lock-error{
  margin: 14px 0 0;

  color: var(--orange-deep);

  font-size: .82rem;
}

.shake{
  animation: shake .3s;
}

@keyframes shake{
  25%{
    transform: translateX(-6px);
  }

  75%{
    transform: translateX(6px);
  }
}


/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 980px){

  .site-header .wrap{
    gap: 20px;
  }

  .mark{
    font-size: 1.08rem;
  }

  .site-nav{
    gap: 4px;
  }

  .site-nav > a,
  .nav-item > a{
    padding-inline: 8px;
    font-size: .8rem;
  }

  .nav-separator{
    margin-inline: 4px;
  }

  .footer-bar{
    align-items: flex-start !important;
    padding-top: 24px !important;
    padding-bottom: 24px !important;
  }

  .footer-brandline,
  .footer-links{
    flex-wrap: wrap;
    row-gap: 10px;
  }

}


@media (max-width: 800px){

  .page-title-banner{
    margin-top: 44px;
  }

  .page-title-banner h1::after{
    width: 48px;
    margin-left: 16px;
  }

  .reel-grid{
    gap: 38px 22px;
  }

}


@media (max-width: 760px){

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

    min-height: auto;

    padding-top: 14px;
    padding-bottom: 12px;
  }

  .brand{
    margin-right: auto;
  }

  .site-nav{
    order: 2;

    width: 100%;
    margin-left: 0;

    justify-content: flex-start;

    overflow-x: auto;
    padding-bottom: 2px;

    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar{
    display: none;
  }

  .footer-bar{
    flex-direction: column;
    align-items: flex-start !important;
    gap: 18px !important;
  }

  .footer-brandline,
  .footer-links{
    width: 100%;
    margin-left: 0;

    justify-content: flex-start;
  }

}


@media (max-width: 640px){

  .wrap{
    padding-left: 20px;
    padding-right: 20px;
  }

  .site-header::before{
    height: 2px;
  }

  .site-logo{
    height: 2.45rem;
  }

  .mark{
    font-size: 1rem;
  }

  .site-nav > a,
  .nav-item > a{
    min-height: 34px;
    padding: 0 10px;

    font-size: .8rem;
    white-space: nowrap;
  }

  .contact-link{
    min-height: 34px;
    padding: 0 8px;

    font-size: .78rem;
  }

  .page-title-banner{
    margin-top: 36px;
  }

  .page-title-banner .wrap{
    padding-left: 20px;
    padding-right: 20px;
  }

  .page-title-banner h1{
    font-size: clamp(2.8rem,15vw,4.3rem);
  }

  .page-title-banner h1::after{
    display: none;
  }

  .intro{
    padding-top: 16px;
    padding-bottom: 38px;
  }

  .reel-grid{
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .card-meta{
    padding-top: 13px;
  }

  .reel-grid + .hero-actions,
  main > .wrap > .hero-actions{
    padding-bottom: 80px;
  }

  .about-layout{
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-portrait{
    max-width: 280px;
  }

  .modal-panel{
    padding: 26px;
  }

  #lock-form{
    flex-direction: column;
  }

}


@media (max-width: 540px){

  .footer-brandline,
  .footer-links{
    gap: 12px;
  }

  .footer-tagline{
    width: 100%;
    order: 3;

    padding-left: 44px;

    white-space: normal;
  }

  .footer-brandline .footer-separator{
    display: none;
  }

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

  .footer-copy{
    width: 100%;
  }

  .footer-links > .footer-separator:last-of-type{
    display: none;
  }

}


/* ==========================================================================
   Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce){

  *,
  *::before,
  *::after{
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }

  html{
    scroll-behavior: auto;
  }

}
