/* ==========================================================================
   Ashalon Productions — Design System
   Palette: near-black desk, bone/cream cardstock, muted brass accent.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,900;1,400;1,500&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg: #0a0a0b;
  --bg-2: #131311;
  --card: #efe6d3;
  --card-shade: #e2d6ba;
  --ink: #1b1712;
  --ink-soft: #3a342a;
  --muted: #8a8378;
  --muted-on-dark: #7f7a70;
  --accent: #a9884f;
  --accent-soft: rgba(169, 136, 79, 0.35);
  --line: rgba(239, 230, 211, 0.14);
  --shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7), 0 10px 24px -12px rgba(0, 0, 0, 0.6);

  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--card);
  font-family: var(--sans);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Ambient desk lighting — soft vignette + faint film grain */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 50% 30%, rgba(255, 250, 235, 0.055), transparent 60%),
    radial-gradient(ellipse 120% 90% at 50% 100%, rgba(0, 0, 0, 0.55), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg) 55%);
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }

::selection { background: var(--accent-soft); color: var(--ink); }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

/* ---------------------------------------------------------------------- */
/* Intro — a literal clapperboard, arm hinged open                        */
/* ---------------------------------------------------------------------- */

.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #0a0a0a;
}

.clap-base {
  position: absolute;
  inset: 0;
  background: #131110;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: clamp(16px, 2.6vw, 28px);
  padding: 24% clamp(24px, 6vw, 90px) clamp(30px, 5vw, 56px);
}

.clap-field {
  border-bottom: 2px solid rgba(245, 240, 230, 0.78);
  padding-bottom: clamp(8px, 1.4vw, 14px);
}

.clap-label {
  display: block;
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: clamp(0.66rem, 1.3vw, 0.9rem);
  color: #f5f0e6;
}

.clap-value {
  display: block;
  margin-top: clamp(4px, 1vw, 10px);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1rem, 2.6vw, 1.7rem);
  color: #f5f0e6;
}

.clap-thirds {
  display: flex;
  gap: clamp(16px, 4vw, 50px);
}

.clap-thirds .clap-field { flex: 1; min-width: 0; }

.clap-arm {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 22%;
  transform-origin: 0% 100%;
  transform: rotate(0deg);
  background-image: repeating-linear-gradient(45deg, #efe6d3 0 34px, #17140f 34px 68px);
  border-bottom: 4px solid #000;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.55);
  animation: clapOpen 0.85s cubic-bezier(.4, 1.15, .4, 1) 0.6s both;
}

@keyframes clapOpen {
  0%   { transform: rotate(0deg); }
  78%  { transform: rotate(-34deg); }
  100% { transform: rotate(-31deg); }
}

.clap-hinge {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: clamp(30px, 5vw, 60px);
  clip-path: polygon(0 0, 100% 22%, 100% 100%, 0 100%);
  background: linear-gradient(160deg, #3a2f1c, #0f0b06 75%);
}

.clap-hinge span {
  position: absolute;
  left: 34%;
  width: clamp(6px, 0.9vw, 11px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #a9884f, #241d10 75%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}
.clap-hinge span:nth-child(1) { top: 26%; }
.clap-hinge span:nth-child(2) { top: 62%; }

body.intro-active { overflow: hidden; height: 100vh; }

/* ---------------------------------------------------------------------- */
/* Site chrome — header / footer                                          */
/* ---------------------------------------------------------------------- */

.site {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 28px;
  justify-content: space-between;
  padding: clamp(20px, 4vw, 40px) clamp(20px, 6vw, 64px) 0;
}

.brand-mark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: var(--card);
  white-space: nowrap;
}

.brand-mark small {
  display: block;
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.34em;
  color: var(--muted-on-dark);
  font-weight: 500;
  margin-top: 2px;
  white-space: nowrap;
}

.header-tag {
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  color: var(--muted-on-dark);
  text-transform: uppercase;
  display: none;
}

@media (min-width: 720px) {
  .header-tag { display: block; }
}

main { flex: 1; }

.site-footer {
  padding: 28px clamp(20px, 6vw, 64px) 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  margin-top: clamp(60px, 10vw, 120px);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--muted-on-dark);
}

.site-footer a { color: var(--muted-on-dark); border-bottom: 1px solid transparent; }
.site-footer a:hover { color: var(--card); border-color: var(--accent); }

/* ---------------------------------------------------------------------- */
/* Sticky-note navigation                                                  */
/* ---------------------------------------------------------------------- */

.note-nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(14px, 3vw, 26px);
  justify-content: center;
}

.sticky-note {
  position: relative;
  background: var(--card);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 18px 22px 16px;
  min-width: 128px;
  text-align: center;
  box-shadow: var(--shadow);
  transform: rotate(var(--rot, 0deg));
  transition: transform 0.35s cubic-bezier(.2,.9,.3,1.2), box-shadow 0.35s ease;
  background-image:
    linear-gradient(180deg, rgba(0,0,0,0.05), transparent 14%),
    linear-gradient(180deg, transparent, rgba(0,0,0,0.03));
}

.sticky-note::before {
  content: '';
  position: absolute;
  top: -7px;
  left: 50%;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle at 32% 30%, #4a3a22, #1b140a 70%);
  box-shadow: 0 2px 3px rgba(0,0,0,0.55);
}

.note-nav:not(.compact) .sticky-note:nth-child(1) { --rot: -3.5deg; }
.note-nav:not(.compact) .sticky-note:nth-child(2) { --rot: 2deg; margin-top: 10px; }
.note-nav:not(.compact) .sticky-note:nth-child(3) { --rot: -1.5deg; }
.note-nav:not(.compact) .sticky-note:nth-child(4) { --rot: 3deg; margin-top: 8px; }

.sticky-note:hover,
.sticky-note:focus-visible {
  transform: translateY(-6px) rotate(0deg) scale(1.03);
  box-shadow: 0 40px 70px -22px rgba(0,0,0,0.75), 0 14px 26px -10px rgba(0,0,0,0.6);
}

.sticky-note .note-line {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.72rem;
  color: var(--ink-soft);
  margin-top: 5px;
  opacity: 0.75;
}

/* compact variant used in inner-page headers */
.note-nav.compact { justify-content: flex-end; gap: 10px 12px; row-gap: 16px; }
.note-nav.compact .sticky-note {
  min-width: 0;
  padding: 10px 16px 9px;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  transform: rotate(-1.2deg);
}
.note-nav.compact .sticky-note:nth-child(even) { transform: rotate(1.2deg); }
.note-nav.compact .sticky-note::before { width: 9px; height: 9px; top: -5px; }
.note-nav.compact .sticky-note .note-line { display: none; }
.note-nav.compact .sticky-note.is-current { background: var(--card-shade); }

/* variant used when notes sit directly on the cream card (needs its own edge) */
.note-nav.on-card .sticky-note {
  background: #f8f3e6;
  border: 1px solid rgba(27, 23, 18, 0.1);
  box-shadow: 0 22px 40px -16px rgba(27, 23, 18, 0.35), 0 6px 14px -6px rgba(27, 23, 18, 0.22);
}

.note-nav.on-card .sticky-note:hover,
.note-nav.on-card .sticky-note:focus-visible {
  box-shadow: 0 30px 50px -16px rgba(27, 23, 18, 0.4), 0 10px 18px -6px rgba(27, 23, 18, 0.28);
}

/* notes appear onto the card once it's open — timed after the board lifts */
.hero { --pop-base: 3.55s; }

.note-nav.on-card .sticky-note {
  opacity: 0;
  animation: notePop 0.6s cubic-bezier(.22, .85, .3, 1.3) both;
  animation-delay: calc(var(--pop-base, 0.3s) + var(--pop-stagger, 0s));
}
.note-nav.on-card .sticky-note:nth-child(1) { --pop-stagger: 0s; }
.note-nav.on-card .sticky-note:nth-child(2) { --pop-stagger: 0.1s; }
.note-nav.on-card .sticky-note:nth-child(3) { --pop-stagger: 0.2s; }
.note-nav.on-card .sticky-note:nth-child(4) { --pop-stagger: 0.3s; }

@keyframes notePop {
  0%   { opacity: 0; transform: translateY(24px) scale(0.88) rotate(var(--rot, 0deg)); }
  65%  { opacity: 1; transform: translateY(-4px) scale(1.03) rotate(var(--rot, 0deg)); }
  100% { opacity: 1; transform: translateY(0) scale(1) rotate(var(--rot, 0deg)); }
}

.card-credit {
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.card-credit a:hover { color: var(--accent); }

/* ---------------------------------------------------------------------- */
/* Landing — the business card, full-bleed                                */
/* ---------------------------------------------------------------------- */

.hero {
  min-height: 100vh;
  width: 100%;
  background: var(--card);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: clamp(14px, 2.4vw, 22px);
  padding: clamp(70px, 10vh, 110px) 6vw;
  position: relative;
  background-image: linear-gradient(160deg, rgba(255,255,255,0.55), transparent 42%);
  opacity: 0;
  transform-origin: 50% 50%;
  animation: cardReveal 1.3s cubic-bezier(.22, .65, .24, 1) 2.3s forwards;
}

@keyframes cardReveal {
  0%   { opacity: 0; transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1); }
}

.hero .note-nav.on-card { margin-top: clamp(6px, 1.4vw, 12px); }
.hero .hero-note { margin-top: clamp(20px, 3.4vw, 34px); }
.hero .card-credit { margin-top: clamp(18px, 3vw, 30px); }

.hero::after {
  content: '';
  position: absolute;
  inset: clamp(14px, 2.6vw, 36px);
  border: 1px solid rgba(27, 23, 18, 0.16);
  pointer-events: none;
}

.card-word {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.6rem, 9vw, 5.2rem);
  letter-spacing: 0.05em;
  text-shadow: 0 1px 0 rgba(255,255,255,0.6), 0 -1px 0 rgba(0,0,0,0.12);
}

.card-sub {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(0.7rem, 2vw, 1rem);
  letter-spacing: 0.5em;
  margin-top: 10px;
  color: var(--ink-soft);
}

.card-rule {
  width: min(360px, 40%);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  margin: clamp(20px, 3.5vw, 40px) 0;
}

.card-tagline {
  font-family: var(--sans);
  font-size: clamp(0.68rem, 1.8vw, 0.9rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.card-meta {
  margin-top: clamp(14px, 2.5vw, 22px);
  font-family: var(--sans);
  font-size: clamp(0.62rem, 1.4vw, 0.75rem);
  letter-spacing: 0.1em;
  color: var(--muted);
}

.hero-note {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-soft);
  font-size: clamp(0.85rem, 1.8vw, 1.05rem);
  text-align: center;
  max-width: 480px;
  opacity: 0.8;
}

/* ---------------------------------------------------------------------- */
/* Inner-page layout                                                      */
/* ---------------------------------------------------------------------- */

.page-head {
  padding: clamp(50px, 9vw, 90px) clamp(20px, 6vw, 64px) 0;
  max-width: 1100px;
}

.page-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  margin: 10px 0 0;
  color: var(--card);
}

.page-lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--muted-on-dark);
  max-width: 640px;
  margin-top: 18px;
  line-height: 1.6;
}

.content-wrap {
  padding: clamp(40px, 6vw, 70px) clamp(20px, 6vw, 64px) 0;
  max-width: 1100px;
}

.section-label {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  display: block;
}

/* Services — hover-reveal panels */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 20px;
}

@media (max-width: 980px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
}

.service-panel {
  position: relative;
  background: var(--bg);
  min-height: clamp(280px, 38vw, 440px);
  padding: clamp(22px, 2.6vw, 30px) clamp(20px, 2.4vw, 26px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  cursor: default;
  transition: background 0.4s ease;
}

.service-panel:hover,
.service-panel:focus-visible {
  background: #17140f;
  outline: none;
}

.service-panel .num {
  font-family: var(--serif);
  font-style: italic;
  color: var(--accent);
  font-size: 0.85rem;
  position: absolute;
  top: clamp(22px, 2.6vw, 30px);
  left: clamp(20px, 2.4vw, 26px);
}

.service-panel h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.3rem;
  margin: 0;
  color: var(--card);
  transition: transform 0.4s ease;
}

.service-panel .panel-rule {
  display: block;
  width: 0;
  height: 1px;
  background: var(--accent);
  margin: 12px 0 0;
  transition: width 0.4s ease 0.05s;
}

.service-panel:hover .panel-rule,
.service-panel:focus-visible .panel-rule {
  width: 34px;
}

.service-panel p {
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--muted-on-dark);
  margin: 0;
  max-height: 0;
  opacity: 0;
  transform: translateY(6px);
  overflow: hidden;
  transition: max-height 0.45s ease, opacity 0.35s ease, transform 0.35s ease, margin-top 0.45s ease;
}

.service-panel:hover p,
.service-panel:focus-visible p {
  max-height: 220px;
  opacity: 1;
  transform: translateY(0);
  margin-top: 12px;
  transition: max-height 0.45s ease, opacity 0.4s ease 0.08s, transform 0.4s ease 0.08s, margin-top 0.45s ease;
}

@media (max-width: 560px) {
  .service-panel p {
    max-height: none;
    opacity: 1;
    transform: none;
    margin-top: 12px;
  }
  .service-panel .panel-rule { width: 34px; }
}

.prose {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--muted-on-dark);
  max-width: 660px;
}

.prose + .prose { margin-top: 1.4em; }

.prose strong { color: var(--card); font-weight: 600; }

.pull-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  line-height: 1.5;
  color: var(--card);
  max-width: 760px;
  margin: 40px 0;
  padding-left: 26px;
  border-left: 2px solid var(--accent);
}

/* Team — full-bleed white strip, 3 panels evenly split */
.team-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: clamp(30px, 5vw, 50px);
  background: #ffffff;
  padding: 4px;
}

@media (max-width: 720px) {
  .team-strip { grid-template-columns: 1fr; }
}

.team-panel {
  position: relative;
  min-height: clamp(360px, 78vh, 760px);
  overflow: hidden;
  cursor: default;
  outline: none;
}

.team-panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(1) contrast(1.05);
  transition: filter 0.5s ease, transform 0.7s ease;
}

.team-panel img.is-color { filter: none; }

.team-panel:hover img,
.team-panel:focus-visible img {
  transform: scale(1.04);
}

.team-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: clamp(20px, 3vw, 34px) clamp(20px, 3vw, 30px);
  background: linear-gradient(180deg, transparent, rgba(10, 8, 5, 0.78) 75%);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.team-panel:hover .team-caption,
.team-panel:focus-visible .team-caption {
  opacity: 1;
  transform: translateY(0);
}

.team-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  margin: 0;
  color: #f5f0e6;
}

.team-role {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #e4dbc9;
  margin: 8px 0 0;
}

@media (max-width: 720px) {
  .team-caption {
    opacity: 1;
    transform: none;
  }
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  max-width: 720px;
  margin-top: 26px;
}

.contact-card {
  background: var(--card);
  color: var(--ink);
  padding: 26px 24px;
  box-shadow: var(--shadow);
}

.contact-card .eyebrow { color: var(--accent); }

.contact-card a.value,
.contact-card .value {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  margin-top: 8px;
  word-break: break-word;
}

.contact-card a.value:hover { color: var(--accent); }

/* Portfolio */
.reel {
  display: grid;
  gap: 40px;
  margin-top: 24px;
}

.reel-item {
  border: 1px solid var(--line);
  background: rgba(239, 230, 211, 0.02);
}

.reel-frame {
  aspect-ratio: 16 / 9;
  background: #000;
  width: 100%;
}

.reel-frame video { width: 100%; height: 100%; object-fit: cover; }
.reel-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

.reel-caption {
  padding: 18px 24px 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.reel-caption h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  margin: 0;
  color: var(--card);
}

.reel-caption span {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
}

.event-card {
  margin-top: 40px;
  border: 1px solid var(--line);
  padding: clamp(24px, 5vw, 44px);
  background: linear-gradient(160deg, rgba(169,136,79,0.07), transparent 60%);
}

.event-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 20px 30px;
  margin-top: 24px;
}

.event-facts dt {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.event-facts dd {
  margin: 6px 0 0;
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--card);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.tag {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  padding: 6px 12px;
  color: var(--muted-on-dark);
}

@media (max-width: 640px) {
  .note-nav.compact { justify-content: center; }
}
