/* Studio Stour garden brief tool */
.tool { padding: calc(var(--header-h) + 28px) 0 40px; min-height: 92vh; min-height: 92svh; }
.tool__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.tool__title { font-size: clamp(2.4rem, 4.4vw, 4.4rem); margin: 0 0 .3em; }
.tool__lede { font-size: clamp(1.05rem, 1.2vw, 1.16rem); color: var(--ink-2); margin: 0 0 22px; }
.tool__steps { display: flex; flex-wrap: wrap; gap: 5px; list-style: none; margin: 0 0 18px; padding: 0; }
.tool__step { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 11px; border: 1px solid var(--rule); border-radius: var(--rb); background: rgba(255, 255, 255, .5); color: var(--ink-2); font-weight: 600; font-size: .92rem; cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.tool__step span { font-family: var(--display); font-style: italic; color: var(--ochre-ink); }
.tool__step.is-done { color: var(--stour); border-color: rgba(31, 56, 51, .4); }
.tool__step.is-on { background: var(--stour); color: var(--on-dark); border-color: var(--stour); }
.tool__step.is-on span { color: var(--ochre-soft); }
.tool__panels { display: grid; }
.tool__panel { grid-area: 1 / 1; margin: 0; padding: 0; border: 0; min-width: 0; }
.js .tool__panel:not(.is-on):not(.is-measure) { display: none; }
/* without scripts every question is listed in turn and the form below sends the answers in the message */
.no-js .tool__panel { grid-area: auto; margin-bottom: 28px; }
.no-js .tool__result, .no-js .tool__nav, .no-js .tool__steps { display: none; }
.tool__q { font-family: var(--display); font-size: clamp(1.4rem, 1.9vw, 1.9rem); line-height: 1.2; color: var(--stour); font-weight: 560; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.tool__mode { font-family: var(--body); font-size: .9rem; font-weight: 600; color: var(--ochre-ink); }
.tool__opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tool__opts--many { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tool__opts--five { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.tool__opts--five .opt { font-size: .9rem; }
.tool__opts--five .opt__label { padding: 8px 30px 9px 9px; }
.opt { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 0; text-align: left; border: 1px solid var(--rule); border-radius: var(--r); background: var(--white); color: var(--ink); font-weight: 600; font-size: .95rem; line-height: 1.25; cursor: pointer; overflow: hidden; transition: border-color .3s, box-shadow .3s, background .3s, transform .4s var(--ease); }
.opt:hover { border-color: rgba(31, 56, 51, .5); transform: translateY(-3px); }
.opt__label { padding: 9px 36px 10px 11px; min-height: 44px; display: flex; align-items: center; }
.opt__img { display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: var(--meadow); }
.tool__opts:not(.tool__opts--many) .opt__img { aspect-ratio: 16 / 8; }
.opt__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.opt:hover .opt__img img { transform: scale(1.1); }
.opt__tick { position: absolute; right: 10px; bottom: 12px; width: 20px; height: 20px; border: 1.5px solid rgba(31, 56, 51, .4); border-radius: var(--r); transition: background .3s, border-color .3s; }
.opt[aria-pressed="true"] { border-color: var(--stour); box-shadow: 0 0 0 1px var(--stour) inset; background: #F3F7F0; }
.opt[aria-pressed="true"] .opt__tick { background: var(--stour) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%23EEF1EA' stroke-width='2'/%3E%3C/svg%3E") center / 16px no-repeat; border-color: var(--stour); }
.tool__nav { display: flex; gap: 12px; margin-top: 18px; }
.tool__nav .btn[disabled] { opacity: .45; cursor: default; }
.result { display: grid; gap: 0; margin: 0 0 20px; border-top: 1px solid var(--rule); }
.result > div { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.result dt { font-weight: 650; color: var(--ochre-ink); font-size: .95rem; }
.result dd { margin: 0; color: var(--ink); }
.result dd a { color: var(--stour); font-weight: 650; }
.result [data-r="service"] { font-family: var(--display); font-size: 1.4rem; color: var(--stour); line-height: 1.25; }

/* the moodboard sheet */
.tool__board { position: sticky; top: calc(var(--header-h) + 16px); }
.sheet { background: var(--white); border-radius: var(--r); padding: 16px; box-shadow: 0 28px 60px -34px rgba(19, 36, 31, .5); }
.sheet__tb { --tb-cols: 3; grid-template-columns: repeat(3, minmax(0, 1fr)); color: var(--stour); margin-bottom: 14px; }
.board { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 6px; aspect-ratio: 4 / 3; max-height: min(44vh, 440px); background: url('../img/river-ink-faint.svg') 0 0 / 320px 96px, var(--paper); border-radius: var(--r); overflow: hidden; }
.board__empty { position: absolute; inset: 0; display: grid; place-items: end start; margin: 0; overflow: hidden; }
.board__empty[hidden] { display: none; }
.board__sketch { position: absolute; inset: 0; width: 116%; max-width: none; height: 100%; object-fit: cover; animation: sketch-pan 16s ease-in-out infinite alternate; }
@keyframes sketch-pan { from { translate: 0 0; } to { translate: -12% 0; } }
.board__empty p { position: relative; margin: 14px; padding: 10px 14px; background: rgba(255, 255, 255, .92); border-radius: var(--r); font-family: var(--display); font-style: italic; font-size: 1.1rem; line-height: 1.35; color: var(--stour); }
.reduced .board__sketch { animation: none; }
.board__tile { position: relative; margin: 0; border-radius: var(--r); overflow: hidden; min-height: 0; }
.board__tile img { width: 100%; height: 100%; object-fit: cover; animation: kb-drift 10s ease-in-out infinite alternate; }
.board__tile figcaption { position: absolute; left: 6px; bottom: 6px; right: 6px; background: rgba(255, 255, 255, .92); color: var(--stour); font-size: .875rem; font-weight: 650; padding: 3px 7px; border-radius: var(--r); line-height: 1.3; }
.board__tile--big { grid-column: span 2; grid-row: span 2; }
.sheet__notes { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 0; }
.sheet__note { padding: 9px 0 9px 26px; border-top: 1px solid var(--rule); position: relative; font-size: .96rem; color: var(--ink-2); }
.sheet__note::before { content: ''; position: absolute; left: 0; top: 1.15em; width: 14px; height: 1px; background: var(--ochre-ink); }
.sheet__note--lead { color: var(--stour); font-weight: 600; }

/* send */
.send__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
/* the photos picked above, as a small moodboard beside the form (2026-10-26) */
.send__board { margin: 26px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 900px) { .send__board { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } }
.send__empty { grid-column: 1 / -1; margin: 0; padding: 18px 20px; border: 1px solid var(--rule-dark); border-radius: var(--r); background: rgba(238, 241, 234, .06); color: var(--on-dark); }
.send__tile { position: relative; margin: 0; aspect-ratio: 1; border-radius: var(--r); overflow: hidden; }
.send__tile img { width: 100%; height: 100%; object-fit: cover; }
.send__tile figcaption { position: absolute; left: 5px; right: 5px; bottom: 5px; padding: 3px 7px; border-radius: var(--r); background: rgba(255, 255, 255, .92); color: var(--stour); font-size: .875rem; font-weight: 650; line-height: 1.3; }
/* the brief inside the form: read only, filled from the answers */
.form__brief textarea[readonly] { background: rgba(255, 255, 255, .9); color: var(--ink); cursor: default; white-space: pre-line; resize: none; overflow: hidden; }
.no-js .form__brief { display: none; }
.send__form { background: rgba(19, 36, 31, .45); border: 1px solid var(--rule-dark); border-radius: var(--r); padding: clamp(20px, 2.4vw, 32px); }

/* next */
.next__steps { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 40px); counter-reset: none; }
.next__steps li { border-top: 1px solid var(--stour); padding-top: 18px; }
.next__steps span { font-family: var(--display); font-style: italic; font-size: 1.6rem; color: var(--ochre-ink); }
.next__steps h3 { font-size: 1.4rem; margin: 6px 0 8px; }
.next__steps p { color: var(--ink-2); margin: 0; }
.next__links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 40px); margin-top: clamp(32px, 4vw, 56px); }
.next__link { display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--stour); font-family: var(--display); font-size: 1.25rem; line-height: 1.2; }
.next__link .frame { flex: none; width: 96px; aspect-ratio: 1; }
.next__link:hover { color: var(--ochre-ink); }

.reduced .board__tile img { animation: none; }
@media (max-width: 1100px) { .tool__opts, .tool__opts--many, .tool__opts--five { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .tool__grid, .send__grid { grid-template-columns: 1fr; }
  .tool__board { position: static; }
  .next__steps, .next__links { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .tool__opts, .tool__opts--many, .tool__opts--five { grid-template-columns: 1fr 1fr; gap: 8px; }
  .opt { font-size: .92rem; }
  .opt__tick { top: 8px; right: 8px; bottom: auto; background-color: var(--white); }
  .tool__steps { flex-wrap: nowrap; overflow: hidden; }
  .tool__step { padding: 0 10px; font-size: 0; gap: 0; }
  .tool__step span { font-size: 1rem; }
  .tool__step.is-on { font-size: .9rem; gap: 8px; }
  .result > div { grid-template-columns: 1fr; gap: 2px; }
}
.tool__nav .btn[hidden] { display: none; }
.btn--back { flex-direction: row-reverse; }
.btn--back::after { transform: scaleX(-1); }
.btn--back:hover::after { transform: scaleX(-1) translateX(4px); }

.send { overflow: clip; }
.send .photo-band img { animation: band-breathe 8s ease-in-out infinite alternate; }
.send .photo-band::after { background: linear-gradient(90deg, rgba(19, 36, 31, .92), rgba(19, 36, 31, .8) 55%, rgba(19, 36, 31, .66)); }
.reduced .send .photo-band img { animation: none; }
/* short screens: the whole first question and its buttons stay on the first screen */
@media (max-height: 820px) and (min-width: 901px) {
  .tool { padding-top: calc(var(--header-h) + 10px); padding-bottom: 20px; }
  .tool__title { font-size: clamp(2.2rem, 3.4vw, 3.2rem); margin-bottom: .2em; }
  .tool__lede { margin-bottom: 12px; font-size: 1rem; }
  .tool__steps { margin-bottom: 10px; }
  .tool__q { font-size: 1.4rem; margin-bottom: 10px; }
  .tool__opts:not(.tool__opts--many) .opt__img, .opt__img { aspect-ratio: 16 / 5.6; }
  .tool__nav { margin-top: 12px; }
  .board { aspect-ratio: auto; height: 36vh; max-height: none; }
  .tool__step { padding: 0 8px; font-size: .875rem; gap: 5px; }
}
@media (max-height: 740px) and (min-width: 901px) {
  .tool__lede { display: none; }
  .tool__opts:not(.tool__opts--many) .opt__img, .opt__img { aspect-ratio: 16 / 4.6; }
}

/* held back until the web fonts are in (brief.js), so the words never shift as they arrive */
.js .tool:not(.is-fonts-in) .tool__steps, .js .tool:not(.is-fonts-in) .tool__q { visibility: hidden; }
