/* ---------------------------- Self-hosted fonts ---------------------------
   Served from this origin, so no visitor IP is ever sent to Google. Latin and
   Latin-Extended subsets only. Roboto ships as a variable font, so one file
   covers weights 300-700. Both families: SIL Open Font License 1.1.
   -------------------------------------------------------------------------- */

/* latin-ext */
@font-face {
  font-family: "Roboto";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/roboto-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: "Roboto";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/roboto-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/roboto-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/roboto-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: "Staatliches";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/staatliches-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: "Staatliches";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/staatliches-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   Daniel Vazquez Lang — portfolio
   Static site: no build step, no framework.
   Palette and type scale taken from the Claude Design concept.
   ========================================================================== */

/* --------------------------------- Tokens -------------------------------- */
:root {
  /* Brand palette — exact values from the design */
  --ink: #192c27;
  --deep: #0e1b17;
  --teal: #096a61;
  --teal-soft: #365951;
  --paper: #fbfcfc;
  --mint: #e6f0ee;
  --yellow: #fdd746;

  --font-display: "Staatliches", "Arial Narrow", sans-serif;
  --font-body: "Roboto", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Shared horizontal rhythm so every section lines up */
  --gutter: clamp(24px, 6vw, 88px);
  --shell: 1440px;

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

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

html {
  scroll-behavior: smooth;
  /* Keeps anchored sections clear of the sticky nav */
  scroll-padding-top: 88px;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover {
  color: var(--teal-soft);
}

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

/* Visible keyboard focus everywhere */
:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -120%);
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 20px;
  border-radius: 0 0 6px 6px;
  font-size: 14px;
  letter-spacing: 0.06em;
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translate(-50%, 0);
  color: var(--paper);
}

/* ------------------------------ Shared bits ------------------------------ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
}

.eyebrow__dash {
  width: 26px;
  height: 1.5px;
  background: var(--yellow);
  flex: none;
}

.accent {
  color: var(--teal);
}

.link-caps {
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-soft);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-radius: 100px;
  font-family: var(--font-body);
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

.btn--pill {
  background: var(--teal);
  color: var(--paper);
  padding: 11px 20px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.btn--pill:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn--primary {
  background: var(--teal);
  color: var(--paper);
  padding: 16px 30px;
  font-size: 15px;
  letter-spacing: 0.06em;
}

.btn--primary:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn__arrow {
  font-size: 18px;
  transition: transform 0.25s var(--ease-out);
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

/* --------------------------------- Nav ----------------------------------- */
.nav-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 252, 252, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(25, 44, 39, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 22px var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 1px;
  color: var(--ink);
}

.brand:hover {
  color: var(--ink);
}

.brand__mark {
  width: 11px;
  height: 11px;
  background: var(--teal);
  border-radius: 2px;
  transform: rotate(45deg);
}

.nav__list {
  display: none;
  align-items: center;
  gap: clamp(18px, 3vw, 40px);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-left: auto;
  margin-right: clamp(18px, 3vw, 40px);
}

.nav__list a {
  color: var(--teal-soft);
}

.nav__list a:hover {
  color: var(--teal);
}

/* Raised from 720px: with the language switcher added, the German labels
   ("KONTAKT AUFNEHMEN" is ~40px wider than "GET IN TOUCH") left only ~21px of
   slack at 720px, and the nav wrapped to two lines — which silently broke the
   88px scroll-padding-top the anchors depend on. */
@media (min-width: 900px) {
  .nav__list {
    display: flex;
  }
}

/* Nothing in the nav may wrap; a two-line nav breaks anchor offsets. */
.brand,
.nav__list a,
.btn--pill,
.lang__btn,
.legal-back {
  white-space: nowrap;
}

/* Guarantees the sticky bar keeps the height scroll-padding-top assumes. */
.nav-bar {
  min-height: 87px;
}

/* ---------------------------- Language switch ---------------------------- */
.lang {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  font-size: 13px;
  letter-spacing: 0.08em;
}

/* When the links are visible they own the auto margin instead. */
@media (min-width: 900px) {
  .lang {
    margin-left: 0;
    margin-right: clamp(14px, 2vw, 24px);
  }
}

.lang__btn {
  padding: 4px 2px;
  border: none;
  background: none;
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--teal-soft);
  cursor: pointer;
  transition: color 0.25s ease;
}

.lang__btn:hover,
.lang__btn:focus-visible {
  color: var(--teal);
}

/* Active language, matching the carousel dots' aria-current convention */
.lang__btn[aria-pressed="true"] {
  color: var(--ink);
  font-weight: 700;
}

.lang__sep {
  color: rgba(25, 44, 39, 0.25);
}

/* Hide the body until i18n has run, but only ever when JS added the class. */
.i18n-pending body {
  visibility: hidden;
}

/* --------------------------------- Hero ---------------------------------- */
.hero {
  padding: clamp(48px, 8vw, 110px) var(--gutter) clamp(60px, 9vw, 120px);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
  max-width: var(--shell);
  margin: 0 auto;
}

/* Grid items must be allowed to shrink below their content's intrinsic
   width, or the aspect-ratio portrait frame inflates the track and the
   whole page overflows horizontally on small screens. */
.hero__copy,
.hero__media {
  min-width: 0;
}

@media (min-width: 900px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }
}

.hero__eyebrow {
  margin-bottom: 28px;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(52px, 8.5vw, 132px);
  line-height: 0.92;
  letter-spacing: 0.5px;
  text-wrap: balance;
}

.hero__lede {
  max-width: 440px;
  margin-top: 32px;
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.55;
  color: var(--teal-soft);
}

.hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 40px;
}

/* Media: yellow disc behind, portrait in a 3:4 frame, badge overlapping */
.hero__media {
  position: relative;
  /* Keep the portrait a sensible size when it stacks under the copy */
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
}

@media (min-width: 900px) {
  .hero__media {
    max-width: none;
  }
}

.hero__disc {
  position: absolute;
  top: -14px;
  right: -14px;
  width: clamp(80px, 10vw, 132px);
  height: clamp(80px, 10vw, 132px);
  background: var(--yellow);
  border-radius: 50%;
  z-index: 0;
}

.hero__frame {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
  background: var(--mint);
  aspect-ratio: 3 / 4;
  box-shadow: 0 40px 80px -30px rgba(25, 44, 39, 0.4);
}

.hero__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

.hero__badge {
  position: absolute;
  z-index: 2;
  left: 0;
  bottom: 34px;
  max-width: calc(100% - 16px);
  background: var(--ink);
  color: var(--paper);
  padding: 14px 20px;
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: 0 20px 40px -20px rgba(25, 44, 39, 0.6);
}

/* Design hangs the badge past the frame's left edge; only do that once
   there is gutter to spare, so it never pushes off a phone screen. */
@media (min-width: 560px) {
  .hero__badge {
    left: -18px;
  }
}

/* ---------------------- Section primitives (shared) ---------------------- */
.section {
  padding: clamp(72px, 9vw, 130px) var(--gutter);
}

.section--dark {
  background: var(--ink);
  color: var(--paper);
}

.section--mint {
  background: var(--mint);
}

.section__shell {
  max-width: var(--shell);
  margin: 0 auto;
}

.section__shell--narrow {
  max-width: 1080px;
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(36px, 5vw, 64px);
}

.section--dark .section__head {
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(230, 240, 238, 0.14);
}

.section__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1;
  letter-spacing: 0.5px;
}

.section__label {
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
}

.section--dark .section__label {
  color: var(--yellow);
}

/* ------------------------------- Services -------------------------------- */
.service {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px clamp(16px, 4vw, 56px);
  padding: clamp(28px, 4vw, 48px) 8px;
  border-bottom: 1px solid rgba(230, 240, 238, 0.14);
  color: var(--paper);
  transition:
    background-color 0.35s ease,
    padding-left 0.35s ease;
}

/* Hover slides the row right and floods it teal, as in the design */
.service:hover,
.service:focus-visible {
  background: var(--teal);
  padding-left: 28px;
  color: var(--paper);
}

.service__num {
  min-width: 52px;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 30px);
  color: var(--yellow);
}

.service__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 5.5vw, 72px);
  line-height: 1;
  letter-spacing: 0.5px;
}

.service__desc {
  /* Stacks under the title on narrow screens (aligned with it, not with the
     number), then moves into its own column once there is room. */
  grid-column: 2 / -1;
  max-width: 340px;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(230, 240, 238, 0.72);
}

@media (min-width: 900px) {
  .service {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .service__desc {
    grid-column: auto;
  }
}

/* ----------------------------- Selected work ----------------------------- */
.work {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 2.5vw, 36px);
}

@media (min-width: 900px) {
  .work {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #ffffff;
  border: 1px solid rgba(25, 44, 39, 0.09);
  border-radius: 12px;
  overflow: hidden;
}

.card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--deep);
  overflow: hidden;
}

/* Slides stack in one place; only the active one is shown. */
.carousel__track {
  height: 100%;
}

.carousel__slide {
  display: none;
  height: 100%;
}

.carousel__slide.is-active {
  display: block;
}

.carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Clicking the image advances, matching the design's behaviour. The nav
   buttons remain the accessible control. */
.carousel[data-carousel] .carousel__slide img {
  cursor: pointer;
}

.card__tagline {
  position: absolute;
  top: 14px;
  left: 16px;
  z-index: 3;
  max-width: calc(100% - 32px);
  background: var(--yellow);
  color: var(--ink);
  padding: 5px 10px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
}

.carousel__counter {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 3;
  background: rgba(14, 27, 23, 0.7);
  color: var(--paper);
  padding: 5px 10px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
}

.carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(14, 27, 23, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: var(--paper);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.25s ease;
}

.carousel__nav:hover,
.carousel__nav:focus-visible {
  background: var(--teal);
}

.carousel__nav--prev {
  left: 12px;
}

.carousel__nav--next {
  right: 12px;
}

.carousel__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.carousel__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(251, 252, 252, 0.35);
  cursor: pointer;
  transition: background-color 0.25s ease;
}

.carousel__dot[aria-current="true"] {
  background: var(--yellow);
}

.card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  padding: clamp(22px, 2vw, 30px);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.tag {
  background: var(--mint);
  color: var(--teal);
  padding: 5px 11px;
  border-radius: 100px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.card__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 2.6vw, 38px);
  line-height: 1;
  letter-spacing: 0.5px;
  color: var(--ink);
}

.card__desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--teal-soft);
}

/* ------------------------------ Experience ------------------------------- */
.timeline {
  --tl-gap: clamp(28px, 5vw, 52px);
  position: relative;
  padding-left: var(--tl-gap);
  border-left: 2px solid rgba(9, 106, 97, 0.25);
}

.timeline__item {
  position: relative;
  padding-bottom: clamp(40px, 5vw, 56px);
}

/* Node centred on the rule. Widths include the border (global border-box),
   so -8px lands the 14px node on the 2px line. */
.timeline__item::before {
  content: "";
  position: absolute;
  top: 6px;
  left: calc(-1 * var(--tl-gap) - 8px);
  width: 14px;
  height: 14px;
  border: 3px solid var(--mint);
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 2px var(--teal);
}

.timeline__heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 8px;
}

.timeline__role {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.1;
  letter-spacing: 0.5px;
  color: var(--ink);
}

.timeline__badge {
  background: var(--yellow);
  color: var(--ink);
  padding: 5px 11px;
  border-radius: 100px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.timeline__company {
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--teal-soft);
}

.timeline__desc {
  max-width: 640px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--teal-soft);
}

/* ------------------------------ Tech stack ------------------------------- */
/* Full-bleed so the marquee can run edge to edge, and clipped here rather
   than leaning on the root's overflow guard. */
.section--flush {
  padding-left: 0;
  padding-right: 0;
  overflow: hidden;
}

.tech__head {
  margin-bottom: clamp(32px, 4vw, 52px);
  padding: 0 var(--gutter);
  text-align: center;
}

.tech__title {
  margin-top: 8px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 3.5vw, 46px);
  letter-spacing: 0.5px;
}

.ticker {
  position: relative;
  /* Fades both ends so items appear and vanish rather than clipping */
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
}

.ticker__row {
  display: flex;
  width: max-content;
  animation: ticker 32s linear infinite;
}

/* Courtesy pause so a name can actually be read */
.ticker:hover .ticker__row,
.ticker:focus-within .ticker__row {
  animation-play-state: paused;
}

.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 clamp(20px, 3vw, 44px);
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 38px);
  letter-spacing: 1px;
  color: rgba(230, 240, 238, 0.85);
  white-space: nowrap;
}

.ticker__logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.ticker__dot {
  width: 6px;
  height: 6px;
  margin-left: 4px;
  border-radius: 50%;
  background: var(--yellow);
  flex: none;
}

/* -------------------------------- Contact -------------------------------- */
.section--teal {
  background: var(--teal);
  color: var(--paper);
}

.section--teal .section__label {
  color: var(--yellow);
}

.contact {
  text-align: center;
}

.contact__title {
  margin-top: 22px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(44px, 8vw, 110px);
  line-height: 0.95;
  letter-spacing: 0.5px;
  text-wrap: balance;
}

.contact__lede {
  max-width: 520px;
  margin: 28px auto 0;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  color: rgba(230, 240, 238, 0.82);
}

.btn--cta {
  margin-top: 44px;
  background: var(--yellow);
  color: var(--ink);
  padding: 20px 40px;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.btn--cta:hover,
.btn--cta:focus-visible {
  background: var(--paper);
  color: var(--ink);
}

.contact__email {
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: rgba(230, 240, 238, 0.7);
}

/* -------------------------------- Footer --------------------------------- */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(48px, 6vw, 72px) var(--gutter) 40px;
}

.footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  max-width: var(--shell);
  margin: 0 auto;
}

.footer__name {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1;
  letter-spacing: 0.5px;
}

.footer__tagline {
  margin-top: 10px;
  font-size: 14px;
  color: rgba(230, 240, 238, 0.6);
}

.footer__cols {
  display: flex;
  gap: clamp(24px, 4vw, 56px);
  font-size: 14px;
  letter-spacing: 0.06em;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__colTitle {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow);
}

.footer__col a {
  color: rgba(230, 240, 238, 0.85);
}

.footer__col a:hover {
  color: var(--yellow);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--shell);
  margin: clamp(40px, 5vw, 64px) auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(230, 240, 238, 0.12);
  font-size: 13px;
  color: rgba(230, 240, 238, 0.5);
}

/* ------------------------------ Legal page ------------------------------- */
.legal {
  background: var(--paper);
}

.legal__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1;
  letter-spacing: 0.5px;
  color: var(--ink);
}

.legal__h {
  margin-top: 40px;
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(20px, 2.2vw, 26px);
  letter-spacing: 0.5px;
  color: var(--ink);
}

/* <address> defaults to italic; the design wants plain text. */
.legal__address {
  font-style: normal;
  line-height: 1.8;
  color: var(--teal-soft);
}

.legal__p {
  line-height: 1.8;
  color: var(--teal-soft);
}

.legal-back {
  margin-left: 0;
}

/* The imprint footer carries only the bottom bar, so drop the top rule. */
.footer__bottom--only {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

/* ----------------------------- Load animation ---------------------------- */
/* The portrait scales down into place like a loader; copy rises after it. */
@keyframes heroLoad {
  0% {
    transform: scale(1.35);
    opacity: 0;
  }
  60% {
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__media {
  animation: heroLoad 1.1s var(--ease-out) both 0.1s;
}

.hero__eyebrow {
  animation: fadeUp 0.7s ease both 0.1s;
}

.hero__lede {
  animation: fadeUp 0.7s ease both 0.25s;
}

.hero__actions {
  animation: fadeUp 0.7s ease both 0.4s;
}

/* ---------------------------- Scroll reveal ------------------------------ */
/* script.js adds .is-visible; without JS the content is shown as-is. */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s var(--ease-out) var(--reveal-delay, 0ms),
    transform 0.8s var(--ease-out) var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* --------------------------- Reduced motion ------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
