:root {
  color-scheme: light;
  --paper: #f3f0e9;
  --paper-deep: #e9e5db;
  --ink: #20231f;
  --muted: #65675f;
  --gold: #c9ae7c;
  --hairline: rgba(32, 35, 31, .22);
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --sans: Arial, Helvetica, sans-serif;
  --serif: Georgia, 'Times New Roman', serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
.page-gutter { padding-inline: var(--gutter); }
.section-pad { padding-block: clamp(5.5rem, 10vw, 10rem); }
.skip-link { position: fixed; z-index: 100; top: .75rem; left: .75rem; transform: translateY(-180%); padding: .75rem 1rem; background: white; color: black; }
.skip-link:focus { transform: translateY(0); }
[id] { scroll-margin-top: 2rem; }

.site-header { position: absolute; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 2rem; inset: 0 0 auto; height: 104px; padding-inline: var(--gutter); color: #fff; }
.wordmark { display: grid; gap: .12rem; width: fit-content; font-family: var(--sans); font-size: clamp(.95rem, 1.25vw, 1.17rem); font-weight: 700; line-height: .98; letter-spacing: .135em; white-space: nowrap; }
.wordmark-dot, .footer-wordmark span { color: var(--gold); }
.site-nav { display: flex; align-items: center; gap: clamp(1.4rem, 2.5vw, 3rem); }
.site-nav > a { font-size: .77rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; transition: opacity .2s ease; }
.site-nav > a:hover { opacity: .68; }
.site-nav .nav-contact { display: flex; align-items: center; gap: 1.2rem; border: 1px solid rgba(255,255,255,.85); border-radius: 100px; padding: .95rem 1.2rem; }
.site-nav .nav-contact:hover { opacity: 1; background: #fff; color: var(--ink); }
.nav-contact span { font-size: 1.1rem; line-height: .6; }
.menu-toggle { display: none; }

.hero { position: relative; display: flex; align-items: flex-end; isolation: isolate; min-height: min(900px, 100svh); min-height: max(690px, 100svh); overflow: hidden; background: #9d8a6b; color: #fff; }
.hero-image, .hero-shade { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; }
.hero-image { object-fit: cover; object-position: 50% 45%; }
.hero-shade { background: linear-gradient(180deg, rgba(15,18,16,.58) 0%, rgba(15,18,16,.07) 35%, rgba(15,18,16,.2) 58%, rgba(10,13,10,.78) 100%), linear-gradient(90deg, rgba(10,13,10,.2), transparent 75%); }
.hero-content { width: 100%; padding-bottom: clamp(3.5rem, 7.5vw, 7.2rem); }
.eyebrow { margin: 0; font-size: .78rem; font-weight: 600; letter-spacing: .18em; line-height: 1.7; text-transform: uppercase; }
.hero-eyebrow { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem; color: rgba(255,255,255,.88); }
.eyebrow-line { width: 28px; height: 1px; background: currentColor; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.055em; }
h1 em, h2 em { font-weight: 400; }
.hero h1 { max-width: 1050px; margin: 1.6rem 0 2.2rem; font-size: clamp(5rem, 10.8vw, 11.25rem); line-height: .86; text-wrap: balance; }
@media (min-width: 701px) { .hero h1 { font-size: clamp(2.75rem, 4.5vw, 5rem); } }
.hero-bottom { display: flex; align-items: end; justify-content: space-between; gap: 3rem; border-top: 1px solid rgba(255,255,255,.55); padding-top: 1.4rem; }
.hero-bottom p { max-width: 30rem; margin: 0; font-size: clamp(1rem, 1.4vw, 1.22rem); line-height: 1.55; }
.round-link { display: grid; place-items: center; flex: 0 0 auto; width: 3.5rem; height: 3.5rem; border: 1px solid rgba(255,255,255,.78); border-radius: 50%; font-size: 1.6rem; transition: background .2s, color .2s, transform .2s; }
.round-link:hover { background: #fff; color: var(--ink); transform: translateY(3px); }
.hero-side-note { position: absolute; top: 46%; right: var(--gutter); writing-mode: vertical-rl; font-size: .68rem; font-weight: 600; letter-spacing: .2em; }

.section-index { display: flex; align-items: center; gap: .55rem; color: var(--muted); font-size: .76rem; font-weight: 700; letter-spacing: .17em; line-height: 1.4; text-transform: uppercase; white-space: nowrap; }
.index-number { color: #b59d72; }
.intro { display: grid; grid-template-columns: minmax(250px, .95fr) minmax(0, 1.25fr); grid-template-areas: "index main" "image main"; align-items: start; gap: 2.5rem clamp(2.5rem, 6vw, 7rem); background: var(--paper); }
.intro > .section-index { grid-area: index; }
.intro-main { grid-area: main; max-width: 1180px; }
.intro-image { grid-area: image; width: 100%; margin: 0; }
.intro-image img { width: 100%; height: auto; aspect-ratio: 602 / 604; object-fit: cover; }
.intro h2, .section-heading h2, .about-section h2, .contact-section h2 { margin: 0; font-size: clamp(3.6rem, 7.4vw, 8rem); line-height: .99; }
.intro h2 { max-width: 1100px; }
.intro-bottom { display: flex; justify-content: space-between; align-items: end; gap: 5rem; max-width: 960px; margin-top: clamp(3rem, 7vw, 7rem); }
.intro-bottom p, .about-copy p { max-width: 620px; margin: 0; font-size: clamp(1rem, 1.35vw, 1.22rem); line-height: 1.75; }
.text-link { display: inline-flex; align-items: center; gap: 1.7rem; flex: 0 0 auto; width: fit-content; border-bottom: 1px solid currentColor; padding-bottom: .55rem; font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.text-link span { font-size: 1.2rem; transition: transform .2s; }
.text-link:hover span { transform: translate(3px, -3px); }

.work-section { background: var(--paper-deep); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2.5rem; margin-bottom: clamp(3rem, 5vw, 5rem); }
.section-heading h2 { margin-top: 1.5rem; }
.section-heading > p { max-width: 22rem; margin: 0 0 .65rem; color: var(--muted); font-size: 1rem; line-height: 1.7; }
.work-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-flow: dense; gap: clamp(.75rem, 1.45vw, 1.5rem); }
.work-card { position: relative; display: block; grid-column: span 6; min-height: 430px; overflow: hidden; isolation: isolate; background: #777b70; color: #fff; }
.work-card-wide { grid-column: span 7; }
.work-card-tall { grid-column: span 5; min-height: 620px; }
.work-card:nth-child(3) { grid-column: span 5; }
.work-card:nth-child(4) { grid-column: span 7; }
.work-card:nth-child(5) { grid-column: span 5; }
.work-card:nth-child(6) { grid-column: span 7; }
.work-card img, .card-overlay { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; }
.work-card img { object-fit: cover; transition: transform .65s ease; }
.work-card:nth-child(1) img { object-position: center; }
.work-card:nth-child(2) img { object-position: center 38%; }
.work-card:nth-child(3) img { object-position: center; }
.work-card:nth-child(5) img { object-position: center 23%; }
.work-card:nth-child(6) img { object-position: 35% center; }
.work-card:hover img { transform: scale(1.045); }
.card-overlay { background: linear-gradient(180deg, rgba(0,0,0,.38), transparent 30%, transparent 43%, rgba(0,0,0,.62)); }
.card-top { position: absolute; inset: 1.55rem 1.7rem auto; display: flex; justify-content: space-between; align-items: start; gap: 1rem; font-size: .72rem; font-weight: 700; letter-spacing: .15em; }
.card-arrow { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; margin-top: -.45rem; border: 1px solid rgba(255,255,255,.8); border-radius: 50%; font-size: 1.2rem; font-weight: 400; letter-spacing: 0; transition: background .2s, color .2s; }
.work-card:hover .card-arrow { background: #fff; color: var(--ink); }
.card-title { position: absolute; right: 2rem; bottom: 1.8rem; left: 2rem; font-family: var(--serif); font-size: clamp(2.5rem, 4.3vw, 5rem); line-height: .96; letter-spacing: -.045em; }

.more-section { background: var(--ink); color: var(--paper); }
.section-heading-dark .section-index { color: #c0c2bb; }
.section-heading-dark > p { color: #b9bcb3; }
.more-list { border-top: 1px solid rgba(255,255,255,.25); }
.more-list a { display: grid; grid-template-columns: 5.7rem 1fr auto; align-items: center; gap: 1rem; min-height: 7.8rem; border-bottom: 1px solid rgba(255,255,255,.25); transition: color .2s, padding .2s; }
.more-list a:hover { color: var(--gold); padding-left: 1rem; }
.more-no { align-self: center; color: #a8aba3; font-size: .75rem; font-weight: 700; letter-spacing: .12em; }
.more-list a > span:nth-child(2) { font-family: var(--serif); font-size: clamp(2.2rem, 4.4vw, 5rem); letter-spacing: -.045em; line-height: 1; }
.more-arrow { font-size: clamp(1.5rem, 2vw, 2.5rem); font-weight: 300; }

.about-section { background: var(--paper); }
.about-layout { display: grid; grid-template-columns: 1fr minmax(370px, .65fr); gap: 6rem; margin-top: clamp(2.5rem, 5vw, 5rem); }
.about-section h2 { max-width: 750px; }
.about-copy { max-width: 650px; padding-top: .6rem; }
.about-copy p + p { margin-top: 1.5rem; }
.location-note { display: grid; gap: .5rem; margin: 3.4rem 0 3rem; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); padding-block: 1.5rem; }
.location-note span { color: var(--muted); font-size: .7rem; font-weight: 700; letter-spacing: .16em; }
.location-note strong { margin-block: .3rem; font-family: var(--serif); font-size: 2.1rem; font-weight: 400; letter-spacing: -.04em; }

.contact-section { background: #c6ad80; }
.contact-section .section-index, .contact-section .index-number { color: #3a342a; }
.contact-section h2 { margin-top: 2rem; font-size: clamp(4.5rem, 10.7vw, 11rem); line-height: .9; }
.contact-bottom { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-top: clamp(4rem, 7vw, 7rem); border-top: 1px solid rgba(32,35,31,.44); padding-top: 1.5rem; }
.contact-bottom p { max-width: 27rem; margin: 0; font-size: clamp(1rem, 1.35vw, 1.25rem); line-height: 1.6; }
.contact-button { display: flex; align-items: center; justify-content: space-between; gap: 4rem; min-width: 16rem; border: 1px solid var(--ink); border-radius: 100px; padding: 1.1rem 1.5rem; font-size: .78rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; transition: background .2s, color .2s; }
.contact-button span { font-size: 1.3rem; font-weight: 400; }
.contact-button:hover { background: var(--ink); color: var(--paper); }

.site-footer { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 2rem; align-items: start; min-height: 280px; padding-block: 4rem 3rem; background: var(--ink); color: var(--paper); }
.footer-wordmark { font-size: clamp(1rem, 1.4vw, 1.5rem); font-weight: 700; letter-spacing: .11em; }
.site-footer p { margin: 0; color: #afb2a9; font-size: .9rem; line-height: 1.7; }
.footer-links { display: grid; gap: .7rem; justify-items: end; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.footer-links a:hover { color: var(--gold); }

@media (max-width: 980px) {
  .site-header { height: 86px; }
  .menu-toggle { display: flex; position: relative; z-index: 22; flex-direction: column; justify-content: center; gap: 7px; width: 44px; height: 44px; border: 0; background: transparent; color: white; cursor: pointer; }
  .menu-toggle span { display: block; width: 26px; height: 1px; background: currentColor; transition: transform .2s; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .site-nav { position: absolute; z-index: 21; top: 0; right: 0; left: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 102px var(--gutter) 2rem; background: var(--ink); box-shadow: 0 22px 35px rgba(0,0,0,.18); }
  .site-nav.is-open { display: flex; }
  .site-nav > a { border-top: 1px solid rgba(255,255,255,.2); padding: 1.25rem 0; font-size: .85rem; }
  .site-nav .nav-contact { justify-content: space-between; margin-top: 1.5rem; padding: 1rem 1.2rem; }
  .hero-side-note { display: none; }
  .intro { grid-template-columns: 1fr; grid-template-areas: "index" "main" "image"; gap: 2rem; }
  .intro-image { max-width: 560px; }
  .about-layout { gap: 3rem; }
}

@media (max-width: 700px) {
  .section-pad { padding-block: 5rem; }
  .hero { min-height: 740px; min-height: 100svh; }
  .hero-image { object-position: 58% center; }
  .hero-shade { background: linear-gradient(180deg, rgba(15,18,16,.61), rgba(15,18,16,.1) 36%, rgba(10,13,10,.82)); }
  .hero-content { padding-bottom: 3rem; }
  .hero h1 { margin: 1.5rem 0 2rem; font-size: clamp(4.3rem, 17vw, 7.5rem); }
  .hero-eyebrow { font-size: .66rem; }
  .hero-bottom { align-items: end; gap: 1rem; }
  .hero-bottom p { max-width: 17rem; font-size: .95rem; }
  .round-link { width: 3rem; height: 3rem; }
  .intro h2, .section-heading h2, .about-section h2 { font-size: clamp(3.5rem, 12vw, 5.6rem); }
  .intro-bottom, .section-heading, .contact-bottom { flex-direction: column; align-items: start; gap: 2rem; }
  .intro-bottom { margin-top: 2.5rem; }
  .section-heading { margin-bottom: 2.5rem; }
  .work-grid { display: flex; flex-direction: column; }
  .work-card, .work-card-tall { min-height: 430px; }
  .work-card:nth-child(2), .work-card:nth-child(5) { min-height: 520px; }
  .card-title { font-size: clamp(2.9rem, 10vw, 4.7rem); }
  .more-list a { grid-template-columns: 2rem 1fr auto; min-height: 6.5rem; }
  .more-list a > span:nth-child(2) { font-size: clamp(1.9rem, 7vw, 3.6rem); }
  .about-layout { display: block; margin-top: 2rem; }
  .about-copy { margin-top: 2.5rem; }
  .contact-section h2 { font-size: clamp(4.6rem, 15vw, 8rem); }
  .contact-bottom { margin-top: 3rem; }
  .site-footer { grid-template-columns: 1fr; min-height: auto; gap: 1.5rem; }
  .footer-links { justify-items: start; margin-top: 1rem; }
}

@media (max-width: 430px) {
  .hero h1 { font-size: 16vw; }
  .work-card, .work-card-tall, .work-card:nth-child(2), .work-card:nth-child(5) { min-height: 380px; }
  .work-card:nth-child(2), .work-card:nth-child(5) { min-height: 470px; }
  .card-top { inset: 1rem 1rem auto; font-size: .65rem; }
  .card-title { left: 1rem; right: 1rem; bottom: 1rem; }
  .contact-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Portfolio galleries */
.motion-section { background: #202824; color: var(--paper); }
.motion-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: clamp(.75rem, 1.45vw, 1.5rem); }
.motion-card { position: relative; display: block; min-width: 0; height: clamp(310px, 30vw, 470px); overflow: hidden; border: 0; padding: 0; background: #4b5145; color: #fff; cursor: pointer; text-align: left; }
.motion-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.motion-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 42%, rgba(0,0,0,.62)); pointer-events: none; }
.motion-card:hover img { transform: scale(1.04); }
.motion-play { position: absolute; z-index: 1; top: 50%; left: 50%; display: grid; place-items: center; width: 4.3rem; height: 4.3rem; transform: translate(-50%, -50%); border: 1px solid rgba(255,255,255,.9); border-radius: 50%; background: rgba(255,255,255,.14); font-size: 1rem; text-indent: .15rem; backdrop-filter: blur(4px); transition: background .2s, color .2s; }
.motion-card:hover .motion-play { background: #fff; color: var(--ink); }
.motion-caption { position: absolute; z-index: 1; right: 1.4rem; bottom: 1.35rem; left: 1.4rem; display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.motion-caption small { font-size: .7rem; font-weight: 700; letter-spacing: .16em; }
.motion-caption strong { font-family: var(--serif); font-size: clamp(1.7rem, 2.3vw, 2.5rem); font-weight: 400; letter-spacing: -.04em; }
.section-tail { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.5rem 2rem; margin-top: 2.4rem; border-top: 1px solid rgba(255,255,255,.3); padding-top: 1.4rem; }
.section-tail > span { color: #b9bcb3; font-size: .76rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
button.text-link { border: 0; border-bottom: 1px solid currentColor; border-radius: 0; padding: 0 0 .55rem; background: transparent; color: inherit; cursor: pointer; }
.text-link-light { color: var(--paper); }

.work-item { grid-column: span 5; min-width: 0; }
.work-item:nth-child(4n + 1), .work-item:nth-child(4n + 4) { grid-column: span 7; }
.work-item .work-card { width: 100%; min-height: clamp(380px, 39vw, 550px); border: 0; padding: 0; cursor: pointer; text-align: left; }
.work-item:nth-child(2) .work-card img, .work-item:nth-child(5) .work-card img { object-position: center 30%; }
.work-item:nth-child(6) .work-card img { object-position: 34% center; }
.work-source { display: block; width: fit-content; margin: .75rem 0 0 auto; border-bottom: 1px solid currentColor; padding-bottom: .3rem; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.work-source:hover { color: #7c623e; }

.design-section { background: var(--paper); }
.design-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: clamp(.75rem, 1.45vw, 1.5rem); }
.design-card { position: relative; display: block; min-width: 0; height: clamp(300px, 30vw, 470px); overflow: hidden; border: 0; padding: 0; background: #d8d5ce; color: var(--ink); cursor: pointer; text-align: left; }
.design-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.design-card:hover img { transform: scale(1.04); }
.design-card > span { position: absolute; right: 1rem; bottom: 1rem; left: 1rem; display: flex; justify-content: space-between; gap: 1rem; padding: .7rem .85rem; background: rgba(243,240,233,.94); font-size: .72rem; font-weight: 700; letter-spacing: .15em; }
.design-card b { font-size: 1rem; font-weight: 400; }
.section-tail-light { border-color: var(--hairline); }
.section-tail-light > span { color: var(--muted); }

body.gallery-open { overflow: hidden; }
.work-item[hidden], .motion-card[hidden], .design-card[hidden], section[hidden], .site-nav a[hidden] { display: none !important; }
.content-unavailable { position: relative; z-index: 30; padding: 1rem 5vw; background: #f5e7c8; color: #20231f; font-size: .95rem; }
.gallery-dialog { width: 100vw; max-width: none; height: 100svh; max-height: none; margin: 0; border: 0; padding: 0; background: #f6f5f1; color: var(--ink); }
.gallery-dialog::backdrop { background: rgba(8,11,9,.9); }
.gallery-shell { display: grid; grid-template-columns: clamp(230px, 22vw, 315px) minmax(0, 1fr); width: 100%; height: 100%; }
.gallery-sidebar { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--hairline); padding: clamp(1.2rem, 3vw, 3rem); background: #faf9f6; }
.gallery-sidebar-top { display: flex; align-items: start; justify-content: space-between; gap: .7rem; }
.gallery-brand { font-size: .91rem; font-weight: 800; line-height: 1.06; letter-spacing: .11em; }
.gallery-brand span { color: #b7965d; }
.gallery-close { display: grid; place-items: center; flex: 0 0 auto; width: 2.4rem; height: 2.4rem; border: 1px solid var(--hairline); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; font-size: 1.7rem; line-height: 1; }
.gallery-close:hover, .gallery-step:hover:not(:disabled) { background: var(--ink); color: white; }
.gallery-current { margin: clamp(2rem, 5vw, 5rem) 0 1.5rem; }
.gallery-kicker { color: #a88a55; font-size: .67rem; font-weight: 800; letter-spacing: .17em; }
.gallery-current #gallery-title { margin: .8rem 0 .7rem; font-size: clamp(1.5rem, 2vw, 2rem); line-height: .98; }
.gallery-current p { margin: 0; color: var(--muted); font-size: .81rem; line-height: 1.6; }
.gallery-collections { display: grid; align-content: start; gap: .1rem; min-height: 0; overflow-y: auto; padding: 1rem 0; border-top: 1px solid var(--hairline); scrollbar-width: thin; }
.gallery-collections a { width: 100%; border: 0; padding: .64rem .1rem; background: transparent; color: #555a52; cursor: pointer; text-align: left; font-size: .85rem; }
.gallery-collections a:hover, .gallery-collections a.is-current { color: #a77e42; }
.gallery-collections a.is-current { font-weight: 700; }
.gallery-sidebar-bottom { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: auto; padding-top: 1.2rem; border-top: 1px solid var(--hairline); }
.gallery-sidebar-bottom > span { font-size: .76rem; font-weight: 800; letter-spacing: .14em; white-space: nowrap; }
.gallery-controls { display: flex; gap: .5rem; }
.gallery-step { display: grid; place-items: center; width: 2.7rem; height: 2.7rem; border: 1px solid var(--hairline); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; font-size: 1.15rem; }
.gallery-step:disabled { opacity: .28; cursor: default; }
.gallery-stage { min-width: 0; min-height: 0; background: #eae9e4; }
.gallery-rail { display: flex; align-items: stretch; gap: clamp(1rem, 2vw, 2rem); width: 100%; height: 100%; overflow-x: auto; overflow-y: hidden; padding: clamp(1.2rem, 3vw, 3rem); scroll-padding-left: clamp(1.2rem, 3vw, 3rem); scroll-snap-type: x mandatory; overscroll-behavior-inline: contain; scrollbar-color: #b4ad9d transparent; }
.gallery-slide { display: grid; grid-template-rows: minmax(0, 1fr) auto; flex: 0 0 min(80%, 1100px); min-width: 0; height: 100%; margin: 0; scroll-snap-align: start; }
@media (min-width: 701px) { .gallery-rail[data-gallery-kind="video"] > .gallery-slide { flex-basis: 100%; } }
.gallery-slide-media { display: grid; place-items: center; min-width: 0; min-height: 0; overflow: hidden; }
.gallery-slide-media > img { display: block; width: 100%; height: 100%; object-fit: contain; box-shadow: 0 12px 40px rgba(18,25,17,.1); }
.gallery-slide-media iframe { width: 100%; max-width: 1100px; aspect-ratio: 16 / 9; max-height: 100%; border: 0; background: #000; }
.gallery-slide figcaption { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1.2rem; min-height: 2.4rem; padding-top: .65rem; color: #4d514a; font-size: .77rem; }
.gallery-slide figcaption span:first-child { color: #9a793f; font-weight: 800; letter-spacing: .12em; }
.gallery-slide figcaption a { margin-left: auto; border-bottom: 1px solid currentColor; padding-bottom: .2rem; font-weight: 700; }
.gallery-video-poster { position: relative; display: grid; place-items: center; width: 100%; max-width: 1100px; aspect-ratio: 16 / 9; max-height: 100%; border: 0; padding: 0; overflow: hidden; background: #222; cursor: pointer; }
.gallery-video-poster img { width: 100%; height: 100%; object-fit: cover; }
.gallery-play-icon { position: absolute; display: grid; place-items: center; width: 4.5rem; height: 4.5rem; border: 1px solid white; border-radius: 50%; background: rgba(16,20,17,.65); color: white; font-size: 1.4rem; }
.gallery-video-poster:hover .gallery-play-icon { background: #fff; color: var(--ink); }
.gallery-film-player { position: relative; width: 100%; max-width: 1100px; aspect-ratio: 16 / 9; max-height: 100%; background: #000; }
.gallery-film-player > iframe, .gallery-film-player > .gallery-video-poster { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; }
.gallery-film-player > .gallery-video-poster { z-index: 1; }
.gallery-film-player > .gallery-video-poster[hidden], .gallery-sound-button[hidden] { display: none; }
.gallery-sound-button { position: absolute; z-index: 2; top: .75rem; left: .75rem; min-height: 44px; border: 1px solid #fff; border-radius: 2rem; padding: .5rem 1rem; background: #202824; color: #fff; cursor: pointer; font: inherit; font-size: .8rem; }

@media (max-width: 980px) {
  .motion-grid, .design-grid { grid-template-columns: 1fr 1fr; }
  .motion-card-feature, .design-card-feature { grid-column: span 2; }
  .motion-card, .design-card { height: 330px; }
  .motion-card-feature, .design-card-feature { height: 440px; }
}

@media (max-width: 700px) {
  .motion-grid, .design-grid { display: grid; grid-template-columns: 1fr; }
  .motion-card-feature, .design-card-feature { grid-column: auto; }
  .motion-card, .design-card, .motion-card-feature, .design-card-feature { height: 280px; }
  .motion-card-feature, .design-card-feature { height: 360px; }
  .work-grid { display: flex; flex-direction: column; }
  .work-item .work-card { min-height: 400px; }
  .work-item:nth-child(2) .work-card, .work-item:nth-child(5) .work-card { min-height: 470px; }
  .section-tail { align-items: start; flex-direction: column; }
  .gallery-shell { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .gallery-sidebar { gap: .65rem; padding: .9rem 1rem; }
  .gallery-current { margin: 0; }
  .gallery-current #gallery-title { margin: .25rem 0; font-size: 1.3rem; }
  .gallery-current p { display: none; }
  .gallery-collections { display: flex; gap: 1.15rem; overflow-x: auto; overflow-y: hidden; white-space: nowrap; padding: .4rem 0; }
  .gallery-collections a { width: auto; flex: 0 0 auto; padding: .25rem 0; font-size: .75rem; }
  .gallery-sidebar-bottom { padding-top: .5rem; }
  .gallery-step { width: 2.25rem; height: 2.25rem; }
  .gallery-rail { gap: .7rem; padding: 1rem .75rem; scroll-padding-left: .75rem; }
  .gallery-slide { flex-basis: 90%; }
  .gallery-slide figcaption { font-size: .7rem; }
}

@media (max-width: 430px) {
  .motion-card, .design-card { height: 240px; }
  .motion-card-feature, .design-card-feature { height: 320px; }
  .work-item .work-card { min-height: 340px; }
  .work-item:nth-child(2) .work-card, .work-item:nth-child(5) .work-card { min-height: 400px; }
}
.ui-icon { display: inline-block; flex: 0 0 auto; width: 1.25rem; height: 1.25rem; vertical-align: middle; }
.play-icon { width: 1.45rem; height: 1.45rem; }
.motion-play { text-indent: 0; }
.card-arrow .ui-icon { width: 1.2rem; height: 1.2rem; }
.gallery-play-icon .ui-icon { width: 1.8rem; height: 1.8rem; }
.gallery-video-poster, .motion-card, .work-card, .design-card { -webkit-appearance: none; appearance: none; }
@media (max-width: 700px) {
  .gallery-dialog { height: 100dvh; }
  .gallery-shell { grid-template-columns: minmax(0, 1fr); }
  .gallery-collections { min-width: 0; max-width: 100%; }
  .gallery-sidebar { min-width: 0; border-right: 0; border-bottom: 1px solid var(--hairline); padding-top: max(.7rem, env(safe-area-inset-top)); }
  .gallery-brand { font-size: .75rem; }
  .gallery-current #gallery-title { font-size: 1.2rem; }
  .gallery-sidebar-bottom { padding-top: .35rem; }
  .gallery-controls { display: none; }
  .gallery-stage { overflow: hidden; }
  .gallery-rail { display: block; overflow-x: hidden; overflow-y: auto; padding: 0 0 env(safe-area-inset-bottom); scroll-padding: 0; scroll-snap-type: none; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  .gallery-slide { display: block; width: 100%; height: auto; margin: 0 0 1.25rem; scroll-snap-align: none; }
  .gallery-slide-media { display: block; width: 100%; height: auto; overflow: visible; }
  .gallery-slide-media > img { display: block; width: 100%; height: auto; max-height: none; object-fit: contain; box-shadow: none; }
  .gallery-video-poster, .gallery-slide-media iframe { width: 100%; max-width: none; max-height: none; aspect-ratio: 16 / 9; }
  .gallery-slide figcaption { min-height: 2.5rem; margin: 0; padding: .65rem 1rem; }
}

.gallery-page { position: fixed; inset: 0; overflow: hidden; }
.gallery-details { margin-top: .75rem; font-size: .72rem; line-height: 1.5; }
.gallery-details summary { color: #8c6a35; cursor: pointer; }
.gallery-details dl { margin: .6rem 0; }
.gallery-details dt { margin-top: .5rem; font-weight: 700; }
.gallery-details dd { margin: .15rem 0 0; color: var(--muted); }
.gallery-details a { display: inline-block; border-bottom: 1px solid currentColor; }
.gallery-collections a { display: block; }
@media (max-width: 700px) {
  .gallery-details { margin-top: .2rem; font-size: .66rem; }
  .gallery-details[open] dl { max-height: 5rem; overflow: auto; }
  .gallery-details[open] { max-height: 8rem; overflow: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gallery-rail { scroll-behavior: auto; }
}
/* A retry control is shown only after automatic image recovery fails. */
.gallery-slide-media { position: relative; }
.gallery-image-retry { position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%); min-height: 44px; border: 1px solid var(--hairline); border-radius: 2rem; padding: .65rem 1.2rem; background: var(--paper, #f8f6f0); color: var(--ink); font: inherit; font-size: .8rem; cursor: pointer; }