@media (prefers-reduced-motion: no-preference) {
  html:is(.wipe-leave, .wipe-enter)::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1000;
    pointer-events: none;
    background: #201d1d url("/transition-logo.png") center / min(6.5rem, 26vw, 22vh) auto no-repeat;
    animation: wipe-panel 450ms cubic-bezier(0.625, 0.05, 0, 1) both;
  }

  html.wipe-enter::after {
    animation-name: wipe-panel-exit;
  }

  @view-transition {
    navigation: auto;
  }

  html:active-view-transition .page-enter {
    animation: none;
  }

  ::view-transition {
    --osmo-ease: cubic-bezier(0.625, 0.05, 0, 1);
    background-color: #201d1d;
    background-image: url("/transition-logo.png");
    background-size: min(6.5rem, 26vw, 22vh) auto;
    background-repeat: no-repeat;
    animation: transition-mark 900ms linear both;
  }

  ::view-transition-group(root) {
    animation: none;
  }

  ::view-transition-old(root),
  ::view-transition-new(root) {
    mix-blend-mode: normal;
  }

  ::view-transition-old(root) {
    animation: page-cover 450ms var(--osmo-ease) both;
  }

  ::view-transition-new(root) {
    animation: page-uncover 450ms var(--osmo-ease) 450ms both;
  }

  @supports (clip-path: shape(from 0 0, line to 100% 0, close)) {
    html.wipe-leave::after {
      animation-name: curved-wipe-panel;
    }

    html.wipe-enter::after {
      animation-name: curved-wipe-panel-exit;
    }

    ::view-transition-old(root) {
      animation-name: curved-page-cover;
    }

    ::view-transition-new(root) {
      animation-name: curved-page-uncover;
    }
  }
}

@keyframes wipe-panel {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@keyframes wipe-panel-exit {
  from { transform: translateY(0); }
  to { transform: translateY(-100%); }
}

@keyframes curved-wipe-panel {
  from {
    clip-path: shape(from 0 114%, curve to 100% 114% with 50% 86%, line to 100% 114%, line to 0 114%, close);
  }
  to {
    clip-path: shape(from 0 0, curve to 100% 0 with 50% 0, line to 100% 114%, line to 0 114%, close);
  }
}

@keyframes curved-wipe-panel-exit {
  from {
    clip-path: shape(from 0 0, line to 100% 0, line to 100% 100%, curve to 0 100% with 50% 100%, close);
  }
  45% {
    clip-path: shape(from 0 0, line to 100% 0, line to 100% 45%, curve to 0 45% with 50% 73%, close);
  }
  to {
    clip-path: shape(from 0 0, line to 100% 0, line to 100% 0, curve to 0 0 with 50% 0, close);
  }
}

@keyframes curved-page-cover {
  from {
    clip-path: shape(from 0 0, line to 100% 0, line to 100% 114%, curve to 0 114% with 50% 86%, close);
  }
  to {
    clip-path: shape(from 0 0, line to 100% 0, line to 100% 0, curve to 0 0 with 50% 0, close);
  }
}

@keyframes curved-page-uncover {
  from {
    clip-path: shape(from 0 100%, curve to 100% 100% with 50% 100%, line to 100% 100%, line to 0 100%, close);
  }
  55% {
    clip-path: shape(from 0 24%, curve to 100% 24% with 50% 50%, line to 100% 100%, line to 0 100%, close);
  }
  to {
    clip-path: shape(from 0 0, curve to 100% 0 with 50% 0, line to 100% 100%, line to 0 100%, close);
  }
}

@keyframes page-cover {
  from { clip-path: inset(0); }
  to { clip-path: inset(0 0 100% 0); }
}

@keyframes page-uncover {
  from { clip-path: inset(100% 0 0 0); }
  to { clip-path: inset(0); }
}

@keyframes transition-mark {
  0%, 17% { background-position: center calc(50% + 4rem); }
  44%, 53% { background-position: center; }
  85%, 100% { background-position: center calc(50% - 7rem); }
}
/* Editorial extensions reuse the existing grid, palette and reveal components. */
.portrait-hero .portrait-copy h1 { font-size: clamp(3rem, 5.2vw, 6.4rem); line-height: .98; letter-spacing: -.065em; max-width: 8.4em; }
.portrait-identity { font: .75rem/1.5 'IBM Plex Mono', monospace; margin-top: 1.5rem; text-transform: uppercase; letter-spacing: .08em; }
.portrait-hero .portrait-value { max-width: min(31rem, 42vw); }
.strategic-section { padding-top: clamp(4rem, 8vw, 8rem); padding-bottom: clamp(4rem, 8vw, 8rem); }
.capability-row { border-top: 1px solid #0003; padding: 1.75rem 0 2rem; }
.capability-row h3 { font-size: clamp(1.35rem, 2.5vw, 2rem); font-weight: 400; letter-spacing: -.04em; margin-bottom: .8rem; }
.capability-row p { line-height: 1.75; max-width: 46rem; }
.capability-row .utility-link { display: inline-block; margin-top: 1rem; }
.capability-row a:hover, .sector-link a:hover { color: var(--blue); }
.capability-row a:focus-visible, .sector-link a:focus-visible, .content-breadcrumbs a:focus-visible { outline: 2px solid var(--blue); outline-offset: 5px; }
.sector-link { margin-top: 2rem; line-height: 1.8; }
.sector-link a { text-decoration: underline; text-underline-offset: .25em; }
.strategic-invitation { padding-top: clamp(4rem, 8vw, 8rem); padding-bottom: clamp(5rem, 10vw, 10rem); }
.strategic-invitation > div { grid-column: 1 / -1; max-width: 64rem; }
.strategic-invitation h2 { font-size: clamp(2.5rem, 5.5vw, 5.5rem); line-height: 1.05; font-weight: 400; letter-spacing: -.06em; }
.strategic-invitation p { max-width: 37rem; margin: 1.5rem 0 2rem; line-height: 1.8; }
.content-breadcrumbs { padding: 8rem var(--pad-x) 0; display: flex; gap: .7rem; flex-wrap: wrap; font: .7rem/1.7 'IBM Plex Mono', monospace; }
.expertise-page .text-hero { padding-top: 3rem; }
.expertise-page .text-hero h1 { font-size: clamp(3rem, 7.5vw, 8rem); overflow-wrap: normal; }
.strategic-projects .featured-note p { margin-bottom: 1rem; }
.case-overview { margin-top: 1rem; }
.case-overview dt { font-size: .75rem; text-transform: uppercase; margin-top: .7rem; opacity: .7; }
.case-overview dd { margin: .2rem 0 .7rem; }
.case-context .case-measurement-note { margin-top: 1rem; font-size: .85rem; line-height: 1.6; }
.case-ending { flex: 0 0 auto; width: 70vw; height: 100%; white-space: normal; display: flex; flex-direction: column; gap: 1rem; }
.case-ending .next-project { width: 100%; height: auto; flex: 1; padding: 2.5em; min-height: 0; }
.case-ending .next-project h2 { font-size: clamp(2.25rem, 5vw, 5rem); }
.case-ending-links { display: flex; flex-wrap: wrap; gap: .8rem 1.5rem; font-size: .85rem; line-height: 1.6; }
.case-ending-links a { text-decoration: underline; text-underline-offset: .25em; }
.case-ending-links a:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
.case-context h2 { font: inherit; font-weight: 600; margin: 1rem 0 .3rem; }
@media(max-width: 812px) {
  .portrait-hero .portrait-copy h1 { font-size: clamp(2.8rem, 8vw, 4rem); max-width: 9em; }
  .portrait-hero .portrait-value { max-width: 29rem; }
  .expertise-page .text-hero h1 { grid-column: 1 / -1; font-size: clamp(2.8rem, 9vw, 5rem); }
  .content-breadcrumbs { padding-top: 7rem; }
  .case-ending { width: 100%; height: auto; }
  .case-ending .next-project { padding: 2rem; min-height: 18rem; }
}
@media(prefers-reduced-motion: reduce) { .case-ending { height: auto; } }
.strategic-section .capability-row { border-color: #ffffff40; }
.text-list a:is(:hover, :focus-visible) { color: #99ddc4; }
.expertise-page .text-hero { min-height: auto; padding-bottom: clamp(4rem, 10vw, 8rem); }
.case-breadcrumbs { font-size: .7rem; line-height: 1.6; margin-bottom: 1rem; }
.case-breadcrumbs a { text-decoration: underline; text-underline-offset: .2em; }
.case-small-heading { font: 10px 'IBM Plex Mono'; margin: 1.5rem 0 .6rem; text-transform: uppercase; }
.expertise-page .text-hero h1 { line-height: .98; }
.text-list-item h4 { font: .7rem/1.5 'IBM Plex Mono', monospace; text-transform: uppercase; letter-spacing: .06em; margin: 1.5rem 0 .6rem; }
.text-list-item h4:first-child { margin-top: 0; }
@media(max-width: 812px) { .expertise-page .text-hero h1 { font-size: clamp(2rem, 8.5vw, 4rem); overflow-wrap: break-word; } }
.project-card .project-image { aspect-ratio: 3 / 2; }

  .portrait-hero { position: relative; min-height: 100svh; overflow: hidden; background: var(--white); }
  .image-glitch-effect { pointer-events: none; position: absolute; inset: 0; overflow: hidden; }
  .image-glitch-effect__img, .image-glitch-effect__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; object-position: right center; }
  .image-glitch-effect__canvas { visibility: hidden; }
  .portrait-hero a:focus-visible { outline: 2px solid var(--blue); outline-offset: 8px; }
  .portrait-copy { position: relative; z-index: 1; padding: clamp(9rem, 20vh, 13rem) var(--pad-x) 8rem; width: fit-content; }
  .portrait-role { font: 0.75rem 'IBM Plex Mono', monospace; margin-bottom: 2rem; }
  .portrait-copy h1 { font-weight: 400; font-size: clamp(5rem, 13vw, 15rem); line-height: 0.84; letter-spacing: -0.085em; }
  .portrait-copy h1 span { color: var(--blue); }
  .portrait-cta { display: inline-block; margin-top: 3rem; border-bottom: 1px solid currentColor; padding-bottom: 0.4rem; font-size: 0.9rem; }
  .portrait-cta:hover { color: var(--blue); }
  .portrait-value { max-width: min(30rem, 42vw); margin-top: 2rem; font-size: clamp(0.95rem, 1.25vw, 1.15rem); line-height: 1.6; }
  .portrait-actions { display: flex; flex-wrap: wrap; gap: 1rem 2rem; }
  .portrait-actions .portrait-cta { margin-top: 1.5rem; }
  .portrait-caption { position: absolute; z-index: 1; bottom: var(--pad-y); left: var(--pad-x); font: 0.65rem/1.6 'IBM Plex Mono', monospace; }
  @media (min-width: 1200px) and (max-width: 1599px) and (max-aspect-ratio: 4 / 3) {
    .image-glitch-effect__img { object-position: 68% center; }
  }
  @media (min-width: 701px) and (max-width: 1199px) {
    .portrait-hero { min-height: max(100svh, 900px); }
    .image-glitch-effect {
      top: auto;
      height: auto;
      aspect-ratio: 3 / 2;
    }
    .portrait-role { max-width: 42vw; line-height: 1.6; }
    .portrait-actions { max-width: 42vw; }
  }
  @media (max-width: 700px) {
    .portrait-hero { min-height: 0; display: flex; flex-direction: column; }
    .image-glitch-effect {
      position: relative;
      inset: auto;
      order: 1;
      flex-shrink: 0;
      height: clamp(28rem, 110vw, 42rem);
      margin-top: 1rem;
    }
    .portrait-copy { padding-top: 8rem; padding-bottom: 0; flex-shrink: 0; }
    .portrait-copy h1 { font-size: 26vw; }
    .portrait-role { margin-bottom: 1.5rem; }
    .portrait-value { max-width: 29rem; }
    .portrait-actions { gap: 0.5rem 1rem; }
    .portrait-cta { margin-top: 1.5rem; }
    .portrait-caption { bottom: 1.5rem; color: var(--white); background: transparent; padding: 0; }
  }
.inquiry-form { grid-column: 3 / span 8; max-width: 62rem; width: 100%; padding-bottom: 5rem; }
.inquiry-form label { display: flex; flex-direction: column; gap: .65rem; min-width: 0; margin-bottom: 1.75rem; font-size: 1rem; }
.inquiry-form label[hidden] { display: none; }
.inquiry-form label > span, .inquiry-form legend span { font-size: .8rem; opacity: .7; }
.inquiry-form input:not([type=checkbox]), .inquiry-form textarea, .inquiry-form select { width: 100%; min-width: 0; padding: .9rem; border: 1px solid #777; border-radius: .5rem; background: transparent; color: inherit; font: inherit; }
.inquiry-form textarea { resize: vertical; }
.inquiry-form :is(input, textarea, select, button):focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.inquiry-fields, .inquiry-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.5rem; }
.inquiry-form fieldset { min-width: 0; margin: 0 0 2rem; padding: 1.5rem; border: 1px solid #777; border-radius: .5rem; }
.inquiry-form legend { padding: 0 .4rem; }
.inquiry-options label { flex-direction: row; align-items: flex-start; line-height: 1.5; margin-bottom: 1rem; }
.inquiry-options input { flex: 0 0 auto; margin-top: .3rem; width: 1.1rem; height: 1.1rem; accent-color: var(--accent); }
.inquiry-help { font-size: .95rem; line-height: 1.6; margin-bottom: 1.5rem; }
.inquiry-form small { font-size: .8rem; line-height: 1.5; }
.inquiry-form button { cursor: pointer; border: 1px solid transparent; font: inherit; }
.inquiry-form button:disabled { cursor: wait; opacity: .65; }
.inquiry-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.inquiry-status { margin-top: 1.5rem; line-height: 1.6; overflow-wrap: anywhere; }
.inquiry-status.error, #interest-error { color: #9b2432; }
.engagement-focus { padding-left: 1.1rem; margin: 1rem 0; line-height: 1.7; }
.engagement-note { line-height: 1.7; margin-bottom: 1.5rem; }
.case-context { margin-top: 1.5rem; }
.case-context summary { cursor: pointer; text-decoration: underline; text-underline-offset: .25em; }
.case-context div { margin-top: 1rem; }
.case-context h3 { font: inherit; font-weight: 600; margin-bottom: .3rem; }
@media(max-width: 812px) { .inquiry-form { grid-column: 1 / -1; } }
@media(max-width: 560px) { .inquiry-fields, .inquiry-options { grid-template-columns: 1fr; } .inquiry-form fieldset { padding: 1rem; } }

.engagement-type { display: block; margin-top: 1.5rem; }
.case-context[open] { max-height: 25svh; overflow: auto; padding-right: .6rem; }
.case-context summary:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
@media(max-width: 812px), (prefers-reduced-motion: reduce) { .case-context[open] { max-height: none; overflow: visible; } }

.contact-inquiry { align-items: start; padding-top: clamp(9rem, 18vh, 13rem); column-gap: var(--gap); }
.contact-intro { grid-column: 1 / span 4; grid-row: 1; min-width: 0; }
.contact-eyebrow { font: .7rem/1.5 'IBM Plex Mono', monospace; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 1.5rem; }
.contact-intro h1 { margin: 0 0 1.5rem; font-size: clamp(3rem, 4.7vw, 5.25rem); line-height: .98; font-weight: 400; letter-spacing: -.065em; }
.contact-support { font-size: 1rem; line-height: 1.65; margin: 0; max-width: 25rem; }
.contact-direct { margin-top: 2rem; font-size: .9rem; line-height: 1.9; overflow-wrap: anywhere; }
.contact-direct a { text-decoration: underline; text-underline-offset: .3em; }
.contact-direct a:is(:hover, :focus-visible) { color: var(--accent); }
.contact-direct a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.contact-inquiry .inquiry-form { grid-column: 6 / span 7; grid-row: 1; max-width: none; }
@media(max-width: 812px) {
  .contact-inquiry { row-gap: 2.5rem; padding-top: 8rem; }
  .contact-intro { grid-column: 1 / -1; grid-row: 1; }
  .contact-intro h1 { font-size: clamp(2.7rem, 8vw, 4rem); }
  .contact-inquiry .inquiry-form { grid-column: 1 / -1; grid-row: 2; }
}
.inquiry-thank-you {
  position: fixed; inset: 0; margin: 0; border: 0; padding: clamp(2rem, 7vw, 7rem) var(--pad-x, 5vw);
  width: 100vw; max-width: none; height: 100dvh; max-height: none; min-height: 100svh;
  overflow: auto; overscroll-behavior: contain; background: var(--accent, #006b54); color: var(--white, #f0f1fa);
  font-family: inherit;
}
.inquiry-thank-you[open] { display: flex; align-items: center; justify-content: center; }
.inquiry-thank-you::backdrop { background: var(--accent, #006b54); }
.thank-you-content { margin: auto; width: 100%; max-width: 72rem; text-align: center; }
.thank-you-eyebrow, .thank-you-preview { font: .75rem/1.5 'IBM Plex Mono', monospace; margin-bottom: 2rem; }
.thank-you-preview { border: 1px solid currentColor; padding: .6rem; }
.inquiry-thank-you h1 { margin: 0 0 2rem; font-size: clamp(3.5rem, 11vw, 11rem); font-weight: 400; letter-spacing: -.065em; line-height: 1; }
.inquiry-thank-you h1:focus { outline: none; }
.thank-you-message { max-width: 38rem; margin: 0 auto; font-size: clamp(1.1rem, 2.2vw, 1.8rem); line-height: 1.55; }
.thank-you-return { margin-top: clamp(2rem, 6vh, 4rem); font-size: .85rem; line-height: 1.6; }
.thank-you-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2rem; margin-top: 1rem; }
.thank-you-actions :is(a, button) { padding: .6rem 0; border: 0; border-bottom: 1px solid currentColor; color: inherit; background: transparent; font: inherit; cursor: pointer; }
.thank-you-actions :is(a, button):hover { opacity: .75; }
.thank-you-actions :is(a, button):focus-visible { outline: 2px solid currentColor; outline-offset: 6px; }
.thank-you-accessible { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media(max-width: 560px) { .inquiry-thank-you { padding-top: 3rem; padding-bottom: 3rem; } .thank-you-actions { flex-direction: column; align-items: center; gap: .5rem; } }
/* Progressive enhancement: without JavaScript all field sections remain visible. */
.inquiry-step[hidden], .inquiry-form button[hidden] { display: none; }
.inquiry-step { min-width: 0; scroll-margin-top: 7rem; }
.inquiry-step h2 { font: inherit; font-size: clamp(1.75rem, 2.5vw, 2.6rem); line-height: 1.1; letter-spacing: -.045em; margin: 0 0 2rem; }
.inquiry-step h2:focus { outline: none; }
.inquiry-step h2:focus-visible { outline: 2px solid var(--accent); outline-offset: .5rem; }
.inquiry-stage { min-width: 0; }
.inquiry-stepped { container-type: inline-size; }
.inquiry-progress { margin-bottom: 2rem; }
.inquiry-progress p, .inquiry-receipt-label { font: .75rem/1.5 'IBM Plex Mono', monospace; text-transform: uppercase; letter-spacing: .06em; }
.inquiry-progress p { margin-bottom: .75rem; }
.inquiry-progress [role=progressbar] { height: 2px; background: #006b5426; }
.inquiry-progress [role=progressbar] span { display: block; height: 100%; background: var(--accent); transition: width .45s ease; }
.inquiry-step-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.inquiry-stepped .inquiry-fields { grid-template-columns: minmax(0, 1fr); }
.inquiry-step-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; margin: .5rem 0 1.5rem; }
.inquiry-back { padding: .75rem 0; background: transparent; color: inherit; text-decoration: underline; text-underline-offset: .3em; }
.inquiry-form .inquiry-receipt { min-width: 0; background: #fff; border-radius: .5rem .5rem 0 0; padding: 1.5rem; position: relative; font-family: 'IBM Plex Mono', monospace; }
.inquiry-receipt::after { content: ''; position: absolute; top: 100%; left: 0; right: 0; height: .5rem; background: linear-gradient(135deg, #fff 25%, transparent 25%), linear-gradient(225deg, #fff 25%, transparent 25%); background-size: 1rem 1rem; }
.inquiry-receipt-label { padding-bottom: 1rem; border-bottom: 1px dashed #006b5459; }
.inquiry-receipt ul { list-style: none; padding: 0; margin: .5rem 0; }
.inquiry-receipt li { min-width: 0; }
.inquiry-form .inquiry-receipt button { display: flex; flex-direction: column; align-items: stretch; gap: .5rem; text-align: left; width: 100%; min-width: 0; padding: .85rem .5rem; border-radius: .25rem; background: transparent; color: inherit; font-size: .75rem; line-height: 1.65; }
.inquiry-form .inquiry-receipt button:is(:hover, [aria-current=step]) { background: #006b5412; }
.inquiry-form .inquiry-receipt button:disabled { cursor: default; opacity: .4; }
.inquiry-answer-label { text-transform: uppercase; }
.inquiry-answer-value { overflow-wrap: anywhere; white-space: pre-wrap; }
.inquiry-receipt-note { border-top: 1px dashed #006b5459; padding-top: 1rem; font-size: .65rem; line-height: 1.65; }
.inquiry-stepped .inquiry-options { grid-template-columns: minmax(0, 1fr); }
.inquiry-stepped .inquiry-options label { position: relative; align-items: center; border: 1px solid #006b5470; border-radius: 2rem; padding: .8rem 1rem; margin: 0 0 .65rem; transition: background-color .25s, color .25s; cursor: pointer; }
.inquiry-stepped .inquiry-options label:has(:checked) { color: var(--white); background: var(--accent); }
.inquiry-stepped .inquiry-options input { margin: 0; accent-color: var(--accent); }
.inquiry-stepped .inquiry-options label:has(:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
@container (min-width: 680px) { .inquiry-step-layout { grid-template-columns: minmax(0, 1fr) minmax(13rem, .7fr); gap: 2rem; } }
@media (prefers-reduced-motion: reduce) { .inquiry-stepped *, .inquiry-stepped *::before { transition: none !important; } }

/* Bubble controls retain native checkbox/radio semantics without visible squares. */
.inquiry-form .inquiry-bubbles { display: flex; flex-wrap: wrap; gap: .65rem; }
.inquiry-form .inquiry-bubbles label { position: relative; display: inline-flex; flex-direction: row; align-items: center; gap: .65rem; width: auto; max-width: 100%; min-height: 2.75rem; border: 1px solid var(--accent); border-radius: 3rem; padding: .65rem 1rem .65rem .6rem; margin: 0; font-size: .95rem; line-height: 1.4; cursor: pointer; overflow: hidden; transition: background-color .3s, color .3s; }
.inquiry-form .inquiry-bubbles input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; cursor: pointer; }
.inquiry-form .inquiry-bubbles label > span { opacity: 1; font-size: inherit; pointer-events: none; }
.inquiry-form .inquiry-bubbles .inquiry-bubble-dot { display: grid; place-items: center; flex: 0 0 1.35rem; width: 1.35rem; height: 1.35rem; border-radius: 50%; background: var(--accent); color: var(--white); }
.inquiry-bubble-text { min-width: 0; overflow-wrap: anywhere; }
.inquiry-form .inquiry-bubbles label:has(:checked) { background: var(--accent); color: var(--white); }
.inquiry-form .inquiry-bubbles label:has(:checked) .inquiry-bubble-dot::after { content: '✓'; font-size: .85rem; }
.inquiry-form .inquiry-bubbles label:has(:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.inquiry-form .inquiry-bubbles label:hover { box-shadow: inset 0 0 0 1px var(--accent); }
.inquiry-choice-group legend { margin-bottom: .75rem; }
.inquiry-choice-group .inquiry-help { margin: 1rem 0 0; font-size: .8rem; }
.inquiry-form .inquiry-clear { background: transparent; color: inherit; text-decoration: underline; text-underline-offset: .25em; padding: .75rem 0 0; font-size: .8rem; }
@media (prefers-reduced-motion: reduce) { .inquiry-form .inquiry-bubbles label { transition: none; } }

/* One-question text fields with an inline next arrow, matching the reference flow. */
.inquiry-capsule { display: flex; align-items: center; gap: .5rem; padding: .45rem; background: #fff; border-radius: 3rem; margin-bottom: 1.5rem; }
.inquiry-form .inquiry-capsule-label { flex: 1; margin: 0; display: block; }
.inquiry-field-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.inquiry-form .inquiry-capsule input { border: 0; border-radius: 3rem; padding: .65rem .8rem; background: transparent; font-size: 1.05rem; }
.inquiry-capsule:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.inquiry-form .inquiry-capsule input:focus-visible { outline: none; }
.inquiry-form .inquiry-field-next { flex: 0 0 2.75rem; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--accent); color: var(--white); padding: .7rem; }
.inquiry-field-next svg { width: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; }
.inquiry-form .inquiry-receipt button { flex-direction: row; align-items: baseline; gap: .5rem; }
.inquiry-answer-dots { flex: 1 0 .75rem; border-bottom: 1px dotted #006b5466; }
.inquiry-answer-label { flex: 0 0 auto; }
.inquiry-answer-value { min-width: 0; max-width: 65%; text-align: right; }
.portfolio-footer-wrap[data-astro-cid-jo6i4kqk] {
  position: relative;
  z-index: 56;
  overflow: hidden;
  background: var(--blue);
  color: var(--white);
  isolation: isolate;
}

.portfolio-footer[data-astro-cid-jo6i4kqk] {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(4rem, 7vw, 7rem) var(--pad-x);
}

.footer-columns[data-astro-cid-jo6i4kqk] {
  display: grid;
  grid-template-columns: 1fr 1fr .6fr;
  gap: 3rem;
  padding-bottom: clamp(4rem, 10vw, 10rem);
}

nav[data-astro-cid-jo6i4kqk], .footer-contact[data-astro-cid-jo6i4kqk] {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .65rem;
}

.footer-contact[data-astro-cid-jo6i4kqk], .footer-social[data-astro-cid-jo6i4kqk] {
  font-size: clamp(.9rem, 1.4vw, 1.2rem);
}

.footer-contact[data-astro-cid-jo6i4kqk] p[data-astro-cid-jo6i4kqk]:last-child {
  margin-top: 1.5rem;
}

a[data-astro-cid-jo6i4kqk] {
  position: relative;
  max-width: 100%;
}

a[data-astro-cid-jo6i4kqk]:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -.08em;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: 100%;
  transition: transform .4s;
}

a[data-astro-cid-jo6i4kqk]:is(:hover, :focus-visible):after {
  transform: scaleX(1);
  transform-origin: 0;
}

a[data-astro-cid-jo6i4kqk]:focus-visible {
  outline: 2px solid;
  outline-offset: 6px;
}

.footer-primary[data-astro-cid-jo6i4kqk] {
  font-size: clamp(2rem, 4.1vw, 4.5rem);
  line-height: 1.15;
  letter-spacing: -.05em;
}

.footer-contact[data-astro-cid-jo6i4kqk] a[data-astro-cid-jo6i4kqk] {
  overflow-wrap: anywhere;
}

.footer-wordmark[data-astro-cid-jo6i4kqk] {
  display: block;
  width: 100%;
  font-size: 13vw;
  line-height: 1.05;
  letter-spacing: -.065em;
  white-space: nowrap;
}

.footer-copyright[data-astro-cid-jo6i4kqk] {
  margin-top: 2.5rem;
  font: .75rem IBM Plex Mono, monospace;
}

.footer-shade[data-astro-cid-jo6i4kqk] {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0;
  pointer-events: none;
}

.portfolio-footer[data-astro-cid-jo6i4kqk]:focus-within {
  transform: none !important;
}

@media (width <= 700px) {
  .footer-columns[data-astro-cid-jo6i4kqk] {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-bottom: 4rem;
  }

  .footer-primary[data-astro-cid-jo6i4kqk] {
    font-size: 2.5rem;
  }

  .footer-wordmark[data-astro-cid-jo6i4kqk] {
    font-size: 11vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  a[data-astro-cid-jo6i4kqk]:after {
    transition: none;
  }
}
.cursor {
    z-index: 1000;
    position: fixed;
    top: 0;
    left: 0;
    width: 1em;
    height: 1em;
    border: 1px solid var(--accent, #006b54);
    border-radius: 100em;
    background: var(--accent, #006b54);
    pointer-events: none;
    opacity: 0;
    transition: background-color .375s cubic-bezier(.625, .05, 0, 1),
      height .375s cubic-bezier(.625, .05, 0, 1),
      width .375s cubic-bezier(.625, .05, 0, 1);
  }
  body:has(a:hover, button:hover, [data-cursor]:hover) .cursor {
    width: 3em;
    height: 3em;
    background-color: rgb(0 107 84 / 30%);
  }
  @media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
    .cursor { display: none; }
  }