/* ============================================================
   Jean Pouabou personal site
   Elevated editorial: warm paper + grain, arch photo frame,
   hairline rules, numbered sections, oversized serif display.
   ============================================================ */

:root {
  --paper: #faf6ef;
  --paper-tint: #f3ecdf;
  --ink: #1c1a17;
  --ink-soft: #57524a;
  --accent: #f2b33d;
  --accent-deep: #d99a1f;
  --line: #e4dccc;
  --dark: #16130f;
  --paper-fade: rgba(250, 246, 239, 0.7);
  --measure: 36rem;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.68;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* paper grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: color-mix(in srgb, var(--accent) 45%, transparent); }

h1, h2, h3, .wordmark, .mail-link, .fact-num, .work-name, .watermark {
  font-family: "Inter Tight", "Inter", system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

h1 em, h2 em {
  font-style: normal;
  font-weight: 700;
  background-image: linear-gradient(transparent 66%, color-mix(in srgb, var(--accent) 55%, transparent) 66%);
}

a { color: inherit; }

.dot { color: var(--accent-deep); }

/* ---------- reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s var(--ease-out);
}

.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .chip { animation: none !important; }
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem clamp(1.25rem, 5vw, 4.5rem);
  background: color-mix(in srgb, var(--dark) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(250, 246, 239, 0.12);
  color: var(--paper);
}

.wordmark { font-size: 1.3rem; text-decoration: none; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 0.92rem;
  font-weight: 500;
}

.site-nav a:not(.nav-cta) {
  text-decoration: none;
  color: rgba(250, 246, 239, 0.65);
  padding-bottom: 2px;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-size: 0% 1.5px;
  background-position: left bottom;
  transition: background-size 0.3s var(--ease-out), color 0.2s ease;
}

.site-nav a:not(.nav-cta):hover {
  color: var(--paper);
  background-size: 100% 1.5px;
}

.nav-cta {
  padding: 0.5rem 1.15rem;
  border: 1px solid rgba(250, 246, 239, 0.6);
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.nav-cta:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
}

.nav-toggle span { width: 24px; height: 2px; background: var(--paper); }

/* ---------- hero ---------- */

.hero-band {
  position: relative;
  background: var(--dark);
  color: var(--paper);
  overflow: clip;
}

.hero-band::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(242, 179, 61, 0.16), transparent 65%);
  pointer-events: none;
}

.hero-band .eyebrow { color: var(--paper-fade); }

.hero-band h1 em {
  background-image: none;
  color: var(--accent);
}

.hero-band .lede { color: var(--paper-fade); }

.hero-band .lede a { color: var(--paper); }

.hero-band .lede a:hover { text-decoration-color: var(--paper); }

.hero .btn-primary {
  background: var(--accent);
  color: var(--ink);
  box-shadow: 0 12px 26px -12px rgba(242, 179, 61, 0.45);
}

.hero .btn-primary:hover { background: var(--accent-deep); }

.hero .btn-ghost {
  border-color: rgba(250, 246, 239, 0.6);
  color: var(--paper);
}

.hero .btn-ghost:hover {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr minmax(300px, 420px);
  align-items: center;
  gap: clamp(3rem, 7vw, 6.5rem);
  max-width: 76rem;
  margin: 0 auto;
  padding: clamp(3.5rem, 10vh, 7rem) clamp(1.25rem, 5vw, 4.5rem);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1.4rem;
}

.rule {
  width: 3rem;
  height: 1px;
  background: var(--accent-deep);
}

.hero-copy h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.3rem);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.lede {
  max-width: var(--measure);
  font-size: 1.14rem;
  color: var(--ink-soft);
}

.lede a {
  color: var(--ink);
  font-weight: 600;
  text-decoration-color: var(--accent-deep);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  transition: text-decoration-color 0.2s ease;
}

.lede a:hover { text-decoration-color: var(--ink); }

.hero-actions {
  display: flex;
  gap: 0.9rem;
  margin-top: 2.4rem;
  flex-wrap: wrap;
}

/* ---------- photo: arch frame ---------- */

.hero-photo {
  position: relative;
  aspect-ratio: 1;
}

.arch-back {
  position: absolute;
  inset: 5% -5% -5% 5%;
  background: var(--accent);
  border-radius: 50%;
}

.hero-photo img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 30px 60px -30px rgba(28, 26, 23, 0.4);
}

.chip {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 12px 28px -14px rgba(28, 26, 23, 0.35);
  animation: float 6s ease-in-out infinite;
}

.chip i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-deep);
}

.chip-1 { top: 7%; left: -14%; }
.chip-2 { bottom: 9%; right: -8%; animation-delay: -3s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.96rem;
  text-decoration: none;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

.btn-primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 12px 26px -14px rgba(28, 26, 23, 0.55);
}

.btn-ghost { border: 1px solid var(--ink); color: var(--ink); }

.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.btn-light { background: var(--paper); color: var(--ink); }

/* ---------- previously strip ---------- */

.prev-strip {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 1.4rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-tint);
  padding: 1.3rem clamp(1.25rem, 5vw, 4.5rem);
}

.prev-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.prev-names {
  font-family: "Inter Tight", "Inter", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
}

.prev-names i {
  font-style: normal;
  color: var(--accent-deep);
  margin: 0 0.35rem;
}

/* ---------- sections ---------- */

.section {
  max-width: 76rem;
  margin: 0 auto;
  padding: clamp(4rem, 11vh, 7.5rem) clamp(1.25rem, 5vw, 4.5rem);
}

.section-label {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 2rem;
}

.section-label span {
  font-family: "Inter Tight", "Inter", system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent-deep);
  letter-spacing: 0;
}

.section-label::after {
  content: "";
  flex: 0 0 3rem;
  height: 1px;
  background: var(--line);
}

.section h2 {
  font-size: clamp(2.1rem, 4.2vw, 3.3rem);
  margin-bottom: 1.8rem;
}

/* ---------- about ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr minmax(0, var(--measure));
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.about-grid h2 { margin-bottom: 0; }

.prose p { color: var(--ink-soft); }
.prose p + p { margin-top: 1.1rem; }

.stats-band {
  background: var(--accent);
}

.facts {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 76rem;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 4.5rem);
}

.facts li {
  padding: clamp(2.4rem, 6vh, 3.6rem) clamp(1.5rem, 3vw, 3rem);
}

.facts li + li {
  border-left: 1px solid rgba(28, 26, 23, 0.22);
}

.facts li:first-child { padding-left: 0; }

.fact-num {
  display: block;
  font-size: clamp(3.2rem, 6vw, 4.8rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 0.5rem;
  font-variant-numeric: tabular-nums;
}

.fact-num i {
  font-style: normal;
  color: var(--paper);
}

.fact-label {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(28, 26, 23, 0.72);
}

/* ---------- products ---------- */

.work-list {
  border-top: 1px solid var(--ink);
  margin-top: 1rem;
}

.work-row {
  display: grid;
  grid-template-columns: auto minmax(10rem, 0.8fr) 1.4fr;
  align-items: baseline;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: clamp(2rem, 5vh, 3rem) 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.work-index {
  font-family: "Inter Tight", "Inter", system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
  transition: color 0.25s ease;
}

.work-name {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  background-image: linear-gradient(var(--tint), var(--tint));
  background-repeat: no-repeat;
  background-size: 0% 3px;
  background-position: left 96%;
  transition: background-size 0.35s var(--ease-out);
}

.work-row:hover .work-name { background-size: 100% 3px; }
.work-row:hover .work-index { color: var(--tint); }

.work-info p {
  color: var(--ink-soft);
  font-size: 0.99rem;
  max-width: 34rem;
}

.work-domain {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tint);
}

.work-arrow {
  display: inline-block;
  transition: transform 0.25s var(--ease-out);
}

.work-row:hover .work-arrow { transform: translateX(5px); }

/* ---------- studio (dark) ---------- */

.section-dark {
  position: relative;
  background: #16130f;
  color: var(--paper);
  overflow: hidden;
}

.watermark {
  position: absolute;
  right: -2rem;
  bottom: -4rem;
  font-weight: 700;
  font-size: clamp(8rem, 22vw, 18rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(250, 246, 239, 0.08);
  pointer-events: none;
  user-select: none;
}

.studio-inner { position: relative; }

.section-dark .section-label { color: rgba(250, 246, 239, 0.55); }
.section-dark .section-label span { color: var(--accent); }
.section-dark .section-label::after { background: rgba(250, 246, 239, 0.18); }

.section-dark h2 { font-size: clamp(2.6rem, 5.5vw, 4rem); }

.section-dark .lede {
  color: rgba(250, 246, 239, 0.68);
  margin-bottom: clamp(2.5rem, 6vh, 4rem);
}

.studio-services {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: clamp(2.5rem, 6vh, 4rem);
  max-width: 56rem;
}

.studio-services li {
  border-top: 1px solid rgba(250, 246, 239, 0.2);
  padding-top: 1.2rem;
}

.svc-num {
  font-family: "Inter Tight", "Inter", system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent);
}

.studio-services h3 {
  font-size: 1.35rem;
  margin: 0.5rem 0 0.35rem;
}

.studio-services p {
  font-size: 0.95rem;
  color: rgba(250, 246, 239, 0.6);
}

/* ---------- contact ---------- */

.section-contact {
  text-align: center;
  padding-top: clamp(5rem, 13vh, 8.5rem);
  padding-bottom: clamp(5rem, 13vh, 8.5rem);
}

.section-contact .section-label { justify-content: center; }

.contact-headline { font-size: clamp(2.6rem, 6vw, 4.4rem) !important; }

.section-contact .lede { margin: 0 auto 3rem; }

.mail-link {
  display: inline-block;
  font-size: clamp(1.5rem, 3.6vw, 2.6rem);
  font-weight: 600;
  text-decoration: none;
  padding-bottom: 0.15em;
  background-image: linear-gradient(var(--accent-deep), var(--accent-deep));
  background-repeat: no-repeat;
  background-size: 100% 2px;
  background-position: left bottom;
  transition: background-size 0.35s var(--ease-out), color 0.2s ease;
}

.mail-link:hover {
  background-size: 100% 0.42em;
  color: var(--ink);
}

.social {
  margin-top: 3.2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.2rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.social a {
  text-decoration: none;
  padding-bottom: 3px;
  background-image: linear-gradient(var(--ink), var(--ink));
  background-repeat: no-repeat;
  background-size: 0% 1.5px;
  background-position: left bottom;
  transition: background-size 0.3s var(--ease-out), color 0.2s ease;
}

.social a:hover { color: var(--ink); background-size: 100% 1.5px; }

/* ---------- footer ---------- */

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding: 1.8rem clamp(1.25rem, 5vw, 4.5rem);
  font-size: 0.86rem;
  color: var(--ink-soft);
}

.site-footer a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
}

.site-footer a:hover { color: var(--accent-deep); }

/* ---------- responsive ---------- */

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

  .work-row {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
  }

  .work-info {
    grid-column: 2;
  }
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 3rem;
  }

  .hero-photo {
    width: min(72vw, 340px);
    margin: 0 auto;
    order: -1;
  }

  .chip-1 { left: -10%; }
  .chip-2 { right: -10%; }

  .eyebrow { justify-content: center; }

  .lede { margin-inline: auto; }

  .hero-actions { justify-content: center; }

  .nav-toggle { display: flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    background: var(--dark);
    border-bottom: 1px solid rgba(250, 246, 239, 0.12);
    display: none;
  }

  .site-nav.open { display: flex; }

  .site-footer { justify-content: center; text-align: center; }
}

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

  .facts li { padding: 1.6rem 0; }

  .facts li + li {
    border-left: none;
    border-top: 1px solid rgba(28, 26, 23, 0.22);
  }

  .studio-services { grid-template-columns: 1fr; }

  .work-row { grid-template-columns: 1fr; }
  .work-info { grid-column: 1; }
  .work-index { display: none; }

  .social { gap: 1.4rem; flex-wrap: wrap; }
}
