/* ============================================================
   PLESSI — Redesign
   Industrial & elegant · concrete black + caution yellow
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  /* surfaces */
  --bg:       #0c0c0d;
  --bg-2:     #131315;
  --bg-3:     #1b1b1e;
  --bg-card:  #161618;
  --line:     rgba(244, 241, 232, 0.12);
  --line-soft:rgba(244, 241, 232, 0.06);

  /* ink */
  --text:     #f4f1e8;
  --muted:    rgba(244, 241, 232, 0.56);
  --faint:    rgba(244, 241, 232, 0.34);

  /* accent — industrial caution yellow (brand) */
  --acc:      #fdd300;
  --acc-deep: #d9b300;
  --acc-ink:  #1a1500;

  /* type */
  --display: 'Archivo', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --maxw: 1440px;
  --pad: clamp(20px, 5vw, 88px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.5;
  overflow-x: hidden;
  letter-spacing: -0.01em;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--acc); color: var(--acc-ink); }

/* ---------- scrollbar ---------- */
body::-webkit-scrollbar { width: 10px; }
body::-webkit-scrollbar-track { background: var(--bg); }
body::-webkit-scrollbar-thumb { background: #2a2a2e; border-radius: 0; }

/* ============================================================
   SCROLL PROGRESS
   ============================================================ */
.progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--acc);
  z-index: 200;
  will-change: width;
}

/* ============================================================
   HEADER
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--pad);
  transition: padding .5s var(--ease), border-color .5s var(--ease);
  border-bottom: 1px solid transparent;
}
/* glass lives on a pseudo-element: keeps .nav from becoming a containing
   block (transform/backdrop-filter would trap the fixed mobile menu) */
.nav::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: transparent;
  transition: background .5s var(--ease);
}
.nav.solid {
  padding: 14px var(--pad);
  border-bottom: 1px solid var(--line-soft);
}
.nav.solid::before {
  background: rgba(12,12,13,0.9);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 21px; letter-spacing: 0.02em;
}
.brand .dot { width: 9px; height: 9px; background: var(--acc); display: inline-block; border-radius: 50%; }
.brand img { height: 30px; width: auto; display: block; }
.nav.solid .brand img { height: 27px; }
.nav-links { display: flex; gap: 6px; align-items: center;
  background: rgba(244,241,232,0.04); border: 1px solid var(--line-soft); border-radius: 100px; padding: 5px; backdrop-filter: blur(6px); }
.nav.solid .nav-links { background: rgba(244,241,232,0.05); }
.nav-links a {
  font-family: var(--display); font-size: 14.5px; font-weight: 500; letter-spacing: -0.01em;
  color: var(--muted); transition: color .25s var(--ease), background .25s var(--ease);
  position: relative; white-space: nowrap; padding: 9px 16px; border-radius: 100px;
}
.nav-links a:hover { color: var(--text); background: rgba(244,241,232,0.07); }
.nav-cta {
  font-family: var(--display); font-size: 14.5px; font-weight: 600;
  letter-spacing: -0.01em;
  padding: 11px 22px; border: 1px solid var(--line); border-radius: 100px;
  color: var(--text) !important;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--acc); color: var(--acc-ink) !important; border-color: var(--acc); transform: translateY(-1px); }
.nav-burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.nav-burger span { width: 26px; height: 2px; background: var(--text); }

@media (max-width: 900px) {
  /* glass bar via pseudo-element (never a containing block) */
  .nav {
    background: transparent;
    -webkit-backdrop-filter: none; backdrop-filter: none;
    border-bottom: 1px solid var(--line-soft);
    padding: 16px var(--pad);
  }
  .nav::before {
    background: rgba(12,12,13,0.55);
    -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  }
  .nav.solid {
    background: transparent;
    -webkit-backdrop-filter: none; backdrop-filter: none;
    padding: 13px var(--pad);
  }
  .nav.solid::before { background: rgba(12,12,13,0.72); }
  body.menu-open .nav::before { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav-burger { display: flex; position: relative; z-index: 97; }
  .nav-burger span { transition: transform .35s var(--ease), opacity .2s var(--ease); }
  .brand { position: relative; z-index: 97; }

  /* full-screen frosted menu — fades in, fully hidden when closed (no iOS ghosting) */
  .nav .nav-links,
  .nav.solid .nav-links {
    position: fixed; inset: 0; z-index: 95;
    flex-direction: column; justify-content: center; align-items: flex-start;
    gap: 2px; padding: 0 var(--pad);
    background: rgba(10,10,11,0.97);
    -webkit-backdrop-filter: blur(26px) saturate(1.3); backdrop-filter: blur(26px) saturate(1.3);
    border: 0; border-radius: 0;
    opacity: 0; visibility: hidden;
    transition: opacity .42s var(--ease), visibility 0s linear .42s;
  }
  body:not(.menu-open) .nav-links { pointer-events: none; }
  body.menu-open .nav-links { opacity: 1; visibility: visible; transition: opacity .42s var(--ease), visibility 0s; }
  .nav-links a {
    font-size: clamp(30px, 8vw, 50px); font-weight: 700; color: var(--text);
    padding: 11px 0; text-transform: uppercase; letter-spacing: -0.02em; border-radius: 0;
    opacity: 0; transform: translateY(16px);
    transition: opacity .45s var(--ease), transform .45s var(--ease), color .25s var(--ease);
  }
  body.menu-open .nav-links a { opacity: 1; transform: none; }
  body.menu-open .nav-links a:nth-child(1) { transition-delay: .10s; }
  body.menu-open .nav-links a:nth-child(2) { transition-delay: .16s; }
  body.menu-open .nav-links a:nth-child(3) { transition-delay: .22s; }
  body.menu-open .nav-links a:nth-child(4) { transition-delay: .28s; }
  body.menu-open .nav-links a:nth-child(5) { transition-delay: .34s; }
  .nav-links a:hover, .nav-links a:active { background: transparent; color: var(--acc); }

  .nav-cta {
    display: inline-flex; position: fixed; left: var(--pad); bottom: 46px; z-index: 96;
    opacity: 0; transform: translateY(18px); pointer-events: none; visibility: hidden;
    transition: opacity .4s var(--ease) .12s, transform .4s var(--ease) .12s, visibility 0s linear .52s;
  }
  body.menu-open .nav-cta { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity .4s var(--ease) .4s, transform .4s var(--ease) .4s, visibility 0s; }

  body.menu-open { overflow: hidden; }
  body.menu-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.menu-open .nav-burger span:nth-child(2) { opacity: 0; }
  body.menu-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ============================================================
   SHARED TYPE
   ============================================================ */
.kicker {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--acc);
  display: inline-flex; align-items: center; gap: 12px;
}
.kicker::before {
  content: ''; width: 26px; height: 1px; background: var(--acc); display: inline-block;
}
.kicker.plain::before { display: none; }

.display {
  font-weight: 800; line-height: 0.96; letter-spacing: -0.03em;
  font-size: clamp(34px, 6vw, 92px);
  text-transform: uppercase;
}
.h2 {
  font-weight: 800; line-height: 0.98; letter-spacing: -0.025em;
  font-size: clamp(30px, 4.6vw, 66px);
  text-transform: uppercase;
}
.lead {
  font-size: clamp(16px, 1.5vw, 21px); color: var(--muted);
  line-height: 1.62; font-weight: 400; max-width: 56ch;
  text-wrap: pretty;
}

/* line reveal */
.line-mask { overflow: hidden; display: block; }
.line-mask > span {
  display: block; transform: translateY(110%);
  transition: transform 1s var(--ease-out);
}
.in .line-mask > span { transform: translateY(0); }
.in .line-mask:nth-child(2) > span { transition-delay: .08s; }
.in .line-mask:nth-child(3) > span { transition-delay: .16s; }
.in .line-mask:nth-child(4) > span { transition-delay: .24s; }

/* kinetic word-by-word titles */
.kw { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .12em; margin-bottom: -.12em; }
.kw > span {
  display: inline-block; transform: translateY(120%) rotate(5deg); transform-origin: 0 100%;
  transition: transform .75s cubic-bezier(.16, 1, .3, 1);
  will-change: transform;
}
.kin-in .kw > span { transform: none; }
@media (prefers-reduced-motion: reduce) { .kw > span { transform: none !important; } }

/* generic reveal */
.reveal { opacity: 0; transform: translateY(38px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; }
.reveal.d2 { transition-delay: .2s; }
.reveal.d3 { transition-delay: .3s; }
.reveal.d4 { transition-delay: .4s; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 16px 26px; cursor: pointer; border: none;
  transition: transform .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
}
.btn .arr { transition: transform .35s var(--ease); display: inline-block; }
.btn:hover .arr { transform: translateX(6px); }
.btn-acc { background: var(--acc); color: var(--acc-ink); font-weight: 700; }
.btn-acc:hover { background: #fff; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--acc); color: var(--acc); }

/* section frame */
section { position: relative; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }

/* ============================================================
   HERO
   ============================================================ */
.hero { height: 100vh; min-height: 680px; position: relative; overflow: hidden; }
.hero-media { position: absolute; inset: -8% 0 0 0; height: 116%; will-change: transform; }
.hero-media img, .hero-media video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(0.12) contrast(1.04) brightness(0.72);
}
.hero-media .hero-video { z-index: 2; opacity: 0; transition: opacity 1.1s var(--ease); }
.hero-media .hero-video.playing { opacity: 1; }
.hero-media .hero-fallback { z-index: 1; }
.hero-grad {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(12,12,13,0.55) 0%, rgba(12,12,13,0.15) 38%, rgba(12,12,13,0.55) 72%, var(--bg) 100%),
    radial-gradient(120% 80% at 15% 90%, rgba(12,12,13,0.7), transparent 60%);
}
.hero-grid {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 100% 25%, 25% 100%;
}
.hero-inner {
  position: relative; z-index: 3; height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  padding-bottom: clamp(40px, 6vh, 70px);
}
.hero-content .kicker { color: var(--acc); margin-bottom: 26px; white-space: nowrap; }
.hero h1 { font-weight: 600; text-transform: none; letter-spacing: -0.035em; line-height: 1.0;
  font-size: clamp(38px, 6.6vw, 104px); max-width: 16ch; }
.hero h1 .y { color: var(--acc); }
.hero-lead {
  font-size: clamp(16px, 1.45vw, 20px); color: rgba(244,241,232,0.74); line-height: 1.6;
  max-width: 46ch; margin-top: 30px; font-weight: 400;
}
.hero-actions {
  display: flex; gap: 14px; flex-wrap: wrap; margin-top: 38px;
}
/* Entrance ONLY when JS has flagged the doc (html.anim) AND motion is allowed.
   Base state above stays fully visible, so content shows even if the
   animation timeline never ticks or JS never runs. */
@media (prefers-reduced-motion: no-preference) {
  html.anim .hero-content .kicker { opacity: 0; transform: translateY(16px); animation: heroUp .9s var(--ease-out) .15s forwards; }
  html.anim .hero-content h1 { opacity: 0; transform: translateY(24px); animation: heroUp 1s var(--ease-out) .28s forwards; }
  html.anim .hero-lead { opacity: 0; transform: translateY(20px); animation: heroUp 1s var(--ease-out) .42s forwards; }
  html.anim .hero-actions { opacity: 0; transform: translateY(20px); animation: heroUp 1s var(--ease-out) .56s forwards; }
}
/* Safety net: once flagged done, force visible no matter the animation state. */
html.anim-done .hero-content .kicker,
html.anim-done .hero-content h1,
html.anim-done .hero-lead,
html.anim-done .hero-actions { opacity: 1 !important; transform: none !important; }
@keyframes heroUp { to { opacity: 1; transform: none; } }

.scroll-cue {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 4; display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.2em; color: var(--faint);
  text-transform: uppercase;
}
.scroll-cue .bar { width: 1px; height: 46px; background: var(--line); position: relative; overflow: hidden; }
.scroll-cue .bar::after { content: ''; position: absolute; top: -50%; left: 0; width: 100%; height: 50%;
  background: var(--acc); animation: cue 1.9s var(--ease) infinite; }
@keyframes cue { 0% { top: -50%; } 60%,100% { top: 100%; } }

/* ============================================================
   MARQUEE (clients + ticker)
   ============================================================ */
.ticker { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; background: var(--bg); }
.ticker-track { display: flex; gap: 0; white-space: nowrap; width: max-content; animation: marq 34s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item {
  display: inline-flex; align-items: center; gap: 22px; padding: 22px 0;
  font-weight: 800; font-size: clamp(20px, 2.4vw, 34px); text-transform: uppercase; letter-spacing: -0.01em;
  color: var(--text);
}
.ticker-item .sep { width: 9px; height: 9px; background: var(--acc); margin: 0 40px; flex: none; transform: rotate(45deg); }
.ticker-item.muted { color: var(--faint); }
@keyframes marq { to { transform: translateX(-50%); } }

/* logo marquee — uniform monochrome */
.ticker-track.logos { align-items: center; }
.logo-item {
  display: inline-flex; align-items: center; justify-content: center;
  height: 96px; padding: 0 clamp(30px, 4.2vw, 68px); flex: none;
}
.logo-item img {
  max-height: 44px; max-width: 158px; width: auto; height: auto; object-fit: contain;
  filter: brightness(0) invert(1); opacity: 0.55;
  transition: opacity .35s var(--ease);
}
.logo-item:hover img { opacity: 0.95; }

/* ============================================================
   INTRO / STATEMENT
   ============================================================ */
.statement { padding: clamp(80px, 14vh, 170px) 0 clamp(40px, 6vh, 70px); }
.statement .big {
  font-weight: 600; font-size: clamp(26px, 3.7vw, 54px); line-height: 1.12; letter-spacing: -0.03em;
  text-wrap: balance; max-width: 22ch;
}
.statement .big .dim { color: var(--faint); }
.statement .big .acc { color: var(--acc); }

/* ============================================================
   PILLARS (editorial, lowercase — inspired by Ing. Ferrari)
   ============================================================ */
.pillars { padding: 0 0 clamp(70px, 12vh, 150px); }
.pill-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.pill { padding: clamp(34px, 4vw, 56px) clamp(22px, 2.4vw, 40px) clamp(40px, 5vw, 70px); border-left: 1px solid var(--line);
  position: relative; transition: background .45s var(--ease); }
.pill:first-child { border-left: none; padding-left: 0; }
.pill .pn { font-family: var(--mono); font-size: 12.5px; color: var(--acc); letter-spacing: 0.06em; }
.pill h3 { font-weight: 700; font-size: clamp(30px, 3.4vw, 50px); letter-spacing: -0.03em; line-height: 1;
  margin: 28px 0 18px; text-transform: lowercase; }
.pill h3::after { content: ''; display: block; width: 0; height: 3px; background: var(--acc); margin-top: 18px;
  transition: width .5s var(--ease); }
.pill:hover h3::after { width: 48px; }
.pill p { color: var(--muted); font-size: 15px; line-height: 1.6; max-width: 34ch; }
@media (max-width: 760px) {
  .pill-grid { grid-template-columns: 1fr; }
  .pill { border-left: none; border-top: 1px solid var(--line); padding-left: 0 !important; }
  .pill:first-child { border-top: none; }
}

/* sector chips on projects */
.sectors { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.sectors .chip {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.04em; text-transform: lowercase;
  color: var(--muted); border: 1px solid var(--line); border-radius: 100px; padding: 8px 15px;
  transition: color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.sectors .chip:hover { color: var(--acc-ink); background: var(--acc); border-color: var(--acc); }

/* ============================================================
   STATS
   ============================================================ */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: clamp(40px, 6vw, 76px) clamp(20px, 3vw, 44px); border-left: 1px solid var(--line); }
.stat:first-child { border-left: none; }
.stat .num { font-weight: 800; font-size: clamp(44px, 6vw, 96px); line-height: 1; letter-spacing: -0.04em; }
.stat .num .suf { color: var(--acc); }
.stat .lab { font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin-top: 14px; text-transform: uppercase; letter-spacing: 0.04em; }
@media (max-width: 760px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(odd) { border-left: none; }
  .stat:nth-child(3), .stat:nth-child(4) { border-top: 1px solid var(--line); }
}

/* ============================================================
   SERVICES
   ============================================================ */
.services { padding: clamp(90px, 14vh, 170px) 0 clamp(40px, 6vh, 80px); }
.serv-list { margin-top: clamp(46px, 7vh, 90px); border-top: 1px solid var(--line); }
.serv {
  display: grid; grid-template-columns: 90px 1.1fr 1.4fr auto; gap: 30px; align-items: center;
  padding: clamp(28px, 4vw, 52px) 0; border-bottom: 1px solid var(--line);
  position: relative; transition: padding .5s var(--ease);
}
.serv::before {
  content: ''; position: absolute; inset: 0; background: var(--acc); transform: scaleY(0); transform-origin: bottom;
  z-index: -1; transition: transform .5s var(--ease);
}
.serv .idx { font-family: var(--mono); font-size: 13px; color: var(--acc); transition: color .4s; }
.serv .name { font-weight: 800; font-size: clamp(24px, 3vw, 44px); text-transform: uppercase; letter-spacing: -0.02em; line-height: 1; transition: color .4s; }
.serv .desc { color: var(--muted); font-size: 15.5px; line-height: 1.55; transition: color .4s; max-width: 44ch; }
.serv .go { width: 56px; height: 56px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center;
  border-radius: 50%; transition: all .4s var(--ease); flex: none; }
.serv:hover { z-index: 1; }
.serv:hover::before { transform: scaleY(1); }
.serv:hover .idx, .serv:hover .name, .serv:hover .desc { color: var(--acc-ink); }
.serv:hover .desc { color: rgba(26,21,0,0.7); }
.serv:hover .go { border-color: var(--acc-ink); background: var(--acc-ink); }
.serv:hover .go svg { stroke: var(--acc); }
.serv .go svg { stroke: var(--text); transition: stroke .4s, transform .4s var(--ease); }
.serv:hover .go svg { transform: rotate(45deg); }
@media (max-width: 860px) {
  .serv { grid-template-columns: 1fr; gap: 14px; align-items: flex-start; padding: 30px 0; }
  .serv .go { display: none; }
  .serv:hover::before { transform: scaleY(0); }
  .serv:hover .idx, .serv:hover .name, .serv:hover .desc { color: inherit; }
  .serv:hover .desc { color: var(--muted); }
}

/* ============================================================
   DIVISIONS (full-bleed cinematic chapters — inspired by SpaceX)
   ============================================================ */
.divisions { background: #000; }
.div-panel { position: relative; height: 92vh; min-height: 560px; overflow: hidden; display: flex; align-items: flex-end; }
.div-panel .par { position: absolute; inset: -8% 0; height: 116%; will-change: transform; }
.div-panel .par img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.25) brightness(0.58) contrast(1.06); }
.div-panel .pg { position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.05) 30%, rgba(0,0,0,0.45) 68%, rgba(0,0,0,0.85) 100%); }
.div-panel .pc { position: relative; z-index: 2; width: 100%; padding: clamp(46px, 9vh, 110px) var(--pad); max-width: var(--maxw); margin: 0 auto; }
.div-panel .pk { font-family: var(--mono); font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--acc);
  display: inline-flex; align-items: center; gap: 12px; }
.div-panel .pk::before { content: ''; width: 26px; height: 1px; background: var(--acc); }
.div-panel h3 { font-weight: 900; text-transform: uppercase; letter-spacing: -0.035em; line-height: 0.92;
  font-size: clamp(40px, 7.5vw, 124px); margin: 22px 0 0; }
.div-panel .pl { color: rgba(244,241,232,0.8); font-size: clamp(15px, 1.5vw, 20px); line-height: 1.55; max-width: 46ch; margin: 22px 0 30px; }
.div-panel .pbtn {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 15px 26px; border: 1px solid rgba(244,241,232,0.4); color: var(--text);
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.div-panel .pbtn .arr { transition: transform .35s var(--ease); }
.div-panel .pbtn:hover { background: var(--acc); color: var(--acc-ink); border-color: var(--acc); }
.div-panel .pbtn:hover .arr { transform: translateX(6px); }
.div-panel .pnum { position: absolute; top: clamp(40px, 8vh, 90px); right: var(--pad); z-index: 2;
  font-family: var(--mono); font-size: 13px; color: rgba(244,241,232,0.45); letter-spacing: 0.1em; }
@media (max-width: 760px) { .div-panel { height: 78vh; min-height: 480px; } }

/* ============================================================
   ABOUT (parallax split)
   ============================================================ */
.about { padding: clamp(90px, 14vh, 170px) 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.about-media { position: relative; aspect-ratio: 4/5; overflow: hidden; }
.about-media img { width: 100%; height: 122%; object-fit: cover; filter: grayscale(0.25) contrast(1.05) brightness(0.8); will-change: transform; }
.about-media .tag {
  position: absolute; left: 0; bottom: 0; background: var(--acc); color: var(--acc-ink);
  font-family: var(--mono); font-size: 12px; padding: 14px 18px; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700;
}
.about-copy p { color: var(--muted); font-size: clamp(15px, 1.4vw, 18px); line-height: 1.7; margin-top: 22px; max-width: 50ch; }
.about-copy p strong { color: var(--text); font-weight: 600; }
.about-points { display: grid; gap: 0; margin-top: 38px; border-top: 1px solid var(--line); }
.about-points .pt { display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.about-points .pt .k { font-family: var(--mono); color: var(--acc); font-size: 12px; flex: none; width: 34px; }
.about-points .pt .v { font-size: 16px; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } .about-media { aspect-ratio: 16/11; } }

/* ============================================================
   PROJECTS (horizontal pinned)
   ============================================================ */
.projects { background: var(--bg); }
.proj-intro { padding: clamp(80px, 12vh, 150px) 0 clamp(40px, 6vh, 70px); }
.pin { height: 320vh; position: relative; }
.pin-stage { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; align-items: center; }
.pin-track { display: flex; gap: clamp(20px, 3vw, 44px); padding: 0 var(--pad); will-change: transform; }
.card {
  position: relative; flex: none; width: clamp(300px, 42vw, 560px); height: 70vh; overflow: hidden;
  background: var(--bg-2); border: 1px solid var(--line-soft);
}
.card img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.15) brightness(0.78) contrast(1.04); transition: transform 1s var(--ease), filter .6s; }
.card:hover img { transform: scale(1.06); filter: grayscale(0) brightness(0.92); }
.card-grad { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,12,13,0) 40%, rgba(12,12,13,0.92) 100%); }
.card-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px; z-index: 2; }
.card-body .meta { font-family: var(--mono); font-size: 11.5px; color: var(--acc); letter-spacing: 0.08em; text-transform: uppercase; }
.card-body .ttl { font-weight: 800; font-size: clamp(20px, 2.2vw, 30px); text-transform: uppercase; line-height: 1.02; margin-top: 12px; letter-spacing: -0.02em; }
.card .corner { position: absolute; top: 20px; right: 20px; font-family: var(--mono); font-size: 12px; color: var(--text); background: rgba(12,12,13,0.5); backdrop-filter: blur(6px); padding: 6px 10px; z-index: 2; }
.pin-head { position: absolute; top: 0; left: 0; right: 0; padding: 110px var(--pad) 0; z-index: 5; pointer-events: none; display: flex; justify-content: space-between; align-items: flex-start; }
.pin-prog { width: 140px; height: 2px; background: var(--line); position: relative; }
.pin-prog i { position: absolute; left: 0; top: 0; height: 100%; width: 0; background: var(--acc); }

@media (max-width: 860px) {
  .pin { height: auto; }
  .pin-stage { position: static; height: auto; display: block; padding: 30px 0 80px; }
  .pin-track { transform: none !important; flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: 20px; }
  .card { width: 80vw; height: 64vh; scroll-snap-align: center; }
  .pin-head { position: static; padding: 0 var(--pad) 20px; }
}

/* ============================================================
   ESG
   ============================================================ */
.esg { padding: clamp(90px, 14vh, 170px) 0; border-top: 1px solid var(--line); position: relative; overflow: hidden; }
.esg-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.esg-cards { display: grid; gap: 14px; }
.esg-card { border: 1px solid var(--line); padding: 26px 28px; transition: background .4s var(--ease), border-color .4s; }
.esg-card:hover { background: var(--bg-2); border-color: var(--acc); }
.esg-card .n { font-family: var(--mono); font-size: 12px; color: var(--acc); }
.esg-card h4 { font-weight: 700; font-size: 19px; margin: 12px 0 8px; }
.esg-card p { color: var(--muted); font-size: 14.5px; line-height: 1.55; }
@media (max-width: 860px) { .esg-grid { grid-template-columns: 1fr; } }

/* ============================================================
   CTA
   ============================================================ */
.cta { padding: clamp(100px, 18vh, 220px) 0; text-align: center; position: relative; overflow: hidden; }
.cta::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(60% 80% at 50% 120%, rgba(255,212,0,0.16), transparent 70%);
}
.cta .wrap { position: relative; z-index: 1; }
.cta h2 { font-weight: 900; text-transform: uppercase; letter-spacing: -0.035em; line-height: 0.92;
  font-size: clamp(40px, 8vw, 130px); }
.cta h2 .y { color: var(--acc); }
.cta .lead { margin: 28px auto 42px; text-align: center; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line); padding: clamp(60px, 9vh, 100px) 0 40px; background: var(--bg-2); }
.foot-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.foot-brand .brand { font-size: 30px; margin-bottom: 22px; }
.foot-brand .brand img { height: 50px; width: auto; }
.foot-brand p { color: var(--muted); font-size: 14.5px; line-height: 1.6; max-width: 32ch; }
.foot-col h5 { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--faint); margin-bottom: 18px; }
.foot-col a, .foot-col .li { display: block; color: var(--muted); font-size: 14.5px; padding: 7px 0; transition: color .25s; }
.foot-col a:hover { color: var(--acc); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  margin-top: clamp(50px, 8vh, 90px); padding-top: 28px; border-top: 1px solid var(--line); }
.foot-bottom .small { font-family: var(--mono); font-size: 12px; color: var(--faint); }
@media (max-width: 860px) { .foot-top { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
  .reveal, .line-mask > span { opacity: 1 !important; transform: none !important; }
}
