/* martin-schibinet.com, v2 "Klein" motion edition */

:root {
  --klein: #1a2bd6;
  --klein-deep: #0b1478;
  --ink: #070a26;
  --night: #121a5c;
  --bone: #eeede8;
  --sun: #ffcb47;
  --bone-soft: rgba(238, 237, 232, 0.72);
  --ink-soft: rgba(7, 10, 38, 0.68);

  --gutter: clamp(16px, 4vw, 64px);
  --nav-h: 64px;

  --font-display: "Anybody", "Arial Narrow", "Helvetica Neue", sans-serif;
  --font-text: "Newsreader", Georgia, "Times New Roman", serif;

  --step--1: 0.875rem;
  --step-0: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-1: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem);
  --step-2: clamp(1.6rem, 1.3rem + 1.2vw, 2.4rem);
  --step-3: clamp(2.2rem, 1.6rem + 2.6vw, 4rem);

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

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--ink);
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-text);
  font-size: var(--step-0);
  line-height: 1.55;
  font-optical-sizing: auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Film grain over everything, very low */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 990;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img,
svg,
canvas {
  display: block;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

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

:focus-visible {
  outline: 2px solid var(--sun);
  outline-offset: 4px;
  border-radius: 2px;
}

.skip-link {
  position: fixed;
  left: var(--gutter);
  top: 12px;
  z-index: 1001;
  padding: 0.6rem 1rem;
  background: var(--sun);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.3s var(--ease-out);
}

.skip-link:focus {
  transform: translateY(0);
}

/* ---------- Cursor ---------- */

.cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1000;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: var(--bone);
  mix-blend-mode: difference;
  pointer-events: none;
  opacity: 0;
  transition: width 0.4s var(--ease-out), height 0.4s var(--ease-out),
    margin 0.4s var(--ease-out), opacity 0.3s, border-radius 0.4s var(--ease-out);
}

.has-cursor .cursor.is-on {
  opacity: 1;
}

.cursor.is-link {
  width: 72px;
  height: 72px;
  margin: -36px 0 0 -36px;
}

.cursor.is-text {
  width: 3px;
  height: 28px;
  margin: -14px 0 0 -1.5px;
  border-radius: 2px;
}

@media (hover: hover) and (pointer: fine) {
  .has-cursor,
  .has-cursor a,
  .has-cursor button,
  .has-cursor label {
    cursor: none;
  }

  .has-cursor input,
  .has-cursor textarea,
  .has-cursor select {
    cursor: none;
  }
}

/* ---------- Scroll progress ---------- */

.progress {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 995;
  height: 3px;
  background: var(--sun);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 900;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 560;
  font-variation-settings: "wdth" 100;
  color: var(--bone);
  mix-blend-mode: difference;
}

.nav a {
  position: relative;
  display: inline-block;
  padding: 0.5rem 0.25rem;
  text-decoration: none;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0.25rem;
  right: 0.25rem;
  bottom: 0.2rem;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 0.5s var(--ease-out);
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: 0 50%;
}

.nav-mark {
  font-weight: 800;
  font-variation-settings: "wdth" 130;
  letter-spacing: 0.01em;
}

.nav ul {
  display: flex;
  gap: clamp(0.75rem, 2.5vw, 2.25rem);
  list-style: none;
}

/* Language menu: the current code, the four languages drop below on open (no panel, the nav blend keeps them legible). */
.nav-lang {
  position: relative;
}

.nav-lang summary {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.5rem 0.25rem;
  list-style: none;
  cursor: pointer;
}

.nav-lang summary::-webkit-details-marker {
  display: none;
}

.nav-lang summary::after {
  content: "";
  width: 0.38em;
  height: 0.38em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-0.18em) rotate(45deg);
  transition: transform 0.5s var(--ease-out);
}

.nav-lang[open] summary::after {
  transform: translateY(0.12em) rotate(225deg);
}

.nav .nav-lang ul {
  position: absolute;
  top: 100%;
  right: 0;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
  white-space: nowrap;
}

.nav-lang a[aria-current="page"]::after {
  transform: scaleX(1);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 540px;
  overflow: hidden;
  background: var(--ink);
}

.silk {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: var(--klein);
}

.hero-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: clamp(1.5rem, 4vh, 3rem);
  padding: calc(var(--nav-h) + 2vh) var(--gutter) clamp(1.25rem, 4vh, 2.75rem);
}

.hero-zoom {
  align-self: end;
  position: relative;
  transform-origin: 50% 50%;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 520;
  font-variation-settings: "wdth" 75, "wght" 520;
  font-size: clamp(2.9rem, 11.4vw, 15.5rem);
  line-height: 0.84;
  letter-spacing: -0.01em;
  color: var(--bone);
}

.hero-title .line {
  position: relative;
  display: block;
  width: max-content;
  padding: 0.06em 0 0.03em;
  overflow: hidden;
  white-space: nowrap;
}

.hero-title .line.is-open {
  overflow: visible;
}


.hero-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 1.5rem 3rem;
  border-top: 1px solid rgba(238, 237, 232, 0.35);
  padding-top: clamp(1rem, 2.4vh, 1.5rem);
}

.hero-sub {
  max-width: 34ch;
  font-size: var(--step-2);
  line-height: 1.15;
  font-weight: 340;
  color: var(--bone);
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--bone-soft);
  white-space: nowrap;
}

.scroll-cue {
  position: relative;
  width: 1px;
  height: 48px;
  background: rgba(238, 237, 232, 0.3);
  overflow: hidden;
}

.scroll-cue::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--sun);
  transform: translateY(-100%);
  animation: cue 2.2s var(--ease-out) infinite;
}

@keyframes cue {
  0% { transform: translateY(-100%); }
  55% { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

/* Hidden only until the intro takes over; motion-timeout is the safety net */
.js .hero-title,
.js .hero-foot,
.js .nav {
  opacity: 0;
}

.motion-ready .hero-title,
.motion-ready .hero-foot,
.motion-ready .nav,
.motion-timeout .hero-title,
.motion-timeout .hero-foot,
.motion-timeout .nav {
  opacity: 1;
}

/* ---------- Manifesto ---------- */

.manifesto {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-content: center;
  gap: clamp(2rem, 6vh, 4.5rem);
  padding: clamp(6rem, 16vh, 12rem) var(--gutter);
  background: var(--ink);
}

.manifesto-text {
  max-width: 15ch;
  font-size: clamp(2.5rem, 1rem + 6.4vw, 7.25rem);
  font-weight: 300;
  font-variation-settings: "opsz" 72;
  line-height: 0.98;
  letter-spacing: -0.025em;
}

.manifesto-text .word {
  will-change: opacity, filter, transform;
}

.manifesto-sub {
  max-width: 44ch;
  margin-left: clamp(0rem, 34vw, 38rem);
  font-size: var(--step-1);
  line-height: 1.45;
  color: var(--bone-soft);
}

@media (max-width: 599px) {
  .hero-title {
    font-size: clamp(2.9rem, 19.5vw, 6rem);
  }

  .hero-title .seg {
    display: block;
  }

  .hero-foot {
    grid-template-columns: 1fr;
  }

  .manifesto-sub {
    margin-left: 0;
  }

  /* Section names run longer in French, Spanish and Italian: on phones the nav keeps Work, Contact and the language menu. */
  .nav-skills {
    display: none;
  }

  /* "Depuis 2020" is wider than "2020–now": keep the French years inside the card on small phones. */
  .panel-years:lang(fr) {
    font-size: min(3rem, 11.2vw);
  }
}

/* ---------- Quotes ---------- */

.quotes {
  position: relative;
  min-height: 86vh;
  min-height: 86svh;
  display: grid;
  align-content: center;
  padding: clamp(5rem, 14vh, 10rem) var(--gutter);
  overflow: hidden;
  background: var(--bone);
  color: var(--ink);
}

.sun {
  position: absolute;
  right: -12vw;
  bottom: -38vw;
  width: min(92vw, 1100px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--sun);
  pointer-events: none;
}

.quote {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
}

.quote-text {
  max-width: 19ch;
  font-size: clamp(2rem, 1rem + 3.6vw, 4.75rem);
  font-style: italic;
  font-weight: 330;
  font-variation-settings: "opsz" 72;
  line-height: 1.04;
  letter-spacing: -0.02em;
  quotes: "\201C" "\201D";
}

.quote-text.is-long {
  max-width: 24ch;
  font-size: clamp(1.75rem, 0.9rem + 2.7vw, 3.6rem);
}

.quote-text::before {
  content: open-quote;
  position: absolute;
  transform: translateX(-0.55em);
}

.quote-text::after {
  content: close-quote;
}

.quote-author {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-size: var(--step-0);
  font-weight: 600;
  font-variation-settings: "wdth" 110;
}

.quote-controls {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 0.75rem;
  margin-top: clamp(2rem, 6vh, 3.5rem);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.7rem 1.4rem;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  background: transparent;
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 600;
  font-variation-settings: "wdth" 105;
  transition: background-color 0.35s var(--ease-out), color 0.35s var(--ease-out);
}

.quotes .pill:hover {
  background: var(--ink);
  color: var(--bone);
}

.quotes :focus-visible {
  outline-color: var(--klein);
}

/* ---------- Work ---------- */

.work {
  position: relative;
  background: var(--ink);
}

.work-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(5rem, 12vh, 8rem) var(--gutter) clamp(1.5rem, 4vh, 2.5rem);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 1rem + 6vw, 7rem);
  font-weight: 760;
  font-variation-settings: "wdth" 115, "wght" 760;
  line-height: 0.9;
  letter-spacing: -0.02em;
}

.work-viewport {
  overflow: clip;
}

.work-track {
  display: flex;
  gap: clamp(12px, 1.6vw, 28px);
  width: max-content;
  padding: 0 var(--gutter);
  list-style: none;
}

.panel {
  --panel-bg: var(--klein);
  --panel-fg: var(--bone);
  --panel-soft: var(--bone-soft);
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  width: min(80vw, 1120px);
  height: min(64vh, 700px);
  padding: clamp(1.5rem, 3vw, 3rem);
  border-radius: clamp(14px, 1.6vw, 26px);
  overflow: hidden;
  background: var(--panel-bg);
  color: var(--panel-fg);
}

.panel--bone {
  --panel-bg: var(--bone);
  --panel-fg: var(--ink);
  --panel-soft: var(--ink-soft);
}

.panel--night {
  --panel-bg: var(--night);
}

.panel--sun {
  --panel-bg: var(--sun);
  --panel-fg: var(--ink);
  --panel-soft: var(--ink-soft);
}

.panel-years {
  font-family: var(--font-display);
  font-size: clamp(3rem, 1rem + 6.2vw, 8.25rem);
  font-weight: 820;
  font-variation-settings: "wdth" 108, "wght" 820;
  line-height: 0.86;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.panel h3 {
  margin-top: clamp(1rem, 3vh, 2rem);
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 640;
  font-variation-settings: "wdth" 92, "wght" 640;
  line-height: 0.98;
  letter-spacing: -0.015em;
}

.panel-role {
  margin-top: 0.5rem;
  font-size: var(--step-1);
  font-style: italic;
  color: var(--panel-soft);
}

.panel-body {
  align-self: end;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.25rem, 3vw, 3rem);
  padding-top: 1.5rem;
}

/* How I worked on the project: consultant, operational, structural, founder… */
/* Role and engagement chips share one row (they wrap under each other when space runs out). */
.panel-role {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.1rem;
}

.panel-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-style: normal;
  list-style: none;
}

.panel-modes li {
  padding: 0.32em 0.8em 0.36em;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 600;
  font-variation-settings: "wdth" 104, "wght" 600;
  line-height: 1.1;
}

.panel-link {
  color: var(--panel-fg);
  font-style: normal;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.panel-link:hover,
.panel-link:focus-visible {
  text-decoration-thickness: 2px;
}

.panel-body h4 {
  margin-bottom: 0.4rem;
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 650;
  font-variation-settings: "wdth" 110, "wght" 650;
}

.panel-body p {
  max-width: 46ch;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--panel-soft);
}

.work-foot {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: clamp(1.25rem, 4vh, 2.5rem) calc(var(--gutter) + 84px) clamp(1.5rem, 5vh, 3rem) var(--gutter);
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--bone-soft);
}

.work-progress {
  position: relative;
  height: 2px;
  background: rgba(238, 237, 232, 0.18);
}

.work-progress-fill {
  position: absolute;
  inset: 0;
  background: var(--sun);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

@media (min-width: 900px) {
  .work.is-horizontal {
    height: 100vh;
    height: 100svh;
    display: grid;
    /* minmax(0, 1fr): without it the column takes the width of the whole timeline and the title can never wrap. */
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr auto;
  }

  .work.is-horizontal .work-head {
    padding-top: calc(var(--nav-h) + 3vh);
  }

  .work.is-horizontal .work-viewport {
    display: flex;
    align-items: center;
  }
}

@media (max-width: 899px) {
  .work-track {
    flex-direction: column;
    width: auto;
    gap: 14px;
    padding: 0 var(--gutter) 2rem;
  }

  .panel {
    position: sticky;
    top: calc(var(--nav-h) + var(--i, 0) * 10px);
    width: 100%;
    height: auto;
    min-height: min(78svh, 640px);
    transform-origin: 50% 0;
  }

  .panel-body {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .work-foot {
    display: none;
  }

  .work-viewport {
    overflow: visible;
  }
}

/* ---------- Skills ---------- */

.skills {
  position: relative;
  padding: clamp(5rem, 14vh, 9rem) 0 clamp(4rem, 12vh, 8rem);
  background: var(--klein);
  color: var(--bone);
  overflow: hidden;
}

.skills .section-title {
  padding: 0 var(--gutter);
  margin-bottom: clamp(2rem, 6vh, 4rem);
}

.lane {
  display: grid;
  grid-template-columns: minmax(7.5rem, 13rem) minmax(0, 1fr);
  align-items: center;
  border-top: 1px solid rgba(238, 237, 232, 0.3);
}

.lane:last-child {
  border-bottom: 1px solid rgba(238, 237, 232, 0.3);
}

.lane-label {
  padding: 0 1rem 0 var(--gutter);
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 600;
  font-variation-settings: "wdth" 105, "wght" 600;
  color: var(--bone-soft);
}

.lane-track {
  overflow: clip;
  padding: clamp(0.6rem, 1.6vh, 1.1rem) 0;
}

.lane-move {
  display: flex;
  width: max-content;
  will-change: transform;
}

.lane-list {
  display: flex;
  flex: none;
  list-style: none;
}

.lane-list li {
  display: flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 1rem + 5vw, 6.25rem);
  font-weight: 700;
  font-variation-settings: "wdth" 88, "wght" 700;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
  transition: font-variation-settings 0.6s var(--ease-out), color 0.4s;
}

.lane-list li::after {
  content: "";
  flex: none;
  width: 0.22em;
  height: 0.22em;
  margin: 0 0.45em;
  border-radius: 50%;
  background: var(--sun);
}

.lane-list li:hover {
  color: var(--sun);
  font-variation-settings: "wdth" 150, "wght" 860;
}

@media (max-width: 899px) {
  .lane {
    grid-template-columns: 1fr;
  }

  .lane-label {
    padding: 1rem var(--gutter) 0;
  }

  .lane-track {
    padding-top: 0.35rem;
  }
}

/* ---------- Contact ---------- */

.contact {
  position: relative;
  overflow-x: clip;
  padding: clamp(5rem, 14vh, 9rem) var(--gutter) clamp(4rem, 10vh, 7rem);
  background: var(--bone);
  color: var(--ink);
}

.contact :focus-visible {
  outline-color: var(--klein);
}

.contact-title {
  max-width: 13ch;
  font-family: var(--font-display);
  font-size: clamp(3rem, 1rem + 8.4vw, 10.5rem);
  font-weight: 720;
  font-variation-settings: "wdth" 80, "wght" 720;
  line-height: 0.86;
  letter-spacing: -0.025em;
}

.contact-title .cline {
  white-space: nowrap;
}

.contact-title .cchar {
  font-variation-settings: "wdth" var(--w, 80), "wght" var(--g, 720);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 6vw, 6rem);
  margin-top: clamp(3rem, 8vh, 5.5rem);
}

.contact-lead {
  max-width: 28ch;
  font-size: var(--step-2);
  line-height: 1.2;
  font-weight: 340;
}

.contact-alt {
  margin-top: 1.5rem;
  font-size: var(--step-0);
  color: var(--ink-soft);
}

.contact-alt a {
  color: var(--klein);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
}

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem 1.5rem;
}

.field {
  position: relative;
  display: grid;
  gap: 0.35rem;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 600;
  font-variation-settings: "wdth" 105, "wght" 600;
  color: var(--ink-soft);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.55rem 0;
  border: 0;
  border-bottom: 1.5px solid rgba(7, 10, 38, 0.3);
  border-radius: 0;
  background: transparent;
  font-size: var(--step-1);
  color: var(--ink);
  appearance: none;
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23070a26' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.25rem center;
  padding-right: 2rem;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
}

.field::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2.5px;
  background: var(--klein);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.6s var(--ease-out);
}

.field:focus-within::after {
  transform: scaleX(1);
}

.field:has(textarea)::after {
  bottom: 6px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2rem;
  margin-top: 0.5rem;
}

.send {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 13rem;
  min-height: 64px;
  padding: 1rem 2.25rem;
  border: 0;
  border-radius: 999px;
  overflow: hidden;
  background: var(--klein);
  color: var(--bone);
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 700;
  font-variation-settings: "wdth" 110, "wght" 700;
  isolation: isolate;
}

.send::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--ink);
  transform: translateY(101%);
  transition: transform 0.6s var(--ease-out);
}

.send:hover::before,
.send:focus-visible::before {
  transform: translateY(0);
}

.send[disabled] {
  opacity: 0.6;
}

.form-status {
  min-height: 1.5em;
  font-size: var(--step-0);
}

.form-status.is-ok {
  color: var(--klein);
  font-weight: 600;
}

.form-status.is-error {
  color: #b3261e;
  font-weight: 600;
}

@media (max-width: 899px) {
  .contact-grid,
  .form {
    grid-template-columns: 1fr;
  }
}

/* ---------- Footer ---------- */

.footer {
  position: relative;
  padding: clamp(3rem, 10vh, 6rem) var(--gutter) 2rem;
  background: var(--ink);
  overflow: hidden;
}

.footer-mark {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 12.2vw, 16rem);
  font-weight: 520;
  font-variation-settings: "wdth" 75, "wght" 520;
  line-height: 0.85;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: var(--bone);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 2rem;
  margin-top: clamp(2rem, 6vh, 3.5rem);
  padding: 1.25rem 84px 0 0;
  border-top: 1px solid rgba(238, 237, 232, 0.2);
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--bone-soft);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--bone);
  text-decoration: none;
  border-bottom: 1.5px solid var(--sun);
  padding-bottom: 2px;
}

/* ---------- WhatsApp ---------- */

.whatsapp {
  position: fixed;
  right: clamp(16px, 2.5vw, 32px);
  bottom: clamp(16px, 2.5vw, 32px);
  z-index: 950;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--sun);
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(7, 10, 38, 0.35);
  transition: transform 0.5s var(--ease-out);
}

.whatsapp svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.whatsapp:hover {
  transform: scale(1.08) rotate(-8deg);
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .lane-move {
    flex-wrap: wrap;
    width: auto;
  }

  .lane-list {
    flex-wrap: wrap;
    padding: 0 var(--gutter);
  }

  .lane-list li {
    font-size: clamp(1.8rem, 1rem + 3vw, 3.5rem);
  }
}

/* Short laptop screens: the pinned timeline leaves about 64vh for a card, so tighten the card type a little. */
@media (min-width: 900px) and (max-height: 860px) {
  .panel-years {
    font-size: min(clamp(3rem, 1rem + 6.2vw, 8.25rem), 10vh);
  }

  .panel h3 {
    margin-top: clamp(0.6rem, 2vh, 1.5rem);
  }

  .panel-body {
    padding-top: 1rem;
  }

  .panel-body p {
    font-size: 1rem;
    line-height: 1.45;
  }
}
