:root {
  color-scheme: dark;
  --metal: #282c2e;
  --metal-soft: #303436;
  --paper: #f2f3f1;
  --ink: #242829;
  --muted: #c2c7c9;
  --line: #ffffff36;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.045' filter='url(%23g)'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1rem; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; font-size: 1rem; background: var(--metal); background-image: var(--grain); color: #fff; }
body:has(dialog[open]) { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a:focus-visible, button:focus-visible, select:focus-visible { outline: 3px solid #e0ba73; outline-offset: 5px; }
img { max-width: 100%; }
[hidden] { display: none !important; }
header { position: relative; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; padding: 1.75rem 5%; min-height: 108px; }
.brand { display: block; flex: 0 0 auto; font-size: 1.7rem; font-weight: 800; letter-spacing: -.055em; line-height: 1.1; }
.brand small { display: block; margin-top: .6rem; font-size: .75rem; font-weight: 400; letter-spacing: .15em; line-height: 1.3; }
.header-right { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: clamp(1rem, 3vw, 2.75rem); margin-left: auto; }
.header-contact { font-size: .95rem; white-space: nowrap; }
.language-picker { display: flex; align-items: center; gap: .6rem; }
.language-picker > span { color: var(--muted); font-size: .875rem; text-transform: uppercase; letter-spacing: .065em; }
.language-picker select { color: inherit; background: transparent; border: 1px solid currentColor; border-radius: 2rem; padding: .65rem .75rem; min-width: 4.35rem; min-height: 44px; cursor: pointer; font-size: .875rem; }
.language-picker option { background: var(--paper); color: var(--ink); }
.menu-button { display: flex; align-items: center; gap: .8rem; min-height: 44px; padding: .6rem 0; border: 0; background: none; color: inherit; }
.lines { display: grid; gap: 7px; width: 30px; }
.lines i { height: 1px; background: currentColor; }
.eyebrow { margin: 0 0 1.35rem; font-size: .8rem; line-height: 1.6; text-transform: uppercase; letter-spacing: .12em; }
.curated-panel { display: grid; grid-template-columns: minmax(0, 37fr) minmax(0, 63fr); position: relative; margin: 0; border-bottom: 1px solid #ffffff0c; }
.curated-panel > img { grid-column: 2; grid-row: 1; display: block; width: 100%; height: clamp(460px, 67svh, 740px); object-fit: contain; object-position: center; background: transparent; }
.panel-content { grid-column: 1; grid-row: 1; align-self: center; min-width: 0; padding: 2.5rem clamp(1.5rem, 3vw, 4rem); }
.panel-content .eyebrow { color: var(--muted); }
.panel-content h1, .panel-content h2 { margin: 0 0 1.4rem; font-size: clamp(2.1rem, 3.55vw, 3.9rem); font-weight: 400; letter-spacing: -.045em; line-height: 1.09; overflow-wrap: break-word; }
.panel-content > p:not(.eyebrow) { font-size: 1rem; line-height: 1.65; color: var(--muted); margin: 0; }
.project-link { display: inline-flex; align-items: center; gap: 1rem; margin-top: 2rem; padding: 0; color: inherit; border: 0; background: none; text-align: left; line-height: 1.5; }
.circle, .project-arrow { flex: none; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--paper); color: var(--ink); transition: background .2s, transform .2s; }
.circle { width: 58px; height: 58px; }
.circle svg { width: 30px; height: 30px; }
.project-arrow { width: 40px; height: 40px; }
.project-arrow svg { width: 24px; height: 24px; }
.project-link:hover .circle, .all-projects:hover .project-arrow { background: #d5dcdf; transform: translateX(3px); }
.panel-bottom { grid-column: 1 / -1; display: flex; align-items: center; gap: 1.1rem; padding: 1rem max(100px, 6vw) 1.25rem 5%; min-height: 96px; }
.panel-bottom > span { order: 1; color: var(--muted); font-size: .8rem; white-space: nowrap; letter-spacing: .1em; }
.next { order: 0; flex: none; display: grid; place-items: center; width: 66px; height: 66px; border: 1px solid #d6dcdeaa; border-radius: 50%; font-size: 2.25rem; line-height: 1; background: transparent; transition: background .2s; }
.next:hover { background: #ffffff15; }
.all-projects { order: 2; display: inline-flex; align-items: center; gap: .85rem; margin-left: auto; max-width: calc(100% - 100px); font-size: clamp(1.1rem, 2vw, 1.65rem); line-height: 1.35; font-weight: 600; }
.all-projects-label { text-decoration: underline; text-underline-offset: .25em; text-decoration-thickness: 1px; overflow-wrap: break-word; }
footer { color-scheme: light; background: var(--paper); color: var(--ink); padding: clamp(3rem, 7vw, 6rem) 7% calc(110px + env(safe-area-inset-bottom, 0px)); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 4rem; padding-bottom: 3.5rem; }
.footer-top h2 { font-size: clamp(2.1rem, 4vw, 3.9rem); font-weight: 400; letter-spacing: -.045em; line-height: 1.1; margin: 0 0 1.5rem; overflow-wrap: break-word; }
.footer-top p { max-width: 30rem; line-height: 1.7; color: #62696c; }
.contact-info { min-width: 0; }
.phone { display: inline-block; font-size: clamp(1.5rem, 2.5vw, 2.1rem); margin: .7rem 0 1.2rem; overflow-wrap: anywhere; }
.wa { display: inline-block; font-size: 1rem; line-height: 1.6; text-decoration: underline; text-underline-offset: .3em; overflow-wrap: break-word; }
.legal-info { border-top: 1px solid #c8cdcf; padding-top: 1.5rem; margin-bottom: 2.5rem; max-width: 30rem; }
.legal-info .eyebrow { margin-bottom: .75rem; }
.legal-info p:last-child { font-size: .875rem; line-height: 1.8; color: #62696c; margin: 0; }
.legal-info strong { color: var(--ink); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; border-top: 1px solid #c8cdcf; padding-top: 1.5rem; font-size: .875rem; color: #62696c; }
.footer-bottom a { text-decoration: underline; text-underline-offset: .25em; }
dialog { overscroll-behavior: contain; }
.menu-dialog { width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0 0 6rem; border: 0; color: white; background: var(--metal); background-image: var(--grain); }
.menu-dialog::backdrop { background: var(--metal); }
.dialog-top { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.75rem 5%; }
.close { display: grid; place-items: center; flex: none; width: 48px; height: 48px; line-height: 1; font-size: 1.6rem; border: 1px solid currentColor; border-radius: 50%; background: transparent; color: inherit; }
.menu-links { padding: 5vh 9%; display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; }
.menu-links a { font-size: clamp(2.4rem, 6vw, 5.5rem); line-height: 1.2; letter-spacing: -.035em; overflow-wrap: break-word; }
.menu-links small { display: inline-block; font-size: .85rem; margin-right: 1rem; letter-spacing: 0; color: var(--muted); }
.menu-links a:hover { color: var(--muted); }
.menu-end { margin: 2.5rem 9%; line-height: 1.6; color: var(--muted); }
.detail { color-scheme: light; width: min(1020px, calc(100% - 32px)); max-height: 90dvh; overflow-y: auto; border: 0; padding: 1.5rem 2rem 6.5rem; background: var(--paper); color: var(--ink); }
.detail::backdrop { background: #101416cb; backdrop-filter: blur(4px); }
.detail-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.detail-top .eyebrow { margin: 0; min-width: 0; }
.detail h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 400; line-height: 1.2; letter-spacing: -.025em; margin: 1rem 0 1.5rem; overflow-wrap: break-word; }
.media-stage { display: flex; align-items: center; justify-content: center; background: #e1e5e6; }
.detail-photo, .detail-video { display: block; width: 100%; height: clamp(240px, 50dvh, 650px); object-fit: contain; background: transparent; }
.media-controls { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: .75rem; margin-top: .85rem; }
.media-controls button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #a1adb2; border-radius: 50%; background: transparent; color: var(--ink); font-size: 1.4rem; }
.media-controls button:disabled { opacity: .3; }
.detail .media-caption { margin: 0; font-size: .875rem; line-height: 1.5; text-align: center; overflow-wrap: break-word; }
.photo-thumbs { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 1.5rem; }
.photo-thumbs:empty { display: none; }
.photo-thumbs button { position: relative; width: 64px; height: 76px; border: 2px solid transparent; padding: 2px; background: transparent; }
.photo-thumbs button[aria-pressed="true"] { border-color: var(--ink); }
.photo-thumbs img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo-thumbs span { position: absolute; inset: 0; display: grid; place-items: center; color: white; background: #0004; }
.detail .description { max-width: 50rem; font-size: 1rem; line-height: 1.7; }
.detail .items { border-top: 1px solid #c8cdcf; padding-top: 1rem; font-size: .875rem; line-height: 1.6; color: #62696c; }
.detail .wa { margin-top: 1rem; padding-right: 4rem; }
.grid-page { color-scheme: light; background: var(--paper); color: var(--ink); }
.grid-page .language-picker > span { color: #62696c; }
.grid-main { padding: 3rem 5% 5rem; }
.grid-main > .eyebrow { color: #62696c; }
.grid-main h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 400; letter-spacing: -.045em; margin: 0 0 1.25rem; }
.grid-intro { font-size: 1rem; line-height: 1.7; max-width: 44rem; color: #62696c; margin: 0 0 3rem; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem 1.5rem; }
.tile { width: 100%; min-width: 0; border: 0; padding: 0; background: transparent; color: var(--ink); text-align: left; }
.tile-image { position: relative; background: #e1e5e6; }
.tile-image img { display: block; width: 100%; height: 380px; object-fit: contain; transition: filter .2s; }
.tile:hover img { filter: brightness(.92); }
.tile-image > span { position: absolute; bottom: .75rem; right: .75rem; padding: .35rem .5rem; font-size: .8rem; line-height: 1.4; color: white; background: #242829e8; }
.tile .tile-category { font-size: .8rem; line-height: 1.5; text-transform: uppercase; letter-spacing: .075em; color: #62696c; margin: 1.1rem 0 .5rem; }
.tile h2 { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; font-size: 1.45rem; font-weight: 400; line-height: 1.3; margin: 0; overflow-wrap: break-word; }
.tile h2 > span { flex: none; }
.whatsapp-float { position: fixed; right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 100; display: grid; place-items: center; width: 60px; height: 60px; border: 2px solid #ffffffe0; border-radius: 50%; background: #128c4a; color: #fff; box-shadow: 0 5px 22px #0004; transition: background .2s, transform .2s; }
.whatsapp-float svg { width: 31px; height: 31px; }
.whatsapp-float:hover { background: #0b713b; transform: translateY(-2px); }
.whatsapp-float:focus-visible { outline: 3px solid #e0ba73; outline-offset: 4px; }
@media (min-width: 701px) and (max-width: 980px) {
  .header-contact { display: none; }
  .header-right { gap: 1.25rem; }
  .curated-panel { grid-template-columns: minmax(0, 40fr) minmax(0, 60fr); }
  .panel-content { padding: 2rem 1.5rem; }
  .panel-content h1, .panel-content h2 { font-size: 2.15rem; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  header, .dialog-top { padding: 1.25rem 5%; min-height: 88px; gap: .8rem; }
  .brand { font-size: 1.5rem; }
  .brand small { font-size: .75rem; letter-spacing: .07em; }
  .header-right { gap: .75rem; flex-wrap: nowrap; }
  .header-contact, .language-picker > span, .menu-button > span:first-child { display: none; }
  .menu-button { min-width: 44px; justify-content: flex-end; }
  .language-picker select { min-width: 4rem; }
  .curated-panel { grid-template-columns: 1fr; }
  .curated-panel > img { grid-column: 1; grid-row: 1; height: clamp(300px, 52svh, 550px); }
  .panel-content { grid-row: 2; padding: 1.5rem 6%; }
  .panel-content .eyebrow { margin-bottom: .75rem; }
  .panel-content h1, .panel-content h2 { font-size: clamp(2rem, 7.8vw, 2.6rem); line-height: 1.1; margin-bottom: 1rem; }
  .project-link { margin-top: 1.25rem; }
  .circle { width: 52px; height: 52px; }
  .panel-bottom { grid-row: 3; gap: 1rem; padding: .25rem 88px 1.5rem 6%; min-height: 84px; }
  .panel-bottom > span { display: none; }
  .next { width: 56px; height: 56px; font-size: 2rem; }
  .all-projects { max-width: calc(100% - 72px); gap: .5rem; font-size: 1.1rem; }
  .project-arrow { width: 32px; height: 32px; }
  .footer-top { grid-template-columns: 1fr; gap: 1.5rem; padding-bottom: 2.5rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .detail { width: calc(100% - 20px); padding: 1rem 1rem 6rem; max-height: 92dvh; }
  .detail-photo, .detail-video { height: clamp(220px, 44dvh, 550px); }
  .detail .wa { padding-right: 3rem; }
  .photo-thumbs button { width: 56px; height: 68px; }
  .grid-main { padding: 2rem 6% 3.5rem; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1rem; }
  .tile-image img { height: 300px; }
  .tile h2 { font-size: 1.2rem; }
  .whatsapp-float { width: 56px; height: 56px; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 480px) {
  header { flex-wrap: wrap; }
  .brand { font-size: 1.35rem; }
  .brand small { display: none; }
  .header-right { gap: .6rem; }
  .language-picker select { min-width: 3.75rem; padding: .6rem; }
  .project-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .tile-image img { height: 400px; }
  .panel-bottom .project-arrow { display: none; }
  .all-projects { max-width: calc(100% - 68px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
