/* =========================================================
   BELLA CIMINO, PORTFOLIO
   Design tokens (matched to the approved Claude Design mockup)
   ========================================================= */
:root {
  --paper: oklch(97.5% 0.012 85);      /* warm cream page background */
  --paper-fallback: #F6F1E6;
  --sky: #C7DCEB;                       /* soft blue, "about me" / intro sections */
  --ink: #013350;                       /* deep navy, headlines, buttons, logo */
  --body-text: oklch(22% 0.015 210);
  --muted: oklch(30% 0.02 260);
  --quote: oklch(25% 0.04 265);
  --tile-title: oklch(28% 0.04 265);
  --tile-sub: oklch(40% 0.02 260);
  --eyebrow: oklch(45% 0.07 265);
  --line: oklch(85% 0.02 90);
  --card-line: oklch(80% 0.02 265);
  --white: #FFFFFF;

  --font-display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --font-body: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-w: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper-fallback);
  background: var(--paper);
  color: var(--body-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: oklch(52% 0.08 270); }

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0 0 0.4em;
  font-weight: 600;
  line-height: 1.05;
}

h1 { font-size: clamp(3rem, 8.5vw, 6.5rem); font-weight: 600; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); }

p { margin: 0 0 1em; }
.italic { font-style: italic; }

/* Eyebrow label, small caps style label used above headings */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--eyebrow);
  margin-bottom: 0.9em;
  display: block;
}

/* Signature watermark, the actual brand asset, faded behind key headlines */
.sig-watermark {
  position: absolute;
  z-index: 0;
  opacity: 0.14;
  pointer-events: none;
  width: 115%;
  max-width: 780px;
}

/* =========================================================
   NAV
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklch, var(--paper) 92%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--gutter);
  max-width: var(--max-w);
  margin: 0 auto;
}
.logo img {
  height: 30px;
  width: auto;
  object-fit: contain;
}
.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav-links a {
  position: relative;
  padding: 0.2rem 0;
  color: var(--body-text);
  transition: color 0.2s ease;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* Dropdown submenus (Design / Art subsections) */
.nav-links > li.has-dropdown { position: relative; }
.nav-caret {
  display: inline-block;
  margin-left: 7px;
  width: 0;
  height: 0;
  border-left: 4px solid currentColor;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  vertical-align: middle;
  transform: rotate(0deg);
  transition: transform 0.2s ease;
}
.nav-links > li.has-dropdown:hover .nav-caret,
.nav-links > li.has-dropdown:focus-within .nav-caret,
.nav-links > li.has-dropdown.dropdown-open .nav-caret {
  transform: rotate(90deg);
}
.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 6px);
  margin: 0;
  padding: 10px 0;
  min-width: 210px;
  list-style: none;
  background: var(--paper-fallback);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 16px 32px rgba(1, 51, 80, 0.16);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 60;
}
.nav-links > li.has-dropdown:hover > .dropdown,
.nav-links > li.has-dropdown:focus-within > .dropdown,
.nav-links > li.has-dropdown.dropdown-open > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.dropdown li { border: none; }
.dropdown a {
  display: block;
  padding: 9px 22px;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: none;
  white-space: nowrap;
  color: var(--body-text);
}
.dropdown a:hover { background: var(--sky); color: var(--ink); }
.dropdown a[aria-current="page"]::after { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  width: 24px; height: 2px; background: var(--ink); display: block;
}

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--paper-fallback);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav-links.open { max-height: 640px; overflow-y: auto; }
  .nav-links > li { border-top: 1px solid var(--line); }
  .nav-links > li > a { display: block; padding: 1rem var(--gutter); }

  /* On mobile, subsections are always shown, nested under Design / Art */
  .nav-links > li.has-dropdown > a::after {
    float: right;
    margin-right: 4px;
    transform: rotate(90deg);
  }
  .dropdown {
    position: static;
    display: block;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0 0 0.5rem;
    min-width: 0;
  }
  .dropdown a {
    padding: 0.6rem var(--gutter) 0.6rem calc(var(--gutter) + 1rem);
    font-size: 14px;
    color: var(--muted);
  }
}

/* =========================================================
   HERO, split layout, giant serif headline, faded signature
   ========================================================= */
.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  overflow: hidden;
}
.hero-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 0 40px var(--gutter);
  z-index: 2;
}
.hero-copy .sig-watermark {
  top: 50%;
  left: -40px;
  transform: translateY(-58%);
}
.hero-copy h1 {
  position: relative;
  z-index: 1;
  margin-bottom: 0.3em;
}
.hero-copy .lede {
  position: relative;
  z-index: 1;
  font-size: 18px;
  line-height: 1.5;
  max-width: 420px;
  color: var(--muted);
  margin: 24px 0 0;
}
.button-row { position: relative; z-index: 1; display: flex; gap: 16px; flex-wrap: wrap; margin-top: 24px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 14px 30px;
  border-radius: 2px;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
}
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: oklch(30% 0.06 240); color: var(--white); transform: translateY(-1px); }
.btn-secondary { border: 1px solid var(--ink); color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--white); }

.hero-media {
  position: relative;
  width: 100%;
  height: 78vh;
  z-index: 1;
  overflow: hidden;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-media { height: 60vh; order: -1; }
  .hero-copy { padding: 40px var(--gutter); }
}

/* =========================================================
   HERO STACK, headline + signature watermark centered on top,
   full-width horizontal photo below (House of Honey-style layout)
   ========================================================= */
.hero-stack {
  padding: 90px 0 0;
  background: var(--paper-fallback);
  background: var(--paper);
}
.hero-stack-copy {
  position: relative;
  width: 100%;
  min-height: 300px;
  margin: 0 auto;
  padding: 24px var(--gutter) 96px;
  text-align: center;
}
.hero-name {
  position: relative;
  display: inline-block;
}
.hero-name .sig-watermark {
  top: 50%;
  left: 50%;
  width: 30vw;
  max-width: 380px;
  min-width: 220px;
  opacity: 0.18;
  transform: translate(-50%, -50%);
}
.hero-stack-copy h1 {
  position: relative;
  z-index: 1;
  font-size: clamp(2.6rem, 11vw, 10.5rem);
  letter-spacing: 0.02em;
  white-space: nowrap;
  margin: 0;
}
.hero-stack-copy .button-row {
  position: absolute;
  z-index: 1;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 32px;
  justify-content: space-between;
  margin: 0;
}
.hero-stack-photo {
  width: 100%;
  aspect-ratio: 16 / 8;
  overflow: hidden;
}
.hero-stack-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 820px) {
  .hero-stack-copy {
    min-height: 0;
    padding: 40px var(--gutter) 32px;
  }
  .hero-stack-copy .button-row {
    position: static;
    max-width: none;
    text-align: center;
    margin: 20px auto 0;
    justify-content: center;
  }
}

@media (max-width: 700px) {
  .hero-stack-photo { aspect-ratio: 4 / 5; }
}

/* =========================================================
   SECTIONS
   ========================================================= */
.section { padding: 90px 0; }
.section-sky { background: var(--sky); padding: 100px 0; overflow: hidden; }
.section-header { max-width: 62ch; margin: 0 auto 56px; text-align: center; padding: 0 var(--gutter); }
.section-header .eyebrow { justify-content: center; }
.section-quote {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1.4;
  font-weight: 500;
  margin: 0;
  color: var(--quote);
}

/* =========================================================
   INFINITE GALLERY (z-depth scroll carousel, replaces the old
   polaroid stack, vanilla reimplementation, no three.js/React)
   ========================================================= */
.infinite-gallery {
  position: relative;
  height: 62vh;
  min-height: 380px;
  max-height: 560px;
  margin: 0 auto;
  perspective: 1200px;
  overflow: hidden;
  outline: none;
  touch-action: pan-x;
}
.infinite-gallery-track {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}
.infinite-gallery-item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(1, 51, 80, 0.28);
  will-change: transform, opacity;
}
.infinite-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.infinite-gallery-hint {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--eyebrow);
  pointer-events: none;
}

@media (max-width: 480px) {
  .infinite-gallery { height: 50vh; min-height: 320px; }
  .infinite-gallery-item { width: 220px; }
}

/* =========================================================
   EXPLORE TILES (3-up bordered link cards)
   ========================================================= */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}
.tile {
  display: block;
  padding: 48px 24px;
  border: 1px solid var(--card-line);
  border-radius: 4px;
  text-align: center;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.tile:hover { border-color: var(--ink); transform: translateY(-2px); }
.tile-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-style: italic;
  color: var(--tile-title);
  margin-bottom: 10px;
}
.tile-sub { font-size: 14px; color: var(--tile-sub); }

@media (max-width: 820px) {
  .tile-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   MONTAGE / GALLERY GRIDS (Design + Art pages, home montage)
   ========================================================= */
.montage-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
.montage-grid a { border-radius: 2px; overflow: hidden; aspect-ratio: 1; display: block; }
.montage-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.montage-grid a:hover img { transform: scale(1.05); }

@media (max-width: 820px) { .montage-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .montage-grid { grid-template-columns: repeat(2, 1fr); } }

/* Client / case-study blocks (Design page) */
.client-block {
  padding: 56px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
.client-block:last-child { border-bottom: 1px solid var(--line); }
.client-info .eyebrow { margin-bottom: 0.6rem; }
.client-info h3 { margin-bottom: 0.7rem; }
.client-info p { max-width: 40ch; color: var(--muted); }
.tag-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.tag {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  color: var(--ink);
  padding: 0.35em 0.8em;
  border-radius: 999px;
}
.client-media {
  column-count: 3;
  column-gap: 0.9rem;
}
.client-media a {
  display: block;
  break-inside: avoid;
  margin-bottom: 0.9rem;
  border-radius: 4px;
  overflow: hidden;
}
.client-media img { width: 100%; height: auto; display: block; transition: transform 0.4s ease; }
.client-media a:hover img { transform: scale(1.03); }

@media (max-width: 900px) {
  .client-block { grid-template-columns: 1fr; }
  .client-media { column-count: 2; }
}
@media (max-width: 520px) {
  .client-media { column-count: 1; }
}

/* Art medium sections */
.medium-nav {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 2.6rem;
}
.medium-nav a {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  color: var(--ink);
  padding: 0.5em 1.1em;
  border-radius: 2px;
  transition: background 0.2s ease, color 0.2s ease;
}
.medium-nav a:hover { background: var(--ink); color: var(--white); }

.medium-block { padding: 56px 0; border-top: 1px solid var(--line); }
.medium-block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.medium-block-head p { margin: 0; max-width: 48ch; color: var(--muted); }

.subgrid-label {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--eyebrow);
  margin: 1.6rem 0 0.8rem;
}

.gallery-grid {
  column-count: 3;
  column-gap: 0.9rem;
}
.gallery-grid a {
  display: block;
  break-inside: avoid;
  margin-bottom: 0.9rem;
  border-radius: 4px;
  overflow: hidden;
}
.gallery-grid img { width: 100%; height: auto; display: block; transition: transform 0.4s ease; }
.gallery-grid a:hover img { transform: scale(1.03); }

@media (max-width: 700px) { .gallery-grid { column-count: 2; } }
@media (max-width: 480px) { .gallery-grid { column-count: 1; } }

/* =========================================================
   ABOUT PAGE
   ========================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}
.about-media { border-radius: 2px; overflow: hidden; }
.interest-list { list-style: none; margin: 1.4rem 0; padding: 0; display: grid; gap: 0.6rem; color: var(--muted); }
.interest-list li { display: flex; gap: 0.7em; align-items: baseline; }
.interest-list li::before { content: "\2022"; color: var(--ink); }

.lifestyle-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-top: 2rem;
}
.lifestyle-strip a { border-radius: 2px; overflow: hidden; aspect-ratio: 1; display: block; }
.lifestyle-strip img { width: 100%; height: 100%; object-fit: cover; }

.resume-card, .contact-card {
  margin-top: 1.6rem;
  padding: 1.6rem;
  border: 1px solid var(--card-line);
  border-radius: 4px;
  background: var(--white);
}
.resume-card { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.contact-list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.7rem; }

@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  padding: 40px var(--gutter);
  border-top: 1px solid var(--line);
}
.footer-row {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 13px;
  color: oklch(45% 0.015 210);
}
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--ink); }

/* =========================================================
   LIGHTBOX
   ========================================================= */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(1, 51, 80, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(90vw, 1000px);
  max-height: 86vh;
  width: auto;
  border-radius: 2px;
}
.lightbox-close {
  position: absolute;
  top: 1.4rem; right: 1.6rem;
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--white);
  padding: 0.5em 1em;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

/* =========================================================
   VELOCITY MARQUEE, "Creative · Bold · Strategic" band under the hero
   (vanilla-JS reimplementation of the scroll-based-velocity effect  - 
   no React/framer-motion, since this is a static site)
   ========================================================= */
.velocity-section {
  padding: 18px 0 28px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.velocity-row {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
}
.velocity-track {
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
  will-change: transform;
}
.velocity-row--serif .velocity-word {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2rem, 6vw, 4.25rem);
  color: var(--ink);
  margin-right: 0.55em;
}
.velocity-row--serif .velocity-dot {
  font-size: clamp(1rem, 2.4vw, 1.6rem);
  color: var(--eyebrow);
  margin-right: 0.55em;
}
.velocity-row--sans {
  margin-top: 2px;
}
.velocity-row--sans .velocity-word {
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: clamp(0.85rem, 2vw, 1.15rem);
  color: var(--eyebrow);
  margin-right: 0.9em;
}
.velocity-row--sans .velocity-dot {
  font-size: 0.7rem;
  color: var(--card-line);
  margin-right: 0.9em;
}

@media (prefers-reduced-motion: reduce) {
  .velocity-track { transform: none !important; }
}
