html {
  --market-height: 64px;
  --market-inset: 12px;
  --market-offset: calc(var(--market-height) + var(--market-inset));
  scroll-padding-top: calc(var(--market-offset) + 12px);
}

.market-header {
  position: sticky;
  z-index: 5;
  top: 0;
  padding-block-start: var(--market-inset);
}

.market-bar.shell {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.4vw, 19px);
  width: min(1240px, calc(100% - clamp(18px, 5vw, 68px)));
  min-height: var(--market-height);
  padding-inline: clamp(9px, 1.8vw, 22px);
  border: 1px solid #bfa88865;
  border-radius: 100px;
  background: #161413ed;
  box-shadow: 0 8px 28px #0b0b0b4d;
  backdrop-filter: blur(14px);
}
.market-header .studio-wordmark {
  flex: none;
  gap: 7px;
  min-height: 44px;
  font: 720 clamp(1.05rem, 2.1vw, 1.55rem)/1 var(--studio-heading-font);
  letter-spacing: -.045em;
}
.market-header .studio-wordmark img { width: clamp(29px, 4vw, 43px); }
.market-header .studio-wordmark:hover .market-brand-name { color: var(--studio-bronze); }
.market-nav {
  display: flex;
  align-items: center;
  gap: clamp(1px, .6vw, 9px);
  margin-inline: auto;
}
.market-nav > a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding-inline: clamp(6px, .9vw, 13px);
  color: #e6dbcf;
  font-size: .86rem;
  font-weight: 560;
  text-decoration: none;
  white-space: nowrap;
}
.market-nav > a:is(:hover, [aria-current]) { color: var(--studio-cream); }
.market-nav > a[aria-current] { text-decoration: underline; text-underline-offset: .34em; text-decoration-color: var(--studio-bronze); }
.market-header .market-quote {
  flex: none;
  justify-content: center;
  min-height: 44px;
  padding: 7px clamp(10px, 1.5vw, 19px);
  font-size: .87rem;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
}
.market-menu { display: none; flex: none; }
.market-menu summary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid #947e63;
  border-radius: 50%;
  color: var(--studio-cream);
  background: #14110e;
  cursor: pointer;
  font-size: .86rem;
  font-weight: 650;
  list-style: none;
}
.market-menu summary::-webkit-details-marker { display: none; }
.market-menu summary:hover, .market-menu[open] summary { border-color: var(--studio-bronze); background: #2a2118; }
.market-menu-icon { position: relative; width: 15px; height: 14px; }
.market-menu-icon::before, .market-menu-icon::after {
  position: absolute;
  inset: 6px 0 auto;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  content: "";
}
.market-menu-icon::before { transform: translateY(-3px); }
.market-menu-icon::after { transform: translateY(3px); }
.market-menu[open]:not([data-closing]) .market-menu-icon::before { transform: rotate(45deg); }
.market-menu[open]:not([data-closing]) .market-menu-icon::after { transform: rotate(-45deg); }
.market-drawer-tray {
  position: absolute;
  z-index: 1;
  inset-block-start: calc(100% + 4px);
  inset-inline-end: 0;
  width: min(88%, 22rem);
  overflow: hidden;
}
.market-menu:not([open]) .market-drawer-tray { display: none; }
.market-menu[data-closing] .market-drawer-tray { pointer-events: none; }
.market-drawer {
  display: flex;
  flex-direction: column;
  min-height: min(25rem, calc(100vh - var(--market-height) - var(--market-inset) - 8px));
  max-height: calc(100vh - var(--market-height) - var(--market-inset) - 8px);
  min-height: min(25rem, calc(100dvh - var(--market-height) - var(--market-inset) - 8px));
  max-height: calc(100dvh - var(--market-height) - var(--market-inset) - 8px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 10px clamp(13px, 4vw, 23px) 19px;
  border: 1px solid #675441;
  border-radius: 13px;
  background: #191510;
}
.market-drawer > a {
  display: flex;
  flex: none;
  align-items: center;
  min-height: 50px;
  padding-inline: 9px;
  font-size: .97rem;
  font-weight: 620;
  text-decoration: none;
}
.market-drawer > a:not(.action) { border-bottom: 1px solid #504234; }
.market-drawer > a:not(.action):is(:hover, [aria-current]) { color: #e6ccac; background: #2b2118; }
.market-drawer > a:not(.action)[aria-current] { box-shadow: inset 2px 0 var(--studio-bronze); }
.market-drawer-languages { padding-block: 14px 4px; }
.market-drawer-language-heading { display: block; margin: 0 0 8px; color: #d2c1ae; font-size: .83rem; font-weight: 650; }
.market-drawer-language-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.market-drawer-language-options a {
  display: grid;
  place-items: center;
  min-height: 44px;
  border: 1px solid #65513e;
  border-radius: 8px;
  color: var(--studio-cream);
  font-size: .84rem;
  font-weight: 700;
  text-decoration: none;
}
.market-drawer-language-options a:is(:hover, [aria-current]) { border-color: var(--studio-bronze); background: #35281d; }
.market-drawer-cta { display: flex; align-items: end; flex: 1 0 auto; padding-top: 17px; }
.market-header .market-drawer .action { width: 100%; justify-content: center; border-radius: 10px; }

.locale-picker { position: relative; z-index: 2; flex: none; }
.locale-picker summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 65px;
  min-height: 44px;
  padding-inline: 12px;
  border: 1px solid #77664f;
  border-radius: 10px;
  color: var(--studio-cream);
  background: #1b1712;
  cursor: pointer;
  font-size: .8rem;
  font-weight: 750;
  letter-spacing: .09em;
  list-style: none;
}
.locale-picker summary::-webkit-details-marker { display: none; }
.locale-picker summary:hover, .locale-picker[open] summary { border-color: var(--studio-bronze); background: #2a2118; }
.locale-picker summary:focus-visible, .locale-options a:focus-visible { outline: 2px solid var(--studio-bronze); outline-offset: 2px; }
.locale-chevron { width: 7px; height: 7px; margin: -3px 0 0 1px; border: solid var(--studio-bronze); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.locale-picker[open]:not([data-closing]) .locale-chevron { margin-top: 3px; transform: rotate(225deg); }
.locale-options {
  position: absolute;
  inset: calc(100% + 9px) 0 auto auto;
  display: grid;
  gap: 3px;
  min-width: 166px;
  padding: 6px;
  border: 1px solid #695743;
  border-radius: 13px;
  background: #17130f;
  box-shadow: 0 14px 34px #0009;
}
.locale-options a { display: flex; align-items: center; gap: 11px; min-height: 44px; padding-inline: 10px; border: 1px solid transparent; border-radius: 8px; font-size: .9rem; text-decoration: none; white-space: nowrap; }
.locale-options a:hover { background: #33271d; }
.locale-options a[aria-current] { border-color: #6b573e; background: #33271d; font-weight: 700; }
.locale-code { min-width: 24px; color: var(--studio-bronze); font-size: .73rem; font-weight: 750; letter-spacing: .07em; }

.page-intro { padding-block: clamp(35px, 6vw, 94px) clamp(32px, 5vw, 72px); }
.page-intro h1 { max-width: 19ch; margin-top: 7px; font-size: clamp(2.3rem, 5.9vw, 5.1rem); font-weight: 690; line-height: 1.04; letter-spacing: -.055em; overflow-wrap: anywhere; }
.page-intro p { max-width: 57ch; margin-top: 16px; color: var(--muted); font-size: clamp(1rem, 2vw, 1.18rem); line-height: 1.63; }
.page-intro .page-path { color: var(--studio-bronze); font-size: .9rem; }
.page-path a { text-underline-offset: .22em; }
.page-intro .actions { margin-top: 20px; }
.page-hero-picture { width: 100%; aspect-ratio: 1.9; object-fit: cover; border-radius: 8px; }
.page-intro.has-picture { display: grid; grid-template-columns: 1.13fr 1fr; align-items: end; gap: 20px clamp(24px, 5vw, 64px); }
.page-deck a { display: block; padding: clamp(19px, 3.3vw, 31px); border: 1px solid var(--line); border-radius: 8px; background: #161310; text-decoration: none; }
.page-deck a:hover { border-color: var(--studio-bronze); background: #231b14; }
.page-deck h2 { font-size: clamp(1.2rem, 2.2vw, 1.58rem); }
.page-deck p { margin-top: 7px; color: var(--muted); line-height: 1.55; }
.page-deck { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; padding-block: clamp(30px, 6vw, 82px); }
.market-footer-links { display: flex; flex-wrap: wrap; gap: 12px 22px; color: var(--muted); }
.market-footer-links a { text-underline-offset: .2em; }
.market-footer-links a:hover { color: var(--studio-bronze); }
main:has(.page-offers) .page-intro {
  padding-block: clamp(28px, 4.5vw, 62px) clamp(22px, 3vw, 40px);
}
.page-offers { padding-block-start: clamp(24px, 3.2vw, 42px); }
.offer-shortcuts {
  --offer-switch-padding: 4px;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, 40rem);
  margin-bottom: clamp(18px, 3vw, 25px);
  padding: var(--offer-switch-padding);
  border: 1px solid #5c4b3b;
  border-radius: 18px;
  background: #14110e;
}
.offer-shortcuts::before {
  position: absolute;
  z-index: -1;
  box-sizing: border-box;
  inset: var(--offer-switch-padding) auto var(--offer-switch-padding) var(--offer-switch-padding);
  width: calc((100% - 2 * var(--offer-switch-padding)) / 3);
  border: 1px solid #9b8367;
  border-radius: 13px;
  background: #3a2d21;
  content: "";
  pointer-events: none;
  opacity: var(--offer-preview-opacity, var(--offer-active-opacity, 0));
  translate: calc(100% * var(--offer-preview-index, var(--offer-active-index, 0))) 0;
}
.offer-shortcuts[data-active] { --offer-active-opacity: 1; }
.offer-shortcuts a {
  display: grid;
  place-items: center;
  min-height: 46px;
  padding: 7px 9px;
  border-radius: 13px;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 650;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.offer-shortcuts a:is(:hover, :focus-visible, [aria-current]) { color: var(--studio-cream); }
.offer-shortcuts:focus-within { --offer-preview-opacity: 1; }
.offer-shortcuts:has(a:nth-child(1):focus-visible) { --offer-preview-index: 0; }
.offer-shortcuts:has(a:nth-child(2):focus-visible) { --offer-preview-index: 1; }
.offer-shortcuts:has(a:nth-child(3):focus-visible) { --offer-preview-index: 2; }
.page-offers .offer-grid article {
  display: flex;
  position: relative;
  flex-direction: column;
  border-color: #493e32;
  border-radius: 12px;
  background: linear-gradient(155deg, #1d1813, #141210 65%);
  scroll-margin-block-start: 12px;
}
.page-offers .offer-grid .offer-featured {
  border-color: #8b7256;
  background: linear-gradient(155deg, #2a2117, #151210 66%);
}
.page-offers .offer-price {
  margin-block: 14px 2px;
  color: var(--studio-cream);
  font-weight: 550;
  line-height: 1.15;
}
.offer-price data {
  color: #e8d3b9;
  font-family: var(--studio-heading-font);
  font-size: clamp(1.9rem, 4vw, 2.65rem);
  font-weight: 720;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.045em;
  white-space: nowrap;
}
.offer-terms {
  max-width: 80ch;
  margin-top: 19px;
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.55;
}
.page-offers .offer-grid article::before {
  position: absolute;
  inset: 0 14% auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--studio-bronze), transparent);
  content: "";
  opacity: 0;
  pointer-events: none;
}
.page-offers .offer-grid article:is(:hover, :focus-within, :target) {
  border-color: #aa9072;
  box-shadow: 0 9px 27px #0006, inset 0 2px 24px #bfa8880b;
}
.page-offers .offer-grid article:is(:hover, :focus-within, :target)::before { opacity: .85; }
.page-offers .offer-grid article h3 { font-size: clamp(1.08rem, 1.7vw, 1.3rem); }
.page-offers .offer-grid ul { margin-bottom: 21px; }
.page-offers .offer-pick { justify-content: center; width: 100%; margin-top: auto; padding-inline: 11px; text-align: center; }
.page-offers article:target .offer-pick {
  border-color: #dac4a8;
  color: var(--studio-black);
  background: linear-gradient(110deg, var(--studio-cream), #d9c0a2);
}
.project-copy .project-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 14px; }
.project-copy .similar-link { font-size: .91rem; color: var(--studio-cream); }
.quote-layout .brief { margin-inline: 0; }
.brief-context { margin-top: 9px; color: var(--studio-bronze); font-weight: 650; }
.restored-story { margin: 16px 0 25px; }
.restored-story-track { position: sticky; z-index: 1; top: calc(var(--market-offset) + 5px); padding-block: 9px; background: #0b0b0bf5; }
.restored-story-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.restored-story-nav a { display: flex; align-items: center; min-height: 44px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 5px; text-decoration: none; }
.restored-story-nav a[aria-current], .restored-story-nav a:hover { color: var(--studio-bronze); border-color: #a99479; }
.story-line { display: block; position: relative; height: 2px; margin-top: 12px; overflow: hidden; background: var(--line); }
.story-line::after { position: absolute; inset: 0; content: ""; background: var(--studio-bronze); transform: scaleX(var(--story-progress, 0)); transform-origin: left; }
.restored-story .process-grid { grid-template-columns: 1fr; gap: 12px; margin: 17px 0 0; padding-left: 1.55rem; }
.restored-story .process-grid li { min-height: 115px; padding: 18px 19px; scroll-margin-top: 75px; border: 1px solid var(--line); border-radius: 6px; background: #141210; }
.restored-story .process-grid li[data-story-active] { border-color: #9c8466; }
.compare-choice { display: grid; width: fit-content; gap: 5px; margin-bottom: 14px; }
.compare-choice select { min-height: 44px; padding-inline: 11px; border: 1px solid #897457; border-radius: 5px; color: var(--studio-cream); background: #17130f; font: inherit; }
.compare-choice select:focus-visible, .market-menu summary:focus-visible { outline: 2px solid var(--studio-bronze); outline-offset: 3px; }
.comparison-stage[data-drag-ready] { touch-action: pan-y; cursor: ew-resize; }
.comparison-stage[data-drag-ready] .comparison-divider::before { position: absolute; top: 50%; left: -1px; width: 30px; height: 30px; border: 2px solid #5a4731; border-radius: 50%; background: var(--studio-cream); color: #201a13; content: "↔"; display: grid; place-items: center; font-size: 1rem; font-weight: 750; transform: translate(-50%, -50%); }

.market-header .action, main .action { border-radius: 100px; }
.market-header .action-primary, main .action-primary {
  border-color: #e2cfb8;
  color: var(--studio-black);
  background-color: #eee2d2;
  background-image: linear-gradient(112deg, transparent 39%, #fff8 50%, transparent 61%), linear-gradient(110deg, var(--studio-cream), #d9c0a2);
  background-repeat: no-repeat;
  background-size: 220% 100%, 100% 100%;
  background-position: 100% 0, 0 0;
}
.market-header .action-primary:is(:hover, :focus-visible), main .action-primary:is(:hover, :focus-visible) {
  border-color: var(--studio-cream);
  box-shadow: 0 0 0 3px #bfa88825, 0 5px 24px #bfa88836;
}
main .action-outline:is(:hover, :focus-visible) {
  border-color: var(--studio-bronze);
  background-color: #282018;
  box-shadow: inset 0 0 0 1px #bfa88822;
}
.opening-title-line { width: fit-content; max-width: 100%; }
.opening-title-line + .opening-title-line { color: #e2cbb0; }

@media (max-width: 880px) {
  html { --market-height: 56px; --market-inset: 8px; }
  .market-bar.shell { gap: clamp(6px, 1.8vw, 11px); }
  .market-nav { display: none; }
  .market-header .market-quote { margin-inline-start: auto; font-size: clamp(.76rem, 3.3vw, .85rem); }
  .market-menu { display: block; }
  .locale-picker { display: none; }
}

@media (max-width: 700px) {
  .page-intro.has-picture, .page-deck { grid-template-columns: minmax(0, 1fr); }
  .page-hero-picture { aspect-ratio: 2.1; }
  .restored-story-nav { gap: 5px; }
  .restored-story .process-grid li { scroll-margin-top: 105px; }
}

@media (max-width: 385px) {
  .market-bar.shell { width: calc(100% - 12px); gap: 5px; padding-inline: 8px; }
  .market-header .studio-wordmark { gap: 5px; font-size: 1.01rem; }
  .market-header .market-quote { padding-inline: 8px; }
  .offer-shortcuts a { padding-inline: 4px; font-size: .875rem; }
}

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition { pointer-events: none; }
  ::view-transition-old(root) { animation: 165ms ease-in both page-away; }
  ::view-transition-new(root) { animation: 245ms ease-out both page-arrival; }
  .story-line::after, .market-nav a, .market-menu summary, .locale-picker summary, .locale-options a, .market-drawer-language-options a {
    transition: min-height 210ms ease, transform 210ms ease, background-color 180ms ease,
      border-color 180ms ease, border-radius 210ms ease, color 180ms ease, box-shadow 180ms ease;
  }
  .locale-chevron { transition: transform 170ms ease, margin-top 170ms ease; }
  .market-menu-icon::before, .market-menu-icon::after { transition: transform 190ms ease; }
  html:has(.offer-shortcuts) { scroll-behavior: smooth; }
  .offer-shortcuts::before { transition: translate 310ms cubic-bezier(.22,.82,.3,1), opacity 180ms ease; }
  .offer-shortcuts a { transition: color 160ms ease, scale 140ms ease; }
  .offer-shortcuts a:active { scale: .97; }
  .page-offers .offer-grid article { transition: translate 220ms ease, border-color 190ms ease, box-shadow 220ms ease; }
  .page-offers .offer-grid article::before { transition: opacity 200ms ease; }
  .market-header .action, main .action {
    transition: translate 220ms cubic-bezier(.22,.82,.3,1), scale 140ms ease, background-position 420ms ease-out,
      background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  }
  .market-header .action-primary:is(:hover, :focus-visible), main .action-primary:is(:hover, :focus-visible) {
    background-position: 0 0, 0 0;
  }
  :is(.market-header, main) .action:active { translate: 0 1px; scale: .98; }
  .page-deck a, .projects article {
    transition: translate 220ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 220ms ease;
  }
  .opening-image[data-hero-drift] { transform: translateY(var(--hero-drift, 0)); }
  [data-reveal] { transition: opacity 320ms ease-out, transform 320ms ease-out; }
  [data-reveal-pending]:not(:focus-within) { opacity: 0; transform: translateY(14px); }

  main { --motion-distance: 17px; --motion-step: 68ms; }
  [data-motion="pending"]:not(:focus-within) { opacity: 0; }
  [data-motion="entering"]:not(:focus-within) {
    animation: market-enter-block 510ms cubic-bezier(.19, 1, .22, 1) backwards;
    animation-delay: calc(var(--motion-index, 0) * var(--motion-step));
  }
  :is(h1, h2)[data-motion="entering"]:not(:focus-within) {
    animation: market-enter-heading 570ms cubic-bezier(.2, .75, .24, 1) backwards;
  }
  .opening-content > h1[data-motion="entering"] { animation: none; }
  .opening-content > h1[data-motion="entering"] .opening-title-line {
    animation: market-enter-heading 640ms cubic-bezier(.2, .75, .24, 1) backwards;
  }
  .opening-content > h1[data-motion="entering"] .opening-title-line + .opening-title-line { animation-delay: 110ms; }
  .opening-content > p[data-motion="entering"] { animation-delay: 150ms; }
  .opening-content > .actions[data-motion="entering"]:not(:focus-within) { animation-delay: 210ms; }
  :is(.page-intro h1 + p, .work-heading h2 + p, .case-description)[data-motion="entering"] { animation-delay: 85ms; }
  .offer-shortcuts[data-motion="entering"]:not(:focus-within) { animation-delay: 120ms; }

  @media (max-width: 700px) {
    main { --motion-distance: 12px; --motion-step: 28ms; }
  }
}

@media (hover: hover) and (pointer: fine) {
  .offer-shortcuts:has(a:hover):not(:focus-within) { --offer-preview-opacity: 1; }
  .offer-shortcuts:has(a:nth-child(1):hover):not(:focus-within) { --offer-preview-index: 0; }
  .offer-shortcuts:has(a:nth-child(2):hover):not(:focus-within) { --offer-preview-index: 1; }
  .offer-shortcuts:has(a:nth-child(3):hover):not(:focus-within) { --offer-preview-index: 2; }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  :is(.market-header, main) .action:hover:not(:active) { translate: 0 -2px; }
  .page-deck a:hover, .projects article:hover { translate: 0 -3px; box-shadow: 0 10px 24px #0005; }
  .page-offers .offer-grid article:hover { translate: 0 -3px; }
}

@keyframes market-enter-block {
  from { opacity: 0; transform: translateY(var(--motion-distance)); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes market-enter-heading {
  from { opacity: 0; clip-path: inset(-.18em 100% -.25em -.12em); transform: translateY(.17em); }
  to { opacity: 1; clip-path: inset(-.18em -.12em -.25em -.12em); transform: translateY(0); }
}
@keyframes page-away { to { opacity: 0; } }
@keyframes page-arrival { from { opacity: .25; transform: translateY(7px); } }
