/* Layout: cinematic full-bleed photography carries the page; a Bodoni display voice and quiet Jost text sit on lime-washed ground. One accent: Mallorcan shutter green. */
:root {
  --cal: #F1F0EB;          /* lime wash */
  --linen: #E4DFD3;        /* raw linen band */
  --paper: #FAF9F6;        /* forms */
  --ink: #23201B;          /* walnut ink */
  --stone: #5F594F;        /* secondary text */
  --line: #D2CEC3;         /* plaster seam */
  --shutter: #24402F;      /* shutter green, the only accent */
  --on-dark: #F4F2EC;
  --on-accent: #F4F2EC;
  --scrim: rgba(20, 18, 14, .58);
  --notice: #DDE3DC;
  --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --body: "Jost", "Futura", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --t-small: .875rem;
  --t-body: 1.0625rem;
  --t-lead: clamp(1.15rem, 1.6vw, 1.375rem);
  --t-h3: clamp(1.5rem, 2.2vw, 1.875rem);
  --t-h2: clamp(2.1rem, 4.4vw, 3.5rem);
  --t-hero: clamp(2.9rem, 7.4vw, 6.5rem);
  --gutter: clamp(16px, 4.5vw, 64px);
  --max: 1320px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --cal: #191B18; --linen: #23251F; --paper: #20221E; --ink: #EEEBE3; --stone: #ACA79B;
    --line: #34362F; --shutter: #9CC1A9; --on-accent: #13201A; --notice: #27322A; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --cal: #191B18; --linen: #23251F; --paper: #20221E; --ink: #EEEBE3; --stone: #ACA79B;
  --line: #34362F; --shutter: #9CC1A9; --on-accent: #13201A; --notice: #27322A; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cal); color: var(--ink); font-family: var(--body); font-size: var(--t-body); font-weight: 400; line-height: 1.65; -webkit-font-smoothing: antialiased; }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); box-sizing: border-box; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
h1 { line-height: 1.02; }
h2 { font-size: var(--t-h2); line-height: 1.06; }
h3 { font-size: var(--t-h3); line-height: 1.15; }
p { margin: 0; max-width: 62ch; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--shutter); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--cal); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

.draft { background: var(--notice); color: var(--ink); font-size: var(--t-small); text-align: center; padding: .45rem var(--gutter); }

/* Header: transparent over the hero, solid once scrolled */
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; transition: background-color .3s var(--ease), border-color .3s var(--ease); border-bottom: 1px solid transparent; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 72px; }
.over-hero { position: relative; }
.over-hero .site-head { position: absolute; top: 0; left: 0; right: 0; color: var(--on-dark); }
.over-hero .site-head.solid { position: fixed; top: 0; padding-top: env(safe-area-inset-top, 0px); background: var(--cal); color: var(--ink); border-bottom-color: var(--line); }
.solid-head .site-head { background: var(--cal); border-bottom-color: var(--line); }
.brand { font-family: var(--display); font-size: 1.5rem; text-decoration: none; letter-spacing: .005em; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.25rem); font-size: .95rem; }
.nav a { text-decoration: none; opacity: .86; }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.nav .btn { opacity: 1; text-decoration: none; min-height: 44px; padding: .5rem 1.15rem; align-self: center; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .75rem 1.6rem; border-radius: 0; font: 500 .95rem var(--body); letter-spacing: .02em; text-decoration: none; cursor: pointer; border: 1px solid currentColor; transition: background-color .2s var(--ease), color .2s var(--ease); touch-action: manipulation; }
.btn-solid { background: var(--shutter); border-color: var(--shutter); color: var(--on-accent); }
.btn-solid:hover { background: var(--ink); border-color: var(--ink); color: var(--cal); }
.btn-line { background: transparent; color: inherit; }
.btn-line:hover { background: var(--ink); color: var(--cal); border-color: var(--ink); }
.btn-light { background: var(--on-dark); color: #1c1a16; border-color: var(--on-dark); }
.btn-light:hover { background: transparent; color: var(--on-dark); }
.btn-ghost-light { background: transparent; color: var(--on-dark); border-color: rgba(244,242,236,.7); }
.btn-ghost-light:hover { background: var(--on-dark); color: #1c1a16; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.textlink { font-weight: 500; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }

/* Hero: full-bleed photograph */
.hero { position: relative; min-height: min(92vh, 900px); display: grid; align-items: end; color: var(--on-dark); overflow: hidden; background: #2a2620; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,18,14,.62) 0%, rgba(20,18,14,.38) 38%, rgba(20,18,14,0) 70%), linear-gradient(180deg, rgba(20,18,14,.42) 0%, rgba(20,18,14,0) 26%, rgba(20,18,14,0) 55%, rgba(20,18,14,.55) 100%); }
.hero h1, .hero .lede { text-shadow: 0 1px 24px rgba(0,0,0,.25); }
.hero .wrap { position: relative; z-index: 1; width: 100%; padding-block: 8rem clamp(2.5rem, 6vw, 4.5rem); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: end; }
.hero h1 { font-size: var(--t-hero); max-width: 12ch; }
.hero .lede { font-size: var(--t-lead); line-height: 1.55; margin-block: 1.25rem 2rem; max-width: 44ch; color: rgba(244,242,236,.92); }
.hero .credit { font-size: var(--t-small); color: rgba(244,242,236,.8); text-align: right; max-width: 22ch; }
@media (prefers-reduced-motion: no-preference) {
  .hero > img { animation: settle 2.2s var(--ease) both; }
  .hero .copy { animation: rise 1s .35s var(--ease) both; }
  @keyframes settle { from { transform: scale(1.07); } to { transform: scale(1); } }
  @keyframes rise { from { transform: translateY(18px); opacity: .001; } to { transform: none; opacity: 1; } }
}

/* Proof strip */
.proof { background: var(--linen); }
.proof ul { list-style: none; margin-block: 0; padding-block: 1.4rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem 2rem; font-size: .95rem; }
.proof li { display: grid; gap: .1rem; min-width: 0; }
.proof strong { font-family: var(--display); font-weight: 400; font-size: 1.35rem; line-height: 1.2; }
.proof span { color: var(--stone); }

/* Sections */
.section { padding-block: clamp(4.5rem, 10vw, 8.5rem); }
.kicker { font-size: .95rem; color: var(--stone); margin-bottom: 1rem; }

/* Manifesto */
.manifesto { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2.5rem, 7vw, 7rem); align-items: center; }
.manifesto h2 { font-size: clamp(2.4rem, 5.6vw, 4.5rem); }
.manifesto .text { display: grid; gap: 1.25rem; font-size: 1.125rem; }
.manifesto .text p:first-child { font-size: var(--t-lead); line-height: 1.55; }

/* Feature: one room, told properly */
.feature { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(2rem, 5vw, 5rem); align-items: end; }
.feature figure { margin: 0; }
.feature img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.feature .side { display: grid; gap: 1.25rem; padding-bottom: 1rem; }
.feature .side img { aspect-ratio: 1; }
.feature dl { margin: .5rem 0 0; display: grid; grid-template-columns: auto 1fr; gap: .45rem 1.25rem; font-size: .95rem; }
.feature dt { color: var(--stone); }
.feature dd { margin: 0; }

/* Gallery: editorial grid */
.gallery-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(.75rem, 1.6vw, 1.5rem); }
.gallery figure { margin: 0; min-width: 0; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption { font-size: var(--t-small); color: var(--stone); margin-top: .55rem; }
.g1 { grid-column: 1 / span 7; } .g1 img { aspect-ratio: 4 / 3.2; }
.g2 { grid-column: 8 / span 5; } .g2 img { aspect-ratio: 4 / 4.6; }
.g3 { grid-column: 1 / span 4; } .g3 img { aspect-ratio: 4 / 5; }
.g4 { grid-column: 5 / span 4; } .g4 img { aspect-ratio: 4 / 5; }
.g5 { grid-column: 9 / span 4; } .g5 img { aspect-ratio: 4 / 5; }
.g6 { grid-column: 1 / span 5; } .g6 img { aspect-ratio: 1; }
.g7 { grid-column: 6 / span 7; } .g7 img { aspect-ratio: 7 / 5; }

/* Services */
.services-wrap { background: var(--linen); }
.services-head { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.services-head p { color: var(--stone); justify-self: end; }
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--ink); }
.service { display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 1rem; padding: 2rem clamp(1rem, 2.5vw, 2.25rem) 2.25rem; min-width: 0; border-right: 1px solid var(--line); }
.service:first-child { padding-left: 0; }
.service:last-child { border-right: 0; padding-right: 0; }
.service .tag { font-size: var(--t-small); color: var(--shutter); font-weight: 500; min-height: 1.4em; }
.price { font-family: var(--display); font-size: clamp(2.6rem, 4vw, 3.5rem); line-height: 1; font-variant-numeric: lining-nums; }
.price small { font-family: var(--body); font-size: .95rem; color: var(--stone); margin-right: .35rem; }
.service .meta { color: var(--stone); font-size: .975rem; }
.service ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .55rem; font-size: .975rem; }
.service li { padding-left: 1.4rem; position: relative; }
.service li::before { content: ""; position: absolute; left: 0; top: .72em; width: .7rem; height: 1px; background: var(--ink); }
.service .btn { justify-self: start; }
.extras { margin-top: 2.5rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 3rem; font-size: .95rem; color: var(--stone); }
.extras strong { color: var(--ink); font-weight: 500; }

/* Process: a real sequence */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); counter-reset: step; }
.steps li { counter-increment: step; display: grid; gap: .6rem; align-content: start; min-width: 0; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.steps li::before { content: counter(step); font-family: var(--display); font-size: 2.75rem; line-height: 1; color: var(--shutter); }
.steps h3 { font-family: var(--body); font-weight: 500; font-size: 1.125rem; letter-spacing: 0; }
.steps p { color: var(--stone); font-size: .975rem; }
.note { font-size: var(--t-small); color: var(--stone); margin-top: 2.25rem; }

/* Why Sonia */
.why { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.why .portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.why .portrait figcaption { font-size: var(--t-small); color: var(--stone); margin-top: .55rem; }
.why .text { display: grid; gap: 1.5rem; }
.points { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem 2.25rem; margin-top: 1rem; }
.points div { display: grid; gap: .35rem; min-width: 0; }
.points h3 { font-family: var(--body); font-weight: 500; font-size: 1.0625rem; letter-spacing: 0; }
.points p { color: var(--stone); font-size: .975rem; }

/* Atelier band */
.atelier-band { position: relative; color: var(--on-dark); background: #1d1b17; overflow: hidden; }
.atelier-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.atelier-band .wrap { position: relative; padding-block: clamp(5rem, 12vw, 9rem); display: grid; gap: 1.5rem; }
.atelier-band h2 { font-size: clamp(2.6rem, 6vw, 5rem); max-width: 14ch; }
.atelier-band p { font-size: var(--t-lead); line-height: 1.55; max-width: 46ch; color: rgba(244,242,236,.9); }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 6rem); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.2rem; font-weight: 500; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg) translate(-3px, -3px); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.faq details p { color: var(--stone); padding-bottom: 1.3rem; }

/* Start */
.start { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.start .text { display: grid; gap: 1.25rem; position: sticky; top: 100px; }
.start .text p { color: var(--stone); }
.form { background: var(--paper); border: 1px solid var(--line); padding: clamp(1.25rem, 4vw, 2.75rem); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1.5rem; }
.field { display: grid; gap: .45rem; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .925rem; font-weight: 500; }
.field .hint { font-weight: 400; color: var(--stone); }
input, select, textarea { font: inherit; font-size: 1rem; color: var(--ink); background: var(--cal); border: 1px solid var(--line); border-radius: 0; padding: .75rem .85rem; min-height: 48px; width: 100%; box-sizing: border-box; }
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--shutter); outline-offset: 0; border-color: var(--shutter); }
.err { color: #9a2f22; font-size: .875rem; }
:root[data-theme="dark"] .err { color: #F0A898; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .err { color: #F0A898; } }
.form .btn { justify-self: start; }
.form-msg { grid-column: 1 / -1; background: var(--notice); padding: .9rem 1rem; font-size: .95rem; }

/* Footer */
.foot { border-top: 1px solid var(--line); }
.foot .wrap { display: grid; grid-template-columns: 1fr auto 1.3fr; column-gap: clamp(2rem, 6vw, 5rem); gap: 2rem; padding-block: 3rem 3.5rem; font-size: .925rem; color: var(--stone); }
.foot .brand { color: var(--ink); font-size: 1.75rem; }
.foot .mail { color: var(--ink); user-select: all; }
.foot nav { display: grid; gap: .4rem; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { color: var(--ink); text-decoration: underline; }

/* Atelier page */
.atelier-hero { min-height: min(88vh, 860px); }
.atelier-hero h1 { max-width: 11ch; }
.includes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem clamp(1.5rem, 4vw, 3.5rem); }
.includes div { display: grid; gap: .55rem; align-content: start; min-width: 0; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.includes h3 { font-size: var(--t-h3); }
.includes p { color: var(--stone); }
.diptych { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(.75rem, 1.6vw, 1.5rem); align-items: end; }
.diptych img { width: 100%; object-fit: cover; }
.diptych .a { aspect-ratio: 4 / 4.4; }
.diptych .b { aspect-ratio: 4 / 5; }
.quiet { font-family: var(--display); font-style: italic; font-size: var(--t-h3); line-height: 1.3; max-width: 30ch; }

@media (max-width: 1000px) {
  .hero::after { background: linear-gradient(180deg, rgba(20,18,14,.45) 0%, rgba(20,18,14,.15) 30%, rgba(20,18,14,.5) 60%, rgba(20,18,14,.8) 100%); }
  .nav .hide-m { display: none; }
  .proof ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .manifesto, .feature, .why, .faq-grid, .start, .services-head { grid-template-columns: 1fr; }
  .services-head p { justify-self: start; }
  .start .text { position: static; }
  .services { grid-template-columns: 1fr; border-top: 0; }
  .service, .service:first-child, .service:last-child { padding: 2rem 0; border-right: 0; border-top: 1px solid var(--ink); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .includes { grid-template-columns: 1fr 1fr; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .credit { text-align: left; }
}
@media (max-width: 640px) {
  .nav .hide-s { display: none; }
  .brand { font-size: 1.3rem; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .g1, .g7 { grid-column: 1 / -1; }
  .g2, .g3, .g4, .g5, .g6 { grid-column: auto; }
  .g2 img, .g6 img { aspect-ratio: 4 / 5; }
  .g5 { grid-column: 1 / -1; } .g5 img { aspect-ratio: 4 / 3; }
  .form, .points, .extras, .includes, .steps, .diptych { grid-template-columns: 1fr; }
  .foot .wrap { grid-template-columns: 1fr; }
  .feature .side img { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Legal pages */
.legal { padding-block: clamp(3rem, 7vw, 5.5rem); }
.legal-wrap { max-width: 760px; }
.legal h1 { font-size: var(--t-h2); margin-bottom: .75rem; }
.legal h2 { font-family: var(--body); font-weight: 500; font-size: 1.15rem; letter-spacing: 0; margin-top: 2.25rem; margin-bottom: .6rem; }
.legal p, .legal li { color: var(--stone); }
.legal p + p { margin-top: .9rem; }
.legal ul, .legal ol { padding-left: 1.2rem; display: grid; gap: .45rem; margin: .5rem 0 0; }
.legal-note { background: var(--notice); color: var(--ink) !important; padding: .7rem 1rem; font-size: var(--t-small); margin-bottom: 1rem; }

/* Consent checkboxes */
.check { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: start; font-size: .925rem; color: var(--stone); }
.check input { width: 20px; height: 20px; min-height: 0; margin: .15rem 0 0; padding: 0; accent-color: var(--shutter); }
.check a { color: var(--ink); }
.check strong { color: var(--ink); font-weight: 500; }

/* Newsletter in footer */
.news { display: grid; gap: .6rem; }
.news h2 { font-size: 1.35rem; }
.news form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem; }
.news .check { grid-column: 1 / -1; font-size: .85rem; }
.news .btn { min-height: 48px; }
.news .form-msg { grid-column: 1 / -1; }
.foot .legal-links { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 1.25rem; font-size: .875rem; }
.foot .legal-links a, .foot .legal-links button { color: var(--stone); text-decoration: none; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.foot .legal-links a:hover, .foot .legal-links button:hover { color: var(--ink); text-decoration: underline; }

/* Cookie banner: Accept and Reject at equal weight */
.cookie { position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 60; max-width: 560px; margin-left: auto; background: var(--paper); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 10px 40px rgba(20,18,14,.18); padding: 1.25rem 1.35rem; display: grid; gap: .9rem; font-size: .925rem; }
.cookie p { max-width: none; color: var(--stone); }
.cookie p strong { color: var(--ink); font-weight: 500; }
.cookie .row { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.cookie .btn { width: 100%; min-height: 44px; padding: .55rem 1rem; background: transparent; color: var(--ink); border-color: var(--ink); }
.cookie .btn:hover { background: var(--ink); color: var(--cal); }
