.home {
  --ivory: #f9f5ee;
  --ink: #221b17;
  --muted: #5b534b;
  --bronze: #86612f;
  --pale-gold: #dabc82;
  --on-dark: #d4c9ba;
  --sand: #ecdfcd;
  --line: #d7cbbc;
  --dark-line: #574838;
  --gutter: clamp(20px, 4.2vw, 48px);
  background: var(--ivory);
  color: var(--ink);
  font-size: 16px;
  overflow-wrap: anywhere;
}

.home .wrap { width: min(1248px, calc(100% - 2 * var(--gutter))); }
.home .eyebrow { font-size: 14px; }
.home :where([id]) { scroll-margin-top: 16px; }
.section-title { font-size: clamp(2.25rem, 4.35vw, 3.875rem); }
.text-link {
  width: fit-content;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: .21em;
}
.text-link:hover { text-decoration-thickness: 2px; }

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: clamp(450px, 48.6vw, 820px);
  margin: 10px 10px 0;
  overflow: hidden;
  border-radius: 23px;
  background: #2a1c11;
  color: #fffaf2;
}
.hero-art, .hero::after { position: absolute; inset: 0; }
.hero-art { z-index: -2; }
.hero-photo { width: 100%; height: 100%; object-fit: cover; object-position: 50% 46%; }
.hero::after {
  z-index: -1;
  content: "";
  background: linear-gradient(180deg, rgb(25 15 9 / 68%), transparent 30%, transparent 55%, rgb(31 20 12 / 46%) 76%, rgb(27 17 10 / 85%));
  pointer-events: none;
}
.hero-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 23px; font-size: 15px; font-weight: 800; }
.hero-nav a { display: inline-flex; align-items: center; min-height: 44px; }
.hero-nav a:hover, .footer-end a:hover { text-decoration: underline; text-underline-offset: 4px; }
.hero-nav, .hero-message { text-shadow: 0 1px 4px rgb(29 17 8 / 90%), 0 0 12px rgb(29 17 8 / 45%); }
.hero-brand {
  flex: none;
  gap: 12px;
  color: #fcebd5;
}
.hero-brand .brand-mark { filter: drop-shadow(0 2px 5px rgb(26 16 8 / 62%)); }
.hero-brand:hover, .hero-brand:focus-visible { text-decoration: none; }

@media (max-width: 419px), (min-width: 768px) and (max-width: 939px) {
  .hero-location { display: none; }
}
.hero-contact { gap: 9px; }
.hero-links { display: contents; }
.menu-toggle, .hero-mobile-actions { display: none; }
.hero-sections { display: flex; align-items: center; gap: clamp(16px, 3vw, 43px); }
.hero-bottom { padding-block: 22px 24px; }
.hero-message { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.hero-message h1 { font-size: clamp(1.9rem, 2.78vw, 2.625rem); line-height: 1.06; }
.hero-message p { width: min(34%, 397px); margin-bottom: 9px; font-size: clamp(1rem, 1.25vw, 1.125rem); line-height: 1.37; }
.hero-actions {
  display: flex;
  width: fit-content;
  max-width: 100%;
  align-items: stretch;
  margin: 40px auto 0;
  padding: 5px;
  border-radius: 50px;
  background: var(--ivory);
  color: var(--ink);
}
.hero-actions a {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
  padding-inline: 20px;
  min-height: 45px;
  font-size: 14px;
  font-weight: 800;
}
.hero-actions a:first-child { border-right: 1px solid var(--line); border-radius: 40px 0 0 40px; }
.hero-actions a:not(.button):hover { background-color: #ece1d1; }
.hero-actions a:focus-visible { outline-offset: -3px; }

.gallery { padding-block: 54px 32px; }
.gallery-intro { display: grid; grid-template-columns: .98fr 1.02fr; gap: 23px; align-items: center; margin-bottom: 34px; }
.gallery-intro p { padding-left: 34px; border-left: 1px solid var(--line); color: var(--muted); font-size: clamp(1rem, 1.36vw, 1.25rem); line-height: 1.45; }
.gallery-featured { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px 22px; }
.gallery-featured figure { position: relative; min-width: 0; }
.gallery-featured figure:first-child { grid-row: span 2; display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.gallery img, .services-visual img, .process-visual img { width: 100%; height: auto; border-radius: 13px; object-fit: cover; }
.gallery-featured img { aspect-ratio: 489 / 278; }
.gallery-featured figure:first-child img { min-height: 0; height: 100%; aspect-ratio: 737 / 636; object-position: 50% 70%; }
.gallery-featured figure:nth-child(2) img { object-position: 50% 68%; }
.gallery-featured figure:nth-child(3) img { object-position: 50% 47%; }
.gallery-featured figcaption { margin-top: 10px; color: var(--muted); }
.gallery-featured h3 { margin-bottom: 3px; color: var(--ink); font-size: clamp(1.25rem, 1.85vw, 1.625rem); }
.gallery-featured h3 a::after { position: absolute; inset: 0; border-radius: 13px; content: ""; }
.gallery-featured h3 a:hover { text-decoration: underline; text-underline-offset: .16em; }
.gallery-featured h3 a:focus-visible { outline: none; }
.gallery-featured h3 a:focus-visible::after { outline: 3px solid var(--bronze); outline-offset: 4px; }
.gallery-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 43px; }
.gallery-details img { aspect-ratio: 405 / 205; object-position: 50% 42%; }
.gallery-details figure:nth-child(2) img { object-position: 50% 53%; }
.gallery-details figure:nth-child(3) img { object-position: 50% 57%; }
.gallery-details figcaption { margin-top: 7px; }
.figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding-top: 28px; margin-top: 20px; border-top: 1px solid var(--line); }
.figures > div { display: flex; align-items: center; gap: clamp(10px, 1.5vw, 23px); padding-inline: 18px; }
.figures > div:first-child { padding-left: 0; }
.figures > div + div { border-left: 1px solid var(--line); }
.figures p { max-width: 21ch; color: var(--muted); line-height: 1.35; }
.figure-value { font-size: clamp(2rem, 3.6vw, 3.3rem); font-weight: 800; line-height: 1; letter-spacing: -.055em; }
.first-year { color: var(--bronze); }
.gallery-action { margin-top: 25px; text-align: right; }

.services, .home-footer { background: var(--coffee); color: var(--ivory); }
.services .eyebrow, .home-footer .eyebrow { color: var(--pale-gold); }
.services { padding-block: 57px 30px; }
.services-top { display: grid; grid-template-columns: 1.5fr 1fr; align-items: end; gap: 22px; margin-bottom: 27px; }
.services-top .eyebrow { margin-bottom: 9px; }
.services-lead { color: var(--on-dark); font-size: clamp(1rem, 1.4vw, 1.1875rem); }
.services-lead .text-link { color: var(--pale-gold); }
.services-visual img { aspect-ratio: 1248 / 536; object-position: 50% 48%; }
.services-visual figcaption { padding-block: 9px 16px; color: var(--on-dark); }
.service-categories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--dark-line); padding-top: 17px; }
.service-categories > div { padding-inline: 20px; }
.service-categories > div:first-child { padding-left: 0; }
.service-categories > div + div { border-left: 1px solid var(--dark-line); }
.service-categories h3 { font-size: clamp(1.25rem, 1.6vw, 1.5rem); }
.service-categories p, .trades { margin-top: 4px; color: var(--on-dark); }
.trades { margin-top: 23px; }

.process { display: grid; grid-template-columns: minmax(0, .87fr) minmax(0, 1fr); gap: 49px 58px; padding-block: 54px 51px; }
.process-visual img { aspect-ratio: 553 / 332; object-position: 50% 54%; margin-top: 28px; }
.process-info { display: flex; flex-direction: column; }
.steps { list-style: none; padding: 0; }
.steps li { display: grid; grid-template-columns: clamp(61px, 7vw, 89px) minmax(0, 1fr); align-items: center; min-height: 106px; border-bottom: 1px solid var(--line); padding-block: 16px; }
.steps li:last-child { border-bottom: 0; }
.steps li > span { color: var(--bronze); font-size: clamp(2rem, 3.3vw, 3.125rem); line-height: 1; }
.steps li > div { padding-left: 25px; border-left: 1px solid var(--line); }
.steps h3 { margin-bottom: 4px; font-size: clamp(1.3rem, 1.95vw, 1.875rem); }
.steps p { color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.125rem); }
.conditions { margin-top: auto; padding-top: 14px; }
.conditions summary { display: flex; cursor: pointer; list-style: none; }
.conditions summary::-webkit-details-marker { display: none; }
.conditions p { max-width: 58ch; margin: 0 0 10px; color: var(--muted); }
.remote { grid-column: 1 / -1; display: grid; grid-template-columns: .88fr 1.12fr; align-items: center; gap: 28px; padding: 26px 28px; border-radius: 12px; background: var(--sand); }
.remote h2 { font-size: clamp(1.625rem, 2.85vw, 2.5rem); }
.remote > div { padding-left: 31px; border-left: 1px solid #d4c4ad; font-size: clamp(1rem, 1.35vw, 1.1875rem); }

.home-footer { padding-top: 50px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.29fr) minmax(0, 1fr); gap: 35px; align-items: end; padding-bottom: 59px; border-bottom: 1px solid var(--dark-line); }
.contact-grid .eyebrow, .contact-lines .eyebrow { text-transform: uppercase; letter-spacing: .11em; font-size: .75rem; }
.contact-grid h2 { margin-block: 19px 14px; font-size: clamp(2.9rem, 5.7vw, 4.75rem); line-height: .98; }
.contact-note { color: var(--on-dark); font-size: clamp(1rem, 1.35vw, 1.1875rem); }
.home-footer .whatsapp { min-height: 49px; margin-top: 18px; padding-inline: 25px; font-size: 15px; }
.contact-lines a { position: relative; display: grid; align-content: center; gap: 4px; min-height: 82px; padding: 12px 30px 12px 0; border-top: 1px solid var(--dark-line); font-size: clamp(1rem, 1.85vw, 1.55rem); line-height: 1.35; }
.contact-lines a:last-child { border-bottom: 1px solid var(--dark-line); }
.contact-lines a:hover > span:nth-child(2) { text-decoration: underline; text-underline-offset: 4px; }
.contact-arrow { position: absolute; right: 0; bottom: 18px; color: var(--pale-gold); font-size: 16px; }
.atelier-grid { display: grid; grid-template-columns: minmax(0, .52fr) minmax(0, 1fr); align-items: center; gap: 43px; padding-block: 43px 14px; }
.atelier-grid h2 { font-size: clamp(2rem, 3.4vw, 3.15rem); }
.atelier-grid address { max-width: 28ch; margin-top: 17px; color: var(--on-dark); font-size: 18px; font-style: normal; }
.atelier-grid p { margin-block: 9px 18px; color: var(--pale-gold); }
.button.outline { border: 1px solid var(--bronze); color: var(--pale-gold); font-size: 15px; }
.button.outline:hover { background: #2f251c; }
.map { overflow: hidden; aspect-ratio: 790 / 573; border-radius: 11px; background: #e6e3dd; }
.map iframe { display: block; width: 100%; height: 100%; border: 0; }
.map:focus-within { outline: 3px solid var(--pale-gold); outline-offset: 4px; }
.footer-end { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 18px; min-height: 60px; border-top: 1px solid var(--dark-line); color: var(--on-dark); }
.footer-end nav { display: flex; flex-wrap: wrap; gap: 5px 24px; }
.footer-end a { display: inline-flex; align-items: center; min-height: 44px; }

@media (max-width: 1024px) and (min-width: 768px) {
  .figures > div { display: block; }
  .figures p { margin-top: 5px; font-size: 14px; }
  .gallery-intro { grid-template-columns: .87fr 1.13fr; }
  .process { column-gap: 32px; }
  .atelier-grid { gap: 30px; }
}

@media (max-width: 767px) {
  .home { font-size: .9375rem; }
  .home .eyebrow { font-size: .8125rem; }
  .desktop-break, .hero-actions { display: none; }
  .hero { min-height: calc((100vw - 14px) * 1.5); margin: 6px 7px 0; border-radius: 16px; background: #24190f; }
  .hero-art { inset: -7px auto auto -8%; width: 110%; aspect-ratio: 2 / 3; mask-image: linear-gradient(#000 86%, transparent 100%); }
  .hero-photo { object-position: center top; }
  .hero::after { background: linear-gradient(180deg, rgb(29 18 9 / 70%), transparent 21%, transparent 53%, rgb(39 24 13 / 44%) 70%, #271a10 100%); }
  .hero-nav, .hero-bottom { width: calc(100% - 38px); }
  .hero-nav { position: relative; z-index: 1; flex-wrap: wrap; gap: 0 8px; min-height: 46px; padding-top: 0; font-size: .8125rem; }
  .menu-toggle:not([hidden]) {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    padding: 0;
    border: 0;
    border-radius: 3px;
    background: transparent;
    color: inherit;
    font: inherit;
    text-shadow: inherit;
    cursor: pointer;
  }
  .menu-toggle span { width: 16px; height: 9px; border-block: 2px solid currentColor; }
  .menu-toggle[aria-expanded="true"] span { height: 2px; border-bottom: 0; }
  .hero-links, .hero-sections { display: flex; flex-wrap: wrap; gap: 0 14px; }
  .hero-links { width: 100%; }
  .hero-nav[data-menu-ready] .hero-links { display: none; }
  .hero-nav[data-menu-ready] .menu-toggle[aria-expanded="true"] + .hero-links {
    position: absolute;
    inset: 100% 0 auto auto;
    display: grid;
    gap: 0;
    width: min(221px, 100%);
    padding: 6px;
    border: 1px solid #675243;
    border-radius: 12px;
    background: #261e18;
    box-shadow: 0 9px 22px rgb(17 12 8 / 42%);
  }
  .hero-nav[data-menu-ready] .hero-sections { display: grid; gap: 0; }
  .hero-nav[data-menu-ready] .hero-links a { padding-inline: 12px; border-radius: 6px; }
  .hero-nav[data-menu-ready] .hero-links a:focus-visible { outline-offset: -3px; }
  .hero-nav[data-menu-ready] .hero-links a:hover { background: #3e3025; }
  .hero-bottom { margin-top: clamp(156px, 66vw, 330px); padding-block: 0 6px; }
  .hero-message { display: block; }
  .hero-message h1 { font-size: clamp(1.625rem, 4.8vw + .7rem, 2rem); line-height: 1.05; }
  .hero-message p { width: auto; max-width: 36ch; margin: 8px 0 0; font-size: .875rem; line-height: 1.3; }
  .hero-mobile-actions { display: grid; margin-top: 16px; }
  .hero-mobile-actions .button { width: 100%; gap: 10px; font-size: .875rem; }
  .hero-mobile-actions svg { flex: none; }
  .gallery-link { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; font-size: .8125rem; font-weight: 750; }
  .gallery-link:hover { text-decoration: underline; text-underline-offset: 4px; }

  .section-title { font-size: clamp(2rem, 6.9vw + .5rem, 2.5rem); }
  .gallery { padding-block: 24px 17px; }
  .gallery-intro { display: block; margin-bottom: 20px; }
  .gallery-intro p { margin-top: 12px; padding: 0; border: 0; font-size: .9375rem; }
  .gallery-featured { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .gallery-featured figure:first-child { grid-row: auto; display: block; }
  .gallery-featured figure:first-child img { height: auto; aspect-ratio: 1.294; object-position: 50% 49%; }
  .gallery-featured img { aspect-ratio: 1.834; }
  .gallery-featured h3 { font-size: 1.235rem; }
  .gallery-featured figcaption { margin-top: 6px; font-size: .875rem; }
  .gallery img, .services-visual img, .process-visual img { border-radius: 10px; }
  .gallery-details { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 9px; border-top: 1px solid var(--line); }
  .gallery-details figure { display: grid; grid-template-columns: minmax(0, .57fr) minmax(0, 1fr); align-items: center; gap: 13px; min-height: 54px; padding-block: 7px; border-bottom: 1px solid var(--line); }
  .gallery-details figcaption { margin: 0; color: var(--ink); font-weight: 800; }
  .gallery-details img { aspect-ratio: 126 / 73; border-radius: 7px; }
  .figures { margin-top: 0; border-top: 0; padding-top: 20px; }
  .figures > div { display: block; padding-inline: 9px; }
  .figures > div:last-child { padding-right: 0; }
  .figures p { margin-top: 5px; font-size: .75rem; }
  .figure-value { font-size: clamp(1.35rem, 6.3vw + .25rem, 2rem); }
  .gallery-action { margin-top: 12px; }

  .services { padding-block: 32px 21px; }
  .services-top { grid-template-columns: minmax(0, 1fr); gap: 14px; margin-bottom: 14px; }
  .services-top .eyebrow { margin-bottom: 11px; }
  .services-top h2 { font-size: clamp(1.95rem, 7.6vw + .2rem, 2.5rem); }
  .services-lead { font-size: .9375rem; }
  .services-visual img { aspect-ratio: 1.48; object-position: 50% 48%; }
  .services-visual figcaption { padding-block: 6px 12px; font-size: .8125rem; }
  .service-categories { grid-template-columns: minmax(0, 1fr); padding: 0; }
  .service-categories > div { padding: 9px 0; }
  .service-categories > div + div { border-left: 0; border-top: 1px solid var(--dark-line); }
  .service-categories h3 { font-size: 1.125rem; }
  .service-categories p { margin-top: 3px; }
  .trades { margin-top: 14px; font-size: .875rem; }

  .process { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-block: 35px 34px; }
  .process-visual img { margin-top: 22px; aspect-ratio: 1.74; object-position: 50% 56%; }
  .steps { border-top: 1px solid var(--line); }
  .steps li { grid-template-columns: 48px minmax(0, 1fr); min-height: 69px; padding-block: 10px; }
  .steps li > span { font-size: 1.8125rem; }
  .steps li > div { padding-left: 14px; }
  .steps h3 { margin-bottom: 4px; font-size: 1.1875rem; }
  .steps p { font-size: .875rem; }
  .conditions { padding-top: 8px; }
  .remote { grid-template-columns: minmax(0, 1fr); gap: 7px; padding: 14px 15px 8px; }
  .remote h2 { font-size: clamp(1.25rem, 5.75vw, 1.5rem); }
  .remote > div { padding: 0; border: 0; font-size: .9375rem; }

  .home-footer { padding-top: 32px; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-bottom: 19px; border-bottom: 0; }
  .contact-grid .eyebrow { font-size: .6875rem; }
  .contact-grid h2 { margin-block: 15px 13px; font-size: clamp(2.5rem, 10vw + .35rem, 3rem); }
  .contact-note { font-size: .9375rem; }
  .home-footer .whatsapp { width: 100%; margin-top: 17px; font-size: .9375rem; }
  .contact-lines a { min-height: 68px; font-size: 1.0625rem; }
  .atelier-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-block: 9px 17px; }
  .atelier-grid h2 { font-size: clamp(1.55rem, 7vw, 2rem); }
  .atelier-grid address { max-width: none; margin-top: 12px; font-size: .875rem; }
  .atelier-grid p { margin-block: 4px 12px; font-size: .875rem; }
  .button.outline { font-size: .875rem; }
  .map { border-radius: 9px; }
  .footer-end nav { gap: 0 16px; }
}
