/* =========================================================
   Paula Rey — Portfolio
   Cozy editorial designer system · warm clay / terracotta / brass
   Light + dark themes · soft layered shadows
   ========================================================= */
:root {
  /* ---- cozy LIGHT (default) ---- */
  --bg:          #f1e7db;   /* warm oat */
  --bg-2:        #e9d8c8;   /* deeper sand */
  --surface:     #fbf5ed;   /* warm card */
  --surface-2:   #f3e7da;
  --rose:        #d8b3a6;   /* warm clay */
  --rose-soft:   #e7ccc0;

  --ink:         #382924;   /* warm espresso text */
  --ink-soft:    #5f4a42;
  --muted:       #8b756a;

  --wine:        #9a4f54;
  --wine-deep:   #6f3640;   /* headings on light */
  --terracotta:  #c2683f;
  --brass:       #b1843e;
  --brass-soft:  #c89f57;

  /* fixed dark band (contact/footer) — consistent across themes */
  --band:        #2a211d;
  --band-2:      #3a2c25;
  --on-dark:     #f4ece1;
  --on-dark-soft:#d8c7b6;

  --border:      rgba(111,54,64,.16);
  --nav-bg:      rgba(251,245,237,.82);
  --grain-blend: multiply;
  --grain-op:    .045;

  /* soft layered shadows */
  --sh: 74 52 42;            /* warm brown */
  --shadow-sm: 0 1px 2px rgb(var(--sh)/.04), 0 2px 6px rgb(var(--sh)/.06);
  --shadow:    0 2px 6px rgb(var(--sh)/.04), 0 10px 22px rgb(var(--sh)/.06), 0 22px 44px rgb(var(--sh)/.07);
  --shadow-lg: 0 4px 14px rgb(var(--sh)/.05), 0 18px 40px rgb(var(--sh)/.08), 0 40px 80px rgb(var(--sh)/.10);

  /* tokens */
  --maxw: 1200px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Poppins", -apple-system, system-ui, sans-serif;
  --radius: 16px;
  --radius-lg: 24px;
  --ease: cubic-bezier(.22,.7,.2,1);
  color-scheme: light;
}

[data-theme="dark"] {
  --bg:          #201916;   /* warm espresso */
  --bg-2:        #261d18;
  --surface:     #2c221c;   /* warm card */
  --surface-2:   #34281f;
  --rose:        #6f5048;
  --rose-soft:   #7d5b51;

  --ink:         #efe1d3;   /* warm cream text */
  --ink-soft:    #cdbaac;
  --muted:       #a18c7e;

  --wine:        #e0a98f;
  --wine-deep:   #f0d9c0;   /* light warm headings on dark */
  --terracotta:  #db7e52;
  --brass:       #cda35c;
  --brass-soft:  #ddbb7e;

  --band:        #181210;
  --band-2:      #271d18;

  --border:      rgba(240,217,192,.12);
  --nav-bg:      rgba(38,29,24,.82);
  --grain-blend: overlay;
  --grain-op:    .06;

  --sh: 0 0 0;
  --shadow-sm: 0 1px 3px rgb(var(--sh)/.30), 0 2px 8px rgb(var(--sh)/.28);
  --shadow:    0 4px 12px rgb(var(--sh)/.30), 0 14px 30px rgb(var(--sh)/.34), 0 28px 56px rgb(var(--sh)/.40);
  --shadow-lg: 0 8px 22px rgb(var(--sh)/.34), 0 22px 48px rgb(var(--sh)/.40), 0 44px 88px rgb(var(--sh)/.48);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans); font-weight: 300; color: var(--ink); background: var(--bg);
  line-height: 1.7; letter-spacing: .005em; position: relative; overflow-x: hidden;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  transition: background-color .45s var(--ease), color .45s var(--ease);
}

/* film-grain texture */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: var(--grain-op); mix-blend-mode: var(--grain-blend);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--terracotta); color: #fff; }

.container { width: min(var(--maxw), 100% - var(--gutter) * 2); margin-inline: auto; }

/* smooth color cross-fade only while toggling theme */
@media (prefers-reduced-motion: no-preference) {
  .theme-anim, .theme-anim *:not(.hero__photo img) {
    transition: background-color .45s var(--ease), color .45s var(--ease),
                border-color .45s var(--ease), fill .45s var(--ease), stroke .45s var(--ease) !important;
  }
}

/* ---------- typographic helpers ---------- */
.section__kicker {
  display: inline-flex; align-items: center; gap: .7rem;
  font-size: .76rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase;
  color: var(--terracotta); margin-bottom: 1rem;
}
.section__kicker::before { content: ""; width: 34px; height: 1px; background: var(--terracotta); opacity: .7; }
.section__title {
  font-family: var(--serif); font-optical-sizing: auto; font-weight: 460;
  font-size: clamp(2.1rem, 5.2vw, 3.5rem); line-height: 1.04; letter-spacing: -.02em; color: var(--wine-deep);
}
p { max-width: 62ch; }

/* ---------- NAV ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; padding: 1.2rem var(--gutter);
  border-bottom: 1px solid transparent;
  transition: background .4s var(--ease), padding .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.nav.scrolled {
  background: var(--nav-bg); backdrop-filter: blur(14px) saturate(120%);
  border-bottom-color: var(--border); padding-block: .8rem;
}
.nav__brand {
  font-family: var(--serif); font-weight: 500; font-size: 1.35rem; color: var(--wine-deep);
  display: inline-flex; align-items: center; gap: .45rem;
}
.nav__brand::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--terracotta);
  box-shadow: 0 0 0 3px rgb(var(--sh)/.0), 0 0 0 3px color-mix(in srgb, var(--terracotta) 22%, transparent);
}
.nav__right { display: flex; align-items: center; gap: 1.3rem; }
.nav__links { display: flex; gap: 2.1rem; }
.nav__links a {
  font-size: .9rem; font-weight: 400; color: var(--ink-soft); position: relative; padding: .25rem 0;
  transition: color .25s var(--ease);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -3px; width: 0; height: 2px;
  background: var(--terracotta); transition: width .35s var(--ease);
}
.nav__links a:hover, .nav__links a.active { color: var(--wine-deep); }
.nav__links a:hover::after, .nav__links a.active::after { width: 100%; }
.nav__links a.nav__cv {
  display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.8rem; margin-left: 1.2rem;
  border: 1px solid var(--terracotta); border-radius: 999px; color: var(--terracotta);
  font-size: .85rem; font-weight: 500; letter-spacing: .02em;
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.nav__links a.nav__cv::after { display: none; }
.nav__links a.nav__cv:hover { background: var(--terracotta); color: #fff; transform: translateY(-2px); }

.nav__theme {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface); color: var(--ink-soft);
  cursor: pointer; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.nav__theme:hover { color: var(--terracotta); border-color: var(--terracotta); transform: translateY(-2px) rotate(-8deg); }
.nav__theme svg { display: block; }
.nav__theme .i-sun { display: none; }
[data-theme="dark"] .nav__theme .i-sun { display: block; }
[data-theme="dark"] .nav__theme .i-moon { display: none; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 26px; height: 2px; background: var(--wine-deep); border-radius: 2px; transition: .3s var(--ease); }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center; padding: 8rem 0 5rem;
  background: radial-gradient(110% 80% at 82% 8%, var(--rose-soft) 0%, var(--bg) 42%, var(--bg-2) 100%);
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero__bg::before, .hero__bg::after { content: ""; position: absolute; border-radius: 50%; filter: blur(10px); opacity: .55; }
.hero__bg::before {
  width: 46vw; height: 46vw; left: -12vw; bottom: -14vw;
  background: radial-gradient(circle at 40% 40%, color-mix(in srgb, var(--terracotta) 34%, transparent), transparent 62%);
}
.hero__bg::after {
  width: 40vw; height: 40vw; right: -10vw; top: -12vw;
  background: radial-gradient(circle at 60% 60%, color-mix(in srgb, var(--brass) 30%, transparent), transparent 62%);
}
.hero__inner {
  width: min(var(--maxw), 100% - var(--gutter) * 2); margin-inline: auto;
  display: grid; grid-template-columns: 1.12fr .88fr; gap: clamp(2rem, 5vw, 5.5rem);
  align-items: center; position: relative; z-index: 2;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: .7rem; text-transform: uppercase;
  letter-spacing: .32em; font-size: .8rem; font-weight: 600; color: var(--terracotta); margin-bottom: 1.4rem;
}
.hero__eyebrow::before { content: ""; width: 40px; height: 1px; background: currentColor; opacity: .7; }
.hero__title {
  font-family: var(--serif); font-optical-sizing: auto; font-weight: 420;
  font-size: clamp(3.2rem, 9vw, 6.2rem); line-height: .96; letter-spacing: -.035em; color: var(--wine-deep);
}
.hero__title span { font-style: italic; font-weight: 500; color: var(--terracotta); }
.hero__lead { margin-top: 1.7rem; font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--ink); max-width: 40ch; }
.hero__sub { margin-top: .85rem; color: var(--muted); max-width: 42ch; font-size: .98rem; }

.hero__cta { display: flex; gap: 1rem; margin-top: 2.2rem; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: .5rem; padding: .9rem 1.8rem; border-radius: 999px;
  font-weight: 400; font-size: .92rem; letter-spacing: .02em;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn--solid { background: var(--wine-deep); color: var(--surface); box-shadow: var(--shadow-sm); }
[data-theme="dark"] .btn--solid { color: var(--band); }
.btn--solid:hover { transform: translateY(-3px); box-shadow: var(--shadow); background: var(--wine); }
.btn--ghost { border: 1.5px solid var(--terracotta); color: var(--terracotta); }
.btn--ghost:hover { background: var(--terracotta); color: #fff; border-color: var(--terracotta); transform: translateY(-3px); }

.hero__contact {
  list-style: none; display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 2.4rem;
  font-size: .85rem; color: var(--muted); letter-spacing: .02em;
}
.hero__contact li { position: relative; padding-left: 1.4rem; }
.hero__contact li::before { content: ""; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; border-radius: 50%; background: var(--brass); transform: translateY(-50%); }
.hero__contact a:hover { color: var(--wine); }

.hero__photo { display: flex; justify-content: center; position: relative; }
.hero__photo::before {
  content: ""; position: absolute; inset: -6% -6% -10% -6%; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--surface) 55%, transparent), transparent 65%); z-index: -1;
}
.hero__photo img { width: min(100%, 430px); filter: drop-shadow(0 30px 45px rgb(var(--sh)/.32)); animation: float 7s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }

.hero__scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 2;
  width: 26px; height: 42px; border: 1.5px solid color-mix(in srgb, var(--wine-deep) 55%, transparent);
  border-radius: 14px; display: grid; place-items: start center; padding-top: 7px;
}
.hero__scroll span { width: 4px; height: 8px; background: var(--wine-deep); border-radius: 2px; animation: scroll 1.7s infinite; }
@keyframes scroll { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- ABOUT ---------- */
.about { padding: clamp(4.5rem, 9vw, 8.5rem) 0; background: linear-gradient(180deg, var(--surface-2), var(--surface)); position: relative; z-index: 2; }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.about__intro p { margin-top: 1.2rem; color: var(--ink-soft); }
.about__intro p:first-of-type { margin-top: 1.8rem; }
.about__intro p:first-of-type::first-letter {
  font-family: var(--serif); font-size: 3.2em; font-weight: 500; line-height: .8;
  float: left; margin: .08em .12em 0 0; color: var(--terracotta);
}

.about__cards { display: grid; gap: 1.1rem; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.7rem 1.8rem; box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease), background .45s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--terracotta) 45%, transparent); }
.card h3 { font-family: var(--serif); font-weight: 500; color: var(--wine); font-size: 1.3rem; margin-bottom: 1.1rem; display: flex; align-items: center; gap: .6rem; }
.card h3::before { content: ""; width: 18px; height: 2px; background: var(--brass); }
.taglist { list-style: none; display: flex; flex-wrap: wrap; gap: .55rem; }
.taglist li {
  border: 1px solid var(--border); color: var(--wine-deep); padding: .42rem .95rem; border-radius: 999px;
  font-size: .82rem; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.taglist li:hover { background: var(--wine-deep); color: var(--surface); border-color: var(--wine-deep); }
[data-theme="dark"] .taglist li:hover { color: var(--band); }
.exp { list-style: none; display: grid; gap: 1rem; }
.exp li { display: flex; flex-direction: column; padding-left: 1rem; border-left: 2px solid var(--rose); }
.exp strong { color: var(--wine-deep); font-weight: 500; }
.exp span { font-size: .84rem; color: var(--muted); }
.exp__edu { margin-top: 1.2rem; font-size: .84rem; color: var(--muted); border-top: 1px solid var(--border); padding-top: 1.1rem; }

/* ---------- PROJECTS ---------- */
.projects { padding: clamp(4.5rem, 9vw, 8.5rem) 0; position: relative; z-index: 2; counter-reset: proj; }
.projects__head { margin-bottom: 1rem; }
.projects__nav { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.2rem; }
.projects__pill {
  display: inline-flex; align-items: center; gap: .45rem; padding: .65rem 1.3rem;
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface);
  font-size: .88rem; font-weight: 400; color: var(--ink-soft); letter-spacing: .01em;
  box-shadow: var(--shadow-sm); cursor: pointer;
  transition: transform .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
}
.projects__pill:hover { border-color: var(--terracotta); color: var(--wine-deep); transform: translateY(-2px); box-shadow: var(--shadow); }
.projects__pill-num { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 1.1rem; color: var(--brass); line-height: 1; }
.photo__lead { margin-top: 1.1rem; color: var(--ink-soft); }

.project {
  counter-increment: proj; display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start; padding: clamp(3rem, 6vw, 5rem) 0; border-top: 1px solid var(--border);
}
.project:first-of-type { border-top: 0; }
.project--alt { grid-template-columns: 1.18fr .82fr; }
.project--alt .project__info { order: 2; }
.project--alt .project__media { order: 1; }
.project__info { position: sticky; top: 110px; }
/* projects with a full-width sub-section can't use sticky info (it would overlap) */
#proyecto-hazelthorn .project__info { position: static; }
.project__logo { width: 66px; height: 66px; border-radius: 50%; margin-bottom: 1.1rem; box-shadow: var(--shadow); border: 3px solid var(--surface); }
.project__tag {
  display: inline-flex; align-items: baseline; gap: .55rem; font-size: .76rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--ink-soft); font-weight: 600; margin-bottom: .9rem;
}
.project__num {
  font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 1.5rem;
  letter-spacing: 0; color: var(--brass); text-transform: none; line-height: 1;
}
.project__name {
  font-family: var(--serif); font-weight: 440; font-size: clamp(1.9rem, 4.2vw, 2.9rem); color: var(--wine-deep);
  line-height: 1.02; letter-spacing: -.02em; margin-bottom: 1.2rem;
}
.project__info p { color: var(--ink-soft); margin-bottom: 1.1rem; }
.project__role {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: 1.1rem; color: var(--terracotta); margin-top: -.5rem; margin-bottom: 1.1rem;
}

/* ---- branded cover photo for a project card (e.g. 02 Redes sociales) ---- */
.pcard__media--cover {
  display: grid; place-items: center; isolation: isolate;
  background: linear-gradient(135deg, #21405f 0%, #2b2742 52%, #3a2336 100%);
}
.pcard__cover-pat {
  position: absolute; inset: 0; z-index: 0; opacity: .14; pointer-events: none;
  background-image:
    repeating-linear-gradient(45deg, transparent 0 22px, rgba(241,231,207,.7) 22px 23px),
    repeating-linear-gradient(-45deg, transparent 0 22px, rgba(241,231,207,.7) 22px 23px);
  -webkit-mask-image: radial-gradient(130% 120% at 78% 22%, #000, transparent 78%);
          mask-image: radial-gradient(130% 120% at 78% 22%, #000, transparent 78%);
}
.pcard__media--cover img.pcard__crest {
  position: relative; z-index: 1; width: 38%; height: auto; aspect-ratio: 1; object-fit: cover;
  border-radius: 50%; border: 3px solid rgba(241,231,207,.3); box-shadow: 0 14px 34px -10px rgba(0,0,0,.55);
}

/* centered label above a media group (carousels / posts / reels) */
.media-label {
  text-align: center; font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem); line-height: 1.3; color: var(--wine-deep);
  max-width: 42ch; margin: 2.6rem auto .9rem;
}
.media-label::before {
  content: ""; display: block; width: 32px; height: 2px; background: var(--brass); margin: 0 auto .8rem;
}
.media-label + .ig-phones, .media-label + .post-row, .media-label + .reel-wrap { margin-top: .3rem; }
.project__media > .media-label:first-child { margin-top: .5rem; }
.project__role { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.1rem; color: var(--terracotta); margin-top: -.5rem; margin-bottom: 1.1rem; }
.media-label {
  text-align: center; font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.05rem, 2.2vw, 1.32rem); line-height: 1.3; color: var(--wine-deep);
  max-width: 42ch; margin: 2.4rem auto .9rem;
}
.media-label::before { content: ""; display: block; width: 34px; height: 2px; background: var(--brass); margin: 0 auto .75rem; }
.media-label + .ig-phones, .media-label + .post-row, .media-label + .reel-wrap { margin-top: .3rem; }
.project__note { font-family: var(--serif); font-style: italic; font-size: 1.08rem; color: var(--wine); border-left: 2px solid var(--brass); padding-left: 1.1rem; line-height: 1.55; }
.info-block { margin-top: 1.5rem; }
.info-block__title { font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; color: var(--terracotta); margin-bottom: .5rem; display: flex; align-items: center; gap: .55rem; }
.info-block__title::before { content: ""; width: 18px; height: 1px; background: var(--brass); }
.info-block p { margin-bottom: 0; }
.stats { list-style: none; display: flex; flex-wrap: wrap; gap: 1.3rem 2rem; margin-top: 1.6rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.stats li { display: flex; flex-direction: column; }
.stats strong {
  font-family: var(--serif); font-weight: 560; font-size: clamp(1.7rem, 3.2vw, 2.2rem);
  line-height: 1; letter-spacing: -.01em; color: var(--wine-deep);
}
.stats span { margin-top: .4rem; font-size: .76rem; letter-spacing: .04em; color: var(--muted); }

.projects__sub { margin-top: .8rem; color: var(--muted); }

/* ---- project card grid ---- */
.projects__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 3rem; }
[data-view="detail"] .projects__grid { display: none; }
.pcard {
  display: flex; flex-direction: column; overflow: hidden; color: inherit; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.pcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--terracotta) 45%, transparent); }
.pcard:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; }
.pcard__media { display: block; position: relative; overflow: hidden; aspect-ratio: 4/3; background: var(--rose-soft); }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.pcard:hover .pcard__media img { transform: scale(1.06); }
.pcard__body { display: flex; flex-direction: column; gap: .5rem; padding: 1.4rem 1.5rem 1.6rem; flex: 1; }
.pcard__top { display: flex; align-items: baseline; gap: .6rem; }
.pcard__num { font-family: var(--serif); font-style: italic; font-weight: 600; color: var(--brass); font-size: 1.2rem; line-height: 1; }
.pcard__tag { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }
.pcard__name { font-family: var(--serif); font-weight: 480; font-size: 1.55rem; color: var(--wine-deep); line-height: 1.05; }
.pcard__desc { color: var(--ink-soft); font-size: .92rem; line-height: 1.5; }
.pcard__cta { margin-top: .5rem; display: inline-flex; align-items: center; gap: .4rem; color: var(--terracotta); font-size: .85rem; font-weight: 500; letter-spacing: .02em; }
.pcard__cta svg { transition: transform .3s var(--ease); }
.pcard:hover .pcard__cta svg { transform: translateX(4px); }

/* ---- detail view ---- */
.detail-back {
  display: none; align-items: center; gap: .5rem; margin-bottom: 1.5rem; width: fit-content;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  padding: .6rem 1.2rem; color: var(--wine-deep); font-family: var(--sans); font-size: .85rem; font-weight: 400;
  cursor: pointer; box-shadow: var(--shadow-sm);
  transition: border-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.detail-back:hover { border-color: var(--terracotta); color: var(--terracotta); transform: translateX(-3px); }
.project-detail { border-top: 0; padding-top: clamp(1rem, 2vw, 1.5rem); }
.project-detail { display: none; }
.detail-back { display: none; }
[data-view="detail"] .project-detail.active { display: grid; animation: detailIn .55s var(--ease); }
[data-view="detail"] .detail-back { display: inline-flex; }
@keyframes detailIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* detail sub-section (full-width block inside a detail) */
.project__sub {
  grid-column: 1 / -1; margin-top: clamp(1.8rem, 3.5vw, 3rem);
  padding-top: clamp(1.8rem, 3.5vw, 3rem); border-top: 1px solid var(--border);
}
.project__subtitle {
  font-family: var(--serif); font-weight: 480; font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  color: var(--wine-deep); line-height: 1.05; margin-bottom: .7rem;
}
.project__subdesc { color: var(--ink-soft); max-width: 72ch; margin-bottom: 1.7rem; }
.gallery--posters { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.gallery__item--poster { background: var(--surface); }
.gallery--posters .gallery__item--poster img { aspect-ratio: 1.414 / 1; object-fit: contain; }

/* ---- mobile Instagram mockup + carousel ---- */
.ig-phones { display: flex; flex-wrap: wrap; gap: 1.4rem; justify-content: center; align-items: flex-start; margin-bottom: 2rem; }
.ig-phones .ig-phone { margin: 0; flex: 1 1 280px; max-width: 320px; }
.ig-phone {
  position: relative; width: min(330px, 100%); margin: 0 auto 2rem;
  background: #14100e; border-radius: 40px; padding: 30px 12px 14px;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.06);
}
.ig-phone::before {
  content: ""; position: absolute; top: 13px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 7px; border-radius: 6px; background: #000; opacity: .55; z-index: 3;
}
.ig-phone__screen { background: var(--surface); border-radius: 26px; overflow: hidden; }
.ig-top { display: flex; align-items: center; gap: .55rem; padding: .65rem .8rem; }
.ig-avatar {
  width: 32px; height: 32px; border-radius: 50%; overflow: hidden; flex: none;
  display: grid; place-items: center; background: #21405f;
}
.ig-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ig-avatar--book { background: linear-gradient(135deg, var(--terracotta), var(--wine)); color: #fff; font-size: .95rem; }
.ig-user { flex: 1; font-size: .85rem; font-weight: 500; color: var(--ink); }
.ig-more { color: var(--muted); letter-spacing: 1px; font-size: .8rem; }

.carousel { position: relative; overflow: hidden; touch-action: pan-y; }
.carousel__track { display: flex; transition: transform .45s var(--ease); }
.carousel__slide { min-width: 100%; }
.carousel__slide img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; cursor: zoom-in; }
.carousel--portrait .carousel__slide img { aspect-ratio: 4 / 5; }

/* ---- single-post mockups row ---- */
.post-row { display: flex; flex-wrap: wrap; gap: 1.4rem; justify-content: center; align-items: flex-start; margin-top: 1.8rem; }
.post-row .ig-phone { margin: 0; flex: 1 1 280px; max-width: 320px; width: auto; }
.ig-post img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; cursor: zoom-in; }

/* ---- video reel mockup ---- */
.reel-wrap { display: flex; flex-wrap: wrap; gap: 1.4rem; justify-content: center; align-items: flex-start; margin-top: 1.8rem; }
.reel-wrap .ig-phone { margin: 0; flex: 1 1 280px; max-width: 320px; width: auto; }
.reel-video { position: relative; overflow: hidden; background: #000; cursor: pointer; }
.reel-video video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; display: block; background: #000; }
.reel-play {
  position: absolute; inset: 0; margin: auto; width: 66px; height: 66px;
  display: grid; place-items: center; border: 0; border-radius: 50%;
  background: rgba(20,16,14,.5); color: #fff; cursor: pointer; backdrop-filter: blur(2px);
  padding-left: 4px; transition: transform .25s var(--ease), background .25s var(--ease);
}
.reel-play:hover { background: var(--terracotta); transform: scale(1.07); }
.reel-tag {
  position: absolute; top: 10px; right: 10px; background: rgba(20,16,14,.55); color: #fff;
  font-size: .64rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 6px;
}
.reel-video.playing .reel-play, .reel-video.playing .reel-tag { display: none; }
.carousel__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 30px; height: 30px; display: grid; place-items: center;
  background: rgba(20,16,14,.4); color: #fff; border: 0; border-radius: 50%;
  font-size: 1.2rem; line-height: 1; cursor: pointer; backdrop-filter: blur(2px);
  opacity: .9; transition: background .25s var(--ease), opacity .25s var(--ease);
}
.carousel__nav:hover { background: var(--terracotta); }
.carousel__nav--prev { left: 8px; }
.carousel__nav--next { right: 8px; }
.carousel__nav[disabled] { opacity: 0; pointer-events: none; }
.carousel__count {
  position: absolute; top: 9px; right: 9px; z-index: 2;
  background: rgba(20,16,14,.55); color: #fff; font-size: .68rem; font-weight: 500;
  padding: 3px 9px; border-radius: 999px;
}
.carousel__dots { display: flex; gap: 5px; justify-content: center; padding: .6rem 0 .3rem; }
.carousel__dot { width: 6px; height: 6px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; background: color-mix(in srgb, var(--ink) 25%, transparent); transition: background .25s var(--ease), transform .25s var(--ease); }
.carousel__dot.active { background: var(--terracotta); transform: scale(1.25); }
.ig-actions { display: flex; align-items: center; justify-content: space-between; padding: .55rem .8rem .2rem; color: var(--ink); }
.ig-actions__left { display: inline-flex; gap: .85rem; }
.ig-caption { padding: .35rem .8rem 1rem; font-size: .8rem; line-height: 1.45; color: var(--ink-soft); }
.ig-caption strong { color: var(--ink); font-weight: 500; margin-right: .25rem; }

/* galleries */
.gallery { display: grid; gap: 1rem; }
.gallery--feature { grid-template-columns: 1fr 1fr; }
.gallery--feature .gallery__item--wide { grid-column: 1 / -1; }
.gallery__caption { display: flex; align-items: center; padding: .5rem clamp(.5rem, 2vw, 1.5rem); }
.gallery__caption p { margin: 0; color: var(--ink-soft); font-size: clamp(.95rem, 1.4vw, 1.08rem); line-height: 1.6; max-width: 40ch; }
.gallery__caption p::before { content: ""; display: block; width: 28px; height: 2px; background: var(--brass); margin-bottom: 1rem; }
.gallery--grid { grid-template-columns: repeat(3, 1fr); }
.gallery--grid .gallery__item--span { grid-column: 1 / -1; }
.gallery--grid .gallery__item--span img { aspect-ratio: 16/5; }
.gallery__item {
  position: relative; overflow: hidden; border-radius: 14px; cursor: zoom-in; background: var(--rose-soft);
  box-shadow: var(--shadow); border: 1px solid var(--border);
}
.gallery__item::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 55%, rgb(var(--sh)/.28)); opacity: 0; transition: opacity .4s var(--ease); }
.gallery__item:hover::after { opacity: 1; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1/1; transition: transform .6s var(--ease); }
.gallery__item--wide img { aspect-ratio: 16/9; }
.gallery--feature .gallery__item--tall img { aspect-ratio: 281 / 500; }
.gallery__item--phone img { aspect-ratio: 9/16; }
.gallery__item:hover img { transform: scale(1.07); }

/* merch */
.merch { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.8rem 1.4rem; max-width: 540px; margin-inline: auto; }
.merch__item { text-align: center; }
.merch__item img {
  width: 100%; aspect-ratio: 1/1; object-fit: contain; cursor: zoom-in;
  transition: transform .4s var(--ease);
}
.merch__item img:hover { transform: translateY(-7px); }
.merch__item figcaption { margin-top: .7rem; font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

/* bookmark mockup */
.bookmark-mock { display: flex; justify-content: center; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.bookmark-mock .merch-caption { width: 100%; }
.bookmark { width: clamp(42px, 6vw, 60px); margin: 0; border-radius: 6px; overflow: hidden; cursor: zoom-in; background: var(--surface); box-shadow: var(--shadow-lg); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.bookmark img { width: 100%; display: block; aspect-ratio: 1 / 3; object-fit: cover; }
.bookmark:nth-child(1) { transform: rotate(-4deg) translateX(10px); z-index: 2; }
.bookmark:nth-child(2) { transform: rotate(4deg) translateX(-10px); z-index: 1; }
.bookmark:hover { transform: rotate(0) translateY(-8px) scale(1.04); box-shadow: 0 34px 64px -22px rgb(var(--sh)/.55); }
.merch-caption { text-align: center; margin-top: 1.1rem; font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

/* tshirt pair mock */
.tshirt-mock { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; align-items: flex-start; }
.tshirt { width: clamp(130px, 18vw, 195px); margin: 0; cursor: zoom-in; transition: transform .4s var(--ease); }
.tshirt img { width: 100%; display: block; aspect-ratio: auto; object-fit: contain; filter: drop-shadow(0 12px 20px rgb(var(--sh)/.22)); }
.tshirt-mock { position: relative; }
.tshirt--overlap-back { width: clamp(88px, 12vw, 132px); transform: rotate(6deg) translateX(14px); z-index: 1; }
.tshirt--overlap-front { width: clamp(294px, 40vw, 440px); transform: rotate(-5deg) translateX(18px); z-index: 2; position: relative; }
.tshirt--overlap-back:hover, .tshirt--overlap-front:hover { z-index: 10; }
.tshirt:hover { transform: rotate(0) translateY(-7px) scale(1.05); }
.tshirt--lg { width: clamp(150px, 21vw, 224px); }
.tshirt-mock .merch-caption { width: 100%; }

/* shirt pair mock — overlapping */
.shirt-mock { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; flex: 1 1 auto; }
.shirt { width: clamp(182px, 25vw, 273px); margin: 0; cursor: zoom-in; position: relative; transition: transform .4s var(--ease); }
.shirt img { width: 100%; display: block; object-fit: contain; filter: drop-shadow(0 12px 20px rgb(var(--sh)/.22)); }
.shirt:nth-child(1) { transform: rotate(-5deg) translateX(50px); z-index: 2; }
.shirt:nth-child(2) { transform: rotate(4deg) translateX(-50px) translateY(10px); z-index: 1; }
.shirt:hover { transform: rotate(0) translateY(-8px) scale(1.06); z-index: 10; }
.shirt-mock .merch-caption { width: 100%; }

/* totebag pair mock — overlapping */
.totebag-mock { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; flex: 1 1 auto; }
.totebag-mock .merch-caption { width: 100%; }
.totebag { width: clamp(165px, 22vw, 240px); margin: 0; cursor: zoom-in; position: relative; transition: transform .4s var(--ease); }
.totebag img { width: 100%; display: block; object-fit: contain; filter: drop-shadow(0 12px 20px rgb(var(--sh)/.22)); }
.totebag:nth-child(1) { transform: rotate(-6deg) translateX(50px) translateY(20px); z-index: 2; }
.totebag:nth-child(2) { transform: rotate(5deg) translateX(-50px); z-index: 1; }
.totebag:hover { transform: rotate(0) translateY(-8px) scale(1.06); z-index: 10; }
.totebag-mock .merch-caption { width: 100%; }

/* extras row: bookmarks + stickers side by side */
.merch-extras { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center; align-items: center; margin-top: 2.4rem; }
.sticker-mock { display: grid; grid-template-columns: 1fr 1fr; width: clamp(140px, 18vw, 190px); margin: 0 auto; }
.sticker { width: clamp(68px, 9vw, 96px); margin: 0; border-radius: 14px; overflow: hidden; cursor: zoom-in; box-shadow: var(--shadow); transition: transform .4s var(--ease), z-index 0s; position: relative; }
.sticker img { width: 100%; display: block; aspect-ratio: 1; object-fit: cover; }
.sticker:nth-child(1) { transform: rotate(-8deg) translate(8px, 4px); z-index: 1; }
.sticker:nth-child(2) { transform: rotate(6deg) translate(-8px, -2px); z-index: 2; }
.sticker:nth-child(3) { transform: rotate(5deg) translate(6px, -10px); z-index: 3; }
.sticker:nth-child(4) { transform: rotate(-4deg) translate(-6px, -14px); z-index: 4; }
.sticker:hover { transform: rotate(0) translateY(-8px) scale(1.12); z-index: 10; }
.sticker-mock .merch-caption { grid-column: 1 / -1; }

/* ---------- FOTOGRAFÍA ---------- */
.photo { padding: clamp(4.5rem, 9vw, 8.5rem) 0; background: linear-gradient(180deg, var(--surface), var(--surface-2)); position: relative; z-index: 2; }
.photo__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; margin-top: 3rem; }
.photo__item { position: relative; overflow: hidden; border-radius: 16px; cursor: zoom-in; box-shadow: var(--shadow); }
.photo__item--big { grid-column: 1 / -1; }
.photo__item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; transition: transform .7s var(--ease); }
.photo__item--big img { aspect-ratio: 16/7.5; }
.photo__item:hover img { transform: scale(1.05); }

/* ---------- CONTACT ---------- */
.contact {
  padding: clamp(5.5rem, 11vw, 10rem) 0; text-align: center; position: relative; z-index: 2; color: var(--on-dark);
  background: radial-gradient(80% 120% at 50% -10%, var(--band-2), var(--band) 72%);
}
.contact::before { content: "✦"; display: block; color: var(--brass-soft); font-size: 1.4rem; margin-bottom: 1.4rem; opacity: .9; }
.contact__inner { max-width: 740px; }
.contact__title { font-family: var(--serif); font-weight: 460; font-size: clamp(2.5rem, 7.5vw, 4.8rem); letter-spacing: -.02em; color: var(--on-dark); margin-bottom: 1.7rem; line-height: 1.02; }
.contact__inner p { color: var(--on-dark-soft); margin-inline: auto; }
.contact__cta-line { margin-top: 1.3rem; font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--brass-soft); }
.contact__links { display: flex; flex-wrap: wrap; gap: .9rem 1.1rem; justify-content: center; margin-top: 2.8rem; }
.contact__links a { padding: .75rem 1.5rem; border: 1px solid color-mix(in srgb, var(--on-dark) 30%, transparent); border-radius: 999px; font-size: .88rem; letter-spacing: .02em; transition: .3s var(--ease); }
.contact__links a:hover { background: var(--terracotta); border-color: var(--terracotta); color: #fff; transform: translateY(-3px); }

.footer { background: var(--band); color: color-mix(in srgb, var(--on-dark) 50%, transparent); text-align: center; padding: 2rem 1rem; font-size: .8rem; letter-spacing: .03em; border-top: 1px solid color-mix(in srgb, var(--on-dark) 10%, transparent); position: relative; z-index: 2; }

/* ---------- LIGHTBOX ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 4vw; background: rgba(24,16,14,.94); backdrop-filter: blur(6px); animation: fade .3s var(--ease); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.lightbox.open { display: flex; }
.lightbox__frame { position: relative; display: inline-flex; max-width: 92vw; max-height: 88vh; }
.lightbox__frame img { display: block; max-width: 92vw; max-height: 88vh; width: auto; height: auto; border-radius: 10px; box-shadow: 0 40px 90px rgba(0,0,0,.55); }
.lightbox__close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 42px; height: 42px; display: grid; place-items: center;
  background: rgba(24,16,14,.55); backdrop-filter: blur(4px);
  border: 1px solid rgba(244,236,225,.4); border-radius: 50%;
  color: #fff; font-size: 1.7rem; line-height: 1; cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
}
.lightbox__close:hover { background: var(--terracotta); border-color: var(--terracotta); transform: rotate(90deg); }
.lightbox__close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lightbox__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 52px; height: 52px; display: grid; place-items: center;
  background: rgba(24,16,14,.45); backdrop-filter: blur(4px);
  border: 1px solid rgba(244,236,225,.35); border-radius: 50%;
  color: #fff; font-size: 2rem; line-height: 1; cursor: pointer;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.lightbox__arrow:hover { background: var(--terracotta); border-color: var(--terracotta); }
.lightbox__arrow--prev { left: clamp(12px, 3vw, 32px); }
.lightbox__arrow--next { right: clamp(12px, 3vw, 32px); }
.lightbox__arrow[disabled] { opacity: 0; pointer-events: none; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__photo img, .hero__scroll span { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .nav__links {
    position: fixed; inset: 0 0 0 auto; width: min(80%, 330px); flex-direction: column; gap: 1.6rem;
    padding: 6.5rem 2.2rem 2rem; background: var(--surface); box-shadow: var(--shadow-lg);
    transform: translateX(100%); transition: transform .4s var(--ease), background .45s var(--ease);
    overflow-y: auto; -webkit-overflow-scrolling: touch; z-index: 55;
  }
  .nav__links.open { transform: translateX(0); }
  body.menu-open { overflow: hidden; }
  .nav__links a { font-size: 1.05rem; }
  .nav__toggle { display: flex; z-index: 60; }

  .hero__inner { grid-template-columns: 1fr; text-align: center; gap: 2.5rem; }
  .hero__photo { order: -1; }
  .hero__photo img { width: min(66%, 300px); }
  .hero__eyebrow, .hero__lead, .hero__sub, .hero__cta, .hero__contact { margin-inline: auto; justify-content: center; }
  .hero__lead, .hero__sub { max-width: 46ch; }

  .about__grid { grid-template-columns: 1fr; }
  .project, .project--alt { grid-template-columns: 1fr; }
  .project--alt .project__info, .project--alt .project__media { order: initial; }
  .project__info { position: static; }
  .projects__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .gallery--grid, .merch { grid-template-columns: repeat(2, 1fr); }
  .gallery--feature { grid-template-columns: 1fr; }
  .photo__grid { grid-template-columns: 1fr; }
  .hero__contact { gap: .6rem 1rem; font-size: .78rem; }
  .about__intro p:first-of-type::first-letter { font-size: 2.6em; }
  .nav__right { gap: .8rem; }
  .projects__grid { grid-template-columns: 1fr; }
}
