/* Turpin Wood — the single visual theme used by every page. */
:root {
  --paper: #f6f3ed;
  --paper-deep: #ece7de;
  --surface: #fffdf8;
  --ink: #20211e;
  --muted: #6e6c65;
  --accent: #ad6846;
  --forest: #304239;
  --line: rgba(32, 33, 30, 0.14);
  --line-light: rgba(255, 255, 255, 0.16);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --content: 1120px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-space: clamp(82px, 10vw, 132px);
  --radius: 18px;
  --shadow: 0 24px 70px rgba(39, 35, 29, 0.1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.lightbox-open { overflow: hidden; }
body, a, button { transition: color .2s ease, background-color .2s ease, border-color .2s ease, opacity .2s ease; }
img { display: block; max-width: 100%; }
figure, h1, h2, h3, p { margin-top: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid #d9926d; outline-offset: 4px; }
em { color: var(--accent); font-weight: 400; }

.section-shell,
.header-inner,
.hero-markdown,
.footer-grid,
.footer-bottom {
  width: min(calc(100% - (var(--gutter) * 2)), var(--content));
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .13em;
  line-height: 1.3;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 11px 19px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 720;
  line-height: 1;
}
.button span { font-size: 18px; }
.button-dark { background: var(--ink); color: white; }
.button-dark:hover { background: var(--forest); transform: translateY(-1px); }
.button-outline { border-color: var(--line); background: transparent; }
.button-outline:hover { border-color: var(--ink); background: var(--ink); color: white; }
.text-link { display: inline-flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--ink); padding-bottom: 3px; font-size: 14px; font-weight: 720; }
.text-link span { font-size: 18px; transition: transform .2s ease; }
.text-link:hover span { transform: translateX(4px); }

/* Header */
.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(246, 243, 237, .92);
  backdrop-filter: blur(14px);
}
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: block; width: 118px; height: 52px; overflow: hidden; border-radius: 3px; background: #10110f; }
.brand-logo { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.nav { display: flex; align-items: center; gap: clamp(21px, 2.5vw, 34px); font-size: 13px; font-weight: 650; }
.nav > a { position: relative; }
.nav > a:not(.nav-cta)::after { position: absolute; right: 0; bottom: -6px; left: 0; height: 1px; background: currentColor; content: ""; transform: scaleX(0); transform-origin: right; transition: transform .25s ease; }
.nav > a:not(.nav-cta):hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { padding: 9px 16px; border-radius: 999px; background: var(--ink); color: white; }
.nav-cta:hover { background: var(--forest); }
.language-switch { position: relative; isolation: isolate; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); overflow: hidden; }
.language-switch::before { position: absolute; z-index: -1; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 4px); border-radius: 999px; background: var(--ink); content: ""; transition: transform .34s cubic-bezier(.65,0,.35,1), background-color .34s ease; }
.language-switch a, .language-current { position: relative; z-index: 1; min-width: 38px; padding: 5px 9px; border-radius: 999px; text-align: center; font-size: 11px; font-weight: 780; line-height: 1.1; transition: color .25s ease; }
.language-current { color: white; }
.language-switch a:hover { color: var(--accent); }
.language-switch.is-fr::before, .language-switch.to-fr::before { transform: translateX(calc(100% + 2px)); }
.language-switch.to-nl::before { transform: none; }
.language-switch.is-switching::before { background: var(--accent); }
.language-switch.is-switching .language-current { color: var(--ink); }
.language-switch.is-switching a.is-target { color: white; }
.menu-toggle { display: none; border: 0; background: transparent; cursor: pointer; }

/* Home hero */
.hero-markdown {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(400px, 1.05fr);
  gap: clamp(44px, 5vw, 68px);
  align-items: center;
  min-height: min(760px, calc(100vh - 76px));
  padding-block: clamp(54px, 7vw, 88px);
}
.hero-copy { max-width: 620px; }
.hero-copy h1,
.markdown-copy h2,
.section-heading h2,
.work-head h2,
.gallery-heading h2,
.contact-home h2,
.page-intro h1,
.project-page h1 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.055em;
}
.hero-copy h1 { margin-bottom: 30px; font-size: clamp(58px, 7vw, 94px); line-height: .9; }
.hero-lead { max-width: 590px; margin-bottom: 30px; color: #4d4c46; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; }
.hero-picture { position: relative; margin: 0; }
.hero-picture::before { position: absolute; z-index: -1; inset: 11% -7% -7% 13%; border-radius: 28px; background: var(--paper-deep); content: ""; }
.hero-picture img { display: block; width: 100%; height: auto; aspect-ratio: 1140 / 539; border-radius: 22px; box-shadow: var(--shadow); object-fit: contain; object-position: center; }

/* Intro */
.intro { padding-block: var(--section-space); }
.intro .markdown-copy { max-width: 720px; }
.markdown-copy h2 { margin-bottom: 32px; font-size: clamp(52px, 6.2vw, 82px); line-height: .92; }
.markdown-copy p { max-width: 660px; margin-bottom: 0; color: #4d4c46; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.65; }

/* Services */
.services { background: var(--paper); }
.services-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(54px, 8vw, 110px); padding-block: var(--section-space); }
.section-heading h2, .work-head h2, .gallery-heading h2, .contact-home h2 { margin: 0; font-size: clamp(52px, 6vw, 78px); line-height: .93; }
.service-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-self: end; }
.service-list article { min-height: 258px; padding: 26px 24px 24px; border: 1px solid rgba(48,66,57,.12); border-radius: 20px; background: var(--surface); box-shadow: 0 18px 45px rgba(42,38,32,.06); }
.service-icon { position: relative; display: grid; width: 68px; height: 68px; margin-bottom: 39px; place-items: center; overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 20px; color: #f3c4aa; background: linear-gradient(145deg, #3b5146, var(--forest)); box-shadow: 0 12px 25px rgba(48,66,57,.17), inset 0 1px rgba(255,255,255,.08); }
.service-glyph { display: block; width: 36px; height: 36px; background: currentColor; -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat; }
.service-glyph-gate { -webkit-mask-image: url("../icons/fence.svg"); mask-image: url("../icons/fence.svg"); }
.service-glyph-shelter { -webkit-mask-image: url("../icons/warehouse.svg"); mask-image: url("../icons/warehouse.svg"); }
.service-glyph-cladding { -webkit-mask-image: url("../icons/panels-top-left.svg"); mask-image: url("../icons/panels-top-left.svg"); }
.service-glyph-furniture { -webkit-mask-image: url("../icons/armchair.svg"); mask-image: url("../icons/armchair.svg"); }
.service-list h3 { margin-bottom: 8px; font-size: 19px; line-height: 1.2; }
.service-list p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

/* Projects */
.work { padding-block: var(--section-space); }
.work-head { margin-bottom: clamp(42px, 5vw, 64px); }
.projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 54px 24px; }
.project { min-width: 0; cursor: default; user-select: none; }
.project, .project * { pointer-events: none; }
.project-art { overflow: hidden; border-radius: var(--radius); background: var(--paper-deep); }
.project-art img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.project-meta { padding: 20px 2px 0; }
.project-meta p { margin: 0 0 7px; color: var(--accent); font-size: 11px; font-weight: 780; letter-spacing: .11em; text-transform: uppercase; }
.project-meta h3 { margin-bottom: 7px; font-family: var(--serif); font-size: clamp(27px, 3vw, 38px); font-weight: 400; letter-spacing: -.035em; line-height: 1.05; }
.project-meta span { display: block; color: var(--muted); font-size: 14px; }

/* Skip painting distant sections until they approach the viewport. */
.intro, .services, .work, .gallery-preview, .contact-stage, .footer { content-visibility: auto; contain-intrinsic-size: auto 800px; }

/* Gallery preview and gallery page */
.gallery-preview { padding-bottom: var(--section-space); }
.gallery-heading { margin-bottom: 38px; }
.gallery-grid { display: grid; gap: 16px; }
.gallery-grid-preview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery-item { position: relative; display: block; min-width: 0; overflow: hidden; border-radius: var(--radius); background: var(--paper-deep); }
.gallery-item::after { position: absolute; right: 14px; bottom: 14px; display: grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; background: linear-gradient(var(--ink),var(--ink)) center / 12px 1px no-repeat, linear-gradient(var(--ink),var(--ink)) center / 1px 12px no-repeat, rgba(255,255,255,.9); content: ""; opacity: 0; transform: translateY(5px); transition: opacity .25s ease, transform .25s ease; }
.gallery-item:hover::after { opacity: 1; transform: translateY(0); }
.gallery-item img { width: 100%; height: 310px; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.gallery-grid-preview .gallery-item.is-wide { grid-column: 1 / -1; }
.gallery-grid-preview .gallery-item.is-wide img { height: auto; aspect-ratio: 1140 / 539; object-fit: contain; }
.gallery-item:hover img { transform: scale(1.03); }
.gallery-cta { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-top: 18px; padding: 24px 24px 24px 28px; border-radius: var(--radius); background: var(--forest); color: white; }
.gallery-cta > span { display: grid; gap: 2px; }
.gallery-cta small { color: #dba080; font-size: 10px; font-weight: 780; letter-spacing: .14em; }
.gallery-cta strong { font-family: var(--serif); font-size: clamp(24px, 2.7vw, 34px); font-weight: 400; letter-spacing: -.03em; line-height: 1.15; }
.gallery-cta i { display: grid; flex: 0 0 auto; width: 54px; height: 54px; place-items: center; border-radius: 50%; background: var(--surface); color: var(--ink); font-size: 24px; font-style: normal; transition: transform .25s ease, background-color .25s ease; }
.gallery-cta:hover { background: var(--ink); }
.gallery-cta:hover i { background: #efb392; transform: rotate(8deg) scale(1.05); }
.gallery-page, .listing-page { padding-block: clamp(72px, 9vw, 120px) var(--section-space); }
.page-intro { max-width: 740px; margin-bottom: clamp(46px, 7vw, 82px); }
.page-intro .back-link { margin-bottom: 55px; }
.page-intro h1 { margin-bottom: 22px; font-size: clamp(64px, 8vw, 108px); line-height: .9; }
.page-intro > p:last-child { max-width: 640px; margin-bottom: 0; color: var(--muted); font-size: clamp(17px, 1.5vw, 20px); }
.gallery-page-header { display: grid; grid-template-columns: 1fr .7fr; gap: clamp(55px, 10vw, 135px); align-items: end; margin-bottom: clamp(38px, 6vw, 66px); padding: clamp(36px, 5vw, 62px); border-radius: 30px; background: linear-gradient(145deg, #34483e 0%, #25352e 100%); color: white; box-shadow: 0 30px 75px rgba(35,48,41,.14); }
.gallery-page-header .back-link { margin-bottom: clamp(48px, 7vw, 74px); }
.gallery-page-header .gallery-back { gap: 10px; padding: 7px 15px 7px 7px; border: 1px solid rgba(255,255,255,.26); border-radius: 999px; background: rgba(255,255,255,.12); color: white; box-shadow: none; }
.gallery-back span { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: rgba(255,255,255,.14); font-size: 17px; transition: transform .2s ease, background-color .2s ease; }
.gallery-back strong { font-size: 12px; font-weight: 720; }
.gallery-back:hover { border-color: #e6a988; color: #f2c9b3; }
.gallery-back:hover span { background: rgba(230,169,136,.22); transform: translateX(-2px); }
.gallery-page-header .eyebrow { color: #e2a383; }
.gallery-page-header h1 { margin: 0; color: white; font-family: var(--serif); font-size: clamp(68px, 9vw, 118px); font-weight: 400; letter-spacing: -.06em; line-height: .85; }
.gallery-page-side { display: flex; flex-direction: column; justify-content: flex-end; }
.gallery-page-intro { max-width: 480px; margin: 0; color: rgba(255,255,255,.72); font-size: clamp(17px, 1.6vw, 21px); line-height: 1.6; }
.gallery-count { display: flex; align-items: end; gap: 13px; margin-top: 34px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.16); }
.gallery-count strong { font-family: var(--serif); font-size: 46px; font-weight: 400; letter-spacing: -.05em; line-height: .8; }
.gallery-count span { color: #e2a383; font-size: 10px; font-weight: 780; letter-spacing: .14em; }
.gallery-grid-full { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.gallery-grid-full .gallery-item { grid-column: span 6; }
.gallery-grid-full .gallery-item:nth-child(1), .gallery-grid-full .gallery-item:nth-child(4) { grid-column: span 7; }
.gallery-grid-full .gallery-item:nth-child(2), .gallery-grid-full .gallery-item:nth-child(3) { grid-column: span 5; }
.gallery-grid-full .gallery-item:nth-child(5) { grid-column: 1 / -1; }
.gallery-grid-full .gallery-item img { height: 440px; }
.gallery-grid-full .gallery-item:nth-child(1) img, .gallery-grid-full .gallery-item:nth-child(2) img { height: 520px; }
.gallery-grid-full .gallery-item:nth-child(5) img { height: 510px; object-position: center; }
.gallery-grid-full .gallery-item.is-wide { grid-column: 1 / -1; }
.gallery-grid-full .gallery-item:first-child.is-wide img { height: auto; aspect-ratio: 1140 / 539; object-fit: contain; }

/* Contact */
.contact-stage { position: relative; z-index: 2; padding-bottom: clamp(74px, 9vw, 124px); background: var(--paper); }
.contact-home { position: relative; z-index: 2; display: grid; grid-template-columns: .76fr 1.24fr; gap: 0; padding: 0; overflow: hidden; border: 1px solid rgba(48,66,57,.14); border-radius: 28px; background: var(--surface); color: var(--ink); box-shadow: 0 28px 70px rgba(31,40,35,.14); }
.contact-home-intro { display: flex; flex-direction: column; justify-content: center; padding: clamp(48px, 5vw, 68px); background: linear-gradient(145deg, #ad6846 0%, #8f4f37 100%); color: white; }
.contact-home .eyebrow { color: rgba(255,255,255,.72); }
.contact-home h2 { color: white; font-size: clamp(48px, 5.4vw, 72px); }
.contact-home h2 em { color: #f3d4c4; }
.contact-stack { align-self: center; margin: clamp(34px, 4vw, 54px); border-top: 1px solid var(--line); }
.contact-stack > a, .contact-stack > div { display: grid; grid-template-columns: 145px minmax(0, 1fr) 38px; gap: 16px; align-items: center; min-height: 78px; border-bottom: 1px solid var(--line); }
.contact-stack span { color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.contact-stack strong { min-width: 0; font-size: clamp(15px, 1.5vw, 18px); font-weight: 620; overflow-wrap: anywhere; }
.contact-stack i { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; font-size: 17px; font-style: normal; text-align: center; transition: transform .2s ease, background-color .2s ease; }
.contact-stack > a i { background: var(--paper-deep); }
.contact-stack > a:hover { color: #a65436; }
.contact-stack > a:hover i { background: #b65f3d; color: white; transform: rotate(8deg); }

/* Project detail */
.back-link { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13px; font-weight: 680; }
.back-link:hover { color: var(--accent); }
.project-page { padding-block: clamp(65px, 8vw, 104px) var(--section-space); }
.project-page > .back-link { margin-bottom: clamp(50px, 7vw, 82px); }
.project-page-copy { max-width: 820px; margin-bottom: 50px; }
.project-page h1 { margin-bottom: 24px; font-size: clamp(58px, 8vw, 104px); line-height: .92; }
.project-summary { margin-bottom: 0; color: var(--muted); font-size: clamp(18px, 2vw, 23px); }
.project-page figure { margin: 0 0 58px; overflow: hidden; border-radius: 22px; background: var(--paper-deep); }
.project-page figure img { width: 100%; max-height: 760px; object-fit: cover; }
.project-body { max-width: 690px; }
.project-body p { font-size: 18px; }

/* Footer */
.footer { position: relative; z-index: 1; padding: clamp(68px, 8vw, 96px) 0 26px; border-radius: 38px 38px 0 0; background: var(--forest); color: white; box-shadow: 0 -18px 60px rgba(40,50,44,.08); }
.home-page .footer { padding-top: clamp(68px, 8vw, 96px); border-radius: 38px 38px 0 0; box-shadow: 0 -18px 60px rgba(40,50,44,.08); }
.footer-grid { display: grid; grid-template-columns: 1.55fr .7fr; gap: clamp(54px, 9vw, 130px); padding-bottom: clamp(56px, 7vw, 82px); }
.footer-brand { display: block; width: min(220px, 100%); height: 98px; margin-bottom: 32px; overflow: hidden; border-radius: 4px; background: #10110f; }
.footer-intro .brand-logo { width: 100%; height: 100%; object-fit: cover; }
.footer-intro p { max-width: 430px; margin: 0; font-family: var(--serif); font-size: clamp(29px, 3vw, 42px); letter-spacing: -.04em; line-height: 1.1; }
.footer-column { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-column > span { margin-bottom: 12px; color: #dca183; font-size: 10px; font-weight: 780; letter-spacing: .14em; text-transform: uppercase; }
.footer-column a { padding-bottom: 2px; border-bottom: 1px solid transparent; color: rgba(255,255,255,.84); font-size: 14px; overflow-wrap: anywhere; }
.footer-column a:hover { border-bottom-color: currentColor; }
.footer-column a:hover { color: #efb392; }
.footer-bottom { display: grid; grid-template-columns: 1fr auto; gap: 25px; padding-top: 22px; border-top: 1px solid var(--line-light); color: rgba(255,255,255,.48); font-size: 10px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.footer-bottom a { color: rgba(255,255,255,.82); }
.footer-bottom a:hover { color: #efb392; }

/* Accessible lightbox */
.gallery-lightbox { width: min(96vw, 1240px); max-width: none; height: min(92vh, 880px); max-height: none; margin: auto; padding: 0; border: 0; border-radius: 18px; background: #171815; color: white; overflow: hidden; }
.gallery-lightbox[open] { display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; align-items: center; }
.gallery-lightbox::backdrop { background: rgba(17,18,16,.88); backdrop-filter: blur(7px); }
.gallery-lightbox figure { min-width: 0; height: 100%; margin: 0; padding: 34px 0 52px; display: grid; place-items: center; }
.gallery-lightbox img { max-width: 100%; max-height: calc(min(92vh, 880px) - 86px); object-fit: contain; }
.gallery-lightbox figcaption { position: absolute; bottom: 17px; left: 50%; color: rgba(255,255,255,.67); font-size: 12px; letter-spacing: .08em; transform: translateX(-50%); }
.lightbox-close, .lightbox-previous, .lightbox-next { z-index: 2; display: grid; width: 42px; height: 42px; padding: 0; place-items: center; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; background: rgba(255,255,255,.08); color: white; cursor: pointer; }
.lightbox-close:hover, .lightbox-previous:hover, .lightbox-next:hover { background: white; color: var(--ink); }
.lightbox-close { position: absolute; top: 14px; right: 14px; font-size: 25px; line-height: 1; }
.lightbox-previous, .lightbox-next { margin-inline: auto; font-size: 25px; }

@media (max-width: 1000px) {
  .hero-markdown { grid-template-columns: minmax(0, .95fr) minmax(360px, 1.05fr); gap: 42px; }
  .services-layout { grid-template-columns: 1fr; }
  .service-list { max-width: none; }
  .contact-home { grid-template-columns: 1fr; }
  .contact-home-intro { max-width: none; }
  .contact-stack { width: 100%; }
}

@media (max-width: 780px) {
  :root { --section-space: 82px; }
  html { scroll-padding-top: 73px; }
  .header-inner { min-height: 70px; }
  .brand { width: 108px; height: 48px; }
  .menu-toggle { display: flex; align-items: center; gap: 10px; padding: 9px 0; font-size: 12px; font-weight: 720; }
  .menu-toggle i, .menu-toggle i::before { display: block; width: 18px; height: 1px; background: currentColor; content: ""; transition: transform .2s ease; }
  .menu-toggle i::before { transform: translateY(-5px); }
  .menu-toggle[aria-expanded="true"] i { transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] i::before { transform: rotate(-90deg); }
  .nav { position: absolute; top: calc(100% + 1px); right: 0; left: 0; display: none; align-items: stretch; gap: 0; padding: 16px var(--gutter) 22px; border-bottom: 1px solid var(--line); background: var(--paper); box-shadow: 0 20px 35px rgba(30,31,28,.08); }
  .nav.open { display: flex; flex-direction: column; }
  .nav > a { padding: 11px 0; }
  .nav > a::after { display: none; }
  .nav-cta { margin: 8px 0 15px; padding-inline: 15px !important; text-align: center; }
  .language-switch { align-self: flex-start; }
  .hero-markdown { grid-template-columns: 1fr; gap: 42px; min-height: 0; padding-block: 48px 72px; }
  .hero-copy h1 { font-size: clamp(54px, 15vw, 78px); }
  .hero-picture { width: min(100%, 600px); }
  .hero-picture::before { inset: 10% -3% -4% 10%; }
  .hero-picture img { aspect-ratio: 1140 / 539; border-radius: 18px; }
  .services-layout { gap: 46px; }
  .service-list { grid-template-columns: 1fr; }
  .service-list article { display: grid; grid-template-columns: 66px 1fr; grid-template-rows: auto auto; column-gap: 18px; min-height: 0; padding: 22px; }
  .service-icon { grid-row: span 2; margin: 0; }
  .service-list h3 { align-self: end; margin: 2px 0 4px; }
  .projects { gap: 42px 16px; }
  .gallery-grid-preview, .gallery-grid-full { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .gallery-grid-preview .gallery-item:first-child { grid-column: 1 / -1; }
  .gallery-item img { height: auto; aspect-ratio: 4 / 3; }
  .gallery-grid-preview .gallery-item:first-child img { aspect-ratio: 1.8 / 1; }
  .gallery-grid-preview .gallery-item:first-child.is-wide img { aspect-ratio: 1140 / 539; object-fit: contain; }
  .gallery-cta { padding: 21px 21px 21px 23px; }
  .gallery-cta i { width: 48px; height: 48px; }
  .gallery-page-header { grid-template-columns: 1fr; gap: 28px; border-radius: 24px; }
  .gallery-page-header .back-link { margin-bottom: 48px; }
  .gallery-page-intro { max-width: 620px; }
  .gallery-grid-full .gallery-item { grid-column: auto; }
  .gallery-grid-full .gallery-item:nth-child(5) { grid-column: 1 / -1; }
  .gallery-grid-full .gallery-item img, .gallery-grid-full .gallery-item:nth-child(1) img, .gallery-grid-full .gallery-item:nth-child(2) img, .gallery-grid-full .gallery-item:nth-child(5) img { height: auto; aspect-ratio: 4 / 3; }
  .gallery-grid-full .gallery-item:nth-child(5) img { aspect-ratio: 1.8 / 1; }
  .gallery-grid-full .gallery-item:first-child.is-wide img { aspect-ratio: 1140 / 539; object-fit: contain; }
  .gallery-item::after { display: none; }
  .contact-home { padding: 0; border-radius: 22px; }
  .contact-home-intro { padding: 38px 28px; }
  .contact-stack { width: auto; margin: 28px; }
  .contact-stack > a, .contact-stack > div { grid-template-columns: 128px minmax(0, 1fr) 36px; gap: 12px; }
  .footer { border-radius: 24px 24px 0 0; }
  .home-page .footer { padding-top: 72px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-intro { grid-column: auto; }
  .gallery-lightbox { width: 100vw; height: 100dvh; border-radius: 0; }
  .gallery-lightbox[open] { grid-template-columns: 54px minmax(0, 1fr) 54px; }
  .gallery-lightbox figure { padding: 56px 0; }
  .gallery-lightbox img { max-height: calc(100dvh - 112px); }
}

@media (max-width: 560px) {
  .gallery-page { padding-block: 34px 72px; }
  .gallery-page-header { gap: 24px; margin-bottom: 28px; padding: 28px 22px; border-radius: 20px; }
  .gallery-page-header .back-link { margin-bottom: 34px; }
  .gallery-page-header h1 { font-size: clamp(56px, 18vw, 76px); }
  .gallery-page-intro { font-size: 16px; line-height: 1.55; }
  .gallery-count { margin-top: 24px; }
  .hero-copy h1, .markdown-copy h2, .section-heading h2, .work-head h2, .gallery-heading h2 { font-size: clamp(48px, 14vw, 64px); }
  .hero-lead { font-size: 16px; }
  .projects { grid-template-columns: 1fr; }
  .gallery-grid-full { display: block; columns: 2; column-gap: 12px; }
  .gallery-grid-full .gallery-item { display: inline-block; width: 100%; margin: 0 0 12px; break-inside: avoid; border-radius: 16px; box-shadow: 0 8px 24px rgba(34,39,35,.08); }
  .gallery-grid-full .gallery-item:nth-child(1), .gallery-grid-full .gallery-item:nth-child(2) { display: block; column-span: all; border-radius: 20px; }
  .gallery-grid-full .gallery-item img, .gallery-grid-full .gallery-item:nth-child(1) img, .gallery-grid-full .gallery-item:nth-child(2) img, .gallery-grid-full .gallery-item:nth-child(5) img { display: block; width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; }
  .gallery-cta { align-items: end; }
  .gallery-cta strong { font-size: 23px; }
  .gallery-cta i { width: 44px; height: 44px; }
  .contact-home { padding: 0; }
  .contact-home-intro { padding: 34px 22px; }
  .contact-stack { margin: 20px 22px 28px; }
  .contact-stack > a, .contact-stack > div { grid-template-columns: minmax(0, 1fr) 36px; gap: 3px 10px; align-content: center; min-height: 86px; padding-block: 12px; }
  .contact-stack span { grid-column: 1 / -1; }
  .contact-stack strong { grid-column: 1; }
  .contact-stack i { grid-column: 2; grid-row: 2; }
  .footer-grid { grid-template-columns: 1fr; gap: 38px; }
  .footer-intro { grid-column: auto; }
  .footer-bottom { grid-template-columns: 1fr; gap: 6px; }
  .home-page .footer { padding-top: 64px; }
  .gallery-lightbox[open] { grid-template-columns: 46px minmax(0, 1fr) 46px; }
  .lightbox-previous, .lightbox-next { width: 36px; height: 36px; }
}

@media (max-width: 380px) {
  .gallery-grid-full { column-gap: 9px; }
  .gallery-grid-full .gallery-item { margin-bottom: 9px; border-radius: 13px; }
}

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