/* ===== Design tokens ===== */
:root {
  --ink: #26221B;
  --ink-2: #332C22;
  --ink-soft: #6B6459;
  --paper: #F4EFE3;
  --paper-alt: #ECE4D2;
  --card: #FBF8F0;
  --line: #DDD3BC;
  --accent: #A45A34;
  --accent-dark: #7C4326;
  --accent-soft: #F1DDC9;
  --accent-light: #D99B72;

  --font-head: 'Instrument Sans', sans-serif;
  --font-body: 'Instrument Sans', sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-card: 0 20px 40px -24px rgba(38, 34, 27, 0.35);

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;

  --dur: 220ms;
  --ease: cubic-bezier(.22,.9,.32,1);
}

/* ===== Reset ===== */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.12; margin: 0 0 var(--space-2); letter-spacing: -0.01em; }
p { margin: 0 0 var(--space-2); color: var(--ink-soft); }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ol, ul { list-style: none; margin: 0; padding: 0; }

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-3);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 20px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.eyebrow {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: var(--space-2);
}
.eyebrow-light { color: var(--accent-light); }

.accent-text { color: var(--accent); }

/* Marker-swipe: hand-drawn highlighter mark behind a key word. Used sparingly. */
.marker-swipe {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.marker-swipe::after {
  content: "";
  position: absolute;
  left: -3%;
  right: -3%;
  bottom: 0.02em;
  height: 0.4em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 24' preserveAspectRatio='none'%3E%3Cpath d='M2 15 Q18 6 38 13 T76 11 T114 15 T152 8 T190 13 T228 9 T266 14 T297 11' stroke='%23A45A34' stroke-width='11' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  z-index: -1;
  opacity: 0.5;
}
.marker-swipe.on-dark::after { opacity: 0.65; }

/* Sketchy filter: subtle hand-drawn wobble for the strengths icon set. */
.strength-icon svg { filter: url(#sketchy); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  border: 2px solid transparent;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: var(--accent); color: var(--paper); }
.btn-accent:hover { background: var(--accent-dark); color: var(--paper); }
.btn-ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-ghost-dark { background: transparent; border-color: rgba(244,239,227,0.4); color: var(--paper); }
.btn-ghost-dark:hover { background: rgba(244,239,227,0.12); border-color: var(--paper); }
.btn-lg { padding: 16px 30px; font-size: 16px; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 239, 227, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.logo .dot { color: var(--accent); }
.nav { display: flex; gap: var(--space-4); }
.nav a {
  font-weight: 500;
  font-size: 15px;
  position: relative;
  padding: 4px 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width var(--dur) var(--ease);
}
.nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: var(--space-3); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

.mobile-nav {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.mobile-nav a {
  padding: 16px var(--space-3);
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}

/* ===== Hero ===== */
.hero { padding: var(--space-7) 0 var(--space-5); overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-6);
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  max-width: 14ch;
}
.hero-sub {
  font-size: 18px;
  max-width: 46ch;
  margin-bottom: var(--space-4);
}
.hero-ctas { display: flex; gap: var(--space-2); flex-wrap: wrap; }

.hero-media { position: relative; justify-self: center; }
.hero-photo-frame {
  width: min(360px, 80vw);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: var(--ink);
  aspect-ratio: 4 / 5;
}
.hero-photo-frame img { width: 100%; height: 100%; object-fit: cover; }

.hero-badge {
  position: absolute;
  left: -18px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 18px 10px 10px;
  box-shadow: var(--shadow-card);
}
.hero-badge-ring {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.hero-badge-text { font-family: var(--font-head); font-weight: 600; font-size: 14px; }

/* Marquee */
.brand-marquee {
  margin-top: var(--space-6);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: var(--space-3) 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  gap: var(--space-6);
  animation: marquee 26s linear infinite;
}
.marquee-track span {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ===== Stats ===== */
.stats-band { background: var(--ink); color: var(--paper); padding: var(--space-5) 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}
.stat-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--accent);
  margin-bottom: 6px;
}
.stat-label { color: rgba(244,239,227,0.75); font-size: 14.5px; max-width: 26ch; margin: 0; }

/* ===== Section spacing ===== */
section { padding: var(--space-7) 0; }
.section-head { max-width: 60ch; margin-bottom: var(--space-5); }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); }

/* ===== About ===== */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--space-6);
  align-items: center;
}
.about-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: 50% 12%;
  width: 100%;
}
.about-copy h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.link-arrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--accent-dark);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
  margin-top: var(--space-2);
  transition: color var(--dur) var(--ease);
}
.link-arrow:hover { color: var(--ink); }

/* ===== Strengths ===== */
.strengths { background: var(--paper-alt); }
.strengths-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}
.strength-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.strength-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.strength-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  margin-bottom: var(--space-2);
}
.strength-icon svg { width: 22px; height: 22px; }
.strength-card h3 { font-size: 17px; margin-bottom: 8px; }
.strength-card p { font-size: 14.5px; margin: 0; }

/* ===== Work ===== */
.work-card {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--ink);
  text-align: left;
}
.work-card img, .work-card video {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 420ms var(--ease);
}
.work-card:hover img, .work-card:hover video { transform: scale(1.05); }
.play-chip {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

/* Brand grid (homepage) */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}
.brand-card {
  position: relative;
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--ink);
}
.brand-card img, .brand-card video {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 420ms var(--ease);
}
.brand-card:hover img, .brand-card:hover video { transform: scale(1.06); }
.brand-card-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--space-3) var(--space-2);
  background: linear-gradient(to top, rgba(38,34,27,0.94), rgba(38,34,27,0));
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.brand-card-name { font-family: var(--font-head); font-weight: 700; color: var(--paper); font-size: 16px; }
.brand-card-desc { color: rgba(244,239,227,0.75); font-size: 12.5px; }

/* Brand case-study page */
.brand-page-hero {
  padding: var(--space-5) 0 var(--space-4);
  border-bottom: 1px solid var(--line);
}
.brand-page-hero + .work { padding: var(--space-4) 0; }
.brand-page-nav-section { padding: var(--space-3) 0; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: var(--space-3);
}
.back-link:hover { color: var(--accent-dark); }
.brand-page-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); max-width: 20ch; }
.brand-page-hook { font-family: var(--font-head); font-weight: 600; color: var(--accent-dark); font-size: 18px; }
.brand-page-nav {
  display: flex;
  justify-content: space-between;
  padding: var(--space-3) 0 0;
  border-top: 1px solid var(--line);
}

/* Case study */
.case-study {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-6);
}
.case-study-tag {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--accent-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: var(--space-2);
}
.case-study-head h3 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  max-width: 24ch;
}
.case-study-hook {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--accent-dark);
  font-size: 17px;
}
.case-study-copy {
  max-width: 72ch;
  margin-top: var(--space-2);
}
.case-study-copy p { margin-bottom: var(--space-2); }
.case-study-copy strong { color: var(--ink); }

.case-study-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2);
  margin-top: var(--space-3);
}
.gallery-thumb { aspect-ratio: 1/1; border-radius: var(--radius-sm); }

.gallery-placeholder {
  aspect-ratio: 1/1;
  border-radius: var(--radius-sm);
  border: 2px dashed var(--line);
  background: var(--paper-alt);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  padding: var(--space-2);
}
.gallery-placeholder svg { width: 28px; height: 28px; color: var(--ink-soft); }
.gallery-placeholder span { font-family: var(--font-head); font-weight: 500; font-size: 13px; color: var(--ink-soft); }

/* Menu booklet showcase */
.menu-booklet {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
}
.menu-booklet-head { max-width: 60ch; margin-bottom: var(--space-4); }
.menu-booklet-head h3 { font-size: 1.5rem; margin-bottom: 8px; }
.menu-booklet-head p { margin-bottom: var(--space-3); }
.menu-booklet-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2);
}
.menu-page-thumb { aspect-ratio: 5/7; border-radius: var(--radius-sm); }

/* ===== Experience timeline ===== */
.timeline { display: flex; flex-direction: column; }
.timeline-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--space-4);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--line);
}
.timeline-item:last-child { border-bottom: none; }
.timeline-when {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--accent-dark);
  font-size: 14.5px;
  letter-spacing: 0.02em;
}
.timeline-body h3 { font-size: 19px; margin-bottom: 6px; }
.timeline-body h3 span { font-weight: 500; color: var(--ink-soft); font-size: 16px; }
.timeline-body p { margin: 0; max-width: 65ch; }
.timeline-item-edu .timeline-when { color: var(--ink-soft); }

/* ===== Contact ===== */
.contact { background: var(--ink); color: var(--paper); }
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-5);
  align-items: center;
}
.contact h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); color: var(--paper); }
.contact-sub { color: rgba(244,239,227,0.75); max-width: 40ch; }
.contact-actions { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); }
.contact-location { color: rgba(244,239,227,0.6); font-size: 14px; margin: 0; }

/* ===== Footer ===== */
.site-footer { background: var(--ink); border-top: 1px solid rgba(244,239,227,0.12); padding: var(--space-3) 0 var(--space-5); }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-inner p { color: rgba(244,239,227,0.55); font-size: 13.5px; margin: 0; }
.back-to-top { color: var(--paper); font-size: 13.5px; font-weight: 500; }
.back-to-top:hover { color: var(--accent); }

/* ===== Lightbox ===== */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(16, 14, 10, 0.92);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}
.lightbox-inner { max-width: 1000px; width: 100%; }
.lightbox-inner img, .lightbox-inner video {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  background: #000;
}
.lightbox-caption { color: var(--paper); text-align: center; margin-top: var(--space-2); font-size: 14.5px; }
.lightbox-close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(244,239,227,0.1);
  border: 1px solid rgba(244,239,227,0.3);
  color: var(--paper);
  font-size: 16px;
}
.lightbox-close:hover { background: var(--accent); border-color: var(--accent); color: var(--paper); }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 640ms var(--ease), transform 640ms var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 420px; }
  .strengths-grid { grid-template-columns: repeat(2, 1fr); }
  .case-study { padding: var(--space-4); }
  .case-study-gallery { grid-template-columns: repeat(3, 1fr); }
  .menu-booklet-gallery { grid-template-columns: repeat(3, 1fr); }
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .nav, .header-actions .btn { display: none; }
  .nav-toggle { display: flex; }
  .strengths-grid { grid-template-columns: 1fr; }
  .case-study-gallery { grid-template-columns: repeat(2, 1fr); }
  .menu-booklet-gallery { grid-template-columns: repeat(2, 1fr); }
  .brand-grid { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 1fr; gap: 6px; }
  section { padding: var(--space-6) 0; }
  .hero { padding-top: var(--space-6); }
}
