/* ==========================================================================
   Ismael Montero Muñoz — personal site
   Palette & rhythm adapted from the marianotorrente.com reference, with the
   blue softened to a pastel cornflower: warm off-white ground, dark charcoal
   ink, near-black bands.
   ========================================================================== */

:root{
  /* --- colour ---
     Pastel blue family. Two working tones, because a single pastel cannot do
     both jobs: --blue carries large type, icons, borders and washes, while
     --blue-ink is the deeper sibling used for small text and solid buttons so
     everything stays legible on the warm off-white. */
  --blue:        #5f86cc;   /* soft cornflower  — 3.2:1 on cream, large text + UI */
  --blue-ink:    #3f63a8;   /* dusty blue       — 5.1:1 on cream, small text + buttons */
  --blue-2:      #7b9fd9;   /* pastel gradient partner */
  --blue-pale:   #a8c0e8;   /* pastel accent for the dark bands */
  --blue-deep:   #33528c;   /* pressed / hover state */
  --blue-rgb:    95,134,204;
  --cream:       #f1efed;
  --cream-2:     #e8e5e1;
  --ink:         #3e4348;
  --ink-strong:  #1c2024;
  --near-black:  #121213;
  --white:       #ffffff;
  --line:        rgba(62,67,72,.13);
  --line-light:  rgba(255,255,255,.14);

  /* --- type --- */
  --display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* --- layout --- */
  --wrap: 1200px;
  --gut: clamp(20px, 5vw, 48px);
  --nav-h: 74px;

  /* --- motion --- */
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

*,*::before,*::after{ box-sizing:border-box; }

html{
  scroll-behavior:smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust:100%;
}

body{
  margin:0;
  background:var(--cream);
  color:var(--ink);
  font-family:var(--body);
  font-size:17px;
  line-height:1.65;
  font-weight:400;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  overflow-x:hidden;
}

body.is-locked{ overflow:hidden; }

img,svg{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{ margin:0; font-family:var(--display); color:var(--ink-strong); letter-spacing:-.02em; }
p{ margin:0; }
button{ font:inherit; color:inherit; }

::selection{ background:var(--blue-ink); color:#fff; }

.wrap{
  width:100%;
  max-width:var(--wrap);
  margin-inline:auto;
  padding-inline:var(--gut);
}

.skip-link{
  position:absolute; left:-9999px; top:0; z-index:200;
  background:var(--blue-ink); color:#fff; padding:12px 20px; border-radius:0 0 8px 0;
  font-size:14px; font-weight:600;
}
.skip-link:focus{ left:0; }

:focus-visible{
  outline:2px solid var(--blue);
  outline-offset:3px;
  border-radius:4px;
}

/* ==========================================================================
   Shared bits
   ========================================================================== */

.eyebrow{
  font-family:var(--body);
  font-size:12px;
  font-weight:600;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--blue-ink);
  margin-bottom:18px;
}
.eyebrow--light{ color:var(--blue-pale); }

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:9px;
  padding:15px 30px;
  border:1px solid transparent;
  border-radius:100px;
  font-family:var(--body);
  font-size:15px; font-weight:600; letter-spacing:.01em;
  cursor:pointer;
  transition:transform .35s var(--ease), background-color .3s var(--ease),
             color .3s var(--ease), border-color .3s var(--ease), box-shadow .35s var(--ease);
  will-change:transform;
}
.btn--sm{ padding:10px 20px; font-size:14px; }

.btn--solid{
  background:var(--blue-ink); color:#fff;
  box-shadow:0 8px 22px -10px rgba(var(--blue-rgb),.7);
}
.btn--solid:hover{ background:var(--blue-deep); transform:translateY(-2px); box-shadow:0 14px 30px -12px rgba(var(--blue-rgb),.85); }

.btn--ghost{ background:transparent; color:var(--ink-strong); border-color:rgba(62,67,72,.28); }
.btn--ghost:hover{ border-color:var(--ink-strong); background:rgba(62,67,72,.05); transform:translateY(-2px); }

.btn--light{ background:#fff; color:var(--ink-strong); }
.btn--light:hover{ transform:translateY(-2px); box-shadow:0 14px 30px -14px rgba(0,0,0,.55); }

.section{ padding:clamp(72px,10vw,132px) 0; }
.section--tint{ background:var(--cream-2); }
.section--about{ background:var(--white); }

.sechead{ max-width:760px; margin-bottom:clamp(40px,5vw,64px); }
.sechead__title{
  font-size:clamp(29px,4.1vw,46px);
  line-height:1.12;
  font-weight:700;
}

/* ==========================================================================
   Nav
   ========================================================================== */

.nav{
  position:fixed; inset:0 0 auto 0; z-index:100;
  height:var(--nav-h);
  background:rgba(241,239,237,.82);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid transparent;
  transition:border-color .3s var(--ease), background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.nav.is-stuck{
  border-bottom-color:var(--line);
  box-shadow:0 6px 26px -22px rgba(0,0,0,.5);
}

.nav__inner{
  height:100%;
  max-width:var(--wrap);
  margin-inline:auto;
  padding-inline:var(--gut);
  display:flex; align-items:center; gap:24px;
}

.nav__logo{ display:flex; align-items:center; gap:11px; flex-shrink:0; }
.nav__mark{
  width:34px; height:34px; flex-shrink:0;
  display:grid; place-items:center;
  background:var(--blue-ink); color:#fff;
  border-radius:9px;
  font-family:var(--display); font-size:13px; font-weight:800; letter-spacing:.02em;
}
.nav__name{
  font-family:var(--display); font-size:17px; font-weight:700;
  color:var(--ink-strong); letter-spacing:-.015em; white-space:nowrap;
}

.nav__links{ display:flex; gap:30px; margin-left:auto; }
.nav__links a{
  position:relative;
  font-size:15px; font-weight:500; color:var(--ink);
  padding:6px 0;
  transition:color .25s var(--ease);
}
.nav__links a::after{
  content:''; position:absolute; left:0; bottom:0;
  width:100%; height:2px; background:var(--blue);
  transform:scaleX(0); transform-origin:left;
  transition:transform .35s var(--ease);
}
.nav__links a:hover{ color:var(--ink-strong); }
.nav__links a:hover::after,
.nav__links a.is-current::after{ transform:scaleX(1); }
.nav__links a.is-current{ color:var(--blue-ink); }

.nav__actions{ display:flex; align-items:center; gap:14px; margin-left:0; }

.langswitch{
  display:flex; padding:3px;
  background:rgba(62,67,72,.08);
  border-radius:100px;
}
.langswitch__btn{
  border:0; background:transparent; cursor:pointer;
  padding:6px 12px; border-radius:100px;
  font-size:12px; font-weight:700; letter-spacing:.06em;
  color:var(--ink);
  transition:background-color .25s var(--ease), color .25s var(--ease);
}
.langswitch__btn.is-active{ background:var(--white); color:var(--blue-ink); box-shadow:0 1px 4px rgba(0,0,0,.09); }

.nav__burger{
  display:none;
  width:42px; height:42px;
  border:1px solid var(--line); border-radius:11px;
  background:transparent; cursor:pointer;
  padding:0;
  flex-direction:column; align-items:center; justify-content:center; gap:5px;
}
.nav__burger span{
  display:block; width:17px; height:2px; border-radius:2px;
  background:var(--ink-strong);
  transition:transform .3s var(--ease), opacity .2s var(--ease);
}
.nav__burger[aria-expanded="true"] span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.nav__burger[aria-expanded="true"] span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

/* --- drawer --- */
.drawer{
  position:fixed; inset:var(--nav-h) 0 0 0; z-index:99;
  background:var(--cream);
  padding:40px var(--gut) var(--gut);
  display:flex; flex-direction:column; justify-content:space-between;
  opacity:0; transform:translateY(-10px);
  transition:opacity .3s var(--ease), transform .3s var(--ease);
}
.drawer[hidden]{ display:none; }
.drawer.is-open{ opacity:1; transform:translateY(0); }

.drawer__nav{ display:flex; flex-direction:column; gap:4px; }
.drawer__nav a{
  font-family:var(--display);
  font-size:clamp(26px,7vw,38px); font-weight:700;
  letter-spacing:-.02em; color:var(--ink-strong);
  padding:10px 0;
  border-bottom:1px solid var(--line);
}
.drawer__nav a:active{ color:var(--blue); }

.drawer__foot{
  display:flex; flex-direction:column; gap:8px;
  padding-top:28px;
  font-size:15px; color:var(--ink);
}
.drawer__foot a{ color:var(--blue-ink); font-weight:500; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero{
  position:relative;
  padding:calc(var(--nav-h) + clamp(56px,10vw,110px)) 0 clamp(40px,6vw,72px);
  overflow:hidden;
}

.hero__grid{
  position:absolute; inset:0; z-index:0;
  background-image:
    linear-gradient(to right, rgba(62,67,72,.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(62,67,72,.055) 1px, transparent 1px);
  background-size:72px 72px;
  mask-image:radial-gradient(ellipse 80% 62% at 50% 34%, #000 42%, transparent 100%);
  -webkit-mask-image:radial-gradient(ellipse 80% 62% at 50% 34%, #000 42%, transparent 100%);
  pointer-events:none;
}
.hero__glow{
  position:absolute; z-index:0;
  top:-24%; left:50%; transform:translateX(-50%);
  width:min(1100px,130vw); aspect-ratio:1.6/1;
  background:radial-gradient(ellipse at center, rgba(var(--blue-rgb),.17) 0%, rgba(var(--blue-rgb),.05) 42%, transparent 68%);
  pointer-events:none;
}

.hero__inner{ position:relative; z-index:1; }

.hero__title{
  font-size:clamp(40px,8.4vw,96px);
  line-height:1.02;
  font-weight:800;
  letter-spacing:-.035em;
  text-transform:uppercase;
  margin-bottom:28px;
  max-width:16ch;
}
.hero__title .line{ display:block; }
.hero__title .line--accent{
  background:linear-gradient(96deg, var(--blue) 0%, var(--blue-2) 52%, var(--blue-pale) 100%);
  -webkit-background-clip:text; background-clip:text;
  -webkit-text-fill-color:transparent; color:transparent;
}

.hero__lead{
  max-width:62ch;
  font-size:clamp(16px,1.55vw,19.5px);
  line-height:1.68;
  color:var(--ink);
  margin-bottom:36px;
}

.hero__cta{ display:flex; flex-wrap:wrap; gap:13px; }

/* --- stat band --- */
.stats{
  margin-top:clamp(56px,8vw,92px);
  display:grid; grid-template-columns:repeat(4,1fr);
  gap:1px;
  background:var(--line);
  border:1px solid var(--line);
  border-radius:18px;
  overflow:hidden;
}
.stat{
  background:var(--cream);
  padding:clamp(22px,3vw,34px) clamp(18px,2.4vw,28px);
  display:flex; flex-direction:column; gap:6px;
  transition:background-color .35s var(--ease);
}
.stat:hover{ background:var(--white); }
.stat__num{
  font-family:var(--display);
  font-size:clamp(32px,4.4vw,50px);
  font-weight:800; line-height:1;
  letter-spacing:-.035em;
  color:var(--blue);
  font-variant-numeric:tabular-nums;
}
.stat__lbl{
  font-size:13.5px; line-height:1.42; font-weight:500;
  color:var(--ink); opacity:.82;
}

/* ==========================================================================
   Marquee
   ========================================================================== */

.marquee{
  border-block:1px solid var(--line);
  background:var(--white);
  padding:19px 0;
  overflow:hidden;
  mask-image:linear-gradient(to right, transparent, #000 9%, #000 91%, transparent);
  -webkit-mask-image:linear-gradient(to right, transparent, #000 9%, #000 91%, transparent);
}
.marquee__track{
  display:flex; align-items:center; gap:26px;
  width:max-content;
  animation:slide 46s linear infinite;
}
.marquee__track span{
  font-family:var(--display);
  font-size:15px; font-weight:600; letter-spacing:.05em; text-transform:uppercase;
  color:var(--ink-strong); white-space:nowrap;
}
.marquee__track i{ color:var(--blue); font-style:normal; font-size:17px; }
@keyframes slide{ from{ transform:translateX(0); } to{ transform:translateX(-50%); } }
.marquee:hover .marquee__track{ animation-play-state:paused; }

/* ==========================================================================
   Pillars
   ========================================================================== */

/* Four pillars on a 2x2 grid: gives the leadership card, which leads the
   section, room to breathe instead of squeezing four into one row. */
.pillars{
  display:grid; grid-template-columns:repeat(2,1fr);
  gap:clamp(16px,2vw,26px);
}
/* the leading card is tinted so project & team leadership reads first */
.pillar--lead{
  background:linear-gradient(152deg, rgba(var(--blue-rgb),.10), var(--white) 62%);
  border-color:rgba(var(--blue-rgb),.28);
}
.pillar--lead .pillar__icon{
  background:var(--blue-ink); color:#fff;
}
.pillar{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:20px;
  padding:clamp(26px,3vw,38px);
  display:flex; flex-direction:column;
  transition:transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .45s var(--ease);
}
.pillar:hover{
  transform:translateY(-6px);
  border-color:rgba(var(--blue-rgb),.3);
  box-shadow:0 26px 50px -30px rgba(28,32,36,.4);
}
.pillar__icon{
  width:52px; height:52px; flex-shrink:0;
  display:grid; place-items:center;
  border-radius:14px;
  background:linear-gradient(145deg, rgba(var(--blue-rgb),.13), rgba(var(--blue-rgb),.05));
  color:var(--blue);
  margin-bottom:22px;
}
.pillar__icon svg{ width:25px; height:25px; }
.pillar h3{
  font-size:21px; line-height:1.25; font-weight:700;
  margin-bottom:13px;
}
.pillar p{ font-size:15.5px; line-height:1.62; margin-bottom:22px; }
.pillar__tags{ display:flex; flex-wrap:wrap; gap:7px; margin-top:auto; }
.pillar__tags li{
  font-size:12px; font-weight:600; letter-spacing:.03em;
  padding:5px 11px; border-radius:100px;
  background:rgba(var(--blue-rgb),.08); color:var(--blue-deep);
}

/* ==========================================================================
   Feature band (credentials)
   ========================================================================== */

.feature{
  position:relative;
  background:var(--near-black);
  color:rgba(255,255,255,.74);
  padding:clamp(66px,9vw,112px) 0;
  overflow:hidden;
}
.feature::before{
  content:''; position:absolute; inset:0;
  background:
    radial-gradient(circle at 82% 18%, rgba(var(--blue-rgb),.3) 0%, transparent 52%),
    radial-gradient(circle at 8% 92%, rgba(var(--blue-rgb),.18) 0%, transparent 45%);
  pointer-events:none;
}
.feature__inner{
  position:relative; z-index:1;
  display:grid; grid-template-columns:1.15fr .85fr;
  gap:clamp(34px,5vw,72px); align-items:center;
}
.feature__title{
  color:#fff;
  font-size:clamp(27px,3.6vw,42px);
  line-height:1.15; font-weight:700;
  margin-bottom:20px;
}
.feature__lead{
  font-size:16.5px; line-height:1.68;
  margin-bottom:32px;
  max-width:56ch;
}

.feature__badges{
  display:grid; grid-template-columns:repeat(2,1fr);
  gap:clamp(12px,1.6vw,18px);
}
.cbadge{
  background:rgba(255,255,255,.055);
  border:1px solid var(--line-light);
  border-radius:16px;
  padding:clamp(20px,2.6vw,30px);
  text-align:center;
  transition:background-color .35s var(--ease), transform .45s var(--ease-out), border-color .35s var(--ease);
}
.cbadge:hover{ background:rgba(var(--blue-rgb),.16); border-color:rgba(var(--blue-rgb),.5); transform:translateY(-4px); }
.cbadge b{
  display:block;
  font-family:var(--display);
  font-size:clamp(34px,4vw,46px); font-weight:800; line-height:1;
  letter-spacing:-.035em;
  color:#fff; margin-bottom:7px;
  font-variant-numeric:tabular-nums;
}
.cbadge span{
  font-size:12.5px; font-weight:600; letter-spacing:.06em; text-transform:uppercase;
  color:rgba(255,255,255,.62);
}

/* ==========================================================================
   About
   ========================================================================== */

.about{
  display:grid; grid-template-columns:.85fr 1.15fr;
  gap:clamp(34px,5vw,76px);
  align-items:start;
}

.portrait{
  position:relative;
  aspect-ratio:1/1; width:100%; max-width:250px;
  display:grid; place-items:center;
  border-radius:24px;
  background:linear-gradient(150deg, var(--blue-2) 0%, var(--blue) 46%, var(--blue-deep) 100%);
  margin-bottom:34px;
  overflow:hidden;
  box-shadow:0 24px 48px -26px rgba(var(--blue-rgb),.6);
}
.portrait__mono{
  font-family:var(--display);
  font-size:76px; font-weight:800; letter-spacing:-.04em;
  color:#fff;
  position:relative; z-index:1;
}
.portrait__ring{
  position:absolute; inset:-30%;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.22);
  box-shadow:0 0 0 34px rgba(255,255,255,.07), 0 0 0 68px rgba(255,255,255,.045);
}

.about__meta{ display:flex; flex-direction:column; gap:0; margin-bottom:28px; }
.about__meta li{
  display:flex; flex-direction:column; gap:3px;
  padding:14px 0;
  border-bottom:1px solid var(--line);
}
.about__meta li:first-child{ border-top:1px solid var(--line); }
.about__meta .k{
  font-size:11.5px; font-weight:700; letter-spacing:.13em; text-transform:uppercase;
  color:var(--blue-ink);
}
.about__meta .v{ font-size:15px; font-weight:500; color:var(--ink-strong); line-height:1.45; }

.about__social{ display:flex; flex-direction:column; gap:11px; }
.about__social a{
  display:flex; align-items:center; gap:11px;
  font-size:14.5px; font-weight:500; color:var(--ink);
  transition:color .25s var(--ease);
  word-break:break-all;
}
.about__social a svg{ width:17px; height:17px; flex-shrink:0; color:var(--blue); }
.about__social a:hover{ color:var(--blue-ink); }

.about__title{
  font-size:clamp(30px,4.2vw,46px);
  line-height:1.1; font-weight:700;
  margin-bottom:22px;
}
.about__body p{
  font-size:16.5px; line-height:1.72;
  margin-bottom:17px;
}
.about__pills{ display:flex; flex-wrap:wrap; gap:8px; margin-top:28px; }
.about__pills span{
  font-size:13px; font-weight:600;
  padding:8px 15px; border-radius:100px;
  border:1px solid var(--line); color:var(--ink-strong);
  background:var(--cream);
  transition:border-color .3s var(--ease), color .3s var(--ease), background-color .3s var(--ease);
}
.about__pills span:hover{ border-color:var(--blue); color:var(--blue-ink); background:rgba(var(--blue-rgb),.06); }

/* ==========================================================================
   Timeline
   ========================================================================== */

.tl{ position:relative; }
.tl::before{
  content:''; position:absolute;
  left:7px; top:10px; bottom:10px; width:2px;
  background:linear-gradient(to bottom, var(--blue), rgba(var(--blue-rgb),.18));
  border-radius:2px;
}

.tl__item{
  position:relative;
  padding-left:44px;
  padding-bottom:clamp(40px,5vw,60px);
}
.tl__item:last-child{ padding-bottom:0; }

.tl__marker{
  position:absolute; left:0; top:8px;
  width:16px; height:16px; border-radius:50%;
  background:var(--cream);
  border:4px solid var(--blue);
  box-shadow:0 0 0 5px rgba(var(--blue-rgb),.12);
}

.tl__date{
  display:inline-block;
  font-size:12.5px; font-weight:700; letter-spacing:.11em; text-transform:uppercase;
  color:var(--blue-ink);
  margin-bottom:9px;
}
.tl__date em{ font-style:normal; }
.tl__role{
  font-size:clamp(20px,2.5vw,27px);
  line-height:1.2; font-weight:700;
  margin-bottom:5px;
}
.tl__org{
  font-size:15px; font-weight:500; color:var(--ink); opacity:.8;
  margin-bottom:24px;
}

.tl__projects{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:14px;
}
.proj{
  position:relative;
  background:var(--white);
  border:1px solid var(--line);
  border-left:3px solid rgba(var(--blue-rgb),.28);
  border-radius:5px 15px 15px 5px;
  padding:22px 24px;
  transition:transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-left-color .4s var(--ease);
}
.proj:hover{
  transform:translateX(4px);
  border-left-color:var(--blue);
  box-shadow:0 18px 38px -26px rgba(28,32,36,.45);
}
.proj h4{
  font-size:16px; line-height:1.35; font-weight:700;
  margin-bottom:9px;
}
.proj p{ font-size:14.5px; line-height:1.6; color:var(--ink); }
.proj__since{
  display:inline-block;
  font-family:var(--body);
  font-size:11px; font-weight:700; letter-spacing:.07em; text-transform:uppercase;
  color:var(--blue-ink);
  background:rgba(var(--blue-rgb),.1);
  padding:3px 8px; border-radius:5px;
  vertical-align:middle;
  white-space:nowrap;
}

.proj--hl{
  background:linear-gradient(158deg, rgba(var(--blue-rgb),.055), var(--white) 58%);
  border-left-color:var(--blue);
}
.proj__kpi{
  display:inline-flex; flex-direction:column; align-items:flex-start;
  margin-top:15px; padding-top:14px;
  border-top:1px dashed rgba(var(--blue-rgb),.32);
  width:100%;
  font-family:var(--display);
  font-size:31px; font-weight:800; line-height:1;
  letter-spacing:-.035em;
  color:var(--blue);
  font-variant-numeric:tabular-nums;
}
.proj__kpi small{
  font-family:var(--body);
  font-size:11.5px; font-weight:600; letter-spacing:.08em; text-transform:uppercase;
  color:var(--ink); opacity:.72;
  margin-top:4px;
}

/* ==========================================================================
   Sectors
   ========================================================================== */

.sectors{
  display:grid; grid-template-columns:repeat(3,1fr);
  gap:clamp(14px,1.8vw,20px);
}
.sector{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:18px;
  padding:clamp(24px,3vw,32px);
  display:flex; flex-direction:column; align-items:flex-start;
  transition:transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .35s var(--ease);
}
.sector:hover{
  transform:translateY(-5px);
  border-color:rgba(var(--blue-rgb),.32);
  box-shadow:0 24px 46px -30px rgba(28,32,36,.42);
}
.sector__i{
  width:46px; height:46px;
  display:grid; place-items:center;
  border-radius:13px;
  background:rgba(var(--blue-rgb),.09);
  color:var(--blue);
  margin-bottom:18px;
}
.sector__i svg{ width:22px; height:22px; }
.sector b{
  font-family:var(--display);
  font-size:18px; font-weight:700; letter-spacing:-.015em;
  color:var(--ink-strong);
  margin-bottom:5px;
}
.sector small{ font-size:13.5px; line-height:1.5; color:var(--ink); opacity:.78; }

.sectors__note{
  margin-top:32px;
  font-size:14.5px; color:var(--ink); opacity:.72;
  max-width:70ch;
}

/* ==========================================================================
   Certifications
   ========================================================================== */

.certs{
  display:grid; grid-template-columns:repeat(3,1fr);
  gap:clamp(14px,1.8vw,20px);
}
.cert{
  position:relative;
  background:var(--white);
  border:1px solid var(--line);
  border-radius:18px;
  padding:clamp(24px,2.8vw,32px);
  display:flex; flex-direction:column;
  overflow:hidden;
  transition:transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .35s var(--ease);
}
.cert::after{
  content:''; position:absolute; right:-40px; top:-40px;
  width:120px; height:120px; border-radius:50%;
  background:radial-gradient(circle, rgba(var(--blue-rgb),.11), transparent 70%);
  transition:transform .55s var(--ease-out);
}
.cert:hover{
  transform:translateY(-5px);
  border-color:rgba(var(--blue-rgb),.32);
  box-shadow:0 24px 46px -30px rgba(28,32,36,.42);
}
.cert:hover::after{ transform:scale(1.45); }

.cert--wide{
  grid-column:span 3;
  background:linear-gradient(122deg, rgba(var(--blue-rgb),.07), var(--white) 52%);
  border-color:rgba(var(--blue-rgb),.24);
}

.cert__vendor{
  font-size:11.5px; font-weight:700; letter-spacing:.13em; text-transform:uppercase;
  color:var(--blue-ink);
  margin-bottom:12px;
  position:relative; z-index:1;
}
.cert h3{
  font-size:17px; line-height:1.35; font-weight:700;
  margin-bottom:8px;
  position:relative; z-index:1;
}
.cert--wide h3{ font-size:clamp(20px,2.5vw,27px); line-height:1.22; }
.cert p{ font-size:14.5px; color:var(--ink); position:relative; z-index:1; }
.cert__year{
  margin-top:auto; padding-top:18px;
  font-family:var(--display);
  font-size:14px; font-weight:700; letter-spacing:.04em;
  color:var(--ink); opacity:.5;
  position:relative; z-index:1;
}

/* ==========================================================================
   Skills
   ========================================================================== */

.skills{
  display:grid; grid-template-columns:repeat(4,1fr);
  gap:clamp(14px,1.8vw,20px);
}
.skill{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:18px;
  padding:clamp(24px,2.8vw,32px);
  transition:transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .35s var(--ease);
}
.skill:hover{
  transform:translateY(-5px);
  border-color:rgba(var(--blue-rgb),.32);
  box-shadow:0 24px 46px -30px rgba(28,32,36,.42);
}
.skill__n{
  display:block;
  font-family:var(--display);
  font-size:13px; font-weight:800; letter-spacing:.1em;
  color:var(--blue-ink);
  margin-bottom:14px;
}
.skill h3{
  font-size:18px; line-height:1.28; font-weight:700;
  margin-bottom:18px;
  padding-bottom:16px;
  border-bottom:1px solid var(--line);
}
.skill ul{ display:flex; flex-direction:column; gap:9px; }
.skill li{
  position:relative;
  padding-left:17px;
  font-size:14.5px; line-height:1.45; color:var(--ink);
}
.skill li::before{
  content:''; position:absolute; left:0; top:.62em;
  width:6px; height:6px; border-radius:50%;
  background:var(--blue); opacity:.55;
}

/* ==========================================================================
   Education & languages
   ========================================================================== */

.edu{
  display:grid; grid-template-columns:1fr 1fr;
  gap:clamp(34px,5vw,72px);
}
.edu__card{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:18px;
  padding:clamp(26px,3vw,36px);
}
.edu__icon{
  display:grid; place-items:center;
  width:48px; height:48px;
  border-radius:13px;
  background:rgba(var(--blue-rgb),.09);
  color:var(--blue);
  margin-bottom:20px;
}
.edu__icon svg{ width:24px; height:24px; }
.edu__card h3{
  font-size:21px; line-height:1.25; font-weight:700;
  margin-bottom:8px;
}
.edu__card p{ font-size:15.5px; color:var(--ink); opacity:.82; }

.langs{ display:flex; flex-direction:column; gap:22px; }
.langs__top{
  display:flex; justify-content:space-between; align-items:baseline; gap:14px;
  margin-bottom:9px;
}
.langs__top b{
  font-family:var(--display);
  font-size:17px; font-weight:700; color:var(--ink-strong);
}
.langs__top span{ font-size:13px; font-weight:500; color:var(--ink); opacity:.75; text-align:right; }
.bar{
  height:7px; border-radius:100px;
  background:rgba(62,67,72,.1);
  overflow:hidden;
}
.bar i{
  display:block; height:100%; width:var(--w);
  border-radius:100px;
  background:linear-gradient(90deg, var(--blue), var(--blue-2));
  transition:width 1.15s var(--ease-out);
}
/* animate from empty only when JS drives the reveal */
.js .reveal .bar i{ width:0; }
.js .reveal.is-in .bar i{ width:var(--w); }

/* ==========================================================================
   Side projects
   Placed last on purpose, and styled a notch quieter than the professional
   sections: no blue wash, thinner borders, monochrome until hover. It should
   add dimension without competing with the CV argument above it.
   ========================================================================== */

.section--side{ border-top:1px solid var(--line); }

.sechead__lead{
  margin-top:18px;
  font-size:16.5px; line-height:1.7;
  color:var(--ink); opacity:.9;
  max-width:64ch;
}

/* --- one panel per venture --- */
.sblock{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:20px;
  padding:clamp(24px,3.2vw,40px);
}
.sblock + .sblock{ margin-top:clamp(16px,2vw,24px); }

.sblock__head{
  display:flex; align-items:center; gap:18px; flex-wrap:wrap;
  padding-bottom:22px; margin-bottom:22px;
  border-bottom:1px solid var(--line);
}
.sblock__logo{
  width:60px; height:60px; flex-shrink:0;
  border-radius:15px;
  border:1px solid var(--line);
  background:var(--cream);
  object-fit:contain;
}
.sblock__logo--mark{
  display:grid; place-items:center;
  color:var(--blue-ink);
  border-color:rgba(var(--blue-rgb),.28);
  background:rgba(var(--blue-rgb),.08);
}
.sblock__logo--mark svg{ width:26px; height:26px; }

.sblock__kind{
  display:block;
  font-size:11.5px; font-weight:700; letter-spacing:.13em; text-transform:uppercase;
  color:var(--ink); opacity:.55;
  margin-bottom:5px;
}
.sblock__head h3{
  font-size:clamp(21px,2.6vw,27px); line-height:1.18; font-weight:700;
  margin-bottom:3px;
}
.sblock__tag{
  font-family:var(--display);
  font-size:15px; font-weight:500; font-style:italic;
  color:var(--blue-ink);
}
.sblock__go{
  display:inline-flex; align-items:center; gap:7px;
  margin-left:auto;
  padding:10px 18px; border-radius:100px;
  border:1px solid var(--line);
  font-size:13.5px; font-weight:600; color:var(--blue-ink);
  white-space:nowrap;
  transition:gap .3s var(--ease), border-color .3s var(--ease), background-color .3s var(--ease);
}
.sblock__go svg{ width:13px; height:13px; }
.sblock__go:hover{ gap:11px; border-color:rgba(var(--blue-rgb),.45); background:rgba(var(--blue-rgb),.06); }

.sblock__lead{
  font-size:16px; line-height:1.7; color:var(--ink);
  max-width:74ch;
  margin-bottom:24px;
}

.sblock__facts{
  display:flex; flex-wrap:wrap; gap:12px clamp(24px,4vw,52px);
  padding-bottom:26px; margin-bottom:26px;
  border-bottom:1px solid var(--line);
}
.sblock__facts span{ display:flex; flex-direction:column; gap:3px; }
.sblock__facts b{
  font-family:var(--display);
  font-size:clamp(24px,2.8vw,32px); font-weight:800; line-height:1;
  letter-spacing:-.03em; color:var(--blue);
  font-variant-numeric:tabular-nums;
}
.sblock__facts small{
  font-size:12.5px; font-weight:500; color:var(--ink); opacity:.72;
}

/* --- collections: each carries its own colour from the catalogue --- */
.cols{
  display:grid; grid-template-columns:repeat(3,1fr);
  gap:clamp(12px,1.6vw,18px);
}
.cols li{
  position:relative;
  padding:16px 18px 16px 20px;
  border-radius:4px 12px 12px 4px;
  background:var(--cream);
  border-left:3px solid var(--c, var(--blue));
}
.cols__n{
  position:absolute; top:14px; right:16px;
  font-family:var(--display);
  font-size:15px; font-weight:800; letter-spacing:-.02em;
  color:var(--c, var(--blue));
  font-variant-numeric:tabular-nums;
}
.cols b{
  display:block;
  font-family:var(--display);
  font-size:15.5px; font-weight:700; letter-spacing:-.01em;
  color:var(--ink-strong);
  margin-bottom:5px; padding-right:26px;
}
.cols small{ font-size:13px; line-height:1.5; color:var(--ink); opacity:.8; }

/* --- app rows --- */
.apps{ display:flex; flex-direction:column; gap:12px; }
.app{
  display:flex; gap:16px; align-items:flex-start;
  padding:18px 20px;
  border-radius:14px;
  background:var(--cream);
  border:1px solid transparent;
  transition:background-color .35s var(--ease), border-color .35s var(--ease), transform .4s var(--ease-out);
}
.app:hover{
  background:var(--white);
  border-color:rgba(var(--blue-rgb),.3);
  transform:translateX(4px);
}
.app img{
  width:54px; height:54px; flex-shrink:0;
  border-radius:13px;
  border:1px solid var(--line);
}
.app h4{
  font-size:17px; font-weight:700; line-height:1.2;
  margin-bottom:3px;
}
.app__kind{
  display:block;
  font-size:12px; font-weight:600; letter-spacing:.05em; text-transform:uppercase;
  color:var(--blue-ink);
  margin-bottom:9px;
}
.app__body p{ font-size:14.5px; line-height:1.62; color:var(--ink); }

/* ==========================================================================
   Contact + footer
   ========================================================================== */

.contact{
  position:relative;
  background:var(--near-black);
  color:rgba(255,255,255,.72);
  padding:clamp(76px,10vw,130px) 0 0;
  overflow:hidden;
}
.contact__glow{
  position:absolute; z-index:0;
  bottom:-46%; left:50%; transform:translateX(-50%);
  width:min(1200px,140vw); aspect-ratio:1.7/1;
  background:radial-gradient(ellipse at center, rgba(var(--blue-rgb),.38) 0%, rgba(var(--blue-rgb),.09) 44%, transparent 70%);
  pointer-events:none;
}
.contact__inner{
  position:relative; z-index:1;
  text-align:center;
  padding-bottom:clamp(64px,9vw,110px);
}
/* Deliberately oversized: it is a two-word closing statement, so it carries
   the same weight as the hero headline. */
.contact__title{
  color:#fff;
  font-size:clamp(46px,9vw,104px);
  line-height:1; font-weight:800;
  letter-spacing:-.04em;
  text-transform:uppercase;
  margin-bottom:24px;
}
.contact__lead{
  font-size:17px; line-height:1.65;
  max-width:56ch; margin-inline:auto;
  margin-bottom:40px;
}
.contact__mail{
  display:inline-block;
  font-family:var(--display);
  font-size:clamp(19px,3.3vw,38px);
  font-weight:700; letter-spacing:-.025em;
  color:#fff;
  padding-bottom:7px;
  background-image:linear-gradient(var(--blue),var(--blue));
  background-size:100% 2px; background-position:0 100%; background-repeat:no-repeat;
  transition:color .3s var(--ease), background-size .4s var(--ease);
  word-break:break-word;
}
.contact__mail:hover{ color:var(--blue-pale); background-size:100% 3px; }

.contact__links{
  display:flex; flex-wrap:wrap; gap:12px; justify-content:center;
  margin-top:40px;
}
.contact__links a{
  display:inline-flex; align-items:center; gap:9px;
  padding:12px 22px; border-radius:100px;
  border:1px solid var(--line-light);
  font-size:14.5px; font-weight:600; color:rgba(255,255,255,.86);
  transition:background-color .3s var(--ease), border-color .3s var(--ease), transform .35s var(--ease), color .3s var(--ease);
}
.contact__links a svg{ width:16px; height:16px; }
.contact__links a:hover{
  background:rgba(255,255,255,.09);
  border-color:rgba(255,255,255,.34);
  color:#fff;
  transform:translateY(-2px);
}

.foot{
  position:relative; z-index:1;
  border-top:1px solid var(--line-light);
  padding:26px 0;
}
.foot__inner{
  display:flex; flex-wrap:wrap; gap:10px;
  justify-content:space-between; align-items:center;
  font-size:13.5px; color:rgba(255,255,255,.52);
}

/* ==========================================================================
   Back to top
   ========================================================================== */

.totop{
  position:fixed; right:22px; bottom:22px; z-index:90;
  width:46px; height:46px;
  display:grid; place-items:center;
  background:var(--blue-ink); color:#fff;
  border-radius:50%;
  box-shadow:0 10px 26px -10px rgba(var(--blue-rgb),.8);
  opacity:0; visibility:hidden; transform:translateY(12px);
  transition:opacity .3s var(--ease), transform .3s var(--ease), visibility .3s, background-color .3s var(--ease);
}
.totop.is-on{ opacity:1; visibility:visible; transform:translateY(0); }
.totop:hover{ background:var(--blue-deep); }
.totop svg{ width:21px; height:21px; }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */

/* Scoped to .js so the site stays fully readable without JavaScript. */
.js .reveal{
  opacity:0;
  transform:translateY(22px);
  transition:opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.js .reveal.is-in{ opacity:1; transform:none; }
.js .reveal[data-delay="1"]{ transition-delay:.09s; }
.js .reveal[data-delay="2"]{ transition-delay:.18s; }
.js .reveal[data-delay="3"]{ transition-delay:.27s; }
.js .reveal[data-delay="4"]{ transition-delay:.36s; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width:1080px){
  .pillars{ grid-template-columns:1fr; }
  .cols{ grid-template-columns:repeat(2,1fr); }
  .skills{ grid-template-columns:repeat(2,1fr); }
  .sectors,.certs{ grid-template-columns:repeat(2,1fr); }
  .cert--wide{ grid-column:span 2; }
  .feature__inner{ grid-template-columns:1fr; }
  .about{ grid-template-columns:1fr; }
  .portrait{ max-width:190px; }
}

@media (max-width:900px){
  .nav__links{ display:none; }
  .nav__burger{ display:flex; }
  .nav__actions{ margin-left:auto; }
  .nav__cta{ display:none; }
  .stats{ grid-template-columns:repeat(2,1fr); }
  .edu{ grid-template-columns:1fr; }
}

@media (max-width:620px){
  body{ font-size:16px; }
  .hero__title{ max-width:none; letter-spacing:-.03em; }
  .sectors,.certs,.skills{ grid-template-columns:1fr; }
  .cert--wide{ grid-column:span 1; }
  .feature__badges{ grid-template-columns:repeat(2,1fr); }
  .tl__projects{ grid-template-columns:1fr; }
  .cols{ grid-template-columns:1fr; }
  .sblock__go{ margin-left:0; }
  .app{ flex-direction:column; gap:12px; }
  .nav__name{ display:none; }
  .foot__inner{ justify-content:center; text-align:center; }
  .totop{ right:14px; bottom:14px; }
}

@media (max-width:420px){
  .stats{ grid-template-columns:1fr; }
}

/* ==========================================================================
   Accessibility / print
   ========================================================================== */

@media (prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.01ms !important;
  }
  .js .reveal{ opacity:1; transform:none; }
  .js .reveal .bar i{ width:var(--w); transition:none; }
  .marquee__track{ animation:none; }
}

@media print{
  .nav,.drawer,.totop,.marquee,.hero__grid,.hero__glow,.contact__glow{ display:none !important; }
  body{ background:#fff; color:#000; font-size:11pt; }
  .reveal{ opacity:1 !important; transform:none !important; }
  .bar i{ width:var(--w) !important; }
  .section,.hero,.feature,.contact{ padding:18px 0 !important; break-inside:avoid; }
  .feature,.contact{ background:#fff !important; color:#000 !important; }
  .feature__title,.contact__title,.contact__mail{ color:#000 !important; }
  .pillar,.proj,.cert,.skill,.sector,.edu__card{ border:1px solid #ccc !important; box-shadow:none !important; }
  a{ text-decoration:underline; }
}
