/* ================================================================
   TOYA STUDIO — Luxury Editorial Design System
   Style: High-end packaging & brand agency
   ================================================================ */

/* ----------------------------------------------------------------
   1. DESIGN TOKENS
   ---------------------------------------------------------------- */
:root {
  /* Core palette */
  --ink:        #080808;
  --ink-2:      #1a1a1a;
  --body:       #4e4e4e;
  --muted:      #9a9a9a;
  --rule:       #e2deda;
  --warm:       #f5f3ef;
  --warm-2:     #ede9e3;
  --white:      #ffffff;

  /* Brand red */
  --red:        #b51c23;
  --red-dark:   #891419;
  --red-soft:   rgba(181, 28, 35, 0.07);
  --red-glow:   rgba(181, 28, 35, 0.18);

  /* Aliases for internal pages */
  --accent:      var(--red);
  --accent-dark: var(--red-dark);
  --accent-soft: var(--red-soft);
  --surface:     var(--warm);
  --surface-2:   var(--warm-2);
  --paper:       var(--white);
  --text:        var(--ink-2);
  --shadow:      0 2px 20px rgba(0,0,0,0.08);
  --success:     #14532d;
  --danger:      #991b1b;

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Manrope', system-ui, sans-serif;

  /* Spacing scale */
  --s-1:  4px;
  --s-2:  8px;
  --s-3:  12px;
  --s-4:  16px;
  --s-5:  24px;
  --s-6:  36px;
  --s-7:  52px;
  --s-8:  72px;
  --s-9:  100px;
  --s-10: 136px;

  /* Radius */
  --r-sm: 4px;
  --r-md: 10px;
  --r-lg: 18px;

  /* Elevation — minimal, editorial */
  --elev-1: 0 1px 4px rgba(0,0,0,0.05), 0 4px 16px rgba(0,0,0,0.04);
  --elev-2: 0 2px 12px rgba(0,0,0,0.07), 0 12px 32px rgba(0,0,0,0.06);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ----------------------------------------------------------------
   2. RESET
   ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family:      var(--font-body);
  font-size:        1rem;
  line-height:      1.7;
  color:            var(--ink-2);
  background:       var(--white);
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; }
a  { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
input, select, button, textarea { font-family: var(--font-body); }

/* ----------------------------------------------------------------
   3. BASE TYPOGRAPHY
   ---------------------------------------------------------------- */
h1, h2, h3 {
  font-family:    var(--font-display);
  font-weight:    300;       /* Luxury editorial key: light weight */
  letter-spacing: -0.025em;
  color:          var(--ink);
  line-height:    0.9;
}
h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size:   1rem;
  color:       var(--ink);
  line-height: 1.3;
}

h1 { font-size: clamp(3.2rem, 8vw, 7.2rem); }
h2 { font-size: clamp(2rem, 5vw, 4rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.2rem); }

p {
  color:       var(--body);
  line-height: 1.85;
  font-size:   0.95rem;
}

/* ----------------------------------------------------------------
   4. LAYOUT
   ---------------------------------------------------------------- */
.site-shell {
  width:  min(1300px, calc(100% - 64px));
  margin: 0 auto;
}
.page-content { padding-top: 0; }

/* ----------------------------------------------------------------
   5. NAVIGATION
   ---------------------------------------------------------------- */
.site-header {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  gap:             var(--s-5);
  padding:         0 var(--s-8);
  height:          68px;
  position:        sticky;
  top:             0;
  z-index:         100;
  background:      rgba(255,255,255,0.97);
  border-bottom:   1px solid var(--rule);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.brand {
  display:        inline-flex;
  align-items:    center;
  gap:            var(--s-3);
  font-family:    var(--font-body);
  font-size:      0.82rem;
  font-weight:    800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color:          var(--ink);
}

.brand-mark {
  width:           28px;
  height:          28px;
  background:      var(--red);
  border-radius:   var(--r-sm);
  display:         inline-flex;
  align-items:     center;
  justify-content: center;
  flex-shrink:     0;
}
.brand-mark::after {
  content:     'T';
  color:       var(--white);
  font-weight: 900;
  font-size:   0.85rem;
}

.site-nav {
  display:     flex;
  align-items: center;
  gap:         0;
}

.site-nav a {
  font-size:      0.72rem;
  font-weight:    600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color:          var(--muted);
  padding:        var(--s-2) var(--s-3);
  border-radius:  var(--r-sm);
  transition:     color 0.2s;
}
.site-nav a:hover { color: var(--ink); }

.nav-cta {
  background:     var(--red) !important;
  color:          var(--white) !important;
  margin-left:    var(--s-4);
  padding:        7px var(--s-5) !important;
  border-radius:  var(--r-sm) !important;
  letter-spacing: 0.08em;
  transition:     background 0.2s !important;
}
.nav-cta:hover { background: var(--red-dark) !important; color: var(--white) !important; }

.admin-link {
  border:      1.5px solid var(--rule) !important;
  color:       var(--muted) !important;
  margin-left: var(--s-3);
}

/* ----------------------------------------------------------------
   6. EYEBROW LABELS
   ---------------------------------------------------------------- */
.eyebrow,
.section-eyebrow {
  display:        inline-flex;
  align-items:    center;
  gap:            var(--s-2);
  font-size:      0.65rem;
  font-weight:    700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color:          var(--red);
  margin-bottom:  var(--s-4);
  background:     none;
  border:         none;
  padding:        0;
  border-radius:  0;
}
.eyebrow::before,
.section-eyebrow::before {
  content:    '';
  display:    block;
  width:      18px;
  height:     1px;
  background: var(--red);
  flex-shrink: 0;
}
.agency-eyebrow { color: var(--red); }

/* ----------------------------------------------------------------
   7. BUTTONS
   ---------------------------------------------------------------- */
.button {
  display:         inline-flex;
  align-items:     center;
  justify-content: center;
  gap:             var(--s-2);
  height:          46px;
  padding:         0 var(--s-6);
  font-family:     var(--font-body);
  font-size:       0.72rem;
  font-weight:     700;
  letter-spacing:  0.1em;
  text-transform:  uppercase;
  border:          1.5px solid transparent;
  border-radius:   var(--r-sm);
  cursor:          pointer;
  text-decoration: none;
  white-space:     nowrap;
  transition:      all 0.22s var(--ease);
}

.button.primary {
  background:   var(--red);
  color:        var(--white);
  border-color: var(--red);
}
.button.primary:hover {
  background:   var(--red-dark);
  border-color: var(--red-dark);
  box-shadow:   0 6px 20px var(--red-glow);
  transform:    translateY(-1px);
}

.button.secondary,
.button.ghost {
  background:   transparent;
  color:        var(--ink);
  border-color: var(--rule);
}
.button.secondary:hover,
.button.ghost:hover {
  border-color: var(--ink);
  background:   var(--warm);
  transform:    translateY(-1px);
}

.button.danger { background: #b91c1c; color: var(--white); border-color: #b91c1c; }
.button.small  { height: 36px; padding: 0 var(--s-4); font-size: 0.68rem; }

.button-row,
.hero-actions {
  display:    flex;
  flex-wrap:  wrap;
  gap:        var(--s-3);
  margin-top: var(--s-5);
}
.compact-row { margin-top: 0; }

.link-arrow {
  font-size:      0.72rem;
  font-weight:    700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color:          var(--red);
  display:        inline-flex;
  align-items:    center;
  gap:            var(--s-2);
  transition:     gap 0.2s;
}
.link-arrow:hover { gap: var(--s-3); }
.link-arrow::after { content: '→'; }

/* ----------------------------------------------------------------
   8. ALERTS
   ---------------------------------------------------------------- */
.alert {
  padding:       var(--s-4) var(--s-5);
  border-radius: var(--r-md);
  font-size:     0.88rem;
  font-weight:   600;
  margin-bottom: var(--s-4);
}
.alert.error   { background: #fff1f2; color: #991b1b; border-left: 3px solid #fca5a5; }
.alert.success { background: #f0fdf4; color: #166534; border-left: 3px solid #86efac; }

/* ================================================================
   9. HOMEPAGE
   ================================================================ */

/* ── 9a. Hero ─────────────────────────────────────────────────── */
.agency-hero {
  display:       grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.5fr);
  align-items:   stretch;
  gap:           0;
  padding:       var(--s-10) 0 var(--s-9);
  border-bottom: 1px solid var(--rule);
  /* Reset any old card styles */
  background:    none;
  border-radius: 0;
  box-shadow:    none;
  backdrop-filter: none;
}

.agency-hero::before,
.agency-hero::after { display: none; }

.agency-hero-copy {
  padding-right:  var(--s-8);
  border-right:   1px solid var(--rule);
  display:        flex;
  flex-direction: column;
  justify-content: center;
}

.agency-hero-copy h1 {
  font-size:     clamp(3.2rem, 8.5vw, 7.2rem);
  font-weight:   300;
  line-height:   0.87;
  letter-spacing: -0.03em;
  color:         var(--ink);
  margin-bottom: var(--s-6);
}

.agency-hero-copy > p {
  font-size: 1.0rem;
  max-width: 500px;
  color:     var(--body);
}

.hero-lead {
  font-size:  0.88rem;
  color:      var(--muted);
  max-width:  450px;
  margin-top: var(--s-3);
}

.agency-hero-side {
  padding-left:   var(--s-7);
  display:        flex;
  flex-direction: column;
  gap:            var(--s-3);
  justify-content: center;
}

.hero-stat-card {
  padding:       var(--s-5);
  border:        1px solid var(--rule);
  border-radius: var(--r-md);
  background:    var(--white);
  transition:    border-color 0.22s var(--ease);
}
.hero-stat-card:hover { border-color: var(--red); }
.hero-stat-card strong {
  display:       block;
  font-family:   var(--font-body);
  font-weight:   800;
  font-size:     0.9rem;
  color:         var(--ink);
  margin-bottom: var(--s-1);
}
.hero-stat-card span { font-size: 0.82rem; color: var(--muted); }

.hero-strip,
.agency-strip {
  display:    flex;
  flex-wrap:  wrap;
  gap:        var(--s-2);
  margin-top: var(--s-6);
}
.hero-strip span,
.agency-strip span {
  font-size:      0.65rem;
  font-weight:    700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color:          var(--muted);
  padding:        5px 14px;
  border:         1px solid var(--rule);
  border-radius:  999px;
}

/* ── 9b. Trust Band ───────────────────────────────────────────── */
.trust-band {
  display:       grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background:    var(--warm);
  border-bottom: 1px solid var(--rule);
}

.trust-card {
  padding:      var(--s-8) var(--s-7);
  text-align:   center;
  border-right: 1px solid var(--rule);
  /* Remove panel styles */
  background:   transparent;
  border-radius: 0;
  box-shadow:   none;
}
.trust-card:last-child { border-right: none; }

.trust-card strong {
  display:       block;
  font-family:   var(--font-display);
  font-size:     clamp(2.4rem, 4vw, 3.6rem);
  font-weight:   300;
  color:         var(--red);
  line-height:   1;
  margin-bottom: var(--s-2);
}
.trust-card span {
  font-size:      0.78rem;
  font-weight:    700;
  letter-spacing: 0.04em;
  color:          var(--muted);
}

/* ── 9c. Section meta ─────────────────────────────────────────── */
.section-heading {
  display:         flex;
  justify-content: space-between;
  align-items:     flex-end;
  gap:             var(--s-5);
  margin-bottom:   var(--s-6);
}
.section-heading.left-aligned { align-items: flex-start; }
.section-heading h2 { margin-bottom: var(--s-2); }

.section-copy {
  color:      var(--body);
  font-size:  0.92rem;
  max-width:  600px;
  margin-top: var(--s-3);
}

.agency-section,
.page-intro-section {
  padding:       var(--s-9) 0;
  border-bottom: 1px solid var(--rule);
}
.contact-section { padding: var(--s-9) 0; }

/* ── 9d. Overview Grid ────────────────────────────────────────── */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.overview-card {
  padding:        var(--s-7) var(--s-6);
  border-right:   1px solid var(--rule);
  display:        flex;
  flex-direction: column;
  gap:            var(--s-4);
  transition:     background 0.22s;
  /* Remove panel styles */
  background:     var(--white);
  border-radius:  0;
  box-shadow:     none;
}
.overview-card:last-child { border-right: none; }
.overview-card:hover { background: var(--warm); }

.overview-card h3 {
  font-size:   2rem;
  font-weight: 300;
  line-height: 1;
  margin:      0;
}
.overview-card p { font-size: 0.88rem; flex: 1; }
.overview-card .button { align-self: flex-start; margin-top: var(--s-2); }

.compact-highlight-list {
  display:   flex;
  flex-wrap: wrap;
  gap:       var(--s-2);
}
.compact-highlight-list span {
  font-size:      0.68rem;
  font-weight:    700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color:          var(--red-dark);
  padding:        5px 12px;
  background:     var(--red-soft);
  border-radius:  999px;
}

/* ── 9e. Projects Grid ────────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:     var(--s-4);
}

.project-card {
  border:        1px solid var(--rule);
  border-radius: var(--r-md);
  overflow:      hidden;
  background:    var(--white);
  box-shadow:    none;
  transition:    box-shadow 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.25s;
}
.project-card:hover {
  transform:    translateY(-4px);
  box-shadow:   var(--elev-2);
  border-color: transparent;
}
.project-card img {
  width:      100%;
  height:     220px;
  object-fit: cover;
  background: var(--warm);
}
.project-card-body { padding: var(--s-5); }
.project-card-body h3 {
  font-size:      0.93rem;
  font-family:    var(--font-body);
  font-weight:    700;
  letter-spacing: 0;
  line-height:    1.35;
  color:          var(--ink);
  margin-bottom:  var(--s-2);
}
.project-card-body p { font-size: 0.82rem; color: var(--muted); margin: 0; }

/* ── 9f. Partners ─────────────────────────────────────────────── */
.partners-section { padding: var(--s-9) 0; border-bottom: 1px solid var(--rule); }

.partners-grid {
  display:       grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top:    1px solid var(--rule);
  border-left:   1px solid var(--rule);
  margin-top:    var(--s-5);
}

.partner-card {
  padding:       var(--s-7) var(--s-5);
  display:       grid;
  place-items:   center;
  border-right:  1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background:    var(--white);
  border-radius: 0;
  box-shadow:    none;
  transition:    background 0.2s;
}
.partner-card:hover { background: var(--warm); }
.partner-card span {
  font-size:      0.73rem;
  font-weight:    700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color:          var(--ink-2);
  text-align:     center;
}

/* ── 9g. Contact ──────────────────────────────────────────────── */
.contact-layout {
  display:     grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.58fr);
  gap:         var(--s-5);
  align-items: start;
}

.contact-form {
  padding:       var(--s-7);
  background:    var(--white);
  border:        1px solid var(--rule);
  border-radius: var(--r-lg);
  box-shadow:    none;
}

.contact-form label {
  display:        block;
  font-size:      0.7rem;
  font-weight:    700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color:          var(--ink-2);
  margin-bottom:  var(--s-5);
}

.contact-form input,
.contact-form textarea {
  display:       block;
  width:         100%;
  margin-top:    var(--s-2);
  padding:       12px var(--s-4);
  font-size:     0.92rem;
  color:         var(--ink);
  background:    var(--warm);
  border:        1.5px solid transparent;
  border-radius: var(--r-md);
  min-height:    46px;
  outline:       none;
  transition:    border-color 0.2s, background 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--red);
  background:   var(--white);
}
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form .button  { margin-top: var(--s-3); }

.contact-info {
  display:        flex;
  flex-direction: column;
  gap:            var(--s-4);
}

.contact-map-card {
  padding:       var(--s-7);
  background:    var(--ink);
  border-radius: var(--r-lg);
  flex:          1;
}
.contact-map-card .contact-label {
  font-size:      0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight:    700;
  color:          rgba(255,255,255,0.35);
}
.contact-map-card h3 {
  color:       var(--white);
  font-size:   1.9rem;
  font-weight: 300;
  line-height: 1.05;
  margin-top:  var(--s-3);
}
.contact-map-card p {
  color:      rgba(255,255,255,0.55);
  font-size:  0.88rem;
  margin-top: var(--s-3);
  line-height: 1.8;
}

.contact-item {
  padding:       var(--s-5);
  border:        1px solid var(--rule);
  border-radius: var(--r-md);
  background:    var(--white);
}
.contact-label {
  display:        block;
  font-size:      0.65rem;
  font-weight:    700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color:          var(--muted);
  margin-bottom:  var(--s-2);
}
.contact-item p { font-size: 0.88rem; color: var(--ink-2); margin: 0; }

/* ================================================================
   10. SUBPAGES
   ================================================================ */

/* ── 10a. Subpage Hero ────────────────────────────────────────── */
.subpage-hero {
  display:       grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.5fr);
  align-items:   stretch;
  gap:           0;
  padding:       var(--s-10) 0 var(--s-9);
  border-bottom: 1px solid var(--rule);
  /* Remove old card styles */
  background:    none;
  border-radius: 0;
  box-shadow:    none;
  backdrop-filter: none;
}

.subpage-hero-copy {
  padding-right:  var(--s-8);
  border-right:   1px solid var(--rule);
  display:        flex;
  flex-direction: column;
  justify-content: center;
}

.subpage-hero-copy h1 {
  font-size:     clamp(2.4rem, 6vw, 5.4rem);
  font-weight:   300;
  line-height:   0.9;
  letter-spacing: -0.03em;
  margin-bottom: var(--s-5);
}

.subpage-hero-copy p { font-size: 1rem; max-width: 500px; }

.subpage-hero-meta,
.subpage-bullets {
  padding-left:   var(--s-7);
  display:        flex;
  flex-direction: column;
  gap:            var(--s-3);
  justify-content: center;
}

.subpage-meta-card {
  padding:       var(--s-5);
  border:        1px solid var(--rule);
  border-radius: var(--r-md);
  background:    var(--white);
}
.subpage-meta-card strong {
  display:       block;
  font-weight:   800;
  font-size:     0.88rem;
  color:         var(--ink);
  margin-bottom: var(--s-1);
}
.subpage-meta-card span { font-size: 0.82rem; color: var(--muted); }

/* ── 10b. About ───────────────────────────────────────────────── */
.about-story-grid {
  display:     grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.5fr);
  gap:         var(--s-5);
  align-items: start;
}

.about-prose {
  padding:       var(--s-7);
  border:        1px solid var(--rule);
  border-radius: var(--r-lg);
  background:    var(--white);
}
.about-prose p {
  font-size:     0.94rem;
  line-height:   1.9;
  margin-bottom: var(--s-5);
  color:         var(--body);
}
.about-prose p:last-child { margin-bottom: 0; }

.about-side-column {
  display:        flex;
  flex-direction: column;
  gap:            var(--s-4);
}

.quote-card {
  padding:       var(--s-7);
  background:    var(--ink);
  border-radius: var(--r-lg);
  border:        none;
  box-shadow:    none;
}
.quote-card .section-eyebrow,
.quote-card .eyebrow          { color: rgba(255,255,255,0.38); }
.quote-card .section-eyebrow::before,
.quote-card .eyebrow::before  { background: rgba(255,255,255,0.2); }
.quote-card h3 { color: var(--white); font-size: 1.7rem; font-weight: 300; line-height: 1.1; }

.capability-card {
  padding:       var(--s-6);
  border:        1px solid var(--rule);
  border-radius: var(--r-lg);
  background:    var(--warm);
  box-shadow:    none;
}
.capability-list {
  display:        flex;
  flex-direction: column;
  gap:            var(--s-2);
  margin-top:     var(--s-3);
}
.capability-list span {
  display:       block;
  padding:       var(--s-3) var(--s-4);
  border:        1px solid var(--rule);
  border-radius: var(--r-md);
  font-size:     0.84rem;
  font-weight:   600;
  color:         var(--ink-2);
  background:    var(--white);
}

.vision-grid {
  display:    grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:        var(--s-4);
  margin-top: var(--s-5);
}

.vision-card {
  padding:       var(--s-7);
  border:        1px solid var(--rule);
  border-radius: var(--r-lg);
  background:    var(--white);
  box-shadow:    none;
}
.vision-card h3 { margin-bottom: var(--s-3); }
.vision-card p  { color: var(--body); line-height: 1.85; margin: 0; }

/* ── 10c. What We Do / Packaging ──────────────────────────────── */
.packaging-showcase {
  display:        flex;
  flex-direction: column;
  border:         1px solid var(--rule);
  border-radius:  var(--r-lg);
  overflow:       hidden;
  background:     var(--rule);
  gap:            1px;
}

.packaging-card {
  display:     grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background:  var(--white);
  border:      none;
  border-radius: 0;
  box-shadow:  none;
  align-items: stretch;
}

.packaging-card:nth-child(even) .packaging-copy   { order: 2; border-left: 1px solid var(--rule); border-right: none; }
.packaging-card:nth-child(even) .packaging-visuals { order: 1; }

.packaging-copy {
  padding:        var(--s-8) var(--s-7);
  border-right:   1px solid var(--rule);
  display:        flex;
  flex-direction: column;
  gap:            var(--s-4);
}
.packaging-copy h3 { font-size: 2.2rem; font-weight: 300; line-height: 1; margin: 0; }
.packaging-copy p  { color: var(--body); font-size: 0.92rem; line-height: 1.85; margin: 0; }

.packaging-subtitle {
  font-size:      0.68rem !important;
  font-weight:    700 !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color:          var(--red) !important;
  margin:         0 !important;
}

.size-list { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.size-pill {
  font-size:     0.72rem;
  font-weight:   700;
  color:         var(--ink-2);
  padding:       5px 12px;
  border:        1.5px solid var(--rule);
  border-radius: 999px;
  background:    var(--warm);
}

.packaging-visuals {
  display:    grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:        1px;
  background: var(--rule);
}
.packaging-visual-card {
  background: var(--warm);
  min-height: 200px;
  overflow:   hidden;
}
.packaging-visual-card img {
  width:      100%;
  height:     100%;
  object-fit: cover;
  min-height: 200px;
}
.packaging-visual-card:first-child { grid-column: span 2; }

.placeholder-project {
  display:         flex;
  align-items:     center;
  justify-content: center;
}

/* ── 10d. Career ──────────────────────────────────────────────── */
.split-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:     var(--s-4);
}

/* ================================================================
   11. CTA PANEL
   ================================================================ */
.cta-panel {
  background:    var(--ink);
  border-radius: var(--r-lg);
  padding:       var(--s-9) var(--s-8);
  display:       flex;
  justify-content: space-between;
  align-items:   center;
  gap:           var(--s-8);
  /* Override any conflicting panel class */
  border:        none !important;
  box-shadow:    none !important;
}

.cta-panel h2 { color: var(--white); font-weight: 300; max-width: 580px; }
.cta-panel p  { color: rgba(255,255,255,0.55); margin-top: var(--s-3); }

.cta-panel .section-eyebrow,
.cta-panel .eyebrow { color: rgba(255,255,255,0.38); }
.cta-panel .section-eyebrow::before,
.cta-panel .eyebrow::before { background: rgba(255,255,255,0.2); }

.cta-panel .button-row { flex-shrink: 0; margin-top: 0; }

.cta-panel .button.secondary {
  color:        var(--white);
  border-color: rgba(255,255,255,0.3);
  background:   transparent;
}
.cta-panel .button.secondary:hover {
  border-color: var(--white);
  background:   rgba(255,255,255,0.08);
}

/* Section wrappers that hold CTA panel */
.agency-section.cta-panel,
section.cta-panel {
  background:    var(--ink);
  border-bottom: none;
  padding:       var(--s-9) 0;
  display:       flex;
  justify-content: space-between;
  align-items:   center;
  gap:           var(--s-8);
}

/* ================================================================
   12. FOOTER
   ================================================================ */
.site-footer {
  background:     var(--warm);
  border-top:     1px solid var(--rule);
  padding:        var(--s-9) var(--s-8) var(--s-7);
  border-radius:  0;
  box-shadow:     none;
  backdrop-filter: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(140px, 0.42fr));
  gap:     var(--s-9);
}

.footer-brand { margin-bottom: var(--s-4); }
.footer-branding p {
  font-size:   0.84rem;
  color:       var(--muted);
  max-width:   300px;
  line-height: 1.8;
}

.footer-column { display: flex; flex-direction: column; gap: var(--s-3); }
.footer-title {
  display:        block;
  font-size:      0.65rem;
  font-weight:    700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color:          var(--muted);
  margin-bottom:  var(--s-2);
}
.footer-column a,
.footer-column span { font-size: 0.85rem; color: var(--body); transition: color 0.2s; }
.footer-column a:hover { color: var(--ink); }

.footer-bottom {
  display:         flex;
  justify-content: space-between;
  align-items:     center;
  flex-wrap:       wrap;
  gap:             var(--s-4);
  margin-top:      var(--s-7);
  padding-top:     var(--s-5);
  border-top:      1px solid var(--rule);
}
.footer-bottom span,
.footer-bottom a { font-size: 0.78rem; color: var(--muted); }
.footer-bottom a:hover { color: var(--red); }

/* ================================================================
   16. MARKETPLACE HOMEPAGE
   ================================================================ */

/* ── Hero ──────────────────────────────────────────────────────── */
.mkt-hero {
  padding:       var(--s-10) 0 var(--s-9);
  border-bottom: 1px solid var(--rule);
}

.mkt-hero-copy { max-width: 760px; margin-bottom: var(--s-7); }

.mkt-hero-copy h1 {
  font-size:     clamp(3rem, 8vw, 6.8rem);
  font-weight:   300;
  line-height:   0.9;
  letter-spacing: -0.03em;
  color:         var(--ink);
  margin-bottom: var(--s-5);
}

.mkt-hero-copy .hero-lead {
  font-size:  1rem;
  color:      var(--body);
  max-width:  580px;
  margin-top: var(--s-3);
}

/* ── Search form ───────────────────────────────────────────────── */
.hero-search-form { display: flex; flex-direction: column; gap: var(--s-4); }

.hero-search-inner {
  display:       flex;
  align-items:   center;
  gap:           0;
  background:    var(--white);
  border:        2px solid var(--ink);
  border-radius: var(--r-md);
  overflow:      hidden;
  max-width:     700px;
  transition:    border-color 0.2s, box-shadow 0.2s;
}

.hero-search-inner:focus-within {
  border-color: var(--red);
  box-shadow:   0 0 0 3px var(--red-soft);
}

.hero-search-inner input {
  flex:         1;
  height:       58px;
  padding:      0 var(--s-5);
  font-size:    1rem;
  color:        var(--ink);
  border:       none;
  outline:      none;
  background:   transparent;
  font-family:  var(--font-body);
}

.hero-search-inner input::placeholder { color: var(--muted); }

.hero-search-inner .button {
  height:        58px;
  border-radius: 0;
  border:        none;
  padding:       0 var(--s-6);
  font-size:     0.78rem;
  border-left:   2px solid var(--ink);
  flex-shrink:   0;
  transition:    background 0.2s;
}

.hero-search-inner:focus-within .button { border-left-color: var(--red); }

/* ── Category pills ────────────────────────────────────────────── */
.cat-pills {
  display:   flex;
  flex-wrap: wrap;
  gap:       var(--s-2);
}

.cat-pill {
  font-size:      0.72rem;
  font-weight:    700;
  letter-spacing: 0.05em;
  color:          var(--ink-2);
  padding:        6px var(--s-4);
  border:         1.5px solid var(--rule);
  border-radius:  999px;
  background:     var(--white);
  text-decoration: none;
  transition:     all 0.18s;
}

.cat-pill:hover {
  background:   var(--ink);
  color:        var(--white);
  border-color: var(--ink);
}

.cat-pill-all {
  color:        var(--red);
  border-color: var(--red-soft);
  background:   var(--red-soft);
}

.cat-pill-all:hover {
  background:   var(--red);
  color:        var(--white);
  border-color: var(--red);
}

/* ── 4-col card grid variant ────────────────────────────────────── */
.card-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1100px) {
  .card-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .mkt-hero-copy h1 { font-size: clamp(2.4rem, 9vw, 3.8rem); }
  .hero-search-inner { max-width: 100%; }
  .hero-search-inner input { height: 50px; font-size: 0.92rem; }
  .hero-search-inner .button { height: 50px; padding: 0 var(--s-4); }
  .card-grid-4 { grid-template-columns: 1fr; }
}



/* ── 13a. Panel utility ───────────────────────────────────────── */
.panel {
  background:    var(--white);
  border:        1px solid var(--rule);
  border-radius: var(--r-lg);
  box-shadow:    var(--elev-1);
}

.card { overflow: hidden; animation: rise 0.4s var(--ease) both; }

.empty-state {
  padding:       var(--s-7);
  text-align:    center;
  color:         var(--muted);
  border:        1px solid var(--rule);
  border-radius: var(--r-lg);
}

/* ── 13b. Auth/Form pages ─────────────────────────────────────── */
.auth-layout {
  display:     grid;
  place-items: center;
  min-height:  70vh;
  padding:     var(--s-8) 0;
}
.upload-layout { padding: var(--s-6) 0; }

.form-panel {
  padding:       var(--s-7);
  background:    var(--white);
  border:        1px solid var(--rule);
  border-radius: var(--r-lg);
  width:         min(820px, 100%);
}
.form-panel label {
  display:        block;
  font-size:      0.7rem;
  font-weight:    700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color:          var(--ink-2);
  margin-bottom:  var(--s-5);
}
.form-panel input,
.form-panel select,
.form-panel textarea {
  display:       block;
  width:         100%;
  margin-top:    var(--s-2);
  padding:       12px var(--s-4);
  font-size:     0.92rem;
  color:         var(--ink);
  background:    var(--warm);
  border:        1.5px solid transparent;
  border-radius: var(--r-md);
  min-height:    46px;
  outline:       none;
  transition:    border-color 0.2s;
}
.form-panel input:focus,
.form-panel select:focus,
.form-panel textarea:focus { border-color: var(--red); background: var(--white); }
select[multiple] { min-height: 150px; }

.checkbox-row { display: flex; align-items: center; gap: var(--s-3); }
.checkbox-row input { width: 18px; min-height: 18px; flex-shrink: 0; }
.suggestion-row { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-2); }

/* ── 13c. Card Grid ───────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(256px, 1fr));
  gap:     var(--s-4);
}
.card img {
  width:      100%;
  height:     220px;
  object-fit: cover;
  background: var(--warm);
}
.card-body { padding: var(--s-5); }
.card h3 {
  font-size:      0.92rem;
  font-family:    var(--font-body);
  font-weight:    700;
  color:          var(--ink);
  margin:         var(--s-2) 0 var(--s-3);
  letter-spacing: 0;
  line-height:    1.35;
}

.badge-row { display: flex; align-items: center; gap: var(--s-2); }
.badge {
  font-size:     0.68rem;
  font-weight:   700;
  padding:       4px 10px;
  border-radius: 999px;
  background:    #f0fdf4;
  color:         #166534;
}
.badge.paid { background: var(--red-soft); color: var(--red-dark); }

.chip-row { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-3); }
.chip,
.quick-tag,
.tag-suggestion {
  font-size:    0.7rem;
  font-weight:  600;
  padding:      4px 10px;
  border:       1.5px solid var(--rule);
  border-radius: 999px;
  color:        var(--body);
  background:   var(--white);
  cursor:       pointer;
  text-decoration: none;
  transition:   all 0.18s;
}
.chip-accent,
.quick-tag.active,
.tag-suggestion:hover {
  background:   var(--red-soft);
  color:        var(--red);
  border-color: transparent;
}

/* ── 13d. Search/Filter ───────────────────────────────────────── */
.search-panel {
  padding:       var(--s-5);
  margin-bottom: var(--s-5);
  background:    var(--white);
  border:        1px solid var(--rule);
  border-radius: var(--r-lg);
}
.search-form {
  display:     grid;
  grid-template-columns: minmax(0, 1.5fr) 160px 160px 160px auto;
  gap:         var(--s-3);
  align-items: end;
}
.search-form input,
.search-form select {
  width:         100%;
  min-height:    44px;
  padding:       0 var(--s-4);
  border:        1.5px solid var(--rule);
  border-radius: var(--r-md);
  background:    var(--warm);
  font-size:     0.88rem;
  color:         var(--ink);
  outline:       none;
  transition:    border-color 0.2s;
}
.search-form input:focus,
.search-form select:focus { border-color: var(--red); background: var(--white); }
.quick-tags { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-4); }

.js-browser-grid,
.js-browser-pagination { transition: opacity 0.2s; }
.is-loading { opacity: 0.5; pointer-events: none; }

/* ── 13e. Design View ─────────────────────────────────────────── */
.design-view {
  display:     grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.6fr);
  gap:         var(--s-5);
  align-items: start;
  margin-top:  var(--s-5);
}
.design-preview,
.design-meta {
  padding:       var(--s-5);
  background:    var(--white);
  border:        1px solid var(--rule);
  border-radius: var(--r-lg);
}
.design-preview img {
  width:         100%;
  max-height:    680px;
  object-fit:    contain;
  border-radius: var(--r-md);
  background:    var(--warm);
}
.design-meta h1 { font-size: 1.9rem; }
.meta-list { display: flex; flex-direction: column; gap: var(--s-3); margin-top: var(--s-4); }
.meta-list div {
  display:        flex;
  justify-content: space-between;
  gap:            var(--s-4);
  padding-bottom: var(--s-3);
  border-bottom:  1px solid var(--rule);
  font-size:      0.84rem;
}

/* ── 13f. Admin ───────────────────────────────────────────────── */
.dashboard-grid {
  display:       grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap:           var(--s-4);
  margin-bottom: var(--s-6);
}
.stat-card {
  padding:       var(--s-5);
  background:    var(--white);
  border:        1px solid var(--rule);
  border-radius: var(--r-lg);
}
.stat-card strong {
  display:       block;
  font-family:   var(--font-display);
  font-weight:   300;
  font-size:     2.4rem;
  color:         var(--red);
  margin-bottom: var(--s-2);
  line-height:   1;
}
.stat-card span { font-size: 0.82rem; color: var(--muted); }

.metric {
  padding:       var(--s-4);
  border:        1px solid var(--rule);
  border-radius: var(--r-md);
  background:    var(--white);
}
.metric strong {
  display:       block;
  font-family:   var(--font-display);
  font-weight:   300;
  font-size:     2rem;
  color:         var(--red);
  margin-bottom: var(--s-2);
  line-height:   1;
}
.metric span { font-size: 0.82rem; color: var(--muted); }

.admin-taxonomy-grid {
  display:     grid;
  grid-template-columns: minmax(280px, 0.68fr) minmax(0, 1fr) minmax(0, 1fr);
  gap:         var(--s-4);
  align-items: start;
}

.table-panel {
  padding:       var(--s-5);
  overflow-x:    auto;
  background:    var(--white);
  border:        1px solid var(--rule);
  border-radius: var(--r-lg);
}
.table-panel table { width: 100%; border-collapse: collapse; }
.table-panel th,
.table-panel td {
  text-align:    left;
  padding:       var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--rule);
  font-size:     0.84rem;
}
.table-panel th {
  font-weight:    700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size:      0.66rem;
  color:          var(--muted);
}

.inline-form { display: flex; gap: var(--s-3); align-items: center; }
.inline-form select,
.inline-form input {
  min-height:    36px;
  padding:       0 var(--s-3);
  border:        1.5px solid var(--rule);
  border-radius: var(--r-md);
  background:    var(--warm);
  font-size:     0.84rem;
  min-width:     110px;
}

/* ── 13g. Hero (internal legacy) ─────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap:     var(--s-5);
  margin-bottom: var(--s-5);
}
.hero-copy {
  padding:       var(--s-7);
  background:    var(--ink);
  border-radius: var(--r-lg);
  color:         var(--white);
  min-height:    280px;
  display:       flex;
  flex-direction: column;
  justify-content: flex-end;
}
.hero-copy h1  { font-size: clamp(1.8rem, 4vw, 3rem); color: var(--white); }
.hero-copy p   { color: rgba(255,255,255,0.65); }
.hero-copy .hero-actions { margin-top: var(--s-5); }
.hero-panel {
  padding:       var(--s-6);
  background:    var(--warm);
  border:        1px solid var(--rule);
  border-radius: var(--r-lg);
  display:       grid;
  gap:           var(--s-3);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap:     var(--s-4);
}

/* ================================================================
   14. PAGINATION, LOADERS, ANIMATIONS
   ================================================================ */
.pagination { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-6); }
.pagination-fallback { display: none; }

.page-btn {
  display:         inline-flex;
  align-items:     center;
  justify-content: center;
  min-width:       40px;
  height:          40px;
  padding:         0 var(--s-3);
  border:          1.5px solid var(--rule);
  border-radius:   var(--r-md);
  font-size:       0.84rem;
  font-weight:     600;
  color:           var(--ink-2);
  background:      var(--white);
  text-decoration: none;
  transition:      all 0.18s;
}
.page-btn.active { background: var(--red); color: var(--white); border-color: var(--red); }
.page-btn:hover:not(.active) { background: var(--warm); border-color: var(--ink); }

.browser-sentinel { width: 100%; height: 2px; }
.browser-loader { display: flex; justify-content: center; margin-top: var(--s-5); }
.browser-loader span {
  display:     inline-flex;
  align-items: center;
  gap:         var(--s-3);
  padding:     var(--s-3) var(--s-5);
  border:      1px solid var(--rule);
  border-radius: 999px;
  background:  var(--white);
  color:       var(--muted);
  font-size:   0.82rem;
}

/* Skeletons */
.skeleton-card { pointer-events: none; }
.skeleton-media,
.skeleton-line {
  background:      linear-gradient(90deg, #eeebe6 25%, #f5f3ef 50%, #eeebe6 75%);
  background-size: 200% 100%;
  animation:       shimmer 1.5s linear infinite;
}
.skeleton-media { height: 220px; }
.skeleton-line  { height: 10px; border-radius: 999px; margin-top: var(--s-3); }
.skeleton-line.short  { width: 30%; }
.skeleton-line.medium { width: 58%; }

@keyframes shimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ================================================================
   15. RESPONSIVE
   ================================================================ */
@media (max-width: 1100px) {
  .search-form            { grid-template-columns: repeat(2, 1fr); }
  .admin-taxonomy-grid    { grid-template-columns: 1fr; }
  .partners-grid          { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .overview-grid          { grid-template-columns: repeat(2, 1fr); }
  .overview-card          { border-right: none; border-bottom: 1px solid var(--rule); }
  .overview-card:nth-child(2) { border-bottom: 1px solid var(--rule); }
  .overview-card:last-child   { grid-column: span 2; }
}

@media (max-width: 900px) {
  /* Hero stack */
  .agency-hero {
    grid-template-columns: 1fr;
    padding: var(--s-8) 0;
  }
  .agency-hero-copy {
    padding-right:  0;
    border-right:   none;
    padding-bottom: var(--s-7);
    border-bottom:  1px solid var(--rule);
  }
  .agency-hero-side {
    flex-direction: row;
    flex-wrap:      wrap;
    padding-left:   0;
    padding-top:    var(--s-6);
  }
  .hero-stat-card { flex: 1 1 170px; }

  /* Subpage hero stack */
  .subpage-hero {
    grid-template-columns: 1fr;
    padding: var(--s-8) 0;
  }
  .subpage-hero-copy {
    padding-right:  0;
    border-right:   none;
    padding-bottom: var(--s-6);
    border-bottom:  1px solid var(--rule);
  }
  .subpage-hero-meta,
  .subpage-bullets {
    flex-direction: row;
    flex-wrap:      wrap;
    padding-left:   0;
    padding-top:    var(--s-5);
  }
  .subpage-meta-card { flex: 1 1 150px; }

  /* Layout stacks */
  .about-story-grid,
  .contact-layout,
  .design-view { grid-template-columns: 1fr; }

  /* Packaging alternation reset */
  .packaging-card                           { grid-template-columns: 1fr; }
  .packaging-card:nth-child(even) .packaging-copy   { order: 1; border-left: none; border-bottom: 1px solid var(--rule); }
  .packaging-card:nth-child(even) .packaging-visuals { order: 2; }
  .packaging-copy                           { border-right: none; border-bottom: 1px solid var(--rule); padding: var(--s-7) var(--s-6); }

  /* Trust stacks */
  .trust-band { grid-template-columns: 1fr; }
  .trust-card { border-right: none; border-bottom: 1px solid var(--rule); }
  .trust-card:last-child { border-bottom: none; }

  /* Misc */
  .vision-grid        { grid-template-columns: 1fr; }
  .split-feature-grid { grid-template-columns: 1fr; }

  .cta-panel {
    flex-direction: column;
    align-items:    flex-start;
    gap:            var(--s-5);
    padding:        var(--s-7) var(--s-6);
  }
}

@media (max-width: 720px) {
  :root { --s-9: 72px; --s-10: 90px; }

  .site-header { padding: 0 var(--s-5); height: 60px; }
  .site-nav a  { font-size: 0.7rem; padding: var(--s-2); }
  .nav-cta     { display: none; }

  .overview-grid              { grid-template-columns: 1fr; }
  .overview-card              { border-right: none; }
  .overview-card:last-child   { grid-column: span 1; }

  .projects-grid   { grid-template-columns: 1fr; }
  .partners-grid   { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid     { grid-template-columns: 1fr; gap: var(--s-6); }
  .site-footer     { padding: var(--s-7) var(--s-5); }
  .search-form     { grid-template-columns: 1fr; }

  .packaging-visuals                    { grid-template-columns: 1fr; }
  .packaging-visual-card:first-child    { grid-column: span 1; }
}

@media (max-width: 480px) {
  .site-shell      { width: calc(100% - 36px); }
  .button-row,
  .hero-actions    { flex-direction: column; }
  .button          { width: 100%; justify-content: center; }
}
