/* ─── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #FAF7F2;
  --bg-soft:   #F3EDE2;
  --bg-card:   #FFFFFF;
  --text:      #2B2620;
  --text-muted:#8A8073;
  --border:    #E7DECE;
  --accent:    #B4823E;
  --accent-strong: #2B2620;
  --radius:    12px;
  --radius-lg: 18px;
  --nav-h:     84px;
  --ease:      cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-serif:'Fraunces', Georgia, serif;
}

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

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ─── Utilities ─────────────────────────────────────────────── */
.container {
  width: min(1120px, 100%);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 60px);
}

.label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section { padding-block: clamp(80px, 10vw, 130px); border-top: 1px solid var(--border); }

.section__header { margin-bottom: clamp(40px, 5vw, 60px); }

.section__header h2 {
  font-family: var(--font-serif);
  font-size: clamp(30px, 3.8vw, 48px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 34px;
  background: var(--accent-strong);
  color: var(--bg);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(43, 38, 32, 0.2);
}

/* ─── Scroll Reveal ─────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }

/* ─── Navigation ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), backdrop-filter 0.3s;
}

.nav.scrolled {
  background: rgba(250, 247, 242, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: min(1120px, 100%);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 60px);
}

.nav__logo { display: flex; align-items: center; }

.nav__logo-img {
  width: auto;
  height: 64px;
  display: block;
  opacity: 0;
  transform: scale(0.85);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav__link {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
  position: relative;
  transition: color 0.2s;
}

.nav__link::before {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.25s var(--ease);
}

.nav__link:hover { color: var(--text); }
.nav__link:hover::before { width: 100%; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.nav__toggle.open span:first-child { transform: translateY(6.5px) rotate(45deg); }
.nav__toggle.open span:last-child  { transform: translateY(-6.5px) rotate(-45deg); }

/* ─── Hero ───────────────────────────────────────────────────── */
.hero {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--nav-h);
  padding-bottom: 110px;
  position: relative;
  background: var(--bg);
}

.hero::before {
  content: '';
  position: absolute;
  top: 12%; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 560px;
  background: radial-gradient(ellipse, rgba(180, 130, 62, 0.12) 0%, transparent 70%);
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 900px;
  padding-inline: clamp(24px, 6vw, 60px);
}

.hero__logo {
  height: clamp(140px, 16vw, 220px);
  width: auto;
  margin-bottom: 8px;
}

.hero__name {
  font-family: var(--font-serif);
  font-size: clamp(44px, 7vw, 84px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.hero__role {
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 22px;
}

.hero__sub {
  font-size: clamp(14px, 1.5vw, 16px);
  color: var(--text-muted);
  margin-top: 20px;
  max-width: 480px;
  line-height: 1.75;
}

.hero .btn {
  margin-top: 36px;
}

.hero__scroll {
  position: absolute;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 1;
}

.hero__scroll span {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero__scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50%       { opacity: 1; }
}

/* ─── Work / Campaign Cards ──────────────────────────────────── */
.work { background: var(--bg); }

.campaign-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.campaign-card {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  display: block;
  width: 100%;
  text-align: left;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  cursor: pointer;
  overflow: hidden;
  font: inherit;
  color: inherit;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.campaign-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(43, 38, 32, 0.1);
}

.campaign-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.campaign-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.campaign-card:hover .campaign-card__media img { transform: scale(1.05); }

.campaign-card__info { padding: 28px 28px 8px; }

.campaign-card__tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 10px;
}

.campaign-card__title {
  font-family: var(--font-serif);
  font-size: 25px;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.campaign-card__count {
  font-size: 13px;
  color: var(--text-muted);
}

.campaign-card__cta {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 22px 28px 28px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--accent);
}

.campaign-card__cta span { transition: transform 0.2s var(--ease); }
.campaign-card:hover .campaign-card__cta span { transform: translateX(4px); }

/* ─── Lightbox / Campaign Gallery ────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}

.lightbox.open { opacity: 1; visibility: visible; }

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(43, 38, 32, 0.55);
  backdrop-filter: blur(6px);
}

.lightbox__panel {
  position: relative;
  width: min(1000px, 100%);
  max-height: 88vh;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.3s var(--ease);
}

.lightbox.open .lightbox__panel { transform: translateY(0) scale(1); }

.lightbox__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 26px 28px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.lightbox__eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.lightbox__title { font-family: var(--font-serif); font-size: 23px; font-weight: 400; letter-spacing: -0.01em; }

.lightbox__close {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  flex-shrink: 0;
}

.lightbox__close:hover { border-color: var(--accent); color: var(--accent); }

.lightbox__grid {
  padding: 28px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.lightbox__grid img,
.lightbox__grid video {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: block;
}

body.lightbox-locked { overflow: hidden; }

/* ─── Featured Projects ──────────────────────────────────────── */
.projects { background: var(--bg-soft); }

.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.project-card {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  margin: 0;
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  cursor: pointer;
}

.project-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(43, 38, 32, 0.1);
}

.project-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.project-card__index {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

.project-card__year {
  font-size: 11.5px;
  letter-spacing: 0.03em;
  color: var(--text-muted);
}

.project-card__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 5px 12px;
  margin-bottom: 16px;
  border: 1px solid rgba(180, 130, 62, 0.3);
  border-radius: 100px;
  background: rgba(180, 130, 62, 0.1);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
}

.project-card__status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.project-card__title {
  font-family: var(--font-serif);
  font-size: 23px;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.project-card__role {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.project-card__desc {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-muted);
  flex: 1;
  margin-bottom: 24px;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 26px;
}

.project-card__tags span {
  font-size: 11px;
  font-weight: 500;
  padding: 5px 11px;
  border-radius: 100px;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.project-card__link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
}

.project-card__link span { transition: transform 0.2s var(--ease); }
.project-card:hover .project-card__link span { transform: translateX(4px); }

/* ─── Project Detail Modal ───────────────────────────────────── */
.pmodal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}

.pmodal.open { opacity: 1; visibility: visible; }

.pmodal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(43, 38, 32, 0.55);
  backdrop-filter: blur(6px);
}

.pmodal__panel {
  position: relative;
  width: min(720px, 100%);
  max-height: 88vh;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.3s var(--ease);
}

.pmodal.open .pmodal__panel { transform: translateY(0) scale(1); }

.pmodal__scroll { overflow-y: auto; }

.pmodal__body { padding: 44px 40px 40px; }

.pmodal__close {
  position: absolute;
  top: 20px; right: 20px;
  z-index: 2;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 38px; height: 38px;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(43, 38, 32, 0.12);
  transition: border-color 0.2s, color 0.2s;
}

.pmodal__close:hover { border-color: var(--accent); color: var(--accent); }

.pmodal__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 5px 12px;
  margin-bottom: 16px;
  border: 1px solid rgba(180, 130, 62, 0.3);
  border-radius: 100px;
  background: rgba(180, 130, 62, 0.1);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
}

.pmodal__status:empty { display: none; }
.pmodal__status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.pmodal__title {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.pmodal__role {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.pmodal__section { margin-bottom: 26px; }

.pmodal__section h4 {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 12px;
}

.pmodal__section p {
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--text-muted);
}

.pmodal__list { list-style: none; }

.pmodal__list li {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--text-muted);
  padding-left: 20px;
  position: relative;
  margin-bottom: 8px;
}

.pmodal__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.pmodal__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 30px;
}

.pmodal__tags span {
  font-size: 11.5px;
  font-weight: 500;
  padding: 6px 13px;
  border-radius: 100px;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.pmodal__actions {
  display: flex;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.pmodal__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--accent-strong);
  color: var(--bg);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  transition: transform 0.2s var(--ease);
}

.pmodal__btn:hover { transform: translateY(-2px); }

.pmodal__btn--ghost {
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

body.pmodal-locked { overflow: hidden; }

/* ─── About ──────────────────────────────────────────────────── */
.about { background: var(--bg); }

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(48px, 8vw, 100px);
  align-items: center;
}

.about__image { position: relative; }

.about__img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  border: 1px solid var(--border);
}

.about__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about__img-tag {
  position: absolute;
  bottom: -14px; left: -14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 10px 20px;
}

.about__img-tag span {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
}

.about__content h2 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
}

.about__text {
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.about__stats {
  display: flex;
  gap: 36px;
  margin-top: 40px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}

.stat__num {
  display: block;
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.stat__label { font-size: 11.5px; color: var(--text-muted); letter-spacing: 0.02em; }

/* ─── Skills ─────────────────────────────────────────────────── */
.skills { background: var(--bg-soft); }

.skills__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.skill-card {
  padding: 32px 28px;
  background: var(--bg-card);
  transition: background 0.25s var(--ease);
  position: relative;
}

.skill-card:hover { background: #FBF6EC; }

.skill-card__num {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  display: block;
  margin-bottom: 20px;
}

.skill-card h3 { font-size: 16px; font-weight: 500; margin-bottom: 10px; }

.skill-card p {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.skill-card__tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.skill-card__tools span {
  font-size: 11px;
  font-weight: 500;
  padding: 4px 11px;
  border-radius: 100px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

/* ─── Contact ────────────────────────────────────────────────── */
.contact { background: var(--bg); }

.contact__inner { max-width: 680px; }

.contact__sub {
  font-size: 14.5px;
  color: var(--text-muted);
  margin-top: 16px;
  margin-bottom: 48px;
}

.contact__links { display: flex; flex-direction: column; gap: 4px; }

.contact__link {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: border-color 0.22s var(--ease), transform 0.22s var(--ease);
}

.contact__link:hover {
  border-color: var(--accent);
  transform: translateX(6px);
}

.contact__link-label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  min-width: 90px;
}

.contact__link-val { font-size: 14px; flex: 1; color: var(--text); }

.contact__link-arrow {
  color: var(--text-muted);
  transition: transform 0.2s var(--ease), color 0.2s;
}

.contact__link:hover .contact__link-arrow { color: var(--accent); transform: translateX(4px); }

/* ─── Footer ─────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--border); padding-block: 28px; }

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.footer__copy { font-size: 12px; color: var(--text-muted); }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .projects__grid { grid-template-columns: 1fr; }
  .about__inner { grid-template-columns: 1fr; }
  .about__img-wrap { aspect-ratio: 3/2; }
}

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

@media (max-width: 640px) {
  .nav__logo-img { height: 46px; }
  .hero__logo { height: 100px; }

  .nav__links {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: rgba(250,247,242,0.97);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding-block: 16px;
    transform: translateY(-110%);
    transition: transform 0.35s var(--ease);
    border-bottom: 1px solid var(--border);
  }
  .nav__links.open { transform: translateY(0); }
  .nav__links li { width: 100%; }
  .nav__link { display: block; padding: 13px 32px; font-size: 15px; }
  .nav__link::before { display: none; }
  .nav__toggle { display: flex; }

  .lightbox__grid { grid-template-columns: 1fr; }
  .lightbox__panel { max-height: 92vh; }

  .about__stats { flex-wrap: wrap; gap: 24px; }
  .skills__grid { grid-template-columns: 1fr; }
}
