/* === Base · pure black, deck aesthetic === */
:root {
  --bg: #000000;
  --text: #ffffff;
  --muted: rgba(255,255,255,0.65);
  --dim: rgba(255,255,255,0.4);
  --gold: #c9a961;
  --line: rgba(255,255,255,0.1);
  --max: 1280px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 300;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2 {
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

h1 { font-size: clamp(3rem, 7vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); margin-bottom: 3.5rem; }
h2:has(+ .section-sub) { margin-bottom: 1.2rem; }

.section-sub {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 3.5rem;
  max-width: 56ch;
  font-weight: 300;
}
.section-sub strong { color: var(--text); font-weight: 500; }
.section-sub em { color: var(--gold); font-style: italic; }

p { font-weight: 300; }

em { font-style: italic; font-weight: 300; }
strong { font-weight: 600; }

/* === Nav === */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem clamp(1.5rem, 4vw, 4rem);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(0,0,0,0.6);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
  transition: transform 0.25s;
}

.brand:hover .brand-icon { transform: scale(1.05); }

.nav nav {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  font-size: 0.85rem;
}

.nav nav a {
  color: var(--muted);
  transition: color 0.2s;
  font-weight: 400;
}

.nav nav a:hover { color: var(--text); }

.nav-cta {
  color: var(--gold) !important;
  font-weight: 500;
  margin-left: 0.4rem;
  transition: opacity 0.2s;
}

.nav-cta:hover { opacity: 0.8; }

@media (max-width: 760px) {
  .nav nav { gap: 1rem; font-size: 0.78rem; }
  .nav nav a:not(.nav-cta):nth-child(n+3) { display: none; }
  .nav-cta { margin-left: 0; }
}

/* === Slide layout === */
.slide {
  min-height: 100vh;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 8rem clamp(1.5rem, 5vw, 5rem) 5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* === Hero === */
.hero {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 5rem;
  align-items: center;
}

.hero h1 {
  margin-bottom: 0.4rem;
}

.kicker {
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 1.6rem;
}

.subtitle {
  font-style: italic;
  font-size: clamp(1.15rem, 1.6vw, 1.5rem);
  color: var(--text);
  font-weight: 300;
  margin-bottom: 3rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: all 0.25s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-peach {
  background: var(--gold);
  color: #18130a;
}

.btn-peach:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: rgba(255,255,255,0.18);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.bullets a { color: inherit; border-bottom: 1px solid rgba(201,169,97,0.4); transition: border-color 0.2s; }
.bullets a:hover { border-bottom-color: var(--gold); }

.bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.bullets li {
  position: relative;
  padding-left: 1.4rem;
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  color: var(--text);
}

.bullets li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--text);
}

.hero-photo img {
  width: 100%;
  height: auto;
  filter: grayscale(1) contrast(1.05);
}

@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; gap: 3rem; }
  .hero-photo { order: -1; max-width: 460px; }
}

/* === Logo wall === */
.logo-wall {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4rem 5rem;
  align-items: center;
  justify-items: center;
  margin-top: 2rem;
}

.logo-cell {
  width: 100%;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-cell img {
  /* Force every logo to pure white */
  filter: brightness(0) invert(1);
  max-height: 50px;
  max-width: 180px;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.92;
  transition: opacity 0.25s;
}

.logo-cell img:hover { opacity: 1; }

/* Some logos visually need slightly different scaling for parity */
.logo-cell img[alt="IBM"] { max-height: 40px; }
.logo-cell img[alt="Volvo"] { max-height: 70px; }
.logo-cell img[alt="Sandvik Coromant"] { max-height: 38px; }
.logo-cell img[alt="Wärtsilä"] { max-height: 60px; }
.logo-cell img[alt="Spotify"] { max-height: 38px; }
.logo-cell img[alt="ATEA"] { max-height: 32px; }

@media (max-width: 900px) {
  .logo-wall { grid-template-columns: repeat(3, 1fr); gap: 3rem 2rem; }
}
@media (max-width: 600px) {
  .logo-wall { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1.5rem; }
}

/* === Stories === */
.stories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4rem 3rem;
  margin-top: 1rem;
}

.story .stat {
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.story-label {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.story p:last-child {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 38ch;
}

@media (max-width: 880px) {
  .stories { grid-template-columns: 1fr; gap: 3rem; }
}

/* === Timeline === */
.timeline {
  list-style: none;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.timeline li {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 2rem;
  align-items: baseline;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.timeline li:last-child { border-bottom: 0; }

.t-year {
  font-style: italic;
  color: var(--gold);
  font-size: 1.1rem;
  font-weight: 400;
}

.timeline p {
  font-size: 1.1rem;
  color: var(--text);
  font-weight: 300;
}

@media (max-width: 600px) {
  .timeline li { grid-template-columns: 1fr; gap: 0.4rem; }
}

/* === Skills === */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem 6rem;
  max-width: 1000px;
}

.skills-grid.skills-three {
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem 4rem;
  max-width: 1100px;
}

@media (max-width: 900px) {
  .skills-grid.skills-three { grid-template-columns: 1fr; gap: 3rem; }
}

.skill-block .skill-label {
  font-size: 1.4rem;
  color: var(--text);
  margin-bottom: 1.2rem;
  font-weight: 300;
}

.skill-block p {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.skill-block p:not(.skill-label):not(:has(strong)) {
  color: var(--muted);
}

@media (max-width: 700px) {
  .skills-grid { grid-template-columns: 1fr; gap: 3rem; }
}

/* === Process === */
.process-line {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto 2rem;
  height: 80px;
}

.process-line svg {
  width: 100%;
  height: 100%;
}

.process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

.proc-col .proc-step {
  font-size: 1.2rem;
  margin-bottom: 1.4rem;
  font-weight: 300;
  line-height: 1.3;
}

.proc-col .proc-step strong { font-weight: 600; }

.proc-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.proc-col li {
  position: relative;
  padding-left: 1.2rem;
  font-size: 0.98rem;
  color: var(--text);
}

.proc-col li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.55rem;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

@media (max-width: 760px) {
  .process { grid-template-columns: 1fr; gap: 2rem; }
  .process-line { display: none; }
}

/* === Contact === */
.contact-block {
  max-width: 600px;
}

.contact-block .c-name {
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
}

.contact-block .c-role {
  color: var(--muted);
  margin-bottom: 2rem;
  font-size: 1rem;
}

.contact-block .c-line {
  font-size: 1.05rem;
  margin-bottom: 0.7rem;
}

.contact-block a:hover {
  color: var(--gold);
}

/* === Footer === */
.footer {
  padding: 2.5rem clamp(1.5rem, 5vw, 5rem);
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--dim);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.footer-links {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--gold); }

.footer-sep { color: var(--dim); }

@media (max-width: 600px) {
  .footer { justify-content: center; text-align: center; }
}

/* === Reveal === */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
