@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@200;300;400&display=swap');

:root {
  --ink: #191918;
  --paper: #f3f1ec;
  --white: #fff;
  --stone: #d9d1c5;
  --muted: #65635d;
  --line: rgba(25, 25, 24, .18);
  --page: min(1440px, calc(100vw - 64px));
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
img { display: block; width: 100%; }
::selection { color: var(--paper); background: var(--ink); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }

.skip-link { position: fixed; left: 1rem; top: -4rem; z-index: 100; padding: .8rem 1rem; background: var(--paper); }
.skip-link:focus { top: 1rem; }
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  height: 76px;
  color: var(--ink);
  background: rgba(243, 241, 236, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.header-inner {
  width: var(--page);
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.wordmark { justify-self: start; display: inline-flex; align-items: center; }
.wordmark img { width: clamp(148px, 12vw, 188px); height: auto; }
.desktop-nav { display: flex; gap: clamp(1.1rem, 2vw, 2.4rem); }
.desktop-nav a, .lang, .menu-button {
  border: 0;
  background: none;
  font-size: .72rem;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.desktop-nav a { position: relative; padding: .55rem 0; }
.desktop-nav a::after { content: ""; position: absolute; inset: auto 0 .2rem; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.desktop-nav a:hover::after, .desktop-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.header-tools { justify-self: end; display: flex; gap: 1.2rem; align-items: center; }
.lang, .menu-button { cursor: pointer; padding: .55rem 0; }
.menu-button, .mobile-menu { display: none; }

.page-hero { width: var(--page); margin: 0 auto; padding: clamp(10rem, 17vw, 15rem) 0 clamp(5rem, 10vw, 9rem); }
.eyebrow { margin: 0 0 1.4rem; font-size: .7rem; font-weight: 400; letter-spacing: .22em; text-transform: uppercase; }
.page-hero h1 { max-width: 1100px; margin: 0; font-size: clamp(4rem, 9vw, 9.4rem); font-weight: 200; letter-spacing: -.06em; line-height: .86; }
.page-hero h1 strong { font-weight: 400; }
.page-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 8vw; align-items: end; margin-top: clamp(3.5rem, 7vw, 7rem); }
.page-intro p { max-width: 630px; margin: 0; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.3rem); line-height: 1.7; }
.text-link { display: inline-flex; align-items: center; gap: 1rem; padding-bottom: .4rem; border-bottom: 1px solid currentColor; font-size: .75rem; font-weight: 400; letter-spacing: .15em; text-transform: uppercase; transition: gap .3s var(--ease); }
.text-link:hover { gap: 1.35rem; }

.material-gallery { width: var(--page); margin: 0 auto; padding-bottom: clamp(7rem, 12vw, 12rem); display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(2.5rem, 5vw, 6rem) 2vw; }
.material-card { display: block; grid-column: span 4; }
.material-card:nth-child(2), .material-card:nth-child(5) { margin-top: clamp(3rem, 8vw, 9rem); }
.material-image { aspect-ratio: 4 / 5; overflow: hidden; background: #d6d0c6; }
.material-image img { height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.material-card:hover img { transform: scale(1.035); }
.material-meta { display: grid; grid-template-columns: auto 1fr; gap: 1.3rem; padding-top: 1rem; border-top: 1px solid var(--line); margin-top: 1rem; }
.material-no { font-size: .68rem; font-weight: 400; letter-spacing: .14em; }
.material-meta h2 { margin: 0; font-size: clamp(1.25rem, 2vw, 1.8rem); font-weight: 300; letter-spacing: -.025em; line-height: 1.1; }
.material-meta p { margin: .25rem 0 0; color: var(--muted); font-size: .86rem; line-height: 1.25; }

.materials-hero { padding-bottom: clamp(3rem, 6vw, 6rem); }
.materials-toolbar { width: var(--page); margin: 0 auto clamp(3rem, 5vw, 5rem); padding: 1.1rem 0; display: flex; justify-content: space-between; align-items: center; gap: 2rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.material-catalog { gap: clamp(3rem, 5vw, 5rem) 2vw; }
.material-catalog .material-card { grid-column: span 4; margin-top: 0; }
.material-catalog .material-card[hidden] { display: none; }
.material-catalog .material-image { aspect-ratio: 3 / 2; }
.material-catalog .material-image img { object-fit: cover; }

.material-sheet-head { width: var(--page); margin: 0 auto; padding: clamp(10rem, 16vw, 14rem) 0 clamp(4rem, 8vw, 8rem); }
.material-sheet-topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 2rem; }
.material-sheet-head h1 { max-width: 1200px; margin: 1.25rem 0 2rem; font-size: clamp(4rem, 10vw, 10rem); font-weight: 200; letter-spacing: -.065em; line-height: .86; }
.material-sheet-note { max-width: 660px; margin: 0 0 0 auto; color: var(--muted); font-size: clamp(1rem, 1.35vw, 1.25rem); line-height: 1.7; }
.material-views { width: var(--page); margin: 0 auto clamp(7rem, 12vw, 12rem); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(3rem, 6vw, 7rem) 2vw; align-items: start; }
.material-view { grid-column: span 6; margin: 0; }
.material-view--model { grid-column: span 12; }
.material-view-media { display: grid; place-items: center; aspect-ratio: 3 / 2; overflow: hidden; background: #ded9d0; }
.material-view-media img { width: 100%; height: 100%; }
.material-view--detail .material-view-media img { object-fit: cover; }
.material-view--slab .material-view-media img,
.material-view--model .material-view-media img { object-fit: contain; object-position: center center; padding: clamp(1rem, 2vw, 2.5rem); }
.material-view--model .material-view-media { aspect-ratio: 16 / 7; }
.material-view figcaption { display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; padding-top: 1.2rem; margin-top: 1rem; border-top: 1px solid var(--line); }
.material-view-no { padding-top: .25rem; font-size: .68rem; font-weight: 400; letter-spacing: .14em; }
.material-view h2 { margin: 0 0 .4rem; font-size: clamp(1.35rem, 2.4vw, 2.4rem); font-weight: 300; letter-spacing: -.035em; }
.material-view p { max-width: 580px; margin: 0; color: var(--muted); }
.material-missing { width: 100%; height: 100%; display: grid; place-items: center; color: var(--muted); border: 1px solid var(--line); font-size: .7rem; font-weight: 400; letter-spacing: .16em; text-transform: uppercase; }
.next-material strong { text-align: right; }

.projects-hero { padding-bottom: clamp(3rem, 6vw, 6rem); }
.projects-toolbar { width: var(--page); margin: 0 auto clamp(3rem, 5vw, 5rem); padding: 1.1rem 0; display: flex; justify-content: space-between; align-items: center; gap: 2rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.filters { display: flex; gap: .6rem; flex-wrap: wrap; }
.filter-button { padding: .7rem 1rem; border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: .72rem; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; transition: background .25s, color .25s; }
.filter-button.active, .filter-button:hover { color: var(--paper); background: var(--ink); }
.project-count { margin: 0; color: var(--muted); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
.project-grid { width: var(--page); margin: 0 auto; padding-bottom: clamp(7rem, 12vw, 12rem); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(3rem, 6vw, 7rem) 2vw; }
.project-card[hidden] { display: none; }
.project-card:nth-child(even) { margin-top: clamp(2.5rem, 7vw, 7rem); }
.project-image { aspect-ratio: 16 / 10; overflow: hidden; background: #d1cbc0; }
.project-image img { height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.project-card:hover img { transform: scale(1.035); }
.project-card-copy { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line); margin-top: 1rem; }
.project-card h2 { margin: 0; font-size: clamp(1.65rem, 2.8vw, 2.7rem); font-weight: 300; letter-spacing: -.035em; }
.project-card p { margin: .25rem 0 0; color: var(--muted); font-size: .78rem; font-weight: 400; letter-spacing: .11em; text-transform: uppercase; }
.project-arrow { font-size: 1.4rem; }

.detail-hero { position: relative; min-height: 100svh; display: grid; align-items: end; color: var(--white); background: #292824; overflow: hidden; }
.detail-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.detail-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(12,12,11,.76), rgba(12,12,11,.05) 68%), linear-gradient(90deg, rgba(12,12,11,.25), transparent 55%); }
.detail-heading { position: relative; z-index: 1; width: var(--page); margin: 0 auto; padding: 10rem 0 4.5rem; }
.detail-heading h1 { max-width: 1100px; margin: .8rem 0 0; font-size: clamp(4rem, 9.5vw, 10rem); font-weight: 200; letter-spacing: -.06em; line-height: .86; }
.detail-kicker { display: flex; gap: 1rem; align-items: center; font-size: .7rem; font-weight: 400; letter-spacing: .2em; text-transform: uppercase; }
.detail-body { width: var(--page); margin: 0 auto; padding: clamp(6rem, 11vw, 11rem) 0; display: grid; grid-template-columns: 1fr 1.35fr; gap: 9vw; }
.detail-lead { margin: 0; font-size: clamp(2.25rem, 4.5vw, 5.2rem); font-weight: 200; letter-spacing: -.045em; line-height: 1; }
.detail-copy p { max-width: 650px; margin: 0 0 3.5rem; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.25rem); line-height: 1.72; }
.facts { margin: 0; border-top: 1px solid var(--line); }
.fact { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.fact dt { color: var(--muted); font-size: .73rem; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; }
.fact dd { margin: 0; }
.detail-gallery { width: var(--page); margin: 0 auto clamp(7rem, 12vw, 12rem); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 2rem); align-items: start; }
.detail-gallery figure { grid-column: span 6; margin: 0; aspect-ratio: 16 / 10; overflow: hidden; background: #d1cbc0; }
.detail-gallery figure:nth-child(4n + 1) { grid-column: span 8; }
.detail-gallery figure:nth-child(4n + 2) { grid-column: span 4; aspect-ratio: 4 / 5; margin-top: 9vw; }
.detail-gallery figure:nth-child(4n + 3) { grid-column: span 5; aspect-ratio: 4 / 5; }
.detail-gallery figure:nth-child(4n + 4) { grid-column: span 7; margin-top: 7vw; }
.detail-gallery figure:nth-child(5) { grid-column: 3 / span 8; margin-top: 4vw; }
.detail-gallery img { height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.detail-gallery figure:hover img { transform: scale(1.025); }
.next-project { color: var(--paper); background: var(--ink); }
.next-project a { width: var(--page); min-height: 48svh; margin: 0 auto; padding: 5rem 0; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.next-project span { font-size: .7rem; font-weight: 400; letter-spacing: .18em; text-transform: uppercase; }
.next-project strong { font-size: clamp(2.8rem, 6vw, 6.2rem); font-weight: 200; letter-spacing: -.05em; line-height: .92; }

.site-footer { color: var(--paper); background: var(--ink); padding: clamp(5rem, 9vw, 8rem) 0 2rem; }
.footer-inner { width: var(--page); margin: 0 auto; }
.site-footer h2 { max-width: 900px; margin: 0 0 2.8rem; font-size: clamp(3rem, 6vw, 6.6rem); font-weight: 200; letter-spacing: -.05em; line-height: .95; }
.site-footer .text-link { margin-bottom: 6rem; }
.footer-bottom { display: grid; grid-template-columns: 1fr auto; gap: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(243,241,236,.2); color: rgba(243,241,236,.62); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }
.not-found { min-height: 80svh; padding-top: 12rem; }

@media (max-width: 900px) {
  :root { --page: calc(100vw - 40px); }
  .header-inner { grid-template-columns: 1fr auto; }
  .desktop-nav { display: none; }
  .menu-button { display: block; }
  .wordmark small { display: none; }
  .mobile-menu { position: fixed; inset: 0; z-index: 20; padding: 116px 20px 38px; flex-direction: column; justify-content: space-between; color: var(--paper); background: var(--ink); transform: translateY(-101%); transition: transform .55s var(--ease); }
  .mobile-menu.open { display: flex; transform: none; }
  .mobile-menu nav { display: flex; flex-direction: column; }
  .mobile-menu a { padding: .65rem 0; font-size: clamp(2.2rem, 10vw, 4rem); font-weight: 300; letter-spacing: -.04em; }
  .mobile-menu p { margin: 0; color: #aaa89f; }
  .page-intro, .detail-body { grid-template-columns: 1fr; }
  .material-card { grid-column: span 6; }
  .material-card:nth-child(2), .material-card:nth-child(5) { margin-top: 0; }
  .material-catalog .material-card { grid-column: span 6; }
  .material-view { grid-column: span 6; }
  .material-view--model { grid-column: span 12; }
  .project-grid { grid-template-columns: 1fr; gap: 4rem; }
  .project-card:nth-child(even) { margin-top: 0; }
  .detail-gallery { grid-template-columns: 1fr; gap: 1.2rem; }
  .detail-gallery figure, .detail-gallery figure:nth-child(n) { grid-column: 1; aspect-ratio: 4 / 5; margin-top: 0; }
  .next-project a { flex-direction: column; justify-content: center; align-items: flex-start; }
}

@media (max-width: 560px) {
  :root { --page: calc(100vw - 32px); }
  .page-hero h1, .detail-heading h1 { font-size: clamp(3.55rem, 18vw, 6.2rem); }
  .material-gallery { display: block; }
  .material-card { margin: 0 0 1.5rem !important; }
  .material-catalog .material-meta { align-items: start; gap: .8rem; padding-top: .65rem; }
  .material-catalog .material-no { padding-top: .3rem; line-height: 1; }
  .material-catalog .material-meta p { margin-top: .1rem; }
  .materials-toolbar { align-items: flex-start; flex-direction: column; }
  .material-sheet-topline { align-items: flex-start; flex-direction: column; }
  .material-sheet-note { margin-left: 0; }
  .material-views { grid-template-columns: 1fr; }
  .material-view, .material-view--model { grid-column: 1; }
  .material-view--model .material-view-media { aspect-ratio: 4 / 3; }
  .next-material strong { text-align: left; }
  .projects-toolbar { align-items: flex-start; flex-direction: column; }
  .project-image { aspect-ratio: 4 / 5; }
  .fact { grid-template-columns: .8fr 1.2fr; }
  .footer-bottom { grid-template-columns: 1fr; }
}

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