:root {
  color-scheme: light;
  --paper: #f7f4ed;
  --ink: #252c3b;
  --muted: #565651;
  --line: #d3ccbe;
  --navy: #252c3b;
  --ivory: #faf6ea;
  --brass: #d9bd8f;
  --button-radius: 999px;
  --button-height: 48px;
  --button-weight: 550;
  font: 100%/1.55 system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
}

* { box-sizing: border-box; }
body, h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
img { display: block; width: 100%; height: auto; }
h1, h2, h3 { font-weight: 550; }
h1, h2 { letter-spacing: -.05em; }
h1 { font-size: clamp(3.5rem, 8vw, 7.5rem); line-height: .95; }
h2 { font-size: clamp(2.25rem, 4.8vw, 4.5rem); line-height: 1.04; }
h3 { font-size: clamp(1.45rem, 2.3vw, 2.3rem); line-height: 1.12; letter-spacing: -.025em; }

.shell { width: min(91%, 81rem); margin-inline: auto; }
.skip { position: absolute; z-index: 5; left: 1rem; top: 1rem; transform: translateY(-200%); padding: .5rem; background: var(--paper); }
.skip:focus { transform: none; }
.masthead, .hero { color: var(--ivory); background: var(--navy); }
.home-page { --hero-header-height: calc(5.25rem + env(safe-area-inset-top, 0px)); }
.home-page > .masthead {
  position: absolute;
  z-index: 2;
  inset: 0 0 auto;
  padding-top: env(safe-area-inset-top, 0px);
  background: linear-gradient(180deg, #10131cbf, #10131c12);
}
.masthead-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; padding-block: 1.1rem; }
.wordmark { display: inline-block; flex: 0 0 auto; }
.wordmark img { width: clamp(6rem, 11vw, 7rem); }
.site-footer .wordmark img { filter: brightness(0) opacity(.85); }
.header-actions { display: flex; flex: 0 0 auto; align-items: center; gap: .45rem; }
.header-icon {
  display: inline-grid;
  place-items: center;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
}
.header-icon::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid #ffffff70;
  border-radius: 50%;
}
.header-icon:hover::before { background: #ffffff14; }
.header-icon img { position: relative; width: 15px; }
.page-menu { display: none; position: relative; }
.page-menu summary { list-style: none; }
.page-menu summary::-webkit-details-marker { display: none; }
.burger-glyph, .burger-glyph::before, .burger-glyph::after {
  width: 13px;
  height: 1.5px;
  background: currentColor;
}
.burger-glyph { position: relative; }
.burger-glyph::before, .burger-glyph::after { content: ""; position: absolute; inset: 0; }
.burger-glyph::before { transform: translateY(-4px); }
.burger-glyph::after { transform: translateY(4px); }
.page-menu[open] .burger-glyph { background: transparent; }
.page-menu[open] .burger-glyph::before { transform: rotate(45deg); }
.page-menu[open] .burger-glyph::after { transform: rotate(-45deg); }
.page-menu-panel {
  position: absolute;
  z-index: 4;
  top: calc(100% + .35rem);
  right: 0;
  width: min(15rem, 86vw);
  padding: .35rem;
  border: 1px solid #ffffff36;
  border-radius: .9rem;
  background: var(--navy);
  box-shadow: 0 8px 26px #14192738;
}
.page-menu-panel a { display: flex; align-items: center; min-height: 44px; padding: .45rem .7rem; border-radius: .5rem; text-decoration: none; }
.page-menu-panel a:hover, .page-menu-panel a:focus-visible { background: #ffffff12; }
.section-nav-items { display: flex; flex-wrap: wrap; gap: .4rem clamp(.8rem, 2.6vw, 2.6rem); }
.tab-lens-faces { display: none; }
.section-nav a { text-decoration: none; }
.section-nav a:hover, .text-link:hover { text-decoration: underline; text-underline-offset: .25em; }
.section-nav svg { display: none; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; min-height: var(--button-height); padding: .65rem 1.05rem; border: 1px solid var(--navy); border-radius: var(--button-radius); color: var(--ivory); background: var(--navy); font: inherit; font-weight: var(--button-weight); text-decoration: none; cursor: pointer; }
.button:hover { background: #39435a; }
.hero .button { border-color: var(--ivory); color: var(--navy); background: var(--ivory); }
.hero .button:hover { background: var(--brass); border-color: var(--brass); }
.hero-action { margin-top: .55rem; }
.button-secondary { color: var(--ink); background: transparent; }
.button-secondary:hover { color: var(--ink); background: #e8dfd1; }
.button.outline { color: inherit; background: transparent; border-color: #ffffff70; }
.button.outline:hover { background: #ffffff14; }
.text-link { text-underline-offset: .3em; font-weight: 550; }
.label { font-size: .875rem; letter-spacing: .085em; text-transform: uppercase; }
.hero { position: relative; }
.hero-backdrop, .hero-backdrop::after { position: absolute; inset: 0; }
.hero-backdrop img { width: 100%; height: 100%; object-fit: cover; object-position: center 58%; }
.hero-backdrop::after {
  content: "";
  background: linear-gradient(90deg, #151922ed 0%, #171a24cf 32%, #171a245c 65%, #171a241a 100%);
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: calc(clamp(2.2rem, 5.2vw, 5rem) + var(--hero-header-height)) 0 clamp(1.6rem, 4vw, 2.75rem);
}
.hero-copy { display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; justify-items: start; gap: 1.5rem; }
.hero-ticker {
  width: min(100%, 35rem);
  color: var(--brass);
}
.ticker-window { overflow-x: auto; scrollbar-width: thin; }
.ticker-track { display: flex; width: max-content; }
.ticker-group {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex: 0 0 auto;
  margin: 0;
  padding: .28rem 1.2rem .28rem 0;
  list-style: none;
  white-space: nowrap;
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.ticker-group li { display: inline-flex; align-items: center; gap: 1.2rem; }
.ticker-group li::after { content: ""; width: .25rem; height: .25rem; border-radius: 50%; background: currentColor; }
.ticker-group[aria-hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .ticker-ready .ticker-window { overflow: hidden; mask-image: linear-gradient(90deg, #000 93%, transparent); }
  .ticker-ready .ticker-group[aria-hidden] { display: flex; }
  .ticker-ready .ticker-track { animation: ticker-scroll 21s linear infinite; }
  .ticker-window:hover .ticker-track, .ticker-window:focus .ticker-track { animation-play-state: paused; }
}
@keyframes ticker-scroll { to { transform: translateX(-50%); } }
.intro { max-width: 37ch; font-size: 1.125rem; color: var(--muted); }
.hero .intro { color: #ece5d7; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem 1.2rem; }

.section { padding-block: clamp(2.7rem, 7vw, 6rem); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1.4rem; margin-bottom: clamp(1.3rem, 3vw, 2.3rem); }
.projects { --category-offset: calc(3.2rem + env(safe-area-inset-top, 0px)); }
.projects .section-head { margin-bottom: .85rem; }
.work-categories {
  position: sticky;
  z-index: 1;
  top: env(safe-area-inset-top, 0px);
  padding-block: .25rem;
  background: #f7f4edf5;
}
@supports (backdrop-filter: blur(1px)) {
  .work-categories { background: #f7f4eddc; backdrop-filter: blur(16px); }
}
.work-category-links {
  display: flex;
  gap: .35rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: .2rem;
  scrollbar-width: none;
}
.work-category-links::-webkit-scrollbar { display: none; }
.work-category-links a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: .3rem;
  min-height: 34px;
  padding: .3rem .6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: #fffdfa;
  text-decoration: none;
  white-space: nowrap;
  font-size: .875rem;
}
.work-category-links a:focus-visible { outline-offset: -3px; }
.work-category-links a:hover { border-color: #676a70; }
.work-category-links a[aria-current="location"] { color: var(--ivory); background: var(--navy); border-color: var(--navy); }
.work-category-links svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.work-group { padding-top: 1.25rem; scroll-margin-top: var(--category-offset); }
.work-group + .work-group { margin-top: clamp(1.6rem, 5vw, 3.5rem); }
.work-group > h3 { margin-bottom: .9rem; }
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: clamp(.85rem, 2.5vw, 1.6rem); }
.project { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 1.1rem; background: #fffdfa; }
.project-media { position: relative; aspect-ratio: 4 / 3; background: #e4ded2; }
.project-media .work-gallery-track, .project-media img { height: 100%; }
.project-media img { object-fit: cover; }
.project img.white-crop { object-position: center 76%; }
.project-copy { display: flex; flex-direction: column; min-height: 9.25rem; gap: .35rem; padding: .85rem 1rem 1rem; }
.project-copy h4 { min-height: 2lh; margin: 0; font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 550; line-height: 1.2; letter-spacing: -.025em; }
.project-copy p { color: var(--muted); max-width: 53ch; line-height: 1.45; }
.project h4 a { text-decoration-thickness: 1px; text-underline-offset: .22em; }
.work-gallery { min-width: 0; }
.work-gallery-track {
  display: flex;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.work-gallery-track::-webkit-scrollbar { display: none; }
.work-gallery-track:focus-visible { outline: 2px solid currentColor; outline-offset: -3px; }
.work-gallery-track > figure { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; }
.work-gallery-controls { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: .35rem; padding: .2rem .65rem; }
.project .work-gallery-controls {
  position: absolute;
  inset-inline-start: 50%;
  bottom: .45rem;
  transform: translateX(-50%);
  flex-wrap: nowrap;
  padding: 0 .45rem;
  border: 1px solid #ffffff85;
  border-radius: 999px;
  background: #fffffff0;
  white-space: nowrap;
}
.project .work-gallery-dots { flex-wrap: nowrap; }
.work-gallery-dots { display: flex; justify-content: center; flex-wrap: wrap; }
.work-gallery-dots button {
  display: grid;
  place-items: center;
  width: 30px;
  min-height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}
.work-gallery-dots button::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #858992; }
.work-gallery-dots button[aria-current]::before { width: 8px; height: 8px; background: var(--navy); }
.work-gallery-dots button:focus-visible { outline: 2px solid currentColor; outline-offset: -2px; }
.work-gallery-count { font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.project-video-play, .project-video-close {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid #ffffffe0;
  border-radius: 50%;
  color: var(--ink);
  background: #fffffff0;
  cursor: pointer;
}
.project-video-play { position: absolute; top: .65rem; right: .65rem; box-shadow: 0 2px 9px #20252b47; }
.project-video-play[hidden] { display: none; }
.project-video-play svg { width: 22px; height: 22px; fill: currentColor; }
.project-video-link { position: absolute; right: .6rem; bottom: .6rem; padding: .35rem .65rem; border-radius: 999px; background: var(--paper); }
.project-video-dialog { width: min(91%, 30rem); max-height: 92dvh; padding: .85rem; border: 0; border-radius: 1.1rem; color: var(--ink); background: var(--paper); }
.project-video-dialog::backdrop { background: #10131ccb; }
.project-video-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .65rem; }
.project-video-dialog-header h2 { font-size: 1.15rem; line-height: 1.2; letter-spacing: -.02em; }
.project-video-close { flex: 0 0 42px; border-color: var(--line); font: inherit; font-size: 1.5rem; }
.project-video-dialog video { display: block; width: 100%; height: auto; max-height: min(68dvh, 37rem); border-radius: .75rem; background: var(--navy); }
@media (prefers-reduced-motion: no-preference) {
  .work-category-links, .work-gallery-track { scroll-behavior: smooth; }
}

.factory-section { padding-top: 0; }
.factory-story { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: stretch; background: var(--navy); color: var(--ivory); overflow: hidden; border-radius: 1.35rem; }
.factory-copy { display: grid; align-content: center; gap: 1rem; padding: clamp(1.3rem, 4vw, 3.5rem); }
.factory-copy .label { color: var(--brass); }
.factory-copy > p:last-child { max-width: 39ch; color: #ece5d7; }
.factory-story > img { height: 100%; min-height: 16rem; object-fit: cover; }
.contact { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: .85rem; padding-top: 0; }
.contact-panel, .contact-note { min-width: 0; padding: clamp(.85rem, 3vw, 1.75rem); border-radius: 1.25rem; background: #ebe8e1; }
.contact-panel > p { margin-block: .8rem 1rem; max-width: 43ch; color: var(--muted); }
.contact-actions { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: .5rem; max-width: 27rem; }
.contact-actions .button { min-width: 0; padding-inline: .5rem; font-size: clamp(.8rem, 3.6vw, 1rem); white-space: nowrap; }
.button-icon, .social-link img { display: block; flex: 0 0 auto; width: 20px; height: 20px; }
.contact-note { display: flex; align-items: center; justify-content: space-between; align-self: stretch; gap: .55rem; }
.contact-note h3 { margin-bottom: .35rem; font-size: 1.15rem; line-height: 1.2; }
.contact-note a:not(.button) { color: var(--muted); text-underline-offset: .2em; }
.social-link, .dialog-close { flex: 0 0 var(--button-height); width: var(--button-height); padding: 0; }
.site-footer {
  display: grid;
  gap: clamp(1.35rem, 3vw, 2.25rem);
  margin-bottom: 1.6rem;
  padding: clamp(1rem, 3.2vw, 2.6rem);
  border-radius: clamp(1rem, 2vw, 1.5rem);
  background: #efece4;
  font-size: .9rem;
  overflow-wrap: anywhere;
}

.footer-main, .footer-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 1.25rem clamp(1rem, 4vw, 4rem);
}

.site-footer a:not(.wordmark) { text-underline-offset: .22em; }
.site-footer a:hover { text-decoration: underline; }
.footer-contact { display: grid; justify-items: start; gap: .95rem; }
.footer-contact address { display: grid; gap: .16rem; font-style: normal; }
.footer-phone {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.2;
  font-weight: 550;
  text-decoration: none;
}
.footer-location { color: var(--muted); text-decoration-color: var(--line); }
.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: center;
  gap: .25rem 1rem;
}
.footer-nav a, .footer-docs a {
  display: flex;
  align-items: center;
  justify-self: start;
  min-height: 2rem;
  text-decoration: none;
}
.footer-meta { color: var(--muted); font-size: .8rem; }
.footer-company { display: grid; align-content: start; gap: .2rem; }
.footer-company > a { justify-self: start; text-decoration-color: var(--line); }
.footer-docs { display: flex; flex-wrap: wrap; align-content: start; gap: 0 1rem; }
.legal-page { max-width: 54rem; padding-block: clamp(2rem, 5vw, 4rem); }
.legal-page h1 { font-size: clamp(1.9rem, 5.7vw, 3.85rem); line-height: 1.06; overflow-wrap: anywhere; }
.legal-page h2 { margin-top: 1.45rem; font-size: clamp(1.2rem, 3vw, 1.7rem); letter-spacing: -.025em; }
.legal-page p { margin-top: .7rem; }
.legal-draft { padding: .8rem 1rem; border-radius: .75rem; background: #ede3d2; }
.public-sitemap { padding-left: 1.2rem; }
.public-sitemap li { margin-block: .35rem; }

.callback-dialog { width: min(91%, 30rem); max-height: 92dvh; padding: clamp(.85rem, 4vw, 1.65rem); border: 0; border-radius: 1.25rem; background: var(--paper); color: var(--ink); }
.callback-dialog::backdrop { background: #151a25ba; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: 1.05rem; }
.dialog-heading h2 { font-size: clamp(1.3rem, 5vw, 2rem); line-height: 1.08; }
.dialog-close { font-size: 1.35rem; }
.callback-form, .callback-result { display: grid; gap: .8rem; }
.callback-dialog [hidden] { display: none; }
.callback-form > label, .callback-result > label { display: grid; gap: .25rem; }
.callback-dialog input:not([type="checkbox"]), .callback-dialog textarea { width: 100%; min-height: 44px; padding: .5rem .75rem; border: 1px solid #918e86; border-radius: .65rem; background: #fffdfa; color: inherit; font: inherit; }
.callback-terms { display: grid; gap: .55rem; font-size: .875rem; }
.callback-terms label { display: grid; grid-template-columns: auto 1fr; gap: .5rem; align-items: start; }
.callback-terms input { width: 17px; height: 17px; margin: .15rem 0 0; accent-color: var(--navy); }
.callback-form > .button { width: 100%; }
.callback-status:empty { display: none; }

.brief { max-width: 64rem; padding-block: clamp(2.5rem, 7vw, 6rem); }
.brief h1, .case h1 { font-size: clamp(3rem, 6.8vw, 6rem); line-height: .98; }
.brief .intro { margin-top: 1.5rem; max-width: 58ch; }
.brief section { border-top: 1px solid var(--line); margin-top: 2rem; padding-top: 1.6rem; }
.brief h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
.brief ol, .brief ul { padding-left: 1.45rem; }
.brief li + li, .brief dt:not(:first-child) { margin-top: .75rem; }
.brief dt { font-weight: 650; }
.brief dd { margin: .2rem 0 0; color: var(--muted); }
.breadcrumbs { padding-top: 1rem; color: var(--muted); font-size: .9rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .35rem .65rem; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li { display: inline-flex; gap: .65rem; align-items: baseline; }
.breadcrumbs a { text-underline-offset: .2em; }
.case-intro { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(1.3rem, 5vw, 5rem); align-items: center; padding-block: clamp(1.4rem, 5vw, 3.5rem); }
.case-intro h1 { margin-top: .55rem; }
.case-intro p.intro { margin-block: 1rem 1.4rem; max-width: 45ch; }
.case-gallery .work-gallery-track { border-radius: 1.1rem; background: #eeebe4; }
.case-gallery img { height: min(58vw, 37rem); object-fit: contain; }
.case-gallery figcaption { padding: .55rem .7rem; text-align: center; color: var(--muted); }

@media (max-width: 56rem) {
  .masthead-inner { flex-wrap: wrap; }
  .top-action, .case-back { display: none; }
  .header-actions { gap: 0; }
  .page-menu { display: block; }
  .home-page {
    --hero-header-height: calc(4.95rem + env(safe-area-inset-top, 0px));
    --tab-bar-height: 3.75rem;
    --tab-bar-bottom: calc(.7rem + env(safe-area-inset-bottom, 0px));
  }
  body:has(.section-nav) { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px)); }
  :root:has(.section-nav) { scroll-padding-bottom: calc(5rem + env(safe-area-inset-bottom, 0px)); }
  .section-nav {
    --tab-pad: .6rem;
    --tab-block-pad: .25rem;
    --tab-gap: .12rem;
    --tab-width: calc((100% - 2 * var(--tab-pad) - 3 * var(--tab-gap)) / 4);
    --lens-center: calc(var(--tab-pad) + var(--tab-width) / 2 + var(--active-index, 0) * (var(--tab-width) + var(--tab-gap)));
    --lens-view: ellipse(calc(var(--tab-width) * .68) 58% at var(--lens-center) 50%);
    position: fixed;
    z-index: 3;
    inset-inline: 0;
    bottom: var(--tab-bar-bottom);
    width: min(calc(100% - 1.75rem), 24rem);
    margin-inline: auto;
    color: #242831;
    touch-action: pan-y;
  }
  .section-nav::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    border: 1px solid #ffffff94;
    border-radius: 999px;
    background: #ebedf0;
    box-shadow: inset 0 1px 0 #ffffffc7, 0 7px 24px #12151c38;
    pointer-events: none;
  }
  @supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
    .section-nav::after {
      background: linear-gradient(160deg, #ffffffba, #e8ebefb8);
      -webkit-backdrop-filter: blur(22px);
      backdrop-filter: blur(22px);
    }
  }
  .section-nav::before {
    content: "";
    position: absolute;
    inset-block: .45rem;
    inset-inline-start: var(--lens-center);
    width: calc(var(--tab-width) + .72rem);
    border-radius: 999px;
    background: #fdfdff80;
    box-shadow: inset 0 0 0 1px #ffffff8c, 0 1px 5px #24283119;
    pointer-events: none;
    opacity: 0;
    transform: translateX(-50%);
  }
  .section-nav:has([aria-current])::before, .section-nav:is(.tab-dragging, .tab-pressed)::before { opacity: 1; }
  .section-nav-items {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--tab-gap);
    padding: var(--tab-block-pad) var(--tab-pad);
  }
  .section-nav a, .tab-lens-faces .tab-face {
    display: grid;
    place-content: center;
    justify-items: center;
    gap: .1rem;
    min-height: calc(var(--tab-bar-height) - 2 * var(--tab-block-pad));
    padding: .2rem .18rem .65rem;
    border-radius: 999px;
    font-size: clamp(.65rem, 3.65vw, .8125rem);
    letter-spacing: -.015em;
    font-weight: 450;
    line-height: 1.18;
    white-space: nowrap;
    text-decoration: none;
  }
  .section-nav a:first-child, .tab-lens-faces .tab-face:first-child { font-size: clamp(.62rem, 3.45vw, .81rem); }
  .section-nav a:hover { text-decoration: none; }
  .section-nav a:not([aria-current]):hover { background: #ffffff33; }
  .section-nav a[aria-current="location"] { color: #171a20; font-weight: 500; }
  .section-nav a:focus-visible { outline-offset: -2px; }
  .section-nav svg {
    display: block;
    pointer-events: none;
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  @media (prefers-reduced-motion: no-preference) {
    :root:has(.section-nav) { scroll-behavior: smooth; }
    .section-nav::before { transition: inset-inline-start .36s cubic-bezier(.16, .79, .29, 1.22), transform .36s cubic-bezier(.16, .79, .29, 1.22), background-color .18s ease, box-shadow .22s ease; }
    .section-nav::after { transition: transform .24s cubic-bezier(.2, .75, .3, 1); }
    .section-nav:is(.tab-pressed, .tab-dragging, .tab-tapped)::before {
      transform: translateX(-50%) scale(1.24, 1.18);
      background: radial-gradient(ellipse at 30% 0%, #ffffffad, transparent 56%), linear-gradient(150deg, #ffffff82, #c2c7d245 62%, #ffffff82);
      box-shadow: inset 0 1px 1px #ffffffde, inset 0 0 0 1px #ffffff6b, inset 0 -3px 6px #454d612d, 0 5px 13px #171b263a;
    }
    .section-nav:is(.tab-pressed, .tab-dragging, .tab-tapped)::after { transform: scale(1.025, 1.075); }
    .section-nav.tab-dragging { user-select: none; }
    .section-nav.tab-dragging::before { transition: none; }
    .section-nav.tab-dragging > .section-nav-items {
      mask-image: radial-gradient(ellipse calc(var(--tab-width) * .68) 58% at var(--lens-center) 50%, transparent 98%, black 100%);
    }
    .section-nav.tab-dragging .tab-lens-faces {
      position: absolute;
      inset: 0;
      display: block;
      clip-path: var(--lens-view);
      pointer-events: none;
    }
    .tab-lens-faces .section-nav-items { transform-origin: var(--lens-center) 50%; transform: scale(1.095, 1.13); }
    .tab-lens-faces .tab-face { color: #171a20; }
  }
  .hero-backdrop img { object-position: 63% center; }
  .hero-backdrop::after {
    background: linear-gradient(180deg, #151922b5 0%, #151922db 20%, #151922cf 57%, #15192270 80%, #15192238 100%);
  }
  .hero-inner {
    align-items: stretch;
    padding-bottom: calc(var(--tab-bar-height) + var(--tab-bar-bottom) + .9rem);
  }
  .hero-copy { grid-template-rows: auto auto auto 1fr; align-content: stretch; }
  .hero-action { align-self: end; width: 100%; }
}
@media (max-width: 40rem) {
  .brief h1, .case h1 { font-size: clamp(2.25rem, 8vw, 3rem); line-height: 1.04; }
  .masthead-inner { row-gap: .65rem; }
  .masthead-inner { column-gap: 1rem; }
  .case-gallery img { height: clamp(14rem, 85vw, 27rem); }
  .factory-story, .contact, .case-intro { grid-template-columns: 1fr; }
  .factory-story > img { aspect-ratio: 4 / 3; min-height: 0; }
  .footer-main, .footer-meta { grid-template-columns: minmax(0, 1fr); gap: .85rem; }
}
@media (max-width: 24rem) {
  .section-nav {
    --tab-pad: .38rem;
    width: calc(100% - .8rem);
  }
  .section-nav a:first-child, .tab-lens-faces .tab-face:first-child { font-size: clamp(.6rem, 3.15vw, .75rem); }
}
@media (max-width: 40rem) and (max-height: 36rem) {
  .hero-inner { padding-top: calc(1.2rem + var(--hero-header-height)); }
  .hero-copy { gap: 1rem; }
  .hero h1 { font-size: clamp(2.85rem, 8vw, 3.5rem); }
  .hero .intro { font-size: 1rem; line-height: 1.4; }
}

.brief h2 + p, .brief dl + p { margin-top: 1rem; }
.wireframe { display: grid; gap: .45rem; margin-block: 1.4rem; padding: .65rem; border: 1px solid var(--line); }
.wireframe > div { padding: .7rem; border: 1px solid var(--line); }
.wireframe .wire-header { font-size: .9rem; }
.wireframe .wire-hero { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
.wire-hero strong, .wire-hero small { display: block; }
.wire-hero small { margin-top: .35rem; font-size: .875rem; }
.wire-hero .wire-placeholder { display: grid; place-items: center; padding: .65rem; }
.wire-placeholder { background: #e8e4da; }
.palette { display: flex; flex-wrap: wrap; gap: .6rem 1.3rem; margin-block: 1.1rem; }
.palette span { display: inline-flex; gap: .45rem; align-items: center; }
.swatch { width: 1.15rem; height: 1.15rem; border: 1px solid #6f6b61; border-radius: 50%; }
.swatch.navy { background: var(--navy); }
.swatch.ivory { background: var(--ivory); }
.swatch.brass { background: var(--brass); }

.blog-page {
  padding-block: 1.5rem clamp(3rem, 8vw, 7rem);
}

.blog-listing > .breadcrumbs { margin-bottom: 1.25rem; }

.blog-page-heading {
  display: grid;
  gap: .85rem;
  margin-block: 1.5rem clamp(1.5rem, 4vw, 3rem);
}

.blog-page-heading h1 {
  max-width: 20ch;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1.04;
  text-wrap: balance;
}

.blog-page-heading .intro { max-width: 54ch; color: var(--muted); }

.blog-preview-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .75rem 1rem;
  margin-bottom: clamp(1rem, 3vw, 2rem);
}

.blog-preview-heading .button { flex-shrink: 0; }

.blog-filters, .blog-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.blog-filters { margin-bottom: 1.5rem; }
.blog-filters[hidden], .blog-grid > [hidden] { display: none; }

.blog-grid, .blog-card-tags {
  list-style: none;
  padding: 0;
  margin: 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.85rem, 2.5vw, 1.6rem);
}

.blog-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  background: #fffdfa;
}

.blog-card-link {
  display: block;
  flex: 1;
  border-radius: inherit;
  text-decoration: none;
}

.blog-card-link:hover h2, .blog-card-link:hover h3 {
  text-decoration: underline;
  text-underline-offset: .15em;
}

.blog-card-image {
  aspect-ratio: 16 / 10;
  border-radius: 1.1rem 1.1rem 0 0;
  overflow: hidden;
  background: var(--line);
}

.blog-card-image img, .blog-article-image img {
  height: 100%;
  object-fit: cover;
  object-position: var(--blog-photo-position, center);
}

.blog-card-image--matte-or-gloss { --blog-photo-position: 55% 52%; }
.blog-card-image--small-kitchen-layout { --blog-photo-position: 50% 63%; }
.blog-card-image--light-kitchen { --blog-photo-position: 50% 55%; }

.blog-card-copy {
  display: grid;
  gap: .55rem;
  padding: .95rem clamp(.85rem, 2vw, 1.35rem) .6rem;
}

.blog-card-copy :is(h2, h3) {
  font-size: clamp(1.2rem, 2.2vw, 1.65rem);
  line-height: 1.2;
  letter-spacing: -.025em;
}

.blog-card-copy p, .blog-article-image figcaption { color: var(--muted); }
.blog-page time, .blog-preview time { color: var(--muted); font-size: .85rem; }

.blog-card > .blog-card-tags {
  padding: .25rem clamp(.85rem, 2vw, 1.35rem) 1rem;
}

.blog-filter, .blog-card-tags a {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--button-radius);
  background: #fffdfa;
  text-decoration: none;
  line-height: 1.25;
}

.blog-filter { min-height: 44px; padding: .45rem .85rem; }
.blog-card-tags a { min-height: 32px; padding: .3rem .6rem; font-size: .8rem; }
.blog-filter[aria-current], .blog-card-tags a:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--ivory);
}

.blog-filter:not([aria-current]):hover { border-color: var(--navy); }

.blog-filter-status:not(:empty) { margin-bottom: 1rem; color: var(--muted); }

.blog-article {
  display: grid;
  justify-items: start;
  gap: clamp(1.1rem, 3vw, 2rem);
  max-width: 54rem;
  margin-inline: auto;
}

.blog-article .blog-page-heading { margin-bottom: 0; }
.blog-article-image { width: 100%; }
.blog-article-image img { aspect-ratio: 16 / 10; height: auto; border-radius: 1.15rem; }
.blog-article-image figcaption { margin-top: .5rem; font-size: .9rem; }
.blog-prose { display: grid; gap: .65rem; max-width: 66ch; }
.blog-prose h2 { font-size: clamp(1.35rem, 3vw, 2rem); letter-spacing: -.025em; }
.blog-prose p + h2 { margin-top: .75rem; }

@media (max-width: 56rem) {
  .section-nav .desktop-blog-link { display: none; }
}

@media (max-width: 45rem) {
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 32rem) {
  .blog-grid { grid-template-columns: minmax(0, 1fr); }
}

.site-footer .footer-contact address { font-style: normal; }
.header-icon svg { width: 15px; height: 15px; }
.social-link svg { width: 20px; height: 20px; }
@media (prefers-reduced-motion: no-preference) {
  .hero-backdrop > img { animation: sergio-push-in 10s ease-in-out infinite alternate; }
}
@keyframes sergio-push-in { from { transform: scale(1); } to { transform: scale(1.075); } }
