/* ============================================================
   Jan Korsanke Portfolio — Redesign
   Cabinet Grotesk · Plain CSS · No framework
   ============================================================ */

/* --- Font: Cabinet Grotesk (self-hosted) -------------------- */
@font-face {
  font-family: 'Cabinet Grotesk';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url('/assets/fonts/cabinet-grotesk-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Cabinet Grotesk';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url('/assets/fonts/cabinet-grotesk-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Cabinet Grotesk';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url('/assets/fonts/cabinet-grotesk-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Cabinet Grotesk';
  font-style: normal;
  font-display: swap;
  font-weight: 800;
  src: url('/assets/fonts/cabinet-grotesk-800.woff2') format('woff2');
}

/* Fallback metrics minimise layout shift during font swap */
@font-face {
  font-family: 'Cabinet Grotesk Fallback';
  src: local('Arial');
  size-adjust: 104%;
  ascent-override: 90%;
  descent-override: 22%;
  line-gap-override: 0%;
}

/* --- Reset -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
img, video { max-width: 100%; display: block; }

/* --- Tokens ------------------------------------------------- */
:root {
  --font: 'Cabinet Grotesk', 'Cabinet Grotesk Fallback', system-ui, -apple-system, sans-serif;

  /* Backgrounds — warm off-white tinted toward brand hue */
  --color-bg:      oklch(97.5% 0.007 85);
  --color-bg-card: oklch(99.5% 0.004 85);
  --color-bg-ink:  oklch(15%   0.018 85);

  /* Text */
  --color-text:    oklch(16%   0.018 85);
  --color-muted:   oklch(50%   0.012 85);

  /* Borders */
  --color-border:  oklch(88%   0.010 85);

  /* Accent — sophisticated teal, 10% usage */
  --color-accent:     oklch(47%  0.115 228);
  --color-accent-mid: oklch(62%  0.095 228);
  --color-accent-bg:  oklch(95%  0.022 228);

  /* Layout */
  --max-width: 72rem;
  --space-section: clamp(4.5rem, 9vw, 8rem);

  /* Motion */
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-expo:  cubic-bezier(0.16, 1, 0.3, 1);

  /* Line height — increased in dark mode (light text reads lighter) */
  --line-height-body: 1.65;

  color-scheme: light;
}

/* --- Dark theme -------------------------------------------- */
html[data-theme="dark"] {
  /* Deep blue-black with subtle teal tint — not pure black */
  --color-bg:      oklch(13%   0.018 228);
  --color-bg-card: oklch(18%   0.016 228);
  /* Ink sections go slightly lighter in dark mode for elevation */
  --color-bg-ink:  oklch(21%   0.028 228);
  --color-text:    oklch(93%   0.007 228);
  --color-muted:   oklch(60%   0.010 228);
  --color-border:  oklch(26%   0.016 228);
  --color-accent:     oklch(65%  0.105 228);
  --color-accent-mid: oklch(70%  0.090 228);
  --color-accent-bg:  oklch(21%  0.032 228);
  --line-height-body: 1.72;
  color-scheme: dark;
}

/* --- Base --------------------------------------------------- */
html { scroll-behavior: smooth; overflow-anchor: none; }

body {
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: var(--line-height-body);
  color: var(--color-text);
  background: var(--color-bg);
  transition: background 0.25s var(--ease-out-quart), color 0.25s var(--ease-out-quart);
}

/* --- Accessibility ----------------------------------------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: 0.5rem 1rem;
  background: var(--color-accent);
  color: #fff;
  text-decoration: none;
  border-radius: 0 0 0.25rem 0.25rem;
  z-index: 100;
}
.skip-link:focus { top: 0; }

/* --- Layout ------------------------------------------------- */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-section) clamp(1.25rem, 5vw, 2.5rem);
}

/* --- Typography -------------------------------------------- */
h1 {
  font-size: clamp(2.75rem, 6vw + 0.75rem, 5rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

h3 {
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
a { color: var(--color-accent); }
a:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; border-radius: 2px; }

h1 em, h2 em {
  color: var(--color-accent);
  font-style: normal;
}

/* --- Section labels ---------------------------------------- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1.5rem;
}

/* --- Buttons ----------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.875rem;
  min-height: 2.75rem; /* 44px touch target */
  border-radius: 0.375rem;
  text-decoration: none;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1;
  letter-spacing: -0.01em;
  transition: transform 0.2s var(--ease-out-quart);
  cursor: pointer;
  border: none;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }

.btn--primary {
  background: var(--color-accent);
  color: #fff;
}

.btn--dark {
  background: var(--color-text);
  color: var(--color-bg);
}

.btn--light {
  background: oklch(97.5% 0.005 85);
  color: oklch(15% 0.018 85);
}

.btn--outline {
  background: transparent;
  color: var(--color-accent);
  border: 1.5px solid var(--color-accent);
}
.btn--outline:hover {
  transform: translateY(-2px);
  background: var(--color-accent);
  color: #fff;
}

/* --- Navigation -------------------------------------------- */
.site-header {
  border-bottom: 1px solid var(--color-border);
  padding: 1.25rem clamp(1.25rem, 5vw, 2.5rem);
  background: var(--color-bg);
  position: sticky;
  top: 0;
  z-index: 10;
  transition: background 0.25s var(--ease-out-quart);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
}

.nav__logo {
  font-weight: 800;
  font-size: 0.9375rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--color-text);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav__list a {
  text-decoration: none;
  color: var(--color-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.15s ease;
}
.nav__list a:not(.btn):hover { color: var(--color-text); }
/* Ensure btn colours are never overridden by the generic a rule above */
.nav__list .btn--primary { color: #fff; }
.nav__list .btn--outline  { color: var(--color-accent); }

/* --- Scroll reveal ----------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.65s var(--ease-out-expo),
    transform 0.65s var(--ease-out-expo);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.reveal:nth-child(2) { transition-delay: 0.07s; }
.reveal:nth-child(3) { transition-delay: 0.14s; }
.reveal:nth-child(4) { transition-delay: 0.21s; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --- Hero -------------------------------------------------- */
.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(5rem, 10vw, 9rem) clamp(1.25rem, 5vw, 2.5rem) clamp(4rem, 8vw, 7rem);
  position: relative;
  overflow: hidden;
}

/* Abstract geometric background element */
.hero__bg {
  position: absolute;
  right: -8%;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(280px, 48%, 560px);
  aspect-ratio: 1;
  pointer-events: none;
  color: var(--color-border);
  opacity: 0.7;
  z-index: 0;
}
.hero__bg svg { width: 100%; height: 100%; }

.hero__kicker {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.hero h1 {
  max-width: 16em;
  margin-bottom: 1.875rem;
  position: relative;
  z-index: 1;
}

.hero__lead {
  font-size: clamp(1.0625rem, 1.5vw + 0.4rem, 1.25rem);
  color: var(--color-muted);
  max-width: 36rem;
  margin-bottom: 2.75rem;
  line-height: 1.62;
  position: relative;
  z-index: 1;
}

.hero .btn { position: relative; z-index: 1; }

/* --- Pain section ------------------------------------------ */
.pain-list { margin-top: 2.5rem; }

.pain-item {
  margin: 0;
  padding: 1.875rem 0;
  border-top: 1px solid var(--color-border);
}
.pain-item:last-child { border-bottom: 1px solid var(--color-border); }

.pain-item p {
  font-size: clamp(1.0625rem, 1.8vw, 1.3125rem);
  font-style: italic;
  color: var(--color-muted);
  line-height: 1.55;
  margin: 0;
  max-width: 48rem;
  padding-left: 2.25rem;
  position: relative;
}

.pain-item p::before {
  content: '\201C';
  position: absolute;
  left: 0;
  top: -0.1em;
  font-size: 1.75em;
  font-style: normal;
  color: var(--color-accent-mid);
  font-weight: 800;
  line-height: 1;
}

/* --- ICP section (full-bleed dark) ------------------------- */
.icp-section { background: var(--color-bg-ink); }

.icp-section .section-label   { color: var(--color-accent-mid); }
.icp-section h2  { color: oklch(97% 0.005 85); }
.icp-section p  {
  color: oklch(72% 0.009 85);
  max-width: 48rem;
}

.icp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.875rem;
}

.icp-tag {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0.375rem 0.875rem;
  border: 1px solid oklch(38% 0.025 228);
  color: var(--color-accent-mid);
  border-radius: 2rem;
}

/* --- Pull quote (replaces border-left differentiator) ------ */
.pull-quote {
  font-size: clamp(1.1875rem, 2.5vw, 1.625rem);
  font-weight: 400;
  line-height: 1.55;
  color: var(--color-text);
  max-width: 53rem;
  padding-top: 1.875rem;
  border-top: 1px solid var(--color-border);
}

/* --- Journey (numbered steps) ------------------------------ */
.journey {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
}

.journey-step {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 2.5rem;
  padding: 2.75rem 0;
  border-top: 1px solid var(--color-border);
  align-items: start;
}

.journey-step__number {
  font-size: clamp(2.25rem, 3.5vw, 3rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--color-border);
  padding-top: 0.05em;
}

.journey-step--entry .journey-step__number { color: var(--color-accent); }

.journey-step__meta {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.journey-step h3 {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.625rem;
}

.journey-step p {
  font-size: 0.9375rem;
  color: var(--color-muted);
  margin-bottom: 0.875rem;
  max-width: 42rem;
}

.journey-step__outcome {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--color-accent);
}

/* --- Case studies (list) ----------------------------------- */
.case-studies { margin-top: 2rem; }

.case-study-card {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 2rem;
  padding: 2.25rem 0;
  border-top: 1px solid var(--color-border);
  align-items: baseline;
}
.case-study-card:last-child { border-bottom: 1px solid var(--color-border); }

.case-study-card__industry {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  padding-top: 0.3em;
}

.case-study-card h3 {
  font-size: clamp(1.0625rem, 2vw, 1.3125rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.375rem;
}

.case-study-card p {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin: 0;
}

.work-link {
  display: inline-flex;
  align-items: center;
  margin-top: 2rem;
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  color: var(--color-accent);
  text-decoration: none;
}
.work-link::after {
  content: ' →';
  display: inline-block;
  transition: transform 0.2s var(--ease-out-quart);
  white-space: pre;
}
.work-link:hover::after { transform: translateX(4px); }

/* --- Client section ---------------------------------------- */
.client-statement {
  font-size: clamp(1.0625rem, 1.8vw, 1.3125rem);
  color: var(--color-muted);
  max-width: 42rem;
  line-height: 1.55;
}

.client-logos {
  display: grid;
  /* Column widths match each logo's aspect ratio (w÷h), so every
     logo renders at the same visual height with no wasted space.
     Order: 50hertz | allianz | healthineers | media-lab |
            mb | o2 | roadsurfer | scout24 */
  grid-template-columns: 2.73fr 4.03fr 4fr 1.78fr 1.04fr 1.04fr 6.02fr 3.26fr;
  align-items: center;
  gap: clamp(2rem, 3.5vw, 3.25rem);
  margin-top: 2.5rem;
}

.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  opacity: 0.4;
  transition: opacity 0.2s ease-out;
}

.client-logo svg {
  width: 100%;
  height: auto;
  display: block;
  fill: currentColor;
}

.client-logo:hover { opacity: 0.75; }

/* --- CTA section (full-bleed dark) ------------------------- */
.cta-section { background: var(--color-bg-ink); }

.cta-section .section {
  text-align: center;
  max-width: 52rem;
}

.cta-section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: oklch(97% 0.005 85);
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.cta-body {
  color: oklch(70% 0.009 85);
  font-size: 1.0625rem;
  max-width: 36rem;
  margin: 0 auto 2.75rem;
}

.scarcity-note {
  font-size: 0.6875rem;
  font-weight: 600;
  color: oklch(52% 0.014 228);
  margin-top: 1.125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html[data-theme="dark"] .scarcity-note { color: var(--color-muted); }

/* --- Work page --------------------------------------------- */
.page-lead {
  font-size: clamp(1.0625rem, 1.5vw + 0.5rem, 1.25rem);
  color: var(--color-muted);
  max-width: 38rem;
  margin-top: 1rem;
}

.section--flush-top { padding-top: 0; }

.work-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--color-border);
}

.work-item {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 2rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--color-border);
  align-items: start;
}

.work-item__body h2 {
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  margin-bottom: 0.75rem;
}

.work-item__link {
  color: var(--color-text);
  text-decoration: none;
}
.work-item__link:hover { color: var(--color-accent); }

.work-item__description {
  color: var(--color-muted);
  font-size: 0.9375rem;
  margin-bottom: 0.75rem;
}

.work-item__status {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0;
}

/* --- About ------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

@media (min-width: 48rem) {
  .about-grid { grid-template-columns: 1fr 300px; align-items: start; }
}

.about-text h2.section-label { margin-top: 2.5rem; margin-bottom: 0.0625rem; }
.about-text h2:not(.section-label) { font-size: 1.25rem; margin-top: 2.5rem; }
.about-cta { display: flex; align-items: center; gap: 2rem; margin-top: 2.5rem; flex-wrap: wrap; }

.photo-placeholder {
  aspect-ratio: 4 / 5;
  background: oklch(91% 0.008 85);
  border-radius: 0.5rem;
}
html[data-theme="dark"] .photo-placeholder { background: var(--color-bg-card); }

.about-photo__img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.5rem;
}

/* --- CV entries -------------------------------------------- */
.cv-entry { margin-top: 1.25rem; }
.cv-entry__role { font-weight: 600; margin: 0; }
.cv-entry__meta { font-size: 0.875rem; color: var(--color-muted); margin: 0.125rem 0 0.25rem; }
.cv-entry p:last-child { margin: 0; }

/* --- Case study page --------------------------------------- */
.case-study__header { padding-bottom: 2rem; }

.case-study__back {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-muted);
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color 0.15s ease;
}
.case-study__back:hover { color: var(--color-text); }

.case-study__header h1 {
  max-width: 22em;
  margin-top: 1rem;
}

/* Hero image: landscape, natural aspect ratio with a max-height cap */
.case-study__hero {
  width: 100%;
  overflow: hidden;
}

.case-study__hero-img {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Section spacing within case study */
.case-study__section { padding-top: 3rem; padding-bottom: 0; }
.case-study__section:last-child { padding-bottom: var(--space-section); }

.case-study__content { max-width: 44rem; margin-top: 1.5rem; }
.case-study__content p { font-size: 1rem; line-height: 1.72; }

/* In-content images */
.case-study__image {
  margin-bottom: 2rem;
  border-radius: 0.5rem;
  overflow: hidden;
}
.case-study__image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Activity list */
.case-study__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.case-study__list li {
  padding: 0.875rem 0;
  border-top: 1px solid var(--color-border);
  font-size: 0.9375rem;
  line-height: 1.6;
  padding-left: 1.25rem;
  position: relative;
}
.case-study__list li:last-child { border-bottom: 1px solid var(--color-border); }
.case-study__list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}

/* Outcome paragraph — slightly larger */
.case-study__outcome-text {
  font-size: clamp(1.0625rem, 1.5vw + 0.3rem, 1.1875rem);
  line-height: 1.7;
  color: var(--color-text);
}

@media (max-width: 640px) {
  .case-study__hero-img { max-height: 280px; }
}

/* --- Impressum --------------------------------------------- */
.impressum h2 { font-size: 1.125rem; margin-top: 2rem; margin-bottom: 0.375rem; }

/* --- Footer ------------------------------------------------ */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 1.5rem clamp(1.25rem, 5vw, 2.5rem) 2.5rem;
  background: var(--color-bg);
  transition: background 0.25s var(--ease-out-quart);
}

.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.rap-quote {
  font-style: italic;
  color: var(--color-muted);
  font-size: 0.875rem;
  text-align: center;
  margin-bottom: 1.25rem;
}

.rap-quote-divider {
  border: none;
  border-top: 1px solid var(--color-border);
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-bottom: 1.75rem;
}

.footer-sustainability {
  font-size: 0.8125rem;
  color: var(--color-muted);
  max-width: 27rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-nav { list-style: none; display: flex; gap: 1.5rem; }
.footer-nav a {
  color: var(--color-muted);
  text-decoration: none;
  font-size: 0.875rem;
}
.footer-nav a:hover { color: var(--color-text); }

.footer-controls { display: flex; align-items: center; gap: 1rem; }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.lang-switch__current { color: var(--color-text); }
.lang-switch__divider { color: var(--color-border); }
.lang-switch__link    { color: var(--color-muted); text-decoration: none; }
.lang-switch__link:hover { color: var(--color-text); }

.theme-switch {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.theme-switch__btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  min-width: 2rem;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  transition: color 0.15s ease;
}
.theme-switch__btn:hover { color: var(--color-text); }
.theme-switch__btn.is-active { color: var(--color-text); }
.theme-switch__btn.is-active svg { stroke-width: 2; }
.theme-switch__btn:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; border-radius: 3px; }

/* --- Responsive -------------------------------------------- */
@media (max-width: 640px) {
  /* Tighten vertical section rhythm on small screens */
  :root { --space-section: clamp(3rem, 10vw, 4.5rem); }

  /* Hero: less top padding on mobile, background shape hidden */
  .hero {
    padding-top: clamp(3rem, 8vw, 5rem);
    padding-bottom: clamp(2.5rem, 6vw, 4rem);
  }
  .hero__bg { display: none; }

  /* Nav: reduce gap, add touch target padding to text links */
  .nav__list { gap: 1.25rem; }
  .nav__list a:not(.btn) { padding: 0.625rem 0.25rem; }
  .nav__list .btn { padding: 0.5rem 1rem; font-size: 0.875rem; }

  /* Journey: narrower number column */
  .journey-step {
    grid-template-columns: 3.5rem 1fr;
    gap: 1.5rem;
    padding: 2rem 0;
  }

  /* Case studies and work items: single column */
  .case-study-card {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    align-items: start;
  }
  .work-item { grid-template-columns: 1fr; gap: 0.75rem; }

  /* CTA section: full-width button, retain centred alignment */
  .cta-section .btn { width: 100%; }

  /* About photo: cap height so it doesn't tower on small screens */
  .photo-placeholder { max-height: 300px; }

  /* Footer: stack nav and controls vertically */
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .footer-nav a { padding: 0.375rem 0; display: inline-block; }
  .lang-switch__link { padding: 0.5rem 0.25rem; }
}

/* At 540px and below hide nav CTA to prevent overflow
   (it remains accessible via hero and page CTA sections) */
@media (max-width: 540px) {
  .nav__list li:last-child { display: none; }
}
