@font-face {
  font-family: "Bricolage Grotesque";
  src: url("assets/fonts/bricolage-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: "Onest";
  src: url("assets/fonts/onest-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #fbf5e9;
  --white: #fffdf8;
  --ink: #202b38;
  --muted: #505d68;
  --terracotta: #c95f43;
  --terracotta-deep: #a84730;
  --terracotta-dark: #85351f;
  --blue: #b7deea;
  --blue-dark: #164f68;
  --butter: #f0d681;
  --rule: #c7c0b2;
  --display: "Bricolage Grotesque", "Arial Rounded MT Bold", sans-serif;
  --body: "Onest", Arial, sans-serif;
  --page-width: 1380px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.65;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
button, summary { font: inherit; }
:focus-visible { outline: 3px solid var(--blue-dark); outline-offset: 4px; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 20;
  padding: 10px 14px;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.demo-flag {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 5px 16px;
  color: var(--white);
  background: var(--ink);
  font-size: 10px;
  letter-spacing: .1em;
  text-align: center;
  text-transform: uppercase;
}
.demo-flag strong { color: #f4d97e; font-weight: 800; }
.demo-flag span { color: #f3eee3; letter-spacing: .025em; text-transform: none; }

.site-header, .page-shell, .site-footer {
  width: min(100% - 88px, var(--page-width));
  margin-inline: auto;
}
.site-header {
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-bottom: 1px solid var(--rule);
}
.wordmark { display: flex; min-width: max-content; align-items: center; gap: 10px; text-decoration: none; }
.wordmark-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50% 48% 43% 53%;
  color: var(--white);
  background: var(--terracotta);
  font-family: var(--display);
  font-size: 25px;
  font-weight: 700;
  transform: rotate(-7deg);
}
.wordmark-text { font-size: 15px; font-weight: 800; letter-spacing: -.035em; }
.wordmark-text small { display: block; color: var(--muted); font-size: 8px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; }
.desktop-nav { display: flex; align-items: center; gap: clamp(17px, 2.5vw, 36px); }
.desktop-nav a, .mobile-nav a { font-size: 11px; font-weight: 700; text-decoration: none; }
.desktop-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--terracotta); text-decoration-thickness: 2px; text-underline-offset: 7px; }
.nav-inquiry {
  min-height: 40px;
  padding: 8px 15px;
  border: 1px solid var(--ink);
  border-radius: 3px 16px 3px 16px;
  font-size: 10px !important;
  letter-spacing: .04em;
}
.mobile-menu { display: none; }

.page-shell { padding-bottom: 120px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { text-wrap: balance; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(350px, 1.05fr);
  gap: clamp(35px, 6vw, 90px);
  align-items: center;
  padding: 74px 0 70px;
}
.hero-copy { position: relative; z-index: 1; padding: 16px 0 26px 3%; }
.hero h1 {
  max-width: 8.2ch;
  margin-bottom: 22px;
  font-family: var(--display);
  font-size: clamp(66px, 8.3vw, 120px);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: .87;
}
.hero h1 span { color: var(--terracotta-dark); }
.hero-copy > p { max-width: 42ch; margin-bottom: 27px; color: var(--muted); font-size: 14px; }
.action-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  padding: 10px 18px;
  border-radius: 3px 18px 3px 18px;
  color: var(--white);
  background: var(--ink);
  font-size: 11px;
  font-weight: 750;
  text-decoration: none;
}
.action-link:hover { color: var(--white); background: var(--blue-dark); }
.hero-art { position: relative; padding: 0 0 32px 28px; }
.hero-art::before {
  position: absolute;
  inset: 28px 30px 0 0;
  z-index: -1;
  border-radius: 5px 100px 5px 5px;
  background: var(--blue);
  content: "";
}
.hero-art img {
  width: 100%;
  height: clamp(410px, 49vw, 650px);
  object-fit: cover;
  border-radius: 5px 80px 5px 5px;
}
.image-note { display: flex; justify-content: space-between; gap: 14px; padding-top: 10px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.image-note span:last-child { text-align: right; }
.float-note {
  position: absolute;
  right: -10px;
  bottom: 67px;
  display: grid;
  width: 116px;
  height: 116px;
  place-content: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--butter);
  font-size: 9px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  transform: rotate(7deg);
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(200px, .9fr) minmax(0, 1.1fr);
  align-items: end;
  gap: 35px;
  margin-bottom: 35px;
}
.section-intro h2, .page-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(43px, 5.4vw, 75px);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: .96;
}
.section-intro p { max-width: 41ch; margin: 0 0 3px auto; color: var(--muted); font-size: 13px; }
.selected-work { padding-top: 70px; border-top: 1px solid var(--rule); }
.project-grid {
  display: grid;
  grid-template-columns: 1.05fr .83fr 1.12fr;
  gap: 20px;
  align-items: start;
}
.project-tile { min-width: 0; }
.project-tile:nth-child(2) { margin-top: 70px; }
.project-tile:nth-child(3) { margin-top: 26px; }
.project-tile a { display: block; text-decoration: none; }
.project-tile img { width: 100%; height: clamp(245px, 28vw, 370px); object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.25,1); }
.project-tile a:hover img, .project-tile a:focus-visible img { transform: translateY(-5px) rotate(-.5deg); }
.project-tile:nth-child(1) img { border-radius: 60px 4px 4px 4px; }
.project-tile:nth-child(2) img { border-radius: 4px 55px 4px 4px; }
.project-tile:nth-child(3) img { border-radius: 4px 4px 60px 4px; }
.tile-caption { display: flex; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px solid var(--ink); }
.tile-caption h3 { margin: 0; font-family: var(--display); font-size: 23px; font-weight: 650; letter-spacing: -.035em; line-height: 1.1; }
.tile-caption p { margin: 3px 0 0; color: var(--muted); font-size: 9px; }
.tile-caption span { min-width: max-content; color: var(--terracotta-dark); font-size: 9px; font-weight: 750; text-align: right; text-transform: uppercase; }

.room-shift {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(350px, 1.08fr);
  gap: clamp(30px, 6vw, 82px);
  align-items: center;
  margin-top: 116px;
  padding: clamp(25px, 5.5vw, 72px);
  border-radius: 5px 72px 5px 5px;
  background: var(--blue);
}
.room-shift h2 { max-width: 8ch; margin-bottom: 16px; font-family: var(--display); font-size: clamp(42px, 5.6vw, 72px); font-weight: 700; letter-spacing: -.04em; line-height: .92; }
.room-shift-copy > p { max-width: 40ch; color: #24485a; font-size: 13px; }
.mode-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 23px; }
.mode-controls button {
  min-height: 42px;
  padding: 8px 15px;
  border: 1px solid var(--blue-dark);
  border-radius: 3px 14px 3px 14px;
  color: var(--blue-dark);
  background: transparent;
  cursor: pointer;
  font-size: 10px;
  font-weight: 750;
}
.mode-controls button[aria-pressed="true"] { color: var(--white); background: var(--blue-dark); }
.mode-copy { min-height: 52px; margin: 14px 0 0; color: #24485a; font-size: 11px; }
.room-board {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 4px 48px 4px 4px;
  background: var(--white);
  isolation: isolate;
}
.room-board::before, .room-board::after { position: absolute; z-index: -1; background: #e1daca; content: ""; }
.room-board::before { top: 0; bottom: 0; left: 60%; width: 2px; }
.room-board::after { top: 57%; right: 0; left: 60%; height: 2px; }
.room-label { position: absolute; color: var(--muted); font-size: 8px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.label-main { top: 16px; left: 18px; }
.label-side { right: 15px; bottom: 12px; }
.room-object {
  position: absolute;
  display: grid;
  place-items: center;
  padding: 6px;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-size: 9px;
  font-weight: 750;
  text-align: center;
  transform: translate(0, 0) scale(1, 1);
  transition: transform .45s cubic-bezier(.2,.7,.25,1), background-color .35s ease, border-radius .35s ease;
}
.object-rest { top: 24%; left: 12%; width: 35%; height: 27%; border-radius: 28px 5px 5px 5px; background: #ecc7ad; }
.object-make { top: 20%; left: 67%; width: 22%; height: 23%; border-radius: 3px 19px 3px 3px; background: var(--butter); }
.object-store { top: 68%; left: 16%; width: 34%; height: 17%; background: #d8c5a0; }
.object-welcome { top: 65%; left: 68%; width: 22%; height: 20%; border-radius: 50%; background: #eabda9; }
.room-board[data-mode="make"] .object-make { transform: translate(-41%, 63%) scale(1.73, 1.04); background: #f0d681; }
.room-board[data-mode="make"] .object-rest { transform: translate(-7%, -15%) scale(.86, .93); }
.room-board[data-mode="welcome"] .object-welcome { transform: translate(-50%, -165%) scale(1.91, 1.7); border-radius: 38px 5px 5px 5px; background: var(--terracotta-deep); color: white; }
.room-board[data-mode="welcome"] .object-make { transform: translate(-232%, -13%) scale(1.18, .83); }
.room-board[data-mode="welcome"] .object-rest { transform: translate(26%, 134%) scale(.89, .81); }
.room-board[data-mode="welcome"] .object-store { transform: translate(132%, -12%) scale(.59, 1); }

.page-heading {
  display: flex;
  min-height: 350px;
  flex-direction: column;
  justify-content: end;
  padding: 54px 3% 42px;
  border-bottom: 1px solid var(--rule);
}
.page-heading .page-title { max-width: 10ch; font-size: clamp(60px, 8.8vw, 116px); }
.page-heading > p { max-width: 50ch; margin: 19px 0 0; color: var(--muted); font-size: 14px; }
.service-modules { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; padding-top: 32px; }
.service-module { display: flex; min-height: 275px; flex-direction: column; justify-content: space-between; padding: 27px; }
.service-module:nth-child(1) { grid-row: span 2; min-height: 570px; color: var(--white); background: var(--terracotta-deep); }
.service-module:nth-child(2) { background: var(--blue); }
.service-module:nth-child(3) { background: var(--butter); }
.service-module h2 { max-width: 8ch; margin: auto 0 12px; font-family: var(--display); font-size: clamp(37px, 4.3vw, 59px); font-weight: 700; letter-spacing: -.04em; line-height: .94; }
.service-module:nth-child(2) h2, .service-module:nth-child(3) h2 { font-size: clamp(31px, 3vw, 43px); }
.service-module p { max-width: 47ch; margin-bottom: 0; color: inherit; font-size: 12px; }
.service-module:nth-child(1) p { color: #fff7f1; }
.service-footnote { margin: 24px 0 0; color: var(--muted); font-size: 10px; }
.service-close {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 30px;
  align-items: center;
  margin-top: 74px;
  padding: 34px;
  border: 1px solid var(--ink);
  border-radius: 4px 45px 4px 4px;
}
.service-close h2 { max-width: 8ch; margin: 0; font-family: var(--display); font-size: 43px; line-height: .96; }
.service-close p { max-width: 54ch; margin: 0; color: var(--muted); font-size: 12px; }
.service-close .action-link { margin-top: 18px; }

.project-detail-list { display: grid; gap: 26px; padding-top: 34px; }
.project-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  align-items: center;
  gap: clamp(25px, 5vw, 72px);
  padding: clamp(20px, 4vw, 52px);
  scroll-margin-top: 40px;
}
.project-detail:nth-child(1) { background: var(--blue); }
.project-detail:nth-child(2) { grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); background: #edcfb9; }
.project-detail:nth-child(2) .project-image { order: 2; }
.project-detail:nth-child(3) { background: var(--butter); }
.project-image img { width: 100%; height: clamp(310px, 38vw, 495px); object-fit: cover; }
.project-detail:nth-child(1) .project-image img { border-radius: 5px 68px 5px 5px; }
.project-detail:nth-child(2) .project-image img { border-radius: 55px 5px 5px 5px; }
.project-detail:nth-child(3) .project-image img { border-radius: 5px 5px 65px 5px; }
.project-copy h2 { max-width: 8ch; margin: 0 0 14px; font-family: var(--display); font-size: clamp(42px, 5.3vw, 72px); font-weight: 700; letter-spacing: -.04em; line-height: .9; }
.project-copy > p { max-width: 45ch; color: #354451; font-size: 12px; }
.project-type { display: block; margin-bottom: 14px; font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.project-caption { margin: 9px 0 0; color: var(--muted); font-size: 9px; }
.project-copy .action-link { margin-top: 7px; }

.contact-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(250px, .9fr);
  align-items: end;
  gap: 45px;
  margin-top: 75px;
  padding: clamp(28px, 6vw, 78px);
  border-radius: 5px 78px 5px 5px;
  color: var(--white);
  background: var(--terracotta-deep);
}
.contact-panel h2 { max-width: 8ch; margin-bottom: 18px; font-family: var(--display); font-size: clamp(54px, 7.8vw, 98px); font-weight: 700; letter-spacing: -.04em; line-height: .87; }
.contact-panel p { max-width: 44ch; margin: 0; color: #fff7f1; font-size: 13px; }
.contact-panel .action-link { justify-self: start; color: var(--ink); background: var(--butter); }
.contact-panel .action-link:hover { color: var(--white); background: var(--ink); }
.contact-explainer { margin-top: 14px !important; color: #fff0e8 !important; font-size: 10px !important; }
.contact-page-note { max-width: 68ch; margin: 27px 3% 0; color: var(--muted); font-size: 11px; }

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 27px;
  align-items: end;
  padding: 25px 0 34px;
  border-top: 1px solid var(--rule);
}
.footer-brand { font-size: 12px; font-weight: 800; letter-spacing: -.02em; }
.footer-note { max-width: 54ch; margin: 7px 0 0; color: var(--muted); font-size: 10px; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: end; gap: 12px 23px; }
.footer-nav a { font-size: 10px; font-weight: 700; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.footer-credit { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 9px; }

@media (max-width: 800px) {
  html { scroll-padding-top: 75px; }
  .site-header, .page-shell, .site-footer { width: min(100% - 40px, var(--page-width)); }
  .site-header { min-height: 72px; gap: 15px; }
  .desktop-nav { display: none; }
  .mobile-menu { position: relative; display: block; }
  .mobile-menu summary {
    display: flex;
    min-height: 42px;
    align-items: center;
    gap: 9px;
    padding: 7px 10px;
    border: 1px solid var(--ink);
    border-radius: 3px 14px 3px 14px;
    cursor: pointer;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .08em;
    list-style: none;
    text-transform: uppercase;
  }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .menu-mark { display: inline-flex; width: 15px; flex-direction: column; gap: 4px; }
  .menu-mark i { display: block; width: 15px; border-top: 1px solid currentColor; }
  .mobile-menu[open] .menu-mark i:first-child { transform: translateY(2.5px) rotate(45deg); }
  .mobile-menu[open] .menu-mark i:last-child { transform: translateY(-2.5px) rotate(-45deg); }
  .mobile-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 5;
    display: grid;
    width: min(270px, calc(100vw - 40px));
    padding: 10px 17px;
    border: 1px solid var(--ink);
    border-radius: 4px 20px 4px 4px;
    background: var(--paper);
    box-shadow: 0 10px 28px rgb(32 43 56 / .15);
  }
  .mobile-nav a { padding: 13px 0; border-bottom: 1px solid var(--rule); }
  .mobile-nav a:last-child { border: 0; }
  .mobile-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--terracotta); text-underline-offset: 4px; }
  .hero { grid-template-columns: 1fr; gap: 25px; padding: 49px 0 54px; }
  .hero-copy { padding: 0 2px; }
  .hero h1 { max-width: 8ch; font-size: clamp(68px, 16vw, 106px); }
  .hero-art { padding-left: 14px; }
  .hero-art::before { inset: 17px 16px 0 0; }
  .hero-art img { height: min(110vw, 570px); border-top-right-radius: 64px; }
  .float-note { right: -4px; bottom: 60px; width: 95px; height: 95px; font-size: 8px; }
  .section-intro { grid-template-columns: 1fr; gap: 12px; margin-bottom: 24px; }
  .section-intro p { margin: 0; }
  .selected-work { padding-top: 52px; }
  .project-grid { grid-template-columns: 1fr 1fr; gap: 26px 14px; }
  .project-tile:nth-child(2), .project-tile:nth-child(3) { margin-top: 0; }
  .project-tile:nth-child(3) { grid-column: 1 / -1; width: 82%; }
  .project-tile img { height: clamp(220px, 52vw, 330px); }
  .project-tile:nth-child(3) img { height: min(87vw, 420px); }
  .tile-caption { flex-direction: column; gap: 3px; }
  .tile-caption span { text-align: left; }
  .room-shift { grid-template-columns: 1fr; gap: 24px; margin-top: 78px; padding: 27px 20px; border-top-right-radius: 48px; }
  .room-shift h2 { font-size: clamp(46px, 12vw, 68px); }
  .room-board { min-height: 290px; }
  .page-shell { padding-bottom: 80px; }
  .page-heading { min-height: 285px; padding: 47px 2px 30px; }
  .page-heading .page-title { font-size: clamp(58px, 15vw, 91px); }
  .service-modules { grid-template-columns: 1fr 1fr; gap: 11px; padding-top: 21px; }
  .service-module { min-height: 250px; padding: 18px; }
  .service-module:nth-child(1) { grid-column: 1 / -1; grid-row: auto; min-height: 310px; }
  .service-module h2 { font-size: clamp(34px, 10vw, 58px); }
  .service-module:nth-child(2) h2, .service-module:nth-child(3) h2 { font-size: clamp(28px, 7.6vw, 42px); }
  .service-close { grid-template-columns: 1fr; gap: 15px; margin-top: 50px; padding: 25px; border-top-right-radius: 36px; }
  .service-close h2 { font-size: 39px; }
  .project-detail, .project-detail:nth-child(2) { grid-template-columns: 1fr; gap: 22px; padding: 22px; }
  .project-detail:nth-child(2) .project-image { order: 0; }
  .project-image img { height: min(98vw, 450px); }
  .project-copy h2 { font-size: clamp(47px, 12vw, 66px); }
  .contact-panel { grid-template-columns: 1fr; gap: 27px; margin-top: 52px; padding: 30px 24px; border-top-right-radius: 50px; }
  .contact-panel h2 { font-size: clamp(57px, 15vw, 82px); }
  .contact-page-note { margin: 22px 2px 0; }
  .site-footer { grid-template-columns: 1fr; gap: 20px; padding-block: 20px 28px; }
  .footer-nav { justify-content: start; }
}

@media (max-width: 390px) {
  .site-header, .page-shell, .site-footer { width: calc(100% - 32px); }
  .demo-flag { gap: 7px; font-size: 9px; }
  .demo-flag span { font-size: 9px; }
  .wordmark-text { font-size: 13px; }
  .hero h1 { font-size: 63px; }
  .image-note { flex-direction: column; gap: 3px; }
  .image-note span:last-child { text-align: left; }
  .room-board { min-height: 255px; }
  .room-object { font-size: 8px; }
}

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