@font-face {
  font-family: "DM Sans";
  src: url(assets/dm-sans.woff2) format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url(assets/instrument-serif.woff2) format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url(assets/instrument-serif-italic.woff2) format("woff2");
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --canvas: #141412;
  --surface: #1b1b18;
  --deep: #10100e;
  --ink: #f3efe6;
  --muted: #beb9ad;
  --accent: #d3bf9a;
  --accent-hover: #edddbd;
  --on-accent: #1e1a13;
  --line: #3d3a33;
  --control: #8a806b;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  --ease: cubic-bezier(.2, .75, .25, 1);
  --side: clamp(20px, 5.4vw, 88px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 89px; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 400 1rem/1.65 var(--sans); }
h1, h2, h3, h4, p, figure { margin: 0; }
a { color: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
main:focus, section[tabindex="-1"]:focus { outline: none; }
::selection { color: var(--on-accent); background: var(--accent); }
.wrap { width: min(1320px, calc(100% - var(--side) * 2)); margin-inline: auto; }
.skip { position: fixed; top: 8px; left: 8px; z-index: 20; padding: 10px 15px; background: var(--accent); color: var(--on-accent); }
.skip:not(:focus) { clip-path: inset(50%); }

.arrow { display: inline-block; position: relative; flex: 0 0 13px; width: 13px; height: 13px; rotate: -45deg; transition: translate 220ms var(--ease); }
.arrow::before, .arrow::after { content: ""; position: absolute; }
.arrow::before { top: 6px; left: 1px; width: 11px; height: 1px; background: currentColor; }
.arrow::after { top: 3px; right: 2px; width: 7px; height: 7px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; rotate: 45deg; }
.arrow-down { rotate: 90deg; }
.arrow-up { rotate: -90deg; }
.arrow-left { rotate: 180deg; }

.site-header { position: sticky; top: 0; z-index: 5; border-bottom: 1px solid var(--line); background: var(--canvas); }
.masthead { min-height: 75px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.wordmark, .site-nav a, .header-contact { text-decoration: none; }
.wordmark { display: inline-flex; gap: 11px; align-items: center; justify-self: start; font-size: .91rem; font-weight: 700; line-height: 1.13; white-space: nowrap; }
.monogram { display: grid; place-items: center; position: relative; width: 41px; height: 41px; padding-right: 5px; border: 1px solid var(--control); border-radius: 2px; background: var(--surface); color: var(--ink); font: 1.66rem/1 var(--serif); }
.monogram span { position: absolute; right: 7px; bottom: 7px; color: var(--accent); }
.wordmark small { display: block; margin-top: 5px; color: var(--muted); font-size: .61rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: clamp(18px, 2.8vw, 42px); color: var(--muted); font-size: .91rem; }
.site-nav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; }
.site-nav a::after { content: ""; position: absolute; inset: auto 0 6px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 230ms var(--ease); }
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after { transform: scaleX(1); }
.header-contact { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; justify-self: end; padding: 6px 15px; border: 1px solid var(--control); border-radius: 2px; color: var(--accent); font-size: .88rem; font-weight: 700; transition: background 230ms var(--ease), color 230ms var(--ease); }
.header-contact:hover { background: var(--accent); color: var(--on-accent); }
.menu-toggle { display: none; }

.eyebrow { display: flex; align-items: center; gap: 11px; color: var(--accent); font-size: .69rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { content: ""; flex: 0 0 20px; height: 1px; background: currentColor; }
h1, h2, .project-info h3, .service h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.025em; }
h1, h2 { line-height: .96; }
h1 em, h2 em { color: var(--accent); }
.hero {
  padding-block: clamp(68px, 8.6vw, 135px) clamp(67px, 8.3vw, 130px);
  text-align: center;
  background: radial-gradient(ellipse at 50% 25%, #222019 0, transparent 68%);
}
.hero-copy { display: grid; justify-items: center; }
.hero .eyebrow { justify-content: center; }
.hero h1 { margin-top: 23px; font-size: clamp(4.5rem, 9.5vw, 9rem); }
.hero h1 span, .hero h1 em { display: block; text-wrap: balance; }
.hero h1 em { font-size: .9em; }
.hero .lead { max-width: 51ch; margin-top: 30px; color: var(--muted); font-size: clamp(1.02rem, 1.32vw, 1.17rem); line-height: 1.64; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 24px; margin-top: 29px; }
.button, .text-link { display: inline-flex; align-items: center; gap: 11px; min-height: 48px; font-size: .91rem; font-weight: 700; text-decoration: none; }
.button { justify-content: space-between; padding: 11px 17px; border: 1px solid transparent; border-radius: 2px; transition: background 230ms var(--ease), translate 230ms var(--ease); }
.button-primary { background: var(--accent); color: var(--on-accent); }
.button-primary:hover { background: var(--accent-hover); }
.button:active { translate: 0 1px; }
.text-link { text-decoration: underline; text-decoration-color: var(--control); text-underline-offset: 5px; }
.text-link:hover { text-decoration-color: currentColor; }
.button:hover .arrow, .header-contact:hover .arrow, .text-link:hover .arrow { translate: 2px -2px; }
.text-link:hover .arrow-down { translate: 0 3px; }
.back-link:hover .arrow-left { translate: -3px 0; }
.project-grid > article { display: flex; min-width: 0; }
.project-card { display: flex; flex: 1; flex-direction: column; min-width: 0; text-decoration: none; }
.round-arrow { display: grid; place-items: center; flex: 0 0 41px; width: 41px; height: 41px; border: 1px solid var(--control); border-radius: 50%; color: var(--accent); transition: color 230ms var(--ease), background 230ms var(--ease); }
.project-card:hover .round-arrow { background: var(--accent); color: var(--on-accent); }

.section { padding-block: clamp(55px, 7vw, 104px); scroll-margin-top: 2px; }
.section-heading { margin-bottom: clamp(25px, 3.7vw, 50px); }
.section h2 { font-size: clamp(3.35rem, 6.2vw, 6.2rem); }
.section .eyebrow + h2 { margin-top: 14px; }
.section-copy { max-width: 43ch; margin-top: 20px; color: var(--muted); text-wrap: pretty; }
.work { position: relative; border-block: 1px solid var(--line); background: var(--surface); }
.anchor-alias { position: absolute; inset-block-start: 0; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(17px, 2.6vw, 38px); }
.card-art { container-type: inline-size; position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 1.52; border: 1px solid #575446; border-radius: 3px; }
.card-art--umbral { background: radial-gradient(ellipse at 18% 0%, #b7ad88, transparent 75%), #686951; }
.mini-window { position: absolute; inset: 11% 18% auto 8%; overflow: hidden; border-radius: 3px; background: #eee7d7; color: #24281e; box-shadow: 0 11px 28px #15190f59; }
.mini-window > span { display: block; padding: 2.3cqw 3.4cqw; font: 4.7cqw/1 var(--serif); }
.mini-window img { width: 100%; height: 40cqw; object-fit: cover; }
.identity-tile { position: absolute; right: 7%; bottom: 9%; width: 33%; aspect-ratio: 1.35; display: grid; justify-items: center; place-content: center; border-radius: 3px; background: #d8ddbd; color: #323729; box-shadow: 0 10px 22px #15190f70; font: 4.8cqw/1.2 var(--serif); }
.arch { display: grid; align-items: end; justify-items: center; margin-bottom: 1.4cqw; }
.arch i { display: block; grid-area: 1 / 1; width: 7cqw; height: 7.5cqw; border: 1px solid currentColor; border-radius: 5cqw 5cqw 0 0; }
.arch i:nth-child(2) { width: 5cqw; height: 6.4cqw; }
.arch i:nth-child(3) { width: 3cqw; height: 5.3cqw; }
.card-art--english { display: grid; place-items: center; background: radial-gradient(ellipse at 25% 7%, #877b91, transparent 74%), #4e4656; }
.shop-thumbnail { width: 87%; height: auto; border: 1px solid #49424d; border-radius: 4px; background: #e8def5; box-shadow: 0 13px 30px #241d2c75; }
.mini-window, .identity-tile, .shop-thumbnail { transition: translate 440ms var(--ease); }
.project-info { display: flex; flex: 1; justify-content: space-between; align-items: start; gap: 14px; padding-block: 18px 22px; border-bottom: 1px solid var(--line); }
.project-info .round-arrow { align-self: center; }
.project-meta { color: var(--accent); font-size: .76rem; font-weight: 700; }
.project-info h3 { margin-top: 4px; font-size: clamp(2rem, 3.6vw, 3.65rem); line-height: 1.05; }
.project-info p:last-child { max-width: 44ch; margin-top: 7px; color: var(--muted); font-size: .94rem; text-wrap: pretty; }
@media (hover: hover) {
  .project-card:hover :is(.mini-window, .shop-thumbnail) { translate: 0 -4px; }
  .project-card:hover .identity-tile { translate: 2px 3px; }
}

.service-list { border-block: 1px solid var(--line); }
.service { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 18px clamp(24px, 7vw, 100px); padding-block: clamp(24px, 3.8vw, 50px); }
.service + .service { border-top: 1px solid var(--line); }
.service h3 { font-size: clamp(2.55rem, 4.4vw, 4.5rem); line-height: 1; }
.service h3 + p { max-width: 37ch; margin-top: 9px; color: var(--muted); }
.service ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: .95rem; }
.service li + li { margin-top: 7px; }
.service li::marker { color: var(--accent); }
.steps { list-style: none; padding: 0; margin: 14px 0 0; }
.steps li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; border-top: 1px solid var(--line); padding-block: 15px; }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li > span { padding-top: 3px; color: var(--accent); font-size: .72rem; font-weight: 700; letter-spacing: .1em; }
.steps h4, .case-points h3 { font-size: 1.08rem; line-height: 1.35; }
.steps p, .case-points p { margin-top: 5px; color: var(--muted); }
.about { background: var(--surface); border-block: 1px solid var(--line); }
.split-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 30px clamp(30px, 7vw, 112px); }
.about h2 { max-width: 15ch; }

.contact { background: radial-gradient(ellipse at 50% 20%, #28231b, transparent 75%), var(--deep); text-align: center; }
.contact-content { display: grid; justify-items: center; }
.contact h2 { text-wrap: balance; }
.contact .button { margin-top: 25px; }
.contact-note { margin-top: 14px; color: var(--muted); font-size: .84rem; }
.contact-note span { display: block; color: var(--ink); overflow-wrap: anywhere; }
.footer { background: var(--deep); color: var(--muted); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; min-height: 66px; border-top: 1px solid var(--line); font-size: .84rem; }
.footer a { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.footer a:hover { text-decoration: underline; }

.case-intro { padding-block: clamp(20px, 4vw, 54px) clamp(23px, 4vw, 54px); }
.back-link { color: var(--muted); }
.case-heading { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .6fr); align-items: end; gap: 18px clamp(25px, 7vw, 104px); margin-top: clamp(19px, 4vw, 54px); }
.case-heading h1 { margin-top: 16px; font-size: clamp(4.2rem, 8.5vw, 8.6rem); }
.case-heading--stacked h1 em { display: block; }
.case-heading p:not(.eyebrow) { max-width: 44ch; color: var(--muted); font-size: 1.08rem; }
.gallery-controls { display: flex; flex-wrap: wrap; gap: 4px 27px; margin-bottom: 17px; border-block: 1px solid var(--line); }
.gallery-controls button { min-height: 48px; padding: 8px 0; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-size: .9rem; font-weight: 600; transition: border-color 220ms var(--ease), color 220ms var(--ease); }
.gallery-controls button:hover { color: var(--ink); }
.gallery-controls button[aria-selected="true"] { border-bottom-color: var(--accent); color: var(--accent); }
.gallery-panel + .gallery-panel { margin-top: 22px; }
.project-gallery[data-tabs-ready] .gallery-panel { margin-top: 0; }
.case-web, .brand-board { position: relative; isolation: isolate; overflow: hidden; border-radius: 3px; }
.case-web, .brand-board { height: clamp(320px, 44vw, 565px); }
.case-web img { width: 100%; height: 100%; object-fit: cover; object-position: center 57%; }
.case-web::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #171c12d9, transparent 84%); }
.case-web figcaption { position: absolute; z-index: 1; inset: max(23px, 8%) auto auto 6%; color: #fff6e3; max-width: 64%; }
.case-web figcaption > span { display: block; font: 400 clamp(1.4rem, 3vw, 2.6rem)/1 var(--serif); }
.case-web figcaption > strong { display: block; margin-top: clamp(43px, 8vw, 107px); font: 400 clamp(3.4rem, 8.5vw, 8rem)/.87 var(--serif); }
.case-web figcaption em { display: block; }
.gallery-caption { margin-top: 9px; color: var(--muted); font-size: .83rem; }
.brand-board { container-type: inline-size; display: grid; grid-template-columns: 1.45fr 1fr; background: #383e2b; color: #ece5d1; }
.brand-logo { display: grid; place-content: center; justify-items: center; padding: 14px; font: 400 clamp(2.3rem, 9.2cqw, 8rem)/1 var(--serif); }
.brand-logo .arch { margin-bottom: 3cqw; }
.brand-logo .arch i { width: 11cqw; height: 12cqw; border-width: 2px; border-radius: 8cqw 8cqw 0 0; }
.brand-logo .arch i:nth-child(2) { width: 8cqw; height: 10.3cqw; }
.brand-logo .arch i:nth-child(3) { width: 5cqw; height: 8.6cqw; }
.swatches { display: grid; grid-template-rows: repeat(3, 1fr); }
.swatches span { display: grid; align-content: end; padding: 12px max(12px, 9%); font-size: .76rem; font-weight: 700; }
.swatches span:nth-child(1) { background: #676f47; color: #fffdf6; }
.swatches span:nth-child(2) { background: #eae4d3; color: #25291c; }
.swatches span:nth-child(3) { background: #aa674b; color: #171a13; }
.shop-showcase { display: grid; grid-template-columns: minmax(0, 3.8fr) minmax(0, 1fr); align-items: start; gap: clamp(14px, 2.6vw, 40px); }
.shop-shot img { width: 100%; height: auto; border: 1px solid var(--control); border-radius: 4px; background: #e8def5; }
.shop-shot figcaption { margin-top: 8px; color: var(--muted); font-size: .83rem; }
.case-points { border-top: 1px solid var(--line); }
.case-points > div { padding-block: 16px; border-bottom: 1px solid var(--line); }
.case-reel summary { min-height: 44px; padding-block: 10px; color: var(--accent); font-size: .91rem; font-weight: 700; cursor: pointer; }
.case-reel summary:hover { text-decoration: underline; text-underline-offset: 4px; }
.case-reel video { display: block; width: min(100%, 248px); height: auto; margin-block: 4px 10px; border: 1px solid var(--control); border-radius: 3px; }
.case-next { display: flex; justify-content: center; margin-bottom: clamp(35px, 5vw, 70px); }

@keyframes enter {
  from { opacity: 0; translate: 0 12px; }
  to { opacity: 1; translate: 0 0; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .hero-copy { animation: enter 620ms var(--ease) both; }
  .reveal-ready:not(:focus-within) { opacity: 0; translate: 0 12px; }
  [data-reveal] { transition: opacity 460ms var(--ease), translate 460ms var(--ease); }
  .gallery-panel[data-enter] { animation: enter 260ms var(--ease) both; }
}

@media (max-width: 750px) {
  html { scroll-padding-top: 80px; }
  .masthead { min-height: 65px; grid-template-columns: minmax(0, 1fr) auto; gap: 0 14px; }
  .masthead > .header-contact { display: none; }
  .site-nav { grid-row: 2; grid-column: 1 / -1; flex-wrap: wrap; gap: 0 18px; }
  .site-nav[data-collapsible] { padding-block: 7px; border-top: 1px solid var(--line); }
  .site-nav .header-contact { display: inline-flex; align-self: center; min-height: 36px; margin-block: 4px; padding: 3px 9px; }
  .site-nav .header-contact::after { display: none; }
  .menu-toggle:not([hidden]) { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 3px 0 3px 8px; justify-self: end; border: 0; background: none; color: var(--ink); font-size: .88rem; font-weight: 700; }
  .menu-toggle span { width: 16px; height: 10px; border-block: 1px solid currentColor; }
  .hero { padding-block: clamp(53px, 12vw, 78px) clamp(57px, 12vw, 80px); }
  .hero h1 { font-size: clamp(3.1rem, 12.5vw, 6.1rem); margin-top: 17px; }
  .hero .lead { max-width: 39ch; margin-top: 22px; }
  .hero-actions { margin-top: 21px; gap: 6px 17px; }
  .split-layout, .case-heading { grid-template-columns: minmax(0, 1fr); }
  .project-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .service { grid-template-columns: minmax(0, 1fr); }
  .case-heading h1 { font-size: clamp(3.9rem, 13vw, 6.3rem); }
  .case-web figcaption > strong { margin-top: 55px; }
  .shop-showcase { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .shop-shot--mobile { width: min(100%, 248px); justify-self: center; }
}

@media (max-width: 390px) {
  :root { --side: 17px; }
  .wordmark { gap: 8px; }
  .hero-actions .button { padding-inline: 10px; gap: 7px; }
  .hero-actions { column-gap: 13px; }
  .hero-actions a { font-size: .84rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0s !important; }
  .project-card:hover :is(.mini-window, .shop-thumbnail, .identity-tile) { translate: none; }
}
