/* Luisa Tentonello — ritmo editoriale, griglie regolari, prima il telefono. */
:root {
  --paper: #f4f2e9;
  --paper-light: #faf9f5;
  --ink: #262d28;
  --forest: #244a3b;
  --sage: #b9c2ac;
  --muted: #626b60;
  --line: #c6ccbe;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Arial, Helvetica, sans-serif;
  --gutter: clamp(20px, 4.8vw, 76px);
  --page-width: 1520px;
  --header-height: 80px;
  --section-space: clamp(64px, 7.2vw, 112px);
  --grid-gap: clamp(24px, 3.5vw, 52px);
  --ease: cubic-bezier(.2, .65, .2, 1);
}

/* Base e geometria comune. */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 20px); }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.75 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body.menu-open { overflow: hidden; }
button, input, textarea { font: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
a, button { touch-action: manipulation; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--forest); outline-offset: 5px; }
::selection { color: var(--forest); background: var(--sage); }
img { display: block; max-width: 100%; height: auto; }
figure, blockquote { margin: 0; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { font-weight: 400; line-height: 1.16; }
h1, h2, h3, h4, a, p { overflow-wrap: break-word; }
p + p { margin-top: 1.1em; }
svg { display: block; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.4; }
main { min-height: 45vh; }
.frame { width: 100%; max-width: var(--page-width); margin-inline: auto; padding-inline: var(--gutter); }
.frame > *, .header-inner > *, .footer-top > *, .footer-bottom > * { min-width: 0; }
.skip-link { position: fixed; z-index: 1000; top: 12px; left: 16px; padding: 12px 18px; color: var(--paper); background: var(--forest); transform: translateY(-160%); }
.skip-link:focus { transform: none; outline-color: var(--paper); }

/* Navigazione: il dropdown resta leggibile e con bersagli ampi fino a 900 px. */
.site-header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--line); background: var(--paper); transition: box-shadow .3s var(--ease); }
.is-scrolled .site-header { box-shadow: 0 4px 18px rgb(38 45 40 / .05); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--header-height); max-width: var(--page-width); margin-inline: auto; padding-inline: var(--gutter); }
.brand { display: inline-flex; align-items: center; gap: 16px; min-height: 48px; font-size: 12px; font-weight: 500; line-height: 1.4; letter-spacing: .13em; white-space: nowrap; }
.brand-rule { display: block; flex: 0 0 26px; width: 26px; height: 1px; background: var(--forest); }
.menu-toggle { position: relative; z-index: 102; display: none; flex: 0 0 48px; width: 48px; height: 48px; padding: 10px; border: 0; background: transparent; }
.menu-toggle span { display: block; width: 28px; height: 1px; background: var(--ink); transition: transform .3s var(--ease); }
.menu-toggle span + span { margin-top: 8px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 0 20px; font-size: 14px; }
.site-nav a { position: relative; display: inline-flex; align-items: center; min-height: 48px; }
.site-nav a::after { position: absolute; right: 0; bottom: 8px; left: 0; height: 1px; background: currentColor; content: ''; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.site-nav a:hover::after, .site-nav a[aria-current]::after { transform: scaleX(1); }

/* Titoli e righe: stessa scala e stessi margini sulle pagine interne. */
.eyebrow { font-family: var(--sans); font-size: 11px; font-weight: 400; line-height: 1.55; letter-spacing: .12em; }
.page-masthead, .project-masthead { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 22px; padding-top: 42px; padding-bottom: 34px; }
.page-masthead h1, .project-masthead h1 { max-width: 21ch; color: var(--forest); font-family: var(--serif); font-size: clamp(40px, 5.8vw, 84px); font-weight: 400; line-height: 1.08; letter-spacing: -.045em; }
.project-masthead .back-link { grid-column: 1 / -1; justify-self: start; margin-bottom: 2px; }
.project-masthead h1 { grid-column: 1 / -1; }
.masthead-count { padding-bottom: 5px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.masthead-rule, .section-rule, .rail-line { display: block; width: 100%; height: 1px; background: var(--line); }
.masthead-rule, .section-rule { grid-column: 1 / -1; }
.page-masthead:not(:has(> .masthead-rule))::after, .project-masthead:not(:has(> .masthead-rule))::after { grid-column: 1 / -1; display: block; width: 100%; height: 1px; background: var(--line); content: ''; }
.section-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 22px; margin-bottom: 30px; }
.section-line > h2:not(.eyebrow), .bio-copy h2, .timber-heading h2, .contact-form-wrap h2, .contact-information > h2 { color: var(--forest); font-family: var(--serif); font-size: clamp(34px, 4vw, 56px); line-height: 1.13; letter-spacing: -.04em; }
.section-line:not(:has(> .section-rule))::after { grid-column: 1 / -1; height: 1px; background: var(--line); content: ''; }
.text-link, .back-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; width: fit-content; max-width: 100%; min-height: 44px; padding-block: 10px; border-bottom: 1px solid currentColor; font-size: 11px; line-height: 1.5; letter-spacing: .07em; }
.text-link svg, .back-link svg { flex: 0 0 22px; width: 22px; height: 22px; transition: transform .35s var(--ease); }
.text-link:hover svg { transform: translateX(4px); }
.back-link { flex-direction: row-reverse; gap: 16px; border-bottom: 0; font-size: 12px; letter-spacing: 0; }
.back-link svg { transform: rotate(180deg); }
.back-link:hover svg { transform: rotate(180deg) translateX(4px); }

/* Fotografie: il contenitore stabilisce il taglio, la lightbox conserva l'intero file. */
.hero-photo > a, .feature-photo, .my-home-image, .portfolio-image, .project-hero > a, .gallery-image, .closing-photo { position: relative; display: block; width: 100%; overflow: hidden; background: #e0e4d9; }
.hero-photo > a > img, .feature-photo > img, .my-home-image > img, .portfolio-image > img, .project-hero > a > img, .gallery-image > img, .closing-photo > img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.image-expand { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: var(--forest); background: var(--paper); font-size: 21px; line-height: 1; pointer-events: none; }
.photo-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
.gallery-image { aspect-ratio: 3 / 2; }
.gallery-image.portrait > img { object-fit: contain; }

/* Home: un racconto continuo con allineamenti ripetibili, nessun offset arbitrario. */
.home-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; padding-top: 40px; padding-bottom: 26px; }
.hero-copy { display: flex; flex-direction: column; align-items: start; justify-content: center; }
.hero-copy .eyebrow { margin-bottom: 14px; color: var(--ink); font-size: clamp(22px, 2.2vw, 30px); line-height: 1.3; letter-spacing: .015em; }
.hero-title { max-width: 11ch; color: var(--forest); font-family: var(--serif); font-size: clamp(38px, 7.2vw, 64px); line-height: 1.08; letter-spacing: -.04em; }
.round-arrow { display: none; align-items: center; justify-content: center; width: 48px; height: 48px; margin-top: 34px; border: 1px solid var(--line); border-radius: 50%; font-size: 25px; transition: color .3s, background .3s; }
.round-arrow:hover { color: var(--paper); background: var(--forest); }
.hero-photo > a { aspect-ratio: auto; }
.hero-photo > a > img { width: 100%; height: auto; object-fit: contain; }
.js .hero-photo > a[data-motion='image'] > img { transform: none; }
.hero-photo figcaption { padding-top: 6px; }
.photo-caption { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 44px; font-size: 12px; line-height: 1.5; }
.photo-caption svg { flex: 0 0 20px; width: 20px; height: 20px; }
.home-quote { max-width: 1220px; padding-top: 42px; padding-bottom: var(--section-space); text-align: center; }
.quote-mark { display: block; height: 49px; color: #899a7d; font-family: var(--serif); font-size: 77px; line-height: 1; }
.home-quote blockquote { max-width: 32ch; margin-inline: auto; color: var(--forest); font-family: var(--serif); font-size: clamp(25px, 3vw, 40px); line-height: 1.42; letter-spacing: -.02em; text-wrap: pretty; }
.featured { padding-bottom: var(--section-space); }
.featured > .section-line { margin-bottom: 34px; }
.featured-project, .featured-project.reverse { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.featured-project + .featured-project { margin-top: 52px; }
.feature-photo { aspect-ratio: 3 / 2; }
.feature-copy { display: block; }
.project-index { grid-column: 1; grid-row: 1 / 4; padding-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.feature-copy h3 { grid-column: 2; margin-bottom: 14px; color: var(--forest); font-family: var(--serif); font-size: clamp(29px, 3vw, 44px); line-height: 1.16; letter-spacing: -.035em; }
.feature-copy p { grid-column: 2; max-width: 40ch; margin-bottom: 15px; font-size: 15px; line-height: 1.8; }
.feature-copy .text-link { grid-column: 2; justify-self: start; }
.bio-panel { padding-block: var(--section-space); color: var(--paper); background: var(--forest); }
.bio-inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 34px; align-items: start; }
.bio-portrait { display: block; width: min(100%, 305px); max-width: 305px; }
.bio-portrait img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.bio-copy h2 { margin-bottom: 24px; color: var(--paper); }
.bio-copy p { max-width: 60ch; color: #e6e9e0; font-size: 15px; line-height: 1.85; }
.bio-panel a:focus-visible { outline-color: var(--paper); }
.my-home { padding-top: var(--section-space); padding-bottom: var(--section-space); }
.my-home-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.my-home-image { aspect-ratio: 3 / 2; }
.my-home-copy p { max-width: 54ch; color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.85; }
.timber-section { padding-top: 0; padding-bottom: var(--section-space); }
.timber-heading { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 30px; padding-bottom: 32px; border-top: 1px solid var(--line); }
.timber-heading h2 { margin: 0; }
.timber-heading p { max-width: 60ch; font-size: 15px; line-height: 1.85; }
.timber-heading .text-link { margin-top: 18px; }
.timber-gallery { gap: 20px; }
.closing-project { padding-block: var(--section-space); }
.closing-photo { aspect-ratio: 3 / 2; }
.closing-project > .section-line { margin-top: 28px; }

/* Portfolio: tutte le opere condividono larghezza, proporzioni e baseline. */
.portfolio-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: stretch; padding-bottom: var(--section-space); }
.portfolio-item { display: flex; min-width: 0; flex-direction: column; align-items: start; gap: 0; padding: 0; }
.portfolio-image { flex: 0 0 auto; aspect-ratio: 3 / 2; }
.portfolio-caption { display: flex; align-items: first baseline; justify-content: space-between; gap: 16px; width: 100%; padding-top: 14px; }
.portfolio-caption h2 { min-width: 0; max-width: 30ch; color: var(--forest); font-family: var(--serif); font-size: clamp(26px, 2.5vw, 34px); line-height: 1.22; letter-spacing: -.025em; }
.portfolio-caption h2 > a { display: block; min-height: 44px; padding-block: 5px; }
.portfolio-caption > span { flex: 0 0 auto; padding-top: 8px; color: var(--muted); font-size: 11px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.portfolio-description { max-width: 57ch; margin-top: 10px; font-size: 15px; line-height: 1.8; }
.portfolio-item > .text-link { margin-top: 12px; }

/* Progetti e articoli: bordi pagina comuni, testo con misura di lettura costante. */
.project-hero > a { aspect-ratio: 3 / 2; }
.project-story { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 42px; padding-bottom: 46px; }
.story-rail { display: none; }
.prose { min-width: 0; max-width: 66ch; font-size: 16px; line-height: 1.85; }
.prose p { margin: 0 0 1.15em; }
.prose p:last-child { margin-bottom: 0; }
.prose h2 { margin-top: 1.6em; margin-bottom: .65em; color: var(--forest); font-family: var(--serif); font-size: clamp(28px, 3vw, 42px); line-height: 1.2; letter-spacing: -.03em; }
.prose h2:first-child { margin-top: 0; }
.project-story .prose > h2:first-child { margin-bottom: 24px; font-family: var(--sans); font-size: 12px; line-height: 1.55; letter-spacing: .08em; }
.prose h3, .prose h4 { margin-top: 1.5em; margin-bottom: .65em; color: var(--forest); font-family: var(--serif); font-size: clamp(26px, 2.5vw, 34px); line-height: 1.22; letter-spacing: -.025em; }
.prose a:not(.text-link) { text-decoration: underline; text-underline-offset: 4px; }
.prose strong, .prose b { font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.3em; margin-block: 1.2em; }
.prose li { padding-left: .35em; margin-block: .65em; }
.prose .text-link { margin-top: 5px; margin-bottom: 1.4em; text-decoration: none; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; }
.prose th, .prose td { padding: 10px; border-bottom: 1px solid var(--line); text-align: left; overflow-wrap: anywhere; }
.project-gallery .photo-grid { gap: 20px; }
.project-next { padding-top: 58px; padding-bottom: var(--section-space); }
.project-next > a { display: grid; grid-template-columns: minmax(0, 1fr) 32px; gap: 15px 24px; align-items: center; min-height: 64px; padding-top: 28px; border-top: 1px solid var(--line); }
.project-next span { grid-column: 1 / -1; color: var(--muted); font-size: 12px; line-height: 1.5; }
.project-next strong { color: var(--forest); font-family: var(--serif); font-size: clamp(28px, 3.4vw, 48px); font-weight: 400; line-height: 1.2; letter-spacing: -.03em; }
.project-next svg { width: 28px; height: 28px; transition: transform .3s var(--ease); }
.project-next > a:hover svg { transform: translateX(4px); }
.editorial-sections { padding-bottom: var(--section-space); }
.editorial-section { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; padding-top: 36px; padding-bottom: 42px; border-bottom: 1px solid var(--line); }
.editorial-section:first-child { padding-top: 4px; }
.editorial-section:last-child { padding-bottom: 0; border-bottom: 0; }
.editorial-aside > h2 { max-width: 22ch; color: var(--forest); font-family: var(--serif); font-size: clamp(30px, 3.5vw, 48px); line-height: 1.18; letter-spacing: -.035em; }
.editorial-aside img { width: 100%; height: auto; margin-top: 24px; }
.editorial-aside > img:first-child { margin-top: 0; }
.biography .editorial-section:first-child .editorial-aside img { max-width: 305px; }
.editorial-section .prose > h2:first-child, .editorial-section .prose > h3:first-child { margin-top: 0; }
.editorial-photo { max-width: 430px; }
.editorial-document { max-width: 100%; margin-top: 30px; }
.editorial-document > a { position: relative; display: block; width: fit-content; max-width: 100%; overflow: hidden; background: var(--paper-light); }
.editorial-document img { width: auto; max-width: 100%; height: auto; }
.article-gallery { padding-bottom: var(--section-space); }
.video-embed { width: 100%; aspect-ratio: 16 / 9; margin-top: 28px; background: #e0e4d9; }
.video-embed iframe { display: block; width: 100%; height: 100%; border: 0; }

/* Contatti: campi mai compressi, identica scala delle pagine editoriali. */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 50px; padding-top: 4px; padding-bottom: 58px; }
.contact-form-wrap h2, .contact-information > h2 { margin-bottom: 28px; }
.form-field { margin-bottom: 25px; }
.form-field label { display: block; margin-bottom: 6px; font-size: 12px; line-height: 1.6; }
.form-field label span { color: var(--muted); }
.form-field input, .form-field textarea { display: block; width: 100%; min-width: 0; min-height: 50px; padding: 12px 0; border: 0; border-bottom: 1px solid #98a58f; border-radius: 0; color: var(--ink); background: transparent; font-size: 16px; line-height: 1.6; resize: vertical; }
.form-field input:focus, .form-field textarea:focus { border-bottom-color: var(--forest); }
.form-field input::placeholder, .form-field textarea::placeholder { color: #697362; opacity: 1; }
.form-field textarea { min-height: 160px; }
.form-trap { position: absolute; top: auto; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.submit-button { display: flex; align-items: center; justify-content: space-between; gap: 50px; width: 100%; min-height: 56px; padding: 17px 22px; border: 1px solid var(--forest); color: var(--paper); background: var(--forest); font-size: 12px; line-height: 1.5; letter-spacing: .08em; transition: color .3s, background .3s; }
.submit-button:hover { color: var(--forest); background: transparent; }
.submit-button:disabled { opacity: .6; cursor: wait; }
.form-status { min-height: 1.6em; margin-top: 18px; font-size: 14px; line-height: 1.7; }
.form-status[data-error] { color: #8a352a; }
.contact-information > div { padding-block: 20px; border-top: 1px solid var(--line); }
.contact-information h3 { margin-bottom: 7px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.contact-information p, .contact-information a { font-size: 15px; line-height: 1.8; overflow-wrap: anywhere; }
.contact-information a { display: inline-flex; align-items: center; min-height: 44px; }
.contact-information a:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact-map { padding-bottom: var(--section-space); }
.contact-map iframe { display: block; width: 100%; height: 340px; border: 0; background: #e0e4d9; }

/* Footer. */
.site-footer { padding: 48px var(--gutter) 0; color: var(--forest); background: #e4e8dc; }
.footer-top, .footer-bottom { max-width: calc(var(--page-width) - var(--gutter) * 2); margin-inline: auto; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; padding-bottom: 32px; }
.footer-name { display: block; width: fit-content; font-family: var(--serif); font-size: clamp(38px, 5vw, 66px); line-height: .99; letter-spacing: -.045em; }
.footer-contact { display: flex; flex-direction: column; align-items: start; font-size: 14px; line-height: 1.75; }
.footer-contact a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-contact p { max-width: 27ch; margin-top: 8px; }
.footer-contact a:hover, .footer-top nav a:hover, .footer-bottom a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-top nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; align-content: start; font-size: 14px; }
.footer-top nav a { display: flex; align-items: center; min-height: 44px; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; min-height: 74px; padding-block: 16px; border-top: 1px solid #b4c0ac; font-size: 11px; line-height: 1.7; }
.footer-bottom > span { flex-basis: 100%; }
.footer-bottom > a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-bottom .back-top { justify-content: center; width: 44px; margin-left: auto; font-size: 24px; }

/* Lightbox. */
.lightbox { position: fixed; inset: 0; width: 100%; max-width: none; height: 100dvh; max-height: none; padding: 70px 16px 92px; overflow: hidden; border: 0; color: var(--paper); background: rgba(17, 24, 20, .98); }
.lightbox::backdrop { background: rgba(17, 24, 20, .95); }
.lightbox[open] { display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; }
.lightbox figure { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; width: 100%; height: 100%; min-height: 0; }
.lightbox figure img { width: auto; max-width: 100%; height: auto; max-height: calc(100dvh - 200px); object-fit: contain; }
.lightbox figcaption { max-width: 60ch; font-size: 12px; line-height: 1.5; text-align: center; }
.lightbox button { position: absolute; z-index: 2; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 1px solid #667560; border-radius: 50%; color: var(--paper); background: transparent; font-size: 25px; line-height: 1; }
.lightbox button:hover { color: var(--forest); background: var(--paper); }
.lightbox button:focus-visible { outline-color: var(--paper); }
.lightbox-close { top: 14px; right: 14px; font-family: var(--sans); }
.lightbox-prev { bottom: 19px; left: calc(50% - 85px); }
.lightbox-next { right: calc(50% - 85px); bottom: 19px; }
.lightbox-counter { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); font-size: 11px; line-height: 1.6; letter-spacing: .06em; }
.lightbox button[hidden] { display: none; }
.error-page { padding-top: 64px; padding-bottom: var(--section-space); }
.error-page h1 { margin-bottom: 24px; color: var(--forest); font-family: var(--serif); font-size: clamp(90px, 14vw, 140px); line-height: 1; }
.error-page .text-link { margin-right: 24px; }

/* Movimento a livello di componente, mai un fade uniforme di tutta la pagina. */
@media (prefers-reduced-motion: no-preference) {
  .js [data-motion='text'] { opacity: 0; transform: translateY(16px); transition: opacity .65s var(--ease), transform .8s var(--ease); }
  .js [data-motion='text'].is-visible { opacity: 1; transform: translateY(0); }
  .js [data-motion='image'] { clip-path: inset(10% 0 10% 0); transition: clip-path 1s var(--ease); }
  .js [data-motion='image'] > img { transform: translate3d(0, var(--parallax-y, 0px), 0) scale(1.04); transition: transform 1.2s var(--ease); }
  .js [data-motion='image'].is-visible { clip-path: inset(0); }
  .js [data-motion='image'].is-visible > img { transform: translate3d(0, var(--parallax-y, 0px), 0) scale(var(--parallax-scale, 1)); }
  .js [data-motion='line'] { transform: scaleX(0); transform-origin: left; transition: transform .95s var(--ease); }
  .js [data-motion='line'].is-visible { transform: scaleX(1); }
}

/* Dropdown fino al tablet; la navigazione resta disponibile senza JavaScript. */
@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; }
  .site-nav { flex-basis: 100%; padding-bottom: 14px; }
  .js .header-inner { flex-wrap: nowrap; height: var(--header-height); }
  .js .menu-toggle { display: block; }
  .js .site-nav { position: absolute; top: var(--header-height); right: 0; left: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; max-height: calc(100dvh - var(--header-height)); padding: 18px var(--gutter) 25px; overflow-y: auto; overscroll-behavior: contain; visibility: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); opacity: 0; transform: translateY(-8px); transition: none; }
  .js .site-nav a { justify-content: flex-start; min-height: 54px; padding-block: 10px; font-family: var(--serif); font-size: 24px; line-height: 1.3; letter-spacing: -.01em; }
  .js .site-nav a + a { border-top: 1px solid #dde1d5; }
  .js .site-nav a::after { right: auto; bottom: 10px; width: 24px; }
  .js .menu-open .site-nav { visibility: visible; opacity: 1; transform: translateY(0); transition: opacity .25s var(--ease), transform .3s var(--ease); }
  .menu-open .menu-toggle span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .menu-open .menu-toggle span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
  .page-masthead, .project-masthead { column-gap: 14px; }
  .section-line > .text-link { gap: 15px; }
}

@media (min-width: 600px) {
  .footer-top { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px var(--grid-gap); }
  .footer-name { grid-column: 1 / -1; }
  .footer-top nav { grid-template-columns: minmax(0, 1fr); justify-self: end; min-width: 140px; }
  .hero-title { font-size: clamp(46px, 6.5vw, 60px); }
  .page-masthead, .project-masthead { padding-top: 52px; padding-bottom: 42px; }
}

@media (min-width: 901px) {
  :root { --header-height: 98px; }
  .header-inner { gap: 36px; }
  .brand { gap: 20px; font-size: 13px; }
  .brand-rule { flex-basis: 32px; width: 32px; }
  .site-nav { flex-wrap: nowrap; gap: clamp(22px, 2.4vw, 36px); font-size: 13px; }
  .home-hero { grid-template-columns: minmax(0, 1fr); gap: 30px; padding-top: 34px; padding-bottom: 22px; }
  .hero-copy { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; align-items: center; justify-items: center; gap: 14px 24px; width: min(100%, 1080px); justify-self: center; padding: 0; text-align: center; }
  .hero-copy .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
  .hero-title { grid-column: 2; max-width: none; font-size: clamp(48px, 4.5vw, 64px); }
  .round-arrow { grid-column: 3; display: flex; margin-top: 0; }
  .hero-photo { width: min(100%, 1080px); justify-self: center; }
  .home-quote { padding-top: 64px; }
  .quote-mark { height: 61px; font-size: 94px; }
  .featured > .section-line { margin-bottom: 42px; }
  .featured-project, .featured-project.reverse { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--grid-gap); align-items: start; }
  .featured-project + .featured-project { margin-top: 64px; }
  .feature-copy { display: block; padding: 0; }
  .project-index { display: block; padding-top: 0; margin-bottom: 20px; }
  .feature-copy h3 { margin-bottom: 20px; }
  .feature-copy p { margin-bottom: 20px; }
  .bio-inner { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--grid-gap); align-items: start; }
  .bio-portrait { justify-self: start; }
  .bio-copy p { font-size: 16px; }
  .my-home-body { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--grid-gap); align-items: start; }
  .timber-heading { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--grid-gap); padding-top: 36px; padding-bottom: 40px; }
  .timber-heading p { font-size: 16px; }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--grid-gap); }
  .timber-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
  .timber-gallery .gallery-image { aspect-ratio: 1; }
  .timber-gallery .gallery-image > img { object-fit: cover; }
  .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 52px var(--grid-gap); }
  .portfolio-caption { padding-top: 17px; }
  .portfolio-description { max-width: 50ch; }
  .project-hero > a { aspect-ratio: 16 / 9; }
  .project-story { grid-template-columns: 64px minmax(0, 1fr); gap: var(--grid-gap); padding-block: 64px; }
  .story-rail { display: block; padding-top: 12px; }
  .project-gallery .photo-grid { gap: var(--grid-gap); }
  .project-next { padding-top: 76px; }
  .project-next > a { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) 32px; gap: var(--grid-gap); padding-top: 30px; }
  .project-next span { grid-column: auto; }
  .editorial-section { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: var(--grid-gap); padding-top: 52px; padding-bottom: 58px; }
  .editorial-section:first-child { padding-top: 4px; }
  .editorial-section:last-child { padding-bottom: 0; }
  .editorial-aside > h2 { max-width: 17ch; }
  .editorial-aside img { margin-top: 30px; }
  .contact-layout { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--grid-gap); padding-bottom: 72px; }
  .contact-form-wrap h2, .contact-information > h2 { font-size: clamp(32px, 3vw, 44px); }
  .contact-information { padding-left: var(--grid-gap); border-left: 1px solid var(--line); }
  .submit-button { width: fit-content; min-width: 210px; }
  .contact-map iframe { height: 430px; }
  .site-footer { padding-top: 64px; }
  .footer-top { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, .45fr); gap: var(--grid-gap); padding-bottom: 45px; }
  .footer-name { grid-column: auto; align-self: start; }
  .footer-top nav { justify-self: stretch; min-width: 0; font-size: 13px; }
  .footer-contact { font-size: 14px; }
  .footer-bottom { gap: 14px 28px; }
  .footer-bottom > span { flex-basis: auto; }
  .lightbox { padding: 60px 86px 66px; }
  .lightbox figure img { max-height: calc(100dvh - 170px); }
  .lightbox-prev { top: calc(50% - 24px); bottom: auto; left: 20px; }
  .lightbox-next { top: calc(50% - 24px); right: 20px; bottom: auto; }
  .lightbox-close { top: 20px; right: 20px; }
  .lightbox-counter { bottom: 24px; }
}

@media (min-width: 1200px) {
  .featured-project, .featured-project.reverse, .bio-inner, .my-home-body, .timber-heading { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
  .feature-copy { max-width: 40ch; }
  .bio-portrait { justify-self: start; }
}

@media (min-width: 1101px) and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .project-hero > a[data-motion='image'] { --parallax-scale: 1.06; }
}

@media (max-width: 380px) {
  .brand { gap: 10px; font-size: 10px; letter-spacing: .12em; }
  .brand-rule { flex-basis: 18px; width: 18px; }
  .hero-title { font-size: 38px; }
  .page-masthead h1, .project-masthead h1 { font-size: 37px; }
  .section-line { column-gap: 14px; }
  .section-line > h2:not(.eyebrow) { font-size: 31px; }
  .section-line > .eyebrow { font-size: 10px; letter-spacing: .08em; }
  .section-line > .text-link { gap: 10px; font-size: 10px; }
  .portfolio-caption h2 { font-size: 25px; }
}

@media (hover: hover) and (pointer: fine) {
  .image-expand { opacity: 0; transition: opacity .3s var(--ease); }
  a:hover > .image-expand, a:focus-visible > .image-expand { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-motion] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .js [data-motion='image'] > img, [data-parallax] > img { transform: none !important; }
}

@media print {
  .site-header, .site-footer, .lightbox, .text-link, .back-link, .image-expand, .project-next, .round-arrow { display: none !important; }
  body { color: #111; background: #fff; }
  .frame { max-width: none; padding-inline: 0; }
  .page-masthead, .project-masthead { padding-top: 0; }
  .project-story { display: block; }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .js [data-motion] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .js [data-motion='image'] > img { transform: none !important; }
}
