/* Crank and Canvas – Commissions, About, Contact and Cart pages
   Loaded after styles.css and catalog.css (which supplies the --cc-* tokens,
   page transitions and the sharp-corner, monochrome system). */

:root {
  --pg-field-line: #8f8f8c;   /* 3:1 against white for input boundaries */
  --pg-placeholder: #6b6b6b;  /* 5.3:1 on white */
  --pg-error: #b3261e;
}

/* ===== Shared page scaffolding ===== */
.pg {
  padding-top: calc(var(--nav-h) + 4rem);
}

.pg-wrap {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.pg-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2.8rem, 6vw, 5.25rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  padding-bottom: 0.06em;
  color: var(--cc-ink);
  font-variant-numeric: lining-nums;
}

.pg-h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2.1rem, 3.8vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  padding-bottom: 0.06em;
  color: var(--cc-ink);
  font-variant-numeric: lining-nums;
}

.pg-lead {
  margin-top: 1.5rem;
  max-width: 44ch;
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--cc-ink-2);
}

.pg-body {
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--cc-ink-2);
  max-width: 60ch;
}

.pg-h2 + .pg-body,
.pg-h2 + .pg-lead {
  margin-top: 1.5rem;
}

.pg-body p + p {
  margin-top: 1.1rem;
}

/* A small price table (shipping.html: delivery by order size) */
.pg-table {
  width: 100%;
  margin: 1.4rem 0;
  border-collapse: collapse;
  font-size: 0.95rem;
  line-height: 1.5;
  font-variant-numeric: lining-nums tabular-nums;
}
.pg-table th,
.pg-table td {
  padding: 0.7rem 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--cc-line);
}
.pg-table thead th {
  padding-top: 0;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cc-ink-2);
}
.pg-table tbody th {
  padding-right: 1rem;
  font-weight: 400;
  color: var(--cc-ink);
}
.pg-table td {
  color: var(--cc-ink);
  text-align: right;
}
.pg-table thead th:last-child {
  text-align: right;
}

.pg-icon {
  width: 20px;
  height: 20px;
  flex: none;
}

.pg-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--cc-ink);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.2rem;
}

.pg-link .pg-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.35s var(--cc-ease);
}

.pg-link:hover .pg-icon {
  transform: translateX(4px);
}

/* ===== Scroll reveal (JS adds .is-in; without JS everything is visible) ===== */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition:
      opacity 0.9s var(--cc-ease) var(--reveal-delay, 0ms),
      transform 0.9s var(--cc-ease) var(--reveal-delay, 0ms);
  }
  .js [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }

  /* Images open from the bottom edge, then settle. The clip sits on the photo,
     not the frame: IntersectionObserver never reports a fully clipped target,
     so a clipped frame would never be revealed. */
  .js [data-reveal="image"] {
    opacity: 1;
    transform: none;
  }
  .js [data-reveal="image"] img {
    clip-path: inset(100% 0 0 0);
    transform: scale(1.08);
    transition:
      clip-path 1.2s var(--cc-ease) var(--reveal-delay, 0ms),
      transform 1.8s var(--cc-ease) var(--reveal-delay, 0ms);
  }
  .js [data-reveal="image"].is-in img {
    clip-path: inset(0 0 0 0);
    transform: none;
  }
}

/* ===== Minimal forms ===== */
.form-minimal .form-group {
  margin-bottom: 2rem;
}

.form-minimal .form-group > label,
.form-minimal .field-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--cc-ink-2);
}

.form-minimal .form-group input:not([type="radio"]):not([type="checkbox"]):not([type="file"]),
.form-minimal .form-group textarea {
  width: 100%;
  padding: 0.75rem 0;
  border: 0;
  border-bottom: 1px solid var(--pg-field-line);
  border-radius: 0;
  background-color: transparent;
  /* Focus underline draws in from the left */
  background-image: linear-gradient(var(--cc-ink), var(--cc-ink));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 2px;
  font-family: inherit;
  font-size: 1.02rem;
  color: var(--cc-ink);
  transition: background-size 0.5s var(--cc-ease), border-color 0.3s ease;
  min-height: 0;
}

.form-minimal .form-group textarea {
  resize: vertical;
  line-height: 1.6;
}

.form-minimal .form-group input::placeholder,
.form-minimal .form-group textarea::placeholder {
  color: var(--pg-placeholder);
}

.form-minimal .form-group input:not([type="radio"]):not([type="checkbox"]):focus,
.form-minimal .form-group textarea:focus {
  outline: none;
  border-color: var(--cc-ink);
  background-size: 100% 2px;
}

.form-minimal .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 2rem;
}

.form-optional {
  color: var(--cc-ink-2);
  opacity: 0.8;
}

.form-minimal .form-hint {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--cc-ink-2);
}

/* Validation */
.field-error {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transform: translateY(-4px);
  transition: grid-template-rows 0.35s var(--cc-ease), opacity 0.35s ease, transform 0.35s var(--cc-ease);
}

.field-error > span {
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--pg-error);
}

.field-error svg {
  width: 15px;
  height: 15px;
  flex: none;
  margin-top: 0.5rem;
}

.field-error > span > span {
  padding-top: 0.5rem;
}

.form-group.is-invalid .field-error {
  grid-template-rows: 1fr;
  opacity: 1;
  transform: none;
}

.form-minimal .form-group.is-invalid input:not([type="radio"]):not([type="checkbox"]),
.form-minimal .form-group.is-invalid textarea {
  border-color: var(--pg-error);
  background-image: linear-gradient(var(--pg-error), var(--pg-error));
}

@keyframes pg-nudge {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  60% { transform: translateX(4px); }
  85% { transform: translateX(-2px); }
}

@media (prefers-reduced-motion: no-preference) {
  .form-group.is-nudged {
    animation: pg-nudge 0.42s var(--cc-ease);
  }
}

/* The site-wide ".form-group label" rule (uppercase, tracked, block) must not reach
   labels that wrap whole controls */
.form-group label.size-option,
.form-group label.file-field {
  text-transform: none;
  letter-spacing: normal;
  font-size: inherit;
  color: inherit;
  margin: 0;
}

.form-group label.size-option {
  display: block;
}

.form-group label.file-field {
  display: flex;
}

/* Choice cards (size). */
.form-minimal .size-card {
  border-radius: 0;
  border: 1px solid var(--cc-line);
  background: transparent;
  transition: border-color 0.3s var(--cc-ease), background-color 0.3s var(--cc-ease);
}

.form-minimal .size-options {
  max-width: none;
}

.form-minimal .size-option:hover .size-card {
  border-color: var(--pg-field-line);
}

.form-minimal .size-option input:checked + .size-card {
  border-color: var(--cc-ink);
  background: #fafafa;
}

/* Custom radio: ring with an ink dot that scales in */

.form-minimal .size-option input:focus-visible + .size-card {
  outline: 2px solid var(--cc-ink);
  outline-offset: 3px;
}

/* Revealed sub-field (custom specs) opens smoothly instead of popping */

/* File picker */
.file-field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  border: 1px dashed var(--pg-field-line);
  cursor: pointer;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.file-field:hover,
.file-field:focus-within {
  border-color: var(--cc-ink);
  background: #fafafa;
}

.file-field input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.file-field-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.file-field-text strong {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--cc-ink);
}

.file-field-name {
  font-size: 0.8rem;
  color: var(--cc-ink-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.form-group.is-invalid .file-field {
  border-color: var(--pg-error);
}

/* Success panels */
.pg-success {
  padding: 1rem 0;
}

.pg-success[hidden] {
  display: none;
}

.pg-success-mark {
  display: inline-grid;
  place-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--cc-ink);
  border-radius: 50%;
  margin-bottom: 1.5rem;
}

.pg-success-mark svg {
  width: 24px;
  height: 24px;
}

.pg-success h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  line-height: 1.1;
  color: var(--cc-ink);
}

.pg-success p {
  margin-top: 1rem;
  max-width: 46ch;
  line-height: 1.75;
  color: var(--cc-ink-2);
}

.pg-success .btn {
  margin-top: 2rem;
}

@media (prefers-reduced-motion: no-preference) {
  .pg-success:not([hidden]) {
    animation: cc-fade-up 700ms var(--cc-ease) both;
  }
  .pg-success:not([hidden]) .pg-success-mark {
    animation: pg-pop 700ms var(--cc-ease) 150ms both;
  }
}

@keyframes pg-pop {
  from { opacity: 0; transform: scale(0.6); }
}

@media (max-width: 640px) {
  .form-minimal .form-row {
    grid-template-columns: 1fr;
  }
}

/* ======================================================
   IMAGE-LED BUILDING BLOCKS (shared by the four pages)
   ====================================================== */

:root {
  --pg-stone: #edece9;        /* neutral stone, lifted from the room photography */
  --pg-wash: 250, 250, 248;   /* white wash laid over photos behind type */
  --pg-line: rgba(26, 26, 26, 0.14);
}

/* Pages that open with a full-bleed photo sit directly under the nav */
.pg--flush {
  padding-top: var(--nav-h);
}

/* Section grounds */
.pg-band {
  padding: 7.5rem 0;
}

.pg-band--stone {
  background: var(--pg-stone);
}

/* Moving strip of rooms (the one marquee on each page that uses it) */
.pg-strip {
  overflow: hidden;
  padding: 1rem 0;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.pg-strip-track {
  display: flex;
  gap: 1rem;
  width: max-content;
}

.pg-strip-track figure {
  margin: 0;
  flex: none;
  width: clamp(220px, 24vw, 360px);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--cc-frame);
}

.pg-strip-track figure:nth-child(3n + 2) {
  aspect-ratio: 1 / 1;
  align-self: center;
}

.pg-strip-track img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (prefers-reduced-motion: no-preference) {
  .pg-strip-track {
    animation: pg-strip 70s linear infinite;
  }
  .pg-strip:hover .pg-strip-track {
    animation-play-state: paused;
  }
}

@keyframes pg-strip {
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .pg-strip {
    overflow-x: auto;
  }
}

@media (max-width: 640px) {
  /* Phones: photo on top, text on stone below, so type never sits over a canvas */
  
  
  
  
  
  .pg-band {
    padding: 4.5rem 0;
  }
}

/* ======================================================
   ABOUT (about.html)
   ====================================================== */

.ab-close {
  text-align: center;
  padding-top: 6rem;
  margin-top: 6rem;
  border-top: 1px solid var(--pg-line);
}

/* Closing on its own band (no rule or run-up above it) */
.ab-close.ab-close--solo {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

/* Story captions beside the pinned canvas may carry a link */
.sp--story .pg-link {
  margin-top: 1.75rem;
}

.ab-close-line {
  max-width: 22ch;
  margin: 0 auto;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  line-height: 1.15;
  color: var(--cc-ink);
}

.ab-close-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.75rem;
}

.ab-close .pg-body {
  margin: 1.25rem auto 0;
  text-align: center;
}

@media (max-width: 640px) {
  .ab-close {
    padding-top: 4rem;
    margin-top: 4rem;
  }
  .ab-close-actions .btn {
    width: 100%;
  }
}

/* ======================================================
   CONTACT (contact.html)
   ====================================================== */

.ct-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: calc(100dvh - var(--nav-h));
}

/* Photo panel with the details laid over it */
.ct-panel {
  position: sticky;
  top: var(--nav-h);
  height: calc(100dvh - var(--nav-h));
  min-height: 620px;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--cc-ink);
  isolation: isolate;
  background: var(--pg-stone);
}

.ct-panel-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.ct-panel-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 45% 50%;
  /* Scaling from the bottom edge lifts the canvas clear of the heading */
  transform: scale(1.15);
  transform-origin: 50% 100%;
}

.ct-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(var(--pg-wash), 0.94) 0%, rgba(var(--pg-wash), 0.72) 42%, rgba(var(--pg-wash), 0) 72%);
}

.ct-panel-inner {
  padding: 4rem clamp(1.5rem, 4vw, 4rem);
}

.ct-panel .pg-title {
  color: var(--cc-ink);
  font-size: clamp(2.6rem, 4.6vw, 4.25rem);
}

.ct-panel .pg-lead {
  color: var(--cc-ink-2);
}

.ct-details {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, auto));
  justify-content: start;
  gap: 1.5rem 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--pg-line);
}

.ct-detail dt {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--cc-ink-2);
}

.ct-detail dt .pg-icon {
  width: 16px;
  height: 16px;
  color: var(--cc-ink);
}

.ct-detail dd {
  margin: 0.4rem 0 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--cc-ink);
}

.ct-detail a {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 1px;
  transition: background-size 0.4s var(--cc-ease);
}

.ct-detail a:hover {
  background-size: 0% 1px;
  background-position: 100% 100%;
}

.ct-form-side {
  padding: 5rem clamp(1.5rem, 5vw, 5.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ct-form-side .pg-h2 {
  margin-bottom: 2.5rem;
}

.ct-form-side form .btn {
  width: 100%;
  margin-top: 0.5rem;
}

/* Location band */
.ct-location {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 4rem;
  align-items: center;
}

.ct-location .pg-body {
  margin-top: 1.25rem;
}

.ct-map {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--cc-frame);
}

.ct-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1) contrast(0.92) brightness(1.04);
}

.ct-map-label {
  position: absolute;
  left: 1rem;
  top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.8rem;
  background: var(--cc-surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 0.8rem;
  color: var(--cc-ink);
  pointer-events: none;
}

.ct-map-label .pg-icon {
  width: 16px;
  height: 16px;
}

@media (max-width: 1023px) {
  .ct-split {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }
  /* Narrow screens: photo on top, text on stone below (no type over the image) */
  .ct-panel {
    position: relative;
    top: 0;
    height: auto;
    min-height: 0;
    display: block;
  }
  .ct-panel::before {
    display: none;
  }
  .ct-panel-media {
    position: relative;
    inset: auto;
    z-index: auto;
    aspect-ratio: 4 / 3;
    overflow: hidden;
  }
  .ct-panel-media img {
    transform: none;
  }
  .ct-panel-inner {
    padding: 3rem var(--gutter) 3.5rem;
  }
  .ct-location {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
  }
}

@media (max-width: 640px) {
  .ct-details {
    grid-template-columns: minmax(0, 1fr);
  }
  .ct-form-side {
    padding: 4rem var(--gutter);
  }
  .ct-map {
    aspect-ratio: 4 / 3;
  }
}

/* ======================================================
   CART (cart.html)
   ====================================================== */

.ck-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 2.5rem;
}

.ck-count {
  font-size: 0.88rem;
  color: var(--cc-ink-2);
  font-variant-numeric: tabular-nums;
}

.ck-layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 5rem;
  align-items: start;
  padding-bottom: 7rem;
}

.ck-layout.is-empty {
  grid-template-columns: minmax(0, 1fr);
}

/* Line items */
.ck-items {
  border-top: 1px solid var(--cc-ink);
}

.ck-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  gap: 1.75rem;
  align-items: start;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--cc-line);
}

.ck-item-thumb {
  display: block;
  aspect-ratio: 733 / 1037;
  box-shadow: 0 0 0 1px rgba(20, 20, 20, 0.06);
  overflow: hidden;
  background: var(--cc-frame);
}

.ck-item-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--cc-ease);
}

.ck-item-thumb:hover img {
  transform: scale(1.04);
}

.ck-item-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 1.45rem;
  line-height: 1.2;
  color: var(--cc-ink);
  text-decoration: none;
  font-variant-numeric: lining-nums;
}

.ck-item-name:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.ck-item-meta {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: var(--cc-ink-2);
}

.ck-item-controls {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1.25rem;
}

.ck-qty {
  display: inline-grid;
  grid-template-columns: 40px 40px 40px;
  align-items: center;
  border: 1px solid var(--cc-line);
}

.ck-qty button {
  display: grid;
  place-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--cc-ink);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.ck-qty button:hover:not(:disabled) {
  background: var(--cc-frame);
}

.ck-qty button:disabled {
  color: #b5b5b2;
  cursor: default;
}

.ck-qty button svg {
  width: 14px;
  height: 14px;
}

.ck-qty output {
  text-align: center;
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
  color: var(--cc-ink);
}

.ck-remove {
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 0.82rem;
  color: var(--cc-ink-2);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.ck-remove:hover {
  color: var(--cc-ink);
}

.ck-item-price {
  text-align: right;
  font-size: 1rem;
  color: var(--cc-ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ck-item-unit {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.78rem;
  color: var(--cc-ink-2);
}

/* Rows animate in once when the cart opens; quantity changes re-render quietly */
.ck-layout.is-settled .ck-item {
  animation: none;
}

/* Removal slides the row out before the cart re-renders */
.ck-layout .ck-item.is-leaving {
  animation: ck-leave 0.45s var(--cc-ease) forwards;
  overflow: hidden;
}

@keyframes ck-leave {
  to { opacity: 0; transform: translateX(16px); }
}

@keyframes ck-tick {
  from { opacity: 0.2; transform: translateY(-5px); }
}

.ck-tick {
  animation: ck-tick 0.35s var(--cc-ease);
}

/* Checkout form sits below the items */
.ck-checkout {
  margin-top: 4.5rem;
}

.ck-checkout-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  line-height: 1.15;
  color: var(--cc-ink);
  margin-bottom: 2.25rem;
}

/* Summary */
.ck-summary {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
  padding: 2rem;
  background: #fafafa;
  border: 1px solid var(--cc-line);
}

.ck-summary-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.6rem;
  color: var(--cc-ink);
  margin-bottom: 1.5rem;
}

.ck-lines {
  display: grid;
  gap: 0.85rem;
}

.ck-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.92rem;
  color: var(--cc-ink-2);
}

.ck-line dd {
  margin: 0;
  white-space: nowrap;
  color: var(--cc-ink);
  font-variant-numeric: tabular-nums;
}

.ck-line--total {
  margin-top: 0.75rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--cc-ink);
  align-items: baseline;
  color: var(--cc-ink);
}

.ck-line--total dt {
  font-size: 1rem;
}

.ck-line--total dd {
  font-size: 1.6rem;
  font-weight: 300;
  letter-spacing: -0.02em;
}

.ck-summary .btn {
  width: 100%;
  margin-top: 1.75rem;
}

.ck-trust {
  list-style: none;
  margin-top: 1.5rem;
  display: grid;
  gap: 0.6rem;
}

.ck-trust li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: var(--cc-ink-2);
}

.ck-trust .pg-icon {
  width: 16px;
  height: 16px;
  color: var(--cc-ink);
}

/* Empty state */
.ck-empty {
  padding: 3.5rem 0 1rem;
  border-top: 1px solid var(--cc-ink);
}

.ck-empty h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: var(--cc-ink);
}

.ck-empty p {
  margin-top: 0.85rem;
  color: var(--cc-ink-2);
  max-width: 44ch;
  line-height: 1.7;
}

.ck-empty .btn {
  margin-top: 2rem;
}

.ck-ship-note {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--cc-ink-2);
}

/* "Add 1 more A2 and save 15%": the one note in the summary meant to be acted on */
.ck-nudge {
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--cc-line);
  color: var(--cc-ink);
}

.ck-line--save dd {
  color: var(--cc-ink);
}

/* Promo code: a quiet field under the totals (Apply / Remove) */
.ck-promo {
  margin-top: 1.25rem;
}

.ck-promo-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cc-ink-2);
}

.ck-promo-row {
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

.ck-promo-row input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
  padding: 0.5rem 0;
  border: 0;
  border-bottom: 1px solid var(--pg-field-line, #bdbdbd);
  border-radius: 0;
  background: transparent;
  font-family: inherit;
  font-size: 16px;   /* 16px or more: iOS Safari doesn't zoom the page on focus */
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cc-ink);
}

.ck-promo-row input::placeholder {
  text-transform: none;
  letter-spacing: 0;
  color: var(--pg-placeholder, #8a8a8a);
}

.ck-promo-row input:focus {
  outline: none;
  border-bottom-color: var(--cc-ink);
}

.ck-promo-row input[readonly] {
  border-bottom-style: dashed;
}

.ck-promo-btn {
  flex: none;
  min-width: 88px;
  min-height: 44px;
  padding: 0 1rem;
  border: 1px solid var(--cc-ink);
  background: transparent;
  color: var(--cc-ink);
  font-family: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.1s ease-out;
}

.ck-promo-btn:active {
  transform: scale(0.97);
}

@media (hover: hover) {
  .ck-promo-btn:hover {
    background: var(--cc-ink);
    color: #1a1a1a;
  }
  body:not(.cc-wall) .ck-promo-btn:hover {
    color: #ffffff;
  }
}

.ck-promo-btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.ck-promo-msg {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--cc-ink-2);
}

.ck-promo-msg.is-error {
  color: var(--pg-error, #b3261e);
}

@media (prefers-reduced-motion: reduce) {
  .ck-promo-btn { transition: none; }
  .ck-promo-btn:active { transform: none; }
}

/* Delivery address: separate fields grouped under one heading */
.ck-address {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.ck-address > legend {
  margin-bottom: 1rem;
  padding: 0;
}

.ck-address > legend {
  font-size: 0.95rem;
  color: var(--cc-ink);
}

.ck-address > legend + .form-group {
  margin-top: 1.25rem;
}

/* Dropdowns match the underlined text fields, with a small chevron drawn in CSS */
.form-minimal .form-group--select {
  position: relative;
}

.form-minimal .form-group select {
  width: 100%;
  padding: 0.75rem 1.5rem 0.75rem 0;
  border: 0;
  border-bottom: 1px solid var(--pg-field-line);
  border-radius: 0;
  background: transparent;
  font-family: inherit;
  font-size: 1.02rem;
  color: var(--cc-ink);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.form-minimal .form-group select:invalid {
  color: var(--pg-placeholder);
}

.form-minimal .form-group select option {
  color: #111111;
}

.form-minimal .form-group select:focus {
  outline: none;
  border-color: var(--cc-ink);
}

.form-minimal .form-group--select::after {
  content: "";
  position: absolute;
  right: 0.25rem;
  bottom: 1.35rem;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 1px solid var(--cc-ink-2);
  border-bottom: 1px solid var(--cc-ink-2);
  transform: rotate(45deg);
  pointer-events: none;
}

/* Opening animation: header, items (staggered), then summary slides in */
@media (prefers-reduced-motion: no-preference) {
  .ck-head {
    animation: cc-fade-up 700ms var(--cc-ease) both;
  }
  .ck-item,
  .ck-empty {
    animation: cc-fade-up 750ms var(--cc-ease) both;
    animation-delay: calc(120ms + var(--i, 0) * 70ms);
  }
  .ck-summary {
    animation: ck-slide-in 850ms var(--cc-ease) 220ms both;
  }
  .ck-checkout {
    animation: cc-fade-up 800ms var(--cc-ease) 320ms both;
  }
}

@keyframes ck-slide-in {
  from { opacity: 0; transform: translateX(28px); }
}

@media (max-width: 1023px) {
  .ck-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;
  }
  .ck-summary {
    position: static;
  }
}

@media (max-width: 640px) {
  .ck-item {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 1rem 1.1rem;
  }
  .ck-item-price {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: start;
    text-align: right;
  }
  .ck-item-info {
    grid-column: 2;
    grid-row: 1;
    padding-right: 5.5rem;
  }
  .ck-item-name {
    font-size: 1.2rem;
  }
  .ck-summary {
    padding: 1.5rem;
  }
  .ck-layout {
    padding-bottom: 4rem;
  }
}

.mobile-sticky-bar[hidden] {
  display: none !important;
}

/* ----- Cart: richer surfaces and imagery ----- */
.ck-band {
  background: var(--pg-stone);
  padding: 4rem 0 3rem;
  margin-bottom: 3.5rem;
}

.ck-band .ck-head {
  padding-bottom: 0;
}

.ck-item {
  grid-template-columns: 136px minmax(0, 1fr) auto;
}

.ck-summary {
  background: var(--pg-stone);
  border-color: transparent;
}

.ck-summary-media {
  margin: -2rem -2rem 1.75rem;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--cc-frame);
}

.ck-summary-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* "Complete the wall" and empty-state suggestions */
.ck-more {
  padding: 6rem 0 7rem;
  border-top: 1px solid var(--cc-line);
}

.ck-more-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.ck-more-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
}

.ck-more-grid .cc-card-name {
  font-size: 1.25rem;
}

.ck-empty {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 4rem;
  align-items: center;
  padding: 0;
  border-top: 0;
}

.ck-empty-media {
  margin: 0;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: var(--cc-frame);
}

.ck-empty-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 1023px) {
  .ck-more-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ck-empty {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
  }
}

@media (max-width: 640px) {
  .ck-band {
    padding: 2.5rem 0 2rem;
    margin-bottom: 2rem;
  }
  .ck-item {
    grid-template-columns: 92px minmax(0, 1fr);
  }
  .ck-summary-media {
    margin: -1.5rem -1.5rem 1.5rem;
  }
  .ck-more {
    padding: 4rem 0 4.5rem;
  }
  .ck-more-grid {
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: 62%;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin: 0 calc(var(--gutter) * -1);
    padding: 0 var(--gutter);
  }
  .ck-more-grid .cc-card {
    scroll-snap-align: start;
  }
}

/* ======================================================
   Details pages (shipping.html, returns.html, care.html, privacy.html)
   One quiet reading column on white, with a small index of the four pages.
   ====================================================== */
.pg-doc {
  padding-bottom: 7rem;
}

.pg-doc .pg-wrap {
  max-width: 52rem;
}

.pg-doc-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  margin-bottom: 3rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pg-doc-nav a {
  color: var(--cc-ink-3, #767676);
  text-decoration: none;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid transparent;
}

.pg-doc-nav a:hover,
.pg-doc-nav a[aria-current="page"] {
  color: var(--cc-ink);
  border-bottom-color: currentColor;
}

.pg-doc-section {
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.pg-doc-section h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  line-height: 1.15;
  color: var(--cc-ink);
  margin-bottom: 1.25rem;
}

.pg-doc-section ul {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
}

.pg-doc-section li + li {
  margin-top: 0.5rem;
}

.pg-doc-section a {
  color: var(--cc-ink);
}

.pg-doc-updated {
  margin-top: 4rem;
  font-size: 0.8rem;
  color: var(--cc-ink-3, #767676);
}

/* Checkout: the single payment route (Yoco) */
.ck-pay {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--cc-line, #e8e8e8);
}

.ck-pay-title {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cc-ink);
}

.ck-pay-text {
  margin-top: 0.6rem;
  max-width: 46ch;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--cc-ink-2);
}

/* ======================================================
   CONTACT AND CART ON THE GALLERY WALL (body.cc-wall)
   The wall itself and the light ink come from catalog.css; here the page's
   own grounds follow: stone bands become a lighter tint of the wall, the
   white wash over photos becomes a wall-coloured wash, and fields and lines
   go light. About also uses this file and stays white.
   ====================================================== */
body.cc-wall {
  --pg-stone: rgb(255 255 255 / 0.05);
  --pg-wash: 72, 76, 81;
  --pg-line: rgb(245 245 243 / 0.18);
  --pg-field-line: rgb(245 245 243 / 0.5);
  --pg-placeholder: rgb(245 245 243 / 0.6);
  --pg-error: #ffb4ab;
  color-scheme: dark;
}

.cc-wall .form-minimal .size-option input:checked + .size-card,
.cc-wall .file-field:hover,
.cc-wall .file-field:focus-within,
.cc-wall .ck-summary {
  background: rgb(255 255 255 / 0.06);
}

/* Buttons: light on the wall, dark text */
.cc-wall main .btn {
  color: var(--cc-ink);
  border-color: rgb(245 245 243 / 0.7);
}

.cc-wall main .btn:hover,
.cc-wall main .btn-filled {
  background: var(--cc-ink);
  border-color: var(--cc-ink);
  color: #1a1a1a;
}

.cc-wall main .btn-filled:hover {
  background: #ffffff;
  border-color: #ffffff;
}

/* The map stays a light map, framed like a print on the wall */
.cc-wall .ct-map {
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.12), 8px 16px 30px -8px rgb(0 0 0 / 0.45);
}

.cc-wall .ct-map-label {
  color: var(--cc-ink);
}

/* Checkout: delivery or collection (size-card choice, two across) */
.ck-methods {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: none;
}

.cc-wall .ck-methods .size-label,
.cc-wall .ck-methods .size-price {
  color: rgb(245 245 243 / 0.95);
}

.cc-wall .ck-methods .size-dims {
  color: rgb(245 245 243 / 0.62);
}

.cc-wall .ck-methods .size-option input:checked + .size-card {
  border-color: rgb(245 245 243 / 0.9);
}

.ck-methods .size-dims {
  white-space: normal;
}
