/* =========================================================
   Verónica López — Portafolio
   Paleta maximalista + relieves y curvas inspirados en el logo
   ========================================================= */

:root {
  /* Base */
  --ink: #1b1418;
  --paper: #fffaf2;
  --cream: #fff1dc;
  --white: #ffffff;

  /* Acentos (maximalistas, pero con la tinta como ancla) */
  --tomato: #ff5a36;
  --pink: #ff7ab8;
  --cobalt: #3a4ee8;
  --mustard: #ffc23d;
  --mint: #34c7a0;
  --lilac: #b9a6ff;
  --plum: #5a1f4a;

  /* Relieve */
  --line: 3px;
  --lift: 6px;
  --shadow: var(--lift) var(--lift) 0 var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);

  /* Curvas tipo "cabello" */
  --blob-a: 62% 38% 55% 45% / 45% 55% 45% 55%;
  --blob-b: 40% 60% 45% 55% / 60% 40% 60% 40%;
  --radius: 28px;

  --header-h: 78px;
  --max: 1240px;
  --gutter: clamp(16px, 4vw, 48px);

  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 { line-height: 1.05; margin: 0; font-weight: 800; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }

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

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Resaltados tipo "sticker" ---------- */
.hl {
  display: inline-block;
  padding: 0 .35em;
  border: var(--line) solid var(--ink);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transform: rotate(-1.5deg);
  white-space: nowrap;
  line-height: 1.25;
}
.hl--tomato { background: var(--tomato); color: var(--white); }
.hl--mustard { background: var(--mustard); }
.hl--pink { background: var(--pink); }
.hl--mint { background: var(--mint); }
.hl--lilac { background: var(--lilac); }
.hl--cobalt { background: var(--cobalt); color: var(--white); }
a.hl { text-decoration: none; transition: transform .2s, box-shadow .2s; }
a.hl:hover { transform: rotate(1deg) translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .8em 1.5em;
  font-weight: 700;
  text-decoration: none;
  background: var(--mustard);
  border: var(--line) solid var(--ink);
  border-radius: 999px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.btn:active { transform: translate(var(--lift), var(--lift)); box-shadow: 0 0 0 var(--ink); }
.btn--ink { background: var(--ink); color: var(--paper); box-shadow: var(--lift) var(--lift) 0 var(--tomato); }
.btn--ink:hover { box-shadow: 8px 8px 0 var(--tomato); }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  background: var(--cream);
  border-bottom: var(--line) solid var(--ink);
}
.site-header__inner {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: 100%;
  align-items: center;
  max-width: none;
}

.nav { display: flex; align-items: center; gap: clamp(8px, 1.6vw, 22px); }
.nav__link, .nav__toggle {
  position: relative;
  font-weight: 600; font-size: .98rem;
  text-decoration: none;
  background: none; border: 0; padding: .4em .2em; cursor: pointer;
  display: inline-flex; align-items: center; gap: .3em;
}
.nav__link::after, .nav__toggle::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 6'%3E%3Cpath d='M0 3 Q5 0 10 3 T20 3 T30 3 T40 3' fill='none' stroke='%231b1418' stroke-width='2'/%3E%3C/svg%3E") repeat-x;
  background-size: 20px 6px;
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after,
.nav__toggle:hover::after, .nav__toggle.is-current::after { transform: scaleX(1); }
.nav__chev { width: 12px; height: 12px; transition: transform .2s; }

.dropdown { position: relative; }
.dropdown__panel {
  position: absolute; top: calc(100% + 18px); left: -14px;
  min-width: 290px;
  list-style: none; margin: 0; padding: 10px;
  background: var(--paper);
  border: var(--line) solid var(--ink);
  border-radius: 22px;
  box-shadow: var(--shadow);
  display: grid; gap: 8px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.dropdown__panel::before { /* puente para no perder el hover */
  content: ""; position: absolute; left: 0; right: 0; top: -22px; height: 22px;
}
.dropdown.is-open .dropdown__panel { opacity: 1; visibility: visible; transform: none; }
.dropdown.is-open .nav__chev { transform: rotate(180deg); }
.dropdown__item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  font-weight: 600; text-decoration: none;
  border: 2px solid var(--ink); border-radius: 14px;
  transition: transform .15s, box-shadow .15s;
}
.dropdown__item:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-sm); }
.dropdown__item[aria-current="page"] { box-shadow: var(--shadow-sm); }
.dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink); flex: none; }

/* Logo al centro: "medallón" que cuelga del menú */
.brand {
  justify-self: center;
  position: relative;
  width: 112px; height: 112px;
  align-self: start;
  margin-top: 12px;
  display: grid; place-items: center;
  background: var(--white);
  border: var(--line) solid var(--ink);
  border-radius: var(--blob-a);
  box-shadow: var(--shadow);
  transition: transform .3s ease, border-radius .6s ease;
}
.brand:hover { transform: rotate(-6deg) scale(1.04); border-radius: var(--blob-b); }
.brand img { width: 84%; height: auto; }

.header-right { justify-self: end; display: flex; align-items: center; gap: 12px; }

.lang {
  display: inline-flex;
  border: var(--line) solid var(--ink);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--paper);
}
.lang button {
  border: 0; background: transparent; cursor: pointer;
  font-weight: 700; font-size: .85rem; letter-spacing: .04em;
  padding: .45em .9em;
}
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

.burger {
  display: none;
  width: 46px; height: 46px;
  border: var(--line) solid var(--ink); border-radius: 50%;
  background: var(--mustard); box-shadow: var(--shadow-sm);
  cursor: pointer; place-items: center;
}
.burger span, .burger span::before, .burger span::after {
  display: block; width: 18px; height: 3px; background: var(--ink); border-radius: 3px; position: relative;
}
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }

main { padding-top: var(--header-h); }

/* =========================================================
   HERO (video loop)
   ========================================================= */
.hero {
  position: relative;
  height: calc(100svh - var(--header-h));
  min-height: 520px;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}
.hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0; transition: opacity 1s ease;
}
.hero__video.is-on { opacity: 1; }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(27,20,24,.15) 0%, rgba(27,20,24,.0) 40%, rgba(27,20,24,.75) 100%);
}
.hero__content {
  position: absolute; left: 0; right: 0; bottom: clamp(70px, 12vh, 130px);
}
.hero__kicker {
  display: inline-block; margin-bottom: 18px;
  font-weight: 600; font-size: .9rem; letter-spacing: .12em; text-transform: uppercase;
  padding: .35em .9em; border: 2px solid var(--paper); border-radius: 999px;
}
.hero__title {
  font-size: clamp(2.2rem, 6.2vw, 5.4rem);
  max-width: 15ch;
  text-shadow: 0 2px 30px rgba(0,0,0,.35);
}
.hero__title .hl { color: var(--ink); text-shadow: none; }
.hero__title .hl--tomato, .hero__title .hl--cobalt { color: var(--white); }
.hero__scroll {
  position: absolute; right: var(--gutter); bottom: clamp(70px, 12vh, 130px);
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--mustard); color: var(--ink);
  border: var(--line) solid var(--ink); box-shadow: var(--shadow-sm);
  text-decoration: none; font-size: 1.4rem; font-weight: 800;
  animation: bob 2.2s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translateY(8px); } }

/* Divisor ondulado (como el contorno del cabello) */
.wave { display: block; width: 100%; height: 56px; }
.hero .wave { position: absolute; left: 0; right: 0; bottom: -1px; }
.wave path { fill: var(--paper); }
.wave--ink path { fill: var(--ink); }

/* =========================================================
   INTRO estilo Cabeza Patata
   ========================================================= */
.intro { padding: clamp(56px, 9vw, 110px) 0 clamp(40px, 6vw, 70px); }
.intro__eyebrow { font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .85rem; margin-bottom: 12px; }
.intro__title { font-size: clamp(2.4rem, 6vw, 4.6rem); margin-bottom: 18px; }
.intro__lead { font-size: clamp(1.25rem, 2.4vw, 1.9rem); font-weight: 500; line-height: 1.6; max-width: 34ch; }
.intro__lead .hl { margin: .15em 0; }

.curl { display: block; width: clamp(140px, 22vw, 240px); height: auto; margin: 6px 0 22px; }
.curl path { fill: none; stroke: var(--ink); stroke-width: 5; stroke-linecap: round; }

/* =========================================================
   DESTACADOS
   ========================================================= */
.featured { padding-bottom: clamp(60px, 8vw, 100px); }
.featured__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px) clamp(20px, 3vw, 40px);
}
.fcard { text-decoration: none; display: block; }
.fcard:nth-child(even) { margin-top: clamp(0px, 6vw, 80px); }
.fcard__media {
  position: relative;
  aspect-ratio: 4 / 3;
  border: var(--line) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid; place-items: center;
  transition: transform .25s ease, box-shadow .25s ease, border-radius .5s ease;
}
.fcard:hover .fcard__media { transform: translate(-3px, -3px) rotate(-.6deg); box-shadow: 10px 10px 0 var(--ink); border-radius: 46px 22px 40px 26px; }
.fcard__media .frame {
  height: 86%;
  border: var(--line) solid var(--ink);
  border-radius: 18px;
  overflow: hidden;
  background: var(--ink);
  box-shadow: var(--shadow-sm);
}
.fcard__media .frame--wide { height: auto; width: 86%; }
.fcard__media .frame video, .fcard__media .frame img { width: 100%; height: 100%; object-fit: cover; }
.fcard__tag {
  position: absolute; top: 14px; left: 14px;
  font-size: .78rem; font-weight: 700; letter-spacing: .04em;
  background: var(--paper); border: 2px solid var(--ink); border-radius: 999px; padding: .2em .8em;
}
.fcard__title { font-size: clamp(1.6rem, 2.8vw, 2.3rem); margin-top: 18px; }
.fcard__text { margin: 6px 0 0; font-size: 1.05rem; max-width: 40ch; }
.fcard__more { display: inline-block; margin-top: 8px; font-weight: 700; }
.fcard:hover .fcard__more { text-decoration: underline wavy; }

.see-all { text-align: center; margin-top: clamp(40px, 6vw, 80px); }

/* Bloque de categorías */
.cats { background: var(--ink); color: var(--paper); padding: clamp(50px, 8vw, 100px) 0; }
.cats__title { font-size: clamp(2rem, 4.6vw, 3.4rem); margin-bottom: 30px; }
.cats__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.cat-tile {
  position: relative; min-height: 200px;
  padding: 22px; color: var(--ink); text-decoration: none;
  border: var(--line) solid var(--paper);
  border-radius: var(--blob-a);
  display: flex; flex-direction: column; justify-content: flex-end;
  box-shadow: var(--lift) var(--lift) 0 var(--paper);
  transition: transform .2s, border-radius .6s;
}
.cat-tile:nth-child(2n) { border-radius: var(--blob-b); }
.cat-tile:hover { transform: translate(-3px, -3px) rotate(-1deg); border-radius: 30px; }
.cat-tile h3 { font-size: 1.3rem; }
.cat-tile span { font-size: .9rem; font-weight: 600; }

/* =========================================================
   PÁGINAS DE CATEGORÍA
   ========================================================= */
.page-head {
  position: relative;
  padding: clamp(70px, 10vw, 120px) 0 clamp(36px, 5vw, 60px);
  overflow: hidden;
}
.page-head__blob {
  position: absolute; z-index: -1;
  width: clamp(260px, 42vw, 560px); aspect-ratio: 1;
  right: -6vw; top: -8vw;
  border: var(--line) solid var(--ink);
  border-radius: var(--blob-a);
  box-shadow: var(--shadow);
}
.page-head__eyebrow { font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .85rem; }
.page-head__title { font-size: clamp(2.4rem, 7vw, 5.6rem); margin: 10px 0 16px; max-width: 14ch; }
.page-head__lead { font-size: clamp(1.05rem, 1.8vw, 1.3rem); max-width: 52ch; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.chip {
  font-size: .9rem; font-weight: 600; text-decoration: none;
  padding: .35em 1em;
  background: var(--paper);
  border: 2px solid var(--ink); border-radius: 999px;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.chip:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-sm); background: var(--mustard); }

/* Proyecto: media + texto */
.project {
  padding: clamp(40px, 6vw, 80px) 0;
  border-top: var(--line) solid var(--ink);
}
.project:nth-of-type(even) { background: var(--cream); }
.project__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.project:nth-of-type(even) .project__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
.project:nth-of-type(even) .project__media { order: 2; }

.project__info {
  position: sticky; top: calc(var(--header-h) + 28px);
  padding: clamp(22px, 3vw, 34px);
  background: var(--paper);
  border: var(--line) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--lift) var(--lift) 0 var(--accent, var(--tomato));
  outline: var(--line) solid transparent;
}
.project__num {
  display: inline-grid; place-items: center;
  width: 46px; height: 46px; margin-bottom: 12px;
  font-weight: 800;
  background: var(--accent, var(--tomato));
  border: var(--line) solid var(--ink); border-radius: var(--blob-a);
}
.project__title { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 14px; }
.meta { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0 0 18px; font-size: .95rem; }
.meta dt { font-weight: 700; }
.meta dd { margin: 0; }
.project__label { font-weight: 800; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin: 18px 0 6px; }
.project__text { font-size: 1rem; }
.tools { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 4px 0 0; }
.tools li { font-size: .8rem; font-weight: 600; padding: .25em .8em; border: 2px solid var(--ink); border-radius: 999px; background: var(--cream); }
.project:nth-of-type(even) .tools li { background: var(--paper); }

/* ---------- Media: galería (pocos recursos) ---------- */
.gallery { display: flex; gap: 16px; flex-wrap: wrap; }
.gallery .tile { flex: var(--ar-num) 1 0; min-width: 180px; }

/* ---------- Media: carrusel ---------- */
.carousel { position: relative; }
.carousel__track {
  display: flex; gap: 16px;
  height: clamp(340px, 62vh, 580px);
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 10px 14px 4px;
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track .tile { height: calc(100% - 4px); flex: none; scroll-snap-align: start; }
.carousel__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 10px; }
.carousel__count { font-weight: 700; font-variant-numeric: tabular-nums; }
.carousel__progress { flex: 1; height: 8px; border: 2px solid var(--ink); border-radius: 99px; overflow: hidden; background: var(--paper); }
.carousel__progress span { display: block; height: 100%; width: 0; background: var(--accent, var(--tomato)); transition: width .3s; }
.carousel__btns { display: flex; gap: 10px; }
.arrow {
  width: 48px; height: 48px; border-radius: 50%;
  border: var(--line) solid var(--ink); background: var(--mustard); box-shadow: var(--shadow-sm);
  cursor: pointer; font-size: 1.2rem; font-weight: 800;
  transition: transform .15s, box-shadow .15s;
}
.arrow:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.arrow:disabled { opacity: .35; cursor: default; transform: none; box-shadow: none; }

/* ---------- Tile genérico (video / imagen / pdf) ---------- */
.tile {
  position: relative;
  aspect-ratio: var(--ar);
  border: var(--line) solid var(--ink);
  border-radius: 20px;
  overflow: hidden;
  background: var(--ink);
  box-shadow: var(--shadow-sm);
  cursor: zoom-in;
  padding: 0;
  transition: transform .2s, box-shadow .2s;
}
.tile:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow); }
.tile video, .tile img { width: 100%; height: 100%; object-fit: cover; }
.tile__badge {
  position: absolute; left: 10px; bottom: 10px;
  font-size: .72rem; font-weight: 800; letter-spacing: .06em;
  background: var(--paper); color: var(--ink);
  border: 2px solid var(--ink); border-radius: 999px; padding: .15em .7em;
  pointer-events: none;
}
.tile__play {
  position: absolute; right: 10px; bottom: 10px;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--mustard); border: 2px solid var(--ink);
  font-size: .8rem; pointer-events: none;
  transition: opacity .2s;
}
.tile.is-playing .tile__play { opacity: 0; }
.tile--single { cursor: default; }
.tile--single:hover { transform: none; box-shadow: var(--shadow-sm); }
.tile--single video { object-fit: contain; }

/* =========================================================
   LIGHTBOX
   ========================================================= */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: none; place-items: center;
  padding: 70px 16px 24px;
  background: rgba(27, 20, 24, .92);
}
.lightbox.is-open { display: grid; }
.lightbox__stage { max-width: min(1100px, 100%); max-height: 100%; display: grid; place-items: center; }
.lightbox__stage video, .lightbox__stage img {
  max-width: 100%; max-height: calc(100svh - 110px);
  border: var(--line) solid var(--paper); border-radius: 18px;
}
.lightbox__close {
  position: absolute; top: 16px; right: 16px;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--tomato); color: var(--white);
  border: var(--line) solid var(--paper); cursor: pointer; font-size: 1.3rem; font-weight: 800;
}

/* =========================================================
   ABOUT
   ========================================================= */
.about { padding: clamp(60px, 9vw, 110px) 0; }
.about__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(30px, 6vw, 80px); align-items: start; }
.about__photo { position: relative; }
.about__photo img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%;
  border: var(--line) solid var(--ink);
  border-radius: var(--blob-a);
  box-shadow: 12px 12px 0 var(--pink);
}
.about__sticker {
  position: absolute; bottom: 6%; right: -4%;
  width: 120px; height: 120px; display: grid; place-items: center; text-align: center;
  font-weight: 800; font-size: .85rem; line-height: 1.1;
  background: var(--mustard); border: var(--line) solid var(--ink); border-radius: 50%;
  box-shadow: var(--shadow-sm); transform: rotate(10deg);
}
.about__title { font-size: clamp(2.4rem, 6vw, 4.6rem); margin-bottom: 18px; }
.about__lead { font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 500; }

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 34px; }
.card {
  padding: 22px; background: var(--paper);
  border: var(--line) solid var(--ink); border-radius: var(--radius);
  box-shadow: var(--lift) var(--lift) 0 var(--accent, var(--ink));
}
.card--wide { grid-column: 1 / -1; }
.card h3 { font-size: 1.2rem; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.timeline li { padding-left: 18px; border-left: 3px dotted var(--ink); }
.timeline strong { display: block; }
.timeline small { display: block; font-weight: 600; opacity: .75; margin-bottom: 4px; }
.timeline p { margin: 0; font-size: .95rem; }
.meter { height: 12px; border: 2px solid var(--ink); border-radius: 99px; overflow: hidden; margin-top: 6px; background: var(--cream); }
.meter span { display: block; height: 100%; background: var(--mint); }

/* =========================================================
   CONTACT
   ========================================================= */
.contact { padding: clamp(60px, 9vw, 110px) 0; }
.contact__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(30px, 6vw, 80px); align-items: start; }
.contact__title { font-size: clamp(2.4rem, 6vw, 4.8rem); margin-bottom: 18px; }
.contact__lead { font-size: clamp(1.1rem, 2vw, 1.35rem); }
.contact__links { display: grid; gap: 12px; margin-top: 26px; }

.form {
  padding: clamp(22px, 4vw, 40px);
  background: var(--lilac);
  border: var(--line) solid var(--ink);
  border-radius: 36px 20px 40px 24px;
  box-shadow: 10px 10px 0 var(--ink);
  display: grid; gap: 18px;
}
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; }
.field input, .field textarea {
  width: 100%;
  font: inherit; font-size: 1rem;
  padding: .85em 1em;
  background: var(--paper);
  border: var(--line) solid var(--ink);
  border-radius: 16px;
  outline: none;
  transition: box-shadow .15s, transform .15s;
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus, .field textarea:focus { box-shadow: var(--shadow-sm); transform: translate(-2px, -2px); }
.form__status { font-weight: 600; min-height: 1.5em; margin: 0; }
.form__status.is-ok { color: #0d6b52; }
.form__status.is-error { color: #b3261e; }
.hp { display: none; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--ink); color: var(--paper); padding: 50px 0 34px; position: relative; }
.site-footer .wave { position: absolute; top: -55px; left: 0; }
.site-footer__grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.site-footer__big { font-size: clamp(1.6rem, 3.4vw, 2.6rem); font-weight: 800; }
.site-footer__big a { text-decoration: none; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 16px; font-weight: 600; }
.site-footer__links a { text-decoration: none; }
.site-footer__links a:hover { text-decoration: underline wavy; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 36px; font-size: .88rem; opacity: .8; }
.to-top { background: none; border: 0; cursor: pointer; font-weight: 700; color: inherit; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 960px) {
  .project__grid,
  .project:nth-of-type(even) .project__grid { grid-template-columns: 1fr; }
  .project:nth-of-type(even) .project__media { order: 0; }
  .project__info { position: static; }
  .about__grid, .contact__grid { grid-template-columns: 1fr; }
  .about__photo { max-width: 440px; }
  .cats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  :root { --header-h: 68px; }
  .burger { display: grid; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px var(--gutter) 24px;
    background: var(--cream);
    border-bottom: var(--line) solid var(--ink);
    transform: translateY(-120%); transition: transform .3s ease;
    z-index: -1;
  }
  .nav.is-open { transform: none; }
  .nav__link, .nav__toggle { font-size: 1.25rem; padding: .7em 0; width: 100%; justify-content: space-between; }
  .dropdown__panel {
    position: static; min-width: 0; margin: 4px 0 10px;
    opacity: 1; visibility: visible; transform: none; display: none; box-shadow: none;
  }
  .dropdown.is-open .dropdown__panel { display: grid; }
  .brand { width: 86px; height: 86px; margin-top: 10px; }
  .featured__grid { grid-template-columns: 1fr; }
  .fcard:nth-child(even) { margin-top: 0; }
  .cards { grid-template-columns: 1fr; }
  .lang button { padding: .4em .7em; }
}

@media (max-width: 480px) {
  .cats__grid { grid-template-columns: 1fr; }
  .cat-tile { min-height: 140px; }
  .hero__scroll { display: none; }
  .gallery .tile { min-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
