/* Refined interaction enhancements — zero decorative loops, zero WebGL,
   honours prefers-reduced-motion. */

/* 1. Subtle pointer surface highlight on capability cards */
.capability-link {
  position: relative;
}
.capability-link::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 200ms var(--ease-out);
  background: radial-gradient(
    240px circle at var(--gx, 50%) var(--gy, 0%),
    rgba(255, 107, 19, 0.14),
    transparent 68%
  );
}
@media (hover: hover) and (pointer: fine) {
  .capability-link:hover::before {
    opacity: 1;
  }
}

/* 2. "What happens next" checklist in #contact */
.next-steps {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.next-steps li {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--dark);
  font-size: 0.94rem;
  font-weight: 500;
}
.next-steps .check {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(16, 17, 19, 0.35);
  background: rgba(16, 17, 19, 0.08);
  color: var(--dark);
}
.next-steps .check path {
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  transition: stroke-dashoffset 380ms var(--ease-out) 100ms;
}
.next-steps.in-view .check path {
  stroke-dashoffset: 0;
}
.next-steps.in-view li:nth-child(2) .check path {
  transition-delay: 200ms;
}
.next-steps.in-view li:nth-child(3) .check path {
  transition-delay: 300ms;
}

/* 3. Brief form focus clarity */
.brief-step :is(input:not([type='checkbox']), select, textarea) {
  transition:
    border-color 160ms var(--ease-out),
    background-color 160ms var(--ease-out);
}
.brief-step :is(input:not([type='checkbox']), select, textarea):focus-visible {
  border-color: #ff9e7d;
  background-color: #26272c;
  outline: 2px solid #ff9e7d;
  outline-offset: 2px;
}

/* 4. Copy email button (44px target) & WhatsApp QR card */
.copy-email {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 6px;
  border: 0;
  background: none;
  color: var(--dark);
  font: inherit;
  font-size: 0.87rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
  transition: opacity 160ms var(--ease-out), transform 120ms var(--ease-out);
}
.copy-email:hover {
  opacity: 0.78;
}
.copy-email:active {
  transform: scale(0.97);
}
.contact-details {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}
.whatsapp-qr {
  display: flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  max-width: 100%;
  margin: 20px 0 0;
  padding: 12px 16px 12px 12px;
  border: 1px solid rgba(16, 17, 19, 0.18);
  border-radius: 12px;
  background: #ffffff;
  color: #101113;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.whatsapp-qr .qr-code {
  width: 84px;
  height: 84px;
  flex: none;
}
.whatsapp-qr .qr-code svg {
  display: block;
  width: 100%;
  height: 100%;
}
.whatsapp-qr figcaption {
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.4;
}
.whatsapp-qr figcaption span {
  display: block;
  margin-top: 2px;
  color: #46474d;
  font-size: 0.78rem;
  font-weight: 400;
}

@media (prefers-reduced-motion: reduce) {
  .capability-link::before {
    transition: none;
  }
  .copy-email:active {
    transform: none;
  }
  .next-steps .check path {
    transition: none;
    stroke-dashoffset: 0;
  }
}

/* Ownership pairs the written guarantees with a copper, technical drawing surface. */
.promises {
  background:
    repeating-linear-gradient(108deg, transparent 0 46px, #e5996a12 47px, transparent 48px),
    radial-gradient(ellipse at 20% 15%, #884121, transparent 56%),
    #160e0b;
}
.promises .wrap {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.promises .section-heading { display: block; margin: 0; }
.promises h2, .gallery-copy h2, .flex-heading h2 {
  font-size: clamp(2.5rem, 5.4vw, 5.6rem);
  line-height: .98;
  letter-spacing: -.06em;
}
.promises .section-heading p { margin-top: 20px; color: #eed9cc; }
.promises .promise-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid #cb926451;
  border-radius: 22px;
  overflow: hidden;
  gap: 1px;
  background: #985e3c;
}
.promises .promise {
  border: 0;
  padding: clamp(18px, 2.7vw, 40px);
  background: linear-gradient(145deg, #372016, #170f0c);
}
.promise h3::before {
  content: '';
  display: block;
  width: 26px;
  height: 3px;
  margin-bottom: 20px;
  background: #ff9362;
}
.design-gallery {
  background: linear-gradient(120deg, #f4e6cc, #dcbfa3 58%, #b37d5d);
  color: #291911;
}
.design-gallery-layout { align-items: center; }
.gallery-copy > p:last-of-type { color: #51392d; }
.gallery-copy .jelly-radio { color: #fff; }
.design-gallery .gallery-view {
  padding: clamp(10px, 1.6vw, 24px);
  border-radius: 18px;
  background: #211813;
  box-shadow: 0 24px 50px #4c2e233d;
}
.concept-caption {
  position: absolute;
  inset: auto 0 0;
  padding: 30px 38px 12px 12px;
  background: linear-gradient(transparent, #0f0907ef);
  font: 500 clamp(.75rem, 1vw, .95rem)/1.25 Poppins, sans-serif;
  text-align: start;
  color: white;
}
.flex-gallery {
  --lens-ground: #170f10;
  background: radial-gradient(ellipse at 72% 45%, #703a23, transparent 66%), var(--lens-ground);
}
.flex-stage {
  background:
    repeating-radial-gradient(ellipse at 50% 72%, transparent 0 72px, #e4a58b16 73px, transparent 75px),
    radial-gradient(ellipse at 50% 70%, #62301d, #160f10 72%);
}
.flex-heading h2 { max-width: 15ch; }
[data-flex-ready] .flex-lens { background: transparent; }
.flex-card { border-radius: 3px; border-color: #c69c7a94; }
.flex-controls button[aria-pressed=true] { background: #ffaf7d; color: #27120a; }
.launch-sequence { background: #110b08; view-timeline-name: --launch; }
.launch-frame {
  position: relative;
  isolation: isolate;
  overflow: clip;
  min-height: 72svh;
  display: grid;
  align-items: end;
  background: #23120b;
}
.launch-art {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 47%;
}
.launch-frame::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(70deg, #190b07ed, #49200f79 52%, transparent);
}
.launch-type { padding-block: clamp(50px, 9vw, 145px); }
.launch-type h2 { font-size: clamp(3.4rem, 8.6vw, 10rem); line-height: .95; letter-spacing: -.07em; }
.launch-type em { color: #ffaf78; font-weight: 500; }
.launch-type a { display: inline-flex; align-items: center; min-height: 44px; margin-top: 18px; border-bottom: 1px solid; }
.launch-track { height: 4px; background: #ff9464; position: absolute; inset: auto 0 0; transform-origin: left; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .launch-sequence { height: 155svh; }
    .launch-frame { position: sticky; top: 0; height: 100svh; }
    .launch-art, .launch-track {
      animation: launch-travel linear both;
      animation-timeline: --launch;
      animation-range: contain 0% contain 100%;
    }
    .launch-track { animation-name: launch-progress; }
  }
}
@keyframes launch-travel { from { transform: scale(1.22) translateX(4%); } to { transform: scale(1); } }
@keyframes launch-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.contact {
  color: #fff5ec;
  background: radial-gradient(ellipse at 50% 54%, #b04012, #64200b 44%, #180d09 82%, #110b08);
}
.contact .contact-layout { align-items: center; }
.contact h2 { color: inherit; font-size: clamp(3rem, 5.8vw, 6.8rem); text-transform: uppercase; line-height: .95; }
.contact .contact-copy > p, .contact .response, .contact .contact-details, .contact .copy-email { color: #ffe5d5; }
.contact-scan { margin-top: 15px; }
.contact-scan summary { cursor: pointer; font-size: .85rem; }
.contact .project-brief { align-self: center; margin: 0; background: #230e0773; border: 0; box-shadow: none; border-radius: 0; }
.contact .brief-step :is(input:not([type=checkbox]), select, textarea) {
  background: #21100b70; color: #fff; border: 0; border-bottom: 1px solid #e6b6a0; border-radius: 0;
}
.contact .brief-step option { background: #26130c; }
.contact .brief-step button, .contact .brief-send {
  background: #fff6ef; color: #24130c; border-radius: 0; justify-content: center; width: 100%;
}
.footer.closing { min-height: 0; padding: 30px 0 0; color: #fff3e7; background: #110b08; }
.footer.closing::before { content: none; }
.closing-signature {
  margin-top: clamp(28px, 4vw, 64px);
  font: 700 33vw/.74 Poppins, sans-serif;
  letter-spacing: -.085em;
  text-align: center;
}
@media (max-width: 840px) {
  .promises .wrap { grid-template-columns: 1fr; }
  .contact .contact-layout { grid-template-columns: 1fr; }
  .contact .project-brief { width: 100%; }
}
@media (max-width: 520px) {
  .promises .promise-grid { grid-template-columns: 1fr; }
  .promise h3::before { margin-bottom: 10px; }
}

@media (min-width: 960px) and (min-height: 520px) {
  [data-flex-ready] .flex-stage {
    grid-template: "heading artwork" 1fr "controls artwork" auto / minmax(0, .85fr) minmax(0, 1.6fr);
    align-content: stretch;
    padding: clamp(32px, 7svh, 90px) 0 clamp(32px, 7svh, 90px) var(--gutter);
  }
  [data-flex-ready] .flex-heading {
    grid-area: heading;
    width: 100%;
    align-self: end;
    margin-bottom: 24px;
  }
  [data-flex-ready] .flex-controls {
    grid-area: controls;
    width: 100%;
    align-self: start;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  [data-flex-ready] .flex-lens {
    grid-area: artwork;
    height: 100%;
    border-left: 1px solid #e8a78255;
  }
}
.contact .project-brief { background: transparent; }
.contact .brief-step :is(input:not([type=checkbox]), select, textarea):not(:focus) { background: #250c071f; }
