/* Esquisses V2 — immersive revision from the attached approved visual reference. */
@font-face {
  font-family: 'Esquisses Open Sans';
  src: url('../fonts/open-sans-variable.ttf') format('truetype');
  font-style: normal;
  font-weight: 300 800;
  font-stretch: 75% 100%;
  font-display: swap;
}
:root {
  --orange: #ff7f0b;
  --brand-teal: #557c7b;
  --deep-teal: #183f3e;
  --ink: #172a2a;
  --muted: #526262;
  --paper: #f7f6f2;
  --white: #ffffff;
  --black: #0c1010;
  --light-text: #e4e8e6;
  --control-line: #667575;
  --line: #d9dfd9;
  --max-width: 98rem;
  --gutter: clamp(1.1rem, 6.6vw, 7.5rem);
  --section-gap: clamp(4rem, 7vw, 7rem);
  color: var(--ink);
  background: var(--black);
  font-family: 'Esquisses Open Sans', 'Segoe UI', Arial, sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1.5rem; }
body { margin: 0; font-size: 1rem; line-height: 1.65; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .25em; }
a:hover { text-decoration-thickness: .12em; }
button, input, textarea { font: inherit; }
button, summary, a, input, textarea { touch-action: manipulation; }
input, textarea { max-width: 100%; }
:focus-visible { outline: 3px solid var(--deep-teal); outline-offset: 4px; }
.hero :focus-visible, .site-header :focus-visible, .feature-grid :focus-visible,
.work-section :focus-visible, .dark :focus-visible, .site-footer :focus-visible,
.mobile-quote :focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; box-shadow: 0 0 0 7px var(--black); }
::selection { color: var(--black); background: var(--orange); }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-stretch: 85%; font-variation-settings: 'wdth' 85; line-height: 1.1; font-weight: 800; text-transform: uppercase; letter-spacing: -.02em; }
h1 { font-size: clamp(3rem, 4.2vw, 5rem); }
h2 { font-size: clamp(2.1rem, 3.6vw, 3.75rem); }
h3 { font-size: clamp(1.45rem, 2.1vw, 2rem); }
p { max-width: 65ch; }
main { display: block; }
section, article { scroll-margin-top: 1.5rem; }
.container { width: min(var(--max-width), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.section { padding-block: var(--section-gap); }
.eyebrow { display: flex; gap: .75rem; align-items: center; margin-bottom: 1rem; color: var(--deep-teal); font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.eyebrow::before { content: ''; width: 2rem; height: 2px; flex: 0 0 auto; background: var(--orange); }
.section-title { max-width: 21ch; }
.section-intro { color: var(--muted); max-width: 57ch; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: 1rem; left: 1rem; padding: .8rem 1.25rem; background: var(--orange); color: var(--black); font-weight: 750; transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.site-header { position: absolute; z-index: 30; inset: 0 0 auto; color: var(--white); background: linear-gradient(180deg, rgba(0,0,0,.65), rgba(0,0,0,.12)); }
.header-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.5rem; min-height: 8.3rem; padding-block: 1rem; }
.brand { display: inline-flex; gap: .9rem; align-items: center; text-decoration: none; }
.brand-logo { width: 5.3rem; height: auto; flex: 0 0 auto; }
.brand-name { display: grid; font-size: .7rem; letter-spacing: .2em; line-height: 1.6; }
.brand-name strong { font-size: clamp(1.15rem, 1.65vw, 1.8rem); font-weight: 800; letter-spacing: .04em; }
.primary-nav { justify-self: center; }
.nav-list { display: flex; flex-wrap: wrap; gap: .1rem clamp(.8rem, 1.7vw, 2.1rem); align-items: center; margin: 0; padding: 0; list-style: none; }
.nav-list a { display: inline-flex; align-items: center; min-height: 44px; font-size: .8rem; font-weight: 650; text-transform: uppercase; text-decoration: none; }
.nav-list a:hover { text-decoration: underline; text-decoration-color: var(--orange); }
.header-actions { display: flex; align-items: center; gap: clamp(.65rem, 1.4vw, 1.5rem); }
.header-phone { display: inline-flex; align-items: center; min-height: 44px; gap: .5rem; white-space: nowrap; font-size: .9rem; font-weight: 700; text-decoration: none; }
.header-phone > span:first-child { color: var(--orange); font-size: 1.2rem; }
.language-link { display: inline-flex; justify-content: center; align-items: center; min-width: 44px; min-height: 44px; font-size: .8rem; text-decoration: none; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 1rem; min-height: 50px; padding: .9rem 1.4rem; color: var(--black); background: var(--orange); border: 1px solid var(--orange); border-radius: .2rem; font-size: .8rem; font-weight: 750; line-height: 1.35; text-align: center; text-transform: uppercase; text-decoration: none; transition: background-color .2s ease, border-color .2s ease; }
.button:hover { background: #ff9b40; border-color: #ff9b40; }
.arrow { font-size: 1.25rem; line-height: 1; }
.button.secondary, .button.ghost { color: var(--white); background: rgba(0,0,0,.45); border-color: rgba(255,255,255,.8); }
.button.secondary:hover, .button.ghost:hover { background: var(--black); border-color: var(--orange); }
.mobile-menu, .mobile-quote { display: none; }
.hero { position: relative; isolation: isolate; display: flex; align-items: center; min-height: clamp(36rem, 33vw, 42rem); color: var(--white); overflow: clip; }
.hero-background { position: absolute; z-index: -3; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 56%; }
.hero-shade { position: absolute; z-index: -2; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.25), rgba(0,0,0,.12) 55%, rgba(0,0,0,.03)), linear-gradient(180deg, rgba(0,0,0,.3), transparent 45%, rgba(0,0,0,.2)); }
.hero-content { padding-block: clamp(10rem, 10.5vw, 11rem) 2.5rem; }
.hero-copy { max-width: 75rem; }
.hero .eyebrow { display: inline-flex; color: var(--orange); background: rgba(0,0,0,.55); padding: .25rem .5rem .25rem 0; font-size: .8rem; }
.hero-copy h1 span { display: block; }
.hero-copy h1 { line-height: 1.02; }
.hero-copy h1 em { font-style: normal; }
@supports (-webkit-text-stroke: 1px white) {
  .hero-copy h1 em { color: transparent; -webkit-text-stroke: 1.3px var(--white); }
}
.hero-copy > p:not(.eyebrow):not(.signature) { max-width: 34rem; margin-top: 1.25rem; font-size: .95rem; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 1.5rem; }
.signature { display: flex; gap: .8rem; align-items: center; margin-top: 1.25rem; font-size: .85rem; }
.signature::before { content: ''; width: 2rem; height: 2px; background: var(--orange); }
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; padding-block: 2px; background: #c4ccca; }
.feature-tile { position: relative; isolation: isolate; display: grid; min-width: 0; min-height: 18.5rem; overflow: clip; color: var(--white); }
.feature-photo { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.feature-tile::before { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.96), rgba(0,0,0,.68) 60%, rgba(0,0,0,.08)); }
.feature-tile[data-section="residential"] .feature-photo { object-position: 60% 55%; }
.feature-tile[data-section="commercial"] .feature-photo { object-position: 50% 45%; }
.feature-tile[data-section="services"] .feature-photo { object-position: 35% 50%; }
.feature-tile[data-section="about"] .feature-photo { object-position: 65% 50%; }
.feature-tile:hover .feature-photo, .feature-tile:focus-within .feature-photo { transform: scale(1.035); }
/* Content remains in normal flow: long text and zoom can grow the row. */
.feature-copy { display: grid; grid-template-rows: auto 1fr auto; gap: .75rem; min-width: 0; padding: 7rem clamp(1.1rem, 1.9vw, 2.25rem) 1.5rem; }
.feature-copy h2 { font-size: 1.55rem; }
.feature-copy > p { font-size: .83rem; line-height: 1.5; }
.feature-copy .button { justify-self: start; align-self: end; max-width: 100%; margin-top: .35rem; font-size: .7rem; min-height: 46px; padding: .7rem 1rem; }
.feature-copy .button .arrow { color: var(--orange); flex: 0 0 auto; }
.work-section { background: var(--black); color: var(--white); }
.work-section .eyebrow { color: var(--orange); }
.section-heading { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 3rem; align-items: end; margin-bottom: 3rem; }
.work-section .section-intro { color: var(--light-text); }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 2rem; }
.project-card { min-width: 0; background: #151c1c; }
.project-visual { position: relative; min-height: 27rem; overflow: clip; }
.project-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.project-card:hover .project-cover, .project-visual:focus-within .project-cover { transform: scale(1.025); }
/* Separate semantic control: no links/headings nested inside a button. */
.project-photo-toggle { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; cursor: pointer; }
.project-photo-toggle[hidden] { display: none; }
.work-section .project-photo-toggle:focus-visible { outline: 3px solid var(--orange); outline-offset: -6px; box-shadow: inset 0 0 0 9px var(--black); }
.project-body { position: absolute; inset: auto 0 0; padding: clamp(1.3rem, 2.4vw, 2.6rem); background: linear-gradient(0deg, rgba(0,0,0,.96), rgba(0,0,0,.65)); }
.project-context { display: inline-flex; margin-bottom: .6rem; padding: .2rem .5rem; color: var(--orange); background: rgba(0,0,0,.72); font-size: .73rem; font-weight: 700; text-transform: uppercase; }
.project-card h3 { max-width: 28ch; }
.project-description { margin-top: .7rem; font-size: .87rem; line-height: 1.6; color: var(--white); }
.project-gallery { padding-inline: clamp(1.3rem, 2.4vw, 2.6rem); border-top: 1px solid var(--brand-teal); }
.project-gallery summary { position: relative; padding-block: 1rem; padding-right: 2rem; min-height: 50px; cursor: pointer; font-size: .82rem; font-weight: 650; }
.gallery-count { font-weight: 400; color: var(--light-text); }
.summary-plus { position: absolute; right: 0; top: .5rem; color: var(--orange); font-size: 1.7rem; }
.project-gallery[open] .summary-plus { transform: rotate(45deg); }
.gallery-images { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; padding-block: .5rem 1.5rem; }
.gallery-images a { display: block; }
.gallery-images img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery-images figcaption { margin-top: .4rem; color: var(--light-text); font-size: .72rem; }
#services { background: var(--paper); }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 4rem); margin-top: 3.5rem; }
.service-card { min-width: 0; padding-top: 1.75rem; border-top: 3px solid var(--brand-teal); }
.service-card p { margin-top: 1rem; font-size: .92rem; color: var(--muted); }
.service-card ul { padding-left: 1.1rem; margin-block: 1.5rem 0; font-size: .88rem; }
.service-card li { margin-block: .6rem; }
.service-card li::marker { color: var(--deep-teal); }
.company-section { position: relative; overflow: clip; background: var(--deep-teal); color: var(--white); }
.company-visual { position: absolute; width: 45%; height: 100%; inset: 0 auto 0 0; }
.company-photo { width: 100%; height: 100%; object-fit: cover; object-position: 65% center; }
.company-visual::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.08), rgba(0,0,0,.08) 80%, var(--deep-teal)); }
.company-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; width: min(43rem, calc(55% - 2 * var(--gutter))); margin-left: calc(45% + var(--gutter)); margin-right: auto; }
.company-copy .eyebrow { color: var(--white); }
.company-copy p:not(.eyebrow) { margin-top: 1.5rem; color: var(--light-text); }
.company-copy .text-link { display: inline-flex; gap: 1rem; align-items: center; min-height: 44px; margin-top: 1.5rem; font-weight: 650; font-size: .85rem; text-decoration-color: var(--orange); }
.value-panel { border-top: 1px solid var(--brand-teal); padding-top: 1.5rem; }
.value-panel > p:first-child { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.value-quote { margin-top: .8rem; font-size: clamp(2.1rem, 3vw, 3rem); font-weight: 700; line-height: 1.15; letter-spacing: -.03em; }
.orange-rule { width: 3rem; height: 3px; margin-top: 1.25rem; background: var(--orange); }
.value-panel p:last-child { margin-top: 1.2rem; font-size: .9rem; color: var(--light-text); }
#contact { background: var(--paper); }
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.contact-copy > p:not(.eyebrow) { margin-top: 1.5rem; color: var(--muted); }
.contact-copy > h3 { margin-top: 2.5rem; font-size: 1rem; }
.contact-details { font-style: normal; }
.contact-details dl { margin-top: 1rem; }
.contact-details dt { margin-top: 1.1rem; color: var(--muted); font-size: .75rem; }
.contact-details dd { margin: .1rem 0 0; overflow-wrap: anywhere; }
.contact-details a { display: inline-flex; align-items: center; min-height: 44px; }
.form-preview { background: var(--white); padding: clamp(1.2rem, 3vw, 2.5rem); border-top: 4px solid var(--orange); }
.form-preview h3 { font-size: 1.6rem; }
.form-notice { margin-top: 1rem; color: var(--deep-teal); font-size: .82rem; font-weight: 650; }
.form-context { margin-top: .5rem; color: var(--muted); font-size: .75rem; }
.form-fields { border: 0; padding: 0; margin: 1.5rem 0 0; min-width: 0; }
.form-fields label { display: block; margin-block: 1.1rem .4rem; font-size: .85rem; font-weight: 650; }
.form-fields input, .form-fields textarea { display: block; width: 100%; min-height: 48px; border: 1px solid var(--control-line); border-radius: 0; padding: .85rem; color: var(--ink); background: var(--white); }
.form-fields textarea { min-height: 9rem; resize: vertical; }
.form-fields textarea::placeholder { color: var(--muted); opacity: 1; }
.form-fields .button { width: 100%; margin-top: 1.5rem; background: var(--paper); color: var(--muted); border-color: var(--control-line); cursor: not-allowed; }
.form-privacy { margin-top: .75rem; color: var(--muted); font-size: .75rem; }
.site-footer { background: var(--black); color: var(--white); padding-block: 3rem 1.5rem; }
.footer-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; }
.footer-brand { font-size: 1.1rem; text-transform: uppercase; font-weight: 800; }
.footer-contact { margin-top: .75rem; font-size: .85rem; color: var(--light-text); overflow-wrap: anywhere; }
.footer-contact a { display: inline-block; padding-block: .4rem; }
.footer-nav { justify-self: end; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--brand-teal); font-size: .72rem; color: var(--light-text); }
.footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-preview { margin-top: 1rem; color: var(--light-text); font-size: .7rem; }
@media (min-width: 110rem) {
  .hero-content { padding-top: 11rem; }
}
@media (max-width: 85rem) {
  .header-phone span:last-child { display: none; }
  .header-phone { min-width: 44px; justify-content: center; }
  .brand-logo { width: 4.5rem; }
  .header-inner { gap: 1rem; }
}
@media (max-width: 68rem) {
  .primary-nav, .desktop-quote { display: none; }
  .header-inner { grid-template-columns: minmax(0, 1fr) auto auto; min-height: 7rem; }
  .mobile-menu { display: block; }
  .mobile-menu summary { display: inline-flex; gap: .75rem; align-items: center; justify-content: center; min-height: 44px; padding: .5rem .65rem; border: 1px solid var(--white); cursor: pointer; font-size: .8rem; text-transform: uppercase; list-style: none; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .menu-bars { width: 1rem; height: .75rem; border-block: 2px solid currentColor; position: relative; }
  .menu-bars::after { content: ''; position: absolute; top: calc(50% - 1px); width: 100%; height: 2px; background: currentColor; }
  .mobile-menu nav { position: absolute; inset: 100% 0 auto; padding: 1rem var(--gutter); background: var(--black); border-bottom: 2px solid var(--orange); }
  .mobile-menu ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem 1rem; margin: 0; padding: 0; list-style: none; }
  .mobile-menu a { display: inline-flex; align-items: center; min-height: 44px; font-size: .9rem; }
  .hero-content { padding-top: 10rem; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-tile { min-height: 23rem; }
  .feature-copy { padding-inline: 1.75rem; }
  .project-visual { min-height: 25rem; }
  .mobile-quote { position: fixed; z-index: 40; inset: auto 0 0; display: flex; gap: .75rem; padding: .65rem max(1rem, env(safe-area-inset-right)) max(.65rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left)); background: rgba(12,16,16,.98); border-top: 1px solid var(--brand-teal); }
  .mobile-quote > .button { flex: 1; }
  .mobile-phone { display: inline-flex; align-items: center; justify-content: center; min-width: 50px; min-height: 50px; color: var(--white); border: 1px solid var(--white); text-decoration: none; font-size: 1.4rem; }
  body { padding-bottom: 5.5rem; }
  html { scroll-padding-bottom: 6rem; }
}
@media (max-width: 54rem) {
  .section-heading, .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .hero { min-height: 40rem; }
  .hero h1 { font-size: clamp(2.8rem, 6.3vw, 4rem); }
  .hero-copy { max-width: 42rem; }
  .project-grid { gap: 1.25rem; }
  .project-visual { min-height: 26rem; }
  .service-grid { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .service-card { padding-top: 1.2rem; }
  .company-section { padding-top: 0; }
  .company-visual { position: relative; width: 100%; height: 22rem; }
  .company-visual::after { background: linear-gradient(0deg, var(--deep-teal), transparent 50%); }
  .company-grid { width: calc(100% - 2 * var(--gutter)); margin-inline: auto; padding-top: 2rem; }
}
@media (max-width: 39rem) {
  .header-inner { gap: .5rem; min-height: 6rem; }
  .brand { gap: .55rem; }
  .brand-logo { width: 2.9rem; }
  .brand-name { font-size: .52rem; letter-spacing: .1em; }
  .brand-name strong { font-size: .98rem; }
  .header-phone { display: none; }
  .header-actions { gap: 0; }
  .language-link { min-width: 36px; }
  .mobile-menu summary { padding-inline: .45rem; gap: .5rem; font-size: .7rem; }
  .hero { min-height: 44rem; }
  .hero-background { object-position: 58% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(0,0,0,.28), rgba(0,0,0,.12)), linear-gradient(180deg, rgba(0,0,0,.25), transparent 50%, rgba(0,0,0,.35)); }
  .hero-content { padding-block: 9rem 3rem; }
  .hero-copy h1 { font-size: clamp(2.7rem, 9.5vw, 3.7rem); line-height: 1.03; font-variation-settings: 'wdth' 85; }
  .hero-copy h1 span { max-width: 100%; }
  .hero .eyebrow { font-size: .63rem; gap: .5rem; line-height: 1.6; }
  .hero .eyebrow::before { width: 1.2rem; }
  .hero-copy > p:not(.eyebrow):not(.signature) { font-size: .9rem; max-width: 33ch; }
  .hero-actions { display: grid; gap: .75rem; }
  .hero-actions .button { width: 100%; min-height: 52px; }
  .signature { font-size: .8rem; }
  .feature-grid, .project-grid, .footer-main { grid-template-columns: minmax(0, 1fr); }
  .feature-tile { min-height: 22rem; }
  .feature-copy { padding-inline: 1.5rem; }
  .feature-copy h2 { font-size: 1.85rem; }
  .feature-copy p { max-width: 38ch; }
  .project-visual { min-height: 26rem; }
  .project-body { padding: 1.3rem; }
  .gallery-images { gap: .65rem; }
  .project-gallery { padding-inline: 1.3rem; }
  .footer-nav { justify-self: start; }
  .footer-main { gap: 1.5rem; }
  .footer-bottom { align-items: start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .feature-tile:hover .feature-photo, .feature-tile:focus-within .feature-photo, .project-card:hover .project-cover, .project-visual:focus-within .project-cover { transform: none; }
}
@media (forced-colors: active) {
  .hero-copy h1 em { color: CanvasText; -webkit-text-stroke: 0; }
  .hero-shade, .hero-background, .feature-photo, .project-cover { display: none; }
  .hero, .site-header, .feature-tile, .project-card { background: Canvas; color: CanvasText; }
  .feature-copy, .project-body { background: Canvas; color: CanvasText; }
  .button { border: 2px solid ButtonText; }
}
@media print {
  .site-header { position: static; background: white; color: black; }
  .hero-background, .hero-shade, .mobile-quote, .mobile-menu, .form-preview { display: none; }
  .hero { min-height: 0; background: white; color: black; }
  .hero-content { padding-block: 2rem; }
  .hero-copy h1 em { color: black; -webkit-text-stroke: 0; }
  .hero .eyebrow { color: black; background: white; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body { padding-bottom: 0; }
}

/* R4: only the work section gains a horizontal, manually scrolled carousel. */
.work-section .carousel-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 1.5rem; }
.work-section .carousel-help { flex: 1 1 24rem; max-width: 70ch; color: var(--light-text); font-size: .8rem; }
.work-section .carousel-controls { display: flex; gap: .75rem; }
.work-section .carousel-controls[hidden] { display: none; }
.work-section .carousel-button { display: inline-flex; align-items: center; justify-content: center; width: 52px; min-height: 52px; border: 1px solid var(--brand-teal); border-radius: .2rem; color: var(--orange); background: var(--black); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.work-section .carousel-button:hover { border-color: var(--orange); }
.work-section .carousel-button[aria-disabled="true"] { color: var(--light-text); opacity: .5; cursor: default; }
.work-section .carousel-shell { min-width: 0; margin-inline: calc(1rem - var(--gutter)); }
.work-section .project-carousel { --project-gap: clamp(1rem, 2vw, 1.75rem); position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * var(--project-gap)) / 2.15); align-items: start; gap: var(--project-gap); min-width: 0; max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-padding-inline: .5rem; scroll-behavior: smooth; padding: .5rem .5rem 1.25rem; scrollbar-color: var(--orange) var(--black); scrollbar-width: auto; }
.work-section .project-carousel > .project-card { min-width: 0; scroll-snap-align: start; scroll-margin-inline: 0; }
.work-section .project-carousel:focus-visible { outline-offset: -3px; box-shadow: none; }
.work-section .project-carousel .project-visual { display: grid; align-items: end; min-height: clamp(31rem, 42vw, 42rem); }
.work-section .project-carousel .project-body { position: relative; inset: auto; margin-top: 12rem; }
.work-section .project-carousel h3 { font-size: clamp(1.65rem, 2.4vw, 2.4rem); }
.work-section .project-carousel .project-description { font-size: .95rem; }
@media (max-width: 68rem) {
  .work-section .project-carousel { grid-auto-columns: 78%; }
  .work-section .project-carousel .project-visual { min-height: 31rem; }
}
@media (max-width: 39rem) {
  .work-section .project-carousel { grid-auto-columns: 88%; }
  .work-section .project-carousel .project-visual { min-height: 28rem; }
  .work-section .project-carousel h3 { font-size: 1.65rem; }
  .work-section .project-carousel .project-description { font-size: .9rem; }
}
@media (prefers-reduced-motion: reduce) {
  .work-section .project-carousel { scroll-behavior: auto; }
}
@media (forced-colors: active) {
  .work-section .carousel-button { border-color: ButtonText; color: ButtonText; }
}
@media print {
  .work-section .carousel-controls, .work-section .carousel-help { display: none; }
  .work-section .carousel-shell { margin-inline: 0; }
  .work-section .project-carousel { display: grid; grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-columns: auto; overflow: visible; }
}

/* Desktop persistence: retain the approved header geometry and all child styles.
   The existing tablet/mobile positioning stays absolute; no scroll JavaScript. */
@media screen {
  body:not(.esquisses-v2-secondary) > .site-header { background: transparent; }
}
@media screen and (width > 68rem) {
  body:not(.esquisses-v2-secondary) > .site-header { position: fixed; }
  /* Existing header minimum: 8.3rem. Keep an additional 1.5rem of clearance.
     scroll-margin does not participate in layout or horizontal gallery scrolling. */
  body:not(.esquisses-v2-secondary) :where([id], a[href], button, input, textarea, select, summary, [tabindex]) {
    scroll-margin-top: calc(8.3rem + 1.5rem);
  }
  body.admin-bar:not(.esquisses-v2-secondary) :where([id], a[href], button, input, textarea, select, summary, [tabindex]) {
    scroll-margin-top: calc(8.3rem + 1.5rem + 32px);
  }
}

/* Adaptive text only. The original PNGs, layout, CTA and focus ring stay intact. */
@media screen and (width > 68rem) and (forced-colors: none) {
  body:not(.esquisses-v2-secondary) > .site-header :is(.brand-name, .primary-nav a, .header-phone, .language-link)[data-header-contrast="light"] { color: #183C3B; }
  body:not(.esquisses-v2-secondary) > .site-header :is(.brand-name, .primary-nav a, .header-phone, .language-link)[data-header-contrast="dark"] { color: #ffffff; }
  body:not(.esquisses-v2-secondary) > .site-header .header-phone > span:first-child { color: inherit; }
}
