:root {
  color-scheme: light;
  --paper: #f7f6f2;
  --ink: #0b1220;
  --muted: #525b68;
  --accent: #ff7a2a;
  --rule: #d3d3ce;
  --gutter: clamp(1.15rem, 3.35vw, 4rem);
  --section-space: clamp(4.5rem, 9vw, 9rem);
  --header-height: 5.95rem;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  font-family: Arial, Helvetica, sans-serif;
  background: var(--paper);
  color: var(--ink);
  scroll-behavior: smooth;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
button, summary { cursor: pointer; }
img { display: block; width: 100%; height: auto; }
[hidden] { display: none !important; }
section[id] { scroll-margin-top: 5.6rem; }
:focus-visible { outline: 2px solid #b8460b; outline-offset: 5px; }
.contact :focus-visible { outline-color: var(--accent); }
.page-width { width: min(100% - 2 * var(--gutter), 100rem); margin-inline: auto; }
.sr-only, .symbols {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link { position: fixed; z-index: 5; inset: .75rem auto auto 1rem; padding: .7rem 1rem; background: white; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.icon { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.65; flex: none; }
.eyebrow { font-size: .69rem; line-height: 1.35; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.accent-square { display: inline-block; width: .54rem; height: .54rem; flex: none; background: var(--accent); }

.site-header {
  display: grid;
  grid-template-columns: 1fr minmax(13rem, 28%) 1fr;
  align-items: center;
  gap: 1rem;
  position: fixed;
  z-index: 3;
  top: 0;
  left: 0;
  right: 0;
  padding-block: 1.55rem;
  background: transparent;
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }
.brand, .header-contact { transition: opacity .3s ease; }
.site-header.is-scrolled .brand, .site-header.is-scrolled .header-contact { opacity: 0; pointer-events: none; }
.site-header.is-scrolled .brand:focus-visible, .site-header.is-scrolled .header-contact:focus-visible { opacity: 1; pointer-events: auto; background: var(--paper); }
.brand { display: inline-flex; width: fit-content; align-items: center; gap: .65rem; font-size: .92rem; font-weight: 900; letter-spacing: -.045em; }
.brand > img { width: 2.85rem; height: 2.85rem; }
.brand span img { width: 4.8rem; height: auto; }
.menu { position: relative; }
.menu-toggle, .menu-links { background: #ecebe6f2; backdrop-filter: blur(14px); }
.menu-toggle { width: 100%; min-height: 2.62rem; display: flex; align-items: center; justify-content: space-between; gap: .7rem; padding: .55rem .85rem; border: 0; border-radius: 3px; font-size: .83rem; text-align: left; }
.menu-toggle:hover { background: #e5e3dc; }
.menu-icon { position: relative; width: 2.65rem; height: .5rem; }
.menu-icon::before, .menu-icon::after { content: ''; position: absolute; inset: 0 0 auto; height: 1px; background: currentColor; transition: transform .22s ease; }
.menu-icon::after { inset: auto 0 0; }
.menu-toggle[aria-expanded='true'] .menu-icon::before { transform: translateY(.22rem) rotate(13deg); }
.menu-toggle[aria-expanded='true'] .menu-icon::after { transform: translateY(-.22rem) rotate(-13deg); }
.menu-links { position: absolute; inset: calc(100% + .3rem) 0 auto; display: grid; padding: .25rem .8rem; border-radius: 3px; box-shadow: 0 12px 32px #0b12201c; }
.menu-links a { display: grid; grid-template-columns: 1.5rem 1fr 1em; align-items: center; gap: .4rem; min-height: 3rem; padding: .55rem .15rem; }
.menu-links a + a { border-top: 1px solid var(--rule); }
.menu-links a:hover, .header-contact:hover { color: #a63a04; }
.menu-links small { color: var(--muted); font-size: .63rem; }
.header-contact { justify-self: end; display: inline-flex; align-items: center; gap: .58rem; font-size: .86rem; }

.hero { position: relative; isolation: isolate; }
.hero-welcome {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) minmax(0, 2fr) auto;
  height: 100vh;
  height: 100dvh;
  width: calc(100% - 2 * var(--gutter));
  padding-top: calc(var(--header-height) + 2vh);
  padding-bottom: clamp(1.25rem, 3vh, 2.5rem);
  background: var(--paper);
}
.hero-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: clamp(.75rem, 2vh, 2rem);
}
.hero-intro p:last-child { max-width: 20.5rem; margin-left: auto; font-size: clamp(.88rem, 1.24vw, 1.05rem); line-height: 1.45; }
.hero-title { min-height: 0; overflow: hidden; transform: translateY(var(--title-shift, 0px)); }
.hero-title img { display: block; width: 100%; height: 100%; object-fit: contain; }
.hero-meta { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 1rem; }
.hero-meta a { display: flex; gap: .5rem; align-items: center; }
.hero-meta a:hover { color: #a63a04; }
.hero-figure { position: relative; z-index: 1; overflow: hidden; height: 100vh; height: 100dvh; background: #222a31; clip-path: inset(0 var(--image-inset, var(--gutter))); }
.hero-figure video { width: 100%; height: 112%; position: absolute; top: -6%; object-fit: cover; object-position: 50% 58%; transform: translateY(var(--image-shift, 0px)); }
.hero-video-control { position: absolute; z-index: 2; right: 1rem; bottom: 1rem; padding: .7rem .9rem; border: 0; background: #0b1220c9; color: white; font-size: .7rem; }

.section { padding-block: var(--section-space); }
.section-marker { display: flex; align-items: center; gap: .65rem; }
.section h2 { font-size: clamp(2.8rem, 6vw, 6.7rem); font-weight: 500; line-height: .98; letter-spacing: -.079em; }
.about .section-marker { justify-content: center; }
.about-composition { display: grid; grid-template-columns: 1fr minmax(12rem, 28%) 1fr; grid-template-rows: auto; align-items: center; gap: clamp(1rem, 3.2vw, 3.6rem); margin-block: clamp(2rem, 4.3vw, 4.4rem) clamp(3.75rem, 8vw, 8rem); }
.about-composition h2 { grid-area: 1 / 1 / 2 / 4; display: grid; grid-template-columns: subgrid; align-items: center; text-align: center; font-size: clamp(2.6rem, 5vw, 5.4rem); }
.about-composition h2 span:last-child { grid-column: 3; }
.about-composition figure { grid-area: 1 / 2 / 2 / 3; align-self: start; position: relative; overflow: hidden; }
.about-composition img { aspect-ratio: 4 / 4.65; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) {
  .about-animated .about-scene { height: 290vh; height: 290svh; }
  .about-animated .about-composition { position: sticky; top: 0; height: 100vh; height: 100svh; margin: 0; }
  .about-animated .about-composition h2 { position: relative; z-index: 1; }
  .about-animated .about-composition figure { grid-area: auto; position: absolute; z-index: 2; top: 50%; left: 50%; width: var(--detail-width, 28%); height: var(--detail-height, 38vh); transform: translate(-50%, -50%); }
  .about-animated .about-composition img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
}
.about-copy { display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.section-aside { color: var(--muted); }
.lead { max-width: 43rem; font-size: clamp(1.7rem, 3.2vw, 3.3rem); line-height: 1.1; letter-spacing: -.055em; }
.about-copy p:not(.lead, .section-aside), .section-heading p, .process-grid p, .contact-grid p { max-width: 30rem; color: var(--muted); font-size: 1rem; line-height: 1.65; }
.about-copy p + p { margin-top: 1.35rem; }
.line-link { display: inline-flex; gap: .8rem; width: fit-content; align-items: center; border-bottom: 1px solid currentColor; padding-bottom: .3rem; font-size: .86rem; }
.line-link:hover { color: #a63a04; }
.about-copy .line-link { margin-top: 1.55rem; }

.materials { background: #eceae3; }
.section-heading { display: grid; grid-template-columns: 1.6fr 1fr; align-items: end; gap: 2rem; margin-block: clamp(2rem, 4vw, 4rem) clamp(2.1rem, 4.6vw, 4.6rem); }
.section-heading p { justify-self: end; padding-bottom: .24rem; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 2rem); align-items: start; }
.material { position: relative; min-width: 0; }
.material:nth-child(2) { margin-top: clamp(1rem, 4vw, 4rem); }
.material-image { overflow: hidden; }
.material-photo { aspect-ratio: 4 / 4.65; object-fit: cover; background: #b1a79b; }
.material-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .38rem 1rem; margin-top: .85rem; color: var(--muted); font-size: .6rem; }
.material h3 { margin-top: .65rem; font-size: clamp(1.25rem, 2.2vw, 2.3rem); font-weight: 500; line-height: 1.04; letter-spacing: -.056em; }
.material p { margin-top: .65rem; color: var(--muted); font-size: .9rem; line-height: 1.55; max-width: 24rem; }
.image-open { position: absolute; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; top: .65rem; right: .65rem; background: var(--paper); border: 0; border-radius: 50%; font-size: 1.14rem; transition: background .2s ease; }
.image-open:hover { background: var(--accent); }
.gallery-note { margin-top: 2.5rem; padding-top: .8rem; border-top: 1px solid #c8c6be; color: var(--muted); font-size: .78rem; }

.process-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 5rem); margin-top: clamp(2rem, 4vw, 4rem); }
.process-grid h2 + p { margin-top: 1.35rem; }
.steps details { border-top: 1px solid var(--rule); }
.steps details:last-child { border-bottom: 1px solid var(--rule); }
.steps summary { display: grid; grid-template-columns: 1.75rem 1fr 1rem; align-items: center; gap: .8rem; list-style: none; padding-block: 1.1rem; font-size: clamp(1.06rem, 1.8vw, 1.6rem); letter-spacing: -.032em; }
.steps summary::-webkit-details-marker { display: none; }
.step-number { align-self: center; color: var(--muted); font-size: .68rem; letter-spacing: .08em; }
.steps details p { padding: 0 1.5rem 1.2rem 2.55rem; font-size: .91rem; }
.plus { width: 1rem; height: 1rem; position: relative; }
.plus::before, .plus::after { content: ''; position: absolute; inset: calc(50% - .5px) 0 auto; height: 1px; background: currentColor; }
.plus::after { transform: rotate(90deg); }
.steps details[open] .plus::after { visibility: hidden; }

.contact { background: var(--ink); color: var(--paper); }
.contact-grid { display: grid; grid-template-columns: 1.65fr 1fr; gap: 2rem; align-items: end; margin-top: clamp(2rem, 4vw, 4rem); }
.contact-grid h2 span { color: var(--accent); }
.contact-grid p { color: #e4e3df; }
.contact-grid .contact-note { margin-top: 1.2rem; color: #b7bdc6; font-size: .85rem; }
.footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; padding-block: 1.5rem; }
.footer img { width: 8rem; }
.footer .line-link { justify-self: end; }

.image-dialog { max-width: min(92vw, 68rem); max-height: 92dvh; padding: .85rem; border: 0; background: var(--paper); color: var(--ink); }
.image-dialog::backdrop { background: #0b1220d9; }
.image-dialog img { width: auto; max-width: 100%; max-height: 72dvh; object-fit: contain; margin-inline: auto; }
.dialog-bar { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; padding: .25rem .15rem .75rem; }
.dialog-bar h2 { font-size: clamp(1rem, 2.4vw, 1.35rem); line-height: 1.15; letter-spacing: -.04em; }
.dialog-bar button { display: flex; align-items: center; gap: .45rem; border: 1px solid var(--rule); padding: .28rem .5rem; background: transparent; font-size: .76rem; }
.dialog-bar button:hover { background: #e8e5df; }
.dialog-bar button span { font-size: 1.25rem; line-height: 1; }
.image-dialog > p { padding: .65rem .15rem .1rem; color: var(--muted); }

@media (max-width: 740px) {
  :root { --header-height: 4.72rem; }
  .site-header { grid-template-columns: 1fr 1.2fr 1fr; padding-block: 1.05rem; gap: .6rem; }
  .brand > img { width: 1.9rem; height: 1.9rem; }
  .brand span { display: none; }
  .menu-icon { width: 1.65rem; }
  .menu-links { width: max(100%, 12rem); left: 50%; transform: translateX(-50%); }
  .hero-welcome { grid-template-rows: minmax(0, 1fr) minmax(0, 1.25fr) auto; }
  .hero-intro { flex-direction: column; justify-content: end; align-items: start; gap: 1rem; }
  .hero-intro p:last-child { max-width: 19rem; margin-left: 0; }
  .hero-figure video { object-position: 63% 50%; }
  .hero-meta { font-size: .55rem; }
  .about-composition { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; text-align: center; }
  .about-composition h2 { grid-area: 1 / 1 / 2 / 3; display: block; }
  .about-composition h2 span + span::before { content: ' '; }
  .about-composition figure { grid-area: 2 / 1 / 3 / 3; width: min(68%, 19rem); justify-self: center; }
  .about-animated .about-composition h2 { align-self: start; margin-top: clamp(5rem, 14vh, 8rem); }
  .about-copy, .section-heading, .process-grid, .contact-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .section-heading p { justify-self: start; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1rem; }
  .material:nth-child(2) { margin-top: 0; }
}

@media (max-width: 490px) {
  .gallery { grid-template-columns: 1fr; }
  .material-photo { aspect-ratio: 1.1; }
  .footer { grid-template-columns: 1fr 1fr; }
  .footer span { grid-row: 2; }
  .footer .line-link { grid-area: 1 / 2 / 3 / 3; }
}

@media (max-height: 500px) and (min-width: 600px) {
  :root { --header-height: 3.7rem; }
  .site-header { padding-block: .55rem; }
  .hero-welcome { grid-template-rows: auto minmax(0, 1fr) auto; padding-top: var(--header-height); padding-bottom: .8rem; }
  .hero-intro { flex-direction: row; align-items: end; justify-content: space-between; padding-bottom: .3rem; }
  .hero-intro p:last-child { max-width: 25rem; font-size: .75rem; line-height: 1.3; }
  .hero-meta { padding-top: .3rem; }
}

@media (max-height: 500px) and (min-width: 741px) {
  :root { --header-height: 3.95rem; }
}

@keyframes title-enter {
  from { transform: translateY(110%) skewY(3deg); }
  to { transform: translateY(0) skewY(0); }
}
@keyframes content-enter {
  from { opacity: 0; translate: 0 24px; }
  to { opacity: 1; translate: 0 0; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-title img { animation: title-enter 1.5s var(--ease-out) .12s backwards; }
  .hero-intro { animation: content-enter 1s var(--ease-out) .45s backwards; }
  .hero-meta { animation: content-enter 1s var(--ease-out) .7s backwards; }
  .menu-links a { animation: content-enter .55s var(--ease-out) backwards; }
  .menu-links a:nth-child(2) { animation-delay: .05s; }
  .menu-links a:nth-child(3) { animation-delay: .1s; }
  .menu-links a:nth-child(4) { animation-delay: .15s; }
  .material-photo { transition: transform 1.1s var(--ease-out); }
  .material:hover .material-photo { transform: scale(1.045); }
  .line-link .icon, .image-open .icon, .header-contact .icon { transition: transform .35s var(--ease-out); }
  .line-link:hover .icon, .header-contact:hover .icon { transform: translate(2px, -2px); }
  .image-open:hover .icon { transform: rotate(45deg); }
  .image-dialog[open] { animation: content-enter .4s var(--ease-out); }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-welcome { position: relative; }
  .hero-title, .hero-figure video { transform: none; }
  .hero-figure { clip-path: none; }
}
