/* Marika Kauranen — v8 layout
   Section system inspired by a clean editorial portfolio: generous section rhythm,
   eyebrow + serif headline heads, rounded cards, alternating dark / light bands,
   gentle scroll reveals. Palette stays black / white / red. */

:root {
  --black: #050708;
  --black-2: #0d1012;
  --black-3: #16181c;
  --white: #ffffff;
  --paper: #ffffff;
  --sand: #f4f1ed;
  --sand-2: #ebe6df;
  --text: #15171a;
  --text-2: #3a3e45;
  --muted: #62666e;
  --muted-dark: #a7a9ae;
  --line: #e4ded6;
  --line-dark: #2a2d33;
  --red: #ec1b23;
  --red-deep: #b3121a;
  --red-glow: #ff3b42;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 18px 50px -24px rgba(5, 7, 8, 0.35);
  --shadow-lg: 0 30px 70px -30px rgba(5, 7, 8, 0.5);
  --shadow-dark: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
  --banner-h: 2.15rem;
  --header-h: 4.4rem;
  --max: 1160px;
  --font-serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-sans: "Source Sans 3", "Source Sans Pro", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--red); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}
h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.15rem; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--black); color: var(--white); padding: 0.6rem 1rem; border-radius: 99px;
}
.skip-link:focus { top: 0.6rem; color: var(--white); }

/* ---------- Preview banner ---------- */
.preview-banner {
  height: var(--banner-h);
  display: flex; align-items: center; justify-content: center;
  background: var(--black); color: var(--white);
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600;
  padding: 0 0.75rem; text-align: center;
  border-bottom: 1px solid var(--line-dark);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(5, 7, 8, 0.82);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  color: var(--white);
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled {
  border-color: var(--line-dark);
  background: rgba(5, 7, 8, 0.92);
  box-shadow: 0 10px 30px -20px rgba(0, 0, 0, 0.9);
}
.header-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 1.5rem;
  min-height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: inherit; min-width: 0; }
.brand:hover { color: inherit; }
.brand-mark {
  width: 2.3rem; height: 2.3rem; border-radius: 50%;
  background: var(--white); color: var(--black);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.04em;
  flex-shrink: 0; position: relative;
}
.brand-mark::after {
  content: ""; position: absolute; top: -2px; right: -2px;
  width: 9px; height: 9px; border-radius: 50%; background: var(--red);
  box-shadow: 0 0 0 2px var(--black);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-serif); font-weight: 600; font-size: 1.1rem; }
.brand-place { font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted-dark); }

.site-nav { display: flex; align-items: center; gap: 0.2rem; }
.site-nav a {
  position: relative;
  text-decoration: none; color: rgba(255, 255, 255, 0.82);
  font-size: 0.93rem; font-weight: 500;
  padding: 0.45rem 0.7rem; border-radius: 99px;
  transition: color 0.2s, background 0.2s;
}
.site-nav a:hover { color: var(--white); background: rgba(255, 255, 255, 0.08); }
.site-nav a.is-active { color: var(--white); }
.site-nav a.is-active::after {
  content: ""; position: absolute; left: 50%; bottom: 0.15rem;
  width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--red);
}
.site-nav a[href="#contact"] {
  background: var(--red); color: var(--white); margin-left: 0.5rem; padding: 0.5rem 1.1rem;
}
.site-nav a[href="#contact"]:hover { background: var(--red-deep); }
.site-nav a[href="#contact"].is-active::after { display: none; }

.nav-toggle { display: none; background: none; border: 0; padding: 0.5rem; cursor: pointer; color: var(--white); width: 44px; height: 44px; }
.nav-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 24px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform 0.3s var(--ease), background 0.2s;
}
.nav-toggle-bars { position: relative; margin: 0 auto; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.site-header.is-open .nav-toggle-bars { background: transparent; }
.site-header.is-open .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.site-header.is-open .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.6rem; border-radius: 99px; border: 2px solid transparent;
  font-family: var(--font-sans); font-weight: 600; font-size: 0.98rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s, color 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-primary:hover { color: var(--white); background: var(--red-deep); border-color: var(--red-deep); box-shadow: 0 14px 28px -14px rgba(236, 27, 35, 0.9); }
.btn-ghost { background: transparent; color: currentColor; border-color: currentColor; }
.btn-ghost:hover { background: var(--text); border-color: var(--text); color: var(--white); }

/* ---------- Shared section system ---------- */
.section { padding: 104px 0; position: relative; }
.section-inner { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; position: relative; }
.section-intro { max-width: 680px; margin-bottom: 52px; }
.section-kicker, .eyebrow {
  display: flex; align-items: center; gap: 0.7rem;
  font-family: var(--font-sans);
  font-size: 0.76rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700;
  color: var(--red); margin: 0 0 1rem;
}
.section-kicker span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.1rem; height: 2.1rem; padding: 0 0.4rem; border-radius: 99px;
  border: 1.5px solid currentColor; font-size: 0.72rem; letter-spacing: 0.06em;
}
.section-dek { color: var(--muted); font-size: 1.08rem; margin: 0; }

/* Light / sand / dark bands */
.featured-project, .expertise, .projects { background: var(--paper); }
.experience, .education { background: var(--sand); }
.about, .highlights, .contact { background: var(--black); color: var(--white); }
.about .section-dek, .highlights .section-dek, .contact .section-dek { color: var(--muted-dark); }
.about::before, .highlights::before, .contact::before {
  content: ""; position: absolute; pointer-events: none;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(236, 27, 35, 0.22), transparent 68%);
}
.about::before { right: -160px; top: -160px; }
.highlights::before { left: -200px; bottom: -220px; }
.contact::before { right: -180px; bottom: -200px; }
.about, .highlights, .contact { overflow: hidden; }

/* ---------- Hero ---------- */
.hero { background: var(--black); color: var(--white); position: relative; overflow: hidden; padding: 0; }
.hero-shapes { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(10px); }
.blob-a { width: 620px; height: 620px; right: -180px; top: -200px; background: radial-gradient(circle, rgba(236, 27, 35, 0.28), transparent 65%); animation: drift 18s ease-in-out infinite alternate; }
.blob-b { width: 420px; height: 420px; left: -160px; bottom: 10%; background: radial-gradient(circle, rgba(236, 27, 35, 0.12), transparent 70%); animation: drift 22s ease-in-out infinite alternate-reverse; }
.blob-c { width: 300px; height: 300px; left: 40%; top: 30%; background: radial-gradient(circle, rgba(255, 255, 255, 0.05), transparent 70%); }
@keyframes drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-40px, 30px, 0); } }

.hero-inner {
  position: relative;
  max-width: var(--max); margin: 0 auto;
  padding: 88px 1.5rem 96px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
  grid-template-areas: "copy aside";
  gap: 64px; align-items: center;
}
.hero-copy { grid-area: copy; }
.hero-aside { grid-area: aside; display: flex; flex-direction: column; align-items: center; gap: 28px; }

.hero .eyebrow { color: var(--red-glow); }
.hero h1 {
  font-size: clamp(3rem, 6.4vw, 5.4rem); font-weight: 500; line-height: 1.02;
  letter-spacing: -0.025em; margin: 0 0 1.4rem; color: var(--white);
}
.hero-purpose {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.25rem, 2.1vw, 1.6rem); line-height: 1.4;
  color: rgba(255, 255, 255, 0.92); margin: 0 0 2.2rem; max-width: 34ch;
}
.purpose-label {
  display: block; font-family: var(--font-sans); font-style: normal;
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700;
  color: var(--red-glow); margin-bottom: 0.6rem;
}

.hero-portrait { width: 100%; max-width: 360px; }
.portrait-ring {
  position: relative; aspect-ratio: 1; border-radius: 50%; padding: 10px;
  background: conic-gradient(from 210deg, var(--red), var(--red-glow), var(--red-deep), var(--red));
  box-shadow: var(--shadow-dark);
  animation: ringIn 1.2s var(--ease) both;
}
.portrait-ring picture { display: block; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; border: 6px solid var(--black); }
.portrait-avatar { width: 100%; height: 100%; object-fit: cover; animation: zoom 14s ease-out both; }
.portrait-glow { position: absolute; inset: -30px; border-radius: 50%; background: radial-gradient(circle, rgba(236, 27, 35, 0.35), transparent 65%); z-index: -1; }
@keyframes zoom { from { transform: scale(1.1); } to { transform: scale(1); } }
@keyframes ringIn { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: none; } }

.hero-langs {
  width: 100%; max-width: 360px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-dark);
  border-radius: var(--radius); padding: 10px 22px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.hero-langs li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 11px 0; border-bottom: 1px dashed var(--line-dark);
  font-size: 0.9rem; color: var(--muted-dark);
}
.hero-langs li:last-child { border-bottom: 0; }
.hero-langs span { color: var(--white); font-weight: 600; }

.proof-row {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px;
  margin: 0 0 2rem;
}
.proof {
  margin: 0; padding: 20px 20px 22px;
  background: var(--black-2); border: 1px solid var(--line-dark); border-radius: var(--radius-sm);
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.proof:hover { transform: translateY(-4px); border-color: rgba(236, 27, 35, 0.6); }
.proof-figure {
  margin: 0 0 0.4rem; font-family: var(--font-serif); font-weight: 600;
  font-size: clamp(2.4rem, 4vw, 3.2rem); line-height: 1; color: var(--red);
  font-variant-numeric: tabular-nums;
}
.proof-headline { margin: 0 0 0.5rem; font-family: var(--font-serif); font-weight: 600; font-size: 1.12rem; line-height: 1.25; color: var(--white); }
.proof-caption { font-size: 0.86rem; line-height: 1.45; color: var(--muted-dark); }

.hero-deck { color: rgba(255, 255, 255, 0.75); font-size: 1.05rem; max-width: 62ch; margin: 0 0 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero .btn-ghost { color: var(--white); }
.hero .btn-ghost:hover { background: var(--white); border-color: var(--white); color: var(--black); }

/* "What I bring" band — full-width light strip under the hero */
.drive-strip {
  position: relative;
  background: var(--sand);
  color: var(--text);
  padding: 72px max(1.5rem, calc((100% - var(--max)) / 2 + 1.5rem));
}
.drive-label {
  font-size: 0.76rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700;
  color: var(--red); margin: 0 0 1.4rem;
}
.drive-strip ul {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px;
}
.drive-strip li {
  position: relative; padding: 14px 18px 14px 46px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 1rem; line-height: 1.45; color: var(--text-2);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.drive-strip li:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.drive-strip li::before {
  content: ""; position: absolute; left: 18px; top: 1.15em;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--red); box-shadow: 0 0 0 4px rgba(236, 27, 35, 0.15);
}
.drive-places {
  margin: 1.6rem 0 0; font-family: var(--font-serif); font-style: italic;
  font-size: 1.15rem; color: var(--text-2);
}

/* ---------- Featured project ---------- */
.featured-era { margin-top: 8px; }
.featured-era + .featured-era { margin-top: 72px; }
.featured-era-title {
  display: flex; align-items: center; gap: 1rem;
  font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 0.6rem;
}
.featured-era-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.featured-era-dek { color: var(--muted); max-width: 62ch; margin: 0 0 28px; }
.featured-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.featured-cards li {
  position: relative; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 30px 26px; box-shadow: var(--shadow);
  overflow: hidden; transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.featured-cards li::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: var(--red); }
.featured-cards li:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.featured-cards p { color: var(--text-2); margin: 0 0 1rem; }
.featured-meta {
  font-size: 0.76rem !important; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700;
  color: var(--red) !important; margin: 0 !important;
}
.featured-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: start;
  margin-top: 28px;
}
.featured-hero { position: sticky; top: calc(var(--header-h) + 24px); }
.featured-hero-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.featured-hero-frame img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform 0.8s var(--ease); }
.featured-hero:hover .featured-hero-frame img { transform: scale(1.04); }
.featured-hero figcaption, .featured-rebrand figcaption { margin-top: 12px; font-size: 0.88rem; color: var(--muted); }
.featured-event { font-family: var(--font-serif); font-size: clamp(1.35rem, 2.2vw, 1.7rem); line-height: 1.25; color: var(--text); margin: 0 0 1.2rem; }
.featured-copy p { color: var(--text-2); }
.featured-copy .featured-meta { margin: 1.4rem 0 1.2rem !important; }
.featured-actions { margin: 0 0 2rem; }
.featured-copy .btn-ghost { color: var(--text); }
.featured-rebrand {
  background: var(--sand); border-radius: var(--radius); padding: 18px; max-width: 420px;
}
.featured-rebrand img { border-radius: var(--radius-sm); width: 100%; }

/* ---------- About (dark band) ---------- */
.about-copy {
  display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.1fr);
  column-gap: 72px; align-items: start;
}
.about-copy > .section-kicker { grid-column: 1; grid-row: 1; }
.about-copy h2 { grid-column: 1; grid-row: 2 / span 3; color: var(--white); margin: 0; font-size: clamp(2rem, 3.6vw, 2.8rem); }
.about-copy > p:not(.section-kicker) { grid-column: 2; font-size: 1.12rem; color: rgba(255, 255, 255, 0.78); margin: 0 0 1.1em; }
.about-copy > p:nth-of-type(2) { grid-row: 2; }
.about-copy > p:nth-of-type(3) { grid-row: 3; }
.about-copy > p:nth-of-type(4) { grid-row: 4; padding-left: 18px; border-left: 3px solid var(--red); color: var(--white); }
.about-copy h2 + p::first-letter {
  font-family: var(--font-serif); font-size: 3.8rem; float: left; line-height: 0.85;
  padding: 6px 12px 0 0; color: var(--red);
}
.about .section-kicker { color: var(--red-glow); }

/* ---------- Expertise ---------- */
.expertise-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.expertise-grid li {
  position: relative; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 28px 28px; box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}
.expertise-grid li::before {
  content: ""; display: block; width: 40px; height: 3px; border-radius: 3px; margin-bottom: 22px;
  background: var(--red); transition: width 0.4s var(--ease);
}
.expertise-grid li:hover::before { width: 72px; }
.expertise-grid li:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: rgba(236, 27, 35, 0.35); }
.expertise-grid h3 { font-size: 1.25rem; }
.expertise-grid p { margin: 0; color: var(--text-2); font-size: 1rem; }

/* ---------- Experience timeline ---------- */
.timeline { position: relative; max-width: 960px; }
.timeline::before {
  content: ""; position: absolute; left: 220px; top: 12px; bottom: 12px; width: 2px;
  background: linear-gradient(var(--red), rgba(236, 27, 35, 0.15));
}
.timeline li {
  position: relative; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 0;
  padding: 0 0 22px;
}
.timeline li::before {
  content: ""; position: absolute; left: 213px; top: 26px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--paper); border: 3px solid var(--red); z-index: 1;
  transition: background 0.3s, transform 0.3s var(--ease);
}
.timeline li:first-child::before { background: var(--red); box-shadow: 0 0 0 6px rgba(236, 27, 35, 0.18); }
.timeline li:hover::before { background: var(--red); transform: scale(1.15); }
.tl-meta { padding: 18px 32px 0 0; text-align: right; }
.tl-org { margin: 0; font-family: var(--font-serif); font-weight: 600; font-size: 1.05rem; line-height: 1.3; color: var(--text); }
.tl-org span { display: block; font-family: var(--font-sans); font-weight: 400; font-size: 0.85rem; color: var(--muted); }
.tl-dates { margin: 0.35rem 0 0; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: var(--red); }
.tl-body {
  margin-left: 36px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 18px 24px; box-shadow: 0 10px 30px -22px rgba(5, 7, 8, 0.35);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.timeline li:hover .tl-body { transform: translateX(4px); box-shadow: var(--shadow); }
.tl-body h3 { font-size: 1.15rem; margin: 0 0 0.3rem; }
.tl-body h3:last-child { margin: 0; }
.tl-body p { margin: 0; color: var(--text-2); font-size: 0.98rem; }

/* ---------- Highlights (dark band) ---------- */
.highlights h2 { color: var(--white); }
.highlights .section-kicker { color: var(--red-glow); }
.highlight-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.highlight-card {
  position: relative; background: var(--black-2); border: 1px solid var(--line-dark);
  border-radius: var(--radius); padding: 30px 30px 26px; overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.highlight-card::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(236, 27, 35, 0.22), transparent 70%); transition: transform 0.6s var(--ease);
}
.highlight-card:hover { transform: translateY(-5px); border-color: rgba(236, 27, 35, 0.55); }
.highlight-card:hover::after { transform: scale(1.4); }
.highlight-tag {
  display: inline-block; margin: 0 0 1rem; padding: 5px 12px; border-radius: 99px;
  background: rgba(236, 27, 35, 0.14); color: var(--red-glow);
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700;
}
.highlight-card h3 { color: var(--white); font-size: 1.35rem; }
.highlight-card p { color: rgba(255, 255, 255, 0.74); margin: 0 0 0.8rem; }
.highlight-placeholder { font-size: 0.88rem; font-style: italic; color: var(--muted-dark) !important; opacity: 0.8; }
.highlights-aside {
  margin: 34px 0 0; padding: 22px 26px; border-radius: var(--radius-sm);
  border: 1px dashed var(--line-dark); color: rgba(255, 255, 255, 0.78);
}

/* ---------- Projects gallery ---------- */
.project-gallery { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px; }
.project-slot { grid-column: span 2; }
.project-slot.is-tall { grid-column: span 3; }
.project-slot figure {
  height: 100%; display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.project-slot figure:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.project-frame { overflow: hidden; aspect-ratio: 4 / 3; }
.project-slot.is-tall .project-frame { aspect-ratio: 4 / 3; }
.project-slot[data-project-slot="stockholm-nis2"] .project-frame img { object-position: center 40%; }
.project-frame picture, .project-frame img { width: 100%; height: 100%; }
.project-frame img { object-fit: cover; transition: transform 0.8s var(--ease); }
.project-slot[data-project-slot="interview-filming"] .project-frame img { object-position: center 30%; }
.project-slot figure:hover .project-frame img { transform: scale(1.06); }
.project-slot figcaption { padding: 18px 22px 22px; }
.project-slot figcaption h3 { font-size: 1.12rem; margin: 0 0 0.2rem; }
.project-slot figcaption p { margin: 0; color: var(--muted); font-size: 0.93rem; }

/* ---------- Education & languages ---------- */
.edu-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.edu-grid > div {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow); height: 100%;
}
.edu-grid h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 1.4rem; }
.edu-list li { position: relative; padding: 16px 0 16px 26px; border-bottom: 1px dashed var(--line); }
.edu-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.edu-list li::before { content: ""; position: absolute; left: 0; top: 1.55rem; width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
.edu-list h3 { font-size: 1.12rem; margin: 0 0 0.2rem; }
.edu-list p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.lang-list li { display: flex; flex-direction: column; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.lang-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.lang-name { font-size: 0.76rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700; color: var(--red); }
.lang-level { font-family: var(--font-serif); font-size: 1.2rem; color: var(--text); }

/* ---------- Contact (dark band + white card) ---------- */
.contact-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: center;
}
.contact-intro h2 { color: var(--white); font-size: clamp(2.4rem, 5vw, 3.6rem); }
.contact-intro p:not(.section-kicker) { color: rgba(255, 255, 255, 0.78); font-size: 1.1rem; max-width: 44ch; }
.contact .section-kicker { color: var(--red-glow); }
.contact-intro .btn { margin: 0.8rem 0 1.4rem; }
.contact-note { font-size: 0.9rem !important; color: var(--muted-dark) !important; }
.contact-form {
  background: var(--paper); color: var(--text); border-radius: calc(var(--radius) + 6px);
  padding: clamp(26px, 4vw, 44px); box-shadow: var(--shadow-dark);
}
.form-placeholder-label {
  margin: 0 0 1.4rem; padding: 8px 14px; border-radius: 99px; display: inline-block;
  background: var(--sand); color: var(--muted); font-size: 0.8rem; font-weight: 600;
}
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: 12px 16px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--sand); color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(236, 27, 35, 0.12); background: var(--paper); }
.contact-form .btn { width: 100%; margin-top: 6px; }
.form-status { margin: 1rem 0 0; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--sand); color: var(--text-2); font-size: 0.95rem; }
.form-status.is-error { color: var(--red-deep); }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: var(--muted-dark); border-top: 1px solid var(--line-dark); }
.footer-inner {
  max-width: var(--max); margin: 0 auto; padding: 36px 1.5rem 40px;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  font-size: 0.92rem;
}
.footer-inner p { margin: 0; }
.footer-inner a { color: var(--white); }
.footer-inner a:hover { color: var(--red-glow); }

/* ---------- Scroll reveal ---------- */
.js .reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--delay, 0ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .hero-copy > * { animation: rise 0.9s var(--ease) both; }
.js .hero-copy > *:nth-child(2) { animation-delay: 0.08s; }
.js .hero-copy > *:nth-child(3) { animation-delay: 0.16s; }
.js .hero-copy > *:nth-child(4) { animation-delay: 0.24s; }
.js .hero-copy > *:nth-child(5) { animation-delay: 0.32s; }
.js .hero-copy > *:nth-child(6) { animation-delay: 0.4s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* Scroll progress bar (decorative) */
.site-header::after {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%;
  background: var(--red); transform-origin: 0 50%; transform: scaleX(var(--progress, 0));
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .site-nav a { padding: 0.45rem 0.5rem; font-size: 0.9rem; }
}

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; grid-template-areas: "aside" "copy"; gap: 44px; padding: 56px 1.5rem 72px; }
  .hero-aside { flex-direction: row; align-items: center; justify-content: center; flex-wrap: wrap; }
  .hero-portrait { max-width: 300px; }
  .expertise-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured-layout { grid-template-columns: 1fr; gap: 36px; }
  .featured-hero { position: static; }
  .project-slot, .project-slot.is-tall { grid-column: span 3; }
  .edu-grid, .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-copy { grid-template-columns: 1fr; }
  .about-copy > *, .about-copy h2, .about-copy > p:not(.section-kicker) { grid-column: 1 !important; grid-row: auto !important; }
  .about-copy h2 { margin-bottom: 1.4rem; }
}

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(5, 7, 8, 0.98); border-bottom: 1px solid var(--line-dark);
    max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease);
  }
  .site-header.is-open .site-nav { max-height: 34rem; }
  .site-nav a { padding: 14px 1.5rem; border-radius: 0; font-size: 1rem; }
  .site-nav a.is-active::after { left: auto; right: 1.5rem; top: 50%; bottom: auto; margin: -2.5px 0 0; }
  .site-nav a[href="#contact"] { margin: 10px 1.5rem 16px; border-radius: 99px; text-align: center; }
}

@media (max-width: 720px) {
  body { font-size: 1rem; }
  .preview-banner { font-size: 0.6rem; letter-spacing: 0.08em; }
  .hero-inner { grid-template-areas: "portrait" "copy" "langs"; gap: 36px; }
  .hero-aside { display: contents; }
  .hero-portrait { grid-area: portrait; justify-self: center; }
  .hero-langs { grid-area: langs; max-width: none; }
  .section { padding: 76px 0; }
  .section-intro { margin-bottom: 36px; }
  .hero-inner { padding: 44px 1.25rem 60px; }
  .hero-aside { flex-direction: column; }
  .hero-portrait { max-width: 220px; }
  .proof-row { grid-template-columns: 1fr; }
  .proof-row .proof:first-child { display: flex; align-items: center; gap: 18px; }
  .proof-row .proof:first-child .proof-figure { margin: 0; }
  .drive-strip { padding: 56px 1.25rem; }
  .drive-strip ul { grid-template-columns: 1fr; }
  .featured-cards, .highlight-grid, .expertise-grid { grid-template-columns: 1fr; }
  .project-gallery { grid-template-columns: 1fr; }
  .project-slot, .project-slot.is-tall { grid-column: auto; }
  .timeline::before { left: 7px; }
  .timeline li { grid-template-columns: 1fr; padding-left: 34px; }
  .timeline li::before { left: 0; top: 4px; }
  .tl-meta { text-align: left; padding: 0 0 10px; }
  .tl-org span { display: inline; }
  .tl-body { margin-left: 0; }
  .section-inner, .header-inner { padding-left: 1.25rem; padding-right: 1.25rem; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 420px) {
  .brand-place { display: none; }
  .hero h1 { font-size: 2.7rem; }
  .featured-cards li, .highlight-card, .expertise-grid li { padding: 24px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
.reduce-motion .reveal { opacity: 1 !important; transform: none !important; }
