:root {
  color-scheme: light;
  --yellow: #ffdc00;
  --ink: #232323;
  --muted: #565656;
  --line: #ddd;
  --paper: #f2f2f2;
  --band: #eaeaea;
  --dark: #3c3c3c;
  --gutter: clamp(18px, 4.2vw, 44px);
  --shell: 1080px;
  --section-space: clamp(40px, 6.3vw, 82px);
  --grid-gap: clamp(16px, 2.4vw, 28px);
  --contact-dock-size: 44px;
  --contact-dock-inset: max(clamp(8px, 1.35vw, 22px), env(safe-area-inset-right, 0px));
  --contact-dock-clearance: calc(var(--contact-dock-inset) + var(--contact-dock-size) + 8px);
  font-family: "Helvetica Neue", Arial, "PingFang HK", "Microsoft JhengHei", sans-serif;
  color: var(--ink);
  background: #fff;
  font-synthesis: none;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 86px;
}

body {
  margin: 0;
  font-size: 16px;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

figure {
  margin: 0;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: .23em;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid #805800;
  outline-offset: 4px;
}

h1,
h2,
h3,
p {
  margin: 0;
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  line-height: 1.18;
}

h1 {
  font-size: clamp(34px, 5vw, 57px);
  line-height: 1.09;
  font-weight: 500;
  letter-spacing: -.035em;
}

h2 {
  font-size: clamp(25px, 3.1vw, 35px);
  letter-spacing: -.022em;
}

h3 {
  font-size: clamp(18px, 2.1vw, 23px);
  letter-spacing: -.014em;
}

[lang|="zh"] h1,
[lang|="zh"] h2,
[lang|="zh"] h3 {
  letter-spacing: 0;
}

p + p {
  margin-top: .85em;
}

.shell {
  --shell-end-gutter: var(--gutter);
  width: min(calc(100% - var(--gutter) - var(--shell-end-gutter)), var(--shell));
  margin-inline: auto max(var(--shell-end-gutter), calc((100% - var(--shell)) / 2));
}

main .shell,
.site-footer > .shell {
  --shell-end-gutter: max(var(--gutter), var(--contact-dock-clearance));
}

.shell .shell {
  width: 100%;
}

.section {
  padding-block: var(--section-space);
}

.section + .section {
  padding-top: 0;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-bottom: clamp(16px, 2.65vw, 28px);
}

.section-title {
  position: relative;
  padding-inline-start: 13px;
}

.section-title::before {
  position: absolute;
  inset-block: .08em;
  inset-inline-start: 0;
  width: 4px;
  background: var(--yellow);
  content: "";
}

.eyebrow {
  margin-bottom: .55em;
  color: var(--muted);
  font-size: 14px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: .35em;
  font-size: .95rem;
  font-weight: 600;
  white-space: nowrap;
}

.text-link:hover,
.text-link:focus-visible {
  text-decoration-color: #9c7e00;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
  padding: 9px 20px;
  border: 1px solid var(--yellow);
  border-radius: 0;
  background: var(--yellow);
  color: #222;
  text-decoration: none;
  font-size: .925rem;
  font-weight: 650;
  line-height: 1.25;
  text-align: center;
}

.button:hover {
  border-color: #e4c400;
  background: #e4c400;
}

.button-muted {
  border-color: #535961;
  background: #535961;
  color: #fff;
}

.button-muted:hover {
  border-color: #373c42;
  background: #373c42;
}

.button-outline {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.button-outline:hover {
  border-color: #aaa;
  background: var(--paper);
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: .6rem;
  left: .65rem;
  clip-path: inset(50%);
  padding: .55rem .9rem;
  background: var(--yellow);
  color: #222;
  font-weight: 700;
}

.skip-link:focus {
  clip-path: none;
}

.site-header {
  position: relative;
  z-index: 4;
  border-bottom: 1px solid #e7e7e7;
  background: #fff;
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 73px;
  gap: clamp(13px, 2.2vw, 30px);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  position: relative;
  display: inline-flex;
  flex: none;
  align-items: center;
  align-self: stretch;
  width: max-content;
  margin-inline-end: auto;
  padding: 8px 0 0;
  color: #232323;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: 1;
  text-decoration: none;
}

.brand::before {
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: var(--yellow);
  content: "";
}

.brand img {
  width: clamp(104px, 12vw, 150px);
  max-height: 50px;
  object-fit: contain;
  object-position: left center;
}

.brand:has(img) {
  padding-top: 0;
}

.brand:has(img)::before {
  content: none;
}

.desktop-nav,
.desktop-nav ul,
.social-links {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.55vw, 23px);
}

.desktop-nav ul,
.social-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.desktop-nav a,
.desktop-nav summary,
.lang-link {
  display: inline-flex;
  align-items: center;
  gap: .3em;
  min-height: 44px;
  padding: 2px 0 0;
  font-size: .86rem;
  line-height: 1.2;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.desktop-nav a:hover,
.desktop-nav a[aria-current],
.lang-link:hover {
  text-decoration: underline;
  text-decoration-color: #a58000;
  text-decoration-thickness: 2px;
}

.desktop-nav details {
  position: relative;
}

.desktop-nav summary {
  cursor: pointer;
  list-style: none;
}

.desktop-nav summary::-webkit-details-marker {
  display: none;
}

.desktop-nav .nav-drop-links {
  position: absolute;
  z-index: 5;
  top: 100%;
  left: 0;
  display: block;
  min-width: 204px;
  padding: 4px 12px;
  border: 1px solid var(--line);
  background: #fff;
}

.desktop-nav .nav-drop-links a {
  display: flex;
}

.mobile-nav {
  display: none;
}

.social-links {
  gap: 3px;
}

.social-links a {
  display: grid;
  width: 32px;
  min-height: 44px;
  place-items: center;
}

.social-links img {
  width: 23px;
  height: 23px;
  object-fit: contain;
}

.social-links a:hover img {
  filter: brightness(.94);
}

.hero {
  background: var(--paper);
}

.hero > .shell,
.hero.shell {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr);
  align-items: center;
  gap: clamp(24px, 4.2vw, 64px);
  padding-block: clamp(30px, 6.2vw, 74px);
}

@media (min-width: 901px) {
  .hero > .hero-layout {
    --shell: 1240px;
    grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr);
    gap: clamp(26px, 3.3vw, 48px);
  }
}

.hero-copy {
  min-width: 0;
}

.hero-copy p {
  margin-top: 16px;
  max-width: 48ch;
  color: var(--muted);
  font-size: clamp(16px, 1.65vw, 18px);
}

.hero-subtitle {
  display: block;
  margin-top: .55rem;
  font-size: clamp(1.25rem, 1.88vw, 1.7rem);
  letter-spacing: normal;
  line-height: 1.35;
  text-wrap: balance;
}

.hero-copy .eyebrow {
  margin-top: 0;
}

.hero-copy .button {
  margin-top: 22px;
}

.hero-media {
  min-width: 0;
}

.hero-media img,
.hero-media video {
  width: 100%;
  max-height: 480px;
  object-fit: contain;
  object-position: center;
}

.brand-film video {
  height: auto;
}

.brand-film button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
}

.showreel-film {
  position: relative;
}

.showreel-poster {
  display: block;
}

.showreel-film button {
  position: absolute;
  inset: 0;
}

.showreel-film img,
.showreel-film video {
  max-height: none;
}

.showreel-film video {
  height: 100%;
}

.showreel-film:not(.has-video-frame) video {
  visibility: hidden;
}

.services-grid,
.about-grid,
.work-grid,
.case-gallery,
.case-facts,
.contact-grid,
.form-grid,
.metrics-grid {
  display: grid;
  gap: var(--grid-gap);
}

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

.service-item {
  min-width: 0;
  padding: 16px 0 5px;
  border-top: 2px solid var(--yellow);
}

.service-item p,
.about-card p {
  margin-top: .6em;
  color: var(--muted);
}

.service-item h3 a {
  text-decoration-color: #9c7e00;
}

.service-item h3 a:hover {
  text-decoration-thickness: 2px;
}

.service-item .text-link {
  min-height: 37px;
  margin-top: .35rem;
  font-size: 14px;
}

.intro-copy {
  max-width: 72ch;
}

.awards-list,
.reasons-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--grid-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.awards-list li {
  min-width: 0;
  padding-block: 14px 4px;
  border-top: 2px solid var(--yellow);
}

.award-result {
  margin-bottom: .45em;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 650;
}

.awards-list h3 + p,
.reasons-list h3 + p {
  margin-top: .5em;
  color: var(--muted);
}

.growth-copy {
  margin-top: clamp(25px, 4vw, 48px);
  padding-top: clamp(24px, 4vw, 42px);
  border-top: 1px solid #c9c9c9;
}

.growth-actions,
.related-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 20px;
}

.growth-actions {
  margin-top: 17px;
}

.related-links .text-link,
.service-feature .text-link,
.growth-actions .text-link {
  white-space: normal;
}

.service-comparison {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.service-comparison caption {
  margin-bottom: .65em;
  font-size: clamp(21px, 2.8vw, 29px);
  font-weight: 700;
  text-align: start;
}

.service-comparison thead {
  background: var(--dark);
  color: #fff;
}

.service-comparison :is(th, td) {
  padding: clamp(9px, 1.6vw, 17px);
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
  text-align: start;
  vertical-align: top;
}

.service-comparison thead th:first-child {
  width: 35%;
}

.service-comparison tbody th {
  background: var(--paper);
}

.service-comparison tr:target :is(th, td) {
  background: #fff8ce;
}

.service-deliverable {
  margin-top: .35em;
  color: var(--muted);
}

.service-topic {
  margin-top: clamp(22px, 3.2vw, 34px);
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.service-topic p {
  max-width: 70ch;
  margin-top: .55em;
  color: var(--muted);
}

.service-scope-list {
  max-width: 73ch;
  margin-block: 1em 0;
  padding-inline-start: 1.25em;
}

.service-scope-list li + li {
  margin-top: .95em;
}

.service-scope-list p {
  margin-top: .2em;
}

.service-guide .related-links {
  margin-top: 1.2em;
}

.client-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px clamp(6px, 1.5vw, 18px);
}

.client-logo {
  display: grid;
  grid-template-rows: clamp(35px, 5vw, 61px) auto;
  justify-items: center;
  align-items: start;
  gap: .55rem;
  min-width: 0;
  padding-block: 10px;
  color: var(--ink);
  text-align: center;
}

.client-logo img {
  width: auto;
  max-width: min(182px, 100%);
  height: clamp(35px, 5vw, 61px);
  object-fit: contain;
}

.client-name {
  grid-row: 2;
  font-size: clamp(.875rem, 1.2vw, 1rem);
  font-weight: 650;
  line-height: 1.35;
  text-wrap: balance;
}

:is(.client-carousel, .showcase-carousel) {
  display: grid;
  grid-template-areas: "carousel-track" "carousel-controls";
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
}

.client-carousel {
  --carousel-columns: 4;
  --carousel-gap: clamp(6px, 1.5vw, 18px);
}

.showcase-carousel {
  --carousel-columns: 3;
  --carousel-gap: var(--grid-gap);
  position: relative;
}

:is(.client-carousel, .showcase-carousel) [data-carousel-track] {
  grid-area: carousel-track;
  position: relative;
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--carousel-columns) - 1) * var(--carousel-gap)) / var(--carousel-columns));
  gap: var(--carousel-gap);
  margin: 0;
  padding: 4px 0;
  list-style: none;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

:is(.client-carousel, .showcase-carousel) [data-carousel-track]::-webkit-scrollbar {
  display: none;
}

:is(.client-carousel, .showcase-carousel) [data-carousel-track] > * {
  scroll-snap-align: start;
}

.showcase-carousel .work-image {
  aspect-ratio: 16 / 9;
}

.showcase-carousel .work-label {
  font-size: clamp(1.05rem, 1.55vw, 1.2rem);
  text-wrap: balance;
}

.client-carousel a.client-name {
  display: grid;
  place-items: center;
  min-height: 44px;
  max-width: 100%;
  outline-offset: -2px;
}

.client-carousel span.client-name {
  display: grid;
  place-items: center;
  min-height: 44px;
}

.carousel-controls {
  grid-area: carousel-controls;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-top: .25rem;
}

.carousel-controls button {
  display: grid;
  min-width: 44px;
  min-height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 1.4rem;
}

.carousel-controls button:is(:hover, :active) {
  background: var(--yellow);
}

.showcase-controls button[data-direction] {
  position: absolute;
  top: 36%;
  z-index: 1;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 1.65rem;
  text-shadow: 0 1px 4px #111, 0 0 2px #111;
}

.showcase-controls button[data-direction]:is(:hover, :focus-visible) {
  background: rgb(0 0 0 / 55%);
  outline-color: #fff;
}

.showcase-controls [data-direction="previous"] {
  left: .5rem;
}

.showcase-controls [data-direction="next"] {
  right: .5rem;
}

.carousel-controls .carousel-rotation {
  grid-column: 1;
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 0;
}

.carousel-rotation::before {
  content: "";
  width: .6rem;
  height: .75rem;
  border-inline: .16rem solid currentColor;
}

.carousel-rotation[data-playing="false"]::before {
  width: 0;
  height: 0;
  border: .38rem solid transparent;
  border-left: .6rem solid currentColor;
  border-right: 0;
}

.carousel-pagination {
  grid-column: 2;
  display: flex;
}

.carousel-pagination button {
  min-width: 32px;
  min-height: 44px;
  border: 0;
  background: transparent;
}

.carousel-pagination button::before {
  content: "";
  width: .5rem;
  height: .5rem;
  border: 1px solid #767676;
  border-radius: 50%;
}

.carousel-pagination button[aria-current="true"]::before {
  border-color: #222;
  background: #222;
}

.carousel-pagination button:is(:hover, :active) {
  background: transparent;
}

.carousel-pagination button:hover::before {
  background: var(--yellow);
}

.showcase-project-label {
  display: inline-block;
  margin-top: .4rem;
  font-size: .875rem;
  text-decoration: underline;
  text-underline-offset: .2em;
}

.showcase-contact {
  margin-top: .35rem;
  text-align: center;
}

.carousel-position {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

@media (max-width: 900px) {
  .client-carousel { --carousel-columns: 3; }
  .showcase-carousel { --carousel-columns: 2; }
}

@media (max-width: 680px) {
  .showcase-carousel { --carousel-columns: 1; }
}

@media (max-width: 480px) {
  .client-carousel { --carousel-columns: 2; }
}

.rail-tools {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: clamp(14px, 2.2vw, 24px);
}

.rail-tools :is(button, a):not(.button) {
  display: inline-grid;
  min-width: 44px;
  min-height: 44px;
  place-items: center;
  padding-inline: .5rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
}

.rail-tools :is(button, a):not(.button):hover {
  background: var(--paper);
}

.rail-tools button:disabled {
  opacity: .42;
  cursor: default;
}

.about-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: clamp(18px, 3.1vw, 36px);
}

.about-card {
  min-width: 0;
  padding: clamp(17px, 2.8vw, 32px);
  background: #f0f0f0;
}

.about-card:nth-child(2) {
  background: #e8e8e8;
}

.about-card:nth-child(3) {
  background: #dedede;
}

.about-card img,
.about-card svg {
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  object-fit: contain;
}

.work-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  row-gap: clamp(26px, 4.5vw, 56px);
  max-width: 100%;
}

.rail {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  row-gap: var(--grid-gap);
}

.work-card {
  min-width: 0;
}

.work-card > a:not(.text-link) {
  display: block;
  text-decoration: none;
}

.work-card > a:hover .work-label,
.work-card > a:focus-visible .work-label {
  text-decoration: underline;
}

.work-image {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  background: var(--dark);
  object-fit: contain;
}

.work-image picture,
.work-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.work-label {
  margin-top: 10px;
  font-size: clamp(17px, 1.9vw, 21px);
  font-weight: 650;
  line-height: 1.3;
}

.work-meta {
  margin-top: .24rem;
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.5;
}

.film-poster {
  position: relative;
  aspect-ratio: 16 / 9;
}

.film-play {
  position: absolute;
  bottom: 12px;
  inset-inline-start: 12px;
  padding: .55em .8em;
  background: var(--yellow);
  color: var(--ink);
  font-size: .875rem;
  font-weight: 700;
}

.showcase-card .related-links {
  margin-top: .35em;
}

.blog-card .blog-cover {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--paper);
  object-fit: contain;
}

.blog-card .blog-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.blog-card time,
.content-article time {
  display: block;
  margin-block-start: .65em;
  color: var(--muted);
  font-size: .875rem;
  font-variant-numeric: tabular-nums;
}

.blog-card time + p {
  margin-block-start: .45em;
}

.content-article :is(.page-intro, .article-body, .project-section) {
  max-width: 760px;
  margin-inline: auto;
}

.content-article h1 {
  font-size: clamp(30px, 4.4vw, 50px);
}

.project-backlink.text-link {
  width: fit-content;
  max-width: 100%;
  margin-block-end: .7em;
  white-space: normal;
}

.article-body,
.project-section {
  min-width: 0;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.article-body > * + * {
  margin-block-start: 1em;
}

.content-article > .article-body {
  margin-block-start: clamp(16px, 3vw, 32px);
}

.article-body :is(h2, h3, h4):not(:first-child) {
  margin-block: 1.4em .55em;
}

.article-body :is(ul, ol) {
  padding-inline-start: 1.4em;
}

.article-body li + li {
  margin-block-start: .34em;
}

.article-body blockquote {
  margin-inline: 0;
  padding: .6em 1em;
  border-inline-start: 4px solid var(--yellow);
}

.article-body figcaption {
  margin-block-start: .5em;
  color: var(--muted);
  font-size: .875rem;
}

.article-body pre,
.article-table {
  max-width: 100%;
  overflow-x: auto;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.article-table > table {
  min-width: 28rem;
  table-layout: auto;
}

.article-body :is(th, td) {
  padding: .6em .7em;
  border: 1px solid var(--line);
  text-align: start;
  vertical-align: top;
}

.article-body th {
  background: var(--paper);
}

.project-section + .project-section {
  margin-block-start: clamp(28px, 5vw, 60px);
}

.project-section h2 + p {
  margin-block-start: .65em;
}

.project-media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: var(--grid-gap);
  margin-block-start: clamp(16px, 2.6vw, 28px);
}

.project-media > :only-child {
  grid-column: 1 / -1;
}

.project-media img {
  width: 100%;
  height: auto;
}

.page-intro {
  padding-block: clamp(30px, 6.7vw, 78px) clamp(18px, 4.6vw, 45px);
}

.page-intro p {
  max-width: 62ch;
  margin-top: .85em;
  color: var(--muted);
}

.category-nav {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 0 15px;
  margin-top: clamp(12px, 2.3vw, 26px);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
}

.category-nav :is(a, button) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 5px 3px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.25;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
}

.category-nav :is(a, button):hover,
.category-nav [aria-current]:not([aria-current="false"]),
.category-nav [aria-pressed="true"],
.category-nav [aria-selected="true"] {
  border-bottom-color: var(--yellow);
  color: var(--ink);
}

.category-group {
  padding-block: 8px var(--section-space);
}

.category-group > h2 {
  margin-bottom: clamp(15px, 2.7vw, 32px);
}

.band {
  padding-block: clamp(31px, 5.6vw, 64px);
}

.band-gray {
  background: var(--band);
}

.band-dark {
  background: var(--dark);
  color: #fff;
}

.band-dark :focus-visible {
  outline-color: var(--yellow);
}

.case-layout {
  max-width: 970px;
  margin-inline: auto;
}

.case-cover img,
.case-cover video,
.case-gallery img {
  width: 100%;
}

.case-cover + *,
.case-facts + *,
.case-gallery + *,
.case-video + * {
  margin-top: clamp(18px, 3vw, 36px);
}

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

.case-facts > * {
  border-inline-start: 4px solid var(--yellow);
  padding-inline-start: 12px;
}

.case-facts .section-title::before {
  display: none;
}

.case-facts p,
.case-facts ul,
.case-layout figcaption {
  margin-top: .6rem;
}

.case-facts ul {
  padding-inline-start: 1.2rem;
  margin-bottom: 0;
}

.case-facts li + li {
  margin-top: .25rem;
}

.case-layout figcaption {
  color: var(--muted);
  font-size: .88rem;
}

.band-dark :is(figcaption, .notice, .work-meta) {
  color: #e7e7e7;
}

.case-gallery figure {
  min-width: 0;
}

.case-gallery img {
  object-fit: contain;
}

.case-video {
  display: block;
}

.case-video :is(iframe, video) {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  background: #232323;
}

.case-video > a:not(.button) {
  display: block;
}

.case-video img {
  width: 100%;
}

.case-film-description {
  max-width: 68ch;
  margin-block: .6em 1em;
}

.metrics-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  margin-bottom: 0;
  padding: 0;
  list-style: none;
}

.metric {
  min-width: 0;
  border-inline-start: 3px solid var(--yellow);
  padding-inline-start: 12px;
}

.metric :is(strong, dd) {
  display: block;
  margin: 0;
  color: inherit;
  font-size: clamp(20px, 3vw, 34px);
  font-weight: 720;
  line-height: 1.16;
}

.band-dark .metric :is(strong, dd) {
  color: var(--yellow);
}

.contact-grid {
  grid-template-columns: minmax(0, .66fr) minmax(0, 1fr);
  align-items: start;
}

.contact-info {
  font-style: normal;
  overflow-wrap: anywhere;
}

.contact-info > * + * {
  margin-top: .7rem;
}

.contact-form {
  min-width: 0;
}

.form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .7rem .9rem;
}

.form-grid > .wide,
.form-grid > .full {
  grid-column: 1 / -1;
}

.contact-form label {
  display: block;
  font-size: .92rem;
  font-weight: 650;
}

.contact-form :is(input:not([type="hidden"]), select, textarea) {
  display: block;
  width: 100%;
  min-height: 45px;
  padding: 8px 10px;
  border: 1px solid #797979;
  border-radius: 0;
  background: #fff;
  color: var(--ink);
}

.contact-form label :is(input:not([type="hidden"]), select, textarea) {
  margin-block-start: .2rem;
}

.contact-form textarea {
  min-height: 95px;
  resize: vertical;
}

.contact-form .button {
  margin-top: 12px;
}

.notice {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: .875rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #f5f5f5;
  color: var(--muted);
  font-size: .85rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 20px;
  padding-block: 16px;
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

@media (max-width: 900px) {
  .desktop-nav {
    display: none;
  }

  .header-inner {
    min-height: 62px;
    gap: 8px;
  }

  .header-actions {
    gap: 8px;
  }

  .mobile-nav {
    display: block;
  }

  .mobile-nav > summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    min-width: 44px;
    min-height: 44px;
    padding: 5px 8px;
    border: 1px solid var(--line);
    cursor: pointer;
    font-size: .88rem;
    font-weight: 650;
    list-style: none;
  }

  .mobile-nav > summary::-webkit-details-marker {
    display: none;
  }

  .mobile-nav > :is(nav, div, ul) {
    position: absolute;
    z-index: 4;
    inset: 100% 0 auto;
    margin: 0;
    padding: 7px 12px;
    border: 1px solid var(--line);
    background: #fff;
  }

  .mobile-nav ul {
    padding-inline-start: 0;
    list-style: none;
  }

  .mobile-nav li > ul {
    margin-inline-start: 14px;
  }

  .mobile-nav :is(a, details > summary) {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 6px 8px;
    color: var(--ink);
    text-decoration: none;
  }

  .mobile-nav a[aria-current],
  .mobile-nav a:hover,
  .mobile-nav a:focus-visible {
    background: var(--paper);
    text-decoration: underline;
  }

  .mobile-sublinks {
    border-inline-start: 2px solid var(--yellow);
    margin-inline-start: 8px;
    padding-inline-start: 6px;
  }
}

@media (max-width: 680px) {
  :root {
    --gutter: clamp(16px, 4.6vw, 22px);
    --grid-gap: 16px;
  }

  html {
    scroll-padding-top: 20px;
  }

  .hero > .shell,
  .hero.shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .hero-copy p {
    margin-top: 12px;
  }

  .hero-copy .button {
    margin-top: 16px;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 16px;
  }

  .service-item {
    padding-top: 10px;
  }

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

  .work-grid {
    row-gap: 24px;
  }

  .rail {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 81%;
    gap: 12px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    margin-inline: calc(var(--gutter) * -1);
    padding: 4px var(--gutter) 11px;
    scroll-padding-inline: var(--gutter);
    scroll-snap-type: x proximity;
    max-width: none;
  }

  .rail > * {
    scroll-snap-align: start;
  }

  .category-nav {
    column-gap: 10px;
  }

  .category-nav :is(a, button) {
    font-size: .875rem;
  }

  .case-gallery {
    gap: 12px;
  }

  .case-facts {
    gap: 18px;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 12px;
  }

  .contact-grid {
    gap: 20px;
  }
}

@media (max-width: 400px) {
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 350px) {
  .case-gallery,
  .services-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}

.desktop-nav .nav-drop > summary::after {
  width: .4em;
  height: .4em;
  margin-inline-start: .2em;
  border: solid currentColor;
  border-width: 0 1px 1px 0;
  transform: translateY(-.1em) rotate(45deg);
  content: "";
}

.desktop-nav .nav-drop[open] > summary::after {
  transform: translateY(.13em) rotate(225deg);
}

.section-muted {
  background: var(--band);
}

.section + .section-muted {
  padding-block-start: var(--section-space);
}

.service-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--grid-gap);
  margin-top: clamp(20px, 3.2vw, 38px);
}

.service-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  align-items: center;
  gap: clamp(18px, 3vw, 38px);
}

.service-feature-grid > .service-feature {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  align-content: start;
  gap: 12px;
  padding: clamp(18px, 2.6vw, 28px);
  border-top: 3px solid var(--yellow);
  background: var(--paper);
}

.service-feature-grid > .service-feature:only-child {
  grid-column: 1 / -1;
}

.service-feature p,
.service-body p,
.service-process p {
  max-width: 65ch;
  margin-top: .7em;
}

.service-feature .text-link,
.service-feature .button {
  margin-top: .6rem;
}

.service-feature-grid > .service-feature :is(p, .text-link) {
  margin-top: 0;
}

.service-feature :is(img, video) {
  width: 100%;
}

.service-body {
  max-width: 75ch;
}

.service-body > * + :is(h2, h3) {
  margin-top: 1.45em;
}

.service-process {
  margin-block: 1rem 0;
  padding-inline-start: 1.6em;
}

.service-process > li {
  padding-inline-start: .4em;
}

.service-process > li + li {
  margin-top: 1.2rem;
}

.service-process > li::marker {
  color: #745f00;
  font-weight: 800;
}

.service-process :is(h3, strong) {
  font-weight: 690;
}

.faq-list {
  max-width: 76ch;
  margin-top: 1em;
}

.faq-list > details {
  border-top: 1px solid var(--line);
}

.faq-list > details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-list > details > summary {
  position: relative;
  display: block;
  min-height: 44px;
  padding: 12px 26px 12px 0;
  cursor: pointer;
  font-weight: 650;
  list-style: none;
}

.faq-list > details > summary::-webkit-details-marker {
  display: none;
}

.faq-list > details > summary::after {
  position: absolute;
  inset: 12px 4px auto auto;
  color: #745f00;
  font-size: 1.15em;
  content: "+";
}

.faq-list > details[open] > summary::after {
  content: "−";
}

.faq-list > details > :not(summary) {
  margin: 0;
  padding: 2px 24px 15px 0;
}

.contact-dock {
  position: fixed;
  z-index: 3;
  right: var(--contact-dock-inset);
  bottom: max(16px, calc(env(safe-area-inset-bottom, 0px) + 8px));
  display: grid;
  gap: 6px;
}

.contact-dock a {
  display: grid;
  width: var(--contact-dock-size);
  height: var(--contact-dock-size);
  place-items: center;
  border: 1px solid #d8d2b3;
  border-radius: 9px;
  background: #fffdf4;
  box-shadow: 0 2px 5px rgb(35 35 35 / 10%);
}

.contact-dock a:hover {
  border-color: #a97800;
  background: var(--yellow);
}

.contact-dock img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

@media (max-width: 1000px) {
  .desktop-nav,
  .desktop-nav ul {
    gap: clamp(9px, 1.25vw, 18px);
  }
}

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mobile-nav > :is(nav, div, ul) {
    max-height: calc(100vh - 74px);
    max-height: calc(100dvh - 74px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

@media (max-width: 680px) {
  .service-feature,
  .service-feature-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .service-feature p,
  .service-body p {
    margin-top: .65em;
  }

  .contact-form :is(input, select, textarea) {
    font-size: 16px;
  }
}

@media (max-width: 560px) {
  .services-grid,
  .awards-list,
  .reasons-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .service-comparison {
    font-size: .9rem;
  }
}

@media (max-width: 360px) {
  .brand img {
    width: 88px;
  }

  .header-inner,
  .header-actions,
  .social-links {
    gap: 4px;
  }

  .social-links a {
    width: 28px;
  }
}
