/* FlydroneBL — estils compartits */
:root{
  --white:#fff; --mist:#eef8f6; --foam:#95ded3; --teal:#4abdac; --pine:#1d5c54; --ink:#000; --grey:#4d5957;
  --f:"Jost", system-ui, sans-serif;
  --pad:clamp(1.2rem,5vw,4rem);
}
*{box-sizing:border-box;margin:0}
html{scroll-behavior:smooth;scroll-padding-top:80px}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body{background:var(--white);color:var(--ink);font-family:var(--f);font-size:1.125rem;line-height:1.6}
img{max-width:100%;height:auto;display:block}
a{color:inherit}
:focus-visible{outline:2px solid var(--pine);outline-offset:3px}

/* Capçalera */
.site-header{position:sticky;top:0;z-index:30;background:rgba(255,255,255,.96);backdrop-filter:blur(6px);border-bottom:1px solid var(--foam);display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:.85rem var(--pad)}
.site-header .brand img{height:22px;width:auto}
.site-nav{display:flex;align-items:center;gap:1.6rem;font-size:1rem}
.site-nav .links{display:flex;gap:1.6rem}
.site-nav a{text-decoration:none}
.site-nav .links a:hover,.site-nav .links a[aria-current="page"]{text-decoration:underline;text-decoration-color:var(--teal);text-decoration-thickness:2px;text-underline-offset:6px}
.cta{display:inline-block;padding:.55rem 1.15rem;border-radius:999px;background:var(--teal);color:var(--ink);font-weight:600;text-decoration:none}
.cta:hover{background:var(--foam)}
.lang{display:flex;gap:.55rem;font-size:.9rem}
.lang a[aria-current="true"]{font-weight:700;color:var(--pine)}
@media (max-width:860px){.site-nav .links{display:none}.site-header .brand img{height:16px}}

/* Altímetre fix */
.alt{position:fixed;right:clamp(.6rem,1.6vw,1.4rem);top:18vh;bottom:12vh;width:60px;z-index:25;pointer-events:none;color:var(--pine)}
.alt .scale{position:absolute;right:0;top:0;bottom:0;width:12px;background:repeating-linear-gradient(to top,currentColor 0 1px,transparent 1px 5%);opacity:.45}
.alt .scale::after{content:"";position:absolute;right:0;top:0;bottom:0;width:22px;background:repeating-linear-gradient(to top,currentColor 0 2px,transparent 2px 25%)}
.alt .mark{position:absolute;right:0;width:32px;height:3px;background:var(--teal);transform:translateY(50%)}
.alt .read{position:absolute;right:30px;transform:translateY(50%);white-space:nowrap;text-align:right;font-size:.8rem;line-height:1.15;background:rgba(255,255,255,.9);padding:.25rem .45rem;border-radius:4px}
.alt .read strong{display:block;font-size:1.35rem;font-weight:600;color:var(--ink);font-variant-numeric:tabular-nums}
@media (max-width:860px){.alt{display:none}}

/* Portada */
.hero{position:relative;min-height:calc(100svh - 56px);display:grid;align-items:end;padding:0 var(--pad) 10vh;color:var(--white);overflow:hidden;background:var(--pine)}
.hero-bg{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover;z-index:0}
.hero::before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,0) 35%,rgba(10,40,37,.7))}
.hero::before{z-index:1}
.hero > div{position:relative;z-index:2}
.hero h1{font-size:clamp(3.4rem,11vw,9.5rem);line-height:.9;font-weight:600;letter-spacing:-.035em;max-width:9ch}
.hero p{max-width:34rem;margin-top:1.4rem;font-size:1.25rem}

/* Seccions */
section{padding:clamp(4.5rem,10vw,8rem) var(--pad)}
.inner{max-width:1120px;margin:0 auto}
.tinted{background:var(--mist)}
h2{font-size:clamp(2.3rem,5vw,3.8rem);line-height:1;font-weight:600;letter-spacing:-.025em}
.lead{max-width:38rem;margin-top:1.2rem;font-size:1.2rem;color:var(--grey)}

/* Serveis: fotogrames panoràmics */
.scene{margin-top:clamp(3rem,7vw,5rem);display:grid;grid-template-columns:2.2fr 1fr;gap:clamp(1.5rem,4vw,3.5rem);align-items:center}
.scene:nth-of-type(even){grid-template-columns:1fr 2.2fr}
.scene:nth-of-type(even) .frame{order:2}
@media (max-width:860px){.scene,.scene:nth-of-type(even){grid-template-columns:1fr}.scene:nth-of-type(even) .frame{order:0}}
.frame{aspect-ratio:2.39/1;background:var(--ink);border-top:10px solid var(--ink);border-bottom:10px solid var(--ink);overflow:hidden}
.frame img{width:100%;height:100%;object-fit:cover}
.frame.trio{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
@media (max-width:520px){.frame.trio{aspect-ratio:auto;grid-template-columns:1fr}.frame.trio img{aspect-ratio:16/9}}
.scene h3{display:flex;align-items:center;gap:.8rem;font-size:1.9rem;font-weight:600;line-height:1.1;margin-bottom:.6rem}
.scene h3 svg{flex:none;width:44px;height:44px}
.scene p{color:var(--grey)}

/* Com treballem */
.steps{list-style:none;padding:0;display:grid;grid-template-columns:repeat(4,1fr);gap:1.6rem;margin-top:3rem;counter-reset:s}
@media (max-width:960px){.steps{grid-template-columns:1fr 1fr}}
@media (max-width:520px){.steps{grid-template-columns:1fr}}
.steps li{counter-increment:s}
.steps .ph{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:4px;margin-bottom:1rem}
.steps li::before{content:counter(s);display:block;font-size:2.2rem;font-weight:600;color:var(--teal);line-height:1;border-top:3px solid var(--ink);padding-top:.8rem;margin-bottom:.4rem}
.steps li{display:flex;flex-direction:column}
.steps li .ph{order:-1}
.steps b{display:block;font-size:1.15rem;font-weight:600}
.steps p{color:var(--grey);font-size:1.02rem}

/* Equip */
.team{display:grid;grid-template-columns:1fr 1fr;gap:clamp(1.5rem,4vw,4rem);margin-top:3rem}
@media (max-width:760px){.team{grid-template-columns:1fr}}
.person{display:grid;grid-template-columns:150px 1fr;gap:1.5rem;align-items:start}
@media (max-width:420px){.person{grid-template-columns:110px 1fr}}
.person .photo{width:100%;aspect-ratio:1;border-radius:50%;object-fit:cover;background:var(--foam)}
.person h3{font-size:1.5rem;font-weight:600;line-height:1.2}
.person .role{color:var(--pine);font-weight:500}
.person p{color:var(--grey)}
.person a{color:var(--pine)}
.more{display:inline-block;margin-top:2.5rem;color:var(--pine);font-weight:600}

/* Qui som (pàgina) */
.page-head{padding-bottom:0}
.page-head + section{padding-top:2.5rem}
.story{display:grid;grid-template-columns:1.2fr 1fr;gap:clamp(2rem,6vw,6rem);align-items:start}
@media (max-width:860px){.story{grid-template-columns:1fr}}
.story p + p{margin-top:1rem}
.timeline{list-style:none;padding:0;border-left:2px solid var(--foam)}
.timeline li{padding:0 0 1.8rem 1.5rem;position:relative}
.timeline li::before{content:"";position:absolute;left:-7px;top:.5rem;width:12px;height:12px;border-radius:50%;background:var(--teal)}
.timeline b{display:block;color:var(--pine);font-size:1.35rem;font-weight:600}

/* Contacte */
.contact{display:grid;grid-template-columns:1fr 1.2fr;gap:clamp(2rem,6vw,6rem)}
@media (max-width:860px){.contact{grid-template-columns:1fr}}
.direct p{margin-top:2rem}
.direct a{color:var(--pine)}
form{display:grid;gap:1rem}
label{display:grid;gap:.35rem;font-size:1rem;font-weight:500}
input,select,textarea{font:inherit;font-size:1rem;color:var(--ink);background:var(--white);border:1px solid #9fb8b3;border-radius:6px;padding:.8rem .9rem}
input:focus,select:focus,textarea:focus{border-color:var(--pine);outline:2px solid var(--foam)}
textarea{min-height:8rem;resize:vertical}
.send{justify-self:start;border:0;cursor:pointer;font:inherit;font-weight:600;padding:.9rem 1.6rem;border-radius:999px;background:var(--teal);color:var(--ink)}
.send:hover{background:var(--foam)}

/* Peu */
.site-footer{background:var(--ink);color:var(--white);padding:2.2rem var(--pad);display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:1rem;font-size:.95rem}
.social{display:flex;gap:1rem}
.social a{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;border:1px solid rgba(255,255,255,.35);color:var(--white)}
.social a:hover{background:var(--teal);border-color:var(--teal);color:var(--ink)}
.social svg{width:20px;height:20px}

/* Equipament */
.gear{display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(1.5rem,3vw,2.5rem);margin-top:3rem}
@media (max-width:900px){.gear{grid-template-columns:1fr;max-width:34rem}}
.gear img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:4px;margin-bottom:1.1rem}
.gear h3{font-size:1.5rem;font-weight:600;line-height:1.2}
.gear .tag{color:var(--pine);font-weight:500;margin-bottom:.5rem}
.gear p{color:var(--grey)}
.gear .for{margin-top:.6rem;font-size:1rem;color:var(--ink)}

/* Formulari */
.hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
.form-status{min-height:1.5em;font-weight:500}
.form-status.ok{color:var(--pine)}
.form-status.err{color:#a3261b}
.send[disabled]{opacity:.6;cursor:wait}

/* Portfolio */
.filters{display:flex;flex-wrap:wrap;gap:.6rem;margin-top:2rem}
.filters button{font:inherit;font-size:1rem;padding:.5rem 1.1rem;border-radius:999px;border:1px solid var(--pine);background:var(--white);color:var(--pine);cursor:pointer}
.filters button[aria-pressed="true"]{background:var(--pine);color:var(--white)}
.cat + .cat{margin-top:clamp(3.5rem,7vw,5.5rem)}
.cat h3{font-size:clamp(1.7rem,3.2vw,2.4rem);font-weight:600;line-height:1.1}
.works{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:clamp(1.2rem,3vw,2rem);margin-top:1.6rem}
.work img{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:4px}
.work h4{font-size:1.25rem;font-weight:600;margin-top:.9rem;line-height:1.25}
.work .meta{color:var(--pine);font-size:.95rem}
.work p{color:var(--grey);font-size:1.02rem}
.work a.video{display:inline-block;margin-top:.4rem;color:var(--pine);font-weight:600}
.empty{margin-top:1.2rem;color:var(--grey)}
