/* Hallmark · shape: custom · genre: editorial · theme: brand · redesign: full · job: visit
 * paper: #0b0a09 · accent: #c9a96e gold · display: Playfair Display · body: Inter · hero: custom (headline, arch window, annotated caption, tabs) · nav: edge-aligned · footer: index columns · signature: the arch window, cycling through the house with a caption drawn to it by a hairline
 * axes: dark/high-contrast-serif/warm · posture: custom · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V5 · weakest: R, the hero carries headline, arch, caption and tabs; kept each small and let motion introduce them one at a time */
/* Hallmark · waive 83 · a gallery of the user's own work · the photographs are the house's own campaign and collection plates, the reason to come */
/* Hallmark · reworded "Born of Città di Circo—the heritage" to "Born of Città di Circo: the heritage" · 19 names the dash */
/* Hallmark · dropped the lobby video and the theme switch · the user asked for the video gone and the site in black, white and gold only */
/* Hallmark · dropped index.html .custom-cursor-dot, index.html .custom-cursor-ring · decoration only, and main.js skips the cursor when they are absent */
@import url("./tokens.css");
@import url("./base.css");

body.home {
  background: var(--color-paper);
}

/* ---------- Skip link ---------- */

.home-skip {
  position: fixed;
  top: var(--space-sm);
  left: var(--space-sm);
  z-index: var(--z-tooltip);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-pill);
  background: var(--color-ink);
  color: var(--color-paper);
  font-size: var(--text-sm);
  text-decoration: none;
  transform: translateY(-160%);
}
.home-skip:focus-visible {
  transform: none;
}
main:focus {
  outline: none;
}

/* ---------- Nav ---------- */

.home-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: var(--z-sticky-nav);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  padding-inline: var(--gutter);
  transition: background-color var(--dur-long) var(--ease-out), border-color var(--dur-long) var(--ease-out);
  border-bottom: var(--rule-hair) solid transparent;
}
.home-nav.is-scrolled {
  background: var(--color-paper);
  border-bottom-color: var(--color-rule);
}
.home-wordmark {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  letter-spacing: 0.3em;
  color: var(--color-accent-text);
  text-decoration: none;
  white-space: nowrap;
}
.home-nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}
.home-nav-links a:not(.home-button) {
  padding-block: var(--space-xs);
  font-size: var(--text-sm);
  color: var(--color-ink-2);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--dur-short) var(--ease-out);
}
.home-nav-links a:not(.home-button):hover {
  color: var(--color-ink);
  text-decoration: underline;
}

/* ---------- Buttons ---------- */

.home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  min-height: 44px;
  padding: 0 var(--space-md);
  border: var(--rule-hair) solid var(--color-ink);
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color var(--dur-short) var(--ease-out),
    color var(--dur-short) var(--ease-out),
    transform var(--dur-micro) var(--ease-out);
}
.home-button svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transition: transform var(--dur-long) var(--ease-out);
}
.home-button:hover svg {
  transform: translateX(3px);
}
.home-button--light {
  background: var(--color-ink);
  color: var(--color-paper);
}
.home-button--light:hover {
  background: var(--color-ink-2);
  border-color: var(--color-ink-2);
}
.home-button--line {
  background: transparent;
  color: var(--color-ink);
}
.home-button--line:hover {
  background: var(--color-ink);
  color: var(--color-paper);
}
.home-button:active {
  transform: translateY(1px);
}
.home-button:focus-visible,
.home-tab:focus-visible,
.home-pause:focus-visible,
.home-rail:focus-visible,
.home-input:focus-visible,
.home-footer a:focus-visible,
.home-nav a:focus-visible,
.home-note-link:focus-visible,
.home-close-links a:focus-visible,
.home-plate a:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
}
.home-button:disabled {
  background: var(--color-paper-3);
  border-color: var(--color-rule);
  color: var(--color-muted);
  cursor: not-allowed;
  transform: none;
}

/* ---------- Stage: headline, arch, caption, tabs ---------- */

.home-stage {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.95fr) minmax(0, 0.62fr);
  gap: var(--space-2xl);
  padding: calc(var(--nav-h) + var(--space-xl)) var(--gutter) calc(var(--space-4xl) - var(--space-md));
  overflow: hidden;
}
.home-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 70% at 62% 45%, var(--color-glow), transparent 70%);
  pointer-events: none;
}
.home-copy {
  position: relative;
  z-index: var(--z-raised);
  align-self: center;
}
.home-stage h1 {
  max-width: none;
  font-size: clamp(3rem, 7.4vw, 7.6rem);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--color-ink);
}
.home-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
}
.home-line > span {
  display: block;
}
.home-sub {
  margin-top: var(--space-lg);
  max-width: 30ch;
  font-size: var(--text-lead);
  line-height: 1.5;
  color: var(--color-ink-2);
}
.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
}

.home-arch-wrap {
  position: relative;
  z-index: var(--z-base);
  align-self: center;
  justify-self: center;
  width: min(100%, 30rem);
  aspect-ratio: 3 / 4;
}
.home-arch {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 999px 999px 6px 6px;
  background: var(--color-paper-3);
  outline: var(--rule-hair) solid var(--color-accent);
  outline-offset: -1px;
  transform: translate3d(var(--px, 0), var(--py, 0), 0);
  transition: transform 0.8s var(--ease-out);
}
.home-arch img {
  position: absolute;
  inset: -4%;
  width: 108%;
  height: 108%;
  max-width: none;
  object-fit: cover;
}
html:not(.js) .home-arch img:not(.is-on) {
  display: none;
}
html.js .home-arch img {
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1s var(--ease-out), transform 7s linear;
}
html.js .home-arch img.is-on {
  opacity: 1;
  transform: scale(1);
}
.home-arch-ring {
  position: absolute;
  inset: calc(var(--space-sm) * -1);
  border: var(--rule-hair) solid var(--color-rule-strong);
  border-radius: 999px 999px 10px 10px;
}

.home-note {
  position: relative;
  z-index: var(--z-raised);
  align-self: end;
  margin-bottom: var(--space-2xl);
}
.home-note-line {
  position: absolute;
  right: calc(100% + var(--space-sm));
  top: 9px;
  width: calc(var(--space-2xl) * 1.4);
  height: 1px;
  background: var(--color-accent);
  transform-origin: right;
}
.home-note-dot {
  position: absolute;
  left: 0;
  top: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
}
.home-note-body {
  transition: opacity var(--dur-long) var(--ease-out), transform 0.6s var(--ease-out);
}
.home-note-body.is-out {
  opacity: 0;
  transform: translateY(8px);
}
.home-note-kicker {
  margin-bottom: var(--space-xs);
  font-size: var(--text-xs);
  color: var(--color-accent-text);
}
.home-note-text {
  font-size: var(--text-sm);
  line-height: 1.55;
  color: var(--color-ink-2);
}
.home-note-link {
  display: inline-block;
  margin-top: var(--space-sm);
  padding-block: var(--space-2xs);
  font-size: var(--text-sm);
  color: var(--color-ink);
}

.home-pause {
  position: absolute;
  top: calc(var(--nav-h) + var(--space-sm));
  right: var(--gutter);
  z-index: var(--z-raised);
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: var(--rule-hair) solid var(--color-rule-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--color-ink-2);
  cursor: pointer;
}
.home-pause:hover {
  color: var(--color-ink);
  border-color: var(--color-ink-2);
}
.home-pause svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}
.home-play-icon,
.home-pause.is-paused .home-pause-icon {
  display: none;
}
.home-pause.is-paused .home-play-icon {
  display: block;
}

.home-tabs {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: var(--space-xl);
  z-index: var(--z-raised);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-sm);
}
.home-tab {
  position: relative;
  min-height: 56px;
  padding: var(--space-md);
  border: var(--rule-hair) solid var(--color-rule-strong);
  border-radius: 2px;
  background: var(--color-paper);
  color: var(--color-ink-2);
  font: inherit;
  font-size: var(--text-sm);
  text-align: left;
  cursor: pointer;
  transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out);
}
.home-tab strong {
  font-weight: 500;
}
.home-tab:hover {
  border-color: var(--color-ink-2);
  color: var(--color-ink);
}
.home-tab:active {
  transform: translateY(1px);
}
.home-tab.is-active {
  background: var(--color-ink);
  border-color: var(--color-ink);
  color: var(--color-paper);
}
.home-tab-bar {
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  overflow: hidden;
}
.home-tab-bar i {
  display: block;
  height: 100%;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
}
.home-tab.is-active .home-tab-bar i {
  animation: home-fill var(--cycle) linear forwards;
}
.home-tabs.is-paused .home-tab.is-active .home-tab-bar i {
  animation-play-state: paused;
}

/* ---------- Entrance: only when scripts run, so nothing hides without them ---------- */

html.js .home-line > span {
  transform: translateY(105%);
  animation: home-rise 1.1s var(--ease-out) forwards;
}
html.js .home-line:nth-child(2) > span {
  animation-delay: 0.12s;
}
html.js .home-line:nth-child(3) > span {
  animation-delay: 0.24s;
}
html.js .home-sub,
html.js .home-actions,
html.js .home-note-body,
html.js .home-tabs,
html.js .home-pause,
html.js .home-arch-ring {
  opacity: 0;
  animation: home-fade 0.9s var(--ease-out) forwards;
}
html.js .home-sub { animation-delay: 0.7s; }
html.js .home-actions { animation-delay: 0.85s; }
html.js .home-arch-ring { animation-delay: 1s; }
html.js .home-note-body { animation-delay: 1.6s; }
html.js .home-tabs { animation-delay: 1.8s; }
html.js .home-pause { animation-delay: 1.9s; }
html.js .home-arch {
  clip-path: inset(100% 0 0 0 round 999px 999px 6px 6px);
  animation: home-open 1.4s 0.25s var(--ease-in-out) forwards;
}
html.js .home-note-line {
  transform: scaleX(0);
  animation: home-draw 1s 1.3s var(--ease-out) forwards;
}
html.js .home-note-dot {
  opacity: 0;
  animation: home-fade 0.4s 1.3s forwards;
}
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
html.js [data-reveal].is-in,
html.reveal-failsafe [data-reveal] {
  opacity: 1;
  transform: none;
}

@keyframes home-rise { to { transform: translateY(0); } }
@keyframes home-fade { to { opacity: 1; } }
@keyframes home-open { to { clip-path: inset(0 0 0 0 round 999px 999px 6px 6px); } }
@keyframes home-draw { to { transform: scaleX(1); } }
@keyframes home-fill { to { transform: scaleX(1); } }

/* ---------- The collection: a rail of plates ---------- */

.home-collection {
  padding-block: var(--section-gap) var(--section-gap-s);
  border-top: var(--rule-hair) solid var(--color-rule);
}
.home-collection-head {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 5fr) auto;
  gap: var(--gap-columns);
  align-items: end;
}
.home-collection-head .lead {
  color: var(--color-ink-2);
}
.home-rail {
  list-style: none;
  display: flex;
  gap: var(--gap-columns);
  margin: var(--space-2xl) 0 0;
  padding: 0 var(--gutter) var(--space-lg);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: thin;
  scrollbar-color: var(--color-rule-strong) transparent;
}
.home-plate {
  flex: 0 0 clamp(15rem, 24vw, 22rem);
  scroll-snap-align: start;
}
.home-plate a {
  display: block;
  color: var(--color-ink-2);
  text-decoration: none;
}
.home-plate picture {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--color-paper-3);
}
.home-plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home-plate-cap {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
  font-size: var(--text-sm);
}
.home-plate-num {
  min-width: 2.5em;
  font-family: var(--font-display);
  color: var(--color-accent-text);
}
.home-plate a:hover .home-plate-cap {
  color: var(--color-ink);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* ---------- The house ---------- */

.home-house {
  padding-block: var(--section-gap);
}
.home-house-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap-columns);
  align-items: center;
}
.home-house-photo {
  grid-column: 2 / span 4;
  margin: 0;
}
.home-house-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 999px 999px 4px 4px;
}
.home-house-text {
  grid-column: 7 / span 5;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-lg);
}
.home-house-text .lead {
  color: var(--color-ink-2);
}

/* ---------- Boutique (once it opens) ---------- */

.home-boutique {
  padding-block: var(--section-gap-s);
  background: var(--color-paper-2);
  border-block: var(--rule-hair) solid var(--color-rule);
}
.home-boutique-inner {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) auto;
  gap: var(--gap-columns);
  align-items: end;
}
.home-boutique .lead {
  color: var(--color-ink-2);
}

/* ---------- Close: sign-up and visits ---------- */

.home-close {
  padding-block: var(--section-gap-s);
  background: var(--color-paper-2);
  border-top: var(--rule-hair) solid var(--color-rule);
}
.home-close-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap-columns);
  align-items: start;
}
.home-close-notify {
  grid-column: 1 / span 7;
}
.home-close-visit {
  grid-column: 9 / span 4;
  padding-left: var(--space-xl);
  border-left: var(--rule-hair) solid var(--color-rule);
}
.home-close h2 {
  max-width: 16ch;
}
.home-close-text {
  margin-top: var(--space-md);
  color: var(--color-ink-2);
}
.home-close-visit h3 {
  font-size: var(--text-title);
}
.home-close-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-xs);
  margin-top: var(--space-lg);
}
.home-close-links a {
  padding-block: var(--space-2xs);
  color: var(--color-accent-text);
}
.home-close-links a:hover {
  color: var(--color-ink);
}
.home-form {
  position: relative;
  margin-top: var(--space-xl);
  max-width: 36rem;
}
.home-form-label {
  display: block;
  margin-bottom: var(--space-xs);
  font-size: var(--text-sm);
  color: var(--color-ink-2);
}
.home-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}
.home-input {
  flex: 1 1 16rem;
  min-width: 0;
  min-height: 44px;
  padding: 0 var(--space-md);
  border: var(--rule-hair) solid var(--color-rule-strong);
  border-radius: 2px;
  background: var(--color-paper);
  color: var(--color-ink);
}
.home-input::placeholder {
  color: var(--color-muted);
}
.home-input:hover {
  border-color: var(--color-ink-2);
}
.home-input:disabled {
  color: var(--color-muted);
  cursor: not-allowed;
}
.inquiry-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.inquiry-status {
  margin-top: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  border-left: 2px solid var(--color-accent);
  background: var(--color-success-paper);
  font-size: var(--text-sm);
}
.inquiry-status.is-error {
  border-left-color: var(--color-error);
  background: var(--color-error-paper);
}
.inquiry-status a {
  color: var(--color-ink);
}

/* ---------- Footer ---------- */

.home-footer {
  padding-block: var(--space-3xl) var(--space-xl);
  border-top: var(--rule-hair) solid var(--color-rule);
}
.home-footer-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap-columns);
}
.home-footer-brand {
  grid-column: 1 / span 5;
}
.home-footer-brand p {
  margin-top: var(--space-md);
  max-width: 34ch;
  font-size: var(--text-sm);
  color: var(--color-muted);
}
.home-footer-col {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2xs);
}
.home-footer-col:first-of-type {
  grid-column: 7 / span 2;
}
.home-footer-head {
  margin-bottom: var(--space-xs);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-ink);
}
.home-footer-col a {
  padding-block: var(--space-2xs);
  font-size: var(--text-sm);
  color: var(--color-muted);
  text-decoration: none;
}
.home-footer-col a:hover {
  color: var(--color-ink);
  text-decoration: underline;
}
.home-footer-legal {
  margin-top: var(--space-2xl);
  padding-top: var(--space-lg);
  border-top: var(--rule-hair) solid var(--color-rule);
  font-size: var(--text-sm);
  color: var(--color-muted);
}

/* ---------- The boutique gate (js/boutique-gate.js) ---------- */

html.boutique-closed .boutique-only,
html.boutique-closed a[href^="shop.html"],
html.boutique-closed .boutique-open-only,
html:not(.boutique-closed) .boutique-closed-only {
  display: none;
}

/* ---------- Smaller screens ---------- */

@media (max-width: 64rem) {
  .home-stage {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  }
  .home-note {
    grid-column: 1 / -1;
    margin: 0;
    max-width: 30rem;
  }
  .home-note-line {
    display: none;
  }
  .home-tabs {
    position: relative;
    inset: auto;
    grid-column: 1 / -1;
  }
}

@media (max-width: 48rem) {
  .home-nav-links a:not(.home-button):not([data-gateway-account]) {
    display: none;
  }
  .home-stage {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-xl);
    padding-bottom: var(--space-2xl);
  }
  .home-arch-wrap {
    order: -1;
    width: min(78vw, 22rem);
  }
  .home-actions {
    flex-direction: column;
  }
  .home-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-pause {
    top: calc(var(--nav-h) + var(--space-xs));
  }
  .home-collection-head,
  .home-boutique-inner,
  .home-house-grid,
  .home-close-grid,
  .home-footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .home-collection-head,
  .home-boutique-inner {
    justify-items: start;
  }
  .home-plate {
    flex-basis: 72vw;
  }
  .home-house-photo,
  .home-house-text,
  .home-close-notify,
  .home-close-visit,
  .home-footer-brand,
  .home-footer-col,
  .home-footer-col:first-of-type {
    grid-column: 1;
  }
  .home-house-photo {
    width: min(70vw, 20rem);
  }
  .home-close-visit {
    padding-left: 0;
    padding-top: var(--space-xl);
    border-left: 0;
    border-top: var(--rule-hair) solid var(--color-rule);
  }
  .home-form-row .home-button {
    flex: 1 1 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.js .home-line > span,
  html.js .home-arch,
  html.js .home-note-line,
  html.js [data-reveal] {
    transform: none;
    clip-path: none;
    opacity: 1;
  }
}
