/* ============================================================
   Nicola Maritz — UGC Portfolio
   Design system: ivory / warm-taupe luxury editorial
   ============================================================ */

:root {
  /* Palette — warm ivory, deep espresso, refined gold (richer than the Canva original) */
  --ivory:        #f6f0e6;
  --ivory-deep:   #e9dfcd;
  --paper:        #fffcf6;
  --ink:          #312a22;   /* body text — deep espresso for legibility */
  --ink-soft:     #574a3c;
  --heading:      #3b2f23;   /* serif heads */
  --script:       #6a5038;   /* calligraphy */
  --muted:        #897a68;
  --line:         #ddd1bd;
  --line-strong:  #bfae90;
  --gold:         #a17c4a;

  /* Type */
  --serif:  "Cormorant Garamond", Georgia, serif;
  --sans:   "Jost", -apple-system, "Segoe UI", sans-serif;
  --calli:  "Pinyon Script", cursive;

  --text-base:  clamp(1.075rem, 1rem + 0.45vw, 1.22rem);
  --title:      clamp(2.4rem, 1.4rem + 4vw, 4.6rem);
  --title-sm:   clamp(1.7rem, 1.2rem + 1.8vw, 2.4rem);

  /* Space */
  --section-y:  clamp(4.5rem, 3rem + 7vw, 9rem);
  --gutter:     clamp(1.25rem, 0.5rem + 4vw, 5rem);
  --max:        1200px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur:      0.75s;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0 0 1.1em; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: var(--ivory);
  padding: .6rem 1rem; z-index: 200;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Shared ---------- */
.section { padding: var(--section-y) var(--gutter); max-width: var(--max); margin-inline: auto; }
.center { text-align: center; }

.eyebrow {
  font-size: .82rem; letter-spacing: .34em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 1.6rem; font-weight: 500;
}

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--title);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--heading);
  line-height: 1.05;
}
.section-title.center { margin-bottom: clamp(2rem, 1rem + 3vw, 3.5rem); }

.script { font-family: var(--calli); color: var(--script); font-weight: 400; line-height: 1; }
.script--xl { font-size: clamp(3.4rem, 1.4rem + 9vw, 8rem); }
.script--l  { font-size: clamp(2.8rem, 1.4rem + 6vw, 5.5rem); }
.script--m  { font-size: clamp(2.1rem, 1.4rem + 2.4vw, 3rem); }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 1rem var(--gutter);
  background: color-mix(in srgb, var(--ivory) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease-out), background var(--dur) var(--ease-out);
}
.topbar.scrolled { border-color: var(--line); }

.brandmark {
  font-family: var(--serif);
  font-size: 1.32rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--heading); display: flex; flex-direction: column; line-height: 1.15;
}
.brandmark span {
  font-family: var(--sans); font-size: .64rem; letter-spacing: .3em;
  color: var(--muted); margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: clamp(1.1rem, 2vw, 2.4rem); }
.nav a {
  position: relative;
  font-size: .92rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft);
  padding: .3rem 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0;
  background: var(--gold); transition: width .35s var(--ease-out);
}
@media (hover: hover) { .nav a:hover::after { width: 100%; } }
.nav .nav-cta {
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: .55rem 1.2rem; color: var(--heading);
  transition: background .35s var(--ease-out), color .35s var(--ease-out);
}
.nav .nav-cta::after { display: none; }
@media (hover: hover) { .nav .nav-cta:hover { background: var(--heading); color: var(--ivory); } }

.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  max-width: var(--max); margin-inline: auto;
  padding: clamp(3rem, 2rem + 6vw, 7rem) var(--gutter) clamp(3rem, 2rem + 4vw, 5rem);
}
.hero__niches {
  font-size: .95rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--ink-soft); margin: 1.8rem 0 2rem; font-weight: 500;
}
.hero__portrait {
  margin: 0; aspect-ratio: 3 / 4; width: 100%;
  background: var(--ivory-deep); overflow: hidden;
}
.hero__portrait[data-shape="arch"] { border-radius: 50% 50% 14px 14px / 38% 38% 6% 6%; }

/* Socials */
.socials { display: flex; gap: .65rem; align-items: center; }
.socials a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border: 1px solid var(--line-strong); border-radius: 50%;
  color: var(--script);
  transition: background .35s var(--ease-out), transform .35s var(--ease-out), color .35s var(--ease-out);
}
.socials a svg { width: 19px; height: 19px; fill: currentColor; }
@media (hover: hover) {
  .socials a:hover { background: var(--script); color: var(--ivory); transform: translateY(-3px); }
}
.socials--center { justify-content: center; margin-top: 2rem; }

/* ---------- About ---------- */
.about {
  display: grid; grid-template-columns: 0.8fr 1.2fr 0.8fr;
  gap: clamp(1.2rem, 3vw, 2.6rem); align-items: center;
}
.about__media { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.about__copy { text-align: center; padding: 0 clamp(0.5rem, 2vw, 1.5rem); }
.about__copy .lede {
  font-family: var(--serif); font-style: italic; font-size: 1.65rem; color: var(--gold);
  letter-spacing: .04em; margin: .5rem 0 1.6rem;
}
.about__copy p:not(.lede) { color: var(--ink-soft); }

/* Frames (images) */
.frame {
  margin: 0; overflow: hidden; background: var(--ivory-deep);
  position: relative; border-radius: 4px;
}
.frame--tall { aspect-ratio: 3 / 4; }
.frame img, .hero__portrait img, .tile img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}

/* ---------- Brands ---------- */
.brands {
  border-block: 1px solid var(--line); background: var(--ivory);
  padding: clamp(2.4rem, 2rem + 2vw, 3.6rem) var(--gutter); text-align: center;
}
.brands__label {
  font-size: .8rem; letter-spacing: .34em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 1.8rem;
}
.brands__row {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch;
  gap: clamp(.8rem, 1.8vw, 1.4rem); max-width: 1040px; margin-inline: auto;
}
.brands__row li {
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: clamp(.9rem, 2vw, 1.3rem) clamp(1.3rem, 2.6vw, 2rem);
  min-width: 150px; min-height: 86px; flex: 0 1 auto;
  box-shadow: 0 12px 30px rgba(80,60,35,.06);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
  /* fallback wordmark styling when no logo image */
  font-family: var(--serif); font-size: 1.15rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-soft);
}
.brands__row li img {
  max-height: 42px; width: auto; max-width: 168px; object-fit: contain;
  filter: grayscale(.12);
}
@media (hover: hover) {
  .brands__row li:hover { transform: translateY(-5px); box-shadow: 0 20px 44px rgba(80,60,35,.12); }
}

/* ---------- Services ---------- */
.services__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem);
  max-width: 900px; margin-inline: auto;
}
.service { text-align: center; }
.service .script { margin-bottom: 1.4rem; position: relative; display: inline-block; }
.service .script::after {
  content: ""; display: block; width: 70px; height: 1px; background: var(--line-strong);
  margin: .6rem auto 0;
}
.ticks { display: grid; gap: .9rem; text-align: center; }
.ticks li { color: var(--ink-soft); position: relative; padding-top: .9rem; }
.ticks li + li { border-top: 1px solid var(--line); }

/* ---------- Packages ---------- */
.packages { background: var(--paper); max-width: none; }
.packages > .section-title, .packages > .packages__cols { max-width: var(--max); margin-inline: auto; }
.packages__cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); }
.package-col {
  border: 1px solid var(--line); border-radius: 8px; padding: clamp(1.6rem, 3vw, 2.8rem);
  background: var(--ivory);
}
.package-col--feature { background: var(--ink); border-color: var(--ink); }
.package-col--feature .script { color: #e8d9c4; }
.package-col--feature .tier { border-color: rgba(255,255,255,.12); }
.package-col--feature .tier h4 { color: #fbf6ee; }
.package-col--feature .tier__spec { color: #d9c8b2; }
.package-col--feature .tier__note { color: #a99c8a; }
.package-col .script { margin-bottom: 1.8rem; }

.tiers { display: grid; gap: 1.5rem; }
.tier { text-align: center; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.tier:last-child { border-bottom: 0; padding-bottom: 0; }
.tier h4 {
  font-family: var(--serif); font-size: 1.42rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--heading);
}
.tier__spec { font-style: italic; font-family: var(--serif); font-size: 1.3rem; color: var(--gold); margin: .4rem 0 .35rem; }
.tier__note { color: var(--ink-soft); font-size: 1rem; margin: 0; }

/* ---------- Work / Galleries ---------- */
.work__sub { color: var(--muted); letter-spacing: .12em; text-transform: uppercase; font-size: .88rem; margin: -1.5rem 0 3.5rem; }
.gallery-block + .gallery-block { margin-top: clamp(2.5rem, 5vw, 4.5rem); }
.gallery-title {
  font-family: var(--serif); font-size: var(--title-sm); letter-spacing: .22em;
  text-transform: uppercase; color: var(--heading); text-align: center; margin-bottom: 1.8rem;
  position: relative;
}
.gallery {
  --gallery-gap: clamp(.6rem, 1.4vw, 1.1rem);
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gallery-gap);
}
.tile {
  position: relative; margin: 0; aspect-ratio: 3 / 4; overflow: hidden;
  border-radius: 4px; background: var(--ivory-deep); cursor: pointer;
  flex: 0 1 calc(25% - (var(--gallery-gap) * 3 / 4));
}
.tile--video::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 54px; height: 54px; border-radius: 50%;
  background: rgba(255,255,255,.82) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M8 5v14l11-7z' fill='%236e5746'/></svg>") center/22px no-repeat;
  transition: transform .4s var(--ease-out), background-color .4s var(--ease-out);
  box-shadow: 0 6px 24px rgba(70,60,51,.25);
}
.tile__label {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem .9rem .8rem;
  background: linear-gradient(to top, rgba(40,33,27,.55), transparent);
  color: #fff; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  opacity: 0; transition: opacity .4s var(--ease-out);
}
@media (hover: hover) {
  .tile:hover img { transform: scale(1.06); }
  .tile:hover .tile__label { opacity: 1; }
  .tile--video:hover::after { transform: scale(1.1); background-color: #fff; }
}

/* Placeholder tiles (before real media) */
.is-placeholder {
  background:
    radial-gradient(120% 80% at 30% 20%, #fbf7f0 0%, #efe6d7 60%, #e6d9c4 100%);
  display: grid; place-items: center;
}
.is-placeholder::before {
  content: attr(data-ph);
  font-family: var(--calli); font-size: 2rem; color: var(--line-strong);
}

/* ---------- Contact ---------- */
.contact { text-align: center; }
.contact__email {
  display: inline-block; font-family: var(--serif); font-size: clamp(1.1rem, .9rem + 1.4vw, 1.7rem);
  letter-spacing: .06em; color: var(--ink-soft); border-bottom: 1px solid var(--line-strong);
  padding-bottom: .25rem; margin-top: 1.4rem; transition: color .35s var(--ease-out);
}
@media (hover: hover) { .contact__email:hover { color: var(--script); } }

/* ---------- Footer ---------- */
.footer {
  text-align: center; padding: 2.4rem var(--gutter); border-top: 1px solid var(--line);
  color: var(--muted); font-size: .86rem; letter-spacing: .12em;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300; display: none;
  background: rgba(34,28,23,.92); padding: clamp(1rem, 4vw, 3rem);
  align-items: center; justify-content: center;
  opacity: 0; transition: opacity .3s var(--ease-out);
}
.lightbox.open { display: flex; opacity: 1; }
.lightbox__stage { max-width: min(92vw, 560px); max-height: 88vh; }
.lightbox__stage img, .lightbox__stage video {
  width: 100%; height: auto; max-height: 88vh; object-fit: contain; border-radius: 6px;
}
.lightbox__close {
  position: absolute; top: 1.2rem; right: 1.6rem; background: none; border: 0;
  color: #f3ece1; font-size: 2.4rem; line-height: 1; cursor: pointer; font-family: var(--serif);
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(20px); }
.reveal.in {
  opacity: 1; transform: none;
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex; flex-direction: column; gap: 5px; justify-content: center;
    width: 40px; height: 40px; background: none; border: 0; cursor: pointer; padding: 8px;
  }
  .nav-toggle span { display: block; height: 1.5px; width: 100%; background: var(--heading); transition: transform .3s var(--ease-out), opacity .3s var(--ease-out); }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 1.8rem;
    background: var(--paper); padding: 2rem var(--gutter);
    transform: translateX(100%); transition: transform .4s var(--ease-out);
    box-shadow: -20px 0 60px rgba(70,60,51,.12);
  }
  .nav.open { transform: none; }
  .nav a { font-size: 1rem; }

  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero__text { order: 2; }
  .hero__portrait { order: 1; max-width: 340px; margin-inline: auto; }
  .socials { justify-content: center; }

  .about { grid-template-columns: 1fr; }
  .about__media { grid-template-columns: 1fr 1fr; order: 2; }
  .about__copy { order: 1; }
  .about__media--right { order: 3; }

  .services__grid, .packages__cols { grid-template-columns: 1fr; }
  .tile { flex-basis: calc(50% - (var(--gallery-gap) / 2)); }
}

@media (max-width: 460px) {
  .tile { flex-basis: calc(50% - (var(--gallery-gap) / 2)); }
  .about__media { grid-template-columns: 1fr 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .frame img, .tile img { transition: none; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
