/* ===========================
   RESET & TOKENS
=========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Skip navigation link (accessibility) ── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 9999;
  background: var(--brown-dark);
  color: var(--parchment);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 10px 20px;
  border-radius: 4px;
  text-transform: uppercase;
  transition: top 0.2s;
  text-decoration: none;
}
.skip-link:focus {
  top: 16px;
  outline: 3px solid var(--rust);
  outline-offset: 2px;
}

/* ── Global focus-visible styles ── */
:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--rust);
  outline-offset: 3px;
  border-radius: 3px;
}

:root {
  --parchment:   #F5F0E8;
  --parchment-2: #EDE8DC;
  --brown-dark:  #2C2118;
  --brown-mid:   #5C4433;
  --brown-light: #725544;
  --brown-faint: #C8B89A;
  --border:      #D4C5AD;
  --white:       #FFFFFF;
  --rust:        #C4673A;
  --font-display: 'Cinzel', Georgia, serif;
  --font-heading: 'DM Serif Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --nav-h: 76px;
  --section-pad: 110px;
  --max-w: 1160px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--parchment);
  color: var(--brown-dark);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Page fade-in from splash */
.page-enter { animation: pageIn 0.8s ease both; }
@keyframes pageIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ===========================
   NAV
=========================== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(0px);
  height: var(--nav-h);
  transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
}

/* Solid bar once user scrolls — added by JS */
#navbar.scrolled {
  background: rgba(245, 240, 232, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo — centered */
.nav-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
  text-align: center;
}
.logo-main {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brown-dark);
}
.logo-sub {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brown-light);
}

/* Splash back link */
.nav-back-link {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brown-mid);
  transition: color 0.2s;
}
.nav-back-link:hover { color: var(--brown-dark); }

/* Desktop nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
}
.nav-links a {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brown-mid);
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--brown-dark); }
.nav-links a.active { color: var(--brown-dark); }

/* Events pill — visually separated from internal nav links */
.nav-links a.nav-events {
  color: var(--rust);
  border: 1px solid currentColor;
  border-radius: 20px;
  padding: 5px 14px;
  letter-spacing: 0.12em;
  transition: color 0.2s, background 0.2s;
}
.nav-links a.nav-events:hover {
  background: var(--rust);
  color: #fff;
}

/* ── Directory dropdown ── */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.nav-caret {
  font-size: 7px;
  transition: transform 0.25s ease;
  display: inline-block;
}
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--parchment);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 7px;
  min-width: 190px;
  box-shadow: 0 14px 34px rgba(44, 33, 24, 0.16);
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 1200;
}
/* Invisible bridge so the menu doesn't close in the gap */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px; left: 0; right: 0;
  height: 12px;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(5px);
}
.nav-dropdown:hover .nav-caret,
.nav-dropdown:focus-within .nav-caret { transform: rotate(180deg); }
.nav-dropdown-menu li { width: 100%; }
.nav-dropdown-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--brown-mid);
  white-space: nowrap;
  transition: background 0.18s, color 0.18s;
}
.nav-dropdown-menu a:hover {
  background: var(--parchment-2);
  color: var(--brown-dark);
}

/* Hamburger — mobile only */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--brown-dark);
  transition: opacity 0.2s, transform 0.2s;
}

/* Fullscreen overlay menu (thorgal-style) */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--brown-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  transform: translateY(-100%);
  transition: transform 0.55s cubic-bezier(0.76, 0, 0.24, 1);
}
.mobile-menu.open { transform: translateY(0); }

.menu-close {
  position: fixed;
  top: 28px; right: 36px;
  background: none;
  border: none;
  color: var(--parchment);
  font-size: 22px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
  font-family: var(--font-body);
  z-index: 201;
}
.menu-close:hover { opacity: 1; }

.mobile-menu ul { text-align: center; padding: 60px 0 48px; list-style: none; }
.mobile-menu li { margin: 4px 0; }

.mobile-link {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 18px;
  font-family: var(--font-heading);
  font-size: clamp(26px, 3.8vw, 44px);
  color: var(--parchment);
  transition: color 0.2s;
}
.mobile-link:hover { color: var(--brown-faint); }

.mobile-num {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--brown-light);
  opacity: 0.7;
}

/* ===========================
   HERO — SCROLL VIDEO SCRUB
=========================== */

/* Tall container: scroll distance maps to video time.
   500vh = ~4× viewport of scroll = covers both videos */
.video-scroll-container {
  position: relative;
  height: 500vh;
  padding-top: var(--nav-h);
}

/* Sticky panel stays pinned below the nav so the hero image
   never gets covered by the nav bar */
.video-sticky {
  position: sticky;
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

/* Canvas fills the sticky panel — JS draws frames into it */
#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Loading bar */
.hero-loader {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  width: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.hero-loader-bar {
  width: 100%;
  height: 1px;
  background: rgba(212, 197, 173, 0.3);
}
.hero-loader-fill {
  height: 100%;
  width: 0%;
  background: var(--border);
  transition: width 0.1s linear;
}

/* Gradient so text reads over footage */
.hero-full-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to bottom,
    rgba(245, 240, 232, 0)   20%,
    rgba(245, 240, 232, 0.45) 65%,
    rgba(245, 240, 232, 0.88) 100%
  );
  pointer-events: none;
}

/* Hero title — sits above overlay, fades on scroll via JS */
.hero-full-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 0 40px 100px;
  max-width: 820px;
  animation: fadeUp 1s ease 0.4s both;
  transition: opacity 0.15s linear;
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brown-mid);
  margin-bottom: 18px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 400;
  line-height: 1.06;
  color: var(--brown-dark);
  margin-bottom: 20px;
}
.hero-title em {
  font-style: italic;
  color: var(--brown-light);
}

.hero-sub {
  font-size: 17px;
  line-height: 1.75;
  color: var(--brown-mid);
  font-weight: 300;
  max-width: 520px;
  margin: 0 auto;
}

/* Scroll prompt */
.scroll-prompt {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: fadeUp 1s ease 1s both;
  transition: opacity 0.2s linear;
}
.scroll-label {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brown-light);
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: var(--border);
  animation: scrollPulse 1.8s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.2); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===========================
   ARTSWA DESIGNATION BAND
=========================== */
.designation-band {
  background: var(--brown-dark);
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}

/* Subtle texture on dark band */
.designation-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(139,107,82,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.designation-band-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 160px 1fr 220px;
  align-items: center;
  gap: 56px;
}

/* Pelican medallion — warm circle on dark bg */
.desig-medallion {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--parchment);
  padding: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1px rgba(212,197,173,0.2), 0 8px 32px rgba(0,0,0,0.3);
}
.desig-medallion img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Central text block */
.desig-text { color: var(--parchment); }

.desig-eyebrow {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brown-faint);
  margin-bottom: 12px;
}

.desig-headline {
  font-family: var(--font-heading);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--parchment);
  margin-bottom: 16px;
}
.desig-headline em {
  font-style: italic;
  color: var(--brown-faint);
}

.desig-body {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(245,240,232,0.82);
  font-weight: 300;
  max-width: 460px;
}

/* ArtsWA logo column */
.desig-artswa {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding-left: 40px;
  border-left: 1px solid rgba(212,197,173,0.15);
}

.desig-certified {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.55);
}

.desig-artswa img {
  width: 160px;
  height: auto;
  display: block;
  object-fit: contain;
  opacity: 0.9;
}

@media (max-width: 680px) {
  .designation-band-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }
  .desig-medallion { margin: 0 auto; }
  .desig-body { margin: 0 auto; }
  .desig-artswa {
    align-items: center;
    border-left: none;
    border-top: 1px solid rgba(212,197,173,0.15);
    padding-left: 0;
    padding-top: 28px;
    width: 100%;
  }
}

/* ===========================
   PORTAL SECTIONS (thorgal-style)
=========================== */
.portal-section {
  padding: 72px 0 64px;
  position: relative;
}

.portal-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
}

/* Large background section number */
.portal-number {
  font-family: var(--font-display);
  font-size: clamp(100px, 14vw, 180px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--brown-dark);
  opacity: 0.05;
  line-height: 1;
  position: absolute;
  top: -40px;
  left: 24px;
  pointer-events: none;
  user-select: none;
}

/* Section header centered */
.portal-header {
  text-align: center;
  margin-bottom: 40px;
}

/* Portal divider — thin full-width line between sections */
.portal-divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  opacity: 0.6;
}

/* Keep old .section refs working */
.section { padding: var(--section-pad) 0; }
.section--main { background: transparent; }
.section--alt  { background: transparent; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-label {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brown-light);
  margin-bottom: 14px;
}

h2 {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--brown-dark);
  margin-bottom: 20px;
}

.body-text {
  font-size: 16px;
  line-height: 1.85;
  color: var(--brown-mid);
  font-weight: 300;
  max-width: 540px;
  margin-bottom: 20px;
}
.body-text.centered { margin: 0 auto 20px; text-align: center; }

.link-arrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--brown-dark);
  border-bottom: 1px solid var(--brown-faint);
  padding-bottom: 2px;
  display: inline-flex;
  gap: 8px;
  transition: color 0.2s, border-color 0.2s;
}
.link-arrow:hover { color: var(--brown-light); border-color: var(--brown-light); }

/* ===========================
   ABOUT
=========================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.about-img {
  height: 560px;
  overflow: hidden;
}
.about-text .section-label { text-align: left; }
.about-text h2 { text-align: left; }

/* ===========================
   MAP
=========================== */
.pdf-embed {
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 32px;
}
.pdf-embed iframe { display: block; }

.map-download {
  display: flex;
  justify-content: center;
}

/* ===========================
   PILL BUTTONS
=========================== */
.btn-pill {
  display: inline-block;
  padding: 13px 36px;
  border: 1.5px solid var(--brown-dark);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brown-dark);
  background: transparent;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.btn-pill:hover {
  background: var(--brown-dark);
  color: var(--parchment);
}
.btn-pill--dark {
  background: var(--brown-dark);
  color: var(--parchment);
  border-color: var(--brown-dark);
}
.btn-pill--dark:hover {
  background: var(--brown-mid);
  border-color: var(--brown-mid);
}

/* ===========================
   SOCIALS
=========================== */
.social-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 640px;
  margin: 0 auto;
}

.social-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 32px;
  background: var(--parchment);
  border: 1px solid var(--border);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.social-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(44, 33, 24, 0.10);
}

.social-icon {
  width: 44px; height: 44px;
  margin-bottom: 20px;
  color: var(--brown-mid);
}
.social-icon svg { width: 100%; height: 100%; }

.social-name {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brown-dark);
  margin-bottom: 6px;
}
.social-handle {
  font-size: 13px;
  color: var(--brown-light);
  margin-bottom: 20px;
}
.social-cta {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brown-mid);
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
}

/* ===========================
   CONTACT
=========================== */
.contact-wrap { max-width: 680px; }

.contact-form { text-align: left; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 0;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}
.form-group label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brown-dark);
  font-family: var(--font-display);
}
.form-group label span { color: var(--brown-light); }

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 0;
  border: none;
  border-bottom: 1px solid var(--border);
  background: transparent;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--brown-dark);
  outline: none; /* replaced by explicit :focus style below */
  transition: border-color 0.3s;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--brown-faint); }
.form-group input:focus,
.form-group textarea:focus {
  border-bottom-color: var(--rust);
  outline: none; /* border-bottom serves as visible focus indicator */
  box-shadow: 0 2px 0 0 var(--rust);
}
.form-group textarea { resize: vertical; min-height: 100px; }

.form-submit {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-top: 8px;
}
.form-note { font-size: 13px; color: var(--brown-light); }

/* ===========================
   BOTTOM COMBINED STRIP
=========================== */
.portal-section--compact {
  padding: 48px 0 56px;
}
.portal-section--compact .portal-number { display: none; }

.bottom-strip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.bottom-strip-socials {
  display: flex;
  align-items: center;
  gap: 24px;
}
.bottom-strip-socials .section-label { margin-bottom: 0; }

.bottom-social-links {
  display: flex;
  gap: 20px;
}

.bottom-social-link {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brown-mid);
  transition: color 0.2s;
}
.bottom-social-link:hover { color: var(--brown-dark); }
.bottom-social-link svg {
  width: 14px; height: 14px;
  flex-shrink: 0;
}

/* 4-image equal strip */
.bottom-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  height: 220px;
}

.bottom-gallery-item {
  overflow: hidden;
  height: 220px;
  will-change: transform;
  transform: translateZ(0);
}
.bottom-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}
.bottom-gallery-item:hover img { transform: scale(1.05); }

/* ===========================
   SKETCHPAD PROMO
=========================== */
.sketch-promo {
  background: var(--brown-dark);
  padding: 80px 0 72px;
}
.sketch-promo-inner {
  max-width: 1020px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
}
.sketch-promo-label {
  color: var(--brown-faint) !important;
  opacity: 0.95;
}
.sketch-promo-heading {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 400;
  color: var(--parchment);
  line-height: 1.1;
  margin: 12px 0 20px;
}
.sketch-promo-heading em {
  color: var(--brown-faint, #c4a882);
}
.sketch-promo-sub {
  font-size: 15px;
  color: var(--parchment);
  font-weight: 300;
  opacity: 0.82;
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 340px;
}
.sketch-promo-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 28px;
  border: 1px solid rgba(197,168,130,0.4);
  border-radius: 2px;
  color: var(--parchment);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: all 0.2s;
}
.sketch-promo-btn:hover {
  background: var(--parchment);
  color: var(--brown-dark);
  border-color: var(--parchment);
}

/* Canvas frame */
.sketch-promo-canvas-frame {
  position: relative;
  background: #faf7f2;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 4px 32px rgba(0,0,0,0.35);
}
#promoCanvas {
  display: block;
  width: 100%;
  cursor: crosshair;
  touch-action: none;
}
.sketch-promo-tools {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(44,33,24,0.75);
  backdrop-filter: blur(8px);
  border-radius: 20px;
  padding: 6px 12px;
}
.promo-tool {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: var(--c);
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s;
  flex-shrink: 0;
}
.promo-tool:hover { transform: scale(1.2); }
.promo-tool.active { border-color: #fff; transform: scale(1.15); }
.promo-tool-divider {
  width: 1px;
  height: 16px;
  background: rgba(255,255,255,0.2);
}
.promo-erase {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  font-size: 11px;
  padding: 0 2px;
  transition: color 0.15s;
  line-height: 1;
}
.promo-erase:hover { color: #fff; }
.promo-erase.active { color: #fff; }
.sketch-promo-hint {
  text-align: center;
  font-size: 11px;
  color: var(--brown-light);
  opacity: 0.55;
  margin-top: 12px;
  letter-spacing: 0.08em;
  font-family: var(--font-body);
}

@media (max-width: 768px) {
  .sketch-promo-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .sketch-promo-sub { max-width: none; }
}

/* ===========================
   IMAGE GALLERY
=========================== */
.image-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 340px 340px;
  gap: 16px;
}

.gallery-item { overflow: hidden; }
.gallery-item--large { grid-row: 1 / 3; }

.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.gallery-item:hover img { transform: scale(1.04); }

/* ===========================
   IMAGE REVEAL
=========================== */
.img-reveal { overflow: hidden; position: relative; }

.img-reveal::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--parchment-2);
  transform-origin: right;
  transform: scaleX(1);
  transition: transform 1.1s cubic-bezier(0.76, 0, 0.24, 1);
}
.section--main .img-reveal::before { background: var(--parchment); }
.gallery-item.img-reveal::before   { background: var(--brown-dark); }

.img-reveal-inner {
  width: 100%; height: 100%;
  transform: scale(1.08);
  transition: transform 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.img-reveal.revealed::before       { transform: scaleX(0); }
.img-reveal.revealed .img-reveal-inner { transform: scale(1); }

/* ===========================
   CANVAS UNROLL EFFECT
=========================== */

/* The wrapper is clipped at the bottom — updated by JS on scroll */
#canvasWrapper {
  will-change: clip-path;
  clip-path: inset(0 0 100% 0);
  background: var(--parchment);
}

/* The decorative canvas roll edge — fixed at bottom of viewport */
.canvas-roll-edge {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

/* Roll edge: looks like the leading edge of a physical canvas scroll */
.roll-line {
  width: 100%;
  height: 36px;
  background: linear-gradient(
    to top,
    rgba(92, 68, 51, 0.30) 0%,
    rgba(139, 107, 82, 0.14) 50%,
    transparent 100%
  );
  border-top: 2px solid rgba(92, 68, 51, 0.35);
  box-shadow: 0 -4px 18px rgba(92, 68, 51, 0.12);
}

.canvas-roll-edge.hidden {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  #canvasWrapper { clip-path: none !important; }
  .canvas-roll-edge { display: none; }
}

/* ===========================
   SCROLL FADE-UP
   (GSAP sets initial opacity:0 — no CSS needed here)
=========================== */
.fade-up { will-change: transform, opacity; }

/* ===========================
   FOOTER
=========================== */
.site-footer {
  background: var(--brown-dark);
  padding: 44px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--parchment);
  text-transform: uppercase;
}
.footer-copy {
  font-size: 12px;
  color: rgba(245,240,232,0.62);
  letter-spacing: 0.04em;
}
.footer-back {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.62);
  border-bottom: 1px solid rgba(245,240,232,0.2);
  padding-bottom: 1px;
  transition: color 0.2s;
  white-space: nowrap;
}
.footer-back:hover { color: var(--parchment); }

/* Built-by attribution strip */
.footer-built-by {
  border-top: 1px solid rgba(245,240,232,0.1);
  margin-top: 28px;
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.footer-built-by-text {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(245,240,232,0.62);
  text-transform: uppercase;
  white-space: nowrap;
}
.footer-built-by-logo {
  height: 48px;
  width: auto;
  opacity: 0.75;
  object-fit: contain;
  transition: opacity 0.2s;
}
.footer-built-by-logo:hover { opacity: 1; }

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 1024px) {
  :root { --section-pad: 80px; }
  .about-grid { gap: 48px; }
  .image-gallery { grid-template-rows: 280px 280px; }
}

@media (max-width: 768px) {
  :root { --section-pad: 64px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-inner { justify-content: space-between; }
  .nav-logo { margin: 0 auto; }

  .container { padding: 0 24px; }
  .tagline-inner { padding: 0 24px; }

  .about-grid { grid-template-columns: 1fr; }
  .about-img { height: 320px; }

  .social-cards { grid-template-columns: 1fr; max-width: 380px; }

  .form-row { grid-template-columns: 1fr; }

  .image-gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 220px 220px;
  }
  .gallery-item--large { grid-column: 1 / 3; grid-row: 1 / 2; }

  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .image-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .gallery-item--large { grid-column: auto; grid-row: auto; }
  .gallery-item { height: 260px; }
}

@media (prefers-reduced-motion: reduce) {
  .fade-up, .img-reveal-inner { transition: none; opacity: 1; transform: none; }
  .img-reveal::before { display: none; }
  .tagline-eyebrow, .tagline-headline, .tagline-divider, .tagline-sub { animation: none; opacity: 1; }
}
