/* ITisWORKATION — L2 / Dynamic Edition */

:root {
  --cobalto: #1E40AF;
  --cobalto-deep: #0B1F66;
  --cobalto-ink: #06123F;
  --calce: #F7F4ED;
  --cotto: #E84F1B;
  --tufo: #CFA378;
  --azzurro: #4FB0D9;
  --corallo: #E08566;
  --basalto: #0A0A0A;
  --bianco: #FFFFFF;

  --font-display: 'Fraunces', 'DM Serif Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;

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

  --pad-x: clamp(20px, 4vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--cobalto-ink); color: var(--calce); }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  cursor: none;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: none; background: none; cursor: none; color: inherit; }
::selection { background: var(--cotto); color: var(--calce); }

/* ========= Custom cursor ========= */
.cursor, .cursor-dot {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .25s var(--ease), height .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
  mix-blend-mode: difference;
}
.cursor {
  width: 36px; height: 36px; border: 1.5px solid var(--calce); border-radius: 50%;
}
.cursor-dot {
  width: 6px; height: 6px; background: var(--calce); border-radius: 50%;
}
.cursor.is-hover { width: 80px; height: 80px; background: var(--cotto); border-color: var(--cotto); }
.cursor.is-hover + .cursor-dot { opacity: 0; }
@media (hover: none), (max-width: 768px) {
  body { cursor: auto; }
  .cursor, .cursor-dot { display: none; }
  a, button { cursor: pointer; }
}

/* ========= Type ========= */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2.4px;
  color: var(--tufo);
}
.huge {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(64px, 14vw, 220px);
  line-height: 0.88;
  letter-spacing: -0.04em;
  color: var(--calce);
}
.huge em { font-style: italic; color: var(--cotto); }
.huge .outline {
  -webkit-text-stroke: 1.5px var(--calce);
  color: transparent;
  font-style: italic;
}
h2.big {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(40px, 7vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: var(--calce);
}
h2.big em { font-style: italic; color: var(--cotto); }
.lead {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.5;
  color: rgba(247,244,237,0.78);
  max-width: 52ch;
}

/* ========= Header ========= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px var(--pad-x);
  mix-blend-mode: difference;
}
.nav__logo { height: 28px; }
.nav__logo img { height: 100%; filter: brightness(0) invert(1); }
.nav__links {
  display: flex; gap: 32px; align-items: center;
  font-size: 13px; letter-spacing: 0.02em;
}
.nav__links a { position: relative; color: var(--calce); }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; width: 100%; height: 1px;
  background: var(--cotto); transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta {
  border: 1px solid var(--calce); padding: 10px 18px; border-radius: 999px;
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  transition: background .35s var(--ease), color .35s var(--ease);
}
.nav__cta:hover { background: var(--cotto); border-color: var(--cotto); }
@media (max-width: 800px) { .nav__links a:not(.nav__cta):not(:last-child) { display: none; } }

/* ========= Hero ========= */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 var(--pad-x);
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  filter: brightness(0.45) saturate(1.1) contrast(1.05);
  transform: scale(1.05);
  transition: transform 8s var(--ease);
}
.hero.loaded .hero__bg { transform: scale(1); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(120% 80% at 20% 100%, rgba(6,18,63,.85), transparent 60%),
              linear-gradient(180deg, rgba(6,18,63,.45) 0%, rgba(6,18,63,.2) 40%, rgba(6,18,63,.9) 100%);
}
.hero__top, .hero__main, .hero__bottom { position: relative; z-index: 2; }
.hero__top {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 120px; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(247,244,237,0.7);
}
.hero__main {
  flex: 1; display: flex; align-items: center; padding: 40px 0;
}
.hero__title { text-align: left; }
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line span {
  display: inline-block; transform: translateY(110%);
  animation: slideUp 1.1s var(--ease) forwards;
}
.hero__title .line:nth-child(2) span { animation-delay: .12s; }
.hero__title .line:nth-child(3) span { animation-delay: .24s; }
@keyframes slideUp { to { transform: translateY(0); } }

.hero__bottom {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 32px;
  padding-bottom: 48px; flex-wrap: wrap;
}
.hero__meta { font-size: 13px; letter-spacing: 0.04em; color: rgba(247,244,237,0.75); max-width: 340px; }
.hero__cta {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 18px 28px; background: var(--cotto); color: var(--calce);
  border-radius: 999px; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  transition: transform .4s var(--ease), background .4s var(--ease);
  font-weight: 500;
}
.hero__cta:hover { transform: translateX(6px); background: var(--calce); color: var(--cobalto-ink); }
.hero__cta .arrow { transition: transform .4s var(--ease); }
.hero__cta:hover .arrow { transform: translateX(4px); }

.scroll-hint {
  display: flex; align-items: center; gap: 12px;
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
  color: rgba(247,244,237,0.6);
}
.scroll-hint .bar {
  display: block; width: 1px; height: 40px; background: var(--calce);
  animation: scrollPulse 2s var(--ease) infinite;
  transform-origin: top;
}
@keyframes scrollPulse {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ========= Marquee ========= */
.marquee {
  background: var(--cotto); color: var(--calce);
  border-top: 1px solid var(--cotto); border-bottom: 1px solid var(--cotto);
  overflow: hidden; padding: 22px 0;
  position: relative; z-index: 3;
}
.marquee__track {
  display: flex; gap: 60px; white-space: nowrap;
  animation: scroll-x 28s linear infinite;
  font-family: var(--font-display); font-style: italic; font-weight: 300;
  font-size: clamp(28px, 5vw, 60px); line-height: 1;
}
.marquee__track span.dot { color: rgba(247,244,237,0.5); margin: 0 8px; }
@keyframes scroll-x { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ========= Manifesto ========= */
.manifesto {
  padding: clamp(100px, 14vw, 200px) var(--pad-x);
  position: relative;
}
.manifesto__inner { max-width: 1280px; margin: 0 auto; }
.manifesto__head {
  display: flex; gap: 60px; align-items: flex-start; flex-wrap: wrap;
  margin-bottom: 80px;
}
.manifesto__head .eyebrow { flex: 0 0 auto; padding-top: 14px; }
.manifesto p.statement {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(28px, 4vw, 56px); line-height: 1.15;
  color: var(--calce); letter-spacing: -0.015em;
  max-width: 22ch;
}
.manifesto p.statement em { color: var(--cotto); font-style: italic; }

.gap-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  border-top: 1px solid rgba(247,244,237,0.15);
  padding-top: 60px;
}
.gap-row .num {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(80px, 14vw, 200px); line-height: 0.9;
  color: var(--cotto); letter-spacing: -0.04em;
}
.gap-row .num.muted { color: rgba(247,244,237,0.25); -webkit-text-stroke: 1px rgba(247,244,237,0.4); }
.gap-row p { color: rgba(247,244,237,0.75); margin-top: 16px; max-width: 28ch; }
@media (max-width: 720px) { .gap-row { grid-template-columns: 1fr; gap: 40px; } }

/* ========= Pillars (exploratory hover panels) ========= */
.pillars {
  display: grid; grid-template-columns: repeat(3, 1fr);
  min-height: 90vh; background: var(--cobalto-ink);
  border-top: 1px solid rgba(247,244,237,0.08);
}
.pillar {
  position: relative; overflow: hidden;
  border-right: 1px solid rgba(247,244,237,0.08);
  padding: 48px 36px;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 90vh;
  transition: flex .8s var(--ease);
}
.pillar:last-child { border-right: none; }
.pillar__bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  opacity: 0.15; filter: saturate(1.1);
  transform: scale(1.05);
  transition: opacity .8s var(--ease), transform 1.2s var(--ease);
}
.pillar:hover .pillar__bg { opacity: 0.55; transform: scale(1); }
.pillar::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(6,18,63,0.4) 0%, rgba(6,18,63,0.85) 100%);
}
.pillar > * { position: relative; z-index: 2; }
.pillar__num {
  font-family: var(--font-display); font-style: italic; font-size: 14px;
  color: var(--tufo); letter-spacing: 0.12em;
}
.pillar__title {
  font-family: var(--font-display); font-weight: 300; font-style: italic;
  font-size: clamp(40px, 5.5vw, 80px); line-height: 0.95;
  color: var(--calce); letter-spacing: -0.025em;
  margin-top: auto;
}
.pillar__tagline {
  font-size: 14px; color: rgba(247,244,237,0.7);
  margin-top: 16px; max-width: 24ch;
  opacity: 0; transform: translateY(8px);
  transition: opacity .5s var(--ease) .1s, transform .5s var(--ease) .1s;
}
.pillar:hover .pillar__tagline { opacity: 1; transform: translateY(0); }
.pillar__cta {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 28px;
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--cotto);
}
.pillar__cta .arrow { transition: transform .4s var(--ease); }
.pillar:hover .pillar__cta .arrow { transform: translateX(8px); }
@media (max-width: 900px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar { min-height: 60vh; border-right: none; border-bottom: 1px solid rgba(247,244,237,0.08); }
  .pillar__bg { opacity: 0.45; }
  .pillar__tagline { opacity: 1; transform: none; }
}

/* ========= Gallery scroll ========= */
.gallery {
  padding: clamp(80px, 12vw, 160px) 0;
  background: var(--cobalto-ink);
}
.gallery__head {
  padding: 0 var(--pad-x); max-width: 1280px; margin: 0 auto 60px;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap;
}
.gallery__track {
  display: flex; gap: 24px; padding: 0 var(--pad-x);
  overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__item {
  flex: 0 0 clamp(280px, 38vw, 520px);
  scroll-snap-align: start;
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: 4px;
}
.gallery__item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease), filter .6s var(--ease);
  filter: saturate(0.95) brightness(0.9);
}
.gallery__item:hover img { transform: scale(1.06); filter: saturate(1.1) brightness(1); }
.gallery__cap {
  position: absolute; left: 20px; bottom: 20px;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--calce); z-index: 2;
}
.gallery__item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(6,18,63,0.7));
  z-index: 1;
}

/* ========= Numbers strip ========= */
.numbers {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(247,244,237,0.12);
  border-bottom: 1px solid rgba(247,244,237,0.12);
}
.numbers__cell {
  padding: 60px 32px; text-align: left;
  border-right: 1px solid rgba(247,244,237,0.12);
}
.numbers__cell:last-child { border-right: none; }
.numbers__cell .n {
  font-family: var(--font-display); font-style: italic; font-weight: 300;
  font-size: clamp(48px, 7vw, 96px); line-height: 1;
  color: var(--cotto); letter-spacing: -0.03em;
}
.numbers__cell .l { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(247,244,237,0.65); margin-top: 12px; }
@media (max-width: 720px) {
  .numbers { grid-template-columns: 1fr 1fr; }
  .numbers__cell:nth-child(2n) { border-right: none; }
  .numbers__cell:nth-child(-n+2) { border-bottom: 1px solid rgba(247,244,237,0.12); }
}

/* ========= CTA ========= */
.cta {
  padding: clamp(100px, 14vw, 180px) var(--pad-x);
  text-align: center;
  position: relative; overflow: hidden;
}
.cta::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 60% at 50% 50%, rgba(232,79,27,0.18), transparent 70%);
  pointer-events: none;
}
.cta__inner { position: relative; z-index: 2; max-width: 1100px; margin: 0 auto; }
.cta h2.big { margin-bottom: 40px; }
.cta__btn {
  display: inline-flex; align-items: center; gap: 16px;
  padding: 22px 36px; background: var(--cotto); color: var(--calce);
  border-radius: 999px; font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 500;
  transition: transform .4s var(--ease), background .4s var(--ease);
}
.cta__btn:hover { transform: scale(1.04); background: var(--calce); color: var(--cobalto-ink); }
.cta__small { margin-top: 24px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(247,244,237,0.5); }

/* ========= Footer ========= */
.foot {
  padding: 80px var(--pad-x) 40px;
  border-top: 1px solid rgba(247,244,237,0.12);
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  font-size: 13px;
}
.foot h4 { font-family: var(--font-body); font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--tufo); margin-bottom: 16px; }
.foot a { color: rgba(247,244,237,0.7); display: block; padding: 4px 0; transition: color .3s; }
.foot a:hover { color: var(--cotto); }
.foot__logo img { height: 34px; filter: brightness(0) invert(1); margin-bottom: 16px; }
.foot__brand p { color: rgba(247,244,237,0.6); max-width: 36ch; }
.foot__bottom {
  grid-column: 1 / -1;
  margin-top: 40px; padding-top: 24px;
  border-top: 1px solid rgba(247,244,237,0.1);
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(247,244,237,0.45);
}
@media (max-width: 800px) { .foot { grid-template-columns: 1fr 1fr; } .foot__brand { grid-column: 1 / -1; } }

/* ========= Reveal on scroll ========= */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .12s; }
.reveal-d2 { transition-delay: .24s; }
.reveal-d3 { transition-delay: .36s; }

/* ========= Page header (inner pages) ========= */
.page-hero {
  min-height: 70vh; padding: 160px var(--pad-x) 80px;
  display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
}
.page-hero__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: brightness(0.4); z-index: 0;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,18,63,0.4), rgba(6,18,63,0.9));
  z-index: 1;
}
.page-hero__inner { position: relative; z-index: 2; max-width: 1280px; margin: 0 auto; width: 100%; }
.page-hero .huge { font-size: clamp(56px, 11vw, 160px); }

/* ========= Inner content ========= */
.section { padding: clamp(80px, 12vw, 160px) var(--pad-x); }
.section__inner { max-width: 1280px; margin: 0 auto; }
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
@media (max-width: 800px) { .split { grid-template-columns: 1fr; gap: 40px; } }
.split img { border-radius: 4px; width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.split h3 {
  font-family: var(--font-display); font-style: italic; font-weight: 300;
  font-size: clamp(32px, 5vw, 64px); line-height: 1; color: var(--calce);
  margin-bottom: 24px; letter-spacing: -0.02em;
}
.split p { color: rgba(247,244,237,0.78); margin-bottom: 16px; }

/* ========= Tags ========= */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tag {
  padding: 8px 14px; border: 1px solid rgba(247,244,237,0.25); border-radius: 999px;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(247,244,237,0.8);
  transition: background .3s, color .3s, border-color .3s;
}
.tag:hover { background: var(--cotto); border-color: var(--cotto); color: var(--calce); }

/* ========= Card grid ========= */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }
.card {
  position: relative; overflow: hidden; border-radius: 4px;
  aspect-ratio: 4/5;
}
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.card:hover img { transform: scale(1.06); }
.card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(6,18,63,0.9)); }
.card__body {
  position: absolute; left: 24px; right: 24px; bottom: 24px; z-index: 2;
}
.card h4 {
  font-family: var(--font-display); font-style: italic; font-weight: 300;
  font-size: 28px; line-height: 1; color: var(--calce); margin-bottom: 8px;
}
.card p { font-size: 13px; color: rgba(247,244,237,0.8); }

/* ========= Util ========= */
.text-cotto { color: var(--cotto); }
.text-tufo { color: var(--tufo); }
.mt-4 { margin-top: 32px; }
.mt-6 { margin-top: 48px; }
