:root {
  --content-max: 90rem;
  --page-gutter: clamp(1rem, 3vw, 2.5rem);
  --layout-gap: clamp(1.75rem, 5vw, 5.625rem);
  --touch-target: 2.75rem;
  --page: min(var(--content-max), calc(100vw - (2 * var(--page-gutter))));
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-width: 20rem;
}

.header__logo,
.header__cta,
.header__menu-button,
.menu-close,
.menu-link,
.project__visual,
.social-links a,
.contact__mail {
  min-height: var(--touch-target);
}

.project__visual,
.project__content,
.about__content,
.contact > * {
  min-width: 0;
}

@media (max-width: 60rem) {
  .hero {
    min-height: 100svh;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(18rem, 1fr) auto;
    align-content: center;
    gap: clamp(0.5rem, 2vw, 1.5rem);
  }

  .hero__content {
    max-width: 52rem;
    transform: none;
  }

  .hero__visual {
    min-height: clamp(20rem, 44vh, 31rem);
    margin-left: 0;
    margin-top: clamp(-5rem, -8vw, -2rem);
  }

  .hero__action {
    padding-top: 0;
  }

  .hero__line-canvas {
    touch-action: pan-y;
  }

  .project,
  .about,
  .contact {
    grid-template-columns: minmax(0, 1fr);
  }

  .project--right {
    grid-template-columns: minmax(0, 1fr);
  }

  .project--right .project__visual {
    order: 0;
  }

  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .capability-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .capability {
    min-height: auto;
  }

  .contact__links {
    justify-content: flex-start;
  }

  .about:not(:has(.about__portrait)) {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 42.5rem) {
  :root {
    --page-gutter: 0.9375rem;
    --section-space: clamp(4.5rem, 18vw, 7rem);
    --header-height: clamp(3.875rem, 12vw, 4.5rem);
  }

  .header__logo img {
    max-width: clamp(4.75rem, 24vw, 6.5rem);
    max-height: 2.75rem;
  }

  .header-actions {
    gap: 0.5rem;
  }

  .header__cta {
    min-width: 6.75rem;
    height: 2.75rem;
    padding-inline: 1rem;
    font-size: 0.8rem;
  }

  .header__menu-button {
    width: 2.75rem;
    height: 2.75rem;
  }

  .menu-nav {
    padding-top: calc(var(--header-height) + 3rem);
  }

  .hero {
    min-height: 100svh;
    padding-top: calc(var(--header-height) + 2.25rem);
    padding-bottom: 2rem;
    gap: 0.5rem;
  }

  .hero__title {
    width: auto;
    max-width: 100%;
    font-size: clamp(2.5rem, 10.8vw, 4.5rem);
  }

  .hero__title-line {
    width: auto;
    max-width: 100%;
    column-gap: 0.12em;
    white-space: normal;
  }

  .hero__title-line--two {
    margin-left: 0;
  }

  .hero__visual {
    min-height: clamp(15rem, 34svh, 22rem);
    margin-top: -2rem;
  }

  .hero__button {
    min-width: 8.75rem;
  }

  .photo-wall__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 9rem;
  }

  .photo-wall__item {
    grid-column: auto !important;
    grid-row: auto !important;
  }

  .photo-wall__item:nth-child(1),
  .photo-wall__item:nth-child(4) {
    grid-row: span 2 !important;
  }

  .statement-line__text {
    padding-block: 0.75rem 1rem;
    font-size: clamp(2.45rem, 14vw, 4.4rem);
  }

  .project__meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.375rem;
  }

  .process-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .process-card {
    min-height: auto;
    padding: 1.375rem 0 2.625rem;
  }

  .process-card > span {
    margin-bottom: 2.625rem;
  }

  .contact__mail {
    font-size: clamp(1.1rem, 6vw, 1.65rem);
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (hover: none), (pointer: coarse) {
  .project__open {
    display: inline-flex;
    opacity: 1;
    transform: none;
  }

  .project__visual:hover img {
    transform: none;
  }

  .button-content--next,
  .menu-lines--next {
    display: none;
  }

  .header__cta:hover .button-content--current,
  .header__menu-button:hover .menu-lines--current {
    transform: none;
  }
}

@media (orientation: landscape) and (max-height: 32rem) {
  .hero {
    min-height: 36rem;
  }
}


@media (prefers-reduced-motion: reduce) {
  .hero__line-canvas {
    transition: none;
  }
}


/* Refined hero composition */
@media (max-width: 60rem) {
  .hero__content {
    padding-top: clamp(6.5rem, 13vh, 8.5rem);
  }

  .hero__visual {
    margin-top: -4rem;
  }

  .hero__action {
    bottom: clamp(5rem, 12vh, 8rem);
  }
}

@media (max-width: 42.5rem) {
  .hero__content {
    padding-top: clamp(5.75rem, 12vh, 7rem);
  }

  .hero__title {
    width: 100%;
    max-width: 100%;
    font-size: clamp(3rem, 14vw, 5rem);
  }

  .hero__title-line {
    width: auto;
    max-width: 100%;
    white-space: normal;
  }

  .hero__title-line--two,
  .hero__title-line--three,
  .hero__title-line--four {
    margin-left: 0;
  }

  .hero__visual {
    margin-top: -6rem;
  }

  .hero__action {
    bottom: 4rem;
  }
}

/* July design update — responsive */
@media (max-width: 72rem) {
  .hero__content {
    width: 59%;
  }

  .hero__title {
    font-size: clamp(3.7rem, 7.4vw, 6.3rem);
  }

  .hero__visual {
    width: 60vw;
    right: -9vw;
  }

  .hero__action {
    left: 58%;
  }
}

@media (max-width: 60rem) {
  .header__logo {
    width: clamp(6.25rem, 17vw, 8rem);
  }

  .hero {
    min-height: 100svh;
    padding-top: calc(var(--header-height) + 2rem);
  }

  .hero__content {
    width: 72%;
    padding-top: clamp(5.5rem, 12vh, 8rem);
  }

  .hero__title {
    font-size: clamp(3.25rem, 9vw, 5.4rem);
  }

  .hero__title-line--two,
  .hero__title-line--four {
    margin-left: clamp(2rem, 7vw, 4.25rem);
  }

  .hero__visual {
    top: 15%;
    right: -18%;
    width: 77vw;
    height: 67%;
    min-height: 25rem;
  }

  .hero__action {
    left: 61%;
    top: 76%;
  }

  .menu__line-field {
    width: 88vw;
    right: -24vw;
  }
}

@media (max-width: 44rem) {
  .hero {
    overflow: hidden;
  }

  .hero__content {
    width: 100%;
    padding-top: clamp(5rem, 11vh, 7rem);
  }

  .hero__title {
    font-size: clamp(2.75rem, 13vw, 4.5rem);
    line-height: 0.9;
  }

  .hero__title-line {
    white-space: normal;
    width: auto;
  }

  .hero__title-line--two,
  .hero__title-line--three,
  .hero__title-line--four {
    margin-left: 0;
  }

  .hero__visual {
    top: 37%;
    right: -24%;
    width: 112vw;
    height: 49%;
    min-height: 19rem;
  }

  .hero__action {
    left: 50%;
    top: 82%;
  }

  .menu__line-field {
    top: 18%;
    right: -42%;
    width: 138vw;
    height: 72%;
  }

  .project:nth-child(odd) .project__visual,
  .project:nth-child(even) .project__visual {
    border-radius: 2.25rem;
  }
}

/* Header, hero and about refinement */
@media (max-width: 60rem) {
  .header__logo {
    width: clamp(4.75rem, 11vw, 6rem);
  }

  .hero__content {
    width: 76%;
  }

  .hero__visual {
    top: 29%;
    right: -18%;
    width: 82vw;
    height: 58%;
  }

  .hero__action {
    left: 62%;
    top: 78%;
  }

  .about {
    grid-template-columns: minmax(0, 1fr) minmax(15rem, 0.75fr);
    gap: clamp(2rem, 5vw, 4rem);
  }
}

@media (max-width: 44rem) {
  .header__name {
    max-width: 5.4rem;
    font-size: 0.82rem;
    line-height: 1.05;
  }

  .header__logo {
    width: 4.4rem;
    height: 2.8rem;
  }

  .hero__content {
    width: 100%;
    padding-top: clamp(4.5rem, 10vh, 6rem);
  }

  .hero__visual {
    top: 40%;
    right: -27%;
    width: 116vw;
    height: 46%;
  }

  .hero__action {
    left: 50%;
    top: 83%;
  }

  .about {
    grid-template-columns: minmax(0, 1fr);
  }

  .about__portrait,
  .about__content {
    order: initial;
  }

  .about__portrait img {
    border-radius: 0 0 2.5rem 0;
  }
}

/* Latest update */
@media (max-width: 44rem) {
  .header__name {
    font-size: 0.82rem;
  }

  .header__logo {
    width: clamp(4.3rem, 18vw, 5.25rem);
  }

  .hero__visual {
    top: 39%;
  }

  .contact__portrait {
    width: 4.5rem;
    height: 4.5rem;
  }
}

/* V4 responsive refinements */
@media (max-width: 60rem) {
  .contact__links {
    align-items: center;
    justify-content: center;
  }

  .contact__portrait {
    width: min(72vw, 21rem);
  }
}

@media (max-width: 42.5rem) {
  .photo-wall__item--7 {
    grid-column: auto !important;
    grid-row: auto !important;
  }

  .project__visual img {
    filter: none;
  }
}

@media (hover: none), (pointer: coarse) {
  .project__open {
    left: 50%;
    top: 50%;
    right: auto;
    bottom: auto;
    transform: translate(-50%, -50%);
  }

  .project__visual:hover img {
    filter: none;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .write-on-heading,
  .write-on-heading.is-written {
    clip-path: none;
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* V5 responsive refinements */
@media (max-width: 60rem) {
  .contact__portrait {
    width: min(60vw, 18rem);
    transform: translateX(-5%);
  }
}

@media (max-width: 42.5rem) {
  .hero__small-word {
    font-size: 0.58em;
  }

  .contact__portrait {
    width: min(72vw, 16rem);
    transform: none;
  }

  .project__open {
    min-height: 3rem;
    padding: 0.82rem 1.25rem;
    font-size: 1rem;
  }
}


/* V6 cleanup */
.header__name { display: none !important; }
.photo-wall__item--7 { display: none !important; }

/* V7 mobile refinements */
@media (max-width: 60rem) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(16rem, 1fr);
  }

  .hero__prompt {
    top: auto;
    right: clamp(0.5rem, 4vw, 2rem);
    bottom: clamp(6rem, 14vh, 10rem);
    width: min(7ch, 46vw);
    transform: none;
  }
}

@media (max-width: 42.5rem) {
  .header__brand {
    max-width: 8.25rem;
    font-size: 0.76rem;
    line-height: 1.05;
    white-space: normal;
  }

  .header__logo img {
    max-width: clamp(3.8rem, 17vw, 5.25rem);
  }

  .header__cta {
    min-width: 5.9rem;
    padding-inline: 0.8rem;
    font-size: 0.72rem;
  }

  .hero__title {
    max-width: 100%;
    font-size: clamp(2.55rem, 10.4vw, 4.35rem);
  }

  .hero__title-line {
    white-space: normal;
  }

  .hero__title-line--indent {
    margin-left: clamp(1rem, 7vw, 2.25rem);
  }

  .hero__prompt {
    right: 0;
    bottom: clamp(3.5rem, 10vh, 6rem);
    font-size: clamp(2.75rem, 13vw, 4.75rem);
  }
}

@media (max-width: 60rem) {
  .project-story,
  .project-result {
    grid-template-columns: minmax(0, 1fr);
  }

  .project-gallery figure,
  .project-gallery__wide,
  .project-result figure {
    min-height: clamp(20rem, 55vw, 34rem) !important;
  }
}

@media (max-width: 42.5rem) {
  .project-hero {
    padding-top: 3.5rem;
  }

  .project-hero h1 {
    font-size: clamp(3.2rem, 16vw, 5.6rem);
  }

  .project-hero__image {
    height: 62svh;
  }

  .project-gallery {
    grid-template-columns: minmax(0, 1fr);
  }

  .project-gallery__wide {
    grid-column: auto;
  }

  .project-next a {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-next strong {
    text-align: left;
  }
}

/* V8 responsive refinements */
@media (max-width: 60rem) {
  .hero__prompt {
    right: clamp(0.75rem, 4vw, 2rem);
    top: 30%;
  }
}

@media (max-width: 42.5rem) {
  .hero__small-word {
    font-size: 0.62em;
    vertical-align: 0.1em;
  }

  .hero__prompt {
    position: relative;
    top: auto;
    right: auto;
    width: auto;
    margin: -1rem 0 0 auto;
    font-size: clamp(2.6rem, 13vw, 4.5rem);
    transform: none;
  }

  .hero__prompt-arrow {
    position: relative;
    top: auto;
    right: auto;
    margin: 1rem 0 0 auto;
  }

  .project-hero h1 {
    max-width: none;
    font-size: clamp(2.8rem, 13vw, 4.8rem);
  }

  .project-story,
  .project-result {
    grid-template-columns: 1fr;
  }

  .project-story__copy h2,
  .project-result h2 {
    max-width: none;
    font-size: clamp(2.1rem, 10vw, 3.5rem);
  }

  .project-next {
    flex-direction: column;
  }

  .project-next__button {
    width: 100%;
  }
}

/* V9 responsive refinements */
@media (max-width: 60rem) {
  .menu-list {
    width: min(38rem, 62vw);
  }

  .menu__line-field {
    left: -18%;
    width: 78vw;
  }
}

@media (max-width: 42.5rem) {
  .menu-list {
    width: 100%;
  }

  .menu__line-field {
    left: -40%;
    width: 110vw;
    opacity: 0.55;
  }

  .project-result,
  .project-result figure {
    min-height: clamp(28rem, 120vw, 38rem) !important;
  }

  .project-result__copy {
    width: calc(100% - 2rem);
    margin: 1rem;
  }
}

/* =========================================================
   V7 — dedicated mobile composition
   Keeps the desktop design untouched and only activates on
   narrow portrait viewports.
   ========================================================= */
@media (max-width: 42.5rem) and (orientation: portrait) {
  :root {
    --section-space: clamp(3.5rem, 14vw, 5.25rem);
  }

  /* Hero: one complete first screen, no photo wall visible on load. */
  .hero {
    position: relative;
    display: block;
    min-height: 100svh;
    padding-top: calc(var(--header-height) + clamp(1.5rem, 5vh, 2.5rem));
    padding-bottom: clamp(2rem, 6vh, 3.5rem);
  }

  .hero__content {
    position: relative;
    z-index: 4;
    width: min(83%, 22rem);
    max-width: none;
    padding-top: clamp(1.25rem, 7vh, 4.25rem);
  }

  .hero__title {
    display: grid;
    width: 100%;
    max-width: none;
    gap: 0.04em;
    font-size: clamp(2.55rem, 12.4vw, 3.65rem);
    line-height: 0.88;
    letter-spacing: -0.072em;
  }

  .hero__title-line,
  .hero__title-line--indent {
    width: max-content;
    max-width: 100%;
    margin-left: 0;
    white-space: nowrap;
  }

  .hero__title-line--indent {
    margin-left: clamp(1.2rem, 7vw, 2rem);
  }

  .hero__small-word {
    font-size: 0.48em;
  }

  .hero__visual {
    position: absolute;
    z-index: 1;
    inset: 7% -28% 7% 4%;
    width: auto;
    height: auto;
    min-height: 0;
    margin: 0;
    opacity: 0.82;
    pointer-events: none;
  }

  .hero__line-canvas {
    inset: -8% -18% -10% -12%;
    width: 130%;
    height: 126%;
  }

  .hero__prompt {
    position: absolute;
    z-index: 5;
    top: auto;
    right: clamp(0.25rem, 3vw, 0.75rem);
    bottom: clamp(5.25rem, 13vh, 7rem);
    width: min(6.4ch, 48vw);
    margin: 0;
    font-size: clamp(2.25rem, 11.8vw, 3.35rem);
    line-height: 0.86;
    text-align: right;
    transform: none;
  }

  .hero__prompt-arrow {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    width: 0.8em;
    margin: 0.8rem auto 0;
    transform: none;
  }

  /* Tighter rhythm after the hero. */
  .photo-wall {
    padding-top: 1.75rem;
    padding-bottom: clamp(3rem, 12vw, 4.5rem);
  }

  .about {
    padding-top: clamp(2.75rem, 10vw, 4rem);
    padding-bottom: clamp(3rem, 12vw, 4.5rem);
  }

  .about__lead {
    margin: 1.4rem 0 2rem;
    font-size: clamp(1.4rem, 7vw, 2rem);
  }

  /* All four statements stay fully readable. */
  .statement {
    padding-bottom: clamp(3.25rem, 12vw, 4.75rem);
  }

  .statement-line__text {
    padding: 0.72rem var(--page-gutter) 0.82rem;
    font-size: clamp(1.28rem, 5.55vw, 1.65rem);
    line-height: 1;
    letter-spacing: -0.052em;
    transform: none !important;
    white-space: nowrap;
  }

  /* Projects: persistent CTA at the lower edge, because there is no hover. */
  .projects .section-heading {
    margin-bottom: clamp(2.5rem, 10vw, 4rem);
  }

  .project-list {
    gap: clamp(4rem, 15vw, 6rem);
  }

  .project {
    gap: 1.4rem;
  }

  .project__visual img {
    aspect-ratio: 4 / 3;
  }

  .project__open {
    top: auto;
    right: auto;
    bottom: 1rem;
    left: 50%;
    min-height: 3.1rem;
    padding: 0.82rem 1.35rem;
    opacity: 1;
    transform: translateX(-50%);
  }

  .project__visual:hover .project__open,
  .project__visual:focus-visible .project__open {
    transform: translateX(-50%);
  }

  .project__content h3 {
    margin-bottom: 1rem;
  }

  .project__meta {
    margin-bottom: 1.5rem;
  }

  /* Four process points in a compact two-by-two layout. */
  .process {
    padding-top: clamp(3rem, 12vw, 4.5rem);
    padding-bottom: clamp(3rem, 12vw, 4.5rem);
  }

  .process .section-heading {
    margin-bottom: 2.4rem;
  }

  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-card {
    min-height: 13rem;
    padding: 1rem 0.9rem 1.25rem;
  }

  .process-card > span {
    margin-bottom: 2.1rem;
    font-size: 0.68rem;
  }

  .process-card h3 {
    margin-bottom: 0.7rem;
    font-size: clamp(1.35rem, 6.2vw, 1.75rem);
  }

  .process-card p {
    font-size: 0.88rem;
    line-height: 1.45;
  }

  /* Contact portrait: show the complete image, centered and uncropped. */
  .contact {
    padding-top: clamp(3.5rem, 13vw, 5rem);
    padding-bottom: clamp(3rem, 12vw, 4.5rem);
    gap: 2.25rem;
  }

  .contact__links {
    gap: 1.35rem;
  }

  .contact__portrait {
    width: min(62vw, 13.5rem);
    height: auto;
    max-height: none;
    aspect-ratio: auto;
    margin: 0 auto 0.35rem;
    border-radius: 0 0 clamp(2rem, 9vw, 3.25rem) 0;
    object-fit: contain;
    object-position: center center !important;
    transform: none;
  }

  .contact__mail {
    font-size: clamp(1.05rem, 5.6vw, 1.45rem);
  }

  .social-links {
    justify-content: center;
    gap: 0.8rem 1.15rem;
  }
}

/* Very narrow phones receive an additional type safeguard. */
@media (max-width: 23.5rem) and (orientation: portrait) {
  .hero__title {
    font-size: clamp(2.25rem, 11.7vw, 2.75rem);
  }

  .statement-line__text {
    font-size: 1.16rem;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }
}

/* V8 mobile layout corrections */
@media (max-width: 42.5rem) {
  /* Hero: keep the landing page full-height, but position both text blocks deliberately. */
  .hero {
    position: relative;
    display: block;
    min-height: 100svh;
    padding-top: var(--header-height);
    padding-bottom: 1.5rem;
    overflow: hidden;
  }

  .hero__content {
    position: absolute;
    z-index: 5;
    top: clamp(8.5rem, 25svh, 13.5rem);
    left: var(--page-gutter);
    width: calc(100% - (2 * var(--page-gutter)));
    max-width: 22rem;
    padding-top: 0;
  }

  .hero__title {
    width: 100%;
    max-width: 9.8ch;
    font-size: clamp(2.35rem, 11.2vw, 3.4rem);
    line-height: 0.86;
  }

  .hero__title-line,
  .hero__title-line--indent {
    width: max-content;
    max-width: 100%;
    margin-left: 0;
    white-space: nowrap;
  }

  .hero__title-line--indent {
    margin-left: clamp(1.15rem, 5.5vw, 1.8rem);
  }

  .hero__small-word {
    font-size: 0.46em;
    vertical-align: 0.1em;
    letter-spacing: -0.04em;
  }

  .hero__prompt {
    position: absolute;
    z-index: 6;
    top: clamp(29rem, 64svh, 37rem);
    right: clamp(1.65rem, 8vw, 3.5rem);
    bottom: auto;
    display: grid;
    width: 5.8ch;
    margin: 0;
    font-size: clamp(2.7rem, 12.5vw, 3.85rem);
    line-height: 0.84;
    text-align: left;
    transform: none;
  }

  .hero__prompt-arrow {
    position: relative;
    left: 50%;
    top: auto;
    width: 2.8rem;
    margin: 1rem 0 0;
    transform: translateX(-50%);
  }

  .hero__visual {
    position: absolute;
    z-index: 1;
    inset: calc(var(--header-height) + 0.5rem) -28% 0 -22%;
    width: auto;
    height: auto;
    min-height: 0;
    margin: 0;
  }

  /* Statements: fill almost the whole viewport width without clipping. */
  .statement {
    width: 100%;
  }

  .statement__lines {
    width: 100%;
    margin-left: 0;
  }

  .statement-line {
    overflow: hidden;
  }

  .statement-line__text {
    width: 100%;
    padding: 0.75rem 0.55rem 0.9rem;
    font-size: clamp(1.9rem, 8.45vw, 3.15rem);
    line-height: 0.95;
    letter-spacing: -0.072em;
    transform: none !important;
    white-space: nowrap;
  }

  .statement-line:nth-child(even) .statement-line__text {
    -webkit-text-stroke-width: 1px;
  }

  /* Mobile overlay menu: larger and pulled in from the hard right edge. */
  .menu-nav {
    align-items: flex-start;
    justify-content: flex-start;
    padding: calc(var(--header-height) + 4rem) clamp(2.25rem, 10vw, 4rem) 3rem;
  }

  .menu-list {
    width: 100%;
    margin: 0;
    align-items: flex-end;
    padding-right: clamp(0.5rem, 4vw, 1.25rem);
    text-align: right;
  }

  .menu-link {
    font-size: clamp(2.45rem, 11.5vw, 4rem);
    line-height: 1.05;
  }

  .menu__line-field {
    left: -48%;
    top: 19%;
    width: 118vw;
    height: 72%;
  }

  /* Contact portrait: visibly larger so the asymmetric corner treatment reads. */
  .contact__portrait {
    width: min(82vw, 20rem);
    height: auto;
    max-height: 23rem;
    margin: 0 auto 1.75rem;
    border-radius: 0 0 3.25rem 0;
    object-fit: contain;
    object-position: center bottom !important;
    transform: translateX(-2.5%);
  }
}

@media (max-width: 23rem) {
  .hero__content {
    top: 8rem;
  }

  .hero__prompt {
    top: 61svh;
    right: 1rem;
  }

  .statement-line__text {
    font-size: clamp(1.65rem, 8.1vw, 2rem);
  }
}

/* V9 mobile layout refinement */
@media (max-width: 48rem) {
  .header__languages {
    font-size: 0.9rem;
    min-width: 5.6rem;
  }

  .hero {
    min-height: 100svh;
    overflow: hidden;
  }

  .hero__visual {
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100svh !important;
  }

  .hero__line-canvas {
    width: 100% !important;
    height: 100% !important;
  }

  .hero__content {
    top: clamp(8.5rem, 22svh, 12rem) !important;
    left: 1rem !important;
    width: calc(100% - 2rem) !important;
  }

  .hero__prompt {
    top: clamp(27rem, 57svh, 32rem) !important;
    right: clamp(1rem, 5vw, 1.75rem) !important;
    width: 5.7ch !important;
    font-size: clamp(2.55rem, 12vw, 3.45rem) !important;
  }

  .hero__prompt-arrow {
    margin-top: 0.7rem !important;
  }

  .statement__lines {
    overflow: hidden;
  }

  .statement-line__text {
    width: max-content !important;
    min-width: 100%;
    padding: 0.9rem 0.8rem 1rem !important;
    font-size: clamp(2.25rem, 10vw, 3.3rem) !important;
    line-height: 0.94 !important;
    transform: translateX(var(--scroll-shift, 0)) !important;
    transition: transform 80ms linear !important;
  }

  .menu-nav {
    padding-left: clamp(4.5rem, 18vw, 6.5rem) !important;
    padding-right: 1.5rem !important;
  }

  .menu-list {
    padding-right: 0 !important;
  }

  .menu-link {
    font-size: clamp(3rem, 13vw, 4.3rem) !important;
    touch-action: manipulation;
  }

  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .process-card {
    min-height: 13rem !important;
    padding: 1rem !important;
  }

  .process-card > span {
    margin-bottom: 2.25rem !important;
  }

  .process-card h3 {
    font-size: clamp(1.35rem, 6vw, 1.9rem) !important;
  }

  .process-card p {
    font-size: 0.92rem;
    line-height: 1.45;
  }

  .contact__portrait {
    width: min(90vw, 23rem) !important;
    max-height: 28rem !important;
    margin-bottom: 1.5rem !important;
    border-radius: 0 0 4.5rem 0 !important;
  }
}

@media (max-width: 23rem) {
  .hero__content {
    top: 7.75rem !important;
  }

  .hero__prompt {
    top: 54svh !important;
    right: 0.8rem !important;
  }

  .statement-line__text {
    font-size: clamp(2rem, 10vw, 2.5rem) !important;
  }

  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .process-card {
    min-height: 12rem !important;
    padding: 0.8rem !important;
  }

  .process-card h3 {
    font-size: 1.25rem !important;
  }

  .process-card p {
    font-size: 0.82rem !important;
  }
}

@media (hover: none) and (pointer: coarse) {
  .menu-link:hover {
    color: inherit !important;
    transform: none !important;
  }
  .menu-link:active {
    color: var(--accent) !important;
    transform: scale(1.03) !important;
  }
}

/* V10: mobile hero edge, prompt and touch-menu fixes */
@media (max-width: 48rem) {
  .hero__visual {
    left: calc(50% - 50vw) !important;
    right: auto !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100% !important;
    min-height: 100svh !important;
  }

  .hero__prompt {
    top: clamp(23.5rem, 50svh, 27rem) !important;
    right: clamp(1rem, 5vw, 1.75rem) !important;
    bottom: auto !important;
  }

  .hero__prompt-arrow {
    margin-top: 0.45rem !important;
  }
}

@media (max-width: 23rem), (max-height: 43rem) and (max-width: 48rem) {
  .hero__prompt {
    top: 47svh !important;
  }
}

@media (hover: none) and (pointer: coarse) {
  .menu-link,
  .menu-link:link,
  .menu-link:visited,
  .menu-link:hover,
  .menu-link:focus,
  .menu-link:focus-visible,
  .menu-link:active {
    color: var(--background) !important;
    transform: none !important;
    -webkit-tap-highlight-color: transparent;
  }
}

/* V11: final mobile hero full-bleed, prompt spacing and dependable menu closing */
@media (max-width: 48rem) {
  .hero.section-shell {
    width: 100vw !important;
    max-width: none !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: 0 !important;
  }

  .hero__content {
    left: max(1rem, env(safe-area-inset-left)) !important;
    width: calc(100% - max(2rem, env(safe-area-inset-left) + env(safe-area-inset-right))) !important;
  }

  .hero__visual {
    inset: 0 !important;
    width: 100vw !important;
    height: 100% !important;
    min-height: 100svh !important;
    overflow: hidden !important;
  }

  .hero__line-canvas {
    left: -18vw !important;
    top: 0 !important;
    width: 136vw !important;
    height: 100% !important;
    max-width: none !important;
  }

  .hero__prompt {
    top: auto !important;
    right: clamp(1.25rem, 7vw, 2.75rem) !important;
    bottom: calc(7.25rem + env(safe-area-inset-bottom)) !important;
    transform: none !important;
  }

  .hero__prompt-arrow {
    top: calc(100% + 0.9rem) !important;
  }
}

@media (max-width: 48rem) and (max-height: 46rem) {
  .hero__prompt {
    bottom: calc(5.5rem + env(safe-area-inset-bottom)) !important;
    font-size: clamp(2.2rem, 10vw, 2.9rem) !important;
  }
}

@media (hover: none) and (pointer: coarse) {
  .menu-link,
  .menu-link:link,
  .menu-link:visited,
  .menu-link:hover,
  .menu-link:focus,
  .menu-link:focus-visible,
  .menu-link:active {
    color: var(--background) !important;
    transform: none !important;
  }
}

@media (max-width: 48rem) {
  .site-footer {
    align-items: flex-start;
    gap: 1rem;
    flex-direction: column;
  }
  .site-footer__legal {
    margin-left: 0;
    flex-wrap: wrap;
  }
}
