/* Las Tres Rosas · Carta del cocotal
   Mughal green is the map ground, champagne the plan sheet,
   lime the survey lines, pink the single active state. */

@font-face {
  font-family: "Young Serif";
  src: url("../fonts/young-serif-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --green: #236130;
  --green-deep: #16351d;
  --ink: #1b2a1e;
  --ink-2: #4a5a4c;
  --paper: #f3e8cc;
  --paper-hi: #f8f2e2;
  --lime: #9abc05;
  --pink: #e53b94;
  --pink-ink: #b51a6e;
  --on-green: #f3e8cc;
  --on-green-2: #c9dca0;
  --line: rgba(35, 97, 48, 0.24);
  --line-strong: rgba(35, 97, 48, 0.55);
  --line-on-green: rgba(154, 188, 5, 0.32);

  --display: "Young Serif", "Georgia", serif;
  --text: "Figtree", "Segoe UI", system-ui, sans-serif;

  --step-0: 1.0625rem;
  --step-1: clamp(1.2rem, 1.05rem + 0.6vw, 1.45rem);
  --step-2: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
  --step-3: clamp(2.1rem, 1.4rem + 2.8vw, 3.7rem);
  --step-4: clamp(2.7rem, 1.5rem + 5vw, 6rem);

  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --space: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --wrap: 78rem;
  --radius: 4px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 4.5rem;

  /* topographic contours: one authored hill per green section, never tiled */
  --hill-a: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='900' viewBox='0 0 900 900' fill='none' stroke='%239abc05' stroke-width='1.3' opacity='.42'%3E%3Cpath d='M612 330C613 335 611 342 608 347C605 352 600 357 594 360C589 364 582 367 575 368C569 369 562 367 555 366C549 366 542 366 536 364C529 362 519 360 515 356C511 352 510 344 510 338C510 333 512 327 514 322C516 317 517 311 521 307C524 303 530 299 536 296C541 293 548 290 555 288C561 287 571 287 577 289C583 291 587 298 591 302C596 306 598 310 602 315C605 320 611 325 612 330Z'/%3E%3Cpath d='M675 330C675 342 668 355 661 366C654 377 644 388 633 395C621 402 606 406 592 408C578 410 564 409 550 409C535 409 517 413 503 409C489 405 473 395 466 385C458 375 460 359 460 347C459 335 458 324 460 313C463 302 467 290 474 280C482 271 494 262 506 255C518 248 533 239 548 237C562 236 581 241 594 247C606 253 614 265 624 273C635 281 648 286 656 296C665 305 674 318 675 330Z'/%3E%3Cpath d='M734 330C733 348 723 368 712 384C701 400 687 417 669 427C652 437 628 440 607 446C586 451 566 458 543 460C520 461 488 465 469 457C449 448 434 426 424 409C415 392 414 373 410 355C407 338 399 320 402 303C405 286 415 268 427 253C439 237 455 221 474 210C493 200 519 189 542 189C564 190 588 204 608 213C628 221 642 230 661 240C679 250 706 259 718 274C730 289 735 312 734 330Z'/%3E%3Cpath d='M787 330C785 355 777 381 763 402C749 423 725 442 702 456C679 471 652 477 624 488C596 498 566 517 535 519C504 520 464 512 439 497C415 482 404 451 390 429C376 407 362 388 354 365C346 342 339 317 343 293C347 270 362 246 378 224C394 203 414 176 440 164C467 152 506 149 537 151C567 154 593 171 621 179C650 187 681 187 707 199C733 212 766 230 779 252C792 274 790 305 787 330Z'/%3E%3Cpath d='M839 330C836 361 829 394 812 420C794 445 762 464 734 485C706 505 680 526 646 542C612 557 565 580 528 577C490 574 448 547 419 526C389 505 373 476 352 451C331 426 302 404 291 376C280 348 279 314 284 283C290 253 302 219 324 193C345 166 376 136 411 124C446 112 495 121 533 123C571 124 602 130 639 135C677 140 727 137 758 154C790 170 817 204 830 234C844 263 842 299 839 330Z'/%3E%3Cpath d='M893 330C890 366 875 404 855 435C835 467 803 491 773 519C742 547 713 588 672 605C630 622 567 630 522 621C477 611 438 573 402 549C365 525 332 506 303 479C274 452 240 421 227 387C214 352 216 310 223 273C230 235 241 190 269 161C297 131 347 107 391 95C434 84 483 94 529 91C574 87 617 72 664 75C710 79 770 88 805 112C840 136 859 182 873 218C888 255 896 294 893 330Z'/%3E%3Cpath d='M946 330C943 371 919 412 899 451C879 490 858 530 824 565C790 600 746 650 695 663C644 676 571 660 519 646C466 632 426 601 380 579C335 557 280 544 245 513C209 483 180 439 166 397C152 355 148 305 158 262C168 218 187 166 224 135C260 104 327 91 376 76C426 60 470 52 522 41C574 30 637 2 690 9C743 16 803 49 840 81C878 113 898 162 915 203C933 245 949 289 946 330Z'/%3E%3C/svg%3E");
  --hill-b: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='900' viewBox='0 0 900 900' fill='none' stroke='%239abc05' stroke-width='1.3' opacity='.42'%3E%3Cpath d='M395 560C396 567 393 575 390 581C386 588 379 594 373 598C366 602 357 606 349 607C341 609 332 606 324 605C316 605 308 605 299 602C291 600 279 598 274 593C269 587 268 578 268 571C267 564 270 557 273 550C275 544 276 537 281 531C285 526 292 521 299 518C306 514 315 509 323 508C332 506 343 506 351 509C359 511 364 520 369 525C374 531 378 536 382 541C386 547 394 553 395 560Z'/%3E%3Cpath d='M463 560C464 574 455 589 447 602C439 614 428 627 415 635C401 643 383 648 367 651C351 653 335 652 318 652C301 652 280 657 264 652C247 647 229 636 220 624C212 612 214 594 213 580C212 566 211 553 214 540C217 527 222 513 230 502C239 491 253 481 267 473C281 465 299 454 316 452C333 451 354 456 369 463C384 470 392 484 405 494C417 503 432 509 442 520C452 531 463 546 463 560Z'/%3E%3Cpath d='M527 560C526 581 515 603 503 622C491 640 474 659 454 670C434 682 407 685 383 691C359 697 337 705 311 707C284 709 249 714 226 704C204 694 187 669 176 650C165 630 164 609 160 589C156 569 148 549 151 530C154 510 166 490 179 472C193 455 210 436 232 424C254 412 284 400 309 400C334 400 362 417 384 427C407 436 424 447 445 458C466 470 496 479 510 496C524 513 528 539 527 560Z'/%3E%3Cpath d='M585 560C582 588 574 618 558 641C542 665 516 686 490 702C464 718 433 726 402 737C371 749 337 771 302 772C268 774 222 765 194 748C167 731 155 696 139 671C123 646 108 625 99 599C90 574 82 545 86 519C91 492 107 465 125 441C143 417 166 387 196 374C225 360 270 356 304 359C337 362 367 382 399 391C431 400 466 400 495 413C525 427 561 448 576 472C591 497 588 532 585 560Z'/%3E%3Cpath d='M642 560C638 595 630 631 611 660C591 689 555 710 524 733C493 755 464 779 426 796C388 813 336 839 294 836C251 833 205 802 172 779C139 755 122 723 98 695C74 667 43 642 30 611C17 580 16 542 22 508C28 474 42 436 66 407C90 377 125 343 164 330C203 317 257 326 300 328C342 330 376 336 418 342C460 348 516 345 551 363C587 382 617 420 632 453C647 485 645 525 642 560Z'/%3E%3Cpath d='M700 560C697 600 680 642 658 677C636 712 600 739 566 770C532 802 500 846 454 865C407 884 338 893 288 883C238 873 195 829 154 803C114 777 77 756 44 726C12 696 -25 661 -40 623C-55 585 -52 538 -44 496C-36 455 -24 405 7 372C38 339 94 312 142 299C190 286 245 298 295 294C346 290 394 273 445 277C496 281 564 291 602 318C641 344 662 396 678 436C694 476 703 520 700 560Z'/%3E%3C/svg%3E");
  --hill-c: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='900' viewBox='0 0 900 900' fill='none' stroke='%239abc05' stroke-width='1.3' opacity='.42'%3E%3Cpath d='M599 560C600 564 598 569 596 573C594 577 590 580 586 583C582 585 576 588 572 588C567 589 561 588 556 587C551 587 547 587 542 585C537 584 530 583 526 580C523 576 523 571 523 566C522 562 524 558 526 554C527 550 528 546 530 543C533 540 537 537 542 535C546 532 551 530 556 529C561 528 568 527 573 529C577 531 580 536 584 539C587 542 589 545 591 549C594 552 598 556 599 560Z'/%3E%3Cpath d='M656 560C657 570 650 581 644 590C638 599 631 608 621 614C611 620 598 623 587 625C575 627 564 626 551 626C539 626 524 630 512 626C500 623 487 615 481 606C475 597 477 584 476 574C475 564 474 555 476 546C478 536 482 526 488 518C495 510 505 503 515 497C525 491 538 484 550 482C562 481 578 485 588 490C599 495 605 505 614 512C622 519 634 523 641 531C648 539 655 550 656 560Z'/%3E%3Cpath d='M710 560C709 576 701 593 691 607C682 621 670 635 654 644C639 653 619 655 601 660C582 664 565 670 545 672C525 673 498 677 481 669C464 662 451 643 443 628C434 613 434 597 431 582C427 567 421 552 424 537C426 522 435 507 445 493C456 480 469 466 485 457C502 448 525 438 544 438C563 439 584 451 601 459C618 466 631 474 647 483C663 491 686 498 697 511C707 524 711 544 710 560Z'/%3E%3Cpath d='M759 560C757 582 751 605 738 623C726 642 705 658 685 671C664 683 641 689 616 698C592 707 565 724 538 726C511 727 475 720 454 707C433 693 423 666 411 647C398 627 387 610 380 591C373 571 366 548 370 528C373 507 386 486 400 467C414 448 432 425 455 415C478 404 513 401 539 403C566 406 589 421 614 428C639 435 666 435 689 446C712 456 740 473 752 492C764 511 761 538 759 560Z'/%3E%3Cpath d='M807 560C804 587 798 616 782 639C767 662 738 679 714 697C689 715 666 733 636 747C606 761 565 781 531 778C498 776 461 752 435 733C409 715 395 689 376 667C357 645 332 625 322 600C312 576 312 546 316 519C321 492 332 462 351 439C370 415 398 388 428 378C459 367 502 375 536 377C570 378 597 383 630 387C663 392 707 390 735 404C764 419 787 449 799 475C811 501 810 533 807 560Z'/%3E%3Cpath d='M856 560C853 592 840 625 822 653C805 681 776 703 749 728C722 753 696 789 659 804C622 819 566 827 526 818C486 810 452 776 420 755C387 734 357 717 332 693C306 669 276 641 264 610C252 580 255 543 261 509C267 476 276 436 301 410C326 383 371 362 410 352C448 341 492 350 532 347C572 344 611 330 652 333C693 337 747 345 778 366C809 388 825 429 838 461C851 493 859 528 856 560Z'/%3E%3Cpath d='M905 560C902 597 880 633 862 668C844 703 826 738 796 770C766 801 726 845 681 857C635 869 570 854 523 842C476 829 440 802 400 782C359 763 310 751 279 724C247 697 221 657 208 620C196 582 193 538 201 499C210 460 227 413 260 386C292 358 352 347 396 333C441 319 479 312 526 302C573 292 629 268 676 274C724 280 777 309 810 338C844 367 861 410 877 447C893 484 907 523 905 560Z'/%3E%3Cpath d='M949 560C948 602 929 643 913 686C896 729 887 783 850 818C814 852 750 885 695 892C640 899 575 871 521 859C467 848 419 841 370 823C321 806 261 787 225 755C189 722 168 673 154 629C140 585 129 532 142 489C155 446 194 400 233 370C273 340 332 331 379 309C426 287 465 253 518 238C571 224 644 210 697 223C750 236 796 282 834 317C871 352 901 391 920 432C940 472 951 518 949 560Z'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); scrollbar-color: var(--green) var(--paper); }
body {
  margin: 0;
  font-family: var(--text);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  caret-color: var(--pink-ink);
  accent-color: var(--green);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--lime); color: var(--green-deep); }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.08; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: 1.3; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible { outline: 3px solid var(--focus, var(--green-deep)); outline-offset: 3px; border-radius: 2px; }
.ground, .site-header, .hero, .site-footer, .lightbox { --focus: var(--lime); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ico { width: 1.25em; height: 1.25em; flex: none; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--lime); color: var(--green-deep); padding: 0.6rem 1rem; font-weight: 700; border-radius: var(--radius); }
.skip:focus { top: 1rem; }

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

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  min-height: 3rem; padding: 0.7rem 1.35rem;
  border: 1.5px solid transparent; border-radius: 999px;
  font-weight: 650; font-size: 1rem; line-height: 1.2; text-decoration: none;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-lime { background: var(--lime); color: var(--green-deep); }
.btn-lime:hover { background: #aed10a; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-deep); }
.btn-line-light { border-color: rgba(243, 232, 204, 0.75); color: var(--paper); }
.btn-line-light:hover { background: var(--paper); color: var(--green-deep); }
.btn-sm { min-height: 2.75rem; min-width: 2.75rem; padding: 0.45rem 1rem; font-size: 0.95rem; justify-content: center; }
.btn-lg { min-height: 3.5rem; padding: 0.9rem 1.7rem; font-size: 1.1rem; }
.btn-meta { font-weight: 450; opacity: 0.8; font-size: 0.875em; padding-left: 0.6em; border-left: 1px solid currentColor; }
.icon-btn {
  display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem;
  border: 1.5px solid currentColor; border-radius: 50%; background: transparent;
}

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 40; color: var(--on-green);
  transition: background-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.site-header.is-solid { background: var(--green-deep); box-shadow: 0 6px 24px -12px rgba(10, 25, 14, 0.6); }
.bar { display: flex; align-items: center; gap: 1.5rem; height: var(--header-h); padding-inline: var(--gutter); max-width: 90rem; margin-inline: auto; }
.brand img { height: 2.6rem; width: auto; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: clamp(0.9rem, 1.6vw, 1.8rem); }
.nav a { text-decoration: none; font-weight: 550; font-size: 0.97rem; padding-block: 0.4rem; border-bottom: 1.5px solid transparent; }
.nav a:hover, .nav a[aria-current="true"] { border-bottom-color: var(--lime); }
.bar-actions { display: flex; align-items: center; gap: 0.75rem; }
.lang { display: inline-flex; background: rgba(22, 53, 29, 0.45); border: 1.5px solid rgba(243, 232, 204, 0.55); border-radius: 999px; padding: 2px; }
.lang button { border: 0; background: none; color: var(--on-green); font-weight: 650; font-size: 0.85rem; padding: 0.3rem 0.65rem; border-radius: 999px; min-width: 2.75rem; min-height: 2.75rem; }
.lang button[aria-pressed="true"] { background: var(--paper); color: var(--green-deep); }
.menu-toggle { display: none; border: 0; background: none; color: inherit; width: 2.75rem; height: 2.75rem; place-items: center; }

@media (max-width: 1060px) {
  .menu-toggle { display: inline-grid; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto; background: var(--green-deep);
    padding: 1rem var(--gutter) 2rem; display: none; margin: 0;
    box-shadow: 0 18px 30px -18px rgba(10, 25, 14, 0.7);
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { display: block; padding: 0.85rem 0; font-size: 1.15rem; border-bottom: 1px solid var(--line-on-green); }
}
@media (max-width: 560px) {
  .bar { gap: 0.6rem; }
  .brand img { height: 2.2rem; }
  .bar-actions .btn-sm span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .bar-actions .btn-sm { padding: 0.45rem 0.7rem; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; align-items: end;
  color: var(--on-green); background: var(--green-deep); overflow: hidden; isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img, .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-video { opacity: 0; transition: opacity 1.2s var(--ease); }
.hero-video.is-playing { opacity: 1; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(22, 53, 29, 0.92) 0%, rgba(22, 53, 29, 0.55) 38%, rgba(22, 53, 29, 0) 70%),
    linear-gradient(to bottom, rgba(22, 53, 29, 0.82), rgba(22, 53, 29, 0.35) 14%, rgba(22, 53, 29, 0) 30%);
}
.hero-grid {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line-on-green) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-on-green) 1px, transparent 1px);
  background-size: clamp(5rem, 12.5vw, 11rem) clamp(5rem, 12.5vw, 11rem);
  background-position: var(--gutter) var(--header-h);
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 75%, transparent);
}
.hero-legend {
  position: relative; z-index: 2;
  width: min(100% - 2 * var(--gutter), var(--wrap)); margin: 0 auto;
  padding: calc(var(--header-h) + 3rem) 0 clamp(2rem, 6vh, 4rem);
}
.hero-plate {
  max-width: 44rem; padding: clamp(1.25rem, 3vw, 2.25rem);
  background: rgba(22, 53, 29, 0.78); border: 1px solid var(--line-on-green); border-radius: var(--radius);
  box-shadow: 0 30px 60px -40px rgba(5, 15, 8, 0.9);
}
.plate-foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; margin-top: 1.75rem; padding-top: 1rem;
  border-top: 1px solid var(--line-on-green); font-size: 0.85rem; font-weight: 600; color: var(--on-green-2); font-variant-numeric: tabular-nums;
}
.plate-foot .place { margin: 0; color: var(--paper); }
.plate-foot .coords { color: var(--lime); letter-spacing: 0.04em; }
.place { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--paper); }
.place .pin { color: var(--pink); width: 1.15rem; height: 1.15rem; }
.hero h1 { font-size: clamp(2.5rem, 1.4rem + 4vw, 4.6rem); max-width: 14ch; color: #fff; }
.hero-lede { margin-top: 1.4rem; max-width: 40rem; font-size: var(--step-1); line-height: 1.5; color: var(--paper); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2rem; }
.video-toggle {
  position: absolute; z-index: 3; left: var(--gutter); bottom: 1.1rem;
  width: 2.5rem; height: 2.5rem; display: grid; place-items: center;
  border: 1.5px solid rgba(243, 232, 204, 0.6); border-radius: 50%; background: rgba(22, 53, 29, 0.4); color: var(--paper);
}
.video-toggle[hidden] { display: none; }
.video-toggle .ico { width: 1rem; height: 1rem; }
@media (max-width: 640px) {
  .hero-legend { padding-bottom: 4rem; }
  .hero-plate { padding: 1.1rem 1.1rem 0.9rem; background: rgba(22, 53, 29, 0.72); }
  .hero-lede { display: none; }
  .hero h1 { font-size: 2.35rem; }
  .hero-actions { margin-top: 1.25rem; gap: 0.6rem; }
  .hero-actions .btn { min-height: 2.75rem; padding: 0.55rem 1rem; font-size: 0.95rem; }
  .plate-foot { margin-top: 1rem; padding-top: 0.75rem; font-size: 0.8rem; }
  .plate-foot > span:not(.coords):not(.place) { display: none; }
}

/* ---------- surfaces ---------- */
section { position: relative; padding-block: var(--space); }
.sheet { background: var(--paper); color: var(--ink); }
.sheet-alt { border-top: 1px solid var(--line); }
.ground { background-color: var(--green); color: var(--on-green); background-repeat: no-repeat; }
.process { background-image: var(--hill-a); background-position: right -260px top -200px; }
.gallery { background-image: var(--hill-b); background-position: left -360px bottom -380px; }
.contact { background-image: var(--hill-c); background-position: right -420px bottom -460px; }
.section-head { display: grid; gap: 1rem; max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head p { font-size: var(--step-1); line-height: 1.5; color: var(--ink-2); }
.ground .section-head p { color: var(--on-green-2); }
.ground h2 { color: #fff; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.about-text { display: grid; gap: 1.25rem; max-width: 36rem; }
.about-text h2 { margin-bottom: 0.5rem; }
.about-text > p { font-size: 1.1rem; }
.mission { margin: 1rem 0 0; padding: 1.5rem 0 0; border-top: 1px solid var(--line-strong); }
.mission p { font-family: var(--display); font-size: var(--step-1); line-height: 1.35; color: var(--green); }
.mission footer { margin-top: 0.75rem; font-size: 0.9rem; color: var(--ink-2); }
.about-photo { margin: 0; }
.about-photo img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; object-position: 40% 50%; border-radius: var(--radius); }
.about-photo figcaption { margin-top: 0.75rem; font-size: 0.92rem; color: var(--ink-2); }

.traverse-title { margin-top: clamp(4rem, 8vw, 6.5rem); margin-bottom: 1.75rem; font-size: var(--step-2); color: var(--green); }
.traverse { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.5rem; position: relative; }
.traverse::before {
  content: ""; position: absolute; left: 0; right: 0; top: 1.05rem; height: 0;
  border-top: 2px dashed var(--line-strong);
}
.traverse li { position: relative; padding-top: 3rem; }
.traverse li::before {
  content: ""; position: absolute; top: 0.45rem; left: 0; width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: var(--paper); border: 2.5px solid var(--green);
}
.traverse li.is-now::before { background: var(--pink); border-color: var(--pink); box-shadow: 0 0 0 5px rgba(229, 59, 148, 0.18); }
.station { display: block; font-family: var(--display); font-size: var(--step-2); color: var(--green); line-height: 1; margin-bottom: 0.6rem; font-variant-numeric: lining-nums; }
.is-now .station { color: var(--pink-ink); }
.traverse p { font-size: 0.98rem; color: var(--ink-2); }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .traverse { grid-template-columns: 1fr; gap: 0; }
  .traverse::before { left: 0.55rem; right: auto; top: 0.5rem; bottom: 0.5rem; height: auto; border-top: 0; border-left: 2px dashed var(--line-strong); }
  .traverse li { padding: 0 0 1.75rem 2.5rem; }
  .traverse li::before { top: 0.2rem; }
}

/* ---------- process ---------- */
.route { display: grid; grid-template-columns: 1fr 1fr 1.45fr 1.45fr 1.3fr; gap: clamp(1rem, 2vw, 1.75rem); position: relative; }
.route::before {
  content: ""; position: absolute; left: 1.4rem; right: 1.4rem; top: 1.4rem; height: 0;
  border-top: 2px dashed var(--lime); opacity: 0.85;
}
.leg { position: relative; display: flex; flex-direction: column; gap: 0.7rem; }
.mark {
  position: relative; display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border-radius: 50%;
  background: var(--lime); color: var(--green-deep); font-weight: 750; font-size: 1.1rem; margin-bottom: 0.6rem;
  box-shadow: 0 0 0 6px var(--green);
}
.leg h3 { color: #fff; }
.leg p { color: var(--on-green-2); font-size: 0.98rem; }
.leg picture { margin-top: auto; padding-top: 0.6rem; }
.leg picture img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.record {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 0.55rem 0; border-top: 1px solid var(--line-on-green); border-bottom: 1px solid var(--line-on-green);
  font-size: 0.86rem;
}
.record span { white-space: nowrap; }
.record b { color: var(--paper); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.quality-note { margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: 1.25rem; border-top: 1px solid var(--line-on-green); color: var(--on-green-2); font-size: 0.98rem; }
@media (max-width: 1000px) {
  .route { grid-template-columns: 1fr 1fr; }
  .route::before { display: none; }
  .leg-photo { grid-column: span 1; }
}
@media (max-width: 640px) {
  .route { grid-template-columns: 1fr; gap: 2.25rem; }
}

/* ---------- whole coconut map ---------- */
.whole-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.whole-head { grid-column: 1 / -1; margin-bottom: 0; }
.coco-map { margin: 0; max-width: 40rem; width: 100%; justify-self: center; }
.coco-map svg { width: 100%; height: auto; overflow: visible; }
.ring { transition: fill 0.45s var(--ease), stroke 0.45s var(--ease); stroke-width: 2; }
.ring-estopa { fill: var(--green); stroke: var(--green-deep); }
.ring-hueso { fill: var(--green-deep); stroke: var(--green-deep); }
.ring-pulpa { fill: var(--paper-hi); stroke: var(--green); }
.ring-agua { fill: var(--paper); stroke: var(--line-strong); stroke-dasharray: 3 5; }
.fibers { fill: none; stroke: var(--green-deep); stroke-width: 1.4; opacity: 0.55; pointer-events: none; transition: stroke 0.45s var(--ease); }
.hatch-line { stroke: var(--pink); stroke-width: 3; }
.coco-map[data-active="estopa"] .ring-estopa,
.coco-map[data-active="hueso"] .ring-hueso,
.coco-map[data-active="pulpa"] .ring-pulpa { fill: var(--pink); stroke: var(--pink-ink); }
.coco-map[data-active="estopa"] .fibers { stroke: var(--pink-ink); }
.coco-map[data-active="copra"] .ring-pulpa { fill: url(#hatch); stroke: var(--pink-ink); }
.coco-map[data-active="aceite"] .ring-pulpa { stroke: var(--pink-ink); stroke-width: 4; }
.callouts path, .callouts circle { fill: none; stroke: var(--green); stroke-width: 1.5; }
.callouts circle { fill: var(--paper); }
.callouts .mk { fill: var(--paper-hi); stroke: var(--green); stroke-width: 2; }
.callouts text { font-family: var(--text); font-size: 17px; font-weight: 700; letter-spacing: 0.1em; fill: var(--green); }
.coco-map[data-active="estopa"] .co-estopa *, .coco-map[data-active="hueso"] .co-hueso *,
.coco-map[data-active="pulpa"] .co-pulpa *, .coco-map[data-active="copra"] .co-copra *,
.coco-map[data-active="aceite"] .co-aceite * { stroke: var(--pink-ink); }
.coco-map[data-active="estopa"] .co-estopa text, .coco-map[data-active="hueso"] .co-hueso text,
.coco-map[data-active="pulpa"] .co-pulpa text, .coco-map[data-active="copra"] .co-copra text,
.coco-map[data-active="aceite"] .co-aceite text { fill: var(--pink-ink); stroke: none; }
.coco-map[data-active="copra"] .co-copra .mk, .coco-map[data-active="aceite"] .co-aceite .mk { fill: var(--pink); }
.map-pin circle:first-child { fill: var(--green); }
.pin-ring { fill: none; stroke: var(--green); stroke-width: 1.5; opacity: 0.5; }
.legend-group { font-size: 0.85rem; font-weight: 700; color: var(--ink-2); margin: 0.6rem 0 0.1rem; }
.legend-group:first-child { margin-top: 0; }

.legend { display: grid; gap: 0.35rem; align-self: center; }
.key {
  display: grid; grid-template-columns: 1.6rem 1fr; column-gap: 0.9rem; align-items: center; text-align: left;
  padding: 0.75rem 1rem 0.75rem 0.75rem; border: 1.5px solid transparent; border-radius: var(--radius);
  background: transparent; color: var(--ink); transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.key:hover { background: var(--paper-hi); border-color: var(--line); }
.key[aria-pressed="true"] { background: var(--paper-hi); border-color: var(--pink-ink); }
.swatch { grid-row: span 2; width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 2px solid var(--green-deep); }
.sw-estopa { background: var(--green); }
.sw-hueso { background: var(--green-deep); }
.sw-pulpa { background: var(--paper-hi); }
.sw-copra { background: repeating-linear-gradient(45deg, var(--paper-hi) 0 3px, var(--green) 3px 5px); }
.sw-aceite { background: var(--paper); border-style: dashed; }
.key[aria-pressed="true"] .swatch { border-color: var(--pink-ink); box-shadow: 0 0 0 3px rgba(229, 59, 148, 0.25); }
.key-name { font-family: var(--display); font-size: var(--step-1); line-height: 1.3; }
.key[aria-pressed="true"] .key-name { color: var(--pink-ink); }
.key-sci { font-size: 0.88rem; color: var(--ink-2); }
.layer-out { margin-top: 1rem; padding: 1.25rem 0 0; border-top: 1px solid var(--line-strong); min-height: 9.5rem; }
.layer-desc { color: var(--ink-2); margin-bottom: 0.9rem; }
.layer-products { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.layer-products a {
  display: inline-flex; align-items: center; gap: 0.45rem; text-decoration: none; font-weight: 650;
  padding: 0.5rem 0.95rem; border-radius: 999px; background: var(--green); color: #fff;
}
.layer-products a:hover { background: var(--green-deep); }
@media (max-width: 860px) {
  .whole-grid { grid-template-columns: 1fr; }
  .coco-map { max-width: 22rem; }
  .callouts { display: none; }
}

/* ---------- products ---------- */
.catalog { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(2rem, 3vw, 2.75rem) clamp(1.25rem, 2.4vw, 2.25rem); }
.item-wide { grid-column: span 2; }
.item-btn {
  width: 100%; height: 100%; display: flex; flex-direction: column; text-align: left;
  padding: 0; border: 0; border-top: 2px solid var(--green); border-radius: 0; background: transparent;
  color: var(--ink); transition: border-color 0.3s var(--ease);
}
.item-row { grid-column: 1 / -1; }
.item-row .item-btn { flex-direction: row; }
.item-row .item-photo { width: 40%; height: auto; min-height: 15rem; }
.item-row .item-body { border-top: 0; align-content: center; padding: 1rem 0 1rem 2rem; }
.item-btn:hover { border-top-color: var(--pink-ink); }
.item-photo { display: flex; align-items: center; justify-content: center; overflow: hidden; height: 15rem; padding: 1.25rem; }
.item-wide .item-photo { height: 19rem; }
.item-photo img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.5s var(--ease); }
.item-photo-full { padding: 0; background: none; margin-top: 0.75rem; border-radius: var(--radius); overflow: hidden; }
.item-photo-full img { object-fit: cover; }
.item-btn:hover .item-photo img { transform: translateY(-4px); }
.item-btn:hover .item-photo-full img { transform: scale(1.03); }
.item-body { display: grid; gap: 0.35rem; padding: 1rem 0 0.5rem; border-top: 1px solid var(--line); flex: 1; align-content: start; }
.item-name { font-family: var(--display); font-size: var(--step-1); line-height: 1.3; color: var(--green); }
.item-spec {
  display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem;
  padding: 0.4rem 0; border-top: 1px solid var(--line); font-size: 0.88rem; color: var(--ink-2);
}
.item-spec:last-of-type { border-bottom: 1px solid var(--line); }
.item-spec b { font-weight: 650; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.item-layer { display: inline-flex; align-items: center; gap: 0.45rem; }
.item-layer .swatch { width: 0.85rem; height: 0.85rem; border-width: 1.5px; grid-row: auto; }
.item-use { font-size: 0.95rem; color: var(--ink-2); margin-bottom: 0.35rem; }
.item-pres { font-size: 0.9rem; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--ink); }
.item-cta { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.5rem; font-weight: 700; color: var(--green); font-size: 0.95rem; }
.item-btn:hover .item-cta, .item-btn:focus-visible .item-cta { color: var(--pink-ink); }
.terms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: clamp(2.5rem, 5vw, 3.5rem) 0 0; border-top: 1.5px solid var(--green); }
.terms div { padding: 1rem 1rem 0 0; }
.terms dt { font-size: 0.88rem; color: var(--ink-2); }
.terms dd { margin: 0.2rem 0 0; font-weight: 650; }
@media (max-width: 1000px) {
  .catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .item-wide { grid-column: span 1; }
  .item-wide .item-photo, .item-photo { height: 13rem; }
}
@media (max-width: 520px) {
  .item-row .item-btn { flex-direction: column; }
  .item-row .item-photo { width: 100%; min-height: 0; height: 9.5rem; }
  .item-row .item-body { border-top: 1px solid var(--line); padding: 0.85rem 0; }
  .catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; }
  .item-spec { flex-wrap: wrap; gap: 0 0.5rem; font-size: 0.8rem; }
  .item-spec b { text-align: left; }
  .item-photo, .item-wide .item-photo { height: 9.5rem; padding: 0.75rem; }
  .item-photo-full { padding: 0; }
  .item-body { padding: 0.85rem 0 0.4rem; }
  .item-use { display: none; }
  .terms { grid-template-columns: 1fr; }
}

/* ---------- gallery ---------- */
.frames { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: clamp(11rem, 18vw, 16rem); gap: clamp(0.6rem, 1.2vw, 1rem); grid-auto-flow: dense; }
.frame-wide { grid-column: span 2; }
.frame-tall { grid-row: span 2; }
.frame a { position: relative; display: block; height: 100%; overflow: hidden; border-radius: var(--radius); text-decoration: none; }
.frame picture, .frame img { width: 100%; height: 100%; }
.frame img { object-fit: cover; transition: transform 0.7s var(--ease), filter 0.5s var(--ease); }
.frame a:hover img { transform: scale(1.04); }
.frame-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem 0.9rem 0.75rem; font-size: 0.9rem; font-weight: 550; color: #fff;
  background: linear-gradient(to top, rgba(22, 53, 29, 0.85), rgba(22, 53, 29, 0));
}
@media (max-width: 760px) {
  .frames { grid-template-columns: 1fr 1fr; grid-auto-rows: 9.5rem; }
  .frame-tall { grid-row: span 1; }
}

/* ---------- catalog band ---------- */
.catalog-band { padding-block: clamp(3rem, 6vw, 4.5rem); border-bottom: 1px solid var(--line); }
.catalog-row { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.catalog-row h2 { font-size: var(--step-2); color: var(--green); }
.catalog-row p { margin-top: 0.4rem; color: var(--ink-2); max-width: 36rem; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.contact-info { display: grid; gap: 1.5rem; justify-items: start; }
.contact-lede { font-size: var(--step-1); line-height: 1.5; color: var(--on-green-2); max-width: 32rem; }
.channels { display: grid; gap: 0.9rem; margin-top: 0.75rem; width: 100%; }
.channels li { display: flex; gap: 0.85rem; align-items: flex-start; padding-bottom: 0.5rem; border-bottom: 1px solid var(--line-on-green); overflow-wrap: anywhere; }
.channels .ico { color: var(--lime); margin-top: 0.7rem; }
.channels a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--paper); font-weight: 550; }
.channels li > span:not(.phones) { padding-top: 0.6rem; }
.channels li > span:not(.phones) a { min-height: 0; display: inline; }
.phones { display: grid; }
.form {
  display: grid; gap: 1.1rem; padding: clamp(1.5rem, 3vw, 2.5rem); background: var(--paper-hi); color: var(--ink);
  border-radius: var(--radius); box-shadow: 0 24px 50px -30px rgba(10, 25, 14, 0.8); --focus: var(--green-deep);
}
.form h3 { font-size: var(--step-2); color: var(--green); }
.field { display: grid; gap: 0.35rem; }
.field label { font-weight: 650; font-size: 0.95rem; }
.opt { font-weight: 400; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.75rem 0.9rem; border: 1.5px solid var(--line-strong); border-radius: var(--radius);
  background: #fff; color: var(--ink); transition: border-color 0.2s var(--ease);
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--green); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--green); outline-offset: 1px; border-color: var(--green); }
.field textarea { resize: vertical; min-height: 7rem; }
.field ::placeholder { color: #6b776d; }
.field [aria-invalid="true"] { border-color: var(--pink-ink); }
.err { color: var(--pink-ink); font-size: 0.9rem; font-weight: 600; }
.form .btn { justify-self: start; }
.form-status { padding: 0.9rem 1rem; border: 1px solid var(--line-strong); border-radius: var(--radius); background: #fff; font-size: 0.92rem; display: grid; gap: 0.6rem; }
.form-status[hidden] { display: none; }
.form-status .btn { min-height: 2.5rem; padding: 0.45rem 1rem; font-size: 0.92rem; }
.form-note { font-size: 0.88rem; color: var(--ink-2); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { background: var(--green-deep); color: var(--on-green); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.footer-grid { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.footer-grid > img { width: 6.5rem; height: auto; }
.legal { display: grid; gap: 0.3rem; font-size: 0.95rem; color: var(--on-green-2); }
.legal strong { color: var(--paper); font-weight: 650; }
.social { display: flex; gap: 0.6rem; }
.social a { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 1.5px solid var(--line-on-green); border-radius: 50%; color: var(--paper); }
.social a:hover { border-color: var(--lime); color: var(--lime); }
.copy a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.copy { grid-column: 1 / -1; padding-top: 1.5rem; border-top: 1px solid var(--line-on-green); font-size: 0.88rem; color: var(--on-green-2); }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: clamp(1rem, 2.5vw, 1.75rem); bottom: clamp(1rem, 2.5vw, 1.75rem); z-index: 35;
  display: grid; place-items: center; width: 3.6rem; height: 3.6rem; border-radius: 50%;
  background: var(--lime); color: var(--green-deep);
  box-shadow: 0 10px 24px -8px rgba(10, 25, 14, 0.55);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.wa-float .ico { width: 1.8rem; height: 1.8rem; }
.wa-float:hover { transform: translateY(-2px); }
.wa-float.is-hidden { opacity: 0; transform: translateY(1rem); pointer-events: none; }

/* ---------- drawer ---------- */
dialog { border: 0; padding: 0; }
.drawer {
  position: fixed; inset: 0 0 0 auto; margin: 0; width: min(36rem, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh;
  background: var(--paper-hi); color: var(--ink); overflow-y: auto; overscroll-behavior: contain;
  box-shadow: -24px 0 60px -30px rgba(10, 25, 14, 0.8);
}
.drawer::backdrop { background: rgba(22, 53, 29, 0.6); }
.drawer[open] { animation: slide-in 0.45s var(--ease); }
@keyframes slide-in { from { transform: translateX(100%); } }
.drawer-inner { position: relative; padding: clamp(1.25rem, 4vw, 2.5rem); display: grid; gap: 0.9rem; }
.drawer-close { position: sticky; top: 0; justify-self: end; background: var(--paper-hi); color: var(--green); z-index: 2; margin-bottom: -3.65rem; }
.d-photo { display: flex; align-items: center; justify-content: center; overflow: hidden; height: 17rem; border-bottom: 1.5px solid var(--green); padding-bottom: 0.75rem; }
.d-photo img { width: 100%; height: 100%; object-fit: contain; }
.d-photo.is-full img { object-fit: cover; border-radius: var(--radius); }
.drawer h2 { font-size: var(--step-3); color: var(--green); margin-top: 0.5rem; }
.drawer h3 { font-size: 1.15rem; color: var(--green); margin-top: 1rem; }
.d-desc { color: var(--ink-2); }
.d-pres { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.d-pres li { padding: 0.35rem 0.75rem; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 0.92rem; font-variant-numeric: tabular-nums; }
.d-pres li.group { border: 0; padding-left: 0; font-weight: 700; width: 100%; padding-bottom: 0; }
.variants { display: grid; gap: 0.6rem; }
.variants li { display: grid; grid-template-columns: 4.5rem 1fr; gap: 0.9rem; align-items: center; padding-bottom: 0.6rem; border-bottom: 1px solid var(--line); }
.variants.no-img li { grid-template-columns: 1fr; }
.variants .no-thumb { width: 4.5rem; }
.variants img { width: 4.5rem; height: 3.6rem; object-fit: contain; }
.variants b { display: block; font-family: var(--display); font-weight: 400; color: var(--green); }
.variants span { font-size: 0.92rem; color: var(--ink-2); }
.spec { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.spec th, .spec td { padding: 0.55rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { text-align: left; font-weight: 500; color: var(--ink-2); padding-right: 1rem; }
.spec td { text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; }
.d-terms { font-size: 0.92rem; color: var(--ink-2); margin-top: 0.5rem; }
.d-actions {
  position: sticky; bottom: 0; z-index: 2; display: flex; flex-wrap: wrap; gap: 0.6rem;
  margin: 0.75rem calc(-1 * clamp(1.25rem, 4vw, 2.5rem)) calc(-1 * clamp(1.25rem, 4vw, 2.5rem));
  padding: 0.9rem clamp(1.25rem, 4vw, 2.5rem) max(0.9rem, env(safe-area-inset-bottom));
  background: var(--paper-hi); border-top: 1px solid var(--line-strong);
  box-shadow: 0 -14px 24px -18px rgba(22, 53, 29, 0.45);
}
.d-docs { display: contents; }
.btn-doc { border-color: var(--green); color: var(--green); background: transparent; }
.btn-doc:hover { background: var(--green); color: #fff; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0;
  background: #0f2113; color: var(--paper);
}
.lightbox[open] { display: grid; place-items: center; animation: fade 0.3s var(--ease); }
.lightbox::backdrop { background: transparent; }
@keyframes fade { from { opacity: 0; } }
.lightbox figure { margin: 0; display: grid; gap: 0.75rem; justify-items: center; padding: 4.5rem 4.5rem 3.5rem; }
#lb-slot { display: contents; }
.lightbox img { max-width: min(100%, 1600px); max-height: calc(100dvh - 9rem); width: auto; height: auto; object-fit: contain; border-radius: var(--radius); }
.lightbox figcaption { font-size: 0.98rem; text-align: center; }
.lightbox .icon-btn { position: absolute; color: var(--paper); background: rgba(15, 33, 19, 0.6); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; translate: 0 -50%; }
.lb-next { right: 1rem; top: 50%; translate: 0 -50%; }
.lb-count { position: absolute; top: 1.6rem; left: 1.25rem; font-size: 0.9rem; font-variant-numeric: tabular-nums; color: var(--on-green-2); }
@media (max-width: 640px) {
  .lightbox figure { padding: 4rem 0.75rem 5rem; }
  .lb-prev, .lb-next { top: auto; bottom: 1rem; translate: none; }
}

/* ---------- authored motion: survey lines draw in once ---------- */
.js .draw .callouts path:not(.mk) { stroke-dasharray: 400; stroke-dashoffset: 400; }
.js .draw .fibers { stroke-dasharray: 60; stroke-dashoffset: 60; }
.js .draw.is-drawn .callouts path:not(.mk) { stroke-dashoffset: 0; transition: stroke-dashoffset 1.8s var(--ease) 0.3s, stroke 0.45s var(--ease); }
.js .draw.is-drawn .fibers { stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s var(--ease), stroke 0.45s var(--ease); }
.js .draw-line::before { transform-origin: left; transform: scaleX(0); transition: transform 1.6s var(--ease); }
.js .draw-line.is-drawn::before { transform: scaleX(1); }
@media (max-width: 900px) {
  .js .traverse.draw-line::before { transform-origin: top; transform: scaleY(0); }
  .js .traverse.draw-line.is-drawn::before { transform: scaleY(1); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .drawer[open], .lightbox[open] { animation: none; }
  .btn:hover, .wa-float:hover, .item-btn:hover .item-photo img, .item-btn:hover .item-photo-full img, .frame a:hover img { transform: none; }
  .hero-video { transition: none; }
  .js .draw .callouts path, .js .draw .fibers { stroke-dasharray: none; stroke-dashoffset: 0; }
  .js .draw-line::before { transform: none !important; }
}
