/* JP1986 architectural presentation: warm paper, charcoal, restrained brass. */
:root {
  --ink: #252622;
  --paper: #f8f6f1;
  --subtle: #746f65;
  --line: #dedad1;
  --gold: #a68b5e;
  --warm: #eeebe4;
}

body { background: var(--paper); }
html { scroll-padding-top: 100px; }
.wrap { width: min(1320px, calc(100% - 112px)); }
.section-space { padding-block: 132px; }
.eyebrow { color: var(--subtle); font-size: 10px; letter-spacing: 2.2px; }
.section-no { color: #806746; }
.muted { color: #96876f; }
.text-link { border-color: var(--ink); }
.site-header {
  height: 86px;
  padding-inline: 48px;
  background: #f8f6f1f7;
  border-color: var(--line);
  backdrop-filter: blur(16px);
}
.brand img { width: 41px; height: 40px; }
.brand-type { font-size: 25px; }
.brand-type small { font-size: 7px; letter-spacing: 1.3px; }
.desktop-nav { gap: 30px; margin-right: 56px; }
.desktop-nav a { color: #5f5e56; font-size: 12px; }
.desktop-nav a:hover { color: var(--ink); }
.desktop-nav a.is-current { color: var(--ink); }
.desktop-nav a.is-current:after { width: 100%; background: var(--gold); }
.mobile-nav a.is-current { color: #8c7045; }
.header-contact { font-size: 12px; gap: 24px; border-color: #aaa18f; }
.header-contact:hover { border-color: var(--ink); }

/* The opening composition gives the architecture its own uninterrupted frame. */
.hero {
  display: grid;
  grid-template-columns: 43% 57%;
  height: auto;
  min-height: 660px;
  color: var(--ink);
  background: var(--paper);
  padding: 30px 30px 30px 0;
}
.hero-content {
  width: auto;
  margin: 0;
  padding: 45px 30px 22px max(56px, calc((100vw - 1320px) / 2));
  justify-content: center;
  align-items: flex-start;
}
.hero .eyebrow {
  font-size: 9px;
  letter-spacing: 2px;
  gap: 14px;
  margin-bottom: 30px;
  white-space: nowrap;
}
.gold-line { width: 24px; flex-shrink: 0; }
.hero h1 {
  font-size: clamp(52px, 5.15vw, 82px);
  font-weight: 400;
  line-height: 1.21;
  letter-spacing: -2.5px;
  margin-bottom: 26px;
}
.hero .serif-accent { color: #a28a65; }
.hero-description { color: var(--subtle); font-size: 14px; line-height: 1.9; margin-bottom: 28px; }
.button-dark { background: var(--ink); color: #fff; border-color: var(--ink); font-size: 12px; padding: 14px 20px; gap: 38px; }
.button-dark:hover { background: #4d493f; border-color: #4d493f; }
.hero-studio-note { display: flex; align-items: center; gap: 14px; font: 400 8px/1.8 var(--sans); letter-spacing: 1.1px; margin-top: 42px; color: #5c5b52; }
.hero-studio-note small { font-size: 7px; letter-spacing: 1.15px; color: #948c7e; }
.hero-note-line { width: 28px; height: 28px; border-left: 1px solid #b4a486; border-bottom: 1px solid #b4a486; }
.hero-visual { position: relative; min-width: 0; min-height: 630px; overflow: hidden; background: #d7d5cf; }
.hero-image { object-position: 52% center; animation: none; }
.hero-shade { background: linear-gradient(0deg, #141812b3, transparent 38%); }
.hero-visual-label { position: absolute; top: 26px; left: 28px; color: #fff; font: 400 9px var(--sans); letter-spacing: 2px; padding: 10px 13px; background: #26282069; border: 1px solid #ffffff50; backdrop-filter: blur(8px); }
.hero-project { position: absolute; left: 32px; right: 32px; bottom: 28px; color: #fff; display: flex; align-items: center; justify-content: space-between; padding-top: 22px; border-top: 1px solid #ffffff50; }
.hero-project small { display: block; font: 400 9px/1.4 var(--sans); letter-spacing: 2.3px; margin-bottom: 10px; }
.hero-project strong { display: block; font-size: 21px; font-weight: 400; }
.hero-project em { display: block; font-size: 9px; font-style: normal; color: #e5e1d6; margin-top: 4px; }
.hero-project-arrow { width: 45px; height: 45px; border: 1px solid #ffffff60; border-radius: 50%; display: grid; place-items: center; font: 300 27px var(--sans); transition: background .2s, transform .2s; }
.hero-project:hover .hero-project-arrow { background: #ffffff20; transform: translate(2px, -2px); }
.hero-image-edge { position: absolute; top: 27px; right: 16px; writing-mode: vertical-rl; font: 400 8px var(--sans); color: #fff; letter-spacing: 2px; }
.discipline-strip { background: var(--paper); padding: 27px 56px; gap: 35px; justify-content: flex-start; font-size: 9px; letter-spacing: 2.7px; border-color: var(--line); }
.discipline-strip .asterisk { font: 300 20px var(--sans); color: #b8aa91; }
.discipline-strip > span:nth-last-child(2) { display: inline; }
.strip-end { margin-left: auto; color: #948c7e; font-size: 8px; letter-spacing: 1.8px; }

/* Studio statement and material detail. */
.about { grid-template-columns: .95fr 1.05fr; gap: 104px; }
.about h2 { font-size: clamp(37px, 4vw, 57px); font-weight: 400; line-height: 1.4; letter-spacing: -1.7px; }
.about-copy { padding-top: 39px; max-width: none; }
.about-copy .intro { font-size: 21px; line-height: 1.8; margin-bottom: 23px; }
.about-copy > p { font-size: 14px; line-height: 2.1; }
.studio-wordmark { margin-top: 83px; margin-bottom: 0; font: 400 112px/.8 var(--sans); letter-spacing: -9px; color: #e3ded4; }
.studio-wordmark span { display: block; font-size: 21px; letter-spacing: 9px; padding-left: 8px; margin-top: 21px; color: #b6ab97; }
.studio-detail { margin: 52px 0 0; }
.studio-detail img { width: 100%; height: 225px; object-fit: cover; object-position: center 56%; }
.studio-detail figcaption { display: flex; justify-content: space-between; gap: 12px; font: 400 7px var(--sans); color: #857c6f; letter-spacing: 1px; padding-top: 12px; }

/* An editorial collection: one featured project, then paired photographs. */
.projects { background: var(--warm); padding-top: 102px; }
.section-heading { margin-bottom: 48px; }
.section-heading h2 { font-weight: 400; font-size: clamp(35px, 3.6vw, 53px); letter-spacing: -1.4px; }
.section-description { font-size: 13px; line-height: 1.9; }
.collection-tabs { border-color: #d2ccc0; gap: 40px; margin-bottom: 26px; }
.collection-tab { font-size: 16px; color: #716656; padding-bottom: 22px; }
.collection-tab.active, .collection-tab:hover { color: var(--ink); }
.collection-tab.active:after { background: var(--ink); }
.collection-tab > span { border-color: #cbc3b5; color: #716656; }
.collection-tab.active > span { background: var(--ink); border-color: var(--ink); }
.filter { color: #787266; border-radius: 0; font-size: 11px; }
.filter.active { background: #292b26; }
.filter:hover:not(.active) { border-color: #b6ac99; }
.project-search { border-color: #bdb5a7; }
.project-search svg, .project-search input::placeholder { color: #716656; }
.collection-caption { border-color: #d6d0c3; color: #716656; margin-bottom: 32px; font-size: 10px; }
.collection-caption .project-count { color: #716656; }
.project-grid { grid-template-columns: 1fr 1fr; gap: 54px 34px; }
.project-card:nth-child(even), .project-card:nth-child(odd) { margin: 0; }
.project-grid:not(.filtered) .project-card:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; }
.project-picture, .project-card:nth-child(even) .project-picture { aspect-ratio: 1.45; background: #ddd7cb; }
.project-grid:not(.filtered) .project-card:first-child .project-picture { grid-column: 1 / -1; aspect-ratio: 2.1; }
.project-grid:not(.filtered) .project-card:first-child .project-meta { grid-column: 1; }
.project-grid:not(.filtered) .project-card:first-child .project-meta > span { display: none; }
.project-grid:not(.filtered) .project-card:first-child .project-meta h3 { font-size: 29px; font-weight: 400; }
.project-grid:not(.filtered) .project-card:first-child .project-subtitle { grid-column: 1; }
.project-grid:not(.filtered) .project-card:first-child .project-contents-preview { grid-column: 2; grid-row: 2 / 4; align-self: center; margin: 0; }
.project-index { font-size: 8px; letter-spacing: 1.6px; padding: 8px 11px; top: 20px; left: 20px; background: #f8f6f1ed; }
.project-type-badge { top: 20px; right: 20px; background: #272920df; border-radius: 0; padding: 6px 11px; font-size: 9px; }
.project-open { right: 22px; bottom: 22px; width: 46px; height: 46px; background: #f8f6f1; }
.project-card:hover .project-open { background: #d8c8a7; }
.project-meta { margin-top: 21px; gap: 20px; }
.project-meta h3 { font-size: 22px; font-weight: 400; letter-spacing: -.3px; }
.project-meta > span { color: #716656; font-size: 10px; }
.project-subtitle { margin-top: 5px; font: 400 11px/1.6 var(--sans); color: #716656; letter-spacing: .4px; }
.project-contents-preview { gap: 0; margin-top: 15px; }
.project-contents-preview span { color: #716656; border: 0; border-radius: 0; padding: 0 11px; border-right: 1px solid #c7bead; font-size: 9px; }
.project-contents-preview span:first-child { padding-left: 0; }
.project-contents-preview span:last-child { border: 0; padding-right: 0; }
.portfolio-empty { border-color: #cfc5b3; background: transparent; }
.empty-symbol { color: #afa18a; }
.portfolio-empty .eyebrow, .portfolio-empty > p:not(.eyebrow) { color: #847a68; }

/* Services, process and contact share the same rhythm and restrained palette. */
.services { grid-template-columns: .85fr 1.35fr; gap: 100px; }
.services-intro h2 { font-size: 49px; font-weight: 400; line-height: 1.4; }
.service-number, .service summary small { color: #7b6b52; }
.service summary { padding-block: 32px; }
.service summary > span:nth-child(2) { font-size: 22px; font-weight: 400; }
.service-content { color: var(--subtle); line-height: 2; }
.service-tags span { border-color: var(--line); color: #8c816d; border-radius: 0; }
.service[open] .plus { background: var(--warm); }
.plus { border-color: #cfc8bb; }
.architecture-lines span { border-color: #b2a68e; }
.detail-banner { height: 535px; }
.detail-banner-shade { background: linear-gradient(90deg, #1d211aca, #1d211a25); }
.detail-banner-copy { padding-top: 140px; }
.detail-banner .eyebrow { color: #ebe4d8; font-size: 9px; }
.detail-banner-copy > p:last-child { font-weight: 400; font-size: 54px; line-height: 1.4; }
.detail-banner-copy > p:last-child span { color: #d6c5a3; }
.process-grid { gap: 35px; margin-top: 62px; }
.step-number { font-size: 49px; color: #99886a; font-weight: 400; border-color: var(--line); }
.step-number > span { color: #aaa08e; }
.process-grid h3 { font-size: 19px; font-weight: 400; }
.process-grid p { font-size: 12px; color: var(--subtle); line-height: 2; }
.contact { background: #252822; }
.contact .eyebrow, .contact-copy > p { color: #ccc6ba; }
.contact .section-no { color: #c4ab80; }
.contact h2 { font-size: 62px; font-weight: 400; line-height: 1.4; }
.contact h2 > span { color: #c0a77e; }
.contact-grid { gap: 95px; }
.contact-links a { border-color: #606151; }
.contact-links small { color: #a49d8c; }
.contact-links a > span { color: #f2eee5; font-size: 20px; }
.project-form { background: #f3f0e8; color: var(--ink); border: 1px solid #d8cdbc; padding: 40px; }
.project-form label { color: #645b4c; }
.project-form label > span { color: #865c2e; }
.project-form input::placeholder, .project-form textarea::placeholder { color: #716656; opacity: 1; }
.project-form option { background: var(--paper); color: var(--ink); }
.form-status, #email-fallback { color: #65583e; }
.copy-brief { color: #4c4335; border-color: #96876e; }
.project-form input, .project-form textarea, .project-form select { border-color: #d2c9b9; color: var(--ink); border-radius: 0; }
.form-title { font-size: 23px; font-weight: 400; }
.form-intro, .form-note { color: #716656; }
.button-gold { background: #c0a67b; color: #28261f; border: 0; font-size: 12px; }
.button-gold:hover { background: #d2bc95; }
.site-footer { background: #1f211d; color: #eee7d9; }
.footer-top, .footer-bottom { border-color: #3b3e33; }
.footer-top p, .footer-bottom { color: #aaa393; }
.footer-brand { font-weight: 500; font-size: 46px; letter-spacing: -2px; }
.footer-brand span { font-weight: 400; color: #b3ab9a; }
.back-top { border-color: #6a6b5c; }

/* Project viewer: a quiet frame around drawings and photographs. */
.project-dossier, .dossier-header { background: var(--paper); }
.project-dossier::backdrop { background: #1b1e19c7; backdrop-filter: blur(5px); }
.dossier-header { border-color: var(--line); padding: 25px 30px; }
.dossier-header .eyebrow { color: #7d6b4d; }
.dossier-header h2 { font-weight: 400; text-wrap: balance; }
.project-dossier .dialog-close { border-color: #d4cbbb; }
.project-dossier .dialog-close:hover { background: #e9e2d5; }
.gallery-groups { border-color: var(--line); }
.gallery-group { color: #716656; }
.gallery-group.active, .gallery-group.active > span { color: var(--ink); border-color: #5f5545; }
.gallery-group > span { color: #7d6b4d; }
.gallery-group:hover { background: #eee9df; }
.gallery-stage { background: #e6e1d7; }
.gallery-stage > button { border-color: #d4c9b5; background: #fbf8f1ed; }
.gallery-stage > button:hover:not(:disabled) { background: #e4d6bc; }
.gallery-figure figcaption { color: #776a54; }
.gallery-figure #gallery-count { color: #7d6b4d; }
.gallery-thumb { border-color: #dcd2c1; opacity: 1; }
.gallery-thumb > img { background: #e6e1d7; }
.gallery-thumb > span { color: #716656; }
.gallery-thumb.active { border-color: #9a8057; background: #eae1d1; }
.gallery-thumb:hover { border-color: #b19b76; }
.gallery-tools p { color: #716656; }
.gallery-tools a { color: #6e5c3d; border-color: #a28d68; }
.dossier-info { background: #f0ebe1; border-color: var(--line); }
.dossier-status { color: #7d6744; border-color: #c8b997; }
.dossier-subtitle { color: #3f3d35; }
.dossier-info #dialog-description { color: #716656; }
.dossier-contents { border-color: #d5c9b2; }
.dossier-contents dl > div { color: #716656; }
.dossier-info .dialog-note { color: #716656; }
.dossier-info .text-link { color: #5d4e34; border-color: #a79168; }

@media (min-width: 1600px) {
  .hero { min-height: 790px; padding-right: 40px; }
  .hero-visual { min-height: 740px; }
  .hero-content { padding-block: 70px; }
  .hero-studio-note { margin-top: 60px; }
}
@media (max-width: 1100px) {
  .site-header { padding-inline: 32px; }
  .desktop-nav { gap: 23px; margin-right: 35px; }
  .wrap { width: calc(100% - 72px); }
  .hero { grid-template-columns: 43% 57%; padding: 22px 22px 22px 0; min-height: 610px; }
  .hero-content { padding: 30px 20px 25px 36px; }
  .hero h1 { font-size: 54px; }
  .hero .eyebrow { font-size: 8px; gap: 10px; letter-spacing: 1.6px; }
  .hero-visual { min-height: 600px; }
  .hero-description { font-size: 13px; }
  .hero-project { left: 24px; right: 24px; bottom: 26px; }
  .hero-project strong { font-size: 18px; }
  .discipline-strip { padding-inline: 36px; gap: 28px; }
  .section-space { padding-block: 100px; }
  .about, .services { gap: 65px; }
  .about h2 { font-size: 44px; }
  .about-copy .intro { font-size: 18px; }
  .studio-detail img { height: 200px; }
  .services-intro h2 { font-size: 41px; }
  .contact-grid { gap: 55px; }
  .contact h2 { font-size: 51px; }
  .contact-links a > span { font-size: 18px; }
  .project-form { padding: 30px; }
}
@media (max-width: 800px) {
  .site-header { height: 76px; padding-inline: 28px; }
  .header-contact { margin-left: auto; margin-right: 28px; }
  .hero { grid-template-columns: 1fr 1.1fr; padding: 18px 18px 24px 0; }
  .hero-content { padding-left: 28px; padding-right: 20px; }
  .hero h1 { font-size: 48px; }
  .hero .eyebrow { font-size: 7px; letter-spacing: 1px; gap: 9px; }
  .hero .gold-line { width: 18px; }
  .hero-visual { min-height: 560px; }
  .hero-project { left: 18px; right: 18px; bottom: 22px; }
  .hero-project small { font-size: 8px; }
  .hero-project strong { font-size: 15px; }
  .hero-project-arrow { width: 36px; height: 36px; font-size: 22px; }
  .hero-visual-label { top: 18px; left: 18px; font-size: 7px; padding: 8px 10px; letter-spacing: 1.4px; }
  .hero-studio-note { font-size: 7px; gap: 9px; margin-top: 32px; }
  .hero-studio-note small { font-size: 6px; letter-spacing: .6px; }
  .button-dark { font-size: 11px; padding-inline: 16px; gap: 21px; }
  .wrap { width: calc(100% - 56px); }
  .discipline-strip { padding-inline: 28px; gap: 22px; letter-spacing: 1.8px; font-size: 8px; }
  .strip-end { font-size: 6px; letter-spacing: .8px; }
  .about { grid-template-columns: 1fr 1.1fr; gap: 38px; }
  .about h2 { font-size: 35px; letter-spacing: -1px; }
  .about-copy { padding-top: 36px; }
  .about-copy .intro { font-size: 16px; }
  .about-copy > p { font-size: 12px; }
  .studio-detail { margin-top: 36px; }
  .studio-detail img { height: 185px; }
  .studio-detail figcaption { font-size: 6px; letter-spacing: .3px; }
  .studio-wordmark { font-size: 95px; margin-top: 90px; }
  .project-grid { gap: 38px 24px; }
  .project-meta { display: block; }
  .project-meta h3 { font-size: 20px; }
  .project-meta > span { display: block; margin-top: 6px; font-size: 9px; }
  .project-grid:not(.filtered) .project-card:first-child .project-meta h3 { font-size: 24px; }
  .project-grid:not(.filtered) .project-card:first-child .project-contents-preview { grid-column: 1; grid-row: auto; margin-top: 12px; }
  .services { display: block; }
  .services-intro { position: relative; }
  .architecture-lines { position: absolute; top: 50px; right: 0; }
  .service-list { margin-top: 35px; padding-top: 0; }
  .detail-banner { height: 450px; }
  .detail-banner-copy { padding-top: 108px; }
  .detail-banner-copy > p:last-child { font-size: 45px; }
  .process-grid { grid-template-columns: 1fr 1fr; gap: 42px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-links { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }
  .contact-links a:last-child { grid-column: 1 / -1; max-width: 320px; }
  .project-form { padding: 36px; }
}
@media (max-width: 600px) {
  html { scroll-padding-top: 84px; }
  .site-header { height: 72px; padding-inline: 22px; }
  .brand { gap: 9px; }
  .brand img { width: 33px; height: 34px; }
  .brand-type { font-size: 23px; }
  .brand-type small { font-size: 6px; letter-spacing: .8px; margin-top: 4px; }
  .header-contact { font-size: 10px; margin-right: 20px; gap: 10px; }
  .header-contact span { font-size: 20px; }
  .mobile-nav:not([hidden]) { background: var(--paper); border-color: var(--line); top: 72px; }
  .hero { display: flex; flex-direction: column; min-height: 0; padding: 0 0 22px; }
  .hero-content { padding: 45px 24px 34px; }
  .hero .eyebrow { font-size: 8px; letter-spacing: 1.8px; margin-bottom: 24px; }
  .hero .gold-line { width: 24px; }
  .hero h1 { font-size: clamp(47px, 12vw, 64px); line-height: 1.2; letter-spacing: -1.7px; margin-bottom: 22px; }
  .hero h1 br:nth-child(2) { display: none; }
  .hero-description { font-size: 12px; line-height: 1.85; margin-bottom: 25px; }
  .button-dark { min-height: 50px; font-size: 11px; gap: 30px; padding: 12px 18px; }
  .hero-studio-note { display: none; }
  .hero-visual { min-height: 0; height: 420px; width: calc(100% - 32px); margin-inline: 16px; }
  .hero-image { object-position: 51% center; }
  .hero-visual-label { top: 18px; left: 18px; padding: 8px 10px; }
  .hero-image-edge { font-size: 7px; right: 11px; top: 18px; }
  .hero-project { left: 20px; right: 20px; bottom: 21px; padding-top: 16px; }
  .hero-project strong { font-size: 18px; }
  .hero-project small { font-size: 8px; margin-bottom: 7px; }
  .hero-project em { font-size: 8px; margin-top: 3px; }
  .hero-project-arrow { width: 39px; height: 39px; }
  .discipline-strip { justify-content: space-between; padding: 19px 24px; gap: 12px; font-size: 7px; letter-spacing: 1.3px; }
  .discipline-strip .asterisk { font-size: 17px; }
  .strip-end { display: none; }
  .wrap { width: calc(100% - 48px); }
  .section-space { padding-block: 76px; }
  .eyebrow { font-size: 8px; letter-spacing: 1.8px; gap: 15px; margin-bottom: 22px; }
  .about { display: block; }
  .about h2 { font-size: 39px; line-height: 1.4; }
  .about h2 br:nth-child(2) { display: none; }
  .studio-wordmark { display: none; }
  .about-copy { padding-top: 30px; }
  .about-copy .intro { font-size: 17px; }
  .about-copy > p { font-size: 13px; }
  .studio-detail { margin-top: 36px; }
  .studio-detail img { height: 240px; }
  .studio-detail figcaption { font-size: 6px; letter-spacing: .65px; }
  .section-heading { margin-bottom: 28px; }
  .section-heading h2 { font-size: 35px; line-height: 1.4; }
  .section-description { font-size: 12px; margin-top: 17px; }
  .collection-tabs { gap: 0; margin-bottom: 22px; }
  .collection-tab { font-size: 12px; padding-bottom: 17px; gap: 7px; }
  .collection-tab > span { font-size: 8px; }
  .project-toolbar { gap: 16px; }
  .filter { font-size: 10px; padding: 8px 10px; }
  .collection-caption { font-size: 8px; margin-bottom: 24px; }
  .collection-caption .project-count { font-size: 9px; }
  .project-grid { grid-template-columns: 1fr; gap: 38px; }
  .project-grid:not(.filtered) .project-card:first-child { display: block; grid-column: auto; }
  .project-picture, .project-card:nth-child(even) .project-picture, .project-grid:not(.filtered) .project-card:first-child .project-picture { aspect-ratio: 1.25; }
  .project-picture img { object-position: center; }
  .project-index { left: 14px; top: 14px; font-size: 7px; padding: 6px 8px; }
  .project-type-badge { right: 14px; top: 14px; font-size: 8px; padding: 5px 9px; }
  .project-open { right: 14px; bottom: 14px; width: 39px; height: 39px; font-size: 24px; }
  .project-meta { margin-top: 16px; display: flex; align-items: baseline; gap: 12px; }
  .project-meta h3, .project-grid:not(.filtered) .project-card:first-child .project-meta h3 { font-size: 21px; line-height: 1.5; }
  .project-meta > span { font-size: 8px; margin-top: 0; }
  .project-subtitle { font-size: 10px; }
  .project-contents-preview { margin-top: 13px; }
  .project-contents-preview span { font-size: 8px; padding-inline: 9px; }
  .services-intro h2 { font-size: 39px; }
  .architecture-lines { top: 60px; width: 100px; opacity: .35; }
  .services-intro > p:not(.eyebrow) { font-size: 12px; }
  .service-list { margin-top: 34px; }
  .service summary { padding-block: 26px; gap: 16px; }
  .service summary > span:nth-child(2) { font-size: 19px; }
  .service-content { padding-left: 33px; padding-right: 8px; font-size: 12px; }
  .service-tags span { font-size: 8px; }
  .detail-banner { height: 390px; }
  .detail-banner-copy { padding-top: 92px; }
  .detail-banner-copy > p:last-child { font-size: 39px; }
  .detail-banner .eyebrow { font-size: 7px; letter-spacing: 1.4px; }
  .process-grid { gap: 35px 24px; margin-top: 40px; }
  .step-number { font-size: 36px; margin-bottom: 24px; }
  .process-grid h3 { font-size: 15px; }
  .process-grid p { font-size: 11px; }
  .contact h2 { font-size: 48px; }
  .contact-copy > p { font-size: 12px; }
  .contact-grid { gap: 38px; }
  .contact-links { gap: 23px; }
  .contact-links a > span { font-size: 15px; }
  .contact-links small { font-size: 7px; }
  .project-form { padding: 28px 22px; }
  .form-title { font-size: 20px; }
  .form-intro { font-size: 11px; }
  .form-note { font-size: 10px; }
  .button-gold { font-size: 11px; }
  .project-form input, .project-form textarea, .project-form select { font-size: 16px; }
  .project-search input { font-size: 16px; min-height: 36px; }
  .project-search input::placeholder { font-size: 12px; }
  .footer-brand { font-size: 36px; }
  .footer-brand span { font-size: 6px; }
  .dossier-header { padding: 17px 16px; }
  .dossier-header h2 { font-size: 20px; }
  .dossier-info #dialog-description { font-size: 12px; }
  .dossier-info .dialog-note { font-size: 11px; line-height: 1.9; }
  .gallery-thumb > span { font-size: 9px; }
  .gallery-tools p { font-size: 10px; }
  .gallery-tools a { font-size: 11px; }
  .project-contents-preview span { font-size: 10px; }
  .project-meta > span { font-size: 9px; }
  .collection-caption { font-size: 9px; }
  .form-note { font-size: 11px; line-height: 1.9; }
  .project-dossier .dialog-close { width: 44px; height: 44px; min-width: 44px; }
  .gallery-stage > button { width: 44px; height: 44px; top: calc(50% - 22px); }
  .gallery-tools a { min-height: 44px; display: inline-flex; align-items: center; }
  .back-top { width: 44px; height: 44px; }
}
@media (max-width: 360px) {
  .site-header { padding-inline: 18px; }
  .brand-type { font-size: 21px; }
  .brand img { width: 29px; }
  .header-contact { font-size: 9px; margin-right: 15px; gap: 6px; }
  .hero-content { padding-inline: 22px; }
  .hero h1 { font-size: 45px; }
  .hero-visual { height: 390px; }
  .wrap { width: calc(100% - 40px); }
  .collection-tab { font-size: 11px; gap: 4px; }
  .filter { padding-inline: 7px; }
  .project-meta h3, .project-grid:not(.filtered) .project-card:first-child .project-meta h3 { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-project-arrow, .project-picture img { transition: none; }
}

/* Keep the drawing and its controls together, even on short desktop screens. */
.gallery-stage > img { cursor: zoom-in; }
.gallery-tools { flex-wrap: wrap; }
.gallery-tools #gallery-expand {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 9px 16px; border: 1px solid #b9a98b;
  background: #eee6d8; color: #514634; font-size: 12px;
}
.gallery-tools #gallery-expand:hover { background: #e5d8c2; }
.gallery-tools #gallery-expand > span { font: 400 23px/1 var(--sans); }
.gallery-tools a { min-height: 44px; display: inline-flex; align-items: center; }
@media (min-width: 801px) and (min-height: 600px) {
  .project-dossier { height: min(900px, calc(100dvh - 48px)); max-height: calc(100dvh - 48px); overflow: hidden; }
  .project-dossier[open] { display: flex; flex-direction: column; }
  .dossier-header { position: static; flex-shrink: 0; }
  .dossier-layout { flex: 1; min-height: 0; overflow: hidden; }
  .dossier-gallery { display: flex; flex-direction: column; min-height: 0; padding-bottom: 16px; }
  .gallery-groups { flex-shrink: 0; margin-bottom: 12px; }
  .gallery-figure { display: flex; flex-direction: column; flex: 1; min-height: 0; }
  .gallery-stage { flex: 1; min-height: 0; height: auto; max-height: none; }
  .gallery-figure figcaption, .gallery-thumbnails, .gallery-tools { flex-shrink: 0; }
  .gallery-tools { padding-top: 7px; }
  .dossier-info { overflow-y: auto; scrollbar-width: thin; }
}
@media (min-width: 801px) and (max-height: 599px) {
  .dossier-header { padding-block: 12px; }
  .dossier-header h2 { font-size: 22px; }
  .dossier-gallery { display: flex; flex-direction: column; }
  .gallery-tools { order: -1; padding-block: 8px; }
  .gallery-stage { height: 220px; min-height: 180px; }
}

/* Full-window original image viewer; zoom preserves the point being inspected. */
dialog.image-viewer {
  inset: 0; width: 100%; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; overflow: hidden;
  background: #191e1a; color: #f8f5ec;
}
.image-viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.image-viewer::backdrop { background: #131713; backdrop-filter: none; }
.viewer-header {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px 28px; border-bottom: 1px solid #3d4239;
}
.viewer-header > div { min-width: 0; }
.viewer-project { color: #c9bda6; font-size: 11px; margin-bottom: 5px; }
.viewer-header h2 { font-size: 18px; font-weight: 400; line-height: 1.6; text-wrap: balance; }
.image-viewer button {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 44px; height: 44px; padding: 0; border: 1px solid #6c7164;
  border-radius: 0; background: transparent; color: #f8f5ec; font: 400 23px var(--sans);
}
.image-viewer button:hover:not(:disabled) { background: #363e31; }
.image-viewer button:disabled { opacity: .3; cursor: default; }
.image-viewer button:focus-visible, .image-viewer a:focus-visible { outline: 2px solid #d3bb86; outline-offset: 3px; }
.image-viewer #viewer-close { border-radius: 50%; font-size: 18px; }
.viewer-viewport {
  position: relative; min-height: 0; overflow: auto; scrollbar-width: thin;
  scrollbar-color: #8a8c7c #252b24; overscroll-behavior: contain;
  touch-action: pan-x pan-y pinch-zoom;
}
.viewer-viewport:focus-visible { outline: 2px solid #d3bb86; outline-offset: -3px; }
.viewer-canvas { position: relative; display: grid; place-items: center; min-width: 100%; min-height: 100%; }
.viewer-canvas > img { display: block; max-width: none; max-height: none; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.viewer-viewport.is-zoomed { cursor: grab; }
.viewer-viewport.is-dragging { cursor: grabbing; }
.viewer-feedback { position: absolute; inset: 50% 16px auto; text-align: center; color: #d5cebf; font-size: 13px; pointer-events: none; }
.viewer-feedback[hidden] { display: none; }
.viewer-footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 24px; padding: 14px 28px; border-top: 1px solid #3d4239; background: #20261f;
}
.viewer-zoom, .viewer-paging { display: flex; align-items: center; gap: 9px; }
.viewer-zoom output { min-width: 42px; font: 400 13px var(--sans); text-align: center; color: #e8dbc1; }
.image-viewer #viewer-fit { width: auto; padding-inline: 14px; font: 400 12px var(--thai); margin-left: 4px; }
.viewer-hint { margin: 0; font-size: 11px; color: #c3c2b1; }
.viewer-paging span { min-width: 64px; font: 400 12px var(--sans); text-align: center; letter-spacing: 1px; }
#viewer-original { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: #e5d5b3; font-size: 11px; }
@media (max-width: 1100px) {
  .viewer-hint { display: none; }
}
@media (max-width: 600px) {
  .gallery-tools #gallery-expand { font-size: 11px; padding-inline: 12px; }
  .viewer-header { padding: 14px 16px; gap: 14px; }
  .viewer-project { font-size: 10px; line-height: 1.7; margin-bottom: 3px; }
  .viewer-header h2 { font-size: 14px; line-height: 1.6; }
  .viewer-footer { padding: 12px 16px max(12px, env(safe-area-inset-bottom)); gap: 10px 8px; }
  .viewer-zoom { justify-content: center; width: 100%; order: 1; }
  .viewer-paging { order: 2; }
  #viewer-original { order: 3; }
}
