/* La Finca de Orotina: the site's system on the project's palette.
   Same fonts, grid, radius and type scale as site.css; only the colour tokens change. */
:root {
  --sky: #6ccfec;
  --leaf: #5b7f67;
  --clay: #c9585c;
  --sand: #eac781;

  --paper: #f4f1e8;
  --paper-2: #e9e4d6;
  --ink: #1c2822;
  --ink-2: #3f4c45;
  --ink-3: #6b766f;
  --line: #d8d3c4;
  --accent: #c9585c;
  --accent-ink: #fff;

  --band: #1c2822;           /* dark bands: ink-green instead of black */
  --band-text: #f1ede2;
  --band-muted: #b9c2b9;
}
img { height: auto; }
.f-cover img, .f-cover video { width: 100%; height: auto; }
::selection { background: var(--sand); color: var(--ink); }

/* hero band */
.f-hero { background: var(--sky); border-radius: var(--radius); overflow: hidden; position: relative;
  display: grid; place-items: center; padding: clamp(40px, 8vw, 120px) var(--gutter); }
.f-hero::before { content: ""; position: absolute; width: 46%; aspect-ratio: 1; border-radius: 50%; background: var(--sand); top: -22%; right: -10%; }
.f-print { position: relative; margin: 0; background: #fff; padding: 12px 12px 0; box-shadow: 0 30px 60px -24px rgba(0,0,0,.35);
  transform: rotate(-2.5deg); width: min(640px, 100%); }
.f-print img { width: 100%; aspect-ratio: 526 / 238; object-fit: cover; }
.f-print figcaption { padding: 14px 2px 16px; }

/* tags in the four colours */
.f-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; list-style: none; padding: 0; }
.f-tags li { font: 12.5px/1 var(--font-mono); padding: 9px 12px; border-radius: 999px; background: var(--paper-2); }
.f-tags li:nth-child(4n+1) { background: var(--sand); }
.f-tags li:nth-child(4n+2) { background: #cfe0d3; }
.f-tags li:nth-child(4n+3) { background: #efc9c6; }
.f-tags li:nth-child(4n+4) { background: #c7ecf7; }

/* scattered prints */
.f-prints { position: relative; height: clamp(420px, 44vw, 600px); margin-top: clamp(24px, 3vw, 40px); }
.f-prints figure { position: absolute; margin: 0; background: #fff; padding: 8px 8px 30px; box-shadow: 0 18px 36px -18px rgba(0,0,0,.35); }
.f-prints img { width: 100%; height: 100%; object-fit: cover; }
.f-prints figcaption { position: absolute; left: 10px; bottom: 9px; }

/* film strip */
.f-film { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); padding: clamp(40px, 5vw, 72px) 0; border-bottom: 1px solid var(--line); }
.f-film figure { margin: 0; }
.f-film .f-frame { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); aspect-ratio: 4 / 3; }
.f-film img { width: 100%; height: 100%; object-fit: cover; }
.f-film .tc { position: absolute; top: 8px; right: 8px; color: #fff; background: rgba(0,0,0,.45); padding: 3px 7px; border-radius: 3px; }
.f-film figcaption { margin-top: 10px; }
.f-stats { display: flex; gap: clamp(24px, 4vw, 56px); flex-wrap: wrap; margin-top: 28px; }
.f-stats b { display: block; font-size: clamp(36px, 4vw, 56px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }

/* dark bands (map + model), built like .lab */
.f-band { background: var(--band); color: var(--band-text); padding: clamp(56px, 7vw, 104px) 0; margin-top: clamp(40px, 5vw, 72px); }
.f-band--leaf { background: var(--leaf); }
.f-band .mono { color: var(--band-muted); }
.f-band__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(24px, 4vw, 64px); margin-bottom: clamp(28px, 4vw, 48px); }
.f-band__title { font-size: clamp(32px, 4vw, 56px); letter-spacing: -0.035em; font-weight: 600; margin: 0; line-height: 1; }
.f-band__head p { margin: 0 0 14px; max-width: 60ch; color: var(--band-muted); font-size: clamp(17px, 1.3vw, 19px); }
.f-band--leaf .f-band__head p, .f-band--leaf .mono { color: #e3ebdf; }

/* sticky map */
.f-map { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); }
.f-map__stage { position: sticky; top: max(80px, calc(50vh - 42vh)); align-self: start; }
.f-map__frame { position: relative; width: 100%; max-height: 84vh; aspect-ratio: 962 / 1354; margin: 0 auto; border-radius: var(--radius); overflow: hidden; background: #0f1713; }
.f-map__frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 700ms var(--ease-out), filter 700ms var(--ease-out); }
.f-map__frame svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.f-layer { opacity: 0; }
.f-layer.on { opacity: 1; }
.f-layer.dim { filter: saturate(.6) brightness(.82); }
.f-cams g, .f-notes g { opacity: 0; transition: opacity 500ms var(--ease-out); }
.f-cams.on g, .f-notes.on g { opacity: 1; }
.f-thumbs .f-thumb { position: absolute; width: 20%; background: #fff; padding: 4px; box-shadow: 0 10px 24px -8px rgba(0,0,0,.6);
  opacity: 0; transform: translateY(8px) rotate(var(--r, 0deg)); transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); }
.f-thumbs.on .f-thumb { opacity: 1; transform: rotate(var(--r, 0deg)); }
.f-thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.f-map__tag { position: absolute; left: 12px; top: 12px; background: rgba(15, 23, 19, .78); color: #fff; padding: 7px 10px; border-radius: 3px; }
.f-steps { padding-bottom: 28vh; }
.f-step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; max-width: 470px; opacity: .3; transition: opacity 500ms var(--ease-out); }
.f-step.is-active { opacity: 1; }
.f-step h3 { font-size: clamp(26px, 2.6vw, 36px); letter-spacing: -0.03em; font-weight: 600; line-height: 1.05; margin: 10px 0 16px; }
.f-step p { margin: 0 0 12px; color: var(--band-muted); font-size: clamp(16px, 1.2vw, 18px); }
.f-key { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; }
.f-key i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.f-note { border-left: 2px solid var(--sand); padding-left: 14px; font-size: 14.5px !important; }

/* corrections */
.f-corr { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding: clamp(40px, 5vw, 72px) 0; border-bottom: 1px solid var(--line); }
.f-corr:nth-of-type(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
.f-corr:nth-of-type(even) .f-corr__visual { order: 2; }
.f-corr h3 { font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -0.03em; font-weight: 600; line-height: 1.1; margin: 8px 0 18px; }
.f-chat { display: flex; flex-direction: column; gap: 10px; }
.f-bubble { max-width: 94%; padding: 12px 16px; border-radius: 14px; font-size: 15.5px; line-height: 1.45; margin: 0; }
.f-bubble .mono { display: block; margin-bottom: 4px; }
.f-bubble--me { background: var(--ink); color: var(--paper); align-self: flex-end; border-bottom-right-radius: 4px; }
.f-bubble--me .mono { color: var(--band-muted); }
.f-bubble--ai { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.f-ref { display: flex; gap: 12px; align-items: center; margin-top: 18px; }
.f-ref img { width: 96px; aspect-ratio: 4 / 5; object-fit: cover; border: 4px solid #fff; box-shadow: 0 8px 18px -8px rgba(0,0,0,.4); }
.f-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.f-pair figure { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; }
.f-pair img { width: 100%; height: 100%; object-fit: cover; }

/* before / after */
.f-ba { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3; background: var(--paper-2); --pos: 50%; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.f-ba--wide { aspect-ratio: 16 / 9; }
.f-ba img, .f-ba video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.f-ba .after { clip-path: inset(0 0 0 var(--pos)); }
.f-ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: #fff; transform: translateX(-1px); pointer-events: none; }
.f-ba__handle::after { content: "↔"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; font-size: 18px; box-shadow: 0 6px 16px rgba(0,0,0,.3); }
.f-ba input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.f-tag { position: absolute; top: 12px; padding: 6px 9px; border-radius: 3px; background: rgba(255,255,255,.9); color: var(--ink) !important; pointer-events: none; }
.f-tag--l { left: 12px; }
.f-tag--r { right: 12px; background: var(--ink); color: #fff !important; }

/* model + finale */
.f-render { border-radius: var(--radius); overflow: hidden; }
.f-render img { width: 100%; height: auto; }
.f-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(241, 237, 226, .3); }
.f-facts b { display: block; font-size: clamp(26px, 2.8vw, 40px); font-weight: 600; letter-spacing: -0.035em; line-height: 1; margin-bottom: 6px; }
.f-finale { padding: clamp(56px, 7vw, 104px) 0 clamp(40px, 5vw, 72px); border-bottom: 1px solid var(--line); }
.f-finale__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 16px; }
.f-btn { font: 12.5px/1 var(--font-mono); color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; cursor: pointer; }
.f-btn:hover { border-color: var(--ink); }

/* still growing */
.f-growing { background: var(--sand); border-radius: var(--radius); padding: clamp(28px, 4vw, 56px); margin: clamp(40px, 5vw, 72px) 0 0;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(24px, 4vw, 64px); }
.f-growing h2 { font-size: clamp(28px, 3vw, 44px); letter-spacing: -0.035em; font-weight: 600; line-height: 1; margin: 0; }
.f-growing p { margin: 0 0 1em; max-width: 60ch; font-size: clamp(17px, 1.3vw, 19px); }
.f-growing p:last-child { margin-bottom: 0; }
.f-growing .mono { color: var(--ink-2); }

@media (max-width: 900px) {
  .f-band__head, .f-corr, .f-corr:nth-of-type(even), .f-growing { grid-template-columns: minmax(0, 1fr); }
  .f-corr:nth-of-type(even) .f-corr__visual { order: 0; }
  .f-film { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .f-film figure:nth-child(n+5) { display: none; }
  .f-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .f-map { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .f-map__stage { top: 72px; z-index: 1; }
  .f-map__frame { width: min(100%, calc(54vh * .71)); max-height: 54vh; }
  .f-steps { position: relative; z-index: 2; padding-bottom: 30vh; }
  .f-step { min-height: 105vh; justify-content: flex-end; opacity: 1; max-width: none; padding-bottom: 3vh; }
  .f-step > div { background: rgba(28, 40, 34, .95); padding: 16px 18px; border-radius: var(--radius); border: 1px solid rgba(255,255,255,.08); }
  .f-step h3 { font-size: 24px; margin: 6px 0 8px; }
  .f-step p { font-size: 15px; }
  .f-thumbs .f-thumb { width: 24%; }
}
@media (max-width: 600px) { .f-tag { font-size: 10px !important; padding: 5px 7px; top: 8px; } .f-tag--l { left: 8px; } .f-tag--r { right: 8px; } }
@media (prefers-reduced-motion: reduce) { .f-layer, .f-step, .f-cams g, .f-notes g, .f-thumbs .f-thumb { transition: none; } }
