/* Dreamhome Photography — derived from design.md and the watercolour logo. */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Yellowtail&family=Jost:wght@300;400;500&display=swap');

:root {
  --ink: #2b2724;
  --ink-soft: #4a423d;
  --body: #6f6560;
  --body-light: #7a706b;
  --muted: #776862;
  --muted-rose: #8a5f6a;
  --rose: #a8475f;
  --rose-dark: #8d3a4e;
  --rose-script: #d1748c;
  --blush: #e2a3b1;
  --ground: #f9f5f1;
  --sheet: #fbf8f5;
  --card: #fdfbf9;
  --selected: #fdf4f5;
  --white: #fff;
  --card-border: #f0e4dd;
  --pill-border: #ecd9d3;
  --input-border: #e6d3cc;
  --table-rule: #efe1da;
  --section-rule: #eee2da;
  --inner-rule: #f3e8e2;
  --display: "Cormorant Garamond", Georgia, serif;
  --script: "Yellowtail", cursive;
  --sans: "Jost", "Helvetica Neue", sans-serif;
  --page: min(1280px, calc(100% - 112px));
  --shadow-card: 0 14px 36px rgba(120,80,80,.13);
  --shadow-hover: 0 18px 44px rgba(120,80,80,.12);
  --shadow-panel: 0 20px 50px rgba(120,80,80,.14);
  --shadow-hero: 0 24px 60px rgba(120,80,80,.14);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 300 15px/1.75 var(--sans); }
body, button, input, select, textarea { font-family: var(--sans); }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
::selection { background: #f4d3da; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }
.skip-link { position: fixed; z-index: 1000; left: 16px; top: -70px; padding: 9px 14px; color: white; background: var(--ink); border-radius: 999px; }
.skip-link:focus { top: 16px; }

.site-header {
  position: fixed; z-index: 100; inset: 0 0 auto; height: 88px;
  display: flex; align-items: center; padding: 0 max(28px, calc((100vw - 1280px)/2));
  color: var(--ink); background: rgba(251,248,245,.94); backdrop-filter: blur(12px);
  transition: height .3s, box-shadow .3s;
}
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg,transparent,#eccfd6 22%,#f3ded1 62%,transparent); }
.site-header.is-scrolled { height: 76px; box-shadow: 0 8px 28px rgba(120,80,80,.08); }
.brand { width: 232px; height: 77px; margin-right: auto; display: grid; place-items: center; overflow: hidden; }
.brand img { width: 100%; height: 100%; object-fit: contain; }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a { position: relative; font-size: 11px; font-weight: 400; letter-spacing: .2em; text-transform: uppercase; }
.site-nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -5px; height: 1px; background: var(--blush); transition: right .25s; }
.site-nav a:hover::after { right: 0; }
.site-nav .nav-cta { padding: 10px 18px; color: white; background: var(--rose); border-radius: 999px; transition: background .25s; }
.site-nav .nav-cta:hover { background: var(--rose-dark); }
.menu-toggle { display: none; border: 0; background: transparent; cursor: pointer; font-size: 10px; font-weight: 400; letter-spacing: .18em; text-transform: uppercase; }

.hero { position: relative; width: var(--page); min-height: 850px; margin: 0 auto; padding: 154px 0 110px; display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(54px,7vw,110px); }
.hero-image { grid-column: 2; grid-row: 1; width: 100%; height: auto; aspect-ratio: 5056 / 3392; object-fit: contain; border-radius: 0; box-shadow: var(--shadow-hero); }
.hero-shade { display: none; }
.hero-copy { position: relative; z-index: 2; grid-column: 1; grid-row: 1; }
.eyebrow { margin: 0 0 18px; color: var(--muted-rose); font-size: 11px; font-weight: 400; line-height: 1.2; letter-spacing: .32em; text-transform: uppercase; }
.eyebrow.dark { color: var(--muted-rose); }
.hero h1, h2 { margin: 0; font-family: var(--display); font-weight: 300; line-height: 1.1; letter-spacing: -.01em; }
.hero h1 { font-size: clamp(56px,5.2vw,72px); line-height: 1.06; }
.hero h1 em, h2 em { display: block; color: var(--rose-script); font-family: var(--script); font-style: normal; font-weight: 400; letter-spacing: 0; }
.hero h1 em { font-size: clamp(62px,5.8vw,78px); line-height: 1.05; }
.hero-intro { max-width: 520px; margin: 24px 0 28px; color: var(--body); font-size: 16.5px; line-height: 1.78; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 11px 20px; border: 0; border-radius: 999px; cursor: pointer; font-size: 11px; font-weight: 400; line-height: 1; letter-spacing: .2em; text-transform: uppercase; transition: background .25s, transform .25s; }
.button:hover { transform: translateY(-2px); }
.button-rose { color: white; background: var(--rose); }
.button-rose:hover { background: var(--rose-dark); }
.button-light { color: white; background: var(--ink); }
.button-light:hover { background: var(--ink-soft); }
.text-link { display: inline-flex; align-items: center; gap: 8px; padding-bottom: 3px; color: var(--ink); border-bottom: 1px solid var(--blush); font-size: 11px; font-weight: 400; letter-spacing: .19em; text-transform: uppercase; transition: border-color .25s; }
.text-link:hover { border-color: var(--rose); }
.text-link-light { color: var(--ink); }
.scroll-cue { display: none; }

.section-pad { padding: 84px max(56px, calc((100vw - 1280px)/2)); }
.manifesto { background: linear-gradient(120deg,#fbeaee 0%,#faf0e8 52%,#f7eef3 100%); border-top: 1px solid var(--section-rule); border-bottom: 1px solid var(--section-rule); }
.manifesto-grid { width: 100%; max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(54px,8vw,120px); align-items: center; }
.manifesto h2, .section-heading h2, .services h2, .film-section h2, .floorplan h2, .tour-heading h2, .story h2, .enquiry h2 { font-size: clamp(42px,4vw,56px); line-height: 1.12; }
.manifesto-copy > p { max-width: 640px; color: var(--body); font-size: 16.5px; line-height: 1.78; }
.proof-row { display: grid; grid-template-columns: repeat(3,1fr); margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--input-border); }
.proof-row div { padding-right: 18px; }
.proof-row strong { display: block; color: var(--ink); font: 300 clamp(25px,3vw,42px)/1.05 var(--display); overflow-wrap: anywhere; }
.proof-row span { display: block; margin-top: 7px; color: var(--muted); font-size: 9.5px; font-weight: 400; letter-spacing: .2em; text-transform: uppercase; }

.portfolio { background: var(--sheet); border-bottom: 1px solid var(--section-rule); }
.portfolio > * { max-width: 1280px; margin-left: auto; margin-right: auto; }
.section-heading { display: grid; grid-template-columns: 1.25fr .55fr; align-items: end; gap: 50px; margin-bottom: 36px; }
.section-heading > p { max-width: 450px; margin: 0 0 6px; color: var(--body); }
.filters { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 26px; }
.filter { padding: 8px 14px; color: var(--body); background: transparent; border: 1px solid var(--pill-border); border-radius: 999px; cursor: pointer; font-size: 10px; font-weight: 400; letter-spacing: .15em; text-transform: uppercase; transition: background .25s,border-color .25s; }
.filter:hover { border-color: var(--blush); }
.filter.is-active { color: white; background: var(--ink); border-color: var(--ink); }
.work-grid { display: grid; grid-template-columns: repeat(3,1fr); grid-auto-rows: clamp(230px,22vw,330px); gap: 12px; }
.work-card { position: relative; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: var(--card-border); cursor: zoom-in; text-align: left; box-shadow: 0 6px 18px rgba(120,80,80,.06); }
.work-card[hidden] { display: none; }
.work-card.work-wide { grid-column: span 2; }
.work-card.work-tall { grid-row: span 2; }
.work-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.work-card:hover img { transform: scale(1.04); }
.work-card span { position: absolute; left: 12px; bottom: 12px; padding: 7px 10px; color: var(--ink); background: rgba(253,251,249,.92); border-radius: 999px; font-size: 9.5px; font-weight: 400; letter-spacing: .18em; text-transform: uppercase; box-shadow: 0 6px 20px rgba(80,50,50,.09); }
.work-video::after { content: "▶"; position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; display: grid; place-items: center; padding-left: 3px; color: white; background: rgba(43,39,36,.76); border: 1px solid rgba(255,255,255,.72); border-radius: 50%; box-shadow: 0 10px 30px rgba(43,39,36,.2); transform: translate(-50%,-50%); transition: background .25s,transform .25s; }
.work-video:hover::after { background: var(--rose); transform: translate(-50%,-50%) scale(1.06); }

.services { display: block; background: var(--ground); border-bottom: 1px solid var(--section-rule); }
.services-lead, .service-list { max-width: 1280px; margin-left: auto; margin-right: auto; }
.services-lead { text-align: center; }
.services-lead h2 { max-width: 820px; margin: 0 auto; }
.services-lead > p:not(.eyebrow) { max-width: 580px; margin: 22px auto 26px; color: var(--body); }
.service-list { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 52px; }
.service-item { min-height: 248px; display: flex; flex-direction: column; padding: 25px; background: var(--card); border: 1px solid var(--card-border); border-radius: 10px; box-shadow: var(--shadow-card); transition: transform .3s,box-shadow .3s; }
.service-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.service-item > span { color: var(--rose); font-size: 10px; font-weight: 400; letter-spacing: .22em; text-transform: uppercase; }
.service-item h3 { margin: 16px 0 10px; font: 400 27px/1.15 var(--display); }
.service-item p { margin: 0 0 20px; color: var(--body-light); font-size: 14px; line-height: 1.7; }
.service-item small { margin-top: auto; padding-top: 14px; color: var(--muted); border-top: 1px solid var(--inner-rule); font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; }

.film-section { padding: 84px max(56px,calc((100vw - 1280px)/2)); background: var(--sheet); border-bottom: 1px solid var(--section-rule); }
.film-copy, .film-frame { max-width: 1280px; margin-left: auto; margin-right: auto; }
.film-copy { display: grid; grid-template-columns: .4fr 1.15fr .65fr; gap: 40px; align-items: end; margin-bottom: 32px; }
.film-copy > p:last-child { margin: 0; color: var(--body); }
.film-frame { position: relative; padding: 11px; background: white; border: 1px solid var(--card-border); border-radius: 12px; box-shadow: var(--shadow-panel); }
.film-frame video { width: 100%; max-height: 76vh; aspect-ratio: 16/8.5; object-fit: cover; border-radius: 8px; }
.film-label { position: absolute; left: 24px; top: 24px; padding: 7px 10px; color: white; background: rgba(43,39,36,.82); border-radius: 999px; font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; }

.floorplan { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(54px,8vw,120px); align-items: center; background: var(--ground); border-bottom: 1px solid var(--section-rule); }
.floorplan-copy p:not(.eyebrow) { max-width: 520px; color: var(--body); }
.floorplan-copy ul { list-style: none; padding: 0; margin: 26px 0 0; border-top: 1px solid var(--table-rule); }
.floorplan-copy li { padding: 10px 0; color: var(--body); border-bottom: 1px solid var(--table-rule); }
.floorplan-copy li::before { content: "✓"; margin-right: 10px; color: var(--rose); }
.plan-preview { position: relative; padding: 14px; background: white; border: 1px solid var(--card-border); border-radius: 12px; cursor: zoom-in; box-shadow: var(--shadow-panel); }
.plan-preview img { width: 100%; max-height: 700px; object-fit: contain; border-radius: 8px; }
.plan-preview span { position: absolute; right: 24px; bottom: 24px; padding: 8px 12px; color: white; background: var(--ink); border-radius: 999px; font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; }

.tour-section { padding-bottom: 84px; color: var(--ink); background: linear-gradient(120deg,#fbeaee 0%,#faf0e8 52%,#f7eef3 100%); border-bottom: 1px solid var(--section-rule); }
.tour-heading { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1fr .6fr; gap: 50px; align-items: end; padding-bottom: 36px; }
.tour-heading > p { max-width: 500px; margin: 0; color: var(--body); }
.tour-viewer { position: relative; max-width: 1280px; height: min(64vw,690px); min-height: 480px; margin: 0 auto; overflow: hidden; cursor: grab; user-select: none; touch-action: pan-y; border: 10px solid white; border-radius: 12px; box-shadow: var(--shadow-panel); }
.tour-viewer.is-dragging { cursor: grabbing; }
.tour-viewer > img { position: absolute; left: 0; top: 0; width: 178%; max-width: none; height: 100%; object-fit: cover; transform: translate3d(-18%,0,0); pointer-events: none; will-change: transform; }
.tour-overlay { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg,rgba(43,39,36,.42),transparent 36%); }
.demo-badge { position: absolute; left: 15px; top: 15px; padding: 7px 10px; color: var(--ink); background: rgba(255,255,255,.92); border-radius: 999px; font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; }
.drag-hint { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); padding: 9px 13px; color: white; background: rgba(43,39,36,.6); border-radius: 999px; font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; transition: opacity .25s; }
.tour-viewer.is-dragging .drag-hint { opacity: 0; }
.tour-tabs { position: absolute; left: 15px; bottom: 15px; display: flex; gap: 6px; pointer-events: auto; }
.tour-tabs button { padding: 8px 12px; color: var(--ink); background: rgba(255,255,255,.92); border: 1px solid var(--pill-border); border-radius: 999px; cursor: pointer; font-size: 10px; }
.tour-tabs button.is-active { color: white; background: var(--rose); border-color: var(--rose); }

.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(54px,8vw,120px); align-items: center; background: var(--sheet); border-bottom: 1px solid var(--section-rule); }
.story-image { position: relative; }
.story-image::before { content: ""; position: absolute; inset: -12px 20px 22px -12px; z-index: 0; background: linear-gradient(150deg,#fbe6ea,#f8ddd2); border-radius: 12px; }
.story-image img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 10px; box-shadow: var(--shadow-panel); }
.story-copy p:not(.eyebrow) { max-width: 580px; color: var(--body); }
.story-copy .text-link { margin-top: 12px; }

.enquiry { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(54px,8vw,120px); padding: 84px max(56px,calc((100vw - 1280px)/2)); background: linear-gradient(120deg,#fbeaee 0%,#faf0e8 52%,#f7eef3 100%); }
.enquiry-intro { align-self: start; }
.enquiry-intro > p:not(.eyebrow) { max-width: 470px; color: var(--body); }
.contact-lines { display: flex; flex-direction: column; margin-top: 26px; font: 400 23px/1.45 var(--display); }
.contact-lines a { color: var(--rose); }
.enquiry-form { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; padding: 28px; background: rgba(253,251,249,.9); border: 1px solid var(--card-border); border-radius: 12px; box-shadow: var(--shadow-panel); }
.field { display: flex; flex-direction: column; }
.field-wide { grid-column: 1/-1; }
.field label, .service-choices legend { display: block; margin-bottom: 5px; color: var(--muted); font-size: 10.5px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; }
.field input, .field select, .field textarea { width: 100%; min-height: 42px; padding: 8px 11px; color: var(--ink); caret-color: var(--rose); background: white; border: 1px solid var(--input-border); border-radius: 7px; font-size: 14px; font-weight: 300; }
.field textarea { min-height: 92px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--rose); outline-offset: 0; }
.service-choices { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; padding: 0; margin: 6px 0; border: 0; }
.service-choices label { position: relative; cursor: pointer; }
.service-choices input { position: absolute; opacity: 0; }
.service-choices span { display: block; padding: 10px; text-align: center; background: white; border: 1px solid var(--card-border); border-radius: 8px; font-size: 12px; transition: background .25s,border-color .25s; }
.service-choices input:checked + span { color: var(--rose); background: var(--selected); border-color: var(--blush); }
.service-choices input:focus-visible + span { outline: 2px solid var(--rose); }
.form-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 15px; border-top: 1px solid var(--inner-rule); }
.form-footer p { margin: 0; color: var(--body-light); font-size: 12px; }

.site-footer { position: relative; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 36px; padding: 34px max(56px,calc((100vw - 1280px)/2)); background: var(--sheet); }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg,transparent,#eccfd6 22%,#f3ded1 62%,transparent); }
.footer-brand { width: 196px; }
.footer-brand img { width: 100%; height: auto; }
.site-footer > div { display: flex; gap: 18px; }
.site-footer > div a { color: var(--body); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }
.site-footer p { margin: 0; color: var(--body-light); font-size: 11px; text-align: right; }

.lightbox { width: min(94vw,1450px); max-width: none; height: min(92vh,980px); padding: 0; overflow: hidden; color: var(--ink); background: var(--card); border: 1px solid var(--card-border); border-radius: 12px; box-shadow: var(--shadow-panel); }
.lightbox::backdrop { background: rgba(43,39,36,.78); backdrop-filter: blur(8px); }
.lightbox img, .lightbox video { width: 100%; height: calc(100% - 54px); object-fit: contain; background: #171514; }
.lightbox [hidden] { display: none; }
.lightbox p { height: 54px; margin: 0; padding: 15px; color: var(--muted); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; }
.lightbox-close { position: absolute; z-index: 3; right: 12px; top: 12px; width: 40px; height: 40px; color: white; background: var(--rose); border: 0; border-radius: 50%; cursor: pointer; font-size: 23px; }
.plan-dialog { background: white; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s,transform .7s; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1000px) {
  :root { --page: min(100% - 56px,1280px); }
  .site-header { padding: 0 28px; }
  .hero { grid-template-columns: 1fr 1fr; gap: 42px; }
  .manifesto-grid, .floorplan, .story, .enquiry { grid-template-columns: 1fr; }
  .service-list { grid-template-columns: repeat(2,1fr); }
  .film-copy { grid-template-columns: 1fr 1fr; }
  .film-copy .eyebrow { grid-column: 1/-1; }
  .tour-heading { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 760px) {
  :root { --page: calc(100% - 36px); }
  .site-header { height: 70px; padding: 0 18px; }
  .brand { width: 176px; height: 58px; }
  .menu-toggle { z-index: 102; display: flex; align-items: center; gap: 6px; }
  .menu-toggle i { width: 16px; height: 1px; background: currentColor; }
  .site-nav { position: fixed; z-index: 101; inset: 0; flex-direction: column; align-items: flex-start; justify-content: center; gap: 20px; padding: 90px 28px 30px; color: var(--ink); background: var(--ground); transform: translateY(-100%); transition: transform .45s; }
  .site-nav.is-open { transform: none; }
  .site-nav a { font: 300 42px/1 var(--display); letter-spacing: 0; text-transform: none; }
  .site-nav .nav-cta { margin-top: 6px; color: white; font: 400 11px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; }
  .hero { min-height: auto; padding: 106px 0 70px; display: flex; flex-direction: column; gap: 38px; }
  .hero-image { order: 1; width: 100%; height: auto; aspect-ratio: 5056 / 3392; object-fit: contain; border-radius: 0; }
  .hero-copy { order: 2; }
  .hero h1 { font-size: 50px; }
  .hero h1 em { font-size: 58px; }
  .section-pad, .film-section, .enquiry { padding: 72px 18px; }
  .manifesto-grid { gap: 38px; }
  .manifesto h2, .section-heading h2, .services h2, .film-section h2, .floorplan h2, .tour-heading h2, .story h2, .enquiry h2 { font-size: 40px; }
  .proof-row { grid-template-columns: 1fr; gap: 22px; }
  .proof-row strong { font-size: 34px; }
  .section-heading { grid-template-columns: 1fr; gap: 18px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; }
  .filter { flex: 0 0 auto; }
  .work-grid { grid-template-columns: 1fr; grid-auto-rows: 72vw; }
  .work-card.work-wide { grid-column: span 1; }
  .work-card.work-tall { grid-row: span 1; }
  .service-list { grid-template-columns: 1fr; }
  .service-item { min-height: 220px; }
  .film-copy { grid-template-columns: 1fr; }
  .film-copy .eyebrow { grid-column: auto; }
  .film-frame video { aspect-ratio: 16/10; }
  .tour-section { padding-bottom: 72px; }
  .tour-viewer { width: calc(100% - 36px); min-height: 500px; }
  .tour-viewer > img { width: 260%; }
  .drag-hint { white-space: nowrap; font-size: 8.5px; }
  .tour-tabs { right: 12px; left: 12px; }
  .tour-tabs button { flex: 1; font-size: 9px; }
  .enquiry-form { grid-template-columns: 1fr; padding: 20px; }
  .field-wide { grid-column: auto; }
  .service-choices { grid-template-columns: 1fr 1fr; }
  .form-footer { flex-direction: column; align-items: stretch; }
  .site-footer { grid-template-columns: 1fr; padding: 30px 18px; }
  .site-footer p { text-align: left; }
}

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