:root {
  --ink: #000;
  --surface: #1b241e;
  --cream: #f8f0dc;
  --muted: #c7c9bb;
  --line: #344036;
  --gold: #f5bd46;
  --orange: #ff9c45;
  --site-width: 76rem;
  --site-footer-height: 3.5rem;
  --font-family: system-ui, sans-serif;
  --type-title: clamp(2rem, 3.8vw, 3.65rem);
  --type-subtitle: 1.125rem;
  --type-body: .9375rem;
  --type-ui: .875rem;
  --type-small: .8125rem;
  --leading-body: 1.5;
}

.site-body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-family);
  font-size: var(--type-body);
  line-height: var(--leading-body);
}

.site-body a,
.site-body button,
.site-body summary { cursor: pointer; }

.site-body :focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.site-header,
.site-footer-inner {
  width: min(100%, var(--site-width));
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 3rem);
}

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  min-height: 5.25rem;
  padding-block: .45rem;
}

.site-logo {
  display: grid;
  gap: clamp(.35rem, .75vw, .55rem);
  width: clamp(14rem, 26vw, 22rem);
}

.site-logo :is(.site-logo-wordmark, .site-logo-tagline) {
  position: relative;
  display: block;
  overflow: hidden;
}

/* Display both parts of the original 1500 × 434 logo with separate spacing. */
.site-logo-wordmark {
  aspect-ratio: 1500 / 243;
  filter: drop-shadow(0 2px 0 #d97b20)
          drop-shadow(0 0 4px #ffbd4ca8)
          drop-shadow(0 0 14px #ff95185e);
}

.site-logo-tagline {
  width: 91%;
  justify-self: center;
  aspect-ratio: 1500 / 78;
}

.site-logo img {
  position: absolute;
  width: 100%;
  height: auto;
}

.site-logo-wordmark img {
  transform: translateY(-12.67%);
  filter: brightness(1.28) contrast(1.16);
}

.site-logo-tagline img { transform: translateY(-67.74%); }

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(.85rem, 2.25vw, 2rem);
  font-size: var(--type-ui);
}

.site-nav a {
  color: var(--muted);
  text-underline-offset: .4rem;
}

.site-nav a:hover,
.site-nav a[aria-current] { color: var(--cream); text-decoration: underline; }

.site-nav .site-nav-contact {
  padding: .55rem .9rem;
  border: 1px solid var(--line);
  border-radius: .5rem;
  color: var(--gold);
}

.site-menu-toggle { display: none; }

.site-main {
  width: min(100%, var(--site-width));
  display: grid;
  align-content: center;
  flex: 1 0 auto;
  margin-inline: auto;
  padding: clamp(1.4rem, 3vw, 3rem) clamp(1rem, 4vw, 3rem);
}

.site-main h1,
.policy-content h1 {
  color: var(--cream);
  font-size: var(--type-title);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.045em;
}

.site-main h2,
.policy-content h2,
.cookie-popup h2 {
  font-size: var(--type-subtitle);
  font-weight: 600;
  line-height: 1.25;
}

.site-main p,
.policy-content p { color: var(--muted); }

.home-hero,
.about-layout,
.services-layout,
.contact-layout {
  display: grid;
  gap: clamp(1.4rem, 4vw, 4rem);
  align-items: center;
  min-width: 0;
}


.hero-copy p,
.about-copy p,
.contact-intro > p {
  margin-top: 1.15rem;
  max-width: 39ch;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .8rem 1.15rem;
  margin-top: 1.75rem;
}

.site-button {
  display: inline-flex;
  width: max-content;
  align-items: center;
  padding: .75rem 1rem;
  border-radius: .5rem;
  background: var(--gold);
  color: #171609;
  font-weight: 600;
}

.hero-actions .site-button { max-width: 100%; }

.site-button:hover { background: #ffe08a; }

.site-text-link {
  display: inline-block;
  color: var(--gold);
  font-weight: 600;
  text-underline-offset: .25rem;
}

.site-text-link:hover { text-decoration: underline; }

.home-animation {
  overflow: hidden;
  aspect-ratio: 3 / 2;
}

.about-accent { color: var(--orange); }

.about-copy .site-text-link { margin-top: 1.5rem; }

.about-layout img,
.services-art img,
.contact-image {
  display: block;
  width: min(100%, 28rem);
  height: auto;
  margin-inline: auto;
  mix-blend-mode: screen;
}

.services-intro { margin-bottom: .8rem; }

.services-intro p { margin-top: .45rem; }

.service {
  padding-block: .5rem;
  border-top: 1px solid var(--line);
}

.service h2 {
  margin-bottom: .1rem;
  color: var(--cream);
}

.services-contact { margin-top: .65rem; }
.services-contact a { color: var(--gold); }

.project-page h1 { margin-bottom: clamp(1.25rem, 3vw, 2rem); }

.project-grid {
  display: grid;
  gap: 1rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: .95rem;
}

.project-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  object-position: top;
}

.project-image-sfg {
  display: grid;
  place-items: center;
  position: relative;
  background: #fcfcfc;
}

.project-image-sfg img {
  position: absolute;
  width: auto;
  height: 100%;
  max-height: 100%;
  /* Mask only the dark mark in the bottom-right white margin. */
  clip-path: polygon(0 0, 100% 0, 100% 96%, 98% 96%, 98% 100%, 0 100%);
}

.project-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: .65rem;
  padding: clamp(1rem, 2.5vw, 1.55rem);
}

.project-copy h2 {
  color: var(--cream);
}

.project-link {
  align-self: flex-start;
  margin-top: auto;
  padding-top: .4rem;
  color: var(--gold);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: .2em;
}

.contact-copy { order: -1; width: min(100%, 30rem); margin-inline: auto; }

.contact-form {
  display: grid;
  gap: .75rem;
  margin-top: 1.25rem;
}

.contact-form label {
  display: grid;
  gap: .3rem;
  font-size: var(--type-ui);
  font-weight: 600;
}

.contact-form :is(input, textarea) {
  width: 100%;
  min-width: 0;
  padding: .65rem .75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: .5rem;
  color: var(--cream);
  font-weight: 400;
}

.contact-form textarea { min-height: 6rem; resize: vertical; }
.contact-form .site-button { width: 100%; justify-content: center; }

.site-footer {
  position: sticky;
  bottom: 0;
  z-index: 9;
  flex: none;
  background: var(--ink);
  color: var(--muted);
  font-size: var(--type-small);
  padding-bottom: env(safe-area-inset-bottom);
}

.site-footer-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: .35rem 1.25rem;
  min-height: var(--site-footer-height);
  padding-block: .55rem;
  text-align: center;
}

.site-footer-inner > p { order: -1; }
.site-footer a:hover { color: var(--gold); }

.footer-socials { display: flex; align-items: center; gap: .85rem; }
.footer-socials svg { width: .95rem; height: .95rem; }

.chat-launch {
  position: fixed;
  z-index: 50;
  right: clamp(.7rem, 3vw, 2rem);
  bottom: calc(var(--site-footer-height) + env(safe-area-inset-bottom) + .5rem);
  display: grid;
  width: clamp(4.1rem, 6vw, 5.4rem);
  aspect-ratio: 1;
  place-items: center;
  padding: .16rem;
  border: 2px solid var(--gold);
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 4px 20px #0006;
}

#chat-window { font-size: var(--type-ui); }
#chat-composer { gap: 1rem; }

.chat-launch img { width: 100%; height: auto; border-radius: 50%; }
.site-body #chat-window {
  --chat-bottom-space: calc(var(--site-footer-height) + env(safe-area-inset-bottom) + clamp(4.9rem, 8vw, 6.2rem));
  right: clamp(.7rem, 3vw, 2rem);
  bottom: calc(var(--chat-viewport-inset, 0px) + var(--chat-bottom-space));
  width: min(24rem, calc(100vw - 1.4rem));
}
.site-body #chat-window.chat-keyboard-open { --chat-bottom-space: .5rem; }
@media (min-width: 770px) {
  .site-main:has(> .home-hero) { --site-width: 86rem; }
  .home-hero {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.6fr);
    column-gap: clamp(1.5rem, 3vw, 3rem);
  }
  .about-layout { grid-template-columns: minmax(0, 1.18fr) minmax(0, .9fr); }
  .contact-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 769px) {
  .site-body { --site-footer-height: 3.8rem; }
  .site-footer-inner { flex-direction: column; }
  .site-body #chat-window { --chat-top-space: .75rem; }
  #user-input { font-size: 1rem; }

  .home-hero .home-animation,
  .services-art { order: -1; }

  .home-hero .home-animation { transform: translateY(-.9rem); }
  .hero-copy, .about-copy { text-align: center; }
  .hero-copy p, .about-copy p { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .services-page { display: grid; }
  .services-layout { display: contents; }
  .services-art { margin-bottom: 1rem; }

  .site-header {
    position: sticky;
    top: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    min-height: 4.4rem;
    background: var(--ink);
  }

  .site-logo {
    justify-self: center;
    max-width: 100%;
  }

  .site-logo img { inset-inline-start: 0; }

  .site-menu-toggle {
    display: grid;
    justify-self: center;
    place-items: center;
    width: 2.75rem;
    min-height: 2.75rem;
    color: var(--cream);
  }

  .site-menu-icon { display: grid; gap: 4px; }
  .site-menu-icon > span { width: 1.1rem; height: 2px; border-radius: 2px; background: currentColor; }
  .site-menu-toggle[aria-expanded="true"] { color: var(--gold); }
  .site-menu-toggle[aria-expanded="true"] .site-menu-icon > :first-child { transform: translateY(6px) rotate(45deg); }
  .site-menu-toggle[aria-expanded="true"] .site-menu-icon > :nth-child(2) { opacity: 0; }
  .site-menu-toggle[aria-expanded="true"] .site-menu-icon > :last-child { transform: translateY(-6px) rotate(-45deg); }

  .site-menu-toggle + .site-nav {
    grid-column: 1 / -1;
    display: none;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: .25rem 0 .45rem;
  }

  .site-menu-toggle[aria-expanded="true"] + .site-nav { display: grid; }

  .site-menu-toggle + .site-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: .45rem 0;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
  }

  .services-art img,
  .contact-image { max-width: 20rem; }
}

@media (min-width: 900px) and (max-height: 820px) {
  .site-main {
    --type-title: clamp(1.85rem, 3.4vw, 3rem);
    padding-block: 1.15rem;
  }

  .service { padding-block: .34rem; }
}

@media (min-width: 1000px) {
  .services-intro,
  .services-contact { text-align: center; }

  .services-intro p { max-width: 65ch; margin-inline: auto; }

  .services-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, .92fr) minmax(0, 1fr);
    grid-template-areas: "primary art secondary";
    align-items: start;
    gap: clamp(1rem, 2.5vw, 2rem);
  }

  .services-group-primary { grid-area: primary; }
  .services-group-secondary { grid-area: secondary; }
  .services-group > .service:first-child { border-top: 0; }
  .services-art { grid-area: art; align-self: center; }
}

@media (min-width: 1000px) and (max-height: 820px) {
  .services-intro { margin-bottom: .65rem; }
  .site-main:has(.services-page) { padding-inline: clamp(1rem, 2.5vw, 2rem); }
  .services-layout { grid-template-columns: minmax(0, 1fr) minmax(0, .68fr) minmax(0, 1fr); }

}


.service-more,
.service-back {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: .2em;
}

.service-more { white-space: nowrap; font-weight: 600; }

.service-detail {
  display: grid;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}

.service-detail-copy .service-back { display: inline-block; margin-top: 1.25rem; }
.service-detail-copy p { margin-top: .85rem; }
.service-detail-copy .service-lead { color: var(--cream); font-weight: 600; }

.service-detail-image {
  width: min(100%, 28rem);
  height: auto;
  justify-self: center;
  border-radius: .75rem;
}

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

.automation-art {
  justify-self: center;
  width: min(100%, 28rem);
}

.automation-art img {
  display: block;
  width: min(100%, 24rem);
  margin-inline: auto;
}

.automation-flow {
  --node-size: clamp(2rem, 5vw, 2.85rem);
  --cycle: 5.2s;
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .4rem;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: center;
  font-size: clamp(.66rem, 1.3vw, .8rem);
  color: var(--cream);
}

.automation-flow::before,
.automation-flow::after {
  position: absolute;
  top: calc(var(--node-size) / 2);
  inset-inline: 12.5%;
  content: "";
}

.automation-flow::before {
  height: 1px;
  background: #3e7776;
}

.automation-flow li {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.automation-node {
  position: relative;
  display: grid;
  width: var(--node-size);
  aspect-ratio: 1;
  place-items: center;
  margin: 0 auto .5rem;
  border: 1px solid #4d9091;
  border-radius: .65rem;
  background: #102225;
  color: #aee2db;
}

.automation-node svg { width: 55%; height: auto; }

.automation-node::before,
.automation-node::after {
  position: absolute;
  top: 50%;
  width: .38rem;
  height: .38rem;
  border: 1px solid #72b0ad;
  border-radius: 50%;
  background: #142e31;
  content: "";
}

.automation-node::before { left: 0; transform: translate(-55%, -50%); }
.automation-node::after { right: 0; transform: translate(55%, -50%); }
.automation-flow li:first-child .automation-node::before,
.automation-flow li:last-child .automation-node::after { content: none; }

@media (prefers-reduced-motion: no-preference) {
  .automation-flow::after {
    height: 6px;
    transform: translateY(-50%);
    background: radial-gradient(circle, #ffe093 0 2px, transparent 3px) no-repeat;
    background-size: 6px 6px;
    animation: workflow-signal var(--cycle) linear infinite;
  }

  .automation-node { animation: workflow-node var(--cycle) ease-out infinite; }
  .automation-flow li:nth-child(2) .automation-node { animation-delay: 1.08s; }
  .automation-flow li:nth-child(3) .automation-node { animation-delay: 2.12s; }
  .automation-flow li:nth-child(4) .automation-node { animation-delay: 3.14s; }

  .automation-flow::after,
  .automation-node { animation-play-state: paused; }

  .automation-art[data-playing] .automation-flow::after,
  .automation-art[data-playing] .automation-node { animation-play-state: running; }
}

@keyframes workflow-signal {
  0% { background-position: 0 50%; opacity: 0; }
  6% { opacity: 1; }
  62% { background-position: 100% 50%; opacity: 1; }
  66%, 100% { background-position: 100% 50%; opacity: 0; }
}

@keyframes workflow-node {
  0%, 23%, 100% { box-shadow: none; }
  7%, 12% {
    border-color: var(--gold);
    color: #ffe093;
    box-shadow: 0 0 0 2px #f5bd4638, 0 0 13px #f5bd4652;
  }
}

.service-motion {
  --motion-state: paused;
  position: relative;
  display: block;
  width: min(100%, 28rem);
  justify-self: center;
}

.service-motion[data-playing] { --motion-state: running; }
.service-motion .service-detail-image { display: block; width: 100%; }

.service-motion-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.service-motion-overlay > * { opacity: 0; }

.api-signal,
.camera-rays {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.api-signal {
  stroke: #fff1bc;
  stroke-width: 4;
  stroke-dasharray: 12 110;
  filter: drop-shadow(0 0 4px #73e2e0);
}

.api-received { fill: #fff1bc; filter: drop-shadow(0 0 5px #ffbe43); }
.api-reply { stroke: #adfff2; }
.api-complete { fill: #adfff2; filter: drop-shadow(0 0 5px #66dfd7); }

.api-stage text {
  fill: var(--cream);
  text-anchor: middle;
  font: 700 23px var(--font-family);
}

.api-stage-stock rect { fill: #103637; stroke: #7ed9cf; stroke-width: 2; }
.api-stage-stock text:last-child { font-size: 19px; }
.api-stage-done path {
  fill: none;
  stroke: #adfff2;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 4px #73e2e0);
}

.service-motion-overlay > .api-systems {
  opacity: 1;
  fill: var(--cream);
  text-anchor: middle;
  font: 600 19px var(--font-family);
}
.app-pip path {
  fill: none;
  stroke: #ffdb86;
  stroke-width: 8;
  stroke-linecap: round;
  filter: drop-shadow(0 0 5px #f5a33a);
}

.app-pip text {
  fill: #ffe093;
  stroke: #231505;
  stroke-width: 2;
  paint-order: stroke fill;
  text-anchor: middle;
  font: italic 900 25px var(--font-family);
}
.web-progress {
  fill: none;
  stroke: #efac42;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 100;
}

.service-motion-web text {
  fill: #153b38;
  font: 700 15px var(--font-family);
}
.web-cursor { fill: #fff3d4; stroke: #102225; stroke-width: 1.5; }
.camera-flash { fill: #fff2c9; filter: blur(3px) drop-shadow(0 0 12px #ffc36b); }
.camera-rays { stroke: #ffe2a0; stroke-width: 8; }

@media (prefers-reduced-motion: no-preference) {
  .service-motion-api .api-signal { animation: api-transmit 6.8s linear infinite; }
  .service-motion-api .api-reply { animation: api-return 6.8s linear infinite; }
  .service-motion-api .api-received { animation: api-receive 6.8s ease-out infinite; }
  .service-motion-api .api-complete { animation: api-complete 6.8s ease-out infinite; }
  .api-stage-order { animation: api-show-order 6.8s ease-in-out infinite; }
  .api-stage-stock { animation: api-show-stock 6.8s ease-in-out infinite; }
  .api-stage-done { animation: api-show-done 6.8s ease-in-out infinite; }
  .service-motion-app .app-pip { animation: app-pip 5.8s ease-out infinite; }
  .service-motion-app .app-pip:nth-child(2) { animation-delay: .48s; }
  .service-motion-app .app-pip:nth-child(3) { animation-delay: .96s; }
  .service-motion-web .web-progress { animation: web-load 8.8s ease-out infinite; }
  .service-motion-web .web-cursor { animation: web-pointer 8.8s ease-in-out infinite; }
  .service-motion-web .web-booking { animation: web-form 8.8s ease-out infinite; }
  .service-motion-web .web-booked { animation: web-confirmation 8.8s ease-out infinite; }
  .service-motion-camera :is(.camera-flash, .camera-rays) { animation: camera-shutter 7.2s ease-out infinite; }

  .service-motion .service-motion-overlay > * { animation-play-state: var(--motion-state); }
}

@keyframes api-transmit {
  0%, 7% { opacity: 0; stroke-dashoffset: 12; }
  11%, 32% { opacity: 1; }
  37%, 100% { opacity: 0; stroke-dashoffset: -100; }
}

@keyframes api-receive {
  0%, 32%, 49%, 100% { opacity: 0; }
  38% { opacity: 1; }
}

@keyframes api-return {
  0%, 45% { opacity: 0; stroke-dashoffset: -100; }
  49%, 71% { opacity: 1; }
  76%, 100% { opacity: 0; stroke-dashoffset: 12; }
}

@keyframes api-complete {
  0%, 71%, 88%, 100% { opacity: 0; }
  77% { opacity: 1; }
}

@keyframes api-show-order {
  0%, 36%, 100% { opacity: 0; }
  5%, 30% { opacity: 1; }
}

@keyframes api-show-stock {
  0%, 34%, 71%, 100% { opacity: 0; }
  39%, 65% { opacity: 1; }
}

@keyframes api-show-done {
  0%, 73%, 100% { opacity: 0; }
  78%, 94% { opacity: 1; }
}

@keyframes app-pip {
  0%, 13%, 100% { opacity: 0; }
  3%, 9% { opacity: 1; }
}

@keyframes web-load {
  0% { opacity: 0; stroke-dashoffset: 100; }
  3% { opacity: 1; }
  14% { opacity: 1; stroke-dashoffset: 0; }
  20%, 100% { opacity: 0; stroke-dashoffset: 0; }
}

@keyframes web-pointer {
  0%, 14% { opacity: 0; transform: translate(405px, 345px); }
  20% { opacity: 1; }
  34%, 40% { opacity: 1; transform: translate(311px, 321px); }
  56%, 62% { opacity: 1; transform: translate(374px, 306px); }
  66%, 100% { opacity: 0; transform: translate(374px, 306px); }
}

@keyframes web-form {
  0%, 36%, 65%, 100% { opacity: 0; }
  40%, 62% { opacity: 1; }
}

@keyframes web-confirmation {
  0%, 62%, 94%, 100% { opacity: 0; }
  65%, 88% { opacity: 1; }
}

@keyframes camera-shutter {
  0%, 29%, 47%, 100% { opacity: 0; }
  32% { opacity: .82; }
}

.project-postscript {
  margin-top: 1.5rem;
  text-align: center;
  font-weight: 600;
}

@view-transition {
  navigation: auto;
}

::view-transition-old(root) { animation-duration: 70ms; }
::view-transition-new(root) { animation-duration: 90ms; }

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none; }
}

.contact-motion .contact-image { display: block; width: 100%; max-width: none; }

#contactError:empty { display: none; }
#contactFormWrapper { position: relative; container-type: inline-size; }
.contact-sent .contact-intro,
.contact-sent .contact-form { visibility: hidden; }
.contact-sent #successMessage {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  padding-bottom: clamp(2rem, 6cqi, 3.5rem);
  gap: clamp(.9rem, 3cqi, 1.4rem);
}

#successMessage h2 {
  color: var(--orange);
  font-size: min(2.6rem, 7.2cqi);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.02em;
  white-space: nowrap;
}

#successMessage p {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  line-height: 1.35;
}

@media (min-width: 770px) {
  .contact-layout { row-gap: 1.25rem; }
  .contact-copy { display: contents; }
  .contact-intro, #contactFormWrapper {
    grid-column: 1;
    width: min(100%, 30rem);
    justify-self: center;
  }
  .contact-intro { grid-row: 1; }
  #contactFormWrapper { grid-row: 2; }
  .contact-art {
    grid-area: 2 / 2;
    position: relative;
    align-self: stretch;
    container-type: size;
  }
  .contact-motion {
    position: absolute;
    inset: 50% auto auto 50%;
    width: min(100%, 120cqh);
    margin: 0;
    transform: translate(-50%, -50%);
  }
}


.megaphone-ray {
  fill: none;
  stroke: #ffe39a;
  stroke-linecap: round;
  stroke-width: 12;
  stroke-dasharray: 100;
}

.service-motion-overlay > .megaphone-ray { opacity: .86; }

@media (prefers-reduced-motion: no-preference) {
  .contact-motion .megaphone-ray { animation: megaphone-shout 5.4s cubic-bezier(.22, .8, .4, 1) infinite; }
  .contact-motion .megaphone-ray:nth-child(2) { animation-delay: .07s; }
  .contact-motion .megaphone-ray:nth-child(3) { animation-delay: .14s; }
  .contact-motion .service-motion-overlay > .megaphone-ray { animation-play-state: var(--motion-state); }
}

@keyframes megaphone-shout {
  0%, 22%, 100% { opacity: 0; stroke-dashoffset: 100; }
  6%, 12% { opacity: 1; stroke-dashoffset: 0; }
  18% { opacity: 0; stroke-dashoffset: 0; }
  28%, 37% { opacity: 1; stroke-dashoffset: 0; transform: translateX(-7px); }
  45% { opacity: 0; stroke-dashoffset: 0; transform: translateX(-11px); }
}

.wait-for-images img:not(.image-ready),
.wait-for-images appy-automation-art:has(img:not(.image-ready)) {
  visibility: hidden;
}

.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 10000;
  padding: .65rem 1rem;
  background: var(--gold);
  color: var(--ink);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

dialog.cookie-overlay {
  position: fixed;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  width: min(calc(100% - 2rem), 30rem);
  height: fit-content;
  max-height: calc(100dvh - 2rem);
  overflow: auto;
  padding: 0;
  border: 1px solid rgb(248 240 220 / .24);
  border-radius: 1rem;
  background: rgb(24 27 25 / .88);
  color: var(--cream);
  box-shadow: 0 .75rem 2.5rem rgb(0 0 0 / .35);
  backdrop-filter: blur(8px);
}
dialog.cookie-overlay[open] { display: block; }
dialog.cookie-overlay::backdrop { background: rgb(0 0 0 / .24); }
dialog .cookie-popup {
  padding: clamp(1.25rem, 4vw, 1.75rem);
  text-align: left;
}

dialog .cookie-summary {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
}

dialog .cookie-image { display: block; width: 100%; height: auto; margin: 0; mix-blend-mode: screen; }
dialog #cookie-title { color: var(--gold); margin: 0; }
dialog #cookie-title:focus { outline: none; }
dialog .cookie-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem;
  margin-top: 1rem;
}
dialog #simple-view { grid-template-columns: repeat(3, minmax(0, 1fr)); }
dialog #simple-view[hidden] { display: none; }
dialog .cookie-buttons > button {
  min-height: 2.75rem;
  padding: .5rem .35rem;
  border-width: 1px;
  font-size: .875rem;
  line-height: 1.2;
}
#cookie-description { margin: .8rem 0 .35rem; }
dialog .cookie-options { margin-top: 1rem; text-align: left; }
dialog .cookie-option { display: flex; align-items: center; gap: .5rem; }
dialog .cookie-option input { flex: 0 0 auto; }
dialog a, .policy-content a { color: var(--gold); text-decoration: underline; }

.cookie-desktop-description { display: none; }

@media (min-width: 770px) {
  dialog .cookie-summary {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: .5rem;
    text-align: center;
  }
  dialog .cookie-image { width: 5.5rem; }
  dialog .cookie-desktop-description {
    display: block;
    max-width: 38ch;
    margin: .6rem auto 0;
    color: var(--muted);
    text-align: center;
  }
  dialog:has(#simple-view[hidden]) .cookie-desktop-description { display: none; }
}


@media (max-width: 769px) {
  dialog.cookie-overlay {
    width: min(calc(100% - 2rem), 25rem);
    max-height: calc(100dvh - 1rem - env(safe-area-inset-top));
  }

  dialog .cookie-popup { padding: 1rem 1rem max(1rem, env(safe-area-inset-bottom)); }
  dialog .cookie-summary { grid-template-columns: 3.5rem minmax(0, 1fr); gap: .75rem; }
  dialog #cookie-title { font-size: 1rem; line-height: 1.3; }
  dialog .cookie-buttons { margin-top: .85rem; }
  dialog .cookie-options { gap: .5rem; }
  dialog .cookie-option { min-height: 2.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  #chat-window { transition: none; }
}
