/* ============================================
   MATHILDE THOMAS — GRAPHISTE FREELANCE
   Design tokens
   ============================================ */
:root{
  --gres:      #DBD2CD;
  --cream:     #F2EEE9;
  --rose:      #96496B;
  --rose-dark: #7A3A57;
  --sauge:     #AEB8A0;
  --sarcelle:  #2C6069;
  --sarcelle-deep: #204A52;
  --saumon:    #F66C57;
  --ink:       #221E1C;
  --ink-soft:  #55504C;
  --paper:     #FBF9F6;

  --display: "Fraunces", "Georgia", serif;
  --body: "Dosis", "Helvetica Neue", sans-serif;

  --wrap: 1180px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--cream);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration:none; }
h1,h2,h3{ font-family: var(--display); font-weight:600; margin:0 0 .5em; letter-spacing:-0.01em; }
p{ margin:0 0 1em; }
.wrap{ max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }

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

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

.eyebrow{
  font-family: var(--body);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--rose);
  margin: 0 0 .9em;
}
.eyebrow-light{ color: var(--sauge); }
.center{ text-align:center; }
.eyebrow.center{ }

/* ============================================
   HEADER
   ============================================ */
.site-header{
  position: sticky; top:0; z-index: 100;
  background: rgba(242,238,233,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(34,30,28,0.08);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding-top:6px; padding-bottom:6px;
}
.logo-img{ height:104px; width:auto; }

.main-nav ul{
  list-style:none; display:flex; gap:32px; margin:0; padding:0; align-items:center;
}
.main-nav a{
  font-weight:600; font-size:.95rem; color: var(--ink);
  padding: 6px 2px; border-bottom: 2px solid transparent;
  transition: border-color .2s ease, color .2s ease;
}
.main-nav a:hover{ border-color: var(--saumon); }
.nav-cta{
  background: var(--saumon); color:#fff !important; padding: 10px 20px !important;
  border-radius: 100px; border-bottom: none !important;
}
.nav-cta:hover{ background: #e5573f; }

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

/* ============================================
   HERO
   ============================================ */
.hero{
  position:relative; overflow:hidden;
  background: var(--sauge);
  padding: 76px 0 96px;
}

.hero-inner{
  display:grid; grid-template-columns: .68fr 1.32fr; gap:30px; align-items:center;
  position:relative; z-index:1;
}
.hero h1{
  font-size: clamp(1.6rem, 2.7vw, 2.15rem);
  line-height: 1.16;
  margin-bottom: .5em;
}
.hero h1 .accent-name{ color: var(--rose); }
.hero-lede{ font-size: 1.25rem; color: var(--ink-soft); max-width: 46ch; }
.hero-lede .kw{
  font-weight:700;
  color: var(--sarcelle-deep);
}
.hero-actions{ display:flex; gap:16px; flex-wrap:wrap; margin-top: 1.6em; }

.hero-photo{
  position:relative;
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
}
.hero-dot{
  position:absolute; z-index:3; opacity:.55;
  border-radius: 58% 42% 63% 37% / 41% 55% 45% 59%;
}
.hero-photo::before{
  content:"";
  display:block;
  padding-top: 77.5%;
}
.hero-sheet{
  position:absolute; width: 52%; top:4%;
  filter: drop-shadow(0 18px 28px rgba(20,17,16,.3));
}
.hero-sheet-left{ left:4%; top:6%; z-index:1; }
.hero-sheet-right{ right:4%; top:12%; z-index:1; }
.hero-photo .polaroid-frame{
  position:absolute; left:50%; top:54%; z-index:2;
  width:39%;
  display:block; background: linear-gradient(155deg, #ffffff, #f4f1ec);
  padding: 8px 8px 30px;
  border-radius: 2px;
  transform: translate(-50%,-50%) rotate(3deg);
  box-shadow:
    0 1px 1px rgba(20,17,16,.15),
    0 2px 6px rgba(20,17,16,.12),
    0 30px 50px -20px rgba(20,17,16,.5);
}
.hero-photo .polaroid-frame img{
  border-radius: 1px; width:100%; display:block;
  box-shadow: inset 0 0 0 1px rgba(20,17,16,.08);
  filter: contrast(1.03) saturate(1.04);
}

.btn{
  display:inline-block; padding: 14px 28px; border-radius: 100px;
  font-weight:600; font-size:.98rem; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary{ background: var(--saumon); color:#fff; }
.btn-primary:hover{ background: #e5573f; transform: translateY(-2px); box-shadow: 0 10px 20px -8px rgba(246,108,87,.5); }
.btn-ghost{ border: 2px solid var(--sarcelle); color: var(--sarcelle); padding: 12px 26px; }
.btn-ghost:hover{ background: var(--sarcelle); color: var(--paper); }
.btn-large{ font-size: 1.05rem; padding: 16px 34px; }

/* ============================================
   ABOUT
   ============================================ */
.about{ padding: 100px 0; background: var(--paper); position:relative; overflow:hidden; }
.about::before{
  content:""; position:absolute; width:520px; height:520px; border-radius:50%;
  background: radial-gradient(circle, var(--sauge) 0%, transparent 72%);
  opacity:.46; top:-230px; left:-230px; pointer-events:none;
}
.about::after{
  content:""; position:absolute; width:380px; height:380px; border-radius:50%;
  background: radial-gradient(circle, var(--saumon) 0%, transparent 72%);
  opacity:.26; bottom:-160px; right:-140px; pointer-events:none;
}
.about-blob-sarcelle{
  position:absolute; width:300px; height:300px; border-radius:50%;
  background: radial-gradient(circle, var(--sarcelle) 0%, transparent 72%);
  opacity:.2; bottom:40px; left:38%; pointer-events:none;
}
.about-inner{
  display:grid; grid-template-columns: 1fr .42fr; gap:64px; align-items:center;
  position:relative; z-index:1;
}
.about-photo{ position:relative; max-width: 310px; margin-left:auto; transform: rotate(2deg); }
.about-photo::before{
  content:""; position:absolute; width:320px; height:320px; border-radius:50%;
  background: radial-gradient(circle, var(--rose) 0%, transparent 72%);
  opacity:.32; top:-60px; right:-70px; z-index:-1;
}
.about-photo-blob{
  position:absolute; border-radius:50%; z-index:-1; pointer-events:none;
}
.about-dot{ position:absolute; border-radius:50%; z-index:2; opacity:.82; }
.about-photo .polaroid-frame{
  display:block; background: linear-gradient(155deg, #ffffff, #f4f1ec);
  padding: 14px 14px 56px;
  border-radius: 2px;
  box-shadow:
    0 1px 1px rgba(20,17,16,.15),
    0 2px 6px rgba(20,17,16,.12),
    0 30px 50px -22px rgba(20,17,16,.45);
}
.about-photo img{
  border-radius: 1px; width:100%; display:block;
  box-shadow: inset 0 0 0 1px rgba(20,17,16,.08);
  filter: contrast(1.03) saturate(1.04);
}
.about-photo .polaroid-caption{
  position:absolute; left:0; right:0; bottom:16px; text-align:center;
  font-family: var(--display); font-style: italic; font-size: 1rem;
  color: var(--ink-soft);
}
.about-text{ position:relative; }
.about-text h2{ font-size: clamp(1.7rem, 3vw, 2.3rem); max-width: 16ch; }
.about-text h2::after{
  content:""; display:block; width:60px; height:4px; border-radius:2px;
  background: var(--saumon); margin-top:16px;
}
.about-text .kw{ font-weight:700; color: var(--sarcelle-deep); }
.about-text .kw-rose{ color: var(--rose-dark); }
.about-text .kw-saumon{ color: #d9573f; }
.about-tags{ list-style:none; display:flex; flex-wrap:wrap; gap:10px; margin: 24px 0 0; padding:0; }
.about-tags .tag{
  font-size:.82rem; font-weight:700; padding: 7px 16px; border-radius:100px;
  color:#fff;
}
.tag-rose{ background: var(--rose); }
.tag-sauge{ background: var(--sauge); color: var(--ink); }
.tag-sarcelle{ background: var(--sarcelle); }
.tag-saumon{ background: var(--saumon); }
.about-text p{ color: var(--ink-soft); max-width: 56ch; }

/* ============================================
   SERVICES
   ============================================ */
.services{ padding: 100px 0; background: var(--sauge); }
.services h2{ font-size: clamp(1.7rem, 3vw, 2.3rem); max-width: 24ch; margin: 0 auto 56px; }
.services .eyebrow.center{ color: var(--rose-dark); }
.services-grid{
  display:grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
}
.service-card{
  background: var(--paper); border-radius: 12px; padding: 32px 26px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.service-card:hover{ transform: translateY(-6px); box-shadow: 0 20px 30px -18px rgba(34,30,28,.35); }
.service-card{
  background: var(--paper); border-radius: 12px; padding: 32px 26px;
  border-top: 4px solid var(--sarcelle);
  transition: transform .2s ease, box-shadow .2s ease;
}
.service-card:nth-child(2n){ border-top-color: var(--saumon); }
.service-card:hover{ transform: translateY(-6px); box-shadow: 0 20px 30px -18px rgba(34,30,28,.35); }
.service-icon{
  width:80px; height:80px; margin-bottom: 20px; color: var(--sarcelle);
  background: rgba(44,96,105,.12);
  border-radius: 50%;
  display:flex; align-items:center; justify-content:center;
}
.service-card:nth-child(2n) .service-icon{ color: var(--saumon); background: rgba(246,108,87,.13); }
.service-icon svg{ width:40px; height:40px; }
.service-card h3{ font-size: 1.15rem; margin-bottom:.4em; }
.service-card p{ color: var(--ink-soft); font-size: .96rem; margin:0; }

/* ============================================
   PORTFOLIO
   ============================================ */
.portfolio{ padding: 100px 0 110px; background: var(--paper); }
.portfolio h2{ font-size: clamp(1.7rem, 3vw, 2.3rem); max-width: 30ch; margin: 0 auto 64px; }

.portfolio-group{ margin-bottom: 64px; }
.portfolio-group:last-child{ margin-bottom:0; }
.portfolio-cat{
  font-size: .82rem; text-transform: uppercase; letter-spacing:.14em;
  color: var(--sarcelle); font-family: var(--body); font-weight:700;
  border-bottom: 3px solid var(--sarcelle); display:inline-block;
  padding-bottom: 14px; margin-bottom: 28px;
}
.portfolio-note{ color: var(--ink-soft); font-style: italic; margin-top:-16px; margin-bottom: 24px; font-size:.95rem; }

.portfolio-grid{ display:grid; gap: 20px; }
.portfolio-grid-posters{ grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.portfolio-grid-brand{ grid-template-columns: repeat(3, 1fr); }
.portfolio-grid-paper{ grid-template-columns: repeat(2, 1fr); max-width: 640px; }

.portfolio-item{
  margin:0; position:relative; border-radius: 10px; overflow:hidden;
  background: var(--gres);
  box-shadow: 0 10px 24px -16px rgba(34,30,28,.4);
  cursor: pointer;
}
.portfolio-item img{ width:100%; height:100%; object-fit: cover; aspect-ratio: 3/4; transition: transform .4s ease; }
.portfolio-item-light img, .portfolio-item-dark img{ aspect-ratio: 4/3; object-fit: contain; padding: 24px; }
.portfolio-item-light{ background:#fff; }
.portfolio-item-dark{ background: var(--ink); }
.portfolio-item:hover img{ transform: scale(1.05); }
.portfolio-item figcaption{
  position:absolute; left:0; right:0; bottom:0;
  background: linear-gradient(0deg, rgba(34,30,28,.88), rgba(34,30,28,0));
  color:#fff; font-size:.85rem; font-weight:600; padding: 28px 14px 12px;
  opacity:0; transform: translateY(6px);
  transition: opacity .25s ease, transform .25s ease;
}
.portfolio-item-light figcaption, .portfolio-item-dark figcaption{
  background:none; color: var(--ink); position:static; opacity:1; transform:none;
  text-align:center; padding: 0 10px 16px; font-size:.9rem;
}
.portfolio-item-dark figcaption{ color: var(--paper); }
.portfolio-item:hover figcaption{ opacity:1; transform: translateY(0); }

/* ============================================
   CONTACT
   ============================================ */
.contact{
  position:relative; overflow:hidden;
  background: var(--sauge);
  color: var(--ink);
  padding: 110px 0;
  text-align:center;
}
.hero-texture{
  position:absolute; top:-50px; right:-70px; width:560px; height:auto;
  opacity:.18; mix-blend-mode: multiply; pointer-events:none;
}
.hero-texture img{ width:100%; height:auto; display:block; }
.contact-texture{
  position:absolute; bottom:-60px; left:-70px; width:480px; height:auto;
  opacity:.55; mix-blend-mode: multiply; pointer-events:none;
}
.contact-texture img{ width:100%; height:auto; display:block; }
.contact-inner{ position:relative; z-index:1; }
.contact .eyebrow-light{ color: var(--rose); }
.contact h2{
  font-size: clamp(1.6rem, 3.4vw, 2.5rem); color: var(--ink);
  max-width: 26ch; margin: 0 auto .5em;
}
.contact-lede{ max-width: 52ch; margin: 0 auto 2em; color: var(--ink-soft); font-size:1.05rem; }
.socials{ margin-top: 32px; display:flex; gap:28px; justify-content:center; flex-wrap:wrap; }
.socials a{ color: var(--sarcelle); font-weight:700; border-bottom: 1px solid transparent; }
.socials a:hover{ border-color: var(--sarcelle); }

/* ============================================
   FOOTER
   ============================================ */
.site-footer{ background: var(--ink); color: rgba(255,255,255,.6); padding: 32px 0; }
.footer-inner{ display:flex; align-items:center; gap:16px; justify-content:space-between; flex-wrap:wrap; }
.footer-legal-nav{ display:flex; gap:20px; flex-wrap:wrap; }
.footer-legal-nav a{ color: rgba(255,255,255,.6); font-size:.82rem; }
.footer-legal-nav a:hover{ color:#fff; }

/* ============================================
   LEGAL PAGES
   ============================================ */
.legal-page{ padding: 72px 0 100px; background: var(--paper); }
.legal-wrap{ max-width: 760px; }
.legal-wrap h1{ font-size: clamp(1.9rem, 3.5vw, 2.6rem); margin-bottom: .7em; }
.legal-wrap h2{
  font-family: var(--body); font-size: 1.05rem; font-weight:700;
  color: var(--sarcelle-deep); margin: 2em 0 .6em;
}
.legal-wrap p{ color: var(--ink-soft); margin-bottom: 1.1em; }
.legal-wrap a{ color: var(--rose); text-decoration: underline; }
.legal-updated{ font-size:.85rem; font-style:italic; margin-top: 2.5em; }
.legal-back{ margin-top: 1em; }
.footer-logo{ height:34px; filter: brightness(0) invert(1); opacity:.85; }
.footer-inner p{ margin:0; font-size:.85rem; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 980px){
  .hero-inner{ grid-template-columns: 1fr; }
  .hero-photo{ order:-1; max-width: 420px; margin: 0 auto; }
  .about-inner{ grid-template-columns: 1fr; }
  .about-photo{ max-width:260px; margin: 0 auto; }
  .services-grid{ grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid-posters{ grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px){
  .wrap{ padding: 0 20px; }
  .logo-img{ height:44px; }
  .nav-toggle{ display:flex; }
  .main-nav ul{
    display:none; position:absolute; top:100%; left:0; right:0;
    background: var(--cream); flex-direction:column; gap:0;
    border-bottom: 1px solid rgba(34,30,28,.1);
  }
  .main-nav.open ul{ display:flex; }
  .main-nav ul li{ width:100%; }
  .main-nav ul a{ display:block; padding: 16px 24px; border-bottom: 1px solid rgba(34,30,28,.06) !important; }
  .nav-cta{ margin: 12px 24px; display:inline-block; }

  .hero{ padding: 48px 0 64px; }
  .hero-lede{ max-width:none; }
  .about, .services, .portfolio, .contact{ padding: 64px 0; }
  .services-grid{ grid-template-columns: 1fr; }
  .portfolio-grid-posters, .portfolio-grid-brand{ grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid-paper{ grid-template-columns: 1fr; max-width:360px; }
  .footer-inner{ flex-direction:column; text-align:center; }
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox{
  position:fixed; inset:0; background: rgba(20,17,16,.92);
  display:none; align-items:center; justify-content:center; flex-direction:column;
  z-index: 1000; padding: 40px 20px; opacity:0; transition: opacity .2s ease;
}
.lightbox.open{ display:flex; opacity:1; }
.lightbox img{
  max-width: min(90vw, 900px); max-height: 78vh; width:auto; height:auto;
  border-radius: 6px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6);
}
.lightbox-caption{ color:#fff; margin-top:18px; font-weight:600; font-size:.95rem; text-align:center; }
.lightbox-close{
  position:absolute; top:24px; right:32px; background:none; border:none;
  color:#fff; font-size:2.4rem; line-height:1; cursor:pointer; padding:8px;
}
.lightbox-close:hover{ color: var(--saumon); }
