/* Sergio Cavero — minimal hero (Desplat-inspired)
   Change hero crop by editing --hero-y in index.html (e.g., 10% / 25% / 40%).
*/

:root{
  --bg: #000;
  --fg: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.62);
  --hair: rgba(255,255,255,.16);
  --veil-1: rgba(0,0,0,.72);
  --veil-2: rgba(0,0,0,.25);
  --max: 1200px;
  --pad: clamp(18px, 4vw, 44px);
  --name-size: clamp(54px, 6.2vw, 104px);
  --name-track: 0.18em;
}

*{ box-sizing:border-box; }
html, body{ height:100%; }
body{
  margin:0;
  background: var(--bg);
  color: var(--fg);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  letter-spacing: 0.01em;
}

a{ color: inherit; text-decoration:none; }
a:hover{ text-decoration:underline; text-underline-offset: 5px; }

.hero{
  position: relative;
  min-height: 100svh;
  background:
    linear-gradient(90deg, rgba(0,0,0,.86) 0%, rgba(0,0,0,.62) 34%, rgba(0,0,0,.20) 62%, rgba(0,0,0,.02) 100%),
    var(--hero-image);
  background-size: cover;
  background-position: var(--hero-x, 70%) var(--hero-y, 25%);
  overflow: hidden;
}

.hero__veil{
  position:absolute; inset:0;
  background: radial-gradient(1200px 800px at 25% 55%, var(--veil-2) 0%, rgba(0,0,0,0) 58%),
              linear-gradient(180deg, rgba(0,0,0,.50) 0%, rgba(0,0,0,.05) 45%, rgba(0,0,0,.55) 100%);
  pointer-events:none;
}

.topbar{
  position:absolute;
  top: var(--pad);
  left: var(--pad);
  right: var(--pad);
  display:flex;
  justify-content:flex-start;
  align-items:center;
  z-index: 5;
}

.menuBtn{
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 0;
  cursor: pointer;
  display: grid;
  gap: 6px;
  align-content:center;
  justify-items:start;
}

.menuBtn span{
  display:block;
  height: 1px;
  width: 26px;
  background: rgba(255,255,255,.82);
  opacity: .9;
}

.menuBtn:hover span{ opacity: 1; }
.menuBtn:focus-visible{ outline: 1px solid rgba(255,255,255,.35); outline-offset: 6px; border-radius: 10px; }

.content{
  position: relative;
  z-index: 3;
  height: 100svh;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding: 0 var(--pad);
  max-width: var(--max);
}

.name{
  margin: 0 0 26px 0;
  font-size: var(--name-size);
  line-height: .92;
  font-weight: 200;
  letter-spacing: var(--name-track);
  text-transform: uppercase;
}

.name span{ display:block; }

.lang{
  display:flex;
  gap: 22px;
  align-items:center;
  margin-top: 6px;
}

.lang__item{
  color: var(--muted);
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
}

.lang__item:hover{
  color: var(--fg);
}

.lang__item::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-6px;
  width: 0%;
  height: 1px;
  background: rgba(255,255,255,.75);
  transition: width .18s ease;
}

.lang__item:hover::after{ width: 100%; }

.lang__item.is-active{
  color: var(--fg);
}
.lang__item.is-active::after{
  width: 100%;
  background: rgba(255,255,255,.92);
}

.tagline{
  margin: 22px 0 0 0;
  color: rgba(255,255,255,.66);
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
}

/* Drawer */
.drawer{
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
}
.drawer.is-open{ display:block; }

.drawer__backdrop{
  position:absolute; inset:0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(3px);
}

.drawer__panel{
  position:absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: min(420px, 88vw);
  background: rgba(0,0,0,.86);
  border-right: 1px solid rgba(255,255,255,.10);
  padding: calc(var(--pad) + 8px) var(--pad);
  display:flex;
  flex-direction:column;
  gap: 26px;
}

.drawer__close{
  align-self:flex-start;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 0;
  color: rgba(255,255,255,.85);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.drawer__close:hover{ color: #fff; }

.drawer__nav{
  display:flex;
  flex-direction:column;
  gap: 16px;
  margin-top: 12px;
}

.drawer__nav a{
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.88);
}

.drawer__nav a:hover{
  color: #fff;
  text-decoration: none;
}

.drawer__meta{
  margin-top:auto;
  color: rgba(255,255,255,.70);
  font-size: 14px;
  letter-spacing: 0.04em;
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  align-items:center;
}

.drawer__link{ color: rgba(255,255,255,.80); }
.drawer__link:hover{ color: #fff; }

.section{
  max-width: var(--max);
  margin: 0 auto;
  padding: 76px var(--pad);
  border-top: 1px solid rgba(255,255,255,.08);
  background: #000;
}

.section h2{
  margin: 0 0 18px 0;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 14px;
  color: rgba(255,255,255,.82);
}

.section p, .section li{
  color: rgba(255,255,255,.72);
  font-weight: 300;
  line-height: 1.75;
  max-width: 78ch;
}

.list{
  margin: 0;
  padding-left: 18px;
}

@media (max-width: 640px){
  :root{ --name-track: 0.12em; }
  .hero{
    background:
      linear-gradient(180deg, rgba(0,0,0,.75) 0%, rgba(0,0,0,.55) 40%, rgba(0,0,0,.65) 100%),
      var(--hero-image);
    background-position: 62% var(--hero-y, 18%);
  }
  .content{ justify-content:flex-end; padding-bottom: 70px; }
  .tagline{ font-size: 12px; }
}
