/* ==========================================================================
   Dómina Leo — Design Tokens v2 (image-led editorial)
   ========================================================================== */

@font-face {
  font-family: 'Pinyon Script';
  src: url('../fonts/pinyon-script/PinyonScript-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Dream Orphanage';
  src: url('../fonts/dream-orphanage/Dream Orphans.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Color */
  --noir: #0B0B0D;
  --panel: #151517;
  --bone: #F2EFE9;
  --bone-dim: #C9C5BD;
  --garnet: #2B5EA0;
  --garnet-bright: #4A8FE0;
  --rojo: #6B1220;
  --midnight: #1F2A44;
  --azure: #7089BD;
  --blue-bright: #3E8DFF;
  --steel: #8A8D93;
  --hairline: rgba(242, 239, 233, 0.12);
  --hairline-dark: rgba(11, 11, 13, 0.3);

  /* Type */
  --font-display: 'Dream Orphanage', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-copy: 'Fraunces', serif;
  --font-logo: 'Pinyon Script', cursive;
  --font-nav: 'Dream Orphanage', sans-serif;

  /* Scale */
  --step-0: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --step-1: clamp(1.35rem, 1.2rem + 0.6vw, 1.75rem);
  --step-2: clamp(2rem, 1.6rem + 1.6vw, 3rem);
  --step-3: clamp(2.75rem, 2.1rem + 2.6vw, 4.5rem);
  --step-4: clamp(3.25rem, 2.2rem + 4.5vw, 6.5rem);

  /* Layout */
  --max-width: 1400px;
  --edge: clamp(1.5rem, 5vw, 5rem);
}

/* ==========================================================================
   Reset
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--noir);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-optical-sizing: auto;
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0;
}

h1 em, h2 em, h3 em { font-style: normal; font-weight: 350; color: var(--bone); }

p {
  font-family: var(--font-copy);
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: 1.05em;
  line-height: 1.55;
  margin: 0 0 1em;
  color: var(--bone-dim);
}

:focus-visible {
  outline: 2px solid var(--garnet-bright);
  outline-offset: 3px;
}

::selection {
  background: var(--garnet);
  color: var(--bone);
}

/* ==========================================================================
   Utility
   ========================================================================== */

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-inline: var(--edge);
}

.hairline {
  border: none;
  border-top: 1px solid var(--hairline);
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-copy);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 1.05em 2.3em;
  border: 2px solid var(--bone);
  color: var(--bone);
  background: transparent;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
}

.btn--solid {
  background: var(--blue-bright);
  border-color: var(--bone);
  color: var(--bone);
}

.btn--ghost {
  border-color: var(--bone);
  color: var(--bone);
}

@media (hover: hover) {
  .btn:hover { background: var(--bone); border-color: var(--bone); color: var(--noir); }
  .btn--solid:hover { background: var(--bone); border-color: var(--bone); color: var(--noir); }
  .btn--ghost:hover { background: var(--bone); border-color: var(--bone); color: var(--noir); }
}

/* ==========================================================================
   Nav
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-top: 2px solid var(--garnet);
}

.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(11, 11, 13, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.75rem;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.9rem;
  letter-spacing: 0.03em;
  line-height: 1;
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 2.5vw, 3rem);
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-nav);
  font-size: 1.30rem;
  letter-spacing: 0.03em;
}

.nav__links a {
  color: var(--bone-dim);
  padding-bottom: 0.3em;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav__links a:hover,
.nav__links a[aria-current="page"] {
  color: var(--bone);
  border-color: var(--garnet);
}

.nav__lang {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-nav);
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  border: 1px solid var(--hairline) !important;
  padding: 0.5em 1em !important;
  color: var(--bone-dim);
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.nav__lang-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

@media (hover: hover) {
  .nav__lang:hover {
    background: #0F2A4D;
    color: var(--bone);
    border-color: #0F2A4D !important;
  }
}

.nav__toggle {
  display: none;
  position: relative;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: none;
  border: none;
  color: var(--bone);
  padding: 0;
  transition: background-color 0.25s ease;
}

@media (hover: hover) {
  .nav__toggle:hover { background: #0F2A4D; }
}

.nav__toggle-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 26px;
  height: 26px;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.nav__toggle-icon--menu { transform: translate(-50%, -50%) rotate(0deg); opacity: 1; }
.nav__toggle-icon--close { transform: translate(-50%, -50%) rotate(-90deg); opacity: 0; }

.nav__toggle[aria-expanded="true"] .nav__toggle-icon--menu { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.nav__toggle[aria-expanded="true"] .nav__toggle-icon--close { transform: translate(-50%, -50%) rotate(0deg); opacity: 1; }

@media (max-width: 720px) {
  .nav__toggle { display: flex; position: relative; z-index: 101; }
  .nav__logo { position: relative; z-index: 101; }
  .nav__links {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #0F2A4D;
    padding: 2rem var(--edge);
    gap: 2rem;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.96);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
  }
  .nav__links a { font-size: 1.4rem; }
  .nav__links.is-open {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
}

/* ==========================================================================
   Hero — full-bleed image, minimal copy
   ========================================================================== */

.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: flex-end;
  padding-block: clamp(3rem, 8vw, 5rem);
  overflow: hidden;
}

.media-fill {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focal, 50% 50%);
  z-index: 0;
}

.hero__media {
  position: absolute;
  inset: 0;
  background: var(--noir);
  z-index: -1;
}

.hero__media::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,11,13,0) 40%, rgba(11,11,13,0.85) 100%);
  z-index: 1;
}

.hero__media:has(.media-fill)::after,
.split__media:has(.media-fill)::after {
  display: none;
}

.hero__media::after {
  content: 'IMAGE — PLACEHOLDER';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: rgba(242,239,233,0.15);
}

.hero__content { max-width: 40rem; margin-right: clamp(1rem, 6vw, 6rem); }

/* Homepage hero copy — About/Services heroes use `.wrap hero__content` and are unaffected */
.hero__content:not(.wrap) {
  max-width: 42rem;
  margin-right: clamp(1rem, 4vw, 3rem);
}

@media (max-width: 720px) {
  .hero__content:not(.wrap) {
    max-width: 100%;
    margin-right: 0;
    padding-inline: 1.5rem;
  }

  /* About hero (justify-content: flex-start) — drop the desktop 10rem left
     indent on mobile so the headline breathes evenly; .wrap keeps the edge
     padding. Desktop is untouched. */
  .hero[style*="flex-start"] .hero__content {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Homepage hero photo — on narrow screens the centered crop cuts her face
     at the left edge; shift the focal point left so it sits in frame.
     Desktop keeps the inline --focal. */
  .hero__media img[src$="20_H.jpeg"] {
    object-position: 22% 25%;
  }
}

.hero h1 {
  font-size: var(--step-4);
  margin-bottom: 1.25rem;
}

.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }

/* ==========================================================================
   Editorial split — huge image + copy, alternating
   ========================================================================== */

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: clamp(520px, 78vh, 760px);
}

.split.reverse { grid-template-columns: 0.95fr 1.05fr; }
.split.reverse .split__media { order: 2; }
.split.reverse .split__copy { order: 1; }

.split.tall { min-height: clamp(600px, 85vh, 900px); }
.split.tall .split__media { background: var(--noir); }
.split.tall .split__media .media-fill { object-fit: contain; }
.split.tall .split__copy { max-width: 44rem; margin-left: auto; margin-right: 0; }

.split__media {
  position: relative;
  background: var(--noir);
  min-height: 50vh;
}

.split__media::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: rgba(242,239,233,0.15);
  text-align: center;
  padding: 2rem;
}

.split__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.5rem, 5vw, 6rem);
}

.split__copy h2 { font-size: var(--step-3); margin-bottom: 1.25rem; }
.split__copy p.lede { font-size: var(--step-1); color: var(--bone); max-width: 30rem; margin-bottom: 1rem; }

@media (max-width: 900px) {
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split__media { min-height: 60vh; }
  .split.reverse .split__media, .split.reverse .split__copy { order: initial; }

  /* A text-less hero (e.g. the home page) stacks directly against the next
     split's image on mobile with nothing between them — add a seam so two
     full-bleed images don't read as one continuous photo. */
  .hero + .split { margin-top: 3px; border-top: 1px solid var(--hairline); }

  /* Cream split (About › BDSM nerd): its halves carry the cream and fade in
     via .reveal, so paint the wrapper too — otherwise the page's black shows
     through until the reveal fires. */
  .split--bone { background: var(--bone); }
}

/* ==========================================================================
   Simple text section (no boxes, no grids)
   ========================================================================== */

section { padding-block: clamp(4rem, 9vw, 7rem); }

.section__head { max-width: 40rem; margin-bottom: 3.5rem; }
.section__head h1, .section__head h2 { font-size: var(--step-3); margin-top: 0.75rem; }
.section__head p { font-size: var(--step-1); color: var(--bone-dim); margin-top: 1rem; }

.stack { display: flex; flex-direction: column; gap: 2.5rem; max-width: 44rem; }
.stack .item { padding-top: 2rem; border-top: 1px solid var(--hairline); }
.stack .item h3 { font-size: var(--step-1); margin-bottom: 0.6rem; font-family: var(--font-display); font-weight: 400; }
.stack .item p { margin: 0; }

/* ==========================================================================
   Gallery — uniform grid
   ========================================================================== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3.5rem;
}

.gallery-grid__item {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.gallery-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s cubic-bezier(0.16, 0.8, 0.24, 1);
}

.gallery-grid__item:hover img { transform: scale(1.045); }

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

/* Three simple links, text only, no borders/boxes */
.link-list { display: flex; flex-direction: column; }
.link-list a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-block: 1.75rem;
  border-top: 1px solid var(--hairline);
  transition: opacity 0.2s ease;
}
.link-list a:last-child { border-bottom: 1px solid var(--hairline); }
.link-list a:hover { opacity: 0.65; }
.link-list a .title { font-family: var(--font-display); font-size: var(--step-2); }
.link-list a .arrow { font-size: 1.25rem; color: var(--garnet-bright); }

/* ==========================================================================
   CTA band
   ========================================================================== */

.cta-band {
  text-align: center;
  padding-block: clamp(4rem, 10vw, 8rem);
}

.cta-band h2 {
  font-size: var(--step-3);
  max-width: 22ch;
  margin: 0 auto 1.75rem;
}

.cta-band .btn--solid {
  background: transparent;
  border-color: var(--midnight);
  color: var(--midnight);
}

@media (hover: hover) {
  .cta-band .btn--solid:hover { background: var(--midnight); border-color: var(--midnight); color: var(--bone); }
}

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

.site-footer {
  border-top: 1px solid var(--hairline);
  padding-block: 2.5rem;
  font-size: 0.85rem;
  color: var(--steel);
}

.footer__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__links { display: flex; gap: 1.75rem; list-style: none; padding: 0; margin: 0; }
.footer__links a { color: var(--steel); }
.footer__links a:hover { color: var(--garnet-bright); }

/* ==========================================================================
   Motion — restrained, editorial
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.16, 0.8, 0.24, 1),
              transform 0.9s cubic-bezier(0.16, 0.8, 0.24, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

.hero h1, .hero__actions {
  opacity: 0;
  animation: fade-up 0.9s cubic-bezier(0.16, 0.8, 0.24, 1) forwards;
}
.hero h1 { animation-delay: 0.1s; }
.hero__actions { animation-delay: 0.3s; }

.split__media { overflow: hidden; }
.split__media .media-fill {
  object-position: var(--focal, 50% 20%);
  transition: transform 1.4s cubic-bezier(0.16, 0.8, 0.24, 1);
}
.split__media:hover .media-fill { transform: scale(1.045); }

.link-list a .arrow {
  display: inline-block;
  transition: transform 0.35s ease;
}
.link-list a:hover .arrow { transform: translateX(4px); }
