/* Colors of Dug — prototype stylesheet
   Fonts (Rock Salt + DM Sans) are loaded from Google Fonts in each page's <head>. */

:root {
  --cream: #F4F2D8;
  --cream-2: #ECE9C6;
  --paper: #FBFAEC;
  --ink: #1D1E20;
  --ink-soft: #494A4E;
  /* Brand palette */
  --mignonette: #DDD967;
  --clownfish: #DF7557;
  --blue: #BCCCF0;
  --evergreen: #085361;
  --brand-fuchsia: #9B009B;

  --teal: var(--evergreen);
  --teal-deep: #053C47;
  --coral: var(--clownfish);
  --coral-deep: #A83E24;   /* darker clownfish, for small text on cream (AA contrast) */
  --fuchsia: var(--brand-fuchsia);
  --orange: var(--clownfish);
  --grad: linear-gradient(100deg, var(--brand-fuchsia), var(--clownfish));
  --radius: 18px;
  --maxw: 1200px;
  --gutter: clamp(18px, 4vw, 40px);
  --display: "Rock Salt", "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--coral-deep); text-underline-offset: 3px; }
a:hover { color: var(--teal); }
h1, h2, h3 { line-height: 1.2; margin: 0; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--coral-deep); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--cream); padding: .6em 1em; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 242, 216, .9);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid rgba(29, 30, 32, .08);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 92px; padding-block: 6px; }

.wordmark { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.wordmark .logo { height: 78px; width: auto; display: block; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.wordmark:hover .logo { transform: scale(1.04) rotate(-2deg); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .grad-text {
    background: var(--grad);
    -webkit-background-clip: text; background-clip: text;
    color: transparent; -webkit-text-fill-color: transparent;
  }
}

.site-nav ul { display: flex; gap: clamp(14px, 2vw, 28px); list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: inline-block; padding: 8px 2px 6px;
  font-size: .78rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--teal); text-decoration: none;
  background: var(--grad) left bottom / 0 2px no-repeat;
  transition: background-size .25s ease, color .2s;
}
.site-nav a:hover { background-size: 100% 2px; color: var(--coral-deep); }
.site-nav a[aria-current="page"] { background-size: 100% 2px; color: var(--coral-deep); }

/* Portfolio drop-down */
.site-nav .has-sub { position: relative; display: flex; align-items: center; gap: 2px; }
.sub-toggle { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 30px; padding: 0; background: none; border: 0; cursor: pointer; border-radius: 8px; }
.sub-toggle .caret { width: 0; height: 0; border-left: 4.5px solid transparent; border-right: 4.5px solid transparent; border-top: 5.5px solid var(--teal); transition: transform .2s; }
.sub-toggle:hover .caret { border-top-color: var(--coral-deep); }
.has-sub[data-open="true"] .sub-toggle .caret { transform: rotate(180deg); }
.site-nav .has-sub.is-current > a { background-size: 100% 2px; color: var(--coral-deep); }
.site-nav .submenu {
  display: none; position: absolute; top: 100%; left: -14px; z-index: 60; min-width: 230px;
  margin: 0; padding: 8px; list-style: none; flex-direction: column; gap: 0;
  background: var(--cream); border: 1px solid rgba(29,30,32,.12); border-radius: 16px;
  box-shadow: 0 22px 40px -18px rgba(29,30,32,.45);
}
.site-nav .submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.site-nav .has-sub:hover > .submenu, .site-nav .has-sub[data-open="true"] > .submenu { display: flex; }
.site-nav .submenu a { display: block; padding: 11px 14px; border-radius: 10px; background-image: none; letter-spacing: .1em; }
.site-nav .submenu a:hover, .site-nav .submenu a:focus-visible { background: rgba(8,83,97,.09); color: var(--coral-deep); }
.site-nav .submenu a[aria-current="page"] { color: var(--coral-deep); background: rgba(223,117,87,.14); }

.nav-toggle {
  display: none; align-items: center; gap: 10px;
  background: none; border: 1.5px solid var(--ink); color: var(--ink);
  border-radius: 999px; padding: .5em 1em; font: 700 .78rem/1 var(--sans);
  letter-spacing: .12em; text-transform: uppercase; cursor: pointer;
}
.nav-toggle .bars { width: 16px; height: 10px; background: linear-gradient(var(--ink) 0 0) 0 0 / 100% 2px no-repeat, linear-gradient(var(--ink) 0 0) 0 100% / 100% 2px no-repeat; }

@media (max-width: 940px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--cream); border-bottom: 1px solid rgba(29,30,32,.12); display: none; }
  .site-nav[data-open="true"] { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 8px var(--gutter) 20px; }
  .site-nav a { display: block; padding: 14px 0; font-size: .9rem; border-bottom: 1px solid rgba(29,30,32,.08); background-image: none; }
  .site-nav .has-sub { display: block; }
  .sub-toggle { display: none; }
  .site-nav .submenu, .site-nav .has-sub:hover > .submenu { display: block; position: static; min-width: 0; padding: 0 0 0 18px; border: 0; border-radius: 0; box-shadow: none; background: none; }
  .site-nav .submenu::before { display: none; }
  .site-nav .submenu a { padding: 12px 0; border-radius: 0; font-size: .82rem; border-bottom: 1px solid rgba(29,30,32,.06); }
  .site-nav .submenu a:hover, .site-nav .submenu a:focus-visible { background: none; }
  .site-nav .submenu a[aria-current="page"] { background: none; }
  .wordmark .logo { height: 64px; }
  .site-header .wrap { min-height: 80px; }
}

/* ---------- Buttons & chips ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .9em 1.5em; border-radius: 999px; border: 2px solid transparent;
  font: 700 .95rem/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--ink); color: var(--cream); }
.btn-primary:hover { background: var(--coral-deep); color: #fff; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btn-coral { background: var(--coral); color: var(--ink); }
.btn-coral:hover { background: #fff; color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.chips li { padding: .45em 1em; border-radius: 999px; font-size: .9rem; font-weight: 500; background: rgba(29,30,32,.07); }
.on-dark .chips li { background: rgba(255,255,255,.14); }

.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--teal); margin: 0 0 .8em; }

/* ---------- Art placeholders / images ---------- */
.ph {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: var(--ar, 1);
  background: linear-gradient(150deg, var(--tone, #e2d3a0), var(--tone2, var(--tone, #e2d3a0)));
  color: var(--on, var(--ink));
}
.ph::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 28% 22%, rgba(255,255,255,.35), transparent 55%);
}
.ph-word {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 1em;
  font-family: var(--display); font-size: clamp(1.1rem, 2.4vw, 1.7rem); line-height: 1.5; opacity: .85;
}
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph.has-img { aspect-ratio: auto; background: var(--cream-2); }
.ph.has-img::before, .ph.has-img .ph-word { display: none; }
.ph.has-img img { position: static; height: auto; object-fit: contain; }
.ph.real::before { display: none; }
.ph.real img { position: static; width: 100%; height: auto; display: block; }

/* ---------- Hero ---------- */
.hero { padding: clamp(36px, 7vw, 92px) 0 clamp(36px, 6vw, 72px); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.greet { display: grid; justify-items: end; width: fit-content; margin-bottom: 1.1em; }
.hero-hello, .hero h1 {
  font-family: var(--display); font-weight: 400; color: var(--coral-deep);
  font-size: clamp(2.2rem, 6vw, 4rem); line-height: 1.35; margin: 0; padding: 0;
}
.hero-hello { justify-self: start; }
.hero-kicker { margin: 0 0 1.4em; }
.lead { font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.55; max-width: 32ch; color: var(--ink); }
.hero-art {
  width: 100%; max-width: 440px; justify-self: center; padding: 8px; border-radius: 30px; background: var(--paper);
  box-shadow: 0 30px 60px -30px rgba(29,30,32,.5), 0 0 0 1px rgba(29,30,32,.05);
}
.hero-photo { display: block; overflow: hidden; border-radius: 22px; background: var(--cream-2); }
.hero-photo img { display: block; width: 100%; height: auto; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.hero-photo:hover img { transform: scale(1.04); }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { max-width: 380px; justify-self: start; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(36px, 6vw, 84px) 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(20px, 3vw, 36px); }
.section-title { font-family: var(--display); font-weight: 400; font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1.4; color: var(--teal); }
.section-note { color: var(--ink-soft); max-width: 46ch; margin: 0; }

/* Collection tiles (home) */
.collections { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(14px, 2vw, 24px); }
.tile {
  position: relative; display: block; min-height: clamp(300px, 34vw, 430px);
  border-radius: var(--radius); overflow: hidden; isolation: isolate;
  color: #fff; text-decoration: none;
  box-shadow: 0 20px 40px -28px rgba(29,30,32,.6);
}
.collection { grid-column: span 12; display: grid; gap: 12px; align-content: start; }
@media (min-width: 761px) {
  .collection:nth-child(1), .collection:nth-child(4) { grid-column: span 7; }
  .collection:nth-child(2), .collection:nth-child(3) { grid-column: span 5; }
}
.tile-badge {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  background: rgba(255,255,255,.94); color: var(--ink);
  font-size: .78rem; font-weight: 700; letter-spacing: .06em; padding: .5em 1em; border-radius: 999px;
  box-shadow: 0 6px 16px -8px rgba(0,0,0,.5);
}
/* Row of thumbnails under each collection: shows there is more, no clicking required */
.peek { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.peek li { flex: 1 1 0; min-width: 0; }
.peek li.peek-more { flex: 1.4 1 0; }
.peek .thumb { display: block; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 20px -14px rgba(29,30,32,.6); transition: transform .25s; }
.peek .thumb:hover { transform: translateY(-4px); }
.peek .ph, .peek .ph.has-img { aspect-ratio: auto; height: clamp(62px, 7vw, 92px); }
.peek .ph.has-img img { position: absolute; height: 100%; object-fit: cover; }
.peek .ph-word { display: none; }
.peek .ph.real img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.peek-more a {
  height: 100%; display: grid; place-items: center; text-align: center; padding: .4em;
  background: var(--ink); color: var(--cream); border-radius: 12px;
  font-weight: 700; font-size: .85rem; line-height: 1.25; text-decoration: none; transition: background .2s;
}
.peek-more a:hover { background: var(--coral-deep); color: #fff; }
@media (max-width: 760px) { .peek li.peek-more { flex: 1.9 1 0; } .peek-more a { font-size: .8rem; } }
.tile .ph, .tile .ph.has-img { position: absolute; inset: 0; aspect-ratio: auto; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.tile .ph.has-img img { position: absolute; height: 100%; object-fit: cover; }
.tile .ph-word { display: none; }
.tile .ph.real img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile:hover .ph { transform: scale(1.04); }
.tile-cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 56px 26px 24px; display: flex; align-items: end; justify-content: space-between; gap: 16px;
  background: linear-gradient(to top, rgba(8,18,22,.78), rgba(8,18,22,0));
}
.tile h3 { font-family: var(--display); font-weight: 400; font-size: clamp(1.25rem, 2.4vw, 1.7rem); line-height: 1.4; }
.tile p { margin: .2em 0 0; font-size: .95rem; opacity: .92; }
.tile .arrow {
  flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: var(--ink); font-size: 1.2rem; transition: transform .25s;
}
.tile:hover .arrow { transform: translateX(4px) rotate(-8deg); }

/* Emotion swatch strip */
.swatches { display: grid; grid-template-columns: repeat(8, 1fr); gap: clamp(8px, 1.6vw, 20px); list-style: none; margin: 0; padding: 0; }
.swatches a { display: grid; gap: 10px; justify-items: center; text-decoration: none; color: var(--ink); font-weight: 700; font-size: .9rem; }
.swatches .dot {
  width: 100%; max-width: 92px; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.55), transparent 50%), var(--tone);
  box-shadow: inset 0 0 0 8px rgba(255,255,255,.18), 0 12px 22px -12px rgba(29,30,32,.55);
  transition: transform .25s;
}
.swatches a:hover .dot { transform: translateY(-5px) scale(1.05); }
.swatches .dot { position: relative; overflow: hidden; }
.swatches .dot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.swatches .dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 4px rgba(255,255,255,.6); }
@media (max-width: 760px) { .swatches { grid-template-columns: repeat(4, 1fr); row-gap: 22px; } }

/* Commission band */
.band { background: var(--teal); color: var(--cream); border-radius: 28px; padding: clamp(28px, 5vw, 64px); display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(20px, 4vw, 56px); align-items: center; }
.band h2 { font-family: var(--display); font-weight: 400; font-size: clamp(1.6rem, 3.6vw, 2.5rem); line-height: 1.4; margin-bottom: .5em; color: var(--mignonette); }
.band p { max-width: 50ch; opacity: .95; }
.band .chips { margin-bottom: 26px; }
@media (max-width: 860px) { .band { grid-template-columns: 1fr; } }

/* ---------- Inner pages ---------- */
.page-head { padding: clamp(40px, 7vw, 92px) 0 clamp(16px, 3vw, 36px); }
.page-head h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2.3rem, 6vw, 4.4rem); line-height: 1.3; color: var(--coral-deep); margin-bottom: .3em; }
.page-head .intro { max-width: 62ch; font-size: 1.2rem; color: var(--ink); }
.prose p { max-width: 66ch; }
.prose h3 { font-size: 1.1rem; margin: 1.6em 0 .5em; }

details.more { max-width: 66ch; margin: 1em 0 0; border-top: 1px solid rgba(29,30,32,.15); }
details.more summary { cursor: pointer; padding: 1em 0; font-weight: 700; color: var(--teal); list-style: none; display: flex; align-items: center; gap: .6em; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::before { content: "+"; display: grid; place-items: center; width: 1.5em; height: 1.5em; border-radius: 50%; border: 1.5px solid currentColor; line-height: 1; transition: transform .2s; }
details.more[open] summary::before { content: "–"; }
details.more > div { padding-bottom: 1em; }

.works { display: grid; gap: clamp(36px, 5vw, 68px) clamp(20px, 3vw, 44px); grid-template-columns: repeat(2, 1fr); align-items: start; padding-bottom: clamp(28px, 5vw, 60px); }
.works.three { grid-template-columns: repeat(3, 1fr); }
.works.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .works.three, .works.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .works, .works.three, .works.four { grid-template-columns: 1fr; } }

.work-img {
  display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in;
  border-radius: 14px; overflow: hidden; position: relative;
  box-shadow: 0 1px 0 rgba(29,30,32,.05), 0 24px 44px -26px rgba(29,30,32,.55);
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s;
}
.work-img:hover { transform: translateY(-4px); box-shadow: 0 1px 0 rgba(29,30,32,.05), 0 34px 50px -26px rgba(29,30,32,.6); }
.work-img::after {
  content: "View larger"; position: absolute; right: 12px; bottom: 12px; z-index: 3;
  background: rgba(29,30,32,.82); color: #fff; font: 600 .75rem/1 var(--sans); letter-spacing: .06em;
  padding: .6em 1em; border-radius: 999px; opacity: 0; transform: translateY(6px); transition: .25s;
}
.work-img:hover::after, .work-img:focus-visible::after { opacity: 1; transform: none; }

.work-count {
  position: absolute; left: 12px; top: 12px; z-index: 3;
  background: rgba(255,255,255,.94); color: var(--ink); font: 700 .74rem/1 var(--sans); letter-spacing: .05em;
  padding: .55em .95em; border-radius: 999px; box-shadow: 0 6px 16px -8px rgba(0,0,0,.5);
}
.work-text { padding-top: 18px; }
.work-emotion { display: flex; align-items: center; gap: .6em; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 .4em; }
.work-emotion::before { content: ""; width: .9em; height: .9em; border-radius: 50%; background: var(--tone, var(--coral)); box-shadow: 0 0 0 3px rgba(255,255,255,.55); }
.work-text h2, .work-text h3 { font-size: 1.45rem; margin-bottom: .45em; }
.work-text p { max-width: 58ch; }
.work-meta { font-size: .9rem; color: var(--ink-soft); }
.work-price { display: inline-block; font-weight: 700; background: var(--ink); color: var(--cream); padding: .2em .8em; border-radius: 999px; font-size: .9rem; margin-right: .6em; }
.work-sale { display: flex; align-items: center; gap: .6em; margin: 0 0 .8em; }
.work-sale .work-status { margin: 0; }
.work-price.is-sold { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px rgba(29,30,32,.5); margin: 0; }
.work-status.sold { background: var(--coral-deep); color: #fff; }
.work-status.avail { background: var(--mignonette); color: var(--teal-deep); }
.work-status.win { background: var(--mignonette); color: var(--teal-deep); }
.work-status.entry { background: rgba(29,30,32,.08); color: var(--ink); margin-bottom: .5em; }
.work-sold-tag { position: absolute; right: 12px; top: 12px; z-index: 3; background: var(--coral-deep); color: #fff; font: 700 .74rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: .55em .95em; border-radius: 999px; box-shadow: 0 6px 16px -8px rgba(0,0,0,.5); }
.work-status { display: inline-block; font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; background: var(--blue); color: var(--teal-deep); padding: .35em .9em; border-radius: 999px; margin-bottom: .8em; }
.text-link { font-weight: 700; }

.callout { background: color-mix(in srgb, var(--blue) 34%, var(--paper)); border-radius: var(--radius); padding: clamp(22px, 4vw, 40px); box-shadow: 0 0 0 1px rgba(8,83,97,.12); margin: 0 0 clamp(28px,5vw,56px); }
.callout h2 { font-family: var(--display); font-weight: 400; font-size: 1.5rem; line-height: 1.5; color: var(--teal); margin-bottom: .5em; }
.callout p:last-child { margin-bottom: 0; }

/* About */
.about-hero { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
.about-hero .ph { border-radius: 26px; max-width: 460px; box-shadow: 0 30px 60px -32px rgba(29,30,32,.55); }
@media (max-width: 800px) { .about-hero { grid-template-columns: 1fr; } .about-hero .ph { max-width: 340px; } }
.story { display: grid; grid-template-columns: 200px 1fr; gap: clamp(20px, 4vw, 56px); padding: clamp(28px, 4vw, 48px) 0; border-top: 1px solid rgba(29,30,32,.14); }
.story > h2 { font-family: var(--display); font-weight: 400; font-size: 1.4rem; line-height: 1.5; color: var(--coral-deep); align-self: start; position: sticky; top: 100px; }
@media (max-width: 800px) { .story { grid-template-columns: 1fr; } .story > h2 { position: static; } }
.pull { font-size: clamp(1.25rem, 2.4vw, 1.75rem); line-height: 1.5; font-weight: 500; color: var(--teal); max-width: 34em; margin: 0; padding-left: 1.1em; border-left: 4px solid var(--coral); }
.upnext { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; background: color-mix(in srgb, var(--mignonette) 32%, var(--paper)); border-radius: var(--radius); padding: 22px 26px; box-shadow: 0 0 0 1px rgba(29,30,32,.06); }
.upnext .tag { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; background: var(--grad); color: #fff; padding: .55em 1em; border-radius: 999px; }
.upnext p { margin: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; padding-bottom: clamp(36px, 6vw, 84px); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.steps { list-style: none; counter-reset: s; margin: 1.4em 0 0; padding: 0; display: grid; gap: 16px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 2.4em 1fr; gap: 6px 14px; }
.steps li::before { content: counter(s); grid-row: span 2; width: 2.2em; height: 2.2em; display: grid; place-items: center; border-radius: 50%; background: var(--teal); color: var(--cream); font-weight: 700; }
.steps strong { display: block; }
.form { background: var(--paper); padding: clamp(22px, 4vw, 40px); border-radius: 24px; box-shadow: 0 30px 60px -36px rgba(29,30,32,.5), 0 0 0 1px rgba(29,30,32,.06); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1.5px solid rgba(29,30,32,.3); border-radius: 12px; padding: .8em 1em;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--coral); outline-offset: 1px; border-color: var(--ink); }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-status { margin: 16px 0 0; font-weight: 600; min-height: 1.5em; }
.form-status.ok { color: #1c6b3a; }
.form-status.err { color: #a12a1a; }

/* ---------- Footer ---------- */
.site-footer { margin-top: clamp(24px, 5vw, 64px); background: var(--teal-deep); color: var(--cream); padding: clamp(36px, 5vw, 64px) 0 28px; }
.site-footer a { color: var(--cream); text-decoration-color: rgba(244,242,216,.4); }
.site-footer a:hover { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-grid h2 { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; opacity: .7; margin-bottom: 1em; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5em; }
.site-footer .wordmark .logo { height: 108px; padding: 8px 12px; background: var(--cream); border-radius: 18px; }
.site-footer .wordmark:hover .logo { transform: none; }
.foot-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(244,242,216,.18); font-size: .85rem; opacity: .8; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---------- Lightbox ---------- */
dialog.lightbox { border: 0; padding: 0; background: transparent; width: min(96vw, 1120px); max-width: none; max-height: 94vh; overflow: visible; color: var(--ink); }
dialog.lightbox::backdrop { background: rgba(14, 22, 26, .88); backdrop-filter: blur(4px); }
.lb-inner { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); grid-template-rows: minmax(0, 1fr); background: var(--paper); border-radius: 22px; overflow: hidden; height: min(92vh, 780px); }
.lb-media { position: relative; background: #14191c; min-height: 0; overflow: hidden; }
.lb-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.lb-body { padding: clamp(20px, 2.6vw, 32px); display: flex; flex-direction: column; gap: 10px; overflow: auto; min-height: 0; }
.lb-body h2 { font-size: 1.45rem; }
.lb-body .work-meta { margin: 0; }
.lb-body p { margin: 0; }
.lb-view { font-weight: 700; font-size: .85rem; letter-spacing: .04em; color: var(--teal); }
.lb-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 8px; margin: 6px 0 4px; }
.lb-thumb { padding: 0; border: 3px solid transparent; border-radius: 12px; overflow: hidden; background: none; cursor: pointer; aspect-ratio: 1; opacity: .72; transition: opacity .2s, border-color .2s; }
.lb-thumb:hover { opacity: 1; }
.lb-thumb[aria-current="true"] { border-color: var(--coral-deep); opacity: 1; }
.lb-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lb-nav { margin-top: auto; padding-top: 14px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; border-top: 1px solid rgba(29,30,32,.12); }
.lb-btn { border: 1.5px solid var(--ink); background: transparent; color: var(--ink); border-radius: 999px; padding: .55em 1.1em; font: 700 .85rem/1 var(--sans); cursor: pointer; }
.lb-btn:hover { background: var(--ink); color: var(--cream); }
.lb-close { position: absolute; top: -14px; right: -6px; z-index: 5; width: 44px; height: 44px; padding: 0; border-radius: 50%; background: #fff; border: 0; font-size: 1.4rem; cursor: pointer; box-shadow: 0 8px 20px rgba(0,0,0,.35); }
@media (max-width: 800px) {
  .lb-inner { grid-template-columns: 1fr; grid-template-rows: minmax(0, 52vh) minmax(0, 1fr); height: 92vh; }
}

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
