/* Homepage (v2) */

/* ---------- Hero: copy on Oxford ink, the drawn-then-made stage in a tall frame ---------- */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 43fr) minmax(0, 57fr); min-height: max(660px, 100svh); background: var(--ink); color: var(--lime); overflow: clip; }
.hero__copy { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--header-h) + 4vh) clamp(24px, 2.4vw, 44px) 40px var(--gutter); }
.hero h1 { font-size: clamp(3.1rem, 5.5vw, 6.2rem); margin-bottom: 26px; }
.hero__lede { color: rgba(237, 238, 233, .86); margin-bottom: 34px; }
.hero__btns { margin-bottom: clamp(36px, 6vh, 64px); }
.hero__now { display: flex; align-items: center; gap: 18px; padding-top: 22px; border-top: 1px solid var(--line-light); }
.hero__count { margin: 0; display: flex; align-items: baseline; gap: 6px; color: var(--honey); }
.hero__count .fig { font-size: 2.1rem; line-height: 1; }
.hero__of { font-size: .95rem; color: rgba(237, 238, 233, .6); }
.hero__now-txt { flex: 1; display: grid; gap: 10px; min-width: 0; }
.hero__cap { margin: 0; min-height: 2.5em; display: flex; align-items: flex-end; font-family: var(--display); font-style: italic; font-size: 1.2rem; line-height: 1.25; }
.hero__cap.is-in { animation: cap-in .9s var(--ease) both; }
@keyframes cap-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.hero__track { position: relative; display: block; height: 1px; background: var(--line-light); overflow: hidden; }
.hero__bar { position: absolute; inset: 0; background: var(--honey); transform-origin: 0 50%; transform: scaleX(0); }
.hero__toggle { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(237, 238, 233, .45); background: transparent; color: var(--lime); display: grid; place-items: center; cursor: pointer; transition: background-color .3s, color .3s; }
.hero__toggle:hover { background: var(--lime); color: var(--ink); }
.hero__toggle svg { width: 12px; height: 14px; }
.hero__toggle .i-play, .hero__toggle[aria-pressed="true"] .i-pause { display: none; }
.hero__toggle[aria-pressed="true"] .i-play { display: block; }
html.rm .hero__track, html.no-motion .hero__track, html.no-js .hero__track { display: none; }

.hero__stage { position: relative; margin: calc(var(--header-h) + 10px) var(--gutter) 40px 0; border-radius: var(--r); overflow: clip; background: var(--ink-2); isolation: isolate; }
.hero__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
html.js:not(.rm):not(.no-motion) .hero__poster { opacity: 0; animation: poster-in .9s 3s forwards; }
html.js:not(.rm):not(.no-motion) .hero__stage.is-poster .hero__poster { animation-delay: 0s; }
@keyframes poster-in { to { opacity: 1; } }
.hero__canvas { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s var(--ease); }
.hero__stage.is-live .hero__canvas { opacity: 1; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__copy { padding: calc(var(--header-h) + 28px) var(--gutter) 28px; }
  .hero__btns { margin-bottom: 30px; }
  .hero__stage { height: 56svh; min-height: 340px; margin: 0 var(--gutter) 32px; }
}

/* ---------- The drawn cottage: three changes, pinned ---------- */
.stay { background: var(--lime); }
.stay__head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px clamp(40px, 6vw, 110px); align-items: end; margin-bottom: clamp(36px, 4vw, 60px); }
.stay__scene { display: grid; grid-template-columns: minmax(0, 36fr) minmax(0, 64fr); gap: clamp(32px, 4vw, 72px); align-items: center; }
.stay__text { position: relative; }
.stay__chapters { display: grid; gap: 48px; }
.stay__ch { display: grid; gap: 14px; }
.stay__num { font-size: 1.05rem; color: var(--honey-deep); letter-spacing: .08em; }
.stay__ch .h3 { margin-bottom: 4px; }
.stay__quote { margin: 8px 0 0; padding: 18px 0 0 22px; border-left: 1px solid var(--honey); }
.stay__quote p { margin: 0 0 8px; font-family: var(--display); font-style: italic; font-size: 1.12rem; line-height: 1.45; }
.stay__quote cite { font-style: normal; font-size: .92rem; color: var(--soft); }
.stay__pic { display: none; margin: 10px 0 0; height: min(46vh, 380px); border-radius: var(--r); overflow: clip; }
.stay__link { margin-top: 36px; }
.stay__drawing { position: relative; color: var(--ink); background: var(--paper); border-radius: var(--r); padding: clamp(16px, 2vw, 32px); overflow: clip; box-shadow: 0 30px 60px -30px rgba(22, 35, 58, .25); }
.cottage { width: 100%; height: auto; max-height: calc(100svh - var(--header-h) - 150px); overflow: hidden; }
.cottage__lines { color: var(--ink); }
.cottage__cut { color: var(--honey-deep); }
.cottage__wash { fill: var(--honey); opacity: 0; }
.cottage__photo { opacity: 0; }
.cottage__edge { fill: none; stroke: var(--honey-deep); stroke-width: 2.5; opacity: 0; }
.stay__progress { position: relative; height: 1px; margin-top: 18px; background: var(--line-dark); }
.stay__progress-bar { position: absolute; inset: -1px auto -1px 0; width: 100%; background: var(--honey-deep); transform-origin: 0 50%; transform: scaleX(0); }

/* No JavaScript and reduced motion: every room is shown filled, all three chapters stacked */
html.no-js .cottage__photo, html.rm .cottage__photo, html.no-motion .cottage__photo { opacity: 1; }
html.no-js .stay__progress, html.rm .stay__progress, html.no-motion .stay__progress { display: none; }

/* Motion on, wide screens: the scene is pinned (home.js) and the chapters take turns */
@media (min-width: 900px) {
  html.js:not(.rm):not(.no-motion) .stay__scene.is-pinned { height: 100svh; padding-top: calc(var(--header-h) + 10px); padding-bottom: 30px; }
  html.js:not(.rm):not(.no-motion) .stay__scene.is-pinned .stay__chapters { display: block; position: relative; min-height: 470px; }
  html.js:not(.rm):not(.no-motion) .stay__scene.is-pinned .stay__ch { position: absolute; inset: 0 0 auto 0; }
}
@media (min-width: 900px) {
  .stay__scene { align-items: start; }
  .stay__drawing { position: sticky; top: calc(var(--header-h) + 20px); }
  html.js:not(.rm):not(.no-motion) .stay__scene.is-pinned { align-items: center; }
  html.js:not(.rm):not(.no-motion) .stay__scene.is-pinned .stay__drawing { position: relative; top: auto; }
}
@media (max-width: 899px) {
  .stay__head { grid-template-columns: 1fr; }
  .stay__scene { grid-template-columns: 1fr; }
  .stay__drawing { display: none; }
  .stay__pic { display: block; }
}

/* ---------- Services: four large cards on ink, each drawn then made as it crosses the screen ---------- */
.svc__head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px clamp(40px, 6vw, 110px); align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
.svc__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 36px); }
.svc-card--0, .svc-card--3 { grid-column: span 7; }
.svc-card--1, .svc-card--2 { grid-column: span 5; }
.svc-card--1 { margin-top: clamp(40px, 7vw, 110px); }
.svc-card--2 { margin-top: calc(clamp(40px, 7vw, 110px) * -1); }
.svc-card__link { display: grid; gap: 22px; text-decoration: none; color: inherit; border-radius: var(--r); }
.svc-card__img { display: block; height: min(56vh, 540px); border-radius: var(--r); overflow: clip; background: var(--ink-2); }
.svc-card--1 .svc-card__img, .svc-card--2 .svc-card__img { height: min(48vh, 460px); }
.svc-card__img .ink__photo { transition: transform 1.1s var(--ease); }
.svc-card__link:hover .ink__photo { transform: scale(1.05); }
.svc-card__txt { display: grid; gap: 8px; }
.svc-card__t { font-family: var(--display); font-weight: 440; font-size: clamp(1.6rem, 2.2vw, 2.15rem); line-height: 1.1; }
.svc-card__line { color: rgba(237, 238, 233, .78); }
.svc-card__go { display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; color: var(--honey); font-weight: 600; }
.svc-card__go .i-arrow { width: 20px; height: 12px; transition: transform .4s var(--ease); }
.svc-card__link:hover .svc-card__go .i-arrow { transform: translateX(5px); }
.svc__also { margin: clamp(48px, 6vw, 84px) 0 0; padding-top: 28px; border-top: 1px solid var(--line-light); font-size: clamp(1.1rem, 1.3vw, 1.3rem); font-family: var(--display); }
.svc__also a { color: var(--honey); text-underline-offset: 4px; text-decoration-thickness: 1px; }
@media (max-width: 900px) {
  .svc__head { grid-template-columns: 1fr; }
  .svc__grid { grid-template-columns: 1fr; }
  .svc-card--0, .svc-card--1, .svc-card--2, .svc-card--3 { grid-column: auto; margin-top: 0; }
  .svc-card__img, .svc-card--1 .svc-card__img, .svc-card--2 .svc-card__img { height: min(52vh, 420px); }
}

/* ---------- How a job goes ---------- */
.steps { overflow: clip; }
.steps__bg { position: absolute; top: 0; right: 0; bottom: 0; width: 50%; overflow: clip; -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%); mask-image: linear-gradient(90deg, transparent, #000 45%); }
.steps__bg-img { position: absolute; inset: 0; background: url("../img/drawings-sm.webp") center / cover no-repeat; opacity: .32; }
.steps__inner { position: relative; z-index: 1; }
.steps .h2 { margin-bottom: clamp(48px, 6vw, 88px); }
.steps__list { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); padding-top: 44px; }
.steps__line { position: absolute; left: var(--gutter); right: var(--gutter); top: calc(100% - var(--steps-h, 0px)); height: 1px; }
.step { position: relative; display: grid; gap: 10px; align-content: start; }
.step::before { content: ""; position: absolute; left: 0; top: -44px; width: 13px; height: 13px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--honey-deep); transform: translateY(-6px); }
.step__n { font-size: clamp(3rem, 4.4vw, 4.6rem); line-height: 1; color: var(--honey-deep); }
.step__t { font-size: clamp(1.4rem, 1.7vw, 1.8rem); }
.step p { color: var(--soft); }
.steps__list::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line-dark); }
.steps__list::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--honey-deep); transform-origin: 0 50%; transform: scaleX(var(--steps-p, 1)); }
.steps__line { display: none; }
@media (max-width: 1000px) { .steps__list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 64px; } .steps__bg { width: 100%; opacity: .6; } }
@media (max-width: 560px) { .steps__list { grid-template-columns: 1fr; } }

/* ---------- Burford and around ---------- */
.local { background: var(--lime); }
.local__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 110px); align-items: center; }
.local__copy .h2 { margin-bottom: 24px; }
.local__facts { display: flex; flex-wrap: wrap; gap: 18px 40px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line-dark); }
.local__facts li { display: grid; gap: 2px; }
.local__big { font-size: clamp(1.8rem, 2.6vw, 2.6rem); line-height: 1.05; color: var(--ink); }
.local__facts span:last-child { color: var(--soft); font-size: .98rem; }
.local__map { position: relative; background: var(--paper); border-radius: var(--r); padding: clamp(16px, 2vw, 28px); overflow: clip; }
@media (max-width: 900px) { .local__grid { grid-template-columns: 1fr; } }

.step__pic { display: block; height: clamp(150px, 19vh, 210px); margin-bottom: 8px; border-radius: var(--r); overflow: clip; background: var(--lime-2); }
.steps__bg-img { opacity: .18; }
