/* Header, modeled on the Maxel reference: logo left, centered menu, outlined button right.
   It is transparent and sits over the black hero, so the hero's corner shapes run behind it. */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
}

.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--space-6);
  min-height: var(--header-height);
}

@media (min-width: 60rem) {
  .site-header__inner {
    grid-template-columns: 1fr auto 1fr;
  }
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: var(--space-3);
  color: #fff;
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-heading);
  letter-spacing: var(--tracking-name);
  text-decoration: none;
  white-space: nowrap;
}

/* Image logo: 56px tall (about 148px wide) on every screen, like Maxel, so TCHUENTE stays readable */
.logo--image img {
  width: auto;
  height: 3.5rem;
}

.logo__mark {
  flex: none;
  width: 0.75rem;
  height: 0.75rem;
  background: var(--blue);
  transform: rotate(45deg);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  background: transparent;
  border: 0;
  color: #fff;
}

.menu-toggle svg {
  width: 2rem;
  height: 2rem;
}

.menu-toggle .icon-close,
.menu-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

.site-nav ul {
  display: flex;
}

.site-nav ul a {
  display: block;
  padding: 0 var(--space-4);
  color: #fff;
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.5;
  text-decoration: none;
  transition: color var(--duration) var(--ease-out);
}

.site-nav ul a:hover {
  color: var(--blue-light);
}

/* Outlined header button with a filled circle icon */

.btn--header {
  min-height: 3.25rem;
  padding: var(--space-4) var(--space-8);
  border-color: var(--blue);
  border-radius: var(--radius-lg);
  color: #fff;
  font-weight: 500;
  gap: var(--space-3);
}

.btn--header:hover {
  background: var(--blue);
}

/* Mobile and tablet: bare menu icon opens a panel under the header */

@media (max-width: 59.99rem) {
  .js .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: var(--space-2) var(--gutter) var(--space-6);
    background: var(--black);
  }

  .js .site-nav {
    display: none;
  }

  .js .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    margin-bottom: var(--space-6);
  }

  .site-nav ul a {
    padding: var(--space-3) 0;
    font-size: var(--text-lg);
    border-bottom: 1px solid color-mix(in srgb, #fff 10%, transparent);
  }

  .site-nav .btn {
    width: 100%;
  }
}

@media (min-width: 60rem) {
  .site-nav {
    grid-column: 2 / 4;
    display: grid;
    grid-template-columns: subgrid;
    align-items: center;
  }

  .site-nav .btn {
    justify-self: end;
  }
}

/* Hero, laid out like the Maxel reference: big right-aligned title, photo in the middle,
   short pitch on the right, credential line, then a quote and link badges along the bottom */

.hero {
  position: relative;
  display: grid;
  align-content: center;
  padding-block: calc(var(--header-height) + var(--space-10)) var(--space-12);
  background: var(--black);
  overflow: clip;
  isolation: isolate;
}

@media (min-width: 64rem) {
  .hero {
    min-height: max(100svh, 52rem);
    padding-block: calc(var(--header-height) + var(--space-12)) var(--space-16);
  }
}

.hero__main {
  display: grid;
  justify-items: center;
  gap: var(--space-10);
  text-align: center;
}

@media (min-width: 75rem) {
  .hero__main {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 0.8fr) minmax(0, 1.3fr);
    align-items: center;
    justify-items: stretch;
    gap: var(--space-12);
    text-align: left;
  }
}

.hero__title {
  display: grid;
  color: #fff;
  font-size: clamp(2.75rem, 19vw, 5rem);
  line-height: 1;
  letter-spacing: 0;
}

@media (min-width: 75rem) {
  .hero__title {
    font-size: min(5.5vw, 5rem);
    text-align: right;
  }
}

.text-outline {
  color: transparent;
  -webkit-text-stroke: 1px var(--blue);
}

@media (min-width: 48rem) {
  .text-outline {
    -webkit-text-stroke-width: 2px;
  }
}

.hero__photo {
  position: relative;
  width: min(100%, 15rem);
  justify-self: center;
}

@media (min-width: 75rem) {
  .hero__photo {
    width: min(85%, 18rem);
  }
}

.hero__photo::before {
  content: "";
  position: absolute;
  inset: calc(var(--space-4) * -1);
  border: 1px solid color-mix(in srgb, #fff 12%, transparent);
  border-radius: 50%;
}

.hero__photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--black-raised);
  border: clamp(0.5rem, 1.2vw, 0.75rem) solid var(--blue);
  border-radius: 50%;
}

.hero__side {
  display: grid;
  justify-items: center;
  max-width: 34rem;
}

@media (min-width: 75rem) {
  .hero__side {
    justify-items: start;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--black-raised);
  border-radius: var(--radius-pill);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 500;
}

.badge__dot {
  width: 0.5rem;
  height: 0.5rem;
  background: var(--blue-light);
  border-radius: 50%;
  box-shadow: 0 0 0 0 var(--blue-light);
}

@media (prefers-reduced-motion: no-preference) {
  .badge__dot {
    animation: pulse 2s var(--ease-out) infinite;
  }
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 0.5rem transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

.hero__subtitle {
  margin-top: var(--space-5);
  color: #fff;
  font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.375rem);
  line-height: 1.4;
  letter-spacing: 0;
  text-wrap: wrap;
}

/* 32px in the three-column layout keeps the heading on two lines */
@media (min-width: 75rem) {
  .hero__subtitle {
    font-size: 2rem;
  }
}

.hero__lead {
  margin-top: var(--space-4);
  color: var(--muted-on-dark);
  font-size: var(--text-lg);
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-5);
  margin-top: var(--space-6);
}

@media (min-width: 75rem) {
  .hero__actions {
    justify-content: flex-start;
  }
}

/* Maxel-style hero buttons: dark filled and blue outline, both with 15px-ish corners */

.btn--dark,
.btn--outline {
  min-height: 3.25rem;
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-lg);
  color: #fff;
}

.btn--dark {
  background: var(--black-raised);
}

.btn--dark:hover {
  background: color-mix(in srgb, #fff 20%, var(--black));
}

.btn--outline {
  border-color: var(--blue);
}

.btn--outline:hover {
  background: var(--blue);
}

@media (max-width: 29.99rem) {
  .hero__actions .btn {
    flex: 1 1 0;
    padding-inline: var(--space-4);
  }
}

.hero__credential {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  color: #fff;
  font-family: var(--font-heading);
  font-size: var(--text-base);
  text-align: center;
}

/* Phones: smaller title and photo, tighter gaps, and the credential line after the buttons,
   so the pitch and "View my work" fit on the first screen (375x812) */
@media (max-width: 47.99rem) {
  .hero {
    padding-top: calc(var(--header-height) + var(--space-6));
  }

  .hero__main {
    gap: var(--space-6);
  }

  .hero__main .hero__title {
    font-size: clamp(2.5rem, 12.8vw, 3.25rem);
  }

  .hero__photo {
    width: 9rem;
  }

  .hero__photo::before {
    inset: calc(var(--space-2) * -1);
  }

  .hero__photo img {
    border-width: 0.4rem;
  }

  .hero__credential {
    order: 1;
  }

  .hero .corner--dot {
    display: none;
  }

  .hero__subtitle {
    margin-top: var(--space-4);
    font-size: 1.5rem;
    text-wrap: balance;
  }

  .hero__lead {
    margin-top: var(--space-3);
    font-size: var(--text-base);
  }

  .hero__actions {
    margin-top: var(--space-5);
  }
}

/* In the three-column layout the credential line sits in the photo's column, centered under it */
@media (min-width: 75rem) {
  .hero__title {
    grid-area: 1 / 1;
  }

  .hero__photo {
    grid-area: 1 / 2;
  }

  .hero__side {
    grid-area: 1 / 3;
  }

  .hero__credential {
    grid-area: 2 / 2;
    justify-self: center;
    white-space: nowrap;
  }
}

.hero__credential svg {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
  color: var(--blue);
}

.hero__credential a {
  color: #fff;
  white-space: nowrap;
}

@media (max-width: 29.99rem) {
  .hero__credential {
    flex-direction: column;
    gap: var(--space-2);
  }

  .hero__credential > span {
    display: grid;
  }

  .hero__credential > span > [aria-hidden="true"] {
    display: none;
  }
}

.hero__credential a:hover {
  color: var(--blue-light);
}

.hero__bottom {
  display: grid;
  gap: var(--space-8);
  margin-top: var(--space-12);
}

@media (min-width: 64rem) {
  .hero__bottom {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--space-12);
    margin-top: var(--space-16);
  }
}

.hero__quote {
  max-width: 30rem;
  padding-left: var(--space-5);
  border-left: 2px solid var(--blue);
  color: var(--muted-on-dark);
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  line-height: 1.5;
}

.hero__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4) var(--space-6);
  list-style: none;
  padding: 0;
}

@media (max-width: 47.99rem) {
  .hero__links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4);
  }

  .hero__links li a {
    font-size: var(--text-sm);
  }
}

.hero__links a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
  color: var(--muted-on-dark);
  font-family: var(--font-heading);
  font-size: var(--text-base);
  text-decoration: none;
  transition: color var(--duration) var(--ease-out);
}

.hero__links a:hover {
  color: #fff;
}

@media (min-width: 64rem) {
  .hero__links {
    flex-wrap: nowrap;
  }

  .hero__links a {
    white-space: nowrap;
  }
}

.hero__link-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--black-raised);
  border-radius: var(--radius-sm);
  color: var(--blue-light);
  transition: border-color var(--duration) var(--ease-out);
}

.hero__links a:hover .hero__link-icon {
  border-color: var(--blue);
}

.hero__link-icon svg {
  width: 1.125rem;
  height: 1.125rem;
}

/* Shared scrolling keyframes (resume strip) */

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* Shared section heading row */

.section-head {
  display: grid;
  gap: var(--space-4) var(--space-12);
}

.section-head .section-intro {
  margin-top: 0;
}

@media (min-width: 64rem) {
  .section-head {
    grid-template-columns: 1.2fr 1fr;
    align-items: end;
  }
}

/* What I do, laid out like Maxel's "My Core Expertise": eyebrow and statement on top, then
   three service items on the left, an outlined title over a combined card in the middle,
   and a tall blue card on the right */

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-5);
  color: #fff;
  font-size: var(--text-base);
}

/* Double triangle marker, as on cysn.app: a blue triangle with a deep navy one offset over it */
.eyebrow__mark {
  position: relative;
  flex: none;
  width: calc(13px + 19.6px);
  height: 19.6px;
}

.eyebrow__mark::before,
.eyebrow__mark::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  border-top: 9.8px solid transparent;
  border-bottom: 9.8px solid transparent;
  border-left: 19.6px solid;
  transform: translateY(-50%);
}

.eyebrow__mark::before {
  left: 13px;
  border-left-color: var(--navy-cysn);
}

.eyebrow__mark::after {
  left: 0;
  border-left-color: var(--blue);
}

.expertise-head {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 64rem) {
  .expertise-head {
    grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
    gap: var(--space-5);
    align-items: start;
  }
}

.expertise-statement {
  color: #fff;
  font-family: var(--font-heading);
  font-size: clamp(1.375rem, 1rem + 1.2vw, 2rem);
  font-weight: var(--weight-heading);
  line-height: 1.4;
}

.expertise {
  display: grid;
  gap: var(--space-10);
  grid-template-areas:
    "title"
    "list"
    "feature"
    "code";
  margin-top: var(--space-16);
}

@media (min-width: 48rem) {
  .expertise {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "title title"
      "list feature"
      "code code";
    column-gap: var(--space-8);
  }
}

@media (min-width: 75rem) {
  .expertise {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr) minmax(0, 1.1fr);
    grid-template-rows: auto 1fr;
    grid-template-areas:
      "list title code"
      "list feature code";
    gap: var(--space-12);
    margin-top: var(--space-24);
  }
}

.expertise__title {
  grid-area: title;
  font-size: clamp(2.5rem, 1rem + 3vw, 3.4375rem);
  line-height: 1.2;
  letter-spacing: 0;
}

.expertise__list {
  grid-area: list;
  display: grid;
  align-content: center;
  gap: var(--space-8);
  list-style: none;
  padding: 0;
}

.expertise-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-8);
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  transition: background-color var(--duration) var(--ease-out);
}

@media (max-width: 47.99rem) {
  .expertise-item {
    gap: var(--space-5);
    padding: var(--space-6);
  }
}

.expertise-item:hover,
.expertise-item--active {
  background: var(--black-card);
}

.expertise-item h3,
.expertise-feature h3,
.expertise-code h3 {
  color: #fff;
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: 0;
}

.expertise-item p {
  margin-top: var(--space-3);
  color: var(--muted-on-dark);
  font-size: var(--text-lg);
  line-height: 1.6;
}

.expertise-item__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 3.125rem;
  height: 3.125rem;
  border: 1px solid var(--black-raised);
  border-radius: var(--radius-md);
  color: var(--blue-light);
}

.expertise-item__icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* Two related services joined in one card, each half with its own heading */

.expertise-feature {
  grid-area: feature;
  align-self: end;
  display: grid;
  gap: var(--space-5);
  padding: var(--space-8);
  background: var(--black-card);
  border-radius: var(--radius-xl);
}

.expertise-feature h3 {
  font-size: 1.5rem;
}

.expertise-feature__part {
  padding-top: var(--space-5);
  border-top: 1px solid var(--line-on-black);
}

.expertise-feature__part h4 {
  color: var(--blue-light);
  font-size: var(--text-lg);
  letter-spacing: 0;
}

.expertise-feature__part p {
  margin-top: var(--space-2);
  color: var(--muted-on-dark);
  line-height: 1.6;
}

.expertise-feature__part .dot-list {
  margin-top: var(--space-3);
  color: #fff;
  font-size: var(--text-sm);
}

/* Tall blue card on the right: the developer side */

.expertise-code {
  grid-area: code;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding: var(--space-10) var(--space-8);
  background: linear-gradient(160deg, var(--blue), color-mix(in srgb, var(--blue) 30%, var(--black)));
  border-radius: var(--radius-xl);
  color: var(--text-on-dark);
}

@media (min-width: 75rem) {
  .expertise-code {
    min-height: 37.5rem;
  }
}

.expertise-code h3 {
  font-size: var(--text-3xl);
  line-height: 1.15;
}

.expertise-code p {
  font-size: var(--text-lg);
  line-height: 1.6;
}

.expertise-code .expertise-item__icon {
  border-color: color-mix(in srgb, #fff 40%, transparent);
  color: #fff;
}

.expertise-code__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
  padding: 0;
}

.expertise-code__tags .pill {
  border-color: color-mix(in srgb, #fff 35%, transparent);
  color: #fff;
}

.expertise-code__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 2.75rem;
  margin-top: auto;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 500;
}

.expertise-code__link svg {
  width: 1rem;
  height: 1rem;
}

/* Toolkit: the heading takes two card slots in the top row, with two cards beside it and
   four below. Cards match the What I do cards (no border). Each card shows two lines of
   tools at most; main.js folds the rest into a "+N more" popover. */

.section--black + .section--black {
  border-top: 0;
}

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

.toolkit {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 48rem) {
  .toolkit {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toolkit__intro {
    grid-column: 1 / -1;
  }
}

@media (min-width: 75rem) {
  .toolkit {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .toolkit__intro {
    grid-column: span 2;
    align-self: center;
  }
}

.toolkit__title {
  margin-top: var(--space-5);
  color: #fff;
  /* Sized so "The everyday tools behind" (13.4em wide) stays on one line */
  font-size: clamp(1.25rem, 6.2vw, 2.625rem);
  line-height: 1.25;
  letter-spacing: 0;
  text-wrap: wrap;
}

.toolkit__title .text-outline {
  display: block;
}

@media (min-width: 75rem) {
  .toolkit__title {
    font-size: min(2.625rem, 3.3vw);
  }
}

.toolkit__note {
  margin-top: var(--space-4);
  color: var(--muted-on-dark);
  font-size: var(--text-base);
}

.tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding: var(--space-6);
  background: var(--black-card);
  border-radius: var(--radius-xl);
}

.tool-card__head {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.tool-card__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 3.125rem;
  height: 3.125rem;
  border: 1px solid var(--black-raised);
  border-radius: 50%;
  color: var(--blue-light);
}

.tool-card__icon svg {
  width: 1.375rem;
  height: 1.375rem;
}

.tool-card h3 {
  color: #fff;
  font-size: var(--text-lg);
  line-height: 1.3;
  letter-spacing: 0;
}

.tool-card__head p {
  margin-top: var(--space-1);
  color: var(--muted-on-dark);
  font-size: var(--text-sm);
}

.tool-card__tools {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
  padding: 0;
}

.tool-card__tools .pill {
  border-color: var(--black-raised);
  color: var(--text-on-dark);
}

.tool-card__tools .pill[hidden] {
  display: none;
}

.tool-card__more {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  background: transparent;
  border: 1px solid var(--blue);
  border-radius: var(--radius-pill);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 500;
  white-space: nowrap;
  transition: background-color var(--duration) var(--ease-out);
}

.tool-card__more:hover,
.tool-card__more[aria-expanded="true"] {
  background: var(--blue);
}

.tool-card__popover {
  position: absolute;
  z-index: 5;
  left: var(--space-6);
  right: var(--space-6);
  top: calc(100% - var(--space-4));
  padding: var(--space-4);
  background: var(--black-raised);
  border-radius: var(--radius-md);
  box-shadow: 0 var(--space-4) var(--space-8) color-mix(in srgb, #000 60%, transparent);
}

.tool-card__popover[hidden] {
  display: none;
}

.tool-card__popover p {
  margin-bottom: var(--space-3);
  color: var(--muted-on-dark);
  font-size: var(--text-xs);
}

.tool-card__popover ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
  padding: 0;
}

.tool-card__popover .pill {
  border-color: color-mix(in srgb, #fff 20%, transparent);
  color: #fff;
}

/* Selected work, laid out like Maxel's "Selected Projects": eyebrow, big title and short intro
   in one row, then a two-column grid. On each card the client type and summary sit on the
   bottom of the image over a dark fade; the short title and two tags go under the image. */

.work-head {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 64rem) {
  .work-head {
    grid-template-columns: minmax(0, 0.5fr) minmax(0, 1.75fr) minmax(0, 0.75fr);
    gap: var(--space-5) var(--space-12);
    align-items: start;
  }
}

/* From 1200px the title column takes all the room the label and intro leave, and the font
   scales with it so the heading breaks as "Builds for agencies, coaches / and health practices"
   ("Builds for agencies, coaches" is 14.45em wide in Poppins 600). */
@media (min-width: 75rem) {
  .work-head {
    container-type: inline-size;
    grid-template-columns: max-content minmax(0, 1fr) 17rem;
    gap: var(--space-5) var(--space-10);
  }

  .work-head .work-head__title {
    font-size: min(3.4375rem, calc((100cqi - 33rem) / 14.6));
  }
}

.work-head__title {
  color: #fff;
  font-size: clamp(2.25rem, 1.2rem + 2.8vw, 3.4375rem);
  line-height: 1.2;
  letter-spacing: 0;
}

.work-head__intro {
  color: var(--muted-on-dark);
  font-size: var(--text-lg);
  line-height: 1.6;
}


.filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-12);
}

.filter {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 2.75rem;
  padding: var(--space-2) var(--space-5);
  background: var(--black-card);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  color: var(--muted-on-dark);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 500;
  transition:
    background-color var(--duration) var(--ease-out),
    color var(--duration) var(--ease-out);
}

.filter:hover {
  color: #fff;
}

.filter[aria-pressed="true"] {
  background: var(--blue);
  color: #fff;
}

.filter__count {
  font-size: var(--text-xs);
  opacity: 0.8;
}

.work-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-12) var(--space-10);
  margin-top: var(--space-10);
  list-style: none;
  padding: 0;
}

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

.work-card__link {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.work-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--black-card);
  border-radius: var(--radius-xl);
}

.work-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 600ms var(--ease-out);
}

.work-card__link:hover .work-card__media img {
  transform: scale(1.03);
}

.work-card__media .status {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
}

@media (max-width: 47.99rem) {
  .work-card__media {
    aspect-ratio: 4 / 3;
  }

  .work-card__summary {
    font-size: var(--text-sm);
  }

  /* Small images: the placeholder icon would collide with the overlay text, so the
     "Screenshot coming" label moves to the top-right corner instead */
  .work-card .placeholder__icon {
    display: none;
  }

  .work-card .placeholder__label {
    position: absolute;
    top: var(--space-5);
    right: var(--space-4);
    font-size: 0.625rem;
  }
}

.work-card__overlay {
  position: absolute;
  inset: auto 0 0;
  padding: var(--space-12) var(--space-5) var(--space-4);
  background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--black) 92%, transparent) 55%);
  transition:
    opacity 300ms var(--ease-out),
    transform 300ms var(--ease-out);
}

/* With a mouse, the client type and summary appear on hover or keyboard focus only.
   Touch screens have no hover, so they keep the overlay visible. */
@media (hover: hover) {
  .work-card__overlay {
    opacity: 0;
    transform: translateY(var(--space-4));
  }

  .work-card__link:hover .work-card__overlay,
  .work-card__link:focus-visible .work-card__overlay {
    opacity: 1;
    transform: none;
  }
}

.work-card__client {
  color: var(--blue-light);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

.work-card__summary {
  margin-top: var(--space-2);
  color: #fff;
  font-size: var(--text-base);
  line-height: 1.5;
}

.work-card__body {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3) var(--space-5);
}

.work-card__title {
  max-width: 14ch;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1.4;
  letter-spacing: 0;
  transition: color var(--duration) var(--ease-out);
}

.work-card__link:hover .work-card__title {
  color: var(--blue-light);
}

.work-card__body .work-card__tags {
  flex: none;
  flex-wrap: nowrap;
  margin-top: var(--space-1);
  padding-top: 0;
}

.work-card__body .pill {
  padding: var(--space-1) var(--space-4);
  border-color: var(--black-raised);
  color: #fff;
  font-size: var(--text-sm);
}

/* Status and tag pills are shared with the case-study pages */

.status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  background: var(--black);
  border: 1px solid var(--black-raised);
  border-radius: var(--radius-pill);
  color: var(--text-on-dark);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  white-space: nowrap;
}

.status::before {
  content: "";
  width: 0.375rem;
  height: 0.375rem;
  background: var(--muted-on-dark);
  transform: rotate(45deg);
}

.status--active {
  border-color: var(--blue);
}

.status--active::before {
  background: var(--blue-light);
}

.work-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: auto;
  padding-top: var(--space-2);
  list-style: none;
  padding-left: 0;
}

.work-cta {
  margin-top: var(--space-16);
  color: #fff;
  text-align: center;
}

.work-cta a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 2.75rem;
  color: var(--blue-light);
  font-family: var(--font-heading);
  font-weight: 500;
}

.work-cta svg {
  width: 1rem;
  height: 1rem;
}

/* On black sections the placeholder uses the black card shade */
.section--black .placeholder {
  padding-bottom: var(--space-16);
  background-color: var(--black-card);
  background-image:
    repeating-linear-gradient(45deg, var(--line-on-black) 0 1px, transparent 1px var(--space-10)),
    repeating-linear-gradient(-45deg, var(--line-on-black) 0 1px, transparent 1px var(--space-10));
}

.section--black .placeholder__icon {
  background: var(--black);
}

/* Neutral block in brand colors until real screenshots arrive */

.placeholder {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: var(--space-3);
  width: 100%;
  height: 100%;
  background-color: var(--black-card);
  background-image:
    repeating-linear-gradient(45deg, var(--line-on-black) 0 1px, transparent 1px var(--space-10)),
    repeating-linear-gradient(-45deg, var(--line-on-black) 0 1px, transparent 1px var(--space-10));
  color: var(--blue-light);
}

.placeholder__icon {
  width: 3.5rem;
  height: 3.5rem;
  padding: var(--space-3);
  background: var(--black);
  border: 1px solid var(--blue);
  border-radius: var(--radius-md);
}

.placeholder__label {
  color: var(--muted-on-dark);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

.work-cta {
  margin-top: var(--space-10);
  color: var(--muted-on-dark);
  text-align: center;
}

.work-cta a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 2.75rem;
  font-family: var(--font-heading);
  font-weight: 700;
}

.work-cta svg {
  width: 1rem;
  height: 1rem;
}

/* About me / Experience, laid out like Maxel's "About the Founder": one large dark panel with
   the title and intro on top, then credential cards, a tall portrait and the story column. */

.about-panel {
  padding: var(--space-8) var(--space-5);
  background: var(--black-card);
  border-radius: var(--radius-xl);
}

@media (min-width: 48rem) {
  .about-panel {
    padding: var(--space-12) var(--space-10);
  }
}

.about-panel__head {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 64rem) {
  .about-panel__head {
    grid-template-columns: minmax(0, 1.95fr) minmax(0, 1fr);
    gap: var(--space-16);
    align-items: end;
  }
}

.about-panel__title {
  text-wrap: wrap;
  margin-top: var(--space-5);
  color: #fff;
  font-size: clamp(1.625rem, 0.9rem + 2.6vw, 3rem);
  line-height: 1.2;
  letter-spacing: 0;
}

/* Each sentence gets its own line */
.about-panel__title-line {
  display: block;
}

.about-panel__intro {
  color: var(--muted-on-dark);
  font-size: var(--text-base);
  line-height: 1.7;
}

.about-panel__body {
  display: grid;
  gap: var(--space-8);
  margin-top: var(--space-12);
}

@media (min-width: 48rem) {
  .about-panel__body {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-story {
    grid-column: 1 / -1;
  }
}

@media (min-width: 75rem) {
  .about-panel__body {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 0.95fr) minmax(0, 1.45fr);
    gap: var(--space-10);
    align-items: stretch;
  }

  /* The portrait runs the full height of the story column */
  .about-photo img {
    height: 100%;
    aspect-ratio: auto;
  }

  .about-story {
    grid-column: auto;
  }
}

/* Credential cards sit on the black page color so they stand out from the panel */

.about-creds {
  display: grid;
  gap: var(--space-5);
  align-content: start;
}

.about-cred {
  display: grid;
  justify-items: start;
  gap: var(--space-2);
  padding: var(--space-6);
  background: var(--black);
  border-radius: var(--radius-lg);
}

.about-cred__icon {
  display: grid;
  place-items: center;
  width: 3.125rem;
  height: 3.125rem;
  margin-bottom: var(--space-3);
  background: var(--blue);
  border-radius: 50%;
  color: #fff;
}

.about-cred__icon svg {
  width: 1.375rem;
  height: 1.375rem;
}

.about-cred__type {
  color: var(--blue-light);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

.about-cred h3 {
  color: #fff;
  font-size: var(--text-lg);
  line-height: 1.35;
  letter-spacing: 0;
}

.about-cred__meta {
  color: var(--muted-on-dark);
  font-size: var(--text-sm);
}

.about-cred a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 2.75rem;
  color: #fff;
  font-size: var(--text-sm);
}

.about-cred a:hover {
  color: var(--blue-light);
}

.about-cred a svg {
  width: 1rem;
  height: 1rem;
}

.about-photo {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.about-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* Quote, signature and jobs */

.about-quote {
  position: relative;
  margin: 0;
  padding-left: var(--space-16);
}

.about-quote__mark {
  position: absolute;
  top: var(--space-1);
  left: 0;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--blue);
  border-radius: 50%;
  color: #fff;
}

.about-quote__mark svg {
  width: 1.25rem;
  height: 1.25rem;
}

.about-quote p {
  position: relative;
  color: #fff;
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 1.1rem + 1vw, 2rem);
  font-weight: var(--weight-heading);
  line-height: 1.35;
  text-wrap: balance;
}

.about-sign {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--line-on-black);
}

.about-sign__name {
  color: #fff;
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-heading);
}

.about-sign__role {
  margin-top: var(--space-1);
  color: var(--blue-light);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
}

.about-jobs {
  display: grid;
  gap: var(--space-6);
  margin-top: var(--space-6);
  list-style: none;
  padding: 0;
}

.about-job {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.about-job__check {
  flex: none;
  color: var(--blue);
}

.about-job__check svg {
  width: 1.75rem;
  height: 1.75rem;
}

.about-job h3 {
  color: #fff;
  font-size: var(--text-lg);
  line-height: 1.4;
  letter-spacing: 0;
}

.about-job__meta {
  margin-top: var(--space-1);
  color: var(--blue-light);
  font-size: var(--text-sm);
}

.about-job__points {
  display: grid;
  gap: var(--space-1);
  margin-top: var(--space-3);
  color: var(--muted-on-dark);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.about-job__points li {
  position: relative;
  padding-left: var(--space-4);
}

.about-job__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 0.3125rem;
  height: 0.3125rem;
  background: var(--blue);
  transform: rotate(45deg);
}

/* Shared heading row on black sections: eyebrow, title, short intro, all starting on one line */

.split-head {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 64rem) {
  .split-head {
    grid-template-columns: max-content minmax(0, 1fr) 17rem;
    gap: var(--space-5) var(--space-10);
    align-items: start;
  }
}

.split-head__title {
  color: #fff;
  font-size: clamp(2.25rem, 1.2rem + 2.8vw, 3.4375rem);
  line-height: 1.2;
  letter-spacing: 0;
}

.split-head__title .text-outline {
  display: block;
}

.split-head__intro {
  color: var(--muted-on-dark);
  font-size: var(--text-lg);
  line-height: 1.6;
}

/* Process */

.process-grid {
  display: grid;
  gap: var(--space-5);
  margin-top: var(--space-12);
  list-style: none;
  padding: 0;
}

@media (min-width: 48rem) and (max-width: 79.99rem) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .step:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

@media (min-width: 80rem) {
  .process-grid {
    grid-template-columns: repeat(5, 1fr);
    align-items: start;
  }

  .step:nth-child(even) {
    margin-top: var(--space-10);
  }
}

.step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  height: 100%;
  padding: var(--space-8) var(--space-6);
  background: var(--black-card);
  border-radius: var(--radius-xl);
  transition: background-color var(--duration) var(--ease-out);
}

.step:hover {
  background: color-mix(in srgb, #fff 9%, var(--black));
}

@media (min-width: 80rem) {
  .step {
    height: auto;
  }
}

.step__number {
  color: transparent;
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: var(--weight-heading);
  line-height: 1;
  -webkit-text-stroke: 1.5px var(--blue);
}

.step h3 {
  margin-top: var(--space-5);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: 0;
}

.step p {
  color: var(--muted-on-dark);
  font-size: var(--text-base);
  line-height: 1.6;
}

/* Testimonials (hidden until real quotes exist) */

.quotes {
  display: grid;
  gap: var(--space-5);
  margin-top: var(--space-12);
}

@media (min-width: 48rem) {
  .quotes {
    grid-template-columns: repeat(2, 1fr);
  }
}

.quote {
  margin: 0;
  padding: var(--space-8);
  background: var(--black-card);
  border-radius: var(--radius-xl);
}

.quote blockquote {
  margin: 0;
  color: #fff;
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 500;
  line-height: 1.5;
}

.quote figcaption {
  display: grid;
  margin-top: var(--space-6);
  color: var(--muted-on-dark);
  font-size: var(--text-sm);
}

.quote figcaption strong {
  color: #fff;
}

/* "View my resume" scrolling strip: brand blue, alternating filled and outlined text */

.resume-strip {
  display: block;
  overflow: hidden;
  padding-block: var(--space-6);
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  transition: background-color var(--duration) var(--ease-out);
}

.resume-strip:hover {
  background: var(--blue-hover);
}

.resume-strip:focus-visible {
  outline: 3px solid #fff;
  outline-offset: -6px;
  border-radius: 0;
}

.resume-strip__track {
  display: flex;
  width: max-content;
}

.resume-strip__track span {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: var(--weight-heading);
  line-height: 1.1;
  text-transform: uppercase;
  white-space: nowrap;
}

.resume-strip__track .resume-strip__outline {
  color: transparent;
  -webkit-text-stroke: 1.5px #fff;
}

.resume-strip__track span::after {
  content: "";
  width: 0.35em;
  height: 0.35em;
  margin-inline: 0.6em;
  background: var(--navy-cysn);
  transform: rotate(45deg);
}

@media (prefers-reduced-motion: no-preference) {
  .resume-strip__track {
    animation: marquee 30s linear infinite;
  }

  .resume-strip:hover .resume-strip__track {
    animation-play-state: paused;
  }
}

/* Contact */

.contact-grid {
  display: grid;
  gap: var(--space-12);
}

@media (min-width: 64rem) {
  .contact-grid {
    grid-template-columns: 1fr 1.15fr;
    gap: var(--space-16);
    align-items: start;
  }
}

.contact-info__title {
  margin-top: var(--space-5);
  color: #fff;
  font-size: clamp(2.25rem, 1.2rem + 2.8vw, 3.4375rem);
  line-height: 1.2;
  letter-spacing: 0;
}

.contact-info__title .text-outline {
  display: block;
}

.contact-info__intro {
  margin-top: var(--space-5);
  color: var(--muted-on-dark);
  font-size: var(--text-lg);
  line-height: 1.6;
}

.contact-list {
  display: grid;
  gap: var(--space-5);
  margin-block: var(--space-10);
  list-style: none;
  padding: 0;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  color: #fff;
  font-family: var(--font-heading);
}

.contact-list__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--black-raised);
  border-radius: var(--radius-md);
  color: var(--blue-light);
}

.contact-list__icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.contact-list__label {
  display: block;
  color: var(--muted-on-dark);
  font-family: var(--font-body);
  font-size: var(--text-xs);
}

.contact-list a {
  color: #fff;
  text-decoration: none;
}

.contact-list a:hover {
  color: var(--blue-light);
}

.contact-form {
  display: grid;
  gap: var(--space-5);
  padding: var(--space-6);
  background: var(--black-card);
  border-radius: var(--radius-xl);
}

@media (min-width: 48rem) {
  .contact-form {
    padding: var(--space-10);
  }
}

.field-row {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 48rem) {
  .field-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field label,
.field legend {
  display: block;
  margin-bottom: var(--space-2);
  padding: 0;
  color: #fff;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 500;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 3.25rem;
  padding: var(--space-3) var(--space-4);
  background: var(--black);
  border: 1px solid var(--black-raised);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  transition: border-color var(--duration) var(--ease-out);
}

.field textarea {
  resize: vertical;
}

.field input:hover,
.field textarea:hover {
  border-color: color-mix(in srgb, #fff 25%, transparent);
}

.field input:focus-visible,
.field textarea:focus-visible {
  border-color: var(--blue);
  outline-offset: 0;
}

.field ::placeholder {
  color: color-mix(in srgb, var(--muted-on-dark) 60%, var(--black));
}

.field [aria-invalid="true"] {
  border: 2px solid var(--blue-light);
}

.field__error {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-2);
  color: var(--blue-light);
  font-size: var(--text-sm);
}

.field__error::before {
  content: "";
  flex: none;
  width: 0.4375rem;
  height: 0.4375rem;
  background: var(--blue-light);
  transform: rotate(45deg);
}

.field__error:empty {
  display: none;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.chip {
  position: relative;
}

.chip input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: var(--space-2) var(--space-4);
  background: var(--black);
  border: 1px solid var(--black-raised);
  border-radius: var(--radius-pill);
  color: var(--muted-on-dark);
  font-size: var(--text-sm);
  font-weight: 500;
  transition:
    background-color var(--duration) var(--ease-out),
    border-color var(--duration) var(--ease-out),
    color var(--duration) var(--ease-out);
}

.chip:hover span {
  color: #fff;
}

.chip input:checked + span {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.chip input:focus-visible + span {
  outline: 2px solid var(--blue-light);
  outline-offset: 2px;
}

.contact-form__submit {
  width: 100%;
  min-height: 3.25rem;
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-lg);
}

@media (min-width: 48rem) {
  .contact-form__submit {
    width: auto;
    justify-self: start;
  }
}

.contact-form__note {
  color: var(--muted-on-dark);
  font-size: var(--text-sm);
}

.contact-form__note a {
  color: #fff;
}

.contact-form__status {
  padding: var(--space-3) var(--space-4);
  background: var(--blue-tint);
  border: 1px solid var(--blue);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
}

.contact-form__status:empty {
  display: none;
}

/* Rotated squares sit in the page corner, behind the transparent header, like the CV */
.hero .corner--slate {
  --corner-size: clamp(12rem, 34vw, 30rem);
  top: calc(var(--corner-size) / -2);
  right: calc(var(--corner-size) / -2);
}

.hero .corner--raised {
  --corner-size: clamp(7rem, 20vw, 18rem);
  top: calc(var(--corner-size) / -4);
  right: calc(var(--corner-size) / -1.5);
}

.hero .corner--dot {
  top: calc(var(--header-height) + clamp(var(--space-4), 3vw, var(--space-8)));
  right: clamp(7rem, 18vw, 16rem);
}

/* Footer */

.site-footer {
  position: relative;
  padding-top: var(--section-space);
  background: var(--black);
  border-top: 1px solid var(--line-on-black);
  overflow: clip;
  isolation: isolate;
}

.site-footer .corner--blue {
  --corner-size: clamp(8rem, 22vw, 20rem);
  bottom: calc(var(--corner-size) / -2);
  right: calc(var(--corner-size) / -2);
}

.site-footer .corner--slate {
  --corner-size: clamp(6rem, 15vw, 14rem);
  bottom: calc(var(--corner-size) / -1.6);
  right: calc(var(--corner-size) * 0.6);
}

.footer-grid {
  display: grid;
  gap: var(--space-10);
}

@media (min-width: 48rem) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1.2fr;
    gap: var(--space-12);
  }
}

.footer-brand p {
  color: var(--muted-on-dark);
}

.footer-brand .logo--image img {
  height: 3.5rem;
}

.footer-brand__outro {
  max-width: 26rem;
  margin-top: var(--space-5);
  line-height: 1.6;
}

.footer-brand__role {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
}

.footer-brand__role a {
  white-space: nowrap;
}

.footer-heading {
  margin-bottom: var(--space-4);
  color: var(--blue-light);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

/* Two columns of three links */
.footer-links {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  grid-template-rows: repeat(3, auto);
  grid-auto-flow: column;
  gap: var(--space-3) var(--space-12);
}

.footer-links a {
  color: var(--muted-on-dark);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text-on-dark);
}

/* Contact rows with small icons, like the CV sidebar */

.contact-rows {
  display: grid;
  gap: var(--space-3);
}

.contact-rows li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--muted-on-dark);
}

.contact-rows svg {
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
  color: var(--blue-light);
}

.contact-rows a {
  color: inherit;
  text-decoration: none;
}

.contact-rows a:hover {
  color: var(--text-on-dark);
}

.footer-giant {
  margin-top: var(--space-16);
  font-family: var(--font-heading);
  /* "Tchuente Yadou Yvan" is about 10.9em wide in Poppins 600; this keeps it inside the container */
  font-size: clamp(1.5rem, 8vw - 0.25rem, 7.25rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: var(--tracking-name);
  white-space: nowrap;
  color: transparent;
  /* Slate lifted with a little of the muted text color to reach 3:1 contrast on black */
  -webkit-text-stroke: 1px color-mix(in srgb, var(--slate) 78%, var(--muted-on-dark));
}

.footer-giant span {
  color: var(--blue);
  -webkit-text-stroke: 0;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2) var(--space-6);
  margin-top: var(--space-8);
  padding-block: var(--space-6);
  border-top: 1px solid var(--line-on-black);
  color: var(--muted-on-dark);
  font-size: var(--text-sm);
}

.footer-bottom a {
  color: var(--muted-on-dark);
}

/* Until the developer site exists the card shows a plain note instead of a link */
p.expertise-code__link {
  color: color-mix(in srgb, #fff 80%, transparent);
  font-weight: 500;
}

/* Contact form: optional label hint, hidden honeypot, status colors */
.field__optional {
  color: var(--muted-on-dark);
  font-weight: 400;
}

.field--trap {
  position: absolute;
  left: -100vw;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form {
  position: relative;
}

.contact-form__status[data-state="success"] {
  border-color: var(--blue-light);
}

.contact-form__status[data-state="error"] {
  background: transparent;
  border-color: var(--blue-light);
}

.contact-form__submit:disabled {
  opacity: 0.6;
  cursor: progress;
}

/* Analytics consent banner (only shown in the EU, UK and Switzerland once GA4 is switched on) */
.consent {
  position: fixed;
  z-index: 60;
  left: var(--gutter);
  right: var(--gutter);
  bottom: var(--space-5);
  display: grid;
  gap: var(--space-4);
  max-width: 34rem;
  padding: var(--space-5) var(--space-6);
  background: var(--black-raised);
  border-radius: var(--radius-lg);
  box-shadow: 0 var(--space-4) var(--space-10) color-mix(in srgb, #000 60%, transparent);
  color: var(--text-on-dark);
  font-size: var(--text-sm);
}

.consent__actions {
  display: flex;
  gap: var(--space-3);
}

.consent__btn {
  min-height: 2.75rem;
  padding: var(--space-2) var(--space-6);
  border-radius: var(--radius-md);
}

.footer-bottom__links {
  display: flex;
  gap: var(--space-6);
}

.footer-cookie {
  padding: 0;
  background: none;
  border: 0;
  color: var(--muted-on-dark);
  font-size: var(--text-sm);
  text-decoration: underline;
}

.footer-cookie[hidden] {
  display: none;
}

/* While only one project has images, its card spans the whole row in a wider shape */
@media (min-width: 48rem) {
  .work-grid > .work-card:only-child {
    grid-column: 1 / -1;
  }

  .work-grid > .work-card:only-child .work-card__media {
    aspect-ratio: 21 / 9;
  }
}
