/* Dawn Designs AI preview (/ai-design/). Colours and type come from /css/tokens.css (DM Serif Display + DM Sans, like
   the rest of the site); only the opening headline is Fraunces, like the home page's opening. */

:root {
  --gutter: clamp(16px, 4vw, 56px);
  --hair: color-mix(in srgb, var(--ink) 16%, transparent);
  --dawn-text: color-mix(in srgb, var(--dawn) 55%, var(--ink));
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--linen);
  color: var(--ink);
  font: 400 16px/1.6 var(--font-body);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--linen); padding: 10px 14px; z-index: 10; }
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--dawn); outline-offset: 3px; }

/* ------------------------------------------------------------------ top bar */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px var(--gutter);
  border-bottom: 1px solid var(--hair);
}
.top__brand img { width: 96px; height: auto; }
.top__nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 28px); font-weight: 600; font-size: 14px; }
.top__nav a { text-decoration: none; }
.top__nav a:hover { color: var(--dawn-text); }
.top__cta { border: 1px solid var(--ink); border-radius: 999px; padding: 9px 18px; }
.top__cta:hover { background: var(--ink); color: var(--linen) !important; }

/* ------------------------------------------------------------------ type */
.eyebrow {
  display: flex; align-items: center; gap: 12px; margin: 0 0 18px;
  font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--dawn-text);
}
.eyebrow .rule { width: 32px; height: 1px; background: currentColor; }
.display {
  font-family: var(--font-display); font-weight: 400; letter-spacing: -.015em; line-height: 1.02; margin: 0;
  font-size: clamp(2.4rem, 6vw, 5rem);
}
.intro .display { font-family: 'Fraunces', Georgia, serif; font-weight: 340; font-variation-settings: 'opsz' 144; letter-spacing: -.025em; }
.intro .display em { font-weight: 300; }
.display em { font-style: italic; color: var(--dawn); }
.lede { max-width: 40rem; font-size: clamp(1rem, 1.3vw, 1.15rem); color: var(--ink-soft); margin: 22px 0 0; }

/* ------------------------------------------------------------------ layout */
main { padding: 0 var(--gutter); max-width: 1440px; margin: 0 auto; }
.intro { padding: clamp(40px, 7vw, 96px) 0 clamp(28px, 4vw, 48px); }
.tool {
  display: grid; gap: clamp(28px, 4vw, 56px);
  grid-template-columns: minmax(0, 1fr);
  padding-bottom: clamp(48px, 7vw, 96px);
  border-top: 1px solid var(--hair);
  padding-top: clamp(28px, 4vw, 48px);
}
@media (min-width: 980px) {
  .tool { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  .result { position: sticky; top: 24px; }
}

/* ------------------------------------------------------------------ brief form */
.brief { display: grid; gap: 26px; }
.choice { border: 0; margin: 0; padding: 0; min-width: 0; }
.choice legend, .field > label, .field .label {
  display: block; margin-bottom: 10px; padding: 0;
  font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
}
.opt { font-weight: 500; letter-spacing: .04em; text-transform: none; color: var(--ink-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px; border: 1px solid var(--hair); border-radius: 999px;
  font-size: 14px; font-weight: 600; background: color-mix(in srgb, var(--linen) 70%, white);
  transition: background .2s, border-color .2s, color .2s;
}
.chips label:hover span { border-color: var(--ink); }
.chips input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--linen); }
.chips input:focus-visible + span { outline: 2px solid var(--dawn); outline-offset: 2px; }
.swatch { width: 14px; height: 14px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .18); }

.field { display: grid; }
textarea, input:not([type=radio]):not([type=file]) {
  width: 100%; font: inherit; color: inherit;
  background: color-mix(in srgb, var(--linen) 55%, white);
  border: 1px solid var(--hair); border-radius: 10px; padding: 12px 14px;
}
textarea { resize: vertical; min-height: 88px; }
textarea:focus, input:focus { outline: none; border-color: var(--ink); }
.count { margin: 6px 0 0; text-align: right; font-size: 12px; color: var(--ink-soft); }
.note { margin: 8px 0 0; font-size: 13px; color: var(--ink-soft); }

.drop { position: relative; border: 1px dashed color-mix(in srgb, var(--ink) 35%, transparent); border-radius: 12px; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop.is-over { border-color: var(--dawn); background: color-mix(in srgb, var(--dawn) 6%, transparent); }
.drop__empty { display: flex; align-items: center; gap: 14px; padding: 18px; cursor: pointer; font-size: 14px; }
.drop__empty svg { width: 28px; height: 28px; flex: none; color: var(--dawn-text); }
.drop__full { display: flex; align-items: center; gap: 14px; padding: 12px; }
.drop__full img { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px; border-radius: 999px; border: 1px solid var(--ink);
  font: 700 15px/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, opacity .2s;
}
.btn--solid { background: var(--ink); color: var(--linen); }
.btn--solid:hover { background: var(--dawn); border-color: var(--dawn); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--linen); }
.btn[disabled] { opacity: .5; cursor: wait; }
.brief .btn { justify-self: start; }
.link { background: none; border: 0; padding: 0; font: 600 14px var(--font-body); color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.left { margin: -12px 0 0; font-size: 13px; color: var(--ink-soft); }

/* ------------------------------------------------------------------ result */
.frame {
  position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: 16px; background: var(--sand);
  display: grid; place-items: center; text-align: center;
}
.frame.has-image { aspect-ratio: auto; background: var(--night); }
.frame__empty, .frame__busy { padding: 32px; max-width: 26rem; color: var(--ink-soft); }
.frame__kicker { font-family: var(--font-display); font-size: clamp(1.4rem, 2.4vw, 2rem); color: var(--ink); margin: 0 0 8px; }
.frame__busy p { margin: 16px 0 0; }
.frame__img { width: 100%; height: auto; }
.frame__video { position: absolute; inset: 0; width: 100%; height: 100%; background: var(--night); }
.frame__tag {
  position: absolute; left: 14px; bottom: 14px;
  background: rgb(18 22 31 / .72); color: var(--linen); backdrop-filter: blur(6px);
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  padding: 7px 12px; border-radius: 999px;
}
.spinner {
  display: inline-block; width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--ink) 18%, transparent); border-top-color: var(--dawn);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }
.error { margin: 14px 0 0; padding: 12px 14px; border-radius: 10px; background: color-mix(in srgb, var(--dawn) 12%, var(--linen)); }
.after { margin-top: 18px; }
.disclaimer { margin: 0; padding: 16px 18px; border-left: 2px solid var(--dawn); background: color-mix(in srgb, var(--sand) 55%, var(--linen)); font-size: 15px; }
.after__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 18px; }
.tour { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--hair); }
.tour__title { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.tour .after__actions { margin-top: 14px; }
.tour [data-tour-status]:empty { display: none; }

/* ------------------------------------------------------------------ enquiry */
.enquire {
  display: grid; gap: clamp(24px, 4vw, 56px); padding: clamp(48px, 7vw, 96px) 0;
  border-top: 1px solid var(--hair);
}
@media (min-width: 980px) { .enquire { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.enquire__head p:last-child { color: var(--ink-soft); max-width: 30rem; }
.enquire .display { font-size: clamp(2rem, 4.4vw, 3.6rem); margin-bottom: 18px; }
.enquiry { display: grid; gap: 18px; }
.enquiry .btn { justify-self: start; }

.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding: 22px var(--gutter); border-top: 1px solid var(--hair); font-size: 13px; color: var(--ink-soft);
}
.foot p { margin: 0; }
