/* =========================================================
   Beautiful Upgrades — site styles
   Palette and typeface carried over from the Google Sites
   version: charcoal, stone grey, lake blue, Lato.
   ========================================================= */

:root {
  --ink: #202124;          /* charcoal — header, portfolio stage */
  --ink-2: #2a2b2f;        /* raised charcoal */
  --ink-line: #3a3c41;     /* hairlines on charcoal */
  --stone: #c7c7c7;        /* stone grey (original section ground) */
  --mist: #202124;         /* page ground (dark theme, matches the portfolio) */
  --paper: #2a2b2f;        /* raised surface: forms, strips, panels */
  --line: #3a3c41;         /* hairlines */
  --text: #f3f3f3;         /* main text */
  --body: #c4c6ca;         /* paragraph text */
  --muted: #a9abb0;        /* secondary text */
  --accent: #7fb3cf;       /* light lake blue for text accents on dark */
  --field-line: #55585e;   /* form underlines and chip borders */
  --error: #f28b82;
  --on-ink: #f3f3f3;       /* text on charcoal */
  --on-ink-muted: #a9abb0; /* secondary text on charcoal */
  --blue: #1e6c93;         /* lake blue — accent band */
  --blue-deep: #17587a;
  --teal: #7fb3cf;         /* link colour */

  --font: "Lato", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1180px;
  --ease: cubic-bezier(.2, .75, .2, 1);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--mist);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

[hidden] { display: none !important; }

a { color: var(--teal); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: #cfe3ee; }

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

h1, h2, h3 { font-weight: 300; line-height: 1.15; text-wrap: balance; margin: 0; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--blue); color: #fff; padding: 10px 16px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: color-mix(in srgb, var(--ink) 94%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--ink-line);
  color: var(--on-ink);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 68px;
}

.wordmark {
  color: var(--on-ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: .34em;
  text-transform: uppercase;
  white-space: nowrap;
}
.wordmark:hover { color: #fff; }

.nav { display: flex; align-items: center; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 34px; }
.nav-list > li { position: relative; }
.nav-list a {
  color: var(--on-ink-muted);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  padding-block: 24px;
  display: inline-block;
  transition: color .25s;
}
.nav-list a:hover,
.nav-list a[aria-current="page"],
.nav-list a.is-section { color: #fff; }
.nav-list > li > a[aria-current="page"],
.nav-list > li > a.is-section { box-shadow: inset 0 -2px 0 var(--blue); }

/* Portfolio dropdown */
.subnav {
  list-style: none; margin: 0; padding: 12px 0;
  position: absolute; left: -22px; top: 100%;
  min-width: 210px;
  background: var(--ink-2);
  border: 1px solid var(--ink-line);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .25s, transform .25s var(--ease), visibility .25s;
}
.has-sub:hover .subnav,
.has-sub:focus-within .subnav { opacity: 1; visibility: visible; transform: none; }
.subnav a { display: block; padding: 9px 22px; letter-spacing: .18em; }
.subnav .sep { border-top: 1px solid var(--ink-line); margin: 8px 22px; }

.menu-toggle {
  display: none;
  background: none; border: 1px solid var(--ink-line); color: var(--on-ink);
  font: 700 12px/1 var(--font); letter-spacing: .22em; text-transform: uppercase;
  padding: 11px 14px; cursor: pointer;
}

@media (max-width: 760px) {
  .menu-toggle { display: inline-block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--ink);
    border-bottom: 1px solid var(--ink-line);
    display: none;
  }
  .nav.is-open { display: block; }
  .nav-list { flex-direction: column; gap: 0; padding: 8px var(--gutter) 20px; }
  .nav-list a { padding-block: 12px; }
  .nav-list > li > a[aria-current="page"],
  .nav-list > li > a.is-section { box-shadow: none; color: #fff; }
  .subnav {
    position: static; opacity: 1; visibility: visible; transform: none;
    background: none; border: 0; padding: 0 0 6px 16px; min-width: 0;
  }
  .subnav a { padding: 8px 0; }
  .subnav .sep { display: none; }
}

/* ---------- Portfolio stage (home) ---------- */

.stage {
  background:
    radial-gradient(ellipse 70% 60% at 50% 55%, #2c2d32 0%, transparent 70%),
    var(--ink);
  color: var(--on-ink);
  padding-block: clamp(36px, 4.5vw, 60px) clamp(56px, 7vw, 96px);
  overflow: hidden;
}
.stage-intro { text-align: center; max-width: 900px; margin: 0 auto clamp(32px, 4vw, 52px); }
.stage-intro .eyebrow { color: #7fb3cf; }
.stage-intro h1 {
  font-size: clamp(30px, 4.2vw, 50px);
  letter-spacing: .02em;
  color: #fff;
}
.stage-intro p {
  color: var(--on-ink-muted);
  margin: 16px auto 0;
  max-width: 52ch;
  font-size: 16px;
}

.fan {
  list-style: none; margin: 0 auto; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 34px);
  max-width: 1180px;
}
.fan > li { display: flex; }

.fan-card {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  width: 100%;
  text-decoration: none;
  color: var(--on-ink);
  transition: transform 1.15s var(--ease), opacity .45s ease, filter .45s ease;
}
.fan.is-fanning .fan-card { transition-delay: var(--delay, 0s); }

.fan-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 22px;
  text-align: center;
}
.fan-frame {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--ink-2);
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.7);
  outline: 1px solid rgba(255,255,255,.06);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.fan-frame img { width: 100%; height: 100%; object-fit: cover; }
.fan-blurb {
  margin-top: 22px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--on-ink-muted);
  text-align: center;
  max-width: 28ch;
}
.fan-more {
  margin-top: 10px;
  font-size: 11px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase;
  color: #7fb3cf;
}

/* Books panel: the three covers fanned like a hand of cards */
.fan-frame--books {
  position: relative;
  background:
    radial-gradient(ellipse 60% 45% at 30% 22%, rgba(150,162,176,.35) 0%, transparent 70%),
    radial-gradient(ellipse 70% 50% at 78% 38%, rgba(120,132,146,.30) 0%, transparent 70%),
    radial-gradient(ellipse 90% 60% at 50% 100%, #1f2429 0%, transparent 70%),
    linear-gradient(180deg, #56616d 0%, #3c454f 45%, #2a3037 100%);
}
.hand { position: absolute; inset: 0; }
.fan-frame .hand-card {
  position: absolute;
  left: 50%; bottom: 25%;
  width: auto; height: 50%;
  aspect-ratio: 342 / 421;
  object-fit: cover;
  border-radius: 3px;
  transform-origin: 50% 100%;
  transform: translateX(-50%) translate(var(--x, 0%), var(--y, 0%)) rotate(var(--a, 0deg));
  box-shadow: -6px 10px 22px -8px rgba(0,0,0,.65), 0 0 0 1px rgba(255,255,255,.08);
  transition: transform .7s var(--ease);
}
.hand-card:nth-child(1) { --x: -20%; --y: -1%; --a: -10deg; }
.hand-card:nth-child(2) { --x: 1%;   --y: -5%; --a: -1deg; }
.hand-card:nth-child(3) { --x: 22%;  --y: 2%;  --a: 8deg; }
.fan-card:hover .hand-card:nth-child(1), .fan-card:focus-visible .hand-card:nth-child(1) { --x: -21%; --a: -11deg; }
.fan-card:hover .hand-card:nth-child(3), .fan-card:focus-visible .hand-card:nth-child(3) { --x: 23%; --a: 9deg; }
@media (max-width: 760px) {
  .fan-frame .hand-card { height: 68%; bottom: 15%; }
}

/* Books panel, "corners out" version: a tight hand at rest that fans out
   past the frame edge on hover.
   To go back to the contained look, delete this block. */
@media (min-width: 761px) {
  .fan-frame--books { overflow: visible; }
  .fan-frame .hand-card { height: 56%; bottom: 22%; }
  .hand-card:nth-child(1) { --x: -15%; --y: -1%; --a: -8deg; }
  .hand-card:nth-child(2) { --x: 1%;   --y: -4%; --a: -1deg; }
  .hand-card:nth-child(3) { --x: 16%;  --y: 2%;  --a: 6deg; }
  .fan-card:hover .hand-card:nth-child(1), .fan-card:focus-visible .hand-card:nth-child(1) { --x: -31%; --a: -18deg; }
  .fan-card:hover .hand-card:nth-child(3), .fan-card:focus-visible .hand-card:nth-child(3) { --x: 31%; --a: 15deg; }
}

/* Hover-capable screens: reveal title + blurb on hover/focus */
@media (hover: hover) and (pointer: fine) and (min-width: 761px) {
  .fan-title, .fan-blurb, .fan-more {
    opacity: 0;
    transition: opacity .45s ease, transform .55s var(--ease), color .45s ease;
    /* keep the text on its own layer the whole time, so the browser doesn't
       re-draw it thinner (and dimmer-looking) when the hover animation ends */
    will-change: opacity, transform;
  }
  .fan-card { will-change: opacity, filter; }
  .fan-card:hover .fan-blurb, .fan-card:focus-visible .fan-blurb { color: #d4d6da; }
  .fan-title { transform: translateY(10px); }
  .fan-blurb, .fan-more { transform: translateY(-10px); }

  .fan-card:hover .fan-title, .fan-card:focus-visible .fan-title,
  .fan-card:hover .fan-blurb, .fan-card:focus-visible .fan-blurb,
  .fan-card:hover .fan-more,  .fan-card:focus-visible .fan-more {
    opacity: 1; transform: none;
  }
  .fan-card:hover .fan-frame, .fan-card:focus-visible .fan-frame {
    transform: scale(1.08);
    box-shadow: 0 30px 60px -20px rgba(0,0,0,.85);
  }
  .fan-card:focus-visible { outline: none; }
  .fan-card:focus-visible .fan-frame { outline: 2px solid #7fb3cf; outline-offset: 4px; }

  /* quiet the other three while one is in focus */
  .fan:hover .fan-card:not(:hover) { opacity: .45; filter: saturate(.6); }
}

/* Stacked state before the fan-out (set by main.js) */
.fan.is-stacked .fan-card {
  transform: translate(var(--dx, 0px), var(--dy, 0px)) rotate(var(--rot, 0deg)) scale(.92);
  transition: none;
}
.fan.is-stacked .fan-title,
.fan.is-stacked .fan-blurb,
.fan.is-stacked .fan-more { opacity: 0; }

/* Tablet: 2 x 2 */
@media (max-width: 1000px) and (min-width: 761px) {
  .fan { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 640px; row-gap: 48px; }
}

/* Phone: stacked cards, text always shown, gentle staggered fade-up */
@media (max-width: 760px) {
  .fan { grid-template-columns: 1fr; gap: 44px; max-width: 520px; }
  .fan-frame { aspect-ratio: 4 / 3; }
  .fan-title { margin-bottom: 14px; }
  .fan-blurb { margin-top: 14px; }
}
/* Opening: the four pictures are there from the start; a subtle glow brightens
   for 1s and fades for 1s around each frame. No fill, so hover effects are untouched. */
.fan .fan-frame { animation: tileGlow 2s ease-in-out .3s; }
@keyframes tileGlow {
  0%, 100% { box-shadow: 0 18px 40px -18px rgba(0,0,0,.7), 0 0 0 0 rgba(127,179,207,0); }
  50%      { box-shadow: 0 18px 40px -18px rgba(0,0,0,.7), 0 0 30px 3px rgba(127,179,207,.26); }
}


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-delay: 0s !important; }
  .fan.is-stacked .fan-card { transform: none; }
}

/* ---------- Collection strip (sub-pages) ---------- */

.collections {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.collections ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 4px clamp(18px, 4vw, 48px);
}
.collections a {
  display: inline-block;
  padding-block: 16px;
  font-size: 12px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  border-bottom: 2px solid transparent;
}
.collections a:hover { color: var(--text); }
.collections a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }
@media (max-width: 520px) {
  .collections ul { gap: 0 16px; }
  .collections a { letter-spacing: .14em; font-size: 11px; padding-block: 14px; }
}

/* ---------- Banner hero (sub-pages, about) ---------- */

.banner {
  position: relative;
  min-height: clamp(260px, 38vw, 440px);
  display: grid; place-items: end start;
  color: #fff;
  background: var(--ink);
  overflow: hidden;
}
.banner img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: var(--focus, 50% 50%);
}
.banner::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,21,23,.05) 30%, rgba(20,21,23,.72) 100%);
}
.banner .wrap { position: relative; z-index: 1; padding-block: clamp(28px, 4vw, 48px); }
.banner .eyebrow { color: #cfe3ee; }
.banner h1 { font-size: clamp(38px, 6.4vw, 72px); letter-spacing: .03em; }
.banner p { margin: 10px 0 0; max-width: 56ch; color: #e6e6e6; font-size: 17px; }
@media (max-width: 760px) {
  .banner::after { background: linear-gradient(180deg, rgba(20,21,23,.15) 0%, rgba(20,21,23,.8) 100%); }
}

/* ---------- Content sections ---------- */

.section { padding-block: clamp(48px, 7vw, 88px); }
.section + .section { padding-top: 0; }

.lede { font-size: clamp(18px, 1.8vw, 21px); font-weight: 300; max-width: 60ch; margin: 0; }
.note { color: var(--muted); font-size: 14.5px; margin: 14px 0 0; }

.group-title {
  font-size: 13px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 14px; border-bottom: 1px solid var(--line);
  margin: 0 0 8px;
}

/* Catalogue list — name, a quiet price line, a short description */
.catalogue { list-style: none; margin: 0; padding: 0; max-width: 940px; }
.item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 32px;
  padding-block: 30px;
  border-bottom: 1px solid var(--line);
}
.item h2, .item h3 { font-size: clamp(22px, 2.4vw, 28px); letter-spacing: .01em; color: var(--text); }
.item .price {
  font-size: 12.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent); white-space: nowrap; align-self: baseline; padding-top: 6px;
}
.item p { grid-column: 1 / -1; margin: 4px 0 0; max-width: 66ch; color: var(--body); }
.item .links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 8px; }
.item .links a {
  font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
/* "Inquire" link on each item: opens the contact form with that item chosen */
.item .links a {
  border-bottom-color: color-mix(in srgb, currentColor 40%, transparent);
  transition: color .3s ease, border-color .3s ease;
}
.item .links a:hover, .item .links a:focus-visible { color: #cfe3ee; border-bottom-color: #cfe3ee; }
.item .links a.inquire { color: var(--text); }
.item .links a.inquire:hover, .item .links a.inquire:focus-visible { color: #cfe3ee; }
.item .links a.inquire::after {
  content: "\2192"; display: inline-block; margin-left: .45em;
  transition: transform .45s var(--ease);
}
.item .links a.inquire:hover::after, .item .links a.inquire:focus-visible::after { transform: translateX(6px); }
/* Optional photo on an item: add class="item has-media" and a <figure> first */
.item.has-media { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) auto; align-items: start; }
.item.has-media figure { grid-row: span 3; margin: 0; }
.item.has-media p, .item.has-media .links { grid-column: 2 / -1; }
@media (max-width: 760px) {
  .item.has-media { grid-template-columns: minmax(0, 1fr) auto; }
  .item.has-media figure { grid-column: 1 / -1; grid-row: auto; }
  .item.has-media p, .item.has-media .links { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .item { grid-template-columns: 1fr; }
  .item .price { padding-top: 0; }
}

/* Book entries: small cover beside the text */
.item.has-media.book { grid-template-columns: 150px minmax(0, 1fr) auto; column-gap: 36px; }
.item.book figure img { width: 100%; box-shadow: 0 12px 26px -14px rgba(0,0,0,.5); }
@media (max-width: 760px) {
  .item.has-media.book { grid-template-columns: minmax(0, 1fr) auto; }
  .item.book figure { max-width: 170px; margin-bottom: 14px; }
}

.two-up { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); }
.two-up img { width: 100%; aspect-ratio: 1; object-fit: cover; }
@media (max-width: 600px) { .two-up { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.options { list-style: none; margin: 18px 0 0; padding: 0; }
.options li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.options li:first-child { border-top: 1px solid var(--line); }

.button {
  display: inline-block;
  margin-top: 28px;
  padding: 15px 28px;
  background: transparent; color: #fff; text-decoration: none;
  border: 1px solid rgba(243,243,243,.7);
  font-size: 12px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase;
  transition: border-color .4s ease, box-shadow .5s ease, color .4s ease;
}
.button:hover, .button:focus-visible {
  border-color: var(--accent); color: #cfe3ee;
  box-shadow: 0 0 0 4px rgba(127,179,207,.12), 0 0 28px rgba(127,179,207,.18);
}

/* About */
.craft-list { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.craft-list li {
  border: 1px solid var(--line); background: var(--paper);
  padding: 7px 14px; font-size: 14px; letter-spacing: .04em;
}
.seal {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: center;
  background: var(--paper); border: 1px solid var(--line); color: var(--on-ink); padding: clamp(24px, 4vw, 40px);
}
.seal .mark {
  width: 84px; height: 84px; border-radius: 50%;
  border: 1px solid #7fb3cf; display: grid; place-items: center; text-align: center;
  font-size: 10px; font-weight: 700; letter-spacing: .18em; line-height: 1.35; color: #cfe3ee;
}
.seal h2 { font-size: clamp(22px, 2.6vw, 30px); color: #fff; }
.seal p { margin: 8px 0 0; color: var(--on-ink-muted); max-width: 62ch; }
@media (max-width: 520px) { .seal { grid-template-columns: 1fr; } }

.prose h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 14px; }
.prose p { max-width: 64ch; margin: 0 0 16px; color: var(--body); }

/* Contact */
.contact-head { padding-block: clamp(36px, 4.5vw, 60px) 28px; text-align: center; }
/* Matches the Portfolio page's heading: blue label, white title, quiet subtitle */
.contact-head h1 { font-size: clamp(30px, 4.2vw, 50px); letter-spacing: .02em; color: #fff; }
.contact-head p { margin: 16px auto 0; max-width: 52ch; font-size: 16px; color: var(--on-ink-muted); }
.contact-head .eyebrow { margin: 16px auto 0; font-size: 16px; color: var(--accent); }
.form-frame {
  max-width: 760px; margin: 0 auto;
  background: var(--paper); border: 1px solid var(--line);
}
.form-frame iframe { display: block; width: 100%; height: 2300px; border: 0; }
@media (max-width: 600px) { .form-frame iframe { height: 2750px; } }
.form-fallback { text-align: center; font-size: 14px; color: var(--muted); margin: 18px 0 0; }

/* ---------- "Contact Me" footer band ---------- */

.contact-band {
  background: var(--blue);
  color: #fff;
  text-align: center;
}
.contact-band a {
  display: block;
  color: #fff; text-decoration: none;
  padding-block: clamp(64px, 10vw, 128px);
  background: linear-gradient(120deg, var(--blue) 0%, var(--blue) 40%, #2a82ad 50%, var(--blue) 60%, var(--blue) 100%) 100% 0 / 250% 100%;
  transition: background-position 1.2s var(--ease);
}
.contact-band a:hover, .contact-band a:focus-visible { background-position: 0 0; }
.contact-band .eyebrow { color: #cfe3ee; }
.contact-band .big {
  display: block;
  font-size: clamp(48px, 10vw, 128px);
  font-weight: 300;
  letter-spacing: .04em;
  line-height: 1;
}
.contact-band .big .arrow {
  display: inline-block; font-size: .5em; vertical-align: middle; margin-left: .25em;
  transition: transform .45s var(--ease);
}
.contact-band a:hover .arrow { transform: translateX(.25em); }
.contact-band .sub { display: block; margin-top: 20px; font-size: 16px; color: #e3eef4; }

.site-footer {
  background: var(--ink); color: var(--on-ink-muted);
  border-top: 1px solid var(--line);
  font-size: 13.5px;
}
.site-footer .wrap {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 14px 32px; padding-block: 28px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { color: var(--on-ink-muted); text-decoration: none; }
.site-footer a:hover { color: #fff; }

/* ---------- Custom request form (sends to the Google Form) ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  padding-bottom: clamp(48px, 7vw, 88px);
}
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; } }

.request-form {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: clamp(24px, 4vw, 48px);
  display: grid;
  gap: 30px;
}
.field { display: grid; gap: 8px; align-content: start; margin: 0; padding: 0; border: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }

.field > label, .field > legend {
  font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--text); padding: 0; margin-bottom: 2px;
}
.req { color: var(--accent); }
.request-form input[type="text"],
.request-form input[type="email"],
.request-form textarea {
  width: 100%;
  font: 400 16px/1.5 var(--font);
  color: var(--text);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--field-line);
  border-radius: 0;
  padding: 8px 0 10px;
  transition: border-color .25s, box-shadow .25s;
}
.request-form textarea { resize: vertical; min-height: 3.2em; }
.request-form input:focus, .request-form textarea:focus {
  outline: none; border-bottom-color: var(--accent); box-shadow: 0 1px 0 var(--accent);
}
.request-form ::placeholder { color: #7d8187; }
.request-form [aria-invalid="true"] { border-bottom-color: var(--error); }
.hint { margin: 0; font-size: 13.5px; color: var(--muted); }
.field-error { margin: 0; font-size: 13.5px; color: var(--error); }

.chip-groups { display: grid; gap: 18px; margin-top: 6px; }
.chip-label { margin: 0 0 8px; font-size: 13.5px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--field-line);
  font-size: 14px; letter-spacing: .02em;
  color: var(--text); background: transparent;
  transition: background .3s ease, border-color .3s ease, color .3s ease, box-shadow .45s ease;
}
/* Hover: soft blue glow. Checked: filled with the lake blue */
.chip:hover span {
  border-color: var(--accent); color: #fff;
  box-shadow: 0 0 0 3px rgba(127,179,207,.16), 0 0 22px rgba(127,179,207,.4);
}
.chip input:checked + span { background: var(--blue); border-color: var(--accent); color: #fff; }
.chip:hover input:checked + span { background: #237aa6; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.form-actions .button { margin-top: 0; border: 0; cursor: pointer; font-family: var(--font); }
.form-actions .button[disabled] { opacity: .6; cursor: wait; }
.form-status { margin: 0; font-size: 14.5px; color: var(--muted); }
.form-status.is-error { color: var(--error); }

.how-it-works p { margin: 0 0 12px; color: var(--body); font-size: 15.5px; }
.how-it-works h3 {
  font-size: 18px; font-weight: 400; margin: 22px 0 8px; color: var(--text);
}
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li {
  counter-increment: step;
  display: grid; grid-template-columns: 30px 1fr; align-items: baseline;
  padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15.5px;
}
.steps li::before {
  content: counter(step);
  font-size: 12px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums;
}

.thank-you { text-align: center; padding-block: 24px clamp(64px, 9vw, 112px); }
.thank-you h2 { font-size: clamp(34px, 5vw, 52px); }
.thank-you p { max-width: 48ch; margin: 14px auto 0; color: var(--muted); }
.thank-you:focus { outline: none; }

/* Books page header: the fanned covers instead of the flat photo */
.book-hero { justify-self: center; width: 100%; max-width: 360px; }

/* ---------- Bento Color Studio page ---------- */
.studio-head { padding-block: clamp(36px, 5vw, 60px) clamp(22px, 3vw, 32px); }
.studio-head .eyebrow a { color: inherit; text-decoration: none; }
.studio-head .eyebrow a:hover { color: #cfe3ee; }
.studio-head h1 { font-size: clamp(34px, 5.4vw, 60px); letter-spacing: .02em; }
.studio-head .lede { margin-top: 14px; color: var(--body); }
.beta {
  display: inline-block; vertical-align: middle;
  font-size: 11px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase;
  color: var(--accent); border: 1px solid var(--accent); padding: 5px 9px 4px; margin-left: 10px;
  position: relative; top: -.35em;
}
.studio-frame-wrap { padding-block: clamp(20px, 3vw, 32px) 0; }
.studio-frame { display: block; width: 100%; height: 960px; border: 0; background: var(--ink); }
.studio-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.studio-links .button { margin-top: 0; }

/* About page heading: set as a large label, as on the design board */
.about-head { padding-bottom: 0; }
.about-title {
  font-size: 16px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase;
  color: var(--accent); line-height: 1.65; font-family: var(--font);
}
.about-head + .section { padding-top: clamp(28px, 4vw, 48px); }

/* Bento Color Studio button beside the Bento Box titles */
.item-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 15px 8px 11px;
  border: 1px solid var(--accent); border-radius: 999px;
  background: rgba(127,179,207,.10); color: #cfe3ee; text-decoration: none;
  font-size: 11.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  transition: box-shadow .5s ease, background .4s ease, color .3s ease;
}
.pill:hover, .pill:focus-visible {
  background: rgba(127,179,207,.18); color: #fff;
  box-shadow: 0 0 0 4px rgba(127,179,207,.12), 0 0 24px rgba(127,179,207,.22);
}
.pill .tag { font-size: 9.5px; letter-spacing: .2em; padding: 3px 6px 2px; border-radius: 999px; background: var(--accent); color: var(--ink); }

/* Item photos: small 4:3 photo beside a catalogue item; click opens the gallery */
.item.has-photo {
  grid-template-columns: 240px minmax(0, 1fr) auto;
  grid-template-rows: auto auto 1fr;
  column-gap: 36px; align-items: start;
}
.item.has-photo .item-photo { grid-row: 1 / span 3; margin: 0; }
.item.has-photo p, .item.has-photo .links { grid-column: 2 / -1; }
.item-photo a {
  display: block; position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  border: 1px solid var(--line); background: var(--paper); cursor: zoom-in;
}
.item-photo img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease), filter .6s ease;
}
.item-photo a:hover img, .item-photo a:focus-visible img { transform: scale(1.06); filter: brightness(1.08); }
.item-photo a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.item-photo .count {
  position: absolute; right: 8px; bottom: 8px;
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px 3px;
  border-radius: 999px; background: rgba(20,21,23,.72);
  font-size: 10.5px; font-weight: 700; letter-spacing: .14em; color: #e6e6e6;
}
@media (max-width: 760px) {
  .item.has-photo { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: none; }
  .item.has-photo .item-photo { grid-column: 1 / -1; grid-row: auto; margin-bottom: 14px; }
  .item.has-photo p, .item.has-photo .links { grid-column: 1 / -1; }
}
@media (max-width: 520px) { .item.has-photo { grid-template-columns: 1fr; } }

/* Photo gallery (lightbox) */
body.lb-lock { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; flex-direction: column;
  padding: 18px clamp(16px, 4vw, 48px) 20px;
  background: rgba(12,13,15,.95);
  opacity: 0; transition: opacity .35s ease;
}
.lightbox.is-open { opacity: 1; }
.lb-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.lb-title { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.lb-count { margin-left: 14px; color: #6f7277; }
.lb-close {
  width: 44px; height: 44px; border: 0; background: none; cursor: pointer;
  color: var(--text); font-size: 22px; line-height: 1; transition: color .3s;
}
.lb-close:hover, .lb-close:focus-visible { color: #cfe3ee; }
.lb-stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 14px 68px; }
.lb-stage img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.9);
  transition: opacity .3s ease;
}
.lb-stage img.is-loading { opacity: 0; }
.lb-nav {
  position: absolute; top: 50%; width: 48px; height: 48px; margin-top: -24px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--field-line); border-radius: 50%; background: rgba(32,33,36,.6);
  color: var(--text); font-size: 18px; cursor: pointer;
  transition: border-color .3s, background .3s, box-shadow .45s;
}
.lb-nav:hover, .lb-nav:focus-visible {
  border-color: var(--accent); background: rgba(127,179,207,.14);
  box-shadow: 0 0 18px rgba(127,179,207,.22);
}
.lb-prev { left: 0; } .lb-next { right: 0; }
.lb-thumbs { display: flex; justify-content: center; gap: 10px; overflow-x: auto; padding-top: 12px; }
.lb-thumbs button { flex: none; padding: 0; border: 1px solid transparent; background: none; cursor: pointer; opacity: .45; transition: opacity .3s, border-color .3s; }
.lb-thumbs button:hover, .lb-thumbs button:focus-visible { opacity: .85; }
.lb-thumbs button[aria-current="true"] { opacity: 1; border-color: var(--accent); }
.lb-thumbs img { display: block; width: 78px; height: 58px; object-fit: cover; }
.lightbox.single .lb-nav, .lightbox.single .lb-thumbs, .lightbox.single .lb-count { display: none; }
@media (max-width: 600px) {
  .lb-stage { padding: 10px 0; }
  .lb-nav { display: none; }
  .lb-thumbs img { width: 56px; height: 42px; }
}

/* Table Sets carousel: slow cross-fade with a gentle drift */
.carousel { margin: 0; }
.carousel-frame {
  position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden;
  background: var(--paper); cursor: zoom-in;
  box-shadow: 0 30px 60px -34px rgba(0,0,0,.85);
}
.carousel-frame img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.05);
  transition: opacity 1.8s ease-in-out, transform 8s linear;
}
.carousel-frame img.is-active { opacity: 1; transform: scale(1); }
.carousel-frame:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.carousel-dots { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }
.carousel-dots button {
  width: 8px; height: 8px; padding: 0; border: 1px solid var(--muted); border-radius: 999px;
  background: transparent; cursor: pointer;
  transition: width .5s var(--ease), background .4s ease, border-color .4s ease, box-shadow .4s ease;
}
.carousel-dots button:hover, .carousel-dots button:focus-visible { border-color: var(--accent); box-shadow: 0 0 10px rgba(127,179,207,.4); }
.carousel-dots button[aria-current="true"] { width: 24px; background: var(--accent); border-color: var(--accent); }
.carousel-dots:has(button:only-child) { display: none; }
@media (prefers-reduced-motion: reduce) {
  .carousel-frame img { transition: opacity .6s ease; transform: none; }
}

/* ---------- Final polish ---------- */
/* About: small label above a large title, as on Contact */
.about-title { margin: 0; }
.about-h1 { margin-top: 10px; font-size: clamp(30px, 4.2vw, 50px); letter-spacing: .02em; color: #fff; }

/* USTA logo on a light tile (the logo is dark navy, so it needs a light ground) */
.seal-logo {
  display: grid; place-items: center;
  width: 124px; padding: 14px; border-radius: 6px;
  background: #f3f3f3; box-shadow: 0 12px 28px -16px rgba(0,0,0,.8);
}
.seal-logo img { display: block; width: 96px; height: auto; }
@media (max-width: 520px) { .seal-logo { width: 104px; } .seal-logo img { width: 76px; } }

/* Carousel dots: same look, larger tap area */
.carousel-dots { gap: 0; margin-top: 10px; }
.carousel-dots button {
  position: relative; width: 24px; height: 24px; padding: 0;
  border: 0; border-radius: 0; background: none; box-shadow: none;
}
.carousel-dots button::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 8px; height: 8px; transform: translate(-50%, -50%);
  border: 1px solid var(--muted); border-radius: 999px; box-sizing: border-box;
  transition: width .5s var(--ease), background .4s ease, border-color .4s ease, box-shadow .4s ease;
}
.carousel-dots button:hover, .carousel-dots button:focus-visible { box-shadow: none; }
.carousel-dots button:hover::before, .carousel-dots button:focus-visible::before { border-color: var(--accent); box-shadow: 0 0 10px rgba(127,179,207,.4); }
.carousel-dots button[aria-current="true"] { width: 36px; background: none; }
.carousel-dots button[aria-current="true"]::before { width: 24px; background: var(--accent); border-color: var(--accent); }
.carousel-dots button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

/* Phones: tighter wordmark so it doesn't crowd the Menu button */
@media (max-width: 420px) { .wordmark { font-size: 13px; letter-spacing: .22em; } }

/* Menu: Bento Color Studio nested under Travel Sets */
.subnav { min-width: 250px; }
.subnav-sub { list-style: none; margin: -4px 0 4px; padding: 0; }
.subnav .subnav-sub a {
  position: relative; padding: 6px 22px 6px 40px;
  font-size: 11px; letter-spacing: .16em; white-space: nowrap; color: var(--muted);
}
.subnav .subnav-sub a::before {
  content: ""; position: absolute; left: 24px; top: 50%;
  width: 8px; height: 1px; background: currentColor; opacity: .6;
}
.subnav .subnav-sub a:hover, .subnav .subnav-sub a:focus-visible,
.subnav .subnav-sub a[aria-current="page"] { color: #cfe3ee; }
@media (max-width: 760px) {
  .subnav { min-width: 0; }
  .subnav .subnav-sub a { padding: 6px 0 6px 18px; }
  .subnav .subnav-sub a::before { left: 2px; }
}

/* ---------- Design Tools ---------- */
/* Menu: Design Tools dropdown sits beside Portfolio and uses the same look */
.nav-list .has-sub + .has-sub .subnav { min-width: 240px; }

/* Tool cards: picture on the left, text on the right; used on the Design Tools page
   and on the collection pages each tool belongs to */
.group-sub { margin: 0 0 22px; color: var(--muted); font-size: 15px; }
.tool-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 24px; max-width: 940px; }
.group-sub + .tool-list { margin-top: 0; }
.tool-card {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  background: var(--paper); border: 1px solid var(--line);
  color: var(--text); text-decoration: none; overflow: hidden;
  transition: border-color .4s ease, box-shadow .5s ease;
}
.tool-card:hover, .tool-card:focus-visible {
  color: var(--text); border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(127,179,207,.10), 0 0 28px rgba(127,179,207,.14);
}
.tool-card:focus-visible { outline: none; }
.tool-media { display: block; position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink); }
.tool-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s ease; }
.tool-media--drawing { background: radial-gradient(120% 95% at 50% 25%, #3a3c42 0%, #2a2b30 55%, #1f2023 100%); }
.tool-media svg { display: block; width: 100%; height: 100%; padding: 3% 6%; transition: transform 1.2s var(--ease); }
.tool-card:hover .tool-media img, .tool-card:focus-visible .tool-media img { transform: scale(1.05); filter: brightness(1.06); }
.tool-card:hover .tool-media svg, .tool-card:focus-visible .tool-media svg { transform: scale(1.03); }
.tool-body { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: clamp(22px, 3.2vw, 38px); }
.tool-kicker {
  display: flex; align-items: center; gap: 10px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--accent);
}
.tool-kicker .tag { font-size: 9.5px; letter-spacing: .2em; padding: 3px 7px 2px; border-radius: 999px; background: var(--accent); color: var(--ink); }
.tool-title { font-size: clamp(24px, 2.6vw, 30px); font-weight: 300; line-height: 1.15; letter-spacing: .01em; }
.tool-text { color: var(--body); font-size: 16px; line-height: 1.6; max-width: 46ch; }
.tool-more { margin-top: 6px; font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.tool-more::after { content: "\2192"; display: inline-block; margin-left: .45em; transition: transform .45s var(--ease); }
.tool-card:hover .tool-more, .tool-card:focus-visible .tool-more { color: #cfe3ee; }
.tool-card:hover .tool-more::after, .tool-card:focus-visible .tool-more::after { transform: translateX(6px); }
@media (max-width: 700px) {
  .tool-card { grid-template-columns: 1fr; }
}
