/* AMONG THE TREES® (GOOD® CAPSULE Nº2) preview page. Uses style.css for the
   header, nav and fonts; everything else is here. */
.att-page {
  --att-ink: #2a1a10;
  --att-cream: #fff4e2;
  --att-glass: rgba(255, 244, 226, 0.12);
  --att-edge: rgba(255, 236, 205, 0.35);
  /* The warm fall gradient the descent lands in: forest floor to late sun. */
  background: linear-gradient(to bottom, #2b1d12 0, #4a2716 22%, #7e3a1d 48%, #b35a26 74%, #d98a3a 100%);
  background-attachment: scroll;
  color: var(--att-cream);
  min-height: 100vh;
}
html.att-falling, html.att-falling body { overflow: hidden; }

/* Leaves drift over everything, very lightly */
.att-leaves { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 30; }

/* ---------- Hero: the descent ---------- */
.att-hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; isolation: isolate; }
.att-sky {
  position: absolute; left: 0; right: 0; top: 0; height: 400%;
  /* top of the fall: cool dusk; bottom (where we land): warm amber over the trees */
  background: linear-gradient(to bottom,
    #2c3463 0%, #4a4a7c 14%, #7a5d86 28%, #b06e7a 42%, #db8a68 58%, #eea35a 74%, #f3b765 88%, #f6c879 100%);
  transform: translateY(-75%);
  will-change: transform; z-index: -3;
}
.att-sun {
  position: absolute; left: 50%; bottom: -8%; width: 70vmin; height: 70vmin; transform: translateX(-50%);
  border-radius: 50%; background: radial-gradient(circle, rgba(255, 232, 170, 0.95) 0, rgba(255, 196, 110, 0.55) 22%, rgba(255, 170, 90, 0) 62%);
}
.att-cloud {
  position: absolute; left: var(--x); top: var(--y); width: var(--w); height: calc(var(--w) * 0.22);
  border-radius: 999px; background: rgba(255, 226, 214, 0.55); filter: blur(6px);
}
.att-cloud::before, .att-cloud::after { content: ''; position: absolute; border-radius: 50%; background: inherit; }
.att-cloud::before { width: 50%; height: 190%; left: 14%; bottom: 18%; }
.att-cloud::after { width: 36%; height: 150%; right: 16%; bottom: 24%; }

.att-treeline { position: absolute; inset: auto 0 0 0; height: 62%; z-index: -1; pointer-events: none; }
.att-treeline svg { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; will-change: transform; }

.att-header { position: relative; z-index: 5; }
.att-page .site-nav .nav-link { color: var(--att-cream); }
.att-page .site-nav .nav-link:hover { color: var(--att-cream); }
.att-page .wordmark { color: var(--att-cream); text-shadow: 0 2px 0 rgba(60, 20, 0, 0.25); }

.att-title {
  position: absolute; left: 0; right: 0; top: 22%; z-index: 4; text-align: center; padding: 0 16px;
  opacity: 0; transform: translateY(18px); transition: opacity 1.4s ease, transform 1.4s ease;
}
.att-landed .att-title { opacity: 1; transform: none; }
.att-kicker { font-size: 0.7rem; letter-spacing: 0.32em; margin: 0 0 26px; color: var(--att-cream); font-weight: 400; }
.att-title .att-kicker, .att-title .att-dek { text-shadow: 0 1px 2px rgba(90, 30, 0, 0.45), 0 2px 16px rgba(110, 40, 0, 0.45); }
.att-title h1 {
  margin: 0; font: 400 clamp(3rem, 10vw, 8.6rem)/0.95 'Libre Caslon Display', Georgia, serif; letter-spacing: -0.01em;
  color: #fff8ec; text-shadow: 0 4px 30px rgba(120, 40, 0, 0.35);
}
.att-title h1 span { font-size: 0.32em; vertical-align: 1.5em; margin-left: 0.04em; letter-spacing: 0; }
.att-dek { max-width: 32rem; margin: 28px auto 0; font: italic 400 1.2rem/1.6 'Libre Caslon Text', Georgia, serif; color: var(--att-cream); }
.att-down {
  display: inline-block; margin-top: 40px; padding: 13px 24px; border-radius: 999px; text-decoration: none;
  font-size: 0.68rem; letter-spacing: 0.28em; color: var(--att-cream); border: 1px solid rgba(255, 244, 226, 0.6);
  background: transparent; transition: background 0.3s, color 0.3s;
}
.att-down:hover { background: var(--att-cream); color: #7e3a1d; }
.att-skip {
  position: absolute; right: 18px; bottom: 18px; z-index: 6; border: 1px solid var(--att-edge); border-radius: 999px;
  background: rgba(40, 20, 10, 0.25); color: var(--att-cream); padding: 8px 14px; font-size: 0.7rem; letter-spacing: 0.16em; cursor: pointer;
}
.att-landed .att-skip { display: none; }

/* ---------- Content: editorial, hairlines, no boxes ---------- */
.att-page { --att-line: rgba(255, 236, 205, 0.28); }
.att-serif { font-family: 'Libre Caslon Display', Georgia, serif; font-weight: 400; }
.att-main { position: relative; z-index: 2; max-width: 1180px; margin: 0 auto; padding: clamp(120px, 15vw, 220px) clamp(32px, 9vw, 150px) 60px; }
.att-section { padding: 0 0 clamp(160px, 20vw, 280px); }
.att-head { text-align: center; margin: 0 auto clamp(56px, 7vw, 96px); }
.att-tag { font-size: 0.66rem; letter-spacing: 0.32em; margin: 0 0 22px; opacity: 0.75; }
.att-section h2 { margin: 0; font: 400 clamp(2.4rem, 5.4vw, 4.4rem)/1.02 'Libre Caslon Display', Georgia, serif; letter-spacing: -0.005em; }
.att-head::after { content: ''; display: block; width: 44px; height: 1px; margin: 34px auto 0; background: var(--att-cream); opacity: 0.6; }

/* Colourways: three columns divided by hairlines */
.att-colourways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.att-cw { padding: 8px clamp(28px, 4vw, 64px) 12px; text-align: center; min-width: 0; display: flex; flex-direction: column; align-items: center; }
.att-cw + .att-cw { border-left: 1px solid var(--att-line); }
.att-cw-dot { width: 112px; height: 112px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255, 244, 226, 0.7), 0 18px 40px rgba(40, 12, 0, 0.28); margin-bottom: 34px; }
.att-cw h3 { margin: 0 0 30px; font: 400 1.65rem/1.15 'Libre Caslon Display', Georgia, serif; }
.att-chip { margin: 0 0 26px; max-width: 18rem; }
.att-chip i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: 1px; margin-right: 10px; box-shadow: 0 0 0 1px rgba(255, 244, 226, 0.7); }
.att-chip strong { font: 400 0.68rem 'Space Mono', monospace; letter-spacing: 0.2em; }
.att-chip span { display: block; margin: 12px 0 10px; font: italic 400 0.98rem/1.6 'Libre Caslon Text', Georgia, serif; opacity: 0.92; }
.att-chip small { font: 400 0.62rem 'Space Mono', monospace; letter-spacing: 0.2em; opacity: 0.6; }

/* Looks */
.att-switch { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 36px; margin: -24px 0 clamp(72px, 9vw, 120px); }
.att-switch button {
  display: inline-flex; align-items: center; gap: 12px; padding: 0 0 10px; cursor: pointer; background: none; border: 0;
  border-bottom: 1px solid transparent; color: var(--att-cream); opacity: 0.6;
  font: 400 0.68rem 'Space Mono', monospace; letter-spacing: 0.2em; transition: opacity 0.3s, border-color 0.3s;
}
.att-switch button:hover { opacity: 0.9; }
.att-switch button i { width: 12px; height: 12px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255, 244, 226, 0.7); }
.att-switch button[aria-checked="true"] { opacity: 1; border-bottom-color: var(--att-cream); }
.att-line { display: flex; align-items: center; gap: 24px; font: 400 0.66rem 'Space Mono', monospace; letter-spacing: 0.32em; margin: 0 0 clamp(40px, 5vw, 64px); opacity: 0.8; }
.att-line::before, .att-line::after { content: ''; flex: 1; height: 1px; background: var(--att-line); }
.att-looks + .att-line { margin-top: clamp(96px, 11vw, 150px); }
.att-looks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 5vw, 72px); }
.att-look { margin: 0; min-width: 0; text-align: center; }
.att-look .att-fig { position: relative; aspect-ratio: 308 / 567; max-height: 460px; margin: 0 auto; }
.att-look .att-fig::before {   /* a soft pool of light behind each figure */
  content: ''; position: absolute; left: 50%; bottom: 2%; width: 92%; height: 62%; transform: translateX(-50%);
  border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 214, 150, 0.22), rgba(255, 214, 150, 0));
}
.att-look img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  transition: opacity 0.6s ease; filter: drop-shadow(0 18px 20px rgba(40, 12, 0, 0.3));
  -webkit-user-drag: none; user-select: none;
}
.att-look figcaption { margin-top: 30px; }
.att-look .who { font: 400 0.64rem 'Space Mono', monospace; letter-spacing: 0.22em; opacity: 0.7; }
.att-look .what { font: 400 1.45rem/1.2 'Libre Caslon Display', Georgia, serif; margin-top: 12px; }
.att-look .cw { font: italic 400 0.9rem/1.55 'Libre Caslon Text', Georgia, serif; opacity: 0.8; margin-top: 10px; }

/* Pieces: four columns under a hairline */
.att-pieces { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(32px, 4vw, 56px); }
.att-group { min-width: 0; padding-top: 28px; border-top: 1px solid var(--att-line); }
.att-group h3 { margin: 0 0 36px; font: 400 0.64rem 'Space Mono', monospace; letter-spacing: 0.3em; opacity: 0.75; }
.att-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 34px; }
.att-group ul { gap: 56px; }
.att-ghost {   /* a cream product tile; the garment hangs in it, drifting, its shadow on the floor */
  position: relative; width: 100%; max-width: 240px; aspect-ratio: 1; margin: 0 0 26px; border-radius: 4px; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 38%, #fbf3e6 0, #f1e2c9 62%, #e6d1b0 100%);
  box-shadow: 0 1px 0 rgba(255, 248, 236, 0.6) inset, 0 18px 40px rgba(40, 12, 0, 0.25);
}
.att-ghost::after {
  content: ''; position: absolute; left: 26%; right: 26%; bottom: 9%; height: 6%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(70, 35, 10, 0.32), rgba(70, 35, 10, 0));
  animation: att-shadow 6s ease-in-out infinite; animation-delay: var(--d, 0s);
}
.att-ghost img {
  position: relative; z-index: 1; display: block; width: 84%; height: 84%; margin: 5% auto 0; object-fit: contain;
  transition: opacity 0.6s ease; animation: att-hover 6s ease-in-out infinite; animation-delay: var(--d, 0s);
  filter: drop-shadow(0 8px 10px rgba(70, 35, 10, 0.18)); -webkit-user-drag: none; user-select: none;
}
@keyframes att-hover { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes att-shadow { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(0.8); opacity: 0.55; } }
#switch2 { margin-top: -24px; }
.att-group li strong { display: block; margin-bottom: 10px; font: 400 1.35rem/1.15 'Libre Caslon Display', Georgia, serif; }
.att-group li span { font: italic 400 0.95rem/1.6 'Libre Caslon Text', Georgia, serif; opacity: 0.85; }

/* Feature: the SHIRT® */
.att-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(48px, 8vw, 120px); align-items: center; }
.att-feature-fig { margin: 0; text-align: center; }
.att-feature-fig .att-fig { position: relative; aspect-ratio: 308 / 567; max-height: 620px; margin: 0 auto; }
.att-feature-fig .att-fig::before {
  content: ''; position: absolute; left: 50%; bottom: 2%; width: 100%; height: 66%; transform: translateX(-50%);
  border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 214, 150, 0.26), rgba(255, 214, 150, 0));
}
.att-feature-fig img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 18px 20px rgba(40, 12, 0, 0.3)); -webkit-user-drag: none; user-select: none; }
.att-feature-fig figcaption { margin-top: 26px; font-size: 0.64rem; letter-spacing: 0.22em; opacity: 0.7; }
.att-feature-text h2 { margin: 0; font: 400 clamp(3rem, 7vw, 5.6rem)/1 'Libre Caslon Display', Georgia, serif; }
.att-feature-text h2 span { font-size: 0.32em; vertical-align: 1.5em; }
.att-feature-cw { margin: 18px 0 0; font-size: 0.7rem; letter-spacing: 0.24em; }
.att-feature-dek { max-width: 26rem; margin: 30px 0 0; font: italic 400 1.15rem/1.65 'Libre Caslon Text', Georgia, serif; opacity: 0.92; }
.att-reg { font-size: 0.32em; vertical-align: 1.5em; margin-left: 0.04em; }
.att-feature-shirt { width: 100%; max-width: 280px; aspect-ratio: 1; margin: 0 0 40px -14px; }
.att-feature-shirt img { width: 100%; height: 100%; object-fit: contain; animation: att-hover 6s ease-in-out infinite;
  filter: drop-shadow(0 22px 22px rgba(40, 12, 0, 0.32)); -webkit-user-drag: none; user-select: none; }
/* Countdown */
.att-count { display: flex; justify-content: center; gap: clamp(28px, 6vw, 80px); margin: 56px 0 0; }
.att-count div { display: flex; flex-direction: column; align-items: center; min-width: 3.2ch; }
.att-n { font: 400 clamp(3rem, 8vw, 6.4rem)/1 'Libre Caslon Display', Georgia, serif; font-variant-numeric: tabular-nums; }
.att-count small { margin-top: 18px; font-size: 0.62rem; letter-spacing: 0.3em; opacity: 0.75; }
@media (max-width: 800px) {
  .att-feature { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .att-feature-fig .att-fig { max-height: 460px; }
  .att-feature-dek, .att-feature-shirt { margin-left: auto; margin-right: auto; }
}

/* Close */
.att-soon { text-align: center; padding: 0 0 clamp(120px, 14vw, 180px); }
.att-soon .att-kicker { opacity: 0.8; }
.att-soon-big { margin: 0; font: italic 400 clamp(2.6rem, 6.6vw, 5.2rem)/1.02 'Libre Caslon Display', Georgia, serif; }
.att-soon .att-dek { margin-top: 30px; }
.att-soon .att-down { margin-top: 52px; }
.att-foot { position: relative; z-index: 2; text-align: center; font-size: 0.6rem; letter-spacing: 0.3em; padding: 48px 24px 72px; opacity: 0.7; border-top: 1px solid var(--att-line); max-width: 1120px; margin: 0 auto; }

@media (max-width: 1000px) {
  .att-colourways { grid-template-columns: minmax(0, 1fr); max-width: 420px; margin: 0 auto; }
  .att-cw { padding: 56px 0 30px; }
  .att-cw + .att-cw { border-left: 0; border-top: 1px solid var(--att-line); }
  .att-cw:first-child { padding-top: 0; }
  .att-pieces { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 72px; }
}
@media (max-width: 700px) {
  .att-main { padding: 112px 28px 32px; }
  .att-section { padding-bottom: 160px; }
  .att-looks { grid-template-columns: minmax(0, 1fr); gap: 80px; }
  .att-look .att-fig { max-height: 400px; }
  .att-pieces { grid-template-columns: minmax(0, 1fr); row-gap: 64px; }
  .att-ghost { max-width: 260px; margin-left: auto; margin-right: auto; }
  .att-group li, .att-group h3 { text-align: center; }
  .att-switch { flex-direction: column; align-items: center; gap: 18px; }
  .att-title { top: 18%; }
  .att-page .nav-burger { background: var(--att-cream); box-shadow: 0 6px 18px rgba(60, 20, 0, 0.25); }
  .att-page .nav-burger span { background: #7e3a1d; }
  .att-page .site-nav .nav-link { color: #7e3a1d; }
}
@media (prefers-reduced-motion: reduce) {
  .att-title, .att-look img, .att-ghost img { transition: none; }
  .att-ghost img, .att-ghost::after, .att-feature-shirt img { animation: none; }
}

/* Try-on links into the outfitter */
.att-try {
  display: inline-block; margin-top: 12px; color: inherit; text-decoration: underline;
  text-decoration-thickness: 1px; text-underline-offset: 5px; font-size: 0.66rem; letter-spacing: 0.2em;
  transition: opacity 0.2s, text-underline-offset 0.2s;
}
.att-try:hover, .att-try:focus-visible { opacity: 0.7; text-underline-offset: 8px; }
.att-feature-text .att-try { margin-top: 26px; }
.att-pieces .att-try { display: table; }
