/* ============================================================
   ATELIER — Fashion Portfolio
   Editorial / premium / mostly monochrome with selective colour.
   Tweak the tokens in :root to re-theme.
   ============================================================ */

:root {
  --ink: #111010;          /* near-black text / dark sections   */
  --paper: #f3efe9;        /* off-white light sections          */
  --paper-2: #e7e0d7;
  --blush: #d9879f;        /* dusty pink accent                 */
  --beige: #cdbBa4;        /* warm beige accent                 */
  --line: rgba(17,16,16,0.14);
  --radius: 26px;
  --maxw: 1240px;
  --font-display: "Anton", "Archivo", sans-serif;
  --font-body: "Archivo", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.eyebrow {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--ink); opacity: 0.6;
}
.eyebrow--light { color: var(--paper); opacity: 0.65; }

/* Big editorial headline utility */
.bigline {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 6.4rem);
  line-height: 0.92; letter-spacing: 0.01em; text-transform: uppercase;
}
.bigline--center { text-align: center; }

/* ============================================================
   1. HERO
   ============================================================ */
.hero { padding: 14px; background: var(--paper); }
.hero__frame {
  position: relative;
  min-height: calc(100vh - 28px);
  background: var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  color: var(--paper);
}

/* nav */
.nav {
  position: relative; z-index: 6;
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px 34px;
}
.nav__logo { font-weight: 800; letter-spacing: 0.04em; font-size: 1.05rem; }
.nav__logo span { color: var(--blush); }
.nav__links { list-style: none; display: flex; gap: 30px; }
.nav__links a {
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; opacity: 0.8; transition: opacity 0.2s;
}
.nav__links a:hover { opacity: 1; }
.nav__btn {
  border: 1px solid rgba(243,239,233,0.4); border-radius: 999px;
  padding: 9px 20px; font-size: 0.78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  transition: background 0.25s, color 0.25s;
}
.nav__btn:hover { background: var(--paper); color: var(--ink); }
.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; }
.nav__burger span { width: 26px; height: 2px; background: var(--paper); }

/* oversized background word */
.hero__display {
  position: absolute; left: 50%; top: 46%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(4rem, 22vw, 17rem);
  letter-spacing: 0.02em; line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(243,239,233,0.22);
  text-stroke: 1px rgba(243,239,233,0.22);
  white-space: nowrap; z-index: 1; user-select: none;
}

/* supporting asides */
.hero__aside { position: absolute; z-index: 4; max-width: 230px; }
.hero__aside--left { left: 34px; bottom: 90px; }
.hero__aside--right { right: 34px; top: 120px; }
.hero__kicker { font-style: italic; opacity: 0.85; margin-bottom: 8px; }
.hero__lede { font-size: 0.85rem; opacity: 0.7; line-height: 1.5; }

/* circular stamp */
.stamp { position: relative; width: 120px; height: 120px; animation: spin 18s linear infinite; }
.stamp svg { width: 100%; height: 100%; }
.stamp text { fill: var(--paper); font-size: 9px; letter-spacing: 0.18em; opacity: 0.75; font-weight: 600; }
.stamp__core {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--blush); font-size: 1.3rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* hero portrait — anchored bottom-centre, overlapping the big word */
.hero-image {
  position: absolute; bottom: 0; left: 50%;
  transform: translateX(-50%);
  height: 86%; width: auto; z-index: 3;
  cursor: crosshair;
}
.hero-image img {
  position: absolute; bottom: 0; left: 50%;
  transform: translateX(-50%);
  height: 100%; width: auto; max-width: none;
  object-fit: contain; user-select: none; -webkit-user-drag: none;
}
.hero-bw { filter: grayscale(100%) contrast(1.02); }
/* colour layer is fully masked out until the cursor paints it in */
.hero-color {
  pointer-events: none;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-image: radial-gradient(circle 0px at 50% 50%, #000 0%, transparent 100%);
  mask-image: radial-gradient(circle 0px at 50% 50%, #000 0%, transparent 100%);
  transition: -webkit-mask-position 0.12s ease-out, mask-position 0.12s ease-out;
  will-change: mask-image;
}

.hero__scrollcue {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  z-index: 5; font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase;
  opacity: 0.6;
}

/* ============================================================
   2. ABOUT
   ============================================================ */
.about { background: var(--paper); color: var(--ink); padding: 110px 34px; }
.about__head {
  max-width: var(--maxw); margin: 0 auto 50px;
  display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap;
}
.about__intro { max-width: 440px; font-size: 1.05rem; }
.about .bigline { max-width: var(--maxw); margin: 0 auto; text-align: center; }

.about__grid {
  max-width: var(--maxw); margin: 56px auto 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
  align-items: start;
}
.about__card { border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.about__card img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); transition: filter 0.5s, transform 0.6s; }
.about__card:hover img { filter: grayscale(0%); transform: scale(1.04); }
/* staggered offsets for editorial rhythm */
.about__card--a { aspect-ratio: 3/4; margin-top: 40px; }
.about__card--b { aspect-ratio: 3/5; }
.about__card--c { aspect-ratio: 3/4; margin-top: 64px; }
.about__card--d { aspect-ratio: 3/5; margin-top: 18px; }

/* ============================================================
   3. SKILLS
   ============================================================ */
.skills { background: var(--ink); color: var(--paper); padding: 110px 34px; }
.skills__top { max-width: var(--maxw); margin: 0 auto; }
.skills__title { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1; margin-top: 14px; text-transform: uppercase; }

.skills__indicator {
  max-width: var(--maxw); margin: 54px auto; position: relative;
  display: flex; align-items: center; gap: 0; justify-content: space-between;
}
.skills__indicator::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px;
  background: rgba(243,239,233,0.25);
}
.blob {
  position: relative; width: 26px; height: 26px; background: rgba(243,239,233,0.5);
  border-radius: 60% 40% 55% 45%; transform: rotate(0deg);
}
.blob--active { background: var(--blush); width: 40px; height: 40px; box-shadow: 0 0 0 8px rgba(217,135,159,0.18); }

.skills__row {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: baseline;
  padding: 34px 0; border-top: 1px solid rgba(243,239,233,0.16);
}
.skills__pct { font-family: var(--font-display); font-size: clamp(3rem, 8vw, 6rem); line-height: 0.9; color: var(--beige); }
.skills__detail h3 { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2.2rem); letter-spacing: 0.02em; }
.skills__detail p { opacity: 0.7; max-width: 420px; margin-top: 8px; }

/* ============================================================
   4. CREATIONS / CAROUSEL
   ============================================================ */
.creations { background: var(--paper); color: var(--ink); padding: 110px 34px; overflow: hidden; }
.creations__head { max-width: var(--maxw); margin: 0 auto 14px; text-align: center; }
.creations__head .eyebrow { display: block; margin-bottom: 14px; }

.carousel { max-width: var(--maxw); margin: 40px auto 0; overflow: hidden; }
.carousel__track {
  display: flex; gap: 24px;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.slide {
  flex: 0 0 calc((100% - 48px) / 3); /* 3 up on desktop */
  border-radius: var(--radius); overflow: hidden; background: var(--paper-2);
}
.slide img { width: 100%; aspect-ratio: 3/4; object-fit: cover; filter: grayscale(100%); transition: filter 0.5s, transform 0.6s; }
.slide:hover img { filter: grayscale(0%); transform: scale(1.04); }
.slide figcaption { padding: 14px 16px; font-weight: 600; font-size: 0.9rem; }

.carousel__nav { display: flex; justify-content: center; gap: 14px; margin-top: 34px; }
.carousel__btn {
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line);
  background: transparent; font-size: 1.1rem; cursor: pointer;
  transition: background 0.25s, color 0.25s, transform 0.2s;
}
.carousel__btn:hover { background: var(--ink); color: var(--paper); }
.carousel__btn:active { transform: scale(0.94); }

/* ============================================================
   5. CIRCULAR STATEMENT
   ============================================================ */
.statement { background: var(--ink); color: var(--paper); padding: 120px 34px; display: grid; place-items: center; }
.statement__ring { position: relative; width: min(86vw, 460px); aspect-ratio: 1; display: grid; place-items: center; }
.statement__text { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 30s linear infinite; }
.statement__text text { fill: var(--paper); font-size: 13.5px; letter-spacing: 0.16em; font-weight: 600; opacity: 0.85; }
.statement__portrait {
  width: 62%; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.statement__portrait img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); }

/* ============================================================
   6. TESTIMONIALS
   ============================================================ */
.testi { background: var(--paper); color: var(--ink); padding: 110px 34px; }
.testi__title { font-family: var(--font-display); font-size: clamp(3rem, 12vw, 9rem); text-align: center; line-height: 0.9; margin-bottom: 60px; }
.testi__grid {
  max-width: 1040px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px;
}
.petal {
  position: relative; padding: 40px 36px;
  border-radius: 60px 60px 60px 10px;
  box-shadow: 0 18px 50px rgba(17,16,16,0.08);
}
.petal:nth-child(2) { border-radius: 60px 60px 10px 60px; margin-top: 40px; }
.petal:nth-child(3) { border-radius: 60px 10px 60px 60px; }
.petal:nth-child(4) { border-radius: 10px 60px 60px 60px; margin-top: 40px; }
.petal--white { background: #fff; }
.petal--pink { background: #f6dfe5; }
.petal__stars { color: var(--blush); letter-spacing: 0.2em; font-size: 0.9rem; }
.petal p { font-size: 1.1rem; margin: 14px 0 18px; }
.petal cite { font-style: normal; font-weight: 700; opacity: 0.7; }

/* ============================================================
   7. FOOTER
   ============================================================ */
.footer { background: var(--ink); color: var(--paper); padding: 90px 34px 40px; position: relative; overflow: hidden; }
.footer__top {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  position: relative; z-index: 3;
}
.footer__big { font-family: var(--font-display); font-size: clamp(2.4rem, 8vw, 6rem); line-height: 0.9; }
.footer__big--right { text-align: right; align-self: flex-end; }
.footer__display {
  position: absolute; left: 50%; bottom: 70px; transform: translateX(-50%);
  font-family: var(--font-display); font-size: clamp(5rem, 24vw, 19rem);
  color: transparent; -webkit-text-stroke: 1px rgba(243,239,233,0.14);
  white-space: nowrap; z-index: 1; user-select: none;
}
.footer__portrait {
  position: relative; z-index: 2; width: min(60vw, 320px);
  margin: 30px auto 40px; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden;
}
.footer__portrait img { width: 100%; filter: grayscale(100%); }
.footer__bar {
  position: relative; z-index: 3; max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding-top: 26px; border-top: 1px solid rgba(243,239,233,0.16); flex-wrap: wrap;
}
.footer__links { list-style: none; display: flex; gap: 24px; }
.footer__links a, .footer__home { font-size: 0.85rem; font-weight: 600; opacity: 0.8; transition: opacity 0.2s; }
.footer__links a:hover, .footer__home:hover { opacity: 1; }
.footer__copy { font-size: 0.8rem; opacity: 0.6; }

/* ============================================================
   Scroll reveal
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .nav__links, .nav__btn { display: none; }
  .nav__burger { display: flex; }
  .nav__links.open {
    display: flex; flex-direction: column; gap: 18px;
    position: absolute; top: 74px; left: 16px; right: 16px; z-index: 9;
    background: var(--ink); border: 1px solid rgba(243,239,233,0.2);
    border-radius: 18px; padding: 22px;
  }
  .hero__aside { position: static; max-width: none; padding: 0 8px; }
  .hero__aside--right { display: none; }
  .about__grid { grid-template-columns: repeat(2, 1fr); }
  .about__card--a, .about__card--c, .about__card--d { margin-top: 0; }
  .slide { flex: 0 0 calc((100% - 24px) / 2); } /* 2 up tablet */
  .skills__row { grid-template-columns: 1fr; gap: 8px; }
  .testi__grid { grid-template-columns: 1fr; }
  .petal:nth-child(n) { margin-top: 0; }
}

@media (max-width: 560px) {
  .about__grid { grid-template-columns: 1fr; }
  .slide { flex: 0 0 100%; } /* 1 up mobile */
  .footer__top { flex-direction: column; }
  .footer__big--right { text-align: left; align-self: flex-start; }
}

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