:root {
  /* palette — muted pastels: browns, orange, dusty blue (no pink) */
  --cream:   #FAF6EF;
  --cream-2: #F2EADC;
  --ink:     #463B2E;   /* warm dark brown for text */
  --ink-soft:#8B7A63;   /* muted warm brown-gray */
  --brown:   #6E5236;
  --terra:   #C07A45;   /* muted orange */
  --terra-soft:#EBCFB0; /* warm peach-tan */
  --blue:    #6E91A4;   /* muted dusty blue */
  --blue-soft:#CDDCE2;
  --sand:    #E9D9BF;
  --tan:     #E2D0B6;
  --line:    #E7DAC4;

  --display: 'Chango', 'Fredoka', system-ui, sans-serif;
  --body:    'Hanken Grotesk', system-ui, sans-serif;

  --maxw: 1240px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

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

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

.glyph { color: var(--ink-soft); font-weight: 400; }

/* ---------- NAV ---------- */
header.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(251, 247, 242, 0.78);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  font-family: var(--display);
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}
.brand .star { color: var(--ink-soft); font-weight: 400; margin-left: 4px; }
nav.links {
  display: flex;
  gap: 30px;
  align-items: center;
}
nav.links a {
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 0.01em;
  color: var(--ink);
  padding: 4px 0;
  position: relative;
  transition: color .2s ease;
}
nav.links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 1.5px;
  background: var(--ink);
  transition: right .25s ease;
}
nav.links a:hover { color: var(--ink); }
nav.links a:hover::after { right: 0; }

/* hamburger toggle — hidden on desktop, shown on narrow screens */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  margin: -8px 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  nav.links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 28px 16px;
    background: rgba(251, 247, 242, 0.97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
  }
  nav.links.open { display: flex; }
  nav.links a { font-size: 18px; padding: 13px 0; }
  nav.links a::after { display: none; }
}

/* ---------- HERO ---------- */
.hero {
  text-align: center;
  padding: clamp(70px, 13vw, 150px) 0 clamp(48px, 8vw, 90px);
  position: relative;
  overflow: hidden;
}
.hero h1 {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: clamp(38px, 11.5vw, 138px);
  line-height: 0.95;
  letter-spacing: -0.005em;
  margin: 0;
  color: var(--ink);
  overflow-wrap: break-word;
}
.hero .deco {
  position: absolute;
  font-size: clamp(22px, 3vw, 34px);
  color: var(--ink-soft);
  opacity: .55;
  user-select: none;
  pointer-events: none;
}
.hero .deco.d1 { top: 16%;  left: 12%; }
.hero .deco.d2 { top: 30%;  right: 13%; }
.hero .deco.d3 { bottom: 24%; left: 18%; }
.hero .deco.d4 { bottom: 30%; right: 16%; }
@media (max-width: 640px){ .hero .deco { display:none; } }

/* ---------- MARQUEE ---------- */
.marquee {
  background: var(--terra-soft);
  border-top: 1px solid rgba(74,66,59,.08);
  border-bottom: 1px solid rgba(74,66,59,.08);
  overflow: hidden;
  padding: 15px 0;
  white-space: nowrap;
  user-select: none;
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  will-change: transform;
  animation: scroll-x 38s linear infinite;
}
.marquee span {
  font-family: var(--display);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 0 4px;
}
.marquee .g { color: rgba(74,66,59,.5); padding: 0 22px; }
@keyframes scroll-x {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce){
  .marquee-track { animation: none; }
}

/* ---------- SECTION SHELL ---------- */
section { scroll-margin-top: 78px; }
.section-pad { padding: clamp(64px, 10vw, 120px) 0; }
.eyebrow {
  font-size: 13px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 14px;
}
.h2 {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1;
  letter-spacing: 0;
  margin: 0;
}
.h2 .glyph { font-size: 0.55em; margin-left: 12px; vertical-align: 0.12em; }

/* ---------- ABOUT ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.about-copy p {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.72;
  color: var(--ink);
  max-width: 56ch;
  margin: 26px 0 0;
  text-wrap: pretty;
}
.about-copy p:first-of-type { margin-top: 26px; }
.portrait {
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  overflow: hidden;
  background: var(--tan);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; display:block; }
@media (max-width: 760px){
  .about-grid { grid-template-columns: 1fr; }
  .portrait { max-width: 360px; }
}

/* ---------- GALLERY ---------- */
.gallery-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.gallery-head .note { color: var(--ink-soft); font-size: 14.5px; }
.masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 980px){ .masonry { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .masonry { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.masonry figure {
  margin: 0;
  aspect-ratio: 3 / 2;
  border-radius: 7px;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--cream-2);
  position: relative;
  line-height: 0;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease;
}
.masonry figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.masonry figure:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px -18px rgba(74,66,59,.4);
}
.masonry figure::after {
  content: "✧";
  position: absolute;
  top: 12px; right: 14px;
  color: #fff;
  font-size: 15px;
  opacity: 0;
  text-shadow: 0 1px 6px rgba(0,0,0,.4);
  transition: opacity .3s ease;
}
.masonry figure:hover::after { opacity: .9; }

/* ---------- LIGHTBOX ---------- */
.lb {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(40, 35, 30, 0.82);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vw;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s;
}
.lb.open { opacity: 1; visibility: visible; }
.lb img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 6px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.6);
  transform: scale(.97);
  transition: transform .3s cubic-bezier(.2,.7,.2,1);
}
.lb.open img { transform: scale(1); }
.lb-btn {
  position: absolute;
  background: rgba(251,247,242,.92);
  color: var(--ink);
  border: none;
  width: 48px; height: 48px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--body);
  transition: background .2s ease, transform .2s ease;
}
.lb-btn:hover { background: #fff; transform: scale(1.06); }
.lb-close { top: 20px; right: 20px; font-size: 22px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lb-prev:hover, .lb-next:hover { transform: translateY(-50%) scale(1.06); }
.lb-count {
  position: absolute;
  bottom: 22px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.85);
  font-size: 13px;
  letter-spacing: .12em;
}
@media (max-width: 600px){ .lb-prev, .lb-next { display: none; } }

/* ---------- CONTACT ---------- */
#contact { background: var(--blue-soft); border-top: 1px solid rgba(74,66,59,.07); padding-bottom: clamp(28px, 4vw, 44px); }
.contact-inner { text-align: center; }
.contact-inner .h2 { margin-bottom: 14px; }
.contact-lead {
  color: var(--ink-soft);
  max-width: 460px;
  margin: 0 auto 44px;
  font-size: 16px;
}
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}
.contact-links a {
  font-family: var(--body);
  font-weight: 600;
  font-size: clamp(20px, 3.6vw, 34px);
  text-decoration: none;
  color: var(--ink);
  line-height: 1.18;
  position: relative;
  transition: opacity .2s ease;
}
.contact-links a span.tiny {
  font-family: var(--body);
  font-size: 14px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: block;
  margin-bottom: 2px;
  font-weight: 500;
}
.contact-links a .word { background-image: linear-gradient(var(--ink),var(--ink)); background-size: 0% 1.5px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .3s ease; padding-bottom: 3px; }
.contact-links a:hover .word { background-size: 100% 1.5px; }
.contact-pair { margin: 0 0 30px; }

/* ---------- ABOUT META (CV blocks) ---------- */
.about-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 52px);
  margin-top: clamp(48px, 7vw, 88px);
}
.meta-block { border-top: 1.5px solid var(--line); padding-top: 18px; }
.meta-label {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.03em;
  color: var(--terra);
  margin: 0 0 14px;
}
.meta-item {
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 11px;
  max-width: 34ch;
  text-wrap: pretty;
}
.meta-item:last-child { margin-bottom: 0; }
@media (max-width: 760px){
  .about-meta { grid-template-columns: 1fr; gap: 0; }
  .meta-block { margin-top: 26px; }
}

/* ---------- QUOTE ---------- */
.quote-band { background: var(--blue-soft); padding: 8px 0 18px; }
.quote {
  max-width: 560px;
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.55;
  font-style: italic;
  color: var(--ink-soft);
  margin: 0;
}
.quote .src {
  display: block;
  font-style: normal;
  letter-spacing: 0.04em;
  margin-top: 8px;
  font-size: 14px;
  opacity: .85;
}

/* ---------- FOOTER ---------- */
footer.foot {
  background: var(--blue-soft);
  text-align: center;
  padding: 14px 0 40px;
  color: var(--ink-soft);
  font-size: 13px;
  letter-spacing: .04em;
}
