/* ──────────────────────────────────────────────────────────
   Can Maiol — Casa de colònies
   Editorial càlid · v2 (tipografia + polish)

   Sistema:
   · Display  → Fraunces variable (opsz 9–144, SOFT 0–100, slant -10..0)
   · Body/UI  → Inter variable
   · Escala   → Perfect fourth (1.333) + steps fluids amb clamp()
   · Numerals → tabular en .figures, oldstyle en text llarg
   · Detalls  → drop cap · pull-quote · marc rural · paper-grain
   ────────────────────────────────────────────────────────── */


/* ── 1. Tokens ─────────────────────────────────────────── */

:root {
  /* Paleta */
  --c-bg:        #FAF3E3;
  --c-bg-warm:   #F2E4C8;
  --c-bg-deep:   #231A12;   /* més fosc — millor contrast amb text */
  --c-paper:     #FFFCF4;
  --c-ink:       #2B2018;
  --c-ink-2:     #4F3F33;
  --c-ink-3:     #7A6A5C;
  --c-ink-4:     #A89886;
  --c-clay:      #B5642E;
  --c-clay-d:    #8E4A1F;
  --c-clay-l:    #E8B488;
  --c-clay-s:    #F7E6D4;
  --c-olive:     #5E6F3A;
  --c-olive-d:   #3F4E22;
  --c-olive-l:   #A3B07A;
  --c-olive-s:   #E1E5CC;
  --c-sun:       #D9A248;
  --c-line:      rgba(43,32,24,0.12);
  --c-line-2:    rgba(43,32,24,0.22);
  --c-line-3:    rgba(43,32,24,0.38);

  /* Tipografia */
  --display: "Fraunces", "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Escala — perfect fourth (1.333) amb clamps */
  --fs-50: clamp(3.6rem, 7vw, 5.4rem);     /* hero h1 */
  --fs-40: clamp(2.4rem, 4.2vw, 3.4rem);   /* page hero h1 */
  --fs-30: clamp(1.9rem, 3vw, 2.4rem);     /* section h2 */
  --fs-25: clamp(1.5rem, 2vw, 1.75rem);    /* large body / quote */
  --fs-22: 1.375rem;                        /* h3 */
  --fs-18: 1.125rem;                        /* lede */
  --fs-17: 1.0625rem;                       /* body */
  --fs-15: 0.9375rem;                       /* small */
  --fs-13: 0.8125rem;                       /* meta */
  --fs-11: 0.7rem;                          /* eyebrow */

  /* Espai */
  --s-1: 4px;  --s-2: 8px;   --s-3: 12px; --s-4: 16px; --s-5: 20px;
  --s-6: 24px; --s-8: 32px;  --s-10: 40px; --s-12: 48px; --s-16: 64px;
  --s-20: 80px; --s-24: 96px; --s-32: 128px;

  --r-sm: 4px; --r-md: 8px; --r-lg: 14px; --r-xl: 22px;

  --sh-sm: 0 1px 2px rgba(43,32,24,.06), 0 1px 1px rgba(43,32,24,.04);
  --sh-md: 0 10px 28px rgba(43,32,24,.10), 0 3px 8px rgba(43,32,24,.06);
  --sh-lg: 0 28px 64px rgba(43,32,24,.16), 0 8px 18px rgba(43,32,24,.08);

  --maxw: 1180px;
  --maxw-narrow: 760px;
  --maxw-prose: 640px;

  --ease: cubic-bezier(.2,.9,.1,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --t-fast: 140ms;
  --t: 280ms;
  --t-slow: 600ms;
}


/* ── 2. Reset & base ───────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-rendering: optimizeLegibility; }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--sans);
  font-size: var(--fs-17);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  font-optical-sizing: auto;
}

/* Paper grain — molt subtil per donar calidesa */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='4'/><feColorMatrix values='0 0 0 0 0.16  0 0 0 0 0.12  0 0 0 0 0.09  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

img, picture, video, svg { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }


/* ── 3. Tipografia ─────────────────────────────────────── */

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  color: var(--c-ink);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 .4em;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1, "ss01" 1;
  font-optical-sizing: auto;
  text-wrap: balance;
}

h1 {
  font-size: var(--fs-50);
  font-variation-settings: "opsz" 144, "SOFT" 60;
  letter-spacing: -0.03em;
}
h2 {
  font-size: var(--fs-30);
  line-height: 1.1;
  font-variation-settings: "opsz" 72, "SOFT" 40;
}
h3 {
  font-size: var(--fs-22);
  line-height: 1.2;
  font-weight: 500;
  font-variation-settings: "opsz" 36, "SOFT" 20;
  letter-spacing: -0.015em;
}
h4 {
  font-size: var(--fs-17);
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--c-ink-3);
  line-height: 1.4;
}

/* Italic display per accent — la marca de la casa */
em, .italic, .display-italic {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 80;
}

p {
  margin: 0 0 1em;
  color: var(--c-ink-2);
  text-wrap: pretty;
}
p.lede {
  font-size: var(--fs-18);
  line-height: 1.6;
  color: var(--c-ink-2);
}

a {
  color: var(--c-clay-d);
  text-decoration: underline;
  text-decoration-color: rgba(181,100,46,.35);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color var(--t-fast) var(--ease), text-decoration-color var(--t-fast) var(--ease);
}
a:hover { color: var(--c-clay); text-decoration-color: var(--c-clay); }

::selection { background: var(--c-clay-s); color: var(--c-ink); }

/* Numerals tabulars per a les xifres clau */
.tnum, .figures .figure__num { font-variant-numeric: tabular-nums lining-nums; }
.onum { font-variant-numeric: oldstyle-nums; }

/* Drop cap — primer paràgraf d'una secció editorial */
.drop > p:first-of-type::first-letter {
  font-family: var(--display);
  font-variation-settings: "opsz" 144, "SOFT" 80;
  font-style: italic;
  font-weight: 500;
  font-size: 4.4em;
  line-height: .85;
  float: left;
  margin: .05em .12em -.05em 0;
  color: var(--c-clay);
  padding: 0;
}

/* Pull quote */
.pullquote {
  font-family: var(--display);
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 80;
  font-size: var(--fs-25);
  line-height: 1.3;
  color: var(--c-ink);
  max-width: 24ch;
  margin: var(--s-10) 0;
  padding-left: var(--s-6);
  border-left: 2px solid var(--c-clay);
  text-wrap: balance;
}
.pullquote cite {
  display: block;
  font-style: normal;
  font-family: var(--sans);
  font-size: var(--fs-13);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-ink-3);
  margin-top: var(--s-3);
}


/* ── 4. Layout ─────────────────────────────────────────── */

.wrap        { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: var(--maxw-narrow); margin: 0 auto; padding: 0 24px; }
.wrap-prose  { max-width: var(--maxw-prose); margin: 0 auto; padding: 0 24px; }

.section { padding: clamp(64px, 9vw, 120px) 0; border-top: 1px solid var(--c-line); position: relative; }
.section--alt { background: var(--c-bg-warm); }
.section--dark { background: var(--c-bg-deep); color: #E8DCC8; border-top: 0; }
.section--dark h2, .section--dark h3 { color: #FFFCF4; }
.section--dark p { color: #C7B59A; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: var(--fs-11);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--c-clay-d);
  font-weight: 600;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px; height: 1px;
  background: var(--c-clay);
  flex: none;
}

.section__title { margin-bottom: 18px; }
.section__lede {
  max-width: 64ch;
  margin: 0 0 var(--s-12);
  font-size: var(--fs-18);
  color: var(--c-ink-2);
  text-wrap: balance;
}

/* Ornament de secció — petita olivera centrada */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0 auto var(--s-8);
  max-width: 180px;
  color: var(--c-olive);
}
.ornament::before, .ornament::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-line-3), transparent);
}
.ornament svg { width: 32px; height: 32px; flex: none; opacity: .8; }


/* ── 5. Header & wordmark ──────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(250,243,227,.86);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--c-line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}

/* Wordmark tipogràfic */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--c-ink);
  text-decoration: none;
  line-height: 1;
}
.wordmark:hover { color: var(--c-ink); text-decoration: none; }
.wordmark__mark {
  width: 38px; height: 38px;
  flex: none;
  color: var(--c-olive);
}
.wordmark__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1;
}
.wordmark__name {
  font-family: var(--display);
  font-size: 1.7rem;
  font-style: italic;
  font-weight: 500;
  font-variation-settings: "opsz" 144, "SOFT" 80, "WONK" 1;
  letter-spacing: -0.02em;
  color: var(--c-ink);
  font-feature-settings: "ss01" 1, "liga" 1, "dlig" 1;
}
.wordmark__sub {
  font-family: var(--sans);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--c-ink-3);
}

/* Footer variant */
.wordmark--footer { color: #FFFCF4; }
.wordmark--footer .wordmark__mark { color: var(--c-olive-l); }
.wordmark--footer .wordmark__name { color: #FFFCF4; font-size: 2rem; }
.wordmark--footer .wordmark__sub  { color: #C7B59A; }

/* Nav */
.nav { display: flex; gap: 2px; align-items: center; }
.nav a {
  position: relative;
  padding: 10px 14px;
  color: var(--c-ink-2);
  text-decoration: none;
  font-size: .94rem;
  font-weight: 500;
  border-radius: var(--r-md);
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.nav a:hover { color: var(--c-ink); background: var(--c-clay-s); }
.nav a.is-active { color: var(--c-clay-d); }
.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  height: 2px;
  background: var(--c-clay);
  border-radius: 2px;
}

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--c-line-2);
  border-radius: var(--r-md);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px; height: 2px;
  background: var(--c-ink);
  border-radius: 2px;
}
.nav-toggle span { position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top:  6px; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    top: 76px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--c-bg);
    border-bottom: 1px solid var(--c-line);
    padding: 16px;
    gap: 4px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 16px; font-size: 1rem; }
  .nav a.is-active::after { display: none; }
  .nav a.is-active { background: var(--c-clay-s); }
  .wordmark__name { font-size: 1.4rem; }
}
@media (max-width: 420px) {
  .wordmark__sub { display: none; }
}


/* ── 6. Hero ───────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: clamp(560px, 82vh, 820px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  background: var(--c-bg-deep);
}
.hero__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.hero__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 55%;
  transform: scale(1.04);
  animation: kenburns 18s ease-in-out infinite alternate;
}
@keyframes kenburns {
  0%   { transform: scale(1.04) translate(0, 0); }
  100% { transform: scale(1.10) translate(-1.5%, -1%); }
}
.hero__img::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(35,26,18,.15) 0%, rgba(35,26,18,.05) 35%, rgba(35,26,18,.82) 100%),
    linear-gradient(90deg,  rgba(35,26,18,.50) 0%, rgba(35,26,18,0) 60%);
}
.hero__inner {
  position: relative;
  padding: clamp(56px, 9vw, 112px) 0 clamp(64px, 9vw, 104px);
  color: #FAF3E3;
  z-index: 2;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-11);
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--c-clay-l);
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(6px);
  padding: 9px 16px;
  border-radius: 999px;
  margin-bottom: 28px;
  border: 1px solid rgba(255,255,255,.18);
  font-weight: 600;
}
.hero h1 {
  color: #FFFCF4;
  max-width: 16ch;
  margin-bottom: 24px;
  font-variation-settings: "opsz" 144, "SOFT" 80;
}
.hero h1 em { color: var(--c-clay-l); }
.hero__lede {
  color: rgba(255,252,244,.88);
  max-width: 56ch;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  font-weight: 400;
}
.hero__cta { margin-top: var(--s-10); display: flex; gap: 12px; flex-wrap: wrap; }

/* Scroll cue */
.hero__scroll {
  position: absolute;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  color: rgba(255,252,244,.6);
  font-size: var(--fs-11);
  letter-spacing: .24em;
  text-transform: uppercase;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 2;
  animation: float 2.6s ease-in-out infinite;
}
.hero__scroll::after {
  content: "";
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, rgba(255,252,244,.5), transparent);
}
@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: .6; }
  50%      { transform: translateX(-50%) translateY(6px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__img img { animation: none; transform: none; }
  .hero__scroll { animation: none; }
}

/* Hero variant — pàgines interiors */
.hero--page { min-height: clamp(320px, 46vh, 480px); }
.hero--page .hero__scroll { display: none; }


/* ── 7. Buttons ────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--r-md);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
  white-space: nowrap;
  letter-spacing: -0.005em;
}
.btn:hover { transform: translateY(-1px); }
.btn::after {
  content: "→";
  margin-left: 2px;
  transition: transform var(--t-fast) var(--ease);
}
.btn:hover::after { transform: translateX(3px); }
.btn.no-arrow::after { content: none; }

.btn--primary { background: var(--c-clay); color: #FFFCF4; }
.btn--primary:hover { background: var(--c-clay-d); color: #FFFCF4; box-shadow: var(--sh-md); }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,.36); color: #FFFCF4; }
.btn--ghost:hover { background: rgba(255,255,255,.10); color: #FFFCF4; }
.btn--olive { background: var(--c-olive); color: #FFFCF4; }
.btn--olive:hover { background: var(--c-olive-d); color: #FFFCF4; box-shadow: var(--sh-md); }
.btn--outline { background: transparent; border-color: var(--c-line-2); color: var(--c-ink); }
.btn--outline:hover { background: var(--c-clay-s); color: var(--c-clay-d); border-color: var(--c-clay-l); }


/* ── 8. Cards & grids ──────────────────────────────────── */

.grid { display: grid; gap: var(--s-6); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  box-shadow: var(--sh-sm);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: var(--c-line-2); }
.card h3 { margin: 0 0 8px; }
.card p { font-size: var(--fs-15); color: var(--c-ink-3); margin: 0; }
.card__tag {
  display: inline-block;
  font-family: var(--sans);
  font-size: var(--fs-11);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-olive-d);
  background: var(--c-olive-s);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
  font-weight: 600;
}

.card--photo { padding: 0; overflow: hidden; }
.card--photo .card__img { aspect-ratio: 4/3; overflow: hidden; background: var(--c-bg-warm); }
.card--photo .card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card--photo:hover .card__img img { transform: scale(1.06); }
.card--photo .card__body { padding: var(--s-5) var(--s-6) var(--s-6); }


/* ── 9. Feature / split / figures ──────────────────────── */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.split--reverse > :first-child { order: 2; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: initial; }
}
.split__img {
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--sh-md);
  background: var(--c-bg-warm);
  position: relative;
}
.split__img img { width: 100%; height: 100%; object-fit: cover; }
.split__img--wide { aspect-ratio: 5/4; }

/* Marc decoratiu opcional */
.split__img--framed::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255,252,244,.4);
  border-radius: calc(var(--r-xl) - 8px);
  pointer-events: none;
  z-index: 2;
}

.figures {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--c-line);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-top: var(--s-12);
}
@media (max-width: 700px) { .figures { grid-template-columns: repeat(2, 1fr); } }
.figure {
  background: var(--c-bg);
  padding: 28px 24px;
  text-align: left;
  transition: background var(--t) var(--ease);
}
.figure:hover { background: var(--c-paper); }
.figure__num {
  display: block;
  font-family: var(--display);
  font-size: 2.6rem;
  font-weight: 400;
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 80;
  color: var(--c-clay-d);
  line-height: 1;
  letter-spacing: -0.02em;
}
.figure__lbl {
  display: block;
  margin-top: 10px;
  color: var(--c-ink-3);
  font-size: var(--fs-13);
  letter-spacing: .06em;
  font-weight: 500;
}


/* ── 10. Lists ─────────────────────────────────────────── */

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.checklist li {
  padding-left: 32px;
  position: relative;
  color: var(--c-ink-2);
  font-size: var(--fs-17);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 20px; height: 20px;
  background: var(--c-olive-s);
  border-radius: 50%;
}
.checklist li::after {
  content: "";
  position: absolute;
  left: 6px; top: 11px;
  width: 8px; height: 4px;
  border-left: 2px solid var(--c-olive-d);
  border-bottom: 2px solid var(--c-olive-d);
  transform: rotate(-45deg);
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--c-line-2);
  border-radius: 999px;
  background: var(--c-paper);
  color: var(--c-ink-2);
  font-size: var(--fs-15);
}
.pill::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--c-clay);
  border-radius: 50%;
  flex: none;
}


/* ── 11. Tallers ───────────────────────────────────────── */

.tallers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--s-4);
}
.taller {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 22px 24px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: border-color var(--t) var(--ease), transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.taller:hover { border-color: var(--c-clay-l); transform: translateY(-2px); box-shadow: var(--sh-sm); }
.taller__icon {
  width: 40px; height: 40px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-clay-s);
  color: var(--c-clay-d);
  border-radius: 50%;
  font-size: 1.15rem;
}
.taller__name {
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--c-ink);
  line-height: 1.25;
  font-variation-settings: "opsz" 36, "SOFT" 20;
}
.taller__hint {
  font-size: var(--fs-13);
  color: var(--c-ink-3);
  margin-top: 4px;
  line-height: 1.4;
}


/* ── 12. Galeria + lightbox ────────────────────────────── */

.gallery {
  column-count: 3;
  column-gap: 12px;
}
@media (max-width: 900px) { .gallery { column-count: 2; } }
@media (max-width: 540px) { .gallery { column-count: 1; } }
.gallery a {
  display: block;
  margin: 0 0 12px;
  break-inside: avoid;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--c-bg-warm);
  box-shadow: var(--sh-sm);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
  position: relative;
}
.gallery a:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.gallery img {
  width: 100%; height: auto;
  display: block;
  transition: transform .7s var(--ease);
}
.gallery a:hover img { transform: scale(1.04); }

.lb {
  position: fixed; inset: 0;
  background: rgba(20,14,10,.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
}
.lb.is-open { display: flex; }
.lb__img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: var(--r-md);
  box-shadow: var(--sh-lg);
}
.lb__btn {
  position: absolute;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.20);
  color: #FFFCF4;
  width: 52px; height: 52px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.lb__btn:hover { background: rgba(255,255,255,.22); transform: scale(1.06); }
.lb__close { top: 24px; right: 24px; }
.lb__prev  { left: 24px; top: 50%; transform: translateY(-50%); }
.lb__next  { right: 24px; top: 50%; transform: translateY(-50%); }
.lb__prev:hover { transform: translateY(-50%) scale(1.06); }
.lb__next:hover { transform: translateY(-50%) scale(1.06); }
.lb__count {
  position: absolute;
  bottom: 24px; left: 50%; transform: translateX(-50%);
  color: rgba(255,252,244,.7);
  font-family: var(--display);
  font-style: italic;
  font-size: 1rem;
  letter-spacing: .04em;
}


/* ── 13. Contact ───────────────────────────────────────── */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 72px);
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.info-block {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px 16px;
  margin-bottom: 28px;
}
.info-block svg {
  width: 22px; height: 22px;
  color: var(--c-clay);
  margin-top: 4px;
}
.info-block dt {
  font-size: var(--fs-11);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--c-ink-3);
  grid-column: 2;
  margin-bottom: -2px;
  font-weight: 600;
}
.info-block dd {
  margin: 0;
  grid-column: 2;
  color: var(--c-ink);
  font-size: var(--fs-18);
}

.map-wrap {
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  border: 1px solid var(--c-line);
  box-shadow: var(--sh-md);
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

form.contact-form .field {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
}
form.contact-form label {
  font-size: var(--fs-13);
  color: var(--c-ink-3);
  letter-spacing: .06em;
  font-weight: 500;
}
form.contact-form input,
form.contact-form textarea {
  padding: 14px 16px;
  background: var(--c-paper);
  border: 1px solid var(--c-line-2);
  border-radius: var(--r-md);
  color: var(--c-ink);
  font-family: var(--sans);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
form.contact-form input:focus,
form.contact-form textarea:focus {
  outline: 0;
  border-color: var(--c-clay);
  box-shadow: 0 0 0 3px var(--c-clay-s);
}
form.contact-form textarea { min-height: 140px; resize: vertical; }


/* ── 14. Footer ────────────────────────────────────────── */

.site-footer {
  background: var(--c-bg-deep);
  color: #C7B59A;
  padding: 88px 0 40px;
  font-size: var(--fs-15);
  position: relative;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,252,244,.12);
}
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr; gap: 32px; } }
.site-footer h4 {
  color: #FFFCF4;
  font-family: var(--sans);
  font-size: var(--fs-11);
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0 0 18px;
}
.site-footer a { color: #E8DCC8; text-decoration-color: rgba(232,220,200,.3); }
.site-footer a:hover { color: #FFFCF4; text-decoration-color: #FFFCF4; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer__bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: #8E7E6A;
  font-size: var(--fs-13);
}


/* ── 15. Scroll reveal ─────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  will-change: opacity, transform;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
.reveal:nth-child(2) { transition-delay: .08s; }
.reveal:nth-child(3) { transition-delay: .16s; }
.reveal:nth-child(4) { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}


/* ── 16. Utilities ─────────────────────────────────────── */

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.center { text-align: center; }
.mt-4 { margin-top: var(--s-4); }
.mt-6 { margin-top: var(--s-6); }
.mt-8 { margin-top: var(--s-8); }
.mt-10 { margin-top: var(--s-10); }
.mt-12 { margin-top: var(--s-12); }
.mt-16 { margin-top: var(--s-16); }

main { position: relative; z-index: 1; }
