/* Contact: form opener beside the parcel and postmark, what to put in a message, a reel of prints. */

/* ---------- Opener ---------- */
.c-open { position: relative; padding: calc(var(--head-h) + clamp(22px, 3vw, 40px)) 0 clamp(48px, 6vw, 80px); background: var(--paper); overflow: clip; isolation: isolate; }
.c-open::after { /* a soft wash of pour colour behind the photo side */
  content: ""; position: absolute; z-index: -1; right: -12vw; top: 8%; width: 58vw; height: 90%;
  background: radial-gradient(closest-side, rgba(29, 100, 103, .13), transparent 70%), radial-gradient(closest-side at 70% 70%, rgba(181, 55, 90, .10), transparent 70%);
  animation: c-wash 16s ease-in-out infinite alternate; pointer-events: none;
}
@keyframes c-wash { to { transform: translate(-4vw, 3vh) scale(1.08); } }
.c-open__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 5.5vw, 88px); align-items: center; }
.c-open__head { position: relative; margin-bottom: clamp(18px, 2.4vh, 28px); }
.c-open h1 { font-size: clamp(2.5rem, 4.4vw, 4.1rem); margin-bottom: .2em; }
.c-open__line { margin: 0; }

/* ---------- Form ---------- */
.c-form { position: relative; scroll-margin-top: calc(var(--head-h) + 20px); }
.c-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 1.7vh, 18px) 18px; }
.field { position: relative; display: grid; gap: 6px; align-content: start; min-width: 0; }
.field--topic, .field--message, .c-form__foot { grid-column: 1 / -1; }
.field__label { font-weight: 650; font-size: .95rem; letter-spacing: .005em; }
.field__opt { font-weight: 450; color: var(--ink-soft); }
.field__input {
  width: 100%; min-height: 54px; padding: 13px 18px 13px 20px;
  background: var(--mist); color: var(--ink);
  border: 1.5px solid transparent; border-radius: var(--r-one);
  font-size: 1rem; line-height: 1.4;
  box-shadow: inset 0 0 0 0 var(--teal);
  transition: border-color .3s var(--ease), background-color .3s, box-shadow .35s var(--ease);
}
.field__input::placeholder { color: #8a7685; opacity: 1; }
.field__input:hover { border-color: rgba(42, 20, 36, .28); }
.field__input:focus { outline: none; background: #fff; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(216, 164, 44, .55); }
.field__input:focus-visible { outline: none; }
.field__select {
  appearance: none; -webkit-appearance: none; padding-right: 48px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4 7l5 5 5-5' fill='none' stroke='%232A1424' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center; background-size: 18px;
}
.field__area { min-height: 0; height: clamp(104px, 15vh, 150px); resize: vertical; }
.field__hint { margin: 0; font-size: .9rem; color: var(--ink-soft); }
.field__err { display: flex; gap: 8px; align-items: flex-start; margin: 2px 0 0; font-size: .92rem; font-weight: 600; color: var(--rasp-deep); line-height: 1.4; }
.field__err::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: .45em; border-radius: 50%; background: var(--rasp); box-shadow: 0 0 0 3px rgba(181, 55, 90, .22); }
.has-error .field__input { border-color: var(--rasp); background: #fbf2f5; }
.field.is-done .field__label::after { /* a gold dot when a required field looks complete */
  content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 8px; vertical-align: middle; border-radius: 50%; background: var(--gold);
  animation: c-pop .5s var(--ease);
}
@keyframes c-pop { from { transform: scale(0); } 60% { transform: scale(1.6); } to { transform: scale(1); } }
.c-form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.c-form__foot { display: flex; align-items: center; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; margin-top: 4px; }
.c-form__privacy { margin: 0; flex: 1 1 260px; font-size: .95rem; color: var(--ink-soft); }
.c-form__privacy a { color: var(--teal); font-weight: 600; }
.c-form__send { min-width: 210px; }
.c-form__alert { display: grid; gap: 2px; margin: 0 0 18px; padding: 14px 20px 14px 22px; border-radius: var(--r-one-sm); background: #f7e3ea; border-left: 4px solid var(--rasp); color: var(--ink); }
.c-form__alert:focus { outline: none; }
.c-form__alert span { color: var(--ink-soft); font-size: .95rem; }

/* ---------- Thank-you state ---------- */
.c-thanks { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 22px; padding: clamp(26px, 3.2vw, 40px); background: #fff; border-radius: var(--r-one); box-shadow: 0 30px 60px -36px rgba(27, 12, 23, .45), 0 0 0 1px var(--line); scroll-margin-top: calc(var(--head-h) + 20px); }
.c-thanks:focus { outline: none; }
.c-thanks__tick { width: 64px; height: 64px; }
.c-thanks__tick circle { fill: none; stroke: var(--gold); stroke-width: 3; }
.c-thanks__tick path { fill: none; stroke: var(--teal); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.c-thanks__body > p { color: var(--ink-soft); }
.c-thanks__while { margin: 18px 0 10px; font-weight: 650; color: var(--ink) !important; }
.c-thanks__links { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.c-thanks__links a { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 16px 12px 18px; border-radius: var(--r-one-sm); background: var(--paper); text-decoration: none; transition: transform .4s var(--ease), box-shadow .4s, background .3s; }
.c-thanks__links a:hover, .c-thanks__links a:focus-visible { transform: translateX(6px); box-shadow: -6px 0 0 var(--rasp); background: var(--mist); }
.c-thanks__links strong { display: block; font-family: var(--f-display); font-weight: 560; font-size: 1.2rem; font-variation-settings: "SOFT" 100, "opsz" 36; }
.c-thanks__links span span { color: var(--ink-soft); font-size: .93rem; }
.c-thanks__links .ico { flex: none; width: 22px; height: 22px; color: var(--rasp); }

/* ---------- Photo, postmark and route ---------- */
.c-media { position: relative; perspective: 1400px; }
.c-media__tilt { position: relative; transform-style: preserve-3d; }
.c-media__framed { --o: var(--teal); }
.c-media__frame { height: min(72vh, 700px); }
.c-media__pan { position: absolute; inset: 0; }
.c-media__pan img { width: 100%; height: 100%; object-fit: cover; object-position: 52% 50%; }
.c-media__light { /* window light sliding across the table */
  position: absolute; inset: -20%; pointer-events: none; mix-blend-mode: soft-light;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 240, 210, .75) 45%, rgba(255, 240, 210, .2) 55%, transparent 70%);
  animation: c-light 9s ease-in-out infinite alternate;
}
@keyframes c-light { from { transform: translateX(-30%); } to { transform: translateX(30%); } }

.postmark { overflow: visible; }
.postmark__ring { fill: none; stroke: currentColor; stroke-width: 3; }
.postmark__ring--in { stroke-width: 1.6; }
.postmark__waves path { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; }
.postmark__words { font-family: var(--f-body); font-weight: 750; font-size: 17px; letter-spacing: .02em; fill: currentColor; }
.postmark__turn { transform-box: view-box; transform-origin: 100px 100px; }
.postmark__daisy .daisy__petals { fill: #fff; stroke: currentColor; stroke-width: .7; }
.postmark__daisy .daisy__heart { fill: var(--gold); }
.postmark__daisy .daisy__spin { animation: dc-spin 24s linear infinite reverse; }
.c-route__start .daisy__spin { animation: dc-spin 12s linear infinite; }
.postmark--big { position: absolute; z-index: 3; top: 34px; left: clamp(-46px, -3vw, -24px); width: clamp(230px, 21vw, 310px); color: var(--rasp); filter: drop-shadow(0 6px 14px rgba(27, 12, 23, .12)); transform: translateZ(60px); }
.postmark--big .postmark__waves { opacity: .95; }
.postmark--mini { display: none; }

.c-route {
  position: absolute; z-index: 3; right: clamp(-36px, -2vw, -12px); bottom: 40px; width: min(370px, 82%);
  padding: 16px 20px 14px; background: var(--paper); border-radius: var(--r-one);
  box-shadow: 0 26px 50px -24px rgba(27, 12, 23, .5), 0 0 0 1px var(--line);
  transform: translateZ(40px);
}
.c-route__title { margin: 0 0 2px; font-family: var(--f-display); font-weight: 560; font-size: 1.22rem; font-variation-settings: "SOFT" 100, "opsz" 36; line-height: 1.2; }
.c-route__map { width: 100%; height: auto; overflow: visible; }
.c-route__path { fill: none; stroke: var(--rasp); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 2 9; }
.c-route__reveal { fill: none; stroke: #fff; stroke-width: 10; stroke-linecap: round; }
.c-route__start .daisy__petals { fill: #fff; stroke: var(--ink); stroke-width: .8; }
.c-route__start .daisy__heart { fill: var(--gold); }
.c-route__end path { fill: var(--paper); stroke: var(--teal); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.c-route__parcel rect, .c-route__parcel path { fill: #C9A57A; stroke: var(--ink); stroke-width: 1.4; stroke-linejoin: round; }
.c-route__parcel path { fill: none; }
.c-route__ends { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; font-weight: 600; color: var(--ink-soft); }
.c-route__ends span:last-child { text-align: right; }

/* ---------- What to put in your message ---------- */
.c-tips { background: var(--mist); overflow: clip; padding: clamp(80px, 9vw, 120px) 0; }
.c-tips__head { margin-bottom: clamp(30px, 4vw, 52px); }
.c-tips__head h2 { margin-bottom: .3em; }
.c-tips__head .lede { margin: 0; max-width: 120ch; }
.c-tips__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 80px); align-items: center; }

.c-card { position: relative; perspective: 1200px; }
.c-card__inner {
  position: relative; padding: clamp(24px, 3vw, 40px) clamp(24px, 3.2vw, 44px) clamp(22px, 2.6vw, 34px);
  background: var(--paper); border-radius: var(--r-one);
  box-shadow: 0 40px 70px -40px rgba(27, 12, 23, .55), 0 0 0 1px var(--line);
  transform-style: preserve-3d; will-change: transform;
}
.c-card__top { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-bottom: 14px; min-height: 96px; }
.c-card__stamp { order: 2; position: relative; width: 84px; height: 104px; padding: 7px; flex: none; transform: rotate(4deg); overflow: hidden;
  background: radial-gradient(circle at 50% 50%, transparent 2.6px, #fff 3.2px) -5px -5px / 10px 10px;
  filter: drop-shadow(0 4px 6px rgba(27, 12, 23, .18));
}
.c-card__stamp img { width: 100%; height: 100%; object-fit: cover; }
.postmark--card { order: 1; width: 170px; color: var(--teal); opacity: .85; margin-right: -64px; position: relative; z-index: 2; }
.c-card__msg { margin: 0; padding-top: .2em; background: repeating-linear-gradient(180deg, transparent 0 calc(2.05em - 1px), rgba(29, 100, 103, .18) calc(2.05em - 1px) 2.05em) 0 -.35em; font-family: var(--f-display); font-style: italic; font-weight: 420; font-variation-settings: "SOFT" 100, "WONK" 0, "opsz" 24; font-size: clamp(1.18rem, 1.55vw, 1.42rem); line-height: 2.05; color: var(--ink); }
.c-card__msg mark {
  color: inherit; padding: .05em .1em; border-radius: 3px;
  background: linear-gradient(transparent 58%, rgba(216, 164, 44, .55) 58%) 0 0 / 0% 100% no-repeat;
  transition: background-size .7s var(--ease), color .3s;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.c-card__msg mark.is-on { background-size: 100% 100%; }
.c-card__msg mark.is-hot { background-image: linear-gradient(transparent 52%, rgba(181, 55, 90, .38) 52%); }
.c-card__sign { margin: .5em 0 0; text-align: right; font-family: var(--f-display); font-style: italic; font-size: 1.3rem; font-variation-settings: "SOFT" 100, "opsz" 24; color: var(--teal); }

.c-tips__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.c-tips__list li {
  position: relative; display: grid; grid-template-columns: 50px 1fr; gap: 16px; align-items: start;
  padding: 14px 16px 14px 14px; border-radius: var(--r-one-sm); cursor: default;
  transition: background .35s, transform .45s var(--ease);
}
.c-tips__list li::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; background: var(--rasp); transform: scaleY(0); transform-origin: top; transition: transform .5s var(--ease); }
.c-tips__list li.is-on::before { transform: scaleY(1); }
.c-tips__list li.is-hot { background: var(--paper); transform: translateX(8px); }
.c-tips__ico { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--line); color: var(--ink-soft); transition: background .4s, color .4s, border-color .4s; }
.c-tips__ico .ico { width: 22px; height: 22px; }
.c-tips__list li.is-on .c-tips__ico { background: var(--teal); border-color: var(--teal); color: #fff; }
.c-tips__list strong { display: block; font-family: var(--f-display); font-weight: 560; font-size: clamp(1.18rem, 1.4vw, 1.4rem); font-variation-settings: "SOFT" 100, "opsz" 36; line-height: 1.2; margin-bottom: 3px; }
.c-tips__list li > span:last-child { color: var(--ink-soft); font-size: .98rem; line-height: 1.5; }

/* ---------- Reel of prints ---------- */
.c-browse { overflow: clip; padding: clamp(64px, 6vw, 92px) 0 clamp(64px, 7vw, 100px); }
.c-browse__head { margin-bottom: clamp(28px, 3vw, 44px); }
.c-browse__row { display: flex; align-items: center; justify-content: space-between; gap: 18px 48px; flex-wrap: wrap; }
.c-browse__row .lede { margin: 0; flex: 1 1 420px; max-width: 120ch; }
.c-reel { overflow: hidden; padding: 10px 0; }
.c-reel + .c-reel { margin-top: clamp(10px, 1.4vw, 18px); }
.c-reel__track { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(12px, 1.4vw, 20px); width: max-content; will-change: transform; }
.c-reel__item a { position: relative; display: block; text-decoration: none; color: #fff; }
.c-reel__img { display: block; height: clamp(150px, 13vw, 196px); overflow: hidden; border-radius: var(--r-one); background: var(--night-2); }
.c-reel__item--tall .c-reel__img { aspect-ratio: 3 / 4; }
.c-reel__item--wide .c-reel__img { aspect-ratio: 3 / 2; }
.c-reel__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .5s; }
.c-reel__item { flex: none; }
.c-reel__cap { display: grid; gap: 1px; padding: 12px 4px 0; width: 0; min-width: 100%; }
.c-reel__cap strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--f-display); font-weight: 560; font-size: 1.08rem; font-variation-settings: "SOFT" 100, "opsz" 24; line-height: 1.2; color: var(--on-night); transition: color .3s; }
.c-reel__cap span { font-size: .9rem; color: #F0C66A; font-weight: 600; }
.c-reel__item a:hover .c-reel__cap strong, .c-reel__item a:focus-visible .c-reel__cap strong { color: #F0C66A; }
.c-reel__item a:hover img, .c-reel__item a:focus-visible img { transform: scale(1.08); }
.c-reel:hover .c-reel__item a:not(:hover) img { filter: saturate(.55) brightness(.7); }
/* No JS or reduced motion: one still set of prints that wraps, every print and caption in view */
.no-js .c-reel--b, .c-reel--b.is-static { display: none; }
.no-js .c-reel__track, .is-static .c-reel__track { width: auto; flex-wrap: wrap; justify-content: center; padding: 0 var(--gut); transform: none !important; }
.no-js .c-reel__item[aria-hidden], .is-static .c-reel__item[aria-hidden] { display: none; }

/* ---------- Short desktop screens (1366x768, 1280x720): the whole form and its button stay on the first screen ---------- */
@media (min-width: 901px) and (max-height: 860px) {
  .c-open { padding-top: calc(var(--head-h) + 14px); padding-bottom: 32px; }
  .c-open h1 { font-size: clamp(2.3rem, min(4.2vw, 7.4vh), 4.1rem); margin-bottom: .1em; }
  .c-open__head { margin-bottom: 14px; }
  .c-form__grid { row-gap: 9px; }
  .field { gap: 4px; }
  .field__label { font-size: .92rem; }
  .field__input { min-height: 46px; padding-top: 10px; padding-bottom: 10px; }
  .field__area { height: clamp(70px, 11vh, 120px); }
  .c-form__foot { margin-top: 2px; }
  .btn.c-form__send { min-height: 48px; }
  .c-media__frame { height: min(70vh, 640px); }
  .c-tips { padding: 56px 0 64px; }
  .c-tips__head { margin-bottom: 26px; }
  .c-card__msg { font-size: clamp(1.08rem, 1.3vw, 1.3rem); }
  .c-tips__list li { padding-top: 9px; padding-bottom: 9px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .postmark--big { left: -30px; }
}
@media (max-width: 900px) {
  .c-open__grid { grid-template-columns: 1fr; }
  .c-open__line { padding-right: clamp(118px, 34vw, 170px); min-height: 7.2em; }
  .postmark--mini { display: block; position: absolute; right: clamp(-90px, -16vw, -40px); bottom: -6px; width: clamp(200px, 52vw, 270px); color: var(--rasp); }
  .postmark--mini .postmark__waves { opacity: .5; }
  .c-media { margin-top: 18px; }
  .c-media__frame { height: min(60vh, 440px); }
  .postmark--big { display: none; }
  .c-route { right: auto; left: 14px; bottom: -28px; width: min(340px, calc(100% - 28px)); }
  .c-media { margin-bottom: 30px; }
  .c-tips__grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .c-form__grid { grid-template-columns: 1fr; }
  .c-open h1 { font-size: clamp(2.3rem, 10vw, 2.9rem); }
  .c-form__send { width: 100%; }
  .c-thanks { grid-template-columns: 1fr; }
  .c-card__msg { line-height: 1.9; }
  .c-card__top { min-height: 80px; }
  .c-card__stamp { width: 70px; height: 86px; }
  .postmark--card { width: 140px; }
}

/* Start states while the scripts run; no-JS and reduced motion show the finished picture */
.js .postmark--big, .js .postmark--mini, .js .c-route { opacity: 0; }
.js .c-route__reveal { stroke-dasharray: 0 999; }
.js .c-route__parcel { opacity: 0; }
.no-js .c-card__msg mark { background-size: 100% 100%; }
.no-js .c-tips__list li::before { transform: scaleY(1); }
.no-js .c-tips__list .c-tips__ico { background: var(--teal); border-color: var(--teal); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .js .postmark--big, .js .postmark--mini, .js .c-route, .js .c-route__parcel { opacity: 1; }
  .js .c-route__reveal { stroke-dasharray: none; }
  .c-open::after, .c-media__light { animation: none; }
  .postmark__daisy .daisy__spin, .c-route__start .daisy__spin { animation: none; }
  .c-card__msg mark { background-size: 100% 100%; transition: none; }
  .c-tips__list li::before { transform: scaleY(1); }
  .c-reel--b { display: none; }
  .c-reel__track { width: auto; flex-wrap: wrap; justify-content: center; padding: 0 var(--gut); transform: none !important; }
  .c-reel__item[aria-hidden] { display: none; }
  .field.is-done .field__label::after { animation: none; }
}
