/* Bellworks / Ambient-50 · buildless CSS · edit the palette and typography here. */
@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/source-serif4-bold-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/source-serif4-bold-latin-ext.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0300-0303, U+0305-0307, U+0309-0328, U+032A-036F, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/source-serif4-regular-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/source-serif4-regular-latin-ext.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0300-0303, U+0305-0307, U+0309-0328, U+032A-036F, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Existing Canva web subsets, reused for the owner’s licensed website.
   The body subset is anonymized; the owner identifies it as The Youngest. */
@font-face {
  font-family: "The Youngest";
  src: url("fonts/the-youngest-canva.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nantes";
  src: url("fonts/nantes-bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #fafaf8;
  --ink: #171513;
  --taupe: #ae9886;
  --accent: #bc926f;
  --rule: #d5c9bc;
  --logo: "Nantes", "Source Serif 4", Georgia, serif;
  --text: "The Youngest", "Source Serif 4", Georgia, "Times New Roman", serif;
  --body-size: clamp(1.125rem, 1.96vw, 1.8125rem);
  --heading-size: clamp(2.5rem, 5.08vw, 5.125rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--text); font-synthesis: none; font-size: var(--body-size); line-height: 1.37; }
img, video { display: block; width: 100%; height: auto; }
img { object-fit: cover; }
figure, p, h1, h2, h3, dl, dd { margin: 0; }
a { color: inherit; text-underline-offset: .2em; }
a { -webkit-tap-highlight-color: transparent; }
a:focus-visible { outline: 0.125rem solid #694730; outline-offset: 0.3125rem; }
.wrap { width: 86%; max-width: 90rem; margin-inline: auto; }
.wrap--wide { width: 89%; max-width: 92.5rem; }
.section { padding-block: clamp(3rem, 4vw, 5.5rem); }
.split { display: grid; grid-template-columns: 1.29fr 1fr; column-gap: 9.3vw; align-items: center; }
.split--reverse { grid-template-columns: 1fr 1.29fr; }
.split > *, .case-grid > *, .contact-grid > * { min-width: 0; }
h2 { font-weight: 400; font-size: var(--heading-size); line-height: 1.02; letter-spacing: -.04em; text-wrap: balance; }
.prose h2 { margin-bottom: 1.5rem; }
.prose p + p { margin-top: .4em; }
.portrait { object-fit: cover; }
.wordmark { display: inline-block; font-family: var(--logo); font-weight: 700; font-size: clamp(2rem, 3.18vw, 3.25rem); line-height: 1.1; text-decoration: none; letter-spacing: -.045em; }
.wordmark span { color: var(--accent); }
.text-link { display: inline-flex; min-height: 2.75rem; align-items: center; gap: .4em; padding: .45rem 0; border: 0; background: transparent; font-family: var(--text); font-size: 1.25rem; line-height: 1.3; text-decoration: none; cursor: pointer; }
.text-link:hover { text-decoration: underline; }
.text-link span { font-size: 1.5em; line-height: 1; }
.visually-hidden { position: absolute; width: 0.0625rem; height: 0.0625rem; padding: 0; margin: -0.0625rem; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 10; top: 1rem; left: 1rem; padding: .6rem 1rem; background: var(--paper); border: 0.0625rem solid var(--ink); transform: translateY(-200%); font-size: 1.125rem; }
.skip-link:focus { transform: translateY(0); }

/* Hero */
.hero { padding-top: clamp(3rem, 6.7vw, 7.5rem); padding-bottom: 2.5rem; text-align: center; }
.hero-logo { display: block; width: 100%; max-width: 49rem; margin-inline: auto; mix-blend-mode: multiply; }
.hero-logo img { height: auto; }
h1 { margin-top: .1em; font-family: var(--text); font-weight: 400; font-size: clamp(3rem, 5.24vw, 5.7rem); line-height: 1.1; letter-spacing: -.035em; }
.hero-intro { max-width: 64.375rem; width: 88%; margin: 2.5rem auto 3.5rem; }
.hero-intro p + p { margin-top: .25em; }
.hero-photo { aspect-ratio: 3 / 1; object-position: 50% 46%; }

/* Alternating stories */
.construction-video { aspect-ratio: 3 / 4; height: auto; background: #382920; }
.evening-photo { aspect-ratio: 2 / 3; }
/* Full-bleed event interruption; shared page margins and serif typography. */
.debut { background: var(--taupe); padding-block: clamp(2rem, 4.5vw, 4.75rem); border-block: 0.0625rem solid #8f7865; }
.debut-masthead { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: 1.2rem; margin-bottom: clamp(2rem, 3.4vw, 3.5rem); border-bottom: 0.0625rem solid #806d5d; font-size: 1rem; line-height: 1.3; letter-spacing: .06em; text-transform: uppercase; }
.debut-grid { grid-template-columns: 1fr 1.35fr; gap: 7vw; align-items: center; }
.debut-photo { aspect-ratio: 1 / 1; object-position: center 55%; border: 0.75rem solid var(--paper); }
.debut-copy { padding-block: 1rem; }
.debut-kicker { font-size: 1.125rem; margin-bottom: 1.1rem; }
.debut h2 { font-size: clamp(2.75rem, 5.4vw, 5.375rem); letter-spacing: -.035em; line-height: 1; margin-bottom: 1.7rem; }
.debut-copy > div { max-width: 34rem; font-size: clamp(1.125rem, 1.7vw, 1.5rem); line-height: 1.45; }
.debut-copy p + p { margin-top: .8em; }
.media-caption { font-size: 1rem; margin-top: .5rem; }

/* Product and gallery share four equal-width quadrants. */
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; align-items: stretch; }
.product-grid > * { min-width: 0; }
.product-photo { aspect-ratio: 3 / 4; }
.product-details { display: flex; flex-direction: column; justify-content: center; padding: clamp(1rem, 3vw, 3.25rem); }
.product-details .text-link { align-self: flex-start; }
.product-gallery { display: grid; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 1.5rem; aspect-ratio: 3 / 4; min-height: 0; }
.product-gallery img { height: 100%; min-height: 0; object-fit: cover; }
.collage-lamps { object-position: center 20%; }
.collage-switch { object-position: center 45%; }
.collage-marking { object-position: center 50%; }
.collage-paper { object-position: center 43%; }
.product-details h2 { margin-bottom: .3rem; }
.product-details dl { margin-block: 1.2em; }
.product-details dl > div { margin-bottom: 1em; }
.product-details dl > div:last-child { margin-top: -1em; margin-bottom: 0; }
.product-details dt, .product-details dd { display: inline; }
.product-details dt:not(.visually-hidden) { margin-right: .25em; }

/* Interior examples: static stack without JS, manual carousel when enhanced. */
.case-navigation { display: flex; align-items: center; justify-content: flex-end; gap: .6rem; margin-bottom: .75rem; }
.case-navigation[hidden] { display: none; }
.case-arrow { display: flex; align-items: center; justify-content: center; width: 1.45em; min-width: 44px; min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: var(--heading-size); line-height: 1; cursor: pointer; }
.case-arrow:hover:not(:disabled) { color: #694730; }
.case-arrow:disabled { opacity: .3; cursor: default; }
.case-arrow:focus-visible { outline: 2px solid #694730; outline-offset: 4px; }
.case-count { min-width: 3em; text-align: center; font-size: 1rem; }
.case-slide + .case-slide { margin-top: 4rem; }
.case-carousel.is-carousel .case-viewport { overflow: hidden; }
.case-carousel.is-carousel .case-track { display: flex; align-items: flex-start; transition: transform .65s cubic-bezier(.4, 0, .2, 1); }
.case-carousel.is-carousel .case-slide { flex: 0 0 100%; min-width: 0; margin-top: 0; transition: opacity .65s ease; }
.case-carousel.is-carousel .case-slide[aria-hidden="true"] { opacity: 0; pointer-events: none; }
.case-heading { margin-bottom: 2.5rem; }
.case-heading h2 { max-width: 100%; }
.ambient-controls { display: flex; align-items: center; justify-content: flex-end; gap: .3em; margin-bottom: 1.25rem; padding-inline: 6px; }
.ambient-controls[hidden] { display: none; }
.ambient-controls > span:first-child { flex: 0 0 auto; margin-right: .2em; }
.ambient-button { display: flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 2.8em; min-width: 44px; min-height: 44px; padding: .35em .3em; border: 1px solid transparent; border-radius: 999px; background: transparent; color: #695b50; font: inherit; line-height: 1.2; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background-color .3s ease, color .3s ease, border-color .3s ease; }
.ambient-button[aria-pressed="true"] { background: #e8ded1; color: var(--ink); border-color: #c6b49e; }
.ambient-button:hover { color: var(--ink); border-color: #c6b49e; }
.ambient-button:focus-visible { outline: 2px solid #694730; outline-offset: 4px; }
.ambient-range { flex: 0 0 auto; width: 4.5rem; min-width: 54px; height: 44px; margin: 0; padding: 0; border: 0; background: transparent; color: var(--ink); font: inherit; cursor: pointer; appearance: none; -webkit-appearance: none; }
.ambient-range::-webkit-slider-runnable-track { height: 24px; background: #e8ded1; border: 1px solid #c6b49e; border-radius: 999px; }
.ambient-range::-moz-range-track { height: 22px; background: #e8ded1; border: 1px solid #c6b49e; border-radius: 999px; }
.ambient-range::-webkit-slider-thumb { width: 24px; height: 24px; margin-top: -1px; border: 2px solid var(--paper); border-radius: 50%; background: #694730; appearance: none; -webkit-appearance: none; }
.ambient-range::-moz-range-thumb { width: 20px; height: 20px; border: 2px solid var(--paper); border-radius: 50%; background: #694730; }
.ambient-range:focus-visible { outline: 2px solid #694730; outline-offset: 4px; border-radius: 2px; }
/* Both frames retain their complete 2048 × 1365 geometry. A shared 12 px
   border crop hides registration edges; positions scale with the viewport. */
.ambient-scene { position: relative; aspect-ratio: 2024 / 1341; overflow: hidden; background: #332219; isolation: isolate; }
.ambient-frame { position: absolute; width: 101.185771%; height: 101.789709%; left: -.592885%; top: -.894855%; }
.ambient-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; }
/* OFF → ON affine registration, measured from 50 shared room edges.
   Translation is a percentage of the full image, never fixed screen pixels. */
.ambient-image { transform-origin: 0 0; }
.ambient-image--off { opacity: 0; transition: opacity 1.2s cubic-bezier(.4, 0, .2, 1); }
.ambient-sepolno .ambient-image--off { transform: translate(.033096%, .015922%) matrix(1.000108196, .000559136, -.000404128, .999989610, 0, 0); }
.ambient-karlo.is-rectified .ambient-frame { width: 112.527473%; height: 113.199105%; left: -16.483516%; top: -4.975785%; }
/* The new pair is rectified projectively by ambient.js. Its 2D fallback
   keeps the pair registered if ResizeObserver/projective setup is unavailable. */
.ambient-karlo .ambient-image--off { transform: translate(1.594929%, .705225%) matrix(1.003223760, -.000388787, .003721596, 1.002628705, 0, 0); }
.ambient-comparison[data-state="off"] .ambient-image--off { opacity: 1; }

/* Studio */
.studio-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.studio-grid .prose h2 { margin-bottom: .5rem; }
.studio-name { font-size: clamp(1.5rem, 2.95vw, 2.7rem); margin-bottom: 1.4rem; }
.studio-photo { aspect-ratio: 5 / 6; object-position: 50% 45%; }

/* Direct email contact */
.contact-section { margin-top: 3rem; border-block: 0.0625rem solid var(--rule); padding-block: 5rem; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 7vw; align-items: center; }
.contact-grid h2 { margin-bottom: 0; }
.contact-email { margin-top: 1.5rem !important; font-size: clamp(1.4rem, 2.5vw, 2.6rem); overflow-wrap: anywhere; }
.contact-email a { display: inline-block; padding-block: .35rem; }

/* Footer */
.site-footer { padding-block: 3rem; }
.footer-logo { display: block; width: clamp(12rem, 22vw, 20rem); max-width: 100%; }
.footer-logo img { height: auto; object-fit: contain; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.site-footer nav { display: flex; flex-direction: column; align-items: start; margin-block: 1rem; }
.site-footer nav a { text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; }
.copyright { margin-top: 1rem; font-size: 1.15rem; }
.footer-contact { display: flex; flex-direction: column; gap: 1.5rem; align-items: end; font-size: clamp(1.1rem, 1.96vw, 1.8125rem); }
.footer-contact a { overflow-wrap: anywhere; }
.footer-placeholder { color: #69594b; }
.footer-placeholder small { font-size: .7em; }
.footer-legal { margin-top: 2.5rem; border-top: 0.0625rem solid var(--rule); padding-top: 1.5rem; font-size: 1rem; line-height: 1.5; overflow-wrap: anywhere; }

/* Small secondary pages */
.simple-page { max-width: 56.25rem; padding-block: 4rem; font-size: 1.25rem; }
.simple-page h1 { font-family: var(--text); font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 400; margin-block: 2rem; }
.simple-page h2 { font-size: 1.75rem; letter-spacing: -.02em; margin-block: 2rem .5rem; }
.simple-page p + p { margin-top: 1rem; }
.simple-page ul { padding-left: 1.3em; }
.draft-note { padding: 1rem; border: 0.0625rem solid var(--rule); background: #f1ece5; font-size: 1rem; }

@media (min-width: 1680px) {
  .split { column-gap: 9rem; }
  .studio-grid { gap: 3rem; }
}

@media (max-width: 1000px) {
  :root { --body-size: 1.25rem; --heading-size: clamp(2.4rem, 4.8vw, 3.8rem); }
  .split { column-gap: 6vw; }
  .hero-intro { width: 94%; }
}

@media (max-width: 760px) {
  :root { --body-size: 1.125rem; --heading-size: clamp(2.3rem, 7.7vw, 3.5rem); }
  .wrap, .wrap--wide { width: 88%; }
  .section { padding-block: 2.75rem; }
  .hero { padding-top: 2.75rem; padding-bottom: 0; }
  h1 { font-size: clamp(2.8rem, 10.5vw, 4rem); }
  .hero-intro { width: 100%; margin-block: 1.7rem 2rem; }
  .hero-intro p + p { margin-top: .75rem; }
  .hero-photo { aspect-ratio: 1.4 / 1; object-position: 50% 47%; }
  .split, .split--reverse, .studio-grid, .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .split--reverse > .prose { order: 2; }
  .split--reverse > img { order: 1; }
  .prose h2 { margin-bottom: 1.1rem; }
  .prose p + p { margin-top: .7em; }
  .construction-video { aspect-ratio: 3 / 4; }
  .evening-photo { max-height: 43.125rem; }
  .debut-grid { grid-template-columns: 1fr; gap: 2rem; }
  .debut-masthead { font-size: .8125rem; margin-bottom: 2rem; }
  .debut-photo { aspect-ratio: 1 / 1; border-width: 0.5rem; }
  .debut-copy { padding-block: 0; }
  .product-grid { display: flex; flex-wrap: wrap; gap: .75rem; }
  .product-photo, .product-details { flex: 0 0 100%; width: 100%; }
  .product-details { padding: 1.25rem 0 1.75rem; }
  .product-gallery { flex: 1 1 45%; aspect-ratio: auto; gap: .75rem; grid-template-rows: none; }
  .product-gallery img { aspect-ratio: 3 / 4; height: auto; }
  .product-photo { max-height: 43.125rem; }
  .product-details dl > div { margin-bottom: 1rem; }
  .product-details dl > div:last-child { margin-top: -1rem; }
  .case-heading { margin-bottom: 1.5rem; }
  .studio-grid > img { order: -1; }
  .studio-name { font-size: 1.5rem; margin-bottom: 1rem; }
  .contact-section { margin-top: 1rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-contact { align-items: start; gap: .75rem; }
  .copyright { font-size: 1rem; }
  .simple-page { padding-block: 2rem; font-size: 1.125rem; }
}

/* Added by motion.js only; with JS disabled every block remains visible. */
.reveal-pending { opacity: 0; }
.prose ul { margin: .8em 0; padding-inline-start: 1.2em; }
.prose li + li { margin-top: .3em; }

@media (prefers-reduced-motion: reduce) {
  .reveal-pending { opacity: 1; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
  .reveal-pending { opacity: 1; }
  .contact-section, .skip-link { display: none; }
  .section { break-inside: avoid; }
  a { text-decoration: none; }
}

/* Desktop density: approximate the preferred 75% browser-zoom layout.
   Viewport-relative widths stay fluid; phones retain the original type size. */
@media screen and (min-width: 761px) {
  html { font-size: 75%; }
}
