:root {
  color-scheme: light;
  --paper: #f3f0e6;
  --ink: #202720;
  --moss: #3b4637;
  --accent: #e4e9ac;
  --line: #c6c8b9;
  --side: clamp(24px, 5.25vw, 104px);
  --ease: cubic-bezier(.2,.72,.2,1);
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 74px; }
body { margin: 0; }
body:has(.gallery[open]) { overflow: hidden; }
button, summary { cursor: pointer; }
button { font: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; object-fit: cover; }
figure, h1, h2, h3, p { margin: 0; }
h1, h2 { font-weight: 600; letter-spacing: -.078em; line-height: .95; }
h2 { font-size: clamp(3.3rem, 7.3vw, 8rem); }
::selection { background: #e4e9ac; color: #202720; }
:focus-visible { outline: 2px solid #788744; outline-offset: 5px; }
[hidden] { display: none !important; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.skip { position: fixed; top: 12px; left: var(--side); z-index: 12; background: var(--accent); padding: 12px 18px; transform: translateY(-160%); }
.skip:focus { transform: none; }

.site-header {
  position: sticky;
  z-index: 5;
  top: 0;
  min-height: 74px;
  padding: 0 var(--side);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  background: var(--paper);
  border-bottom: 1px solid #2027201f;
}
.brand { display: inline-flex; align-items: center; gap: 10px; width: fit-content; }
.brand img { width: 38px; height: 44px; object-fit: contain; flex: none; }
.brand span { display: grid; font-size: 1.05rem; font-weight: 800; letter-spacing: -.045em; line-height: .97; }
.brand small { font-size: .63rem; font-weight: 700; letter-spacing: .2em; margin-top: 5px; }
.desktop-nav { display: flex; gap: clamp(22px, 3.4vw, 58px); font-size: .88rem; }
.desktop-nav a, .header-contact, .text-link { transition: color .2s; }
.desktop-nav a:hover, .header-contact:hover, .text-link:hover { color: #67743e; }
.header-contact { justify-self: end; display: flex; align-items: center; gap: 15px; font-weight: 700; font-size: .88rem; }
.header-contact .icon { width: 17px; height: 17px; }
.mobile-menu { display: none; }

.hero { background: var(--ink); color: var(--paper); }
.hero-main { display: grid; grid-template-columns: 48% 52%; min-height: clamp(510px, calc(100svh - 143px), 780px); }
.hero-copy { padding: 64px 2.6vw 64px var(--side); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.location { display: flex; align-items: center; gap: 11px; margin-bottom: clamp(26px, 4vh, 46px); color: var(--accent); font-size: .8rem; letter-spacing: .08em; }
.location span { width: 13px; height: 13px; border: 1px solid currentColor; border-radius: 50%; position: relative; }
.location span::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: currentColor; }
.hero h1 { font-size: clamp(3rem, 6.24vw, 7.7rem); }
.hero h1 span { display: block; }
.hero h1 span + span { margin-top: .09em; }
.hero-description { margin: 28px 0 31px; max-width: 30ch; color: #dfdfd1; line-height: 1.54; font-size: clamp(.96rem, 1.3vw, 1.18rem); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 29px;
  padding: 14px 16px;
  min-height: 52px;
  font-size: .87rem;
  font-weight: 700;
  transition: background .25s, color .25s;
}
.button .icon { width: 19px; height: 19px; transition: transform .25s var(--ease); }
.button:hover .icon { transform: translate(2px, 2px); }
.button-light { color: var(--ink); background: var(--accent); }
.button-light:hover { background: #f0f2c7; }
.button-dark { color: var(--paper); background: var(--ink); }
.button-dark:hover { background: var(--moss); }
.hero-visual { position: relative; isolation: isolate; overflow: hidden; min-height: 100%; background: #555d4d; }
.hero-image { position: absolute; height: 100%; inset: 0; object-position: 51% 59%; opacity: 0; transform: scale(1.045); transition: opacity .66s var(--ease), transform 1.15s var(--ease); }
.hero-image:nth-of-type(2) { object-position: 52% 45%; }
.hero-image:nth-of-type(3) { object-position: 50% 49%; }
.hero-image.is-current { opacity: 1; z-index: 1; transform: scale(1); }
.hero-visual::after { content: ''; position: absolute; z-index: 2; inset: 48% 0 0; background: linear-gradient(transparent, #1b241bb0); pointer-events: none; }
.hero-frame { position: absolute; z-index: 3; inset: clamp(15px, 2vw, 34px); pointer-events: none; }
.hero-frame i { position: absolute; width: 20px; height: 20px; border: solid #f3f0e6c9; }
.hero-frame i:nth-child(1) { top: 0; left: 0; border-width: 1px 0 0 1px; }
.hero-frame i:nth-child(2) { top: 0; right: 0; border-width: 1px 1px 0 0; }
.hero-frame i:nth-child(3) { bottom: 0; right: 0; border-width: 0 1px 1px 0; }
.hero-frame i:nth-child(4) { bottom: 0; left: 0; border-width: 0 0 1px 1px; }
.hero-photo-label { position: absolute; z-index: 3; left: clamp(32px, 3.2vw, 55px); bottom: clamp(30px, 3vw, 54px); display: flex; gap: 9px; align-items: center; font-size: .82rem; font-weight: 600; text-shadow: 0 1px 5px #1b241b; }
.hero-photo-dot { width: 7px; height: 7px; background: var(--accent); }
.hero-rail { display: flex; align-items: center; justify-content: space-between; padding: 0 var(--side); border-top: 1px solid #f3f0e633; min-height: 68px; }
.scroll-link, .slide-controls, .slide-index { display: flex; align-items: center; }
.scroll-link { gap: 10px; font-size: .79rem; color: #e1e3d6; }
.scroll-link:hover { color: var(--accent); }
.scroll-link .icon { width: 16px; }
.slide-controls { gap: 7px; }
html:not(.js-ready) .slide-controls { visibility: hidden; }
.slide-index { gap: 11px; margin-right: 14px; color: #e1e3d6; font: .77rem Consolas, monospace; white-space: nowrap; }
.slide-index i { width: 30px; height: 1px; background: currentColor; opacity: .5; }
.arrow-button { color: inherit; display: grid; place-items: center; width: 43px; height: 43px; padding: 0; background: transparent; border: 1px solid #f3f0e652; transition: background .2s, color .2s; }
.arrow-button:hover { color: var(--ink); background: var(--accent); }
.arrow-button .icon { width: 19px; height: 19px; }
.js-ready .hero-copy > * { animation: arrive .85s var(--ease) both; }
.js-ready .hero-copy > :nth-child(2) { animation-delay: .08s; }
.js-ready .hero-copy > :nth-child(3) { animation-delay: .16s; }
.js-ready .hero-copy > :nth-child(4) { animation-delay: .23s; }
@keyframes arrive { from { opacity: 0; transform: translateY(21px); } to { opacity: 1; transform: none; } }

.section-pad { padding: 42px var(--side) clamp(72px, 9vw, 144px); }
.section-top { display: flex; justify-content: space-between; gap: 18px; padding: 0 0 15px; border-bottom: 1px solid var(--line); font-size: .77rem; letter-spacing: .04em; }
.work-intro { display: grid; grid-template-columns: 1fr minmax(220px, 28%); align-items: end; gap: 35px; margin: clamp(41px, 6vw, 92px) 0 clamp(30px, 4.5vw, 75px); }
.work-intro h2 span { color: #6b783e; }
.work-intro p, .about-grid p, .contact-grid p { font-size: clamp(1rem, 1.45vw, 1.22rem); line-height: 1.55; }
.work-intro p { max-width: 33ch; padding-bottom: 4px; }
.work-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(30px, 5vw, 82px) clamp(14px, 2.5vw, 46px); }
.project { grid-column: span 6; min-width: 0; }
.project-wide { grid-column: span 7; }
.project-offset { grid-column: span 5; padding-top: clamp(25px, 6.2vw, 92px); }
.project-link { display: block; }
.project-photo { position: relative; isolation: isolate; overflow: hidden; background: #d7d7c7; aspect-ratio: 1.48; }
.project-wide .project-photo { aspect-ratio: 1.36; }
.project-offset .project-photo { aspect-ratio: 1.18; }
.project-photo img { height: 100%; object-position: center 54%; transition: transform .65s var(--ease); }
.project-link:hover img { transform: scale(1.055); }
.project-open { position: absolute; right: 13px; bottom: 13px; width: 45px; height: 45px; display: grid; place-items: center; background: var(--paper); transition: background .25s, transform .25s var(--ease); }
.project-link:hover .project-open { background: var(--accent); transform: translateY(-3px); }
.project-caption { display: flex; gap: 12px; justify-content: space-between; align-items: baseline; padding: 15px 0 12px; border-bottom: 1px solid var(--line); }
.project-caption h3 { font-size: clamp(1.13rem, 2.1vw, 2rem); font-weight: 600; letter-spacing: -.05em; }
.project-caption > span { flex-shrink: 0; font-size: .77rem; color: #50594b; }
.text-link { width: fit-content; display: inline-flex; align-items: center; gap: 8px; padding-bottom: 4px; border-bottom: 1px solid currentColor; font-weight: 700; font-size: .88rem; }
.text-link .icon { width: 16px; height: 16px; }
.facebook-work { margin-top: 35px; }

.services { background: #dce0d0; --line: #a9b1a0; }
.services-grid { display: grid; grid-template-columns: 42% 1fr; align-items: start; gap: clamp(30px, 8vw, 125px); margin-top: clamp(35px, 6vw, 89px); }
.services-content h2 { font-size: clamp(3rem, 6.2vw, 6.8rem); margin-bottom: clamp(24px, 4vw, 55px); }
.services-visual { position: relative; overflow: hidden; aspect-ratio: .86; background: #b3b9a7; }
.services-visual img { height: 100%; object-position: center 50%; }
.services-visual img.photo-change { animation: photo-change .55s var(--ease); }
@keyframes photo-change { from { opacity: .35; transform: scale(1.035); } to { opacity: 1; transform: none; } }
.services-visual > span { position: absolute; left: 12px; bottom: 12px; background: var(--paper); padding: 8px 10px; font-size: .72rem; }
.service-list details { border-top: 1px solid var(--line); }
.service-list details:last-child { border-bottom: 1px solid var(--line); }
.service-list summary { list-style: none; display: grid; grid-template-columns: 2.15rem 1fr 19px; align-items: center; padding: 19px 0; gap: 8px; font-size: clamp(1.18rem, 2.24vw, 2rem); letter-spacing: -.04em; font-weight: 600; }
summary::-webkit-details-marker { display: none; }
.service-list summary span { color: #505c4b; font: .72rem Consolas, monospace; }
.service-list summary i, .mobile-menu summary span { position: relative; width: 17px; height: 17px; }
.service-list summary i::before, .service-list summary i::after, .mobile-menu summary span::before, .mobile-menu summary span::after { content: ''; position: absolute; inset: 8px 0 auto; height: 1px; background: currentColor; transition: transform .25s; }
.service-list summary i::after { transform: rotate(90deg); }
.service-list details[open] i::after { transform: rotate(0); }
.service-list details p { padding: 0 1rem 19px 2.65rem; color: #3e4939; line-height: 1.55; max-width: 55ch; font-size: .97rem; }
.service-list details[open] p { animation: expand .34s var(--ease) both; }
@keyframes expand { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }

.about-grid { display: grid; grid-template-columns: 1fr minmax(280px, 39%); align-items: center; gap: clamp(34px, 7vw, 115px); margin-top: clamp(35px, 6vw, 90px); }
.about-grid .about-name { color: #566649; font-weight: 700; font-size: .93rem; margin: 0 0 17px; }
.about-grid h2 { font-size: clamp(3.15rem, 6.6vw, 7.3rem); }
.about-grid p { max-width: 42ch; margin-top: 23px; }
.about-grid .text-link { margin-top: 25px; }
.about-grid img { height: auto; aspect-ratio: 1.05; object-position: center 36%; }
.about-grid figcaption { margin-top: 11px; font-size: .75rem; color: #50594b; }

.contact { background: var(--accent); --line: #a9af79; }
.contact-grid { display: grid; grid-template-columns: 1fr minmax(270px, 36%); gap: clamp(34px, 7vw, 115px); align-items: end; padding-top: clamp(41px, 7vw, 104px); }
.contact-grid h2 { font-size: clamp(3.4rem, 7.7vw, 8.4rem); }
.contact-grid p { margin: 24px 0; max-width: 38ch; }
.contact-grid address { font-style: normal; }
.contact-grid address a { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 16px 0; border-top: 1px solid var(--line); }
.contact-grid address a:last-child { border-bottom: 1px solid var(--line); }
.contact-grid address a:hover { color: #526030; }
.contact-grid address span { display: grid; gap: 5px; font-size: .76rem; min-width: 0; }
.contact-grid address strong { font-size: clamp(.97rem, 1.63vw, 1.38rem); letter-spacing: -.035em; overflow-wrap: anywhere; }
.contact-grid address .icon { width: 18px; height: 18px; }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 22px; background: var(--ink); color: var(--paper); padding: 25px var(--side); }
.site-footer > span { font-size: .77rem; color: #d8d9ca; }
.site-footer .brand img { filter: brightness(0) invert(93%) sepia(10%) saturate(345%) hue-rotate(3deg) brightness(103%) contrast(90%); }
.site-footer .text-link:hover { color: var(--accent); }

.gallery { margin: auto; width: min(92vw, 970px); max-width: none; max-height: 94dvh; color: var(--paper); background: var(--ink); padding: 0; border: 1px solid #f3f0e650; }
.gallery::backdrop { background: #111911d9; }
.gallery[open] { animation: gallery-in .32s var(--ease) both; }
@keyframes gallery-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.gallery-inner { padding: clamp(12px, 2.2vw, 26px); }
.gallery-top, .gallery-bottom, .gallery-controls { display: flex; align-items: center; gap: 9px; }
.gallery-top, .gallery-bottom { justify-content: space-between; }
.gallery-top { margin-bottom: 12px; }
.gallery-top h2 { font-size: clamp(1.4rem, 3vw, 2.15rem); letter-spacing: -.035em; }
.gallery-figure img { height: min(65dvh, 660px); object-fit: contain; background: #141b14; }
.gallery-figure img.photo-change { animation: photo-change .32s var(--ease); }
.gallery-figure figcaption { margin-top: 10px; color: #dadccf; font-size: .85rem; line-height: 1.4; }
.gallery-bottom { margin-top: 12px; }
.gallery-controls { margin-left: auto; }
.gallery-count { min-width: 48px; font: .78rem Consolas, monospace; }
.gallery-source { display: inline-flex; gap: 4px; align-items: center; font-size: .79rem; text-decoration: underline; }
.gallery-source .icon { width: 14px; height: 14px; }

@supports (animation-timeline: view()) {
  .project-wide .project-photo, .about-grid figure {
    animation: uncover linear both;
    animation-timeline: view();
    animation-range: entry 2% entry 75%;
  }
}
@keyframes uncover {
  from { clip-path: inset(0 94% 0 0); }
  to { clip-path: inset(0); }
}

@media (max-width: 1050px) {
  .hero-main { grid-template-columns: 51% 49%; }
  .hero h1 { font-size: clamp(3rem, 6.7vw, 6.5rem); }
}

@media (max-width: 720px) {
  html { scroll-padding-top: 62px; }
  .site-header { display: flex; justify-content: space-between; min-height: 62px; }
  .brand img { width: 31px; height: 36px; }
  .brand span { font-size: .92rem; }
  .brand small { font-size: .56rem; }
  .desktop-nav, .header-contact { display: none; }
  .mobile-menu { display: block; }
  .mobile-menu summary { list-style: none; min-height: 44px; display: flex; align-items: center; gap: 10px; font-size: .85rem; font-weight: 700; }
  .mobile-menu summary span::before { transform: translateY(-3px); }
  .mobile-menu summary span::after { transform: translateY(3px); }
  .mobile-menu[open] summary span::before { transform: rotate(45deg); }
  .mobile-menu[open] summary span::after { transform: rotate(-45deg); }
  .mobile-menu nav { position: absolute; z-index: 1; top: 100%; left: 0; right: 0; background: var(--paper); padding: 4px var(--side) 16px; border-bottom: 1px solid var(--line); animation: expand .22s var(--ease); }
  .mobile-menu a { display: block; padding: 14px 0; border-top: 1px solid var(--line); font-size: .96rem; }
  .hero-main { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { padding: clamp(35px, 7vw, 55px) var(--side) 34px; }
  .location { margin-bottom: 22px; }
  .hero h1 { font-size: clamp(2.62rem, 10.4vw, 5.1rem); }
  .hero-description { margin: 19px 0 21px; }
  .hero-visual { min-height: 0; height: clamp(250px, 70vw, 450px); }
  .hero-image { object-position: center 61%; }
  .hero-rail { min-height: 62px; }
  .slide-index { margin-right: 5px; gap: 7px; }
  .slide-index i { width: 17px; }
  .section-pad { padding-top: 26px; }
  .work-intro, .services-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .work-intro { gap: 19px; }
  .work-grid { display: grid; grid-template-columns: 1fr 1fr; }
  .project { grid-column: auto; }
  .project-wide, .project-offset { grid-column: 1 / -1; padding-top: 0; }
  .project-wide .project-photo, .project-offset .project-photo { aspect-ratio: 1.42; }
  .project-open { right: 8px; bottom: 8px; width: 36px; height: 36px; }
  .project-open .icon { width: 18px; height: 18px; }
  .project-caption { flex-direction: column; gap: 5px; padding: 10px 0 11px; }
  .services-visual { order: 1; aspect-ratio: 1.5; }
  .about-grid img { aspect-ratio: 1.38; }
  .contact-grid { align-items: start; }
  .site-footer { flex-wrap: wrap; }
  .site-footer > span { order: 2; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
