/* ==========================================================================
   Caylee Cowan — Editorial Portfolio
   Design system: warm ivory, soft beige, charcoal type, muted champagne gold
   ========================================================================== */

:root {
  --ivory: #f7f3ea;
  --ivory-2: #f1ebdd;
  --paper: #ece3d2;
  --white: #fffdf9;
  --charcoal: #262320;
  --charcoal-70: rgba(38, 35, 32, 0.7);
  --charcoal-50: rgba(38, 35, 32, 0.52);
  --charcoal-30: rgba(38, 35, 32, 0.3);
  --line: rgba(38, 35, 32, 0.14);
  --line-soft: rgba(38, 35, 32, 0.08);
  --gold: #a3854f;
  --gold-soft: rgba(163, 133, 79, 0.35);
  --gold-wash: rgba(163, 133, 79, 0.08);
  --maxw: 1320px;
  --gutter: clamp(24px, 5vw, 64px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--ivory);
  color: var(--charcoal);
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: "Fraunces", "Georgia", serif;
  font-weight: 500;
  color: var(--charcoal);
  letter-spacing: -0.01em;
}

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

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

::selection {
  background: var(--gold-soft);
  color: var(--charcoal);
}

/* ---------- Section labels (01 — ABOUT) ---------- */
.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Inter", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}

.section-label .num {
  color: var(--charcoal-30);
  font-variant-numeric: tabular-nums;
}

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 30px;
  border: 1px solid var(--charcoal);
  color: var(--charcoal);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  background: transparent;
  cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}

.btn:hover {
  background: var(--charcoal);
  color: var(--ivory);
}

.btn-primary {
  background: var(--charcoal);
  color: var(--ivory);
}

.btn-primary:hover {
  background: transparent;
  color: var(--charcoal);
}

.btn svg {
  width: 13px;
  height: 13px;
  transition: transform 0.35s var(--ease);
}

.btn:hover svg {
  transform: translateX(3px);
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 28px 0;
  transition: padding 0.4s var(--ease), background 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  padding: 16px 0;
  background: rgba(247, 243, 234, 0.86);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: "Fraunces", serif;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  font-size: 0.73rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--charcoal-70);
  position: relative;
  padding-bottom: 3px;
  transition: color 0.3s var(--ease);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.35s var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--charcoal);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-social {
  display: flex;
  gap: 16px;
  align-items: center;
}

.nav-social a {
  color: var(--charcoal-70);
  transition: color 0.3s var(--ease);
}

.nav-social a:hover {
  color: var(--gold);
}

.nav-social svg {
  width: 15px;
  height: 15px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
  padding: 6px;
}

.nav-toggle span {
  width: 24px;
  height: 1px;
  background: var(--charcoal);
  transition: 0.3s var(--ease);
}

.mobile-panel {
  position: fixed;
  inset: 0;
  background: var(--ivory);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  transform: translateY(-100%);
  transition: transform 0.5s var(--ease);
}

.mobile-panel.open {
  transform: translateY(0);
}

.mobile-panel a {
  font-family: "Fraunces", serif;
  font-size: 1.5rem;
  color: var(--charcoal);
}

.mobile-panel .nav-social {
  margin-top: 18px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 168px 0 100px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}

.hero-left .eyebrow {
  display: block;
  margin-bottom: 26px;
}

.hero-name {
  font-size: clamp(3.4rem, 7vw, 5.6rem);
  line-height: 0.96;
  font-weight: 500;
}

.hero-name em {
  font-style: italic;
  color: var(--gold);
}

.hero-left p.lead {
  max-width: 420px;
  margin: 30px 0 40px;
  color: var(--charcoal-70);
  font-size: 1.06rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---- Hero image composition ---- */
.hero-right {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-frame-wrap {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4 / 5;
}

/* offset backing card */
.hero-frame-wrap::before {
  content: "";
  position: absolute;
  top: 26px;
  left: -26px;
  width: 100%;
  height: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  z-index: 0;
}

.hero-frame {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--white);
  border: 1px solid var(--charcoal);
  overflow: hidden;
}

.hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
  filter: saturate(0.94) contrast(1.02);
}

/* duplicated fragment */
.hero-fragment {
  position: absolute;
  z-index: 3;
  width: 34%;
  height: 22%;
  right: -34px;
  bottom: 56px;
  overflow: hidden;
  border: 1px solid var(--charcoal);
  background: var(--ivory);
  box-shadow: none;
}

.hero-fragment img {
  width: 294%;
  height: 180%;
  max-width: none;
  object-fit: cover;
  object-position: 62% 30%;
  filter: sepia(0.25) saturate(1.1) hue-rotate(-8deg) contrast(1.02);
  transform: translate(-38%, -14%);
}

/* subtle scan displacement slivers */
.hero-frame .sliver {
  position: absolute;
  left: 0;
  width: 100%;
  overflow: hidden;
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: 0.28;
}

.hero-frame .sliver img {
  width: 100%;
  height: 500%;
  object-fit: cover;
  object-position: 50% 22%;
}

.sliver-1 {
  top: 31%;
  height: 1.1%;
  transform: translateX(5px);
}

.sliver-1 img {
  transform: translateY(-31%);
}

.sliver-2 {
  top: 61%;
  height: 0.8%;
  transform: translateX(-6px);
  opacity: 0.2;
}

.sliver-2 img {
  transform: translateY(-61%);
}

/* crop marks */
.crop-mark {
  position: absolute;
  z-index: 4;
  width: 16px;
  height: 16px;
  pointer-events: none;
}

.crop-mark::before,
.crop-mark::after {
  content: "";
  position: absolute;
  background: var(--charcoal);
}

.crop-mark::before {
  width: 100%;
  height: 1px;
  top: 0;
  left: 0;
}

.crop-mark::after {
  width: 1px;
  height: 100%;
  top: 0;
  left: 0;
}

.crop-tl {
  top: -9px;
  left: -9px;
}

.crop-br {
  bottom: -9px;
  right: -9px;
  transform: rotate(180deg);
}

/* tiny editorial labels */
.hero-tag {
  position: absolute;
  z-index: 4;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--charcoal-50);
  white-space: nowrap;
}

.hero-tag-fig {
  top: -30px;
  left: -26px;
}

.hero-tag-coord {
  bottom: -34px;
  left: -26px;
  writing-mode: horizontal-tb;
}

.hero-tag-index {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  color: var(--white);
  background: var(--charcoal);
  padding: 4px 8px;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
}

/* ---------- Sections ---------- */
.section {
  padding: 130px 0;
}

.section-alt {
  background: var(--ivory-2);
}

.section-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 64px;
  flex-wrap: wrap;
}

.section-head-row h2 {
  font-size: clamp(2.2rem, 4vw, 3.1rem);
}

.section-head-row .head-note {
  max-width: 320px;
  color: var(--charcoal-50);
  font-size: 0.94rem;
  padding-bottom: 6px;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}

.about-visual {
  position: relative;
}

.about-visual .frame {
  border: 1px solid var(--charcoal);
  overflow: hidden;
  aspect-ratio: 3 / 4;
}

.about-visual .frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.94);
}

.about-visual .filmstrip {
  position: absolute;
  top: 0;
  right: -22px;
  height: 100%;
  width: 10px;
  background: repeating-linear-gradient(
    to bottom,
    var(--charcoal) 0px,
    var(--charcoal) 6px,
    transparent 6px,
    transparent 14px
  );
  opacity: 0.5;
}

.about-copy p {
  color: var(--charcoal-70);
  margin-bottom: 22px;
  font-size: 1.05rem;
  max-width: 640px;
}

.about-copy p:first-of-type::first-letter {
  font-family: "Fraunces", serif;
  font-size: 3.4rem;
  float: left;
  line-height: 0.8;
  padding: 8px 10px 0 0;
  color: var(--gold);
  font-weight: 500;
}

.about-meta {
  display: flex;
  gap: 50px;
  margin-top: 44px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.about-meta .m-item b {
  display: block;
  font-family: "Fraunces", serif;
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.about-meta .m-item span {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--charcoal-50);
}

/* ---------- Filmography ---------- */
.filmo {
  border-top: 1px solid var(--charcoal);
}

.filmo-row {
  display: grid;
  grid-template-columns: 60px 90px 1fr auto auto;
  align-items: center;
  gap: 26px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: padding-left 0.4s var(--ease), background 0.4s var(--ease);
  cursor: pointer;
}

.filmo-row:hover {
  padding-left: 14px;
  background: linear-gradient(to right, var(--gold-wash), transparent 60%);
}

.filmo-index {
  font-family: "Fraunces", serif;
  font-size: 0.95rem;
  color: var(--charcoal-30);
}

.filmo-year {
  font-family: "Inter", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--charcoal-50);
  font-variant-numeric: tabular-nums;
}

.filmo-main .filmo-title {
  font-family: "Fraunces", serif;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  margin-bottom: 6px;
}

.filmo-main .filmo-role {
  font-size: 0.86rem;
  color: var(--charcoal-50);
}

.filmo-preview {
  width: 64px;
  height: 80px;
  overflow: hidden;
  border: 1px solid var(--line);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.filmo-row:hover .filmo-preview {
  opacity: 1;
  transform: translateX(0);
}

.filmo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.filmo-view {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--charcoal);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  white-space: nowrap;
}

.filmo-row:hover .filmo-view {
  opacity: 1;
  transform: translateX(0);
}

.filmo-view svg {
  width: 12px;
  height: 12px;
}

@media (max-width: 720px) {
  .filmo-row {
    grid-template-columns: 34px 1fr;
    row-gap: 10px;
  }
  .filmo-year {
    grid-column: 2;
    order: 1;
  }
  .filmo-main {
    grid-column: 2;
    order: 2;
  }
  .filmo-preview,
  .filmo-view {
    display: none;
  }
}

/* ---------- Gallery ----------
   A uniform, evenly sized grid — every photo the same size, so nothing
   reads as randomly bigger or smaller than its neighbours. Clicking any
   photo opens it full-size in the lightbox (see .g-view label + JS below). */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.g-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--line);
  aspect-ratio: 3 / 4;
}

.g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
  filter: saturate(0.96);
}

.g-item:hover img {
  transform: scale(1.045);
}

.g-view {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--white);
  color: var(--charcoal);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.g-item:hover .g-view {
  opacity: 1;
  transform: translateY(0);
}

.g-view .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

@media (max-width: 980px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 620px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 420px) {
  .gallery-grid {
    gap: 8px;
  }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(38, 35, 32, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: 84vw;
  max-height: 80vh;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.lightbox-caption {
  position: absolute;
  bottom: 40px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(247, 243, 234, 0.75);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: transparent;
  border: 1px solid rgba(247, 243, 234, 0.4);
  color: var(--ivory);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s var(--ease);
}

.lightbox-close {
  top: 30px;
  right: 30px;
  width: 42px;
  height: 42px;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
}

.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--ivory);
  color: var(--charcoal);
  border-color: var(--ivory);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
}

.contact-lead h2 {
  font-size: clamp(2.6rem, 5vw, 4rem);
  margin-bottom: 24px;
}

.contact-lead p {
  color: var(--charcoal-70);
  max-width: 420px;
  font-size: 1.02rem;
  margin-bottom: 30px;
}

.contact-note {
  padding: 20px 0;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
  color: var(--charcoal-50);
  max-width: 420px;
}

.social-list {
  border-top: 1px solid var(--charcoal);
}

.social-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 4px;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.35s var(--ease);
}

.social-row:hover {
  padding-left: 10px;
  background: linear-gradient(to right, var(--gold-wash), transparent 70%);
}

.social-row .s-name {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: "Fraunces", serif;
  font-size: 1.3rem;
}

.social-row .s-handle {
  font-size: 0.78rem;
  color: var(--charcoal-50);
  letter-spacing: 0.03em;
}

.social-row svg {
  width: 15px;
  height: 15px;
  color: var(--charcoal-50);
  transition: transform 0.35s var(--ease);
}

.social-row:hover svg {
  transform: translateX(4px);
  color: var(--gold);
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 70px 0 36px;
  border-top: 1px solid var(--charcoal);
  background: var(--ivory-2);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 30px;
  padding-bottom: 50px;
}

.footer-brand .logo {
  display: block;
  margin-bottom: 8px;
}

.footer-brand .eyebrow {
  color: var(--charcoal-50);
}

.footer-nav {
  display: flex;
  gap: 30px;
  list-style: none;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--charcoal-70);
  transition: color 0.3s var(--ease);
}

.footer-nav a:hover {
  color: var(--gold);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  color: var(--charcoal-50);
  font-size: 0.74rem;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav-links,
  .nav-social {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding-top: 140px;
  }
  .hero-right {
    margin-top: 20px;
  }
  .hero-frame-wrap {
    max-width: 360px;
  }
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .about-visual {
    max-width: 380px;
  }
  .filmo-row {
    grid-template-columns: 40px 70px 1fr;
  }
  .filmo-preview,
  .filmo-view {
    display: none;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 22px;
  }
  .section {
    padding: 90px 0;
  }
  .hero {
    padding: 130px 0 70px;
  }
  .hero-frame-wrap {
    max-width: 100%;
  }
  .hero-frame-wrap::before {
    left: -14px;
    top: 14px;
  }
  .hero-fragment {
    right: 0;
    width: 30%;
    height: 20%;
    bottom: 44px;
  }
  .hero-tag-fig,
  .hero-tag-coord {
    display: none;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .about-meta {
    flex-wrap: wrap;
    gap: 28px;
  }
  .section-head-row {
    align-items: flex-start;
  }
}
