/* ═══════════════════════════════════════════════════════════════
   Carol Campbell Art — Main Stylesheet
   Shared by index.html and all piece pages.
═══════════════════════════════════════════════════════════════ */

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img  { display: block; max-width: 100%; }
ul   { list-style: none; }
a    { text-decoration: none; color: inherit; }
button, input, select, textarea { font-family: inherit; font-size: inherit; border-radius: 0; }

/* ── Design tokens ──────────────────────────────────────────── */
:root {
  --white:     #FFFFFF;
  --off-white: #FAFAF8;
  --ocean:     #1C3D5A;
  --teal:      #4A8FA8;  /* large display: hover states, borders, decorative */
  --teal-text: #3D7A8F;  /* small text (< 18 px): passes WCAG AA 4.5:1 on --off-white */
  --navy:      #0D2B3E;
  --kelp:      #2D6A4F;

  --bdr:       68px;   /* border pad: seaweed lives here */
  --max:       1200px;
  --gap:       clamp(28px, 3.5vw, 52px);
  --section-v: clamp(110px, 13vw, 170px);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Base ───────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  background: var(--off-white);
  color: var(--ocean);
  font-family: 'EB Garamond', Georgia, serif;
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.78;
  -webkit-font-smoothing: antialiased;
  padding: var(--bdr) var(--bdr) 0;
  overflow-x: hidden;
  position: relative; /* anchor for absolute-positioned canvas */
}

/* ── Seaweed canvas — absolute, spans full page height ──────── */
/*
   body has margin:0 (from reset) so its border-box origin == viewport origin.
   position:absolute on a direct child of body therefore places the element
   relative to the body border-box, i.e. top-left of the viewport.
   We do NOT subtract --bdr here; the body's padding is irrelevant to the
   canvas because the canvas sits in the padding-box origin, not the content-box.
   JS sets width = window.innerWidth and height = full document height.
*/
#seaweed-canvas {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 900;
}

/* ── Scroll-reveal base (JS adds .visible) ──────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: none; }

/* ═══════════════════════════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════════════════════════ */
.site-nav {
  max-width: var(--max);
  margin: 0 auto;
  padding-bottom: clamp(24px, 3vw, 40px);
  border-bottom: 1px solid rgba(28, 61, 90, 0.11);
  margin-bottom: clamp(36px, 5vw, 60px);
  position: relative;
  z-index: 10;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Brand: logo + name */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}
.nav-brand:hover { opacity: 0.72; }

.nav-logo {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.nav-name {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: clamp(0.82rem, 1vw, 1rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ocean);
}

/* Nav links */
.nav-links {
  display: flex;
  gap: 44px;
  align-items: center;
}
.nav-links a {
  font-family: 'EB Garamond', serif;
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ocean);
  position: relative;
  transition: color 0.22s ease;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -3px;
  width: 0; height: 1px;
  background: var(--teal);
  transition: width 0.28s var(--ease-out);
}
.nav-links a:hover { color: var(--teal); }
.nav-links a:hover::after { width: 100%; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--ocean);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ═══════════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════════ */
.hero-section {
  max-width: var(--max);
  margin: 0 auto;
  min-height: calc(100vh - var(--bdr) * 2 - 130px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: center;
  padding-bottom: var(--section-v);
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-family: 'EB Garamond', serif;
  font-size: 0.78rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--teal-text);
  opacity: 0.85;
  margin-bottom: 16px;
}

.hero-heading {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: clamp(2.4rem, 4vw, 4.4rem);
  line-height: 1.1;
  color: var(--ocean);
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}

.hero-sub {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: clamp(1.05rem, 1.3vw, 1.3rem);
  line-height: 1.62;
  color: var(--ocean);
  opacity: 0.76;
  max-width: 38ch;
  margin-bottom: 32px;
}

.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-image {
  overflow: hidden;
  height: clamp(380px, 70vh, 680px);
  position: relative;
  z-index: 1;
}
.hero-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 8s ease;
}
.hero-image:hover img { transform: scale(1.04); }

/* ── Shared buttons ─────────────────────────────────────────── */
.btn-primary,
.btn-outline,
.btn-submit {
  display: inline-block;
  font-family: 'EB Garamond', serif;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.26s ease, color 0.26s ease, border-color 0.26s ease, transform 0.18s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--navy);
  color: #ffffff;
  padding: 14px 30px;
  border: 1px solid var(--navy);
}
.btn-primary:hover {
  background: var(--teal);
  border-color: var(--teal);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--ocean);
  padding: 14px 30px;
  border: 1px solid rgba(28, 61, 90, 0.45);
}
.btn-outline:hover {
  border-color: var(--teal);
  color: var(--teal);
  transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════════════════════
   SHARED SECTION UTILITIES
═══════════════════════════════════════════════════════════════ */
.section-inner {
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.section-heading {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: clamp(1.7rem, 2.5vw, 2.8rem);
  letter-spacing: 0.05em;
  text-align: center;
  color: var(--ocean);
  margin-bottom: 16px;
}

.section-rule-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: clamp(36px, 4.5vw, 58px);
}
.section-rule {
  display: block;
  width: clamp(50px, 6vw, 90px);
  height: 1px;
  background: rgba(28, 61, 90, 0.22);
}

/* ═══════════════════════════════════════════════════════════════
   GALLERY SECTION
═══════════════════════════════════════════════════════════════ */
.gallery-section {
  padding: var(--section-v) 0;
  border-top: 1px solid rgba(28, 61, 90, 0.09);
  background: var(--off-white);
  position: relative;
  z-index: 1;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.8vw, 38px);
}

/* ── Gallery Card — the whole card is a link ── */
.card {
  display: flex;
  flex-direction: column;
  color: inherit;
  cursor: pointer;
  /* Scroll reveal handled via JS .visible class */
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}
.card.visible { opacity: 1; transform: none; }

/* Image wrap */
.card-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 5 / 6;
  background: #e8e5e0;
  line-height: 0;
}
.card-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.75s var(--ease-out);
}
.card:hover .card-img-wrap img { transform: scale(1.04); }

/* Hover overlay */
.card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 43, 62, 0.62);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 0.82rem;
  font-style: italic;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.92);
  opacity: 0;
  transition: opacity 0.38s ease;
}
.card:hover .card-overlay { opacity: 1; }

/* Sold state */
.card.sold .card-img-wrap img { opacity: 0.50; filter: grayscale(20%); }
.sold-overlay { opacity: 1 !important; background: rgba(13, 43, 62, 0.35) !important; }
.sold-stamp {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.1rem, 2.2vw, 1.8rem);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  padding: 6px 18px;
  transform: rotate(-18deg);
  display: block;
}

/* Card body */
.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 0 0;
  gap: 5px;
}

.card-title {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: clamp(1rem, 1.4vw, 1.3rem);
  color: var(--ocean);
  line-height: 1.2;
  transition: color 0.22s ease;
}
.card:hover .card-title { color: var(--teal); }

.card-material {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 0.84rem;
  color: var(--ocean);
  opacity: 0.60;
  line-height: 1.35;
}

.card-price {
  font-family: 'EB Garamond', serif;
  font-size: clamp(0.95rem, 1.2vw, 1.15rem);
  font-weight: 500;
  color: var(--navy);
  margin-top: 4px;
}

.btn-card-cta {
  display: block;
  width: 100%;
  padding: 11px;
  background: var(--navy);
  color: #ffffff;
  font-family: 'EB Garamond', serif;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
  margin-top: auto;
  padding-top: 14px;
  border: 1px solid var(--navy);
  transition: background 0.25s ease, border-color 0.25s ease;
}
.card:hover .btn-card-cta { background: var(--teal); border-color: var(--teal); }

.btn-card-cta--sold {
  background: #9aa8b0 !important;
  border-color: #9aa8b0 !important;
  cursor: default;
  font-style: italic;
}

/* ═══════════════════════════════════════════════════════════════
   ABOUT SECTION
═══════════════════════════════════════════════════════════════ */
.about-section {
  padding: var(--section-v) 0;
  border-top: 1px solid rgba(28, 61, 90, 0.09);
  background: var(--off-white);
  position: relative;
  z-index: 1;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}

.about-portrait {
  overflow: hidden;
  background: #e0ddd8;
  aspect-ratio: 2 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-portrait img {
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center;
}

.about-name {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: clamp(2rem, 2.8vw, 3.2rem);
  color: var(--ocean);
  line-height: 1.1;
  margin-bottom: 10px;
}

.about-subtitle {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  color: var(--teal-text);
  letter-spacing: 0.04em;
  margin-bottom: 28px;
}

.about-body p {
  font-size: clamp(1rem, 1.1vw, 1.12rem);
  line-height: 1.92;
  color: var(--ocean);
  margin-bottom: 16px;
}

.about-footer-line {
  font-style: italic;
  font-size: 0.9rem;
  color: var(--teal-text);
  margin-top: 20px;
  opacity: 0.88;
}

/* ═══════════════════════════════════════════════════════════════
   COMMISSION SECTION
═══════════════════════════════════════════════════════════════ */
.commission-section {
  padding: var(--section-v) 0 calc(var(--section-v) + 24px);
  border-top: 1px solid rgba(28, 61, 90, 0.09);
  background: var(--off-white);
  position: relative;
  z-index: 1;
}

.commission-inner {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.commission-section .section-heading { margin-bottom: 12px; }

.commission-sub {
  font-style: italic;
  font-size: clamp(1rem, 1.15vw, 1.15rem);
  color: var(--teal-text);
  text-align: center;
  line-height: 1.62;
  margin-bottom: clamp(32px, 4vw, 50px);
  opacity: 0.9;
}

.commission-form { display: flex; flex-direction: column; gap: 0; }

/* ── Floating label fields ── */
.field-float {
  position: relative;
  margin-bottom: 30px;
}
.field-float input,
.field-float textarea {
  display: block;
  width: 100%;
  padding: 24px 14px 8px;
  border: 1px solid rgba(28, 61, 90, 0.42);
  background: transparent;
  color: var(--ocean);
  font-family: 'EB Garamond', serif;
  font-size: 1rem;
  line-height: 1.55;
  outline: none;
  transition: border-color 0.22s ease;
  -webkit-appearance: none; appearance: none;
}
.field-float input:focus,
.field-float textarea:focus { border-color: var(--teal); }

.field-float label {
  position: absolute;
  left: 14px; top: 16px;
  font-family: 'EB Garamond', serif;
  font-size: 1rem;
  color: var(--ocean);
  opacity: 0.52;
  pointer-events: none;
  transform-origin: left top;
  transition: top 0.22s ease, font-size 0.22s ease, opacity 0.22s ease, color 0.22s ease;
  line-height: 1;
}
.field-float input:focus + label,
.field-float input:not(:placeholder-shown) + label,
.field-float textarea:focus + label,
.field-float textarea:not(:placeholder-shown) + label {
  top: 7px;
  font-size: 0.7rem;
  letter-spacing: 0.07em;
  opacity: 1;
  color: var(--teal-text);
}
/* Hint textarea — label always floated (has real placeholder text) */
.field-float--hint label {
  top: 7px; font-size: 0.7rem; letter-spacing: 0.07em; opacity: 1; color: var(--teal-text);
}

.field-float textarea { resize: vertical; min-height: 80px; }
.field-float textarea::placeholder {
  color: rgba(28, 61, 90, 0.30);
  font-style: italic;
  font-size: 0.95rem;
}

/* Select */
.field-select-wrap { margin-bottom: 30px; display: flex; flex-direction: column; gap: 8px; }
.select-label {
  font-family: 'EB Garamond', serif;
  font-size: 0.7rem;
  letter-spacing: 0.07em;
  color: var(--teal-text);
}
.select-shell { position: relative; }
.select-shell select {
  display: block; width: 100%;
  padding: 14px 40px 14px 14px;
  border: 1px solid rgba(28, 61, 90, 0.42);
  background: transparent; color: var(--ocean);
  font-family: 'EB Garamond', serif; font-size: 1rem;
  outline: none; cursor: pointer;
  -webkit-appearance: none; appearance: none;
  transition: border-color 0.22s ease;
}
.select-shell select:focus { border-color: var(--teal); }
.select-arrow {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  pointer-events: none; width: 10px; height: 6px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%231C3D5A' opacity='.45'/%3E%3C/svg%3E") no-repeat center/contain;
}

/* Submit */
.btn-submit {
  display: block; width: 100%;
  padding: 16px;
  background: var(--navy); color: #ffffff;
  border: 1px solid var(--navy);
  font-family: 'Playfair Display', serif;
  font-size: 0.88rem; letter-spacing: 0.26em;
  text-transform: uppercase; cursor: pointer;
  margin-top: 8px;
  transition: background 0.26s ease, border-color 0.26s ease, transform 0.18s ease;
}
.btn-submit:hover { background: var(--teal); border-color: var(--teal); transform: translateY(-1px); }

.form-success {
  padding: 28px 0; font-family: 'Playfair Display', serif;
  font-style: italic; font-size: 1.2rem;
  color: var(--teal); text-align: center;
}

.commission-divider { border: none; border-top: 1px solid rgba(28,61,90,0.11); margin: 34px 0 22px; }

.commission-email-line {
  font-style: italic; font-size: 0.94rem;
  color: var(--ocean); text-align: center; opacity: 0.68;
}
.commission-email-line a {
  color: var(--teal-text); border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.commission-email-line a:hover { border-bottom-color: var(--teal-text); }

/* ═══════════════════════════════════════════════════════════════
   STUDIO NOTES — newsletter strip
═══════════════════════════════════════════════════════════════ */
.studio-notes {
  border-top: 1px solid rgba(28, 61, 90, 0.09);
  padding: clamp(40px, 5vw, 64px) 0;
  background: var(--off-white);
  position: relative;
  z-index: 1;
}

.notes-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.notes-heading {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: clamp(1.1rem, 1.4vw, 1.4rem);
  color: var(--ocean);
  margin-bottom: 6px;
}
.notes-text p {
  font-style: italic;
  font-size: 0.92rem;
  color: var(--ocean);
  opacity: 0.68;
  max-width: 42ch;
}

.notes-form {
  display: flex;
  gap: 0;
  flex-shrink: 0;
}
.notes-form input {
  padding: 12px 18px;
  border: 1px solid rgba(28,61,90,0.35);
  border-right: none;
  background: transparent;
  color: var(--ocean);
  font-family: 'EB Garamond', serif;
  font-size: 0.94rem;
  outline: none;
  width: 240px;
  transition: border-color 0.22s ease;
}
.notes-form input:focus { border-color: var(--teal); }
.notes-form input::placeholder { color: rgba(28,61,90,0.38); font-style: italic; }
.notes-form button {
  padding: 12px 22px;
  background: var(--ocean);
  color: #fff;
  border: 1px solid var(--ocean);
  font-family: 'EB Garamond', serif;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.25s ease;
}
.notes-form button:hover { background: var(--teal); border-color: var(--teal); }

/* ═══════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--navy);
  margin: 0 calc(-1 * var(--bdr)) calc(-1 * var(--bdr));
  padding: 56px var(--bdr) calc(var(--bdr) + 20px);
  position: relative;
  z-index: 1;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}

.footer-logo {
  height: 52px;
  width: auto;
  object-fit: contain;
  opacity: 0.85;
  margin-bottom: 12px;
  filter: brightness(10); /* make logo visible on dark bg */
}

.footer-name {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: clamp(0.82rem, 1vw, 0.96rem);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 6px;
}
.footer-tagline {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.45);
}

.footer-nav-heading {
  font-family: 'EB Garamond', serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
  margin-bottom: 14px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  font-family: 'EB Garamond', serif;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.72);
  transition: color 0.2s ease;
}
.footer-nav a:hover { color: #ffffff; }

.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-contact a {
  font-family: 'EB Garamond', serif;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.72);
  transition: color 0.2s ease;
}
.footer-contact a:hover { color: #ffffff; }

.footer-instagram {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.72) !important;
}

.footer-rule {
  max-width: var(--max);
  margin: 0 auto 18px;
  border: none;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-copy {
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
  font-family: 'EB Garamond', serif;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  color: rgba(180,210,225,0.48);
}

/* ═══════════════════════════════════════════════════════════════
   BACK TO TOP BUTTON
═══════════════════════════════════════════════════════════════ */
.back-to-top {
  position: fixed;
  bottom: calc(var(--bdr) + 20px);
  right: calc(var(--bdr) + 16px);
  width: 40px; height: 40px;
  background: var(--navy);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
  z-index: 800;
  pointer-events: none;
}
.back-to-top.visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.back-to-top:hover { background: var(--teal); }

/* ═══════════════════════════════════════════════════════════════
   SPLASH SCREEN
═══════════════════════════════════════════════════════════════ */
.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  pointer-events: all;
  transition: opacity 0.65s ease;
}

.splash-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

#splash-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.splash-center {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  text-align: center;
}

.splash-center.visible {
  opacity: 1;
  transform: none;
}

.splash-logo {
  height: 68px;
  width: auto;
  object-fit: contain;
  filter: brightness(10);
  opacity: 0.92;
}

.splash-title {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: clamp(1.6rem, 3.5vw, 3rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1.1;
}

.splash-sub {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: clamp(0.92rem, 1.4vw, 1.2rem);
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.06em;
}

.splash-enter {
  position: absolute;
  bottom: clamp(32px, 5vh, 60px);
  z-index: 1;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.38);
  color: rgba(255, 255, 255, 0.70);
  font-family: 'EB Garamond', serif;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  padding: 12px 32px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.5s ease 1.2s, border-color 0.22s ease, color 0.22s ease;
}

.splash-enter.visible {
  opacity: 1;
}

.splash-enter:hover {
  border-color: rgba(255, 255, 255, 0.72);
  color: #ffffff;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   Tested breakpoints: 320 · 375 · 768 · 1024 · 1440 · 1920+
═══════════════════════════════════════════════════════════════ */

/* ── 1024px — tablet landscape ── */
@media (max-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }

  /* Reduce hero font slightly so it doesn't crowd at tablet widths */
  .hero-heading { font-size: clamp(2.2rem, 4.5vw, 3.6rem); }
}

/* ── 768px — tablet portrait / large mobile ── */
@media (max-width: 768px) {
  :root { --bdr: 20px; }

  /* Nav: hamburger mode */
  .nav-toggle { display: flex; }
  .nav-inner { flex-wrap: wrap; }
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    width: 100%;
    padding: 12px 0 4px;
    border-top: 1px solid rgba(28,61,90,0.08);
    margin-top: 12px;
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 10px 0; border-bottom: 1px solid rgba(28,61,90,0.06); }

  /* Hero: stack */
  .hero-section {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-bottom: 60px;
  }
  .hero-image { height: clamp(240px, 55vw, 400px); order: -1; }
  .hero-heading { font-size: clamp(2rem, 8.5vw, 2.8rem); }

  /* Gallery: 1 col */
  .gallery-grid { grid-template-columns: 1fr; }

  /* About: stack */
  .about-inner { grid-template-columns: 1fr; gap: 28px; }
  .about-portrait { aspect-ratio: 4 / 3; max-height: 320px; }

  /* Commission form: comfortable on tablet */
  .commission-inner { padding: 0 4px; }

  /* Studio notes: stack */
  .notes-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .notes-form {
    width: 100%;
    display: flex;
  }
  .notes-form input {
    flex: 1;
    width: auto;
    min-width: 0;
  }

  /* Footer: stack */
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }

  /* Back to top: keep inside viewport */
  .back-to-top {
    bottom: 20px;
    right: 20px;
  }
}

/* ── 480px — mid-mobile ── */
@media (max-width: 480px) {
  :root { --bdr: 16px; }

  /* Hero: tighter vertical rhythm */
  .hero-section { padding-bottom: 44px; }
  .hero-image { height: clamp(220px, 60vw, 320px); }
  .hero-heading { font-size: clamp(1.85rem, 9vw, 2.4rem); }
  .hero-sub { font-size: 1rem; }

  /* Buttons: full-width stack on very small screens */
  .hero-buttons { flex-direction: column; gap: 12px; }
  .btn-primary,
  .btn-outline { display: block; text-align: center; white-space: normal; }

  /* Nav brand: truncate name gracefully */
  .nav-name { font-size: 0.75rem; letter-spacing: 0.18em; }

  /* Gallery: give cards a bit of breathing room */
  .gallery-section { padding: clamp(60px, 10vw, 110px) 0; }

  /* Notes form: ensure button doesn't shrink awkwardly */
  .notes-form button { padding: 12px 16px; }

  /* Footer padding tighter */
  .site-footer { padding-top: 44px; }
}

/* ── 375px — standard small phone ── */
@media (max-width: 375px) {
  :root { --bdr: 14px; }

  .hero-heading { font-size: clamp(1.7rem, 10vw, 2.2rem); }
  .nav-logo { height: 34px; }

  /* Commission: full-width, no horizontal scroll */
  .field-float input,
  .field-float textarea,
  .select-shell select { font-size: 0.94rem; }
}

/* ── 320px — smallest supported viewport ── */
@media (max-width: 320px) {
  :root { --bdr: 12px; }

  .nav-name { display: none; } /* show only logo at 320 */
  .hero-heading { font-size: 1.65rem; }
  .section-heading { font-size: 1.5rem; }

  /* Ensure nothing overflows horizontally */
  .commission-inner,
  .notes-inner,
  .footer-inner { overflow-x: hidden; }
}

/* ── 1440px+ — wide desktop: cap content comfortably ── */
@media (min-width: 1440px) {
  :root { --bdr: 80px; }
}

/* ── 1920px+ — ultra-wide: generous border padding ── */
@media (min-width: 1920px) {
  :root { --bdr: 100px; }
}
