/* ============================================================
   AIRE — Site 2
   Direction: full-bleed, fullscreen-hero editorial studio site
   (pinned reference: dsgninterior.se), rendered only in AIRE's
   institutional colors (MIV AIRE.pdf) and Helvetica.
   ============================================================ */

:root{
  /* ---- brand (MIV AIRE.pdf) ---- */
  --terracota:#d4a992;
  --terracota-ink:#8a5c41;         /* terracota, darkened, for text-on-paper use */
  --verde:#516457;
  --verde-deep:#1a211c;            /* theme ground — dark mode: verde stepped near-black */
  --verde-deep-2:#222b24;          /* theme panel — one step from the ground */
  --paper:#f4efe7;                 /* warm off-white — the About page's reading zone, fixed in both themes */
  --paper-dim:#e9e1d4;

  --ink-on-dark:#f3efe9;           /* theme ink — main text on the theme ground */
  --ink-on-dark-dim:#c9cfc6;       /* theme ink, secondary — tinted from verde, never gray */
  --ink-on-paper:#20261f;          /* fixed dark ink — always dark, for use on paper or on the accent */
  --ink-on-paper-dim:#5a6456;      /* fixed dark ink, secondary */

  /* always-light text/controls for content sitting directly on a photo:
     every hero and page-hero banner carries its own fixed dark veil
     regardless of theme, so text on it never flips with the theme. */
  --on-photo:#f3efe9;
  --on-photo-dim:#c9cfc6;

  /* hairline for form fields and icon-button outlines on a themed (not
     photo) surface — light in dark mode, a soft dark line in light mode */
  --line:rgba(243,239,233,.3);

  /* subtle tonal wash for panels sitting on a themed (not paper) surface —
     keeps a visible step without a border, in either theme */
  --panel-wash:rgba(243,239,233,.06);

  --accent:var(--terracota);

  /* focus ring — kept separate from --accent so it can be darkened for
     contrast in light mode without changing the brand accent's color
     everywhere else (buttons, dots, hover states on photos) */
  --focus-ring:var(--terracota);

  --font:-apple-system,"Helvetica Neue",Helvetica,Arial,sans-serif;

  --ease:cubic-bezier(.16,.84,.26,1);
  --container:1360px;
  --gutter:clamp(20px,4vw,64px);
}

:root[data-theme="light"]{
  --verde-deep:#ffffff;
  --verde-deep-2:#f4efe6;
  --ink-on-dark:#20261f;
  --ink-on-dark-dim:#5a6456;
  --line:rgba(32,38,31,.2);
  --panel-wash:rgba(32,38,31,.045);
  /* plain terracota is only 2.1:1 on white — fails WCAG's 3:1 minimum for
     a focus indicator, so the light theme gets the darkened, text-safe
     variant (5.7:1 on white) instead */
  --focus-ring:var(--terracota-ink);
}

*,*::before,*::after{box-sizing:border-box;}
html{-webkit-text-size-adjust:100%;}
html,body{margin:0;padding:0;}
body{
  font-family:var(--font);
  background:var(--verde-deep);
  color:var(--ink-on-dark);
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
  transition:background-color .35s var(--ease),color .35s var(--ease);
}
img{max-width:100%;display:block;}
a{color:inherit;text-decoration:none;}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer;padding:0;}
ul{list-style:none;margin:0;padding:0;}
h1,h2,h3,h4,h5,p{margin:0;}

::selection{background:var(--terracota);color:var(--ink-on-paper);}

:focus-visible{outline:2px solid var(--focus-ring);outline-offset:3px;}

.visually-hidden{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
  clip:rect(0,0,0,0);white-space:nowrap;border:0;
}

.skip-link{
  position:absolute;top:-100px;left:16px;z-index:200;
  background:var(--verde-deep);color:var(--ink-on-dark);
  padding:14px 22px;font-size:.95rem;
  border:2px solid var(--focus-ring);
  transition:top .2s var(--ease);
}
.skip-link:focus{top:16px;}

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

/* ============================================================
   Header
   ============================================================ */
.site-header{
  position:fixed;top:0;left:0;right:0;z-index:75;
  padding:clamp(20px,3vw,34px) var(--gutter);
  display:flex;align-items:center;justify-content:space-between;
  transition:background-color .5s var(--ease),padding .4s var(--ease);
}
.site-header.is-solid{
  background:var(--verde-deep);
  padding-top:16px;padding-bottom:16px;
}
.brand{display:inline-flex;align-items:center;}
.brand__mark{height:28px;width:auto;transition:filter .4s var(--ease);}
:root[data-theme="light"] .site-header.is-solid .brand__mark{filter:invert(1);}
:root[data-theme="light"] .menu-open .brand__mark{filter:invert(1);}

.header-actions{display:flex;align-items:center;gap:20px;}

.theme-toggle{
  display:inline-flex;align-items:center;justify-content:center;
  width:34px;height:34px;
  color:var(--on-photo);
  transition:color .4s var(--ease);
}
.site-header.is-solid .theme-toggle{color:var(--ink-on-dark);}
.theme-toggle svg{width:19px;height:19px;}
.theme-toggle:hover{color:var(--accent);}
.theme-toggle .icon-moon{display:none;}
:root[data-theme="light"] .theme-toggle .icon-sun{display:none;}
:root[data-theme="light"] .theme-toggle .icon-moon{display:inline-flex;}

.menu-btn{
  display:inline-flex;align-items:center;gap:.6em;
  font-size:.95rem;letter-spacing:.01em;color:var(--on-photo);
  transition:color .4s var(--ease);
}
.site-header.is-solid .menu-btn{color:var(--ink-on-dark);}
.menu-btn__label--close{display:none;}
.menu-open .menu-btn__label--open{display:none;}
.menu-open .menu-btn__label--close{display:inline;}
.menu-open .menu-btn,.menu-open .theme-toggle{color:var(--ink-on-dark);}

/* ============================================================
   Overlay menu
   ============================================================ */
.site-menu{
  position:fixed;inset:0;z-index:70;
  background:var(--verde-deep);
  visibility:hidden;opacity:0;
  transition:opacity .5s var(--ease),visibility 0s linear .5s;
  overflow-y:auto;
}
.menu-open .site-menu{visibility:visible;opacity:1;transition:opacity .5s var(--ease);}

.site-menu__inner{
  min-height:100%;
  display:flex;flex-direction:column;justify-content:center;
  padding:140px var(--gutter) 80px;
  max-width:var(--container);margin:0 auto;
}
.site-menu__list a,
.site-menu__parent{
  display:flex;align-items:center;justify-content:space-between;
  width:100%;
  padding:14px 0;
  font-size:clamp(2rem,6vw,4.25rem);
  font-weight:300;
  letter-spacing:-.01em;
  color:var(--ink-on-dark);
  transition:color .35s var(--ease),padding-left .35s var(--ease);
}
.site-menu__list a:hover,
.site-menu__parent:hover,
.site-menu__parent[aria-expanded="true"]{
  color:var(--accent);
}
.site-menu__list a:focus-visible{color:var(--focus-ring);}
.site-menu__parent-icon{
  font-size:1.5rem;font-weight:300;
  transform:rotate(0deg);transition:transform .35s var(--ease);
}
.site-menu__parent[aria-expanded="true"] .site-menu__parent-icon{transform:rotate(45deg);}

.site-menu__sub{
  max-height:0;overflow:hidden;
  transition:max-height .45s var(--ease);
}
.has-sub.is-open .site-menu__sub{max-height:600px;}
.site-menu__sub li{padding-left:clamp(0px,2vw,24px);}
.site-menu__sub a{
  font-size:clamp(1.15rem,2.4vw,1.65rem);
  font-weight:400;
  padding:12px 0;
  color:var(--ink-on-dark-dim);
}
.site-menu__sub a:hover{color:var(--accent);}
.site-menu__sub a:focus-visible{color:var(--focus-ring);}

.site-menu__foot{
  margin-top:56px;
  display:flex;flex-wrap:wrap;gap:8px 28px;
  font-size:.95rem;color:var(--ink-on-dark-dim);
}
.site-menu__foot a:hover{color:var(--accent);}
.site-menu__foot span{font-weight:300;font-size:.9em;}

/* ============================================================
   Buttons / links
   ============================================================ */
.btn{
  display:inline-flex;align-items:center;gap:.6em;
  padding:14px 30px;
  border:1px solid currentColor;
  font-size:.95rem;letter-spacing:.01em;
  color:var(--ink-on-dark);
  transition:background-color .35s var(--ease),color .35s var(--ease);
}
.btn:hover,.btn:focus-visible{background:var(--ink-on-dark);color:var(--verde-deep);}
.btn--on-paper{color:var(--ink-on-paper);}
.btn--on-paper:hover{background:var(--ink-on-paper);color:var(--paper);}
.btn--solid{background:var(--accent);border-color:var(--accent);color:var(--ink-on-paper);}
.btn--solid:hover{background:transparent;color:var(--ink-on-dark);}

.text-link{
  display:inline-flex;align-items:center;gap:10px;
  font-size:1.05rem;
  border-bottom:1px solid currentColor;padding-bottom:3px;
}
.text-link svg{width:18px;height:18px;transition:transform .35s var(--ease);}
.text-link:hover svg{transform:translateX(5px);}

/* ============================================================
   Home — fullscreen hero slider
   ============================================================ */
.home-hero{
  position:relative;height:100vh;height:100svh;height:100dvh;min-height:560px;
  overflow:hidden;
  /* hands the whole swipe gesture to the JS carousel — without this,
     iOS Safari can claim it as native page scroll on the first touchmove
     and then ignore preventDefault() for the rest of that gesture */
  touch-action:none;
}
.home-hero__slide{
  position:absolute;inset:0;
  z-index:1;
  will-change:clip-path;
}
.home-hero__slide.is-active{z-index:2;}
.home-hero__media{
  position:absolute;left:0;right:0;top:-8%;height:116%;
  background-size:cover;background-position:center;
  transform:scale(1);
  transition:transform 12s linear;
}
.home-hero__slide.is-active .home-hero__media{transform:scale(1.06);}
.home-hero__veil{
  position:absolute;inset:0;
  /* the old middle stop (.08) left a near-transparent band right where
     the title sits on a two-line headline — raised the whole curve's
     floor so busy photos (art walls, patterned textiles) never wash the
     text out, text-shadow on the title/sub below is the second layer */
  background:
    linear-gradient(0deg,rgba(10,13,11,.84) 0%,rgba(10,13,11,.55) 28%,rgba(10,13,11,.32) 52%,rgba(10,13,11,.45) 78%,rgba(10,13,11,.6) 100%),
    linear-gradient(100deg,rgba(10,13,11,.68) 0%,rgba(10,13,11,.22) 52%,rgba(10,13,11,0) 76%);
}
.home-hero__copy{
  position:relative;z-index:3;height:100%;
  display:flex;flex-direction:column;justify-content:flex-end;
  padding:0 var(--gutter) clamp(120px,14vw,180px);
  max-width:var(--container);margin:0 auto;
}
.home-hero__title{
  font-size:clamp(2.75rem,8vw,7.25rem);
  font-weight:300;letter-spacing:-.02em;line-height:.98;
  max-width:21ch;
  color:var(--on-photo);
  text-shadow:0 6px 28px rgba(0,0,0,.4),0 1px 4px rgba(0,0,0,.35);
  opacity:0;transform:translateY(28px);
  transition:opacity .9s var(--ease) .25s,transform .9s var(--ease) .25s;
}
.home-hero__slide.is-active .home-hero__title{opacity:1;transform:translateY(0);}
.home-hero__sub{
  margin-top:22px;max-width:46ch;
  font-size:clamp(1rem,1.5vw,1.2rem);line-height:1.55;
  color:var(--on-photo-dim);
  text-shadow:0 2px 14px rgba(0,0,0,.45);
  opacity:0;transform:translateY(20px);
  transition:opacity .9s var(--ease) .4s,transform .9s var(--ease) .4s;
}
.home-hero__slide.is-active .home-hero__sub{opacity:1;transform:translateY(0);}
.home-hero__actions{
  margin-top:34px;
  opacity:0;transform:translateY(16px);
  transition:opacity .9s var(--ease) .55s,transform .9s var(--ease) .55s;
}
.home-hero__slide.is-active .home-hero__actions{opacity:1;transform:translateY(0);}

.home-hero__rail{
  position:absolute;z-index:4;right:var(--gutter);top:50%;transform:translateY(-50%);
  display:flex;flex-direction:column;align-items:center;
}
.home-hero__dots{display:flex;flex-direction:column;gap:6px;}
.home-hero__dot{
  width:22px;height:22px;display:flex;align-items:center;justify-content:center;
  position:relative;
}
.home-hero__dot::after{
  content:"";width:8px;height:8px;border-radius:50%;
  border:1px solid rgba(243,239,233,.5);background:transparent;
  transition:border-color .3s var(--ease),background-color .3s var(--ease),transform .3s var(--ease);
}
.home-hero__dot.is-active::after{border-color:var(--accent);background:var(--accent);transform:scale(1.15);}

.home-hero__scroll{
  position:absolute;z-index:4;left:var(--gutter);bottom:clamp(36px,5vw,56px);
  font-size:.85rem;letter-spacing:.02em;color:var(--on-photo-dim);
  display:flex;align-items:center;gap:10px;
}
.home-hero__scroll::before{
  content:"";width:22px;height:1px;background:var(--on-photo-dim);
}

.home-hero__actions .btn{color:var(--on-photo);}
.home-hero__actions .btn:hover,.home-hero__actions .btn:focus-visible{background:var(--on-photo);color:var(--ink-on-paper);}

@media(prefers-reduced-motion:reduce){
  .home-hero__media,.home-hero__title,.home-hero__sub,.home-hero__actions{transition:none;}
}

/* ============================================================
   Inner-page hero banner (page-hero)
   ============================================================ */
.page-hero{
  position:relative;height:72vh;min-height:460px;
  display:flex;align-items:flex-end;
  overflow:hidden;
}
.page-hero__media{
  position:absolute;inset:0;background-size:cover;background-position:center;
}
.page-hero__veil{
  position:absolute;inset:0;
  background:
    linear-gradient(0deg,rgba(10,13,11,.85) 0%,rgba(10,13,11,.35) 40%,rgba(10,13,11,.06) 62%,rgba(10,13,11,.46) 100%),
    linear-gradient(100deg,rgba(10,13,11,.5) 0%,rgba(10,13,11,0) 40%);
}
.page-hero__content{
  position:relative;z-index:2;width:100%;
  max-width:var(--container);margin:0 auto;
  padding:0 var(--gutter) clamp(56px,8vw,96px);
}
.page-hero__crumb{
  display:flex;width:fit-content;align-items:center;gap:8px;
  font-size:.9rem;color:var(--on-photo-dim);margin-bottom:22px;
}
.page-hero__crumb svg{width:16px;height:16px;}
.page-hero__crumb:hover{color:var(--accent);}
.page-hero__meta{
  display:block;margin-bottom:10px;font-size:1.05rem;color:var(--on-photo-dim);
}
.page-hero h1{
  font-size:clamp(2.5rem,6.5vw,5.5rem);
  font-weight:300;letter-spacing:-.02em;line-height:1.02;
  max-width:18ch;
  color:var(--on-photo);
}

/* ---- page-hero--brand: no photo, flat brand-colored ground
   instead (used by política de privacidade). Light theme: salmon/
   terracota ground with dark ink; dark theme: deep green ground
   with light ink — ink flips with var(--ink-on-dark), which is
   already theme-aware. ---- */
.page-hero--brand{background:var(--verde-deep);}
.page-hero--brand .page-hero__crumb,
.page-hero--brand .page-hero__meta{color:var(--ink-on-dark-dim);}
.page-hero--brand h1{color:var(--ink-on-dark);}
:root[data-theme="light"] .page-hero--brand{background:var(--terracota);}

/* ============================================================
   Sections
   ============================================================ */
.section{padding:clamp(80px,10vw,150px) 0;}
.section--paper{background:var(--paper);color:var(--ink-on-paper);}
.section--deep2{background:var(--verde-deep-2);}

.section-head{
  display:flex;flex-wrap:wrap;gap:24px 60px;
  justify-content:space-between;align-items:flex-end;
  margin-bottom:clamp(44px,6vw,72px);
}
.section-title{
  font-size:clamp(1.9rem,3.6vw,3.1rem);
  font-weight:300;letter-spacing:-.015em;line-height:1.08;
}
.section-lede{max-width:40ch;font-size:1.1rem;line-height:1.6;color:var(--ink-on-dark-dim);}
.section--paper .section-lede{color:var(--ink-on-paper-dim);}

.reveal{opacity:0;transform:translateY(26px);transition:opacity .8s var(--ease),transform .8s var(--ease);}
.reveal.is-visible{opacity:1;transform:translateY(0);}
.reveal-d1.is-visible{transition-delay:.08s;}
.reveal-d2.is-visible{transition-delay:.16s;}
.reveal-d3.is-visible{transition-delay:.24s;}
@media(prefers-reduced-motion:reduce){.reveal{opacity:1;transform:none;transition:none;}}

/* ---- about page ---- */
.about-grid{display:grid;grid-template-columns:1fr;gap:56px;}
@media(min-width:880px){.about-grid{grid-template-columns:.85fr 1.15fr;gap:72px;align-items:start;}}
.about-photo{position:relative;}
.about-photo img{width:100%;height:auto;}
.about-photo__tag{
  position:absolute;left:0;bottom:-18px;
  background:var(--accent);color:var(--ink-on-paper);
  padding:10px 20px;font-size:.9rem;letter-spacing:.02em;
}
.founders{margin-top:46px;display:flex;flex-direction:column;gap:22px;}
.founder{background:var(--paper-dim);padding:16px 20px;}
.founder__name{font-size:1.1rem;font-weight:500;color:var(--ink-on-paper);}
.founder span{display:block;margin-top:4px;font-size:.92rem;color:var(--ink-on-paper-dim);}

.about-copy p{font-size:1.1rem;line-height:1.7;margin-bottom:22px;max-width:62ch;}
.about-copy p.pull{
  font-size:clamp(1.3rem,2vw,1.65rem);font-weight:300;line-height:1.4;
  margin:40px 0;max-width:30ch;color:var(--ink-on-paper);
}
.about-copy strong{font-weight:600;}

.legal-list{
  list-style:disc;margin:-6px 0 22px;padding-left:1.3em;max-width:62ch;
}
.legal-list li{font-size:1.1rem;line-height:1.7;margin-bottom:8px;}

.pillars{display:grid;grid-template-columns:1fr;gap:10px;}
@media(min-width:760px){.pillars{grid-template-columns:repeat(3,1fr);}}
.pillar{
  position:relative;isolation:isolate;overflow:hidden;
  background:var(--panel-wash);
  padding:clamp(44px,5vw,64px) clamp(28px,3vw,40px);
}
.pillar::before{
  content:"";position:absolute;inset:0;z-index:-1;
  background:var(--accent);
  transform:translateY(102%);
  transition:transform .6s var(--ease);
}
.pillar:hover::before,.pillar:active::before{transform:translateY(0);}
.pillar h3{
  font-size:clamp(1.45rem,2vw,1.9rem);font-weight:500;letter-spacing:-.01em;
  line-height:1.16;margin-bottom:16px;max-width:18ch;
  transition:color .45s var(--ease);
}
.pillar:hover h3,.pillar:active h3{color:var(--ink-on-paper);}
.pillar p{
  font-size:1.02rem;line-height:1.65;color:var(--ink-on-dark-dim);max-width:32ch;
  transition:color .45s var(--ease);
}
.pillar:hover p,.pillar:active p{color:var(--ink-on-paper);opacity:.85;}
@media(prefers-reduced-motion:reduce){.pillar::before{transition:none;}}

.quote{
  font-size:clamp(1.5rem,3vw,2.5rem);font-weight:300;line-height:1.35;
  max-width:22ch;letter-spacing:-.01em;
}
.quote__meta{margin-top:26px;font-size:.98rem;color:var(--ink-on-dark-dim);}

/* ============================================================
   Project grid / tiles (listing pages)
   ============================================================ */
.filters{display:flex;flex-wrap:wrap;gap:10px 22px;}
.filters button{
  font-size:.98rem;color:var(--ink-on-dark-dim);padding:6px 0;
  border-bottom:1px solid transparent;
}
.filters button.is-active,.filters button:hover{color:var(--ink-on-dark);border-color:var(--accent);}

.project-grid{
  display:grid;grid-template-columns:1fr;
  gap:clamp(40px,5vw,4px);
  padding:0 var(--gutter);
}
@media(min-width:760px){.project-grid{padding:0;}}
@media(min-width:760px){
  .project-grid{grid-template-columns:repeat(6,1fr);gap:4px;}
  .project-tile{grid-column:span 3;}
  .project-tile--wide{grid-column:span 4;}
  .project-tile--narrow{grid-column:span 2;}
}
.project-tile{position:relative;display:block;overflow:hidden;background:var(--verde-deep-2);}
.project-tile__frame{position:relative;aspect-ratio:4/5;overflow:hidden;}
.project-tile--wide .project-tile__frame{aspect-ratio:16/10;}
.project-tile__frame img{
  width:100%;height:100%;object-fit:cover;
  transition:transform .8s var(--ease);
}
.project-tile:hover .project-tile__frame img{transform:scale(1.06);}
.project-tile__veil{
  position:absolute;inset:0;
  background:linear-gradient(0deg,rgba(14,18,15,.72) 0%,rgba(14,18,15,0) 48%);
}
.project-tile__meta{
  position:absolute;left:0;right:0;bottom:0;padding:22px 26px;
}
.project-tile__kicker{display:block;font-size:.85rem;color:var(--on-photo-dim);margin-bottom:4px;}
.project-tile__title{font-size:clamp(1.2rem,1.6vw,1.6rem);font-weight:400;color:var(--on-photo);}
.project-tile__soon{
  position:absolute;top:18px;right:18px;z-index:2;
  font-size:.8rem;padding:6px 14px;background:rgba(14,18,15,.72);color:var(--on-photo-dim);
}
.project-tile--soon .project-tile__frame img{filter:grayscale(.3) brightness(.7);}

/* ---- project detail ---- */
.project-meta{
  display:grid;grid-template-columns:1fr;gap:24px;
  margin-bottom:clamp(50px,6vw,80px);
  padding:32px clamp(24px,3vw,40px);background:var(--verde-deep-2);
}
@media(min-width:480px){.project-meta{grid-template-columns:repeat(2,1fr);gap:28px;}}
@media(min-width:680px){.project-meta{grid-template-columns:repeat(4,1fr);}}
.project-meta__label{font-size:.85rem;color:var(--ink-on-dark-dim);font-weight:400;margin-bottom:8px;}
.project-meta p{font-size:1.1rem;}

.project-gallery{display:grid;grid-template-columns:1fr;gap:4px;}
@media(min-width:720px){
  .project-gallery--trio{grid-template-columns:1.3fr 1fr;grid-auto-rows:1fr;}
  .project-gallery--trio a:first-child{grid-row:1/3;}
}
.project-gallery a{position:relative;display:block;overflow:hidden;}
.project-gallery img{width:100%;height:100%;object-fit:cover;transition:transform .8s var(--ease);}
.project-gallery a:hover img{transform:scale(1.04);}

.project-switch{
  margin-top:clamp(70px,8vw,110px);
  display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:20px;
  padding:34px clamp(24px,3vw,40px);background:var(--verde-deep-2);
}
.project-switch__link{display:flex;flex-direction:column;gap:6px;max-width:100%;}
.project-switch__link span:first-child{font-size:.85rem;color:var(--ink-on-dark-dim);}
.project-switch__link span:last-child{font-size:clamp(1rem,2vw,1.3rem);}
.project-switch__all{justify-self:center;}
.project-switch__next{justify-self:end;text-align:right;align-items:flex-end;}
.project-switch__all svg{width:20px;height:20px;}
.project-switch__all:hover{color:var(--accent);}

/* ---- lightbox ---- */
.lightbox{
  position:fixed;inset:0;z-index:90;background:rgba(10,13,11,.96);
  display:flex;align-items:center;justify-content:center;padding:40px;
  opacity:0;visibility:hidden;transition:opacity .35s var(--ease);
}
.lightbox.is-open{opacity:1;visibility:visible;}
.lightbox__img{max-width:92vw;max-height:84vh;width:auto;height:auto;object-fit:contain;transition:opacity .15s var(--ease);}
.lightbox__caption{margin-top:14px;text-align:center;color:var(--on-photo-dim);font-size:.95rem;}
.lightbox__close{
  position:absolute;top:28px;right:var(--gutter);
  width:40px;height:40px;display:flex;align-items:center;justify-content:center;
  color:var(--on-photo);
}
.lightbox__close svg{width:22px;height:22px;}
.lightbox__close:hover{color:var(--accent);}
.lightbox__nav{
  position:absolute;top:50%;transform:translateY(-50%);z-index:1;
  width:48px;height:48px;display:flex;align-items:center;justify-content:center;
  color:var(--on-photo);
}
.lightbox__nav svg{width:26px;height:26px;}
.lightbox__nav:hover{color:var(--accent);}
.lightbox__nav--prev{left:8px;}
.lightbox__nav--next{right:8px;}
@media(min-width:720px){
  .lightbox__nav--prev{left:var(--gutter);}
  .lightbox__nav--next{right:var(--gutter);}
}

/* ============================================================
   Contact
   ============================================================ */
.contact-grid{display:grid;grid-template-columns:1fr;gap:56px;}
@media(min-width:900px){.contact-grid{grid-template-columns:1fr 1fr;gap:clamp(48px,6vw,100px);}}

.form{display:grid;grid-template-columns:1fr;gap:22px;}
@media(min-width:560px){.form{grid-template-columns:1fr 1fr;}}
.field{display:flex;flex-direction:column;gap:8px;}
.field--full{grid-column:1/-1;}
.field label{font-size:.9rem;color:var(--ink-on-dark-dim);}
.field input,.field textarea{
  background:transparent;border:0;border-bottom:1px solid var(--line);
  color:var(--ink-on-dark);font:inherit;font-size:1.05rem;
  padding:10px 2px;transition:border-color .3s var(--ease);
}
.field input::placeholder,.field textarea::placeholder{color:var(--ink-on-dark-dim);}
.field input:focus,.field textarea:focus{border-color:var(--focus-ring);}
.field input:focus-visible,.field textarea:focus-visible{outline-offset:1px;}
.field textarea{resize:vertical;min-height:120px;}
.form .btn{grid-column:1/-1;justify-self:flex-start;margin-top:8px;}
.form-note{grid-column:1/-1;font-size:.85rem;color:var(--ink-on-dark-dim);margin-top:-6px;}
.form-success{
  grid-column:1/-1;display:none;font-size:1rem;color:var(--accent);
  padding-top:6px;
}
.form-success.is-visible{display:block;}

.field--consent{gap:0;}
.consent-check{
  display:flex;align-items:flex-start;gap:10px;cursor:pointer;
}
.consent-check input{
  flex-shrink:0;width:18px;height:18px;margin-top:2px;
  accent-color:var(--accent);cursor:pointer;
}
.consent-check span{font-size:.85rem;line-height:1.5;color:var(--ink-on-dark-dim);}
.consent-check a{text-decoration:underline;color:var(--ink-on-dark);}
.consent-check a:hover,.consent-check a:focus-visible{color:var(--accent);}

.contact-detail{display:flex;flex-direction:column;gap:26px;margin-top:38px;}
.contact-detail__label{font-size:.95rem;color:var(--ink-on-dark-dim);font-weight:400;margin-bottom:6px;}
.contact-detail__item p,.contact-detail__item a{font-size:1.15rem;}
.contact-detail__item a:hover{color:var(--accent);}

.social-row{display:flex;gap:16px;margin-top:38px;}
.social-row a{
  width:46px;height:46px;border:1px solid var(--line);
  display:flex;align-items:center;justify-content:center;
  transition:border-color .3s var(--ease),color .3s var(--ease);
}
.social-row a svg{width:20px;height:20px;}
.social-row a:hover{border-color:var(--accent);color:var(--accent);}

/* ---- Redes Sociais ---- */
.social-hero__grid{max-width:640px;}

.social-buttons{
  display:grid;grid-template-columns:1fr 1fr;gap:14px;
  margin-top:40px;max-width:460px;
}
@media(max-width:480px){.social-buttons{grid-template-columns:1fr;}}
.social-buttons__item{justify-content:flex-start;gap:14px;padding:16px 22px;}
.social-buttons__item svg{width:20px;height:20px;flex-shrink:0;}
/* ============================================================
   Contact FAB + modal (floating "fale com a gente" button)
   ============================================================ */
.contact-fab{
  position:fixed;right:clamp(16px,4vw,32px);bottom:clamp(16px,4vw,32px);z-index:80;
  width:60px;height:60px;flex-shrink:0;
  display:flex;align-items:center;justify-content:center;
  background:var(--accent);color:var(--ink-on-paper);
  border-radius:50%;
  box-shadow:0 14px 34px -10px rgba(0,0,0,.45);
  transition:transform .3s var(--ease),box-shadow .3s var(--ease);
}
.contact-fab:hover,.contact-fab:focus-visible{transform:translateY(-3px);box-shadow:0 18px 40px -8px rgba(0,0,0,.5);}
.contact-fab svg{width:26px;height:26px;display:block;}
.contact-fab__label{
  position:absolute;top:50%;right:calc(100% + 14px);transform:translateY(-50%) translateX(6px);
  white-space:nowrap;font-size:.9rem;
  background:var(--verde-deep-2);color:var(--ink-on-dark);
  padding:8px 14px;border-radius:999px;
  box-shadow:0 10px 24px -10px rgba(0,0,0,.4);
  opacity:0;visibility:hidden;pointer-events:none;
  transition:opacity .25s var(--ease),transform .25s var(--ease);
}
@media(min-width:720px){
  .contact-fab:hover .contact-fab__label,.contact-fab:focus-visible .contact-fab__label{
    opacity:1;visibility:visible;transform:translateY(-50%) translateX(0);
  }
}

.contact-modal{
  position:fixed;inset:0;z-index:95;
  display:flex;align-items:center;justify-content:center;padding:20px;
  visibility:hidden;pointer-events:none;
}
.contact-modal.is-open{visibility:visible;pointer-events:auto;}
.contact-modal__overlay{
  position:absolute;inset:0;background:rgba(10,13,11,.82);
  opacity:0;transition:opacity .35s var(--ease);
}
.contact-modal.is-open .contact-modal__overlay{opacity:1;}
.contact-modal__panel{
  position:relative;z-index:1;width:min(640px,100%);max-height:88vh;overflow-y:auto;
  background:var(--verde-deep-2);padding:clamp(28px,5vw,48px);
  transform:translateY(18px) scale(.98);opacity:0;
  transition:transform .35s var(--ease),opacity .35s var(--ease);
}
.contact-modal.is-open .contact-modal__panel{transform:translateY(0) scale(1);opacity:1;}
.contact-modal__close{
  position:absolute;top:18px;right:18px;
  width:38px;height:38px;display:flex;align-items:center;justify-content:center;
  color:var(--ink-on-dark-dim);
}
.contact-modal__close svg{width:20px;height:20px;}
.contact-modal__close:hover{color:var(--accent);}

/* ============================================================
   Footer
   ============================================================ */
.site-footer{background:var(--verde-deep-2);padding:clamp(60px,8vw,96px) 0 28px;}
.footer-grid{
  display:grid;grid-template-columns:1fr;gap:48px;
  padding-bottom:56px;
}
@media(min-width:800px){.footer-grid{grid-template-columns:1.3fr 1fr 1fr;gap:40px;}}
.footer-brand img{height:26px;width:auto;margin-bottom:20px;transition:filter .4s var(--ease);}
:root[data-theme="light"] .footer-brand img{filter:invert(1);}
.footer-brand p{max-width:34ch;font-size:1rem;line-height:1.6;color:var(--ink-on-dark-dim);}
.footer-social{display:flex;gap:14px;margin-top:26px;}
.footer-social a{
  width:40px;height:40px;border:1px solid var(--line);
  display:flex;align-items:center;justify-content:center;
}
.footer-social a svg{width:17px;height:17px;}
.footer-social a:hover{border-color:var(--accent);color:var(--accent);}
.footer-col h5{font-size:.9rem;color:var(--ink-on-dark-dim);font-weight:400;margin-bottom:18px;}
.footer-col ul{display:flex;flex-direction:column;gap:12px;}
.footer-col a:hover{color:var(--accent);}
.footer-col li span{font-weight:300;font-size:.9em;}
.footer-bottom{
  display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px 24px;
  padding-top:22px;
  font-size:.82rem;color:var(--ink-on-dark-dim);
}
.footer-bottom a,.footer-bottom__link{text-decoration:underline;text-underline-offset:2px;}
.footer-bottom a:hover,.footer-bottom a:focus-visible,
.footer-bottom__link:hover,.footer-bottom__link:focus-visible{color:var(--accent);}

/* ============================================================
   Cookie consent banner
   ============================================================ */
.cookie-banner{
  position:fixed;left:0;right:0;bottom:0;z-index:150;
  display:none;
  background:var(--verde-deep-2);color:var(--ink-on-dark);
  border-top:1px solid var(--line);
  box-shadow:0 -14px 40px -16px rgba(0,0,0,.45);
}
.cookie-banner.is-visible{display:block;}
.cookie-banner__inner{
  max-width:var(--container);margin:0 auto;padding:22px var(--gutter);
  display:flex;flex-wrap:wrap;align-items:center;gap:20px 32px;
}
.cookie-banner__text{flex:1 1 360px;font-size:.9rem;line-height:1.55;color:var(--ink-on-dark-dim);margin:0;}
.cookie-banner__text a{text-decoration:underline;color:var(--ink-on-dark);}
.cookie-banner__text a:hover,.cookie-banner__text a:focus-visible{color:var(--accent);}
.cookie-banner__actions{display:flex;gap:12px;flex-wrap:wrap;flex:0 0 auto;}
.cookie-banner__actions .btn{padding:12px 22px;font-size:.85rem;}
.cookie-banner__reject{
  font-size:.85rem;color:var(--ink-on-dark-dim);text-decoration:underline;
  padding:12px 4px;
}
.cookie-banner__reject:hover,.cookie-banner__reject:focus-visible{color:var(--ink-on-dark);}
@media(max-width:560px){
  .cookie-banner__inner{padding:18px var(--gutter);}
  .cookie-banner__actions{width:100%;}
  .cookie-banner__actions .btn,.cookie-banner__reject{flex:1 1 auto;text-align:center;}
}

/* ============================================================
   Hero prev/next arrow controls
   ============================================================ */
.home-hero__nav{
  width:34px;height:34px;flex-shrink:0;
  display:inline-flex;align-items:center;justify-content:center;
  color:var(--on-photo);border:1px solid rgba(243,239,233,.35);
  border-radius:50%;
  transition:color .3s var(--ease),border-color .3s var(--ease);
}
.home-hero__nav:hover{color:var(--terracota);border-color:var(--terracota);}
.home-hero__nav svg{width:16px;height:16px;}
.home-hero__nav--up{margin-bottom:14px;}
.home-hero__nav--down{margin-top:14px;}

/* ============================================================
   Misc / responsive
   ============================================================ */
@media(max-width:560px){
  .home-hero__rail{right:var(--gutter);}
  /* on a narrow phone the dots + play/pause column has no reserved space
     of its own — title/subtitle text can run the full content width and
     land directly under it. Carve out room on the right so it never does. */
  .home-hero__copy{padding-bottom:140px;padding-right:calc(var(--gutter) + 52px);}
  .home-hero__media--somos-aire{background-image:url('../img/hero_somos_aire-mobile.jpg') !important;}
  .project-switch{grid-template-columns:1fr;justify-items:start;gap:28px;}
  .project-switch__all{justify-self:start;}
  .project-switch__next{justify-self:start;text-align:left;align-items:flex-start;}
}
