/* ============================================================
   Coogie Cosmetics — "Ink & Light"
   Editorial cosmetics identity. Kohl-black canvas, marigold gold
   sampled from the real product posters, an eyeliner-stroke signature.
   ============================================================ */

:root {
  /* Colour — sampled from the real Coogie posters */
  --ink:        #0a0908;   /* kohl black canvas */
  --ink-2:      #141210;   /* raised surface */
  --gold:       #e9b949;   /* marigold gold (poster logo) */
  --gold-deep:  #c8992f;   /* pressed / shadow gold */
  --gold-glow:  #fcf49d;   /* highlight glint */
  --bone:       #f4efe7;   /* warm off-white text */
  --ash:        #8a8578;   /* muted label grey */
  --royal:      #2b4c9b;   /* the real "02 Royal Blue" shade, used as a rare accent */
  --line:       rgba(233,185,73,0.22); /* hairline gold */

  /* Type */
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Rhythm */
  --pad: clamp(1.25rem, 5vw, 6rem);
  --maxw: 1280px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 400; letter-spacing: -0.01em; }
p { margin: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 100;
  background: var(--gold); color: var(--ink); padding: 0.6rem 1rem;
  border-radius: 2px; transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

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

/* ---------- shared bits ---------- */
.eyebrow {
  font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--ash); margin: 0 0 1.1rem;
}
.eyebrow--gold { color: var(--gold); }

.section-title {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.02;
  color: var(--bone);
}

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 1rem 1.9rem; border-radius: 2px;
  cursor: pointer; border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
}
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--gold-glow); transform: translateY(-2px); }
.btn--ghost { border-color: rgba(244,239,231,0.32); color: var(--bone); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background 0.4s var(--ease), border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(10,9,8,0.82);
  backdrop-filter: blur(12px) saturate(1.1);
  border-bottom-color: var(--line);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 1.15rem var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.nav__brand { display: flex; align-items: center; gap: 0.5rem; }
.nav__logo { height: 22px; width: auto; filter: brightness(0) invert(1); }
.nav__ar { font-size: 0.9rem; color: var(--gold); opacity: 0.85; }
.nav__reg { color: var(--gold); font-size: 0.65rem; align-self: flex-start; }
.nav__links { display: flex; gap: 2.1rem; }
.nav__links a {
  position: relative; font-size: 0.82rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--bone); padding: 0.3rem 0;
}
/* the wing underline on hover */
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 1.5px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav__links a:hover::after, .nav__links a:focus-visible::after { transform: scaleX(1); }

.nav__toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 0.5rem;
}
.nav__toggle span { width: 26px; height: 2px; background: var(--bone); transition: 0.3s; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  display: flex; flex-direction: column;
  background: var(--ink-2); border-top: 1px solid var(--line);
  padding: 1rem var(--pad) 1.5rem;
}
/* the [hidden] attribute must win over display:flex */
.nav__mobile[hidden] { display: none; }
.nav__mobile a {
  padding: 0.9rem 0; font-size: 0.95rem; letter-spacing: 0.08em;
  text-transform: uppercase; border-bottom: 1px solid rgba(244,239,231,0.08);
}

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% center; }
/* scrim: keep the left (where our type sits) legible; the eye/model lives on the right.
   The right + bottom fades blend the photo's own dark edges into the page so there's no
   visible seam on wide screens. */
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--ink) 0%, rgba(10,9,8,0.82) 34%, rgba(10,9,8,0.22) 60%, rgba(10,9,8,0) 78%, rgba(10,9,8,0.35) 100%),
    linear-gradient(0deg, var(--ink) 1%, rgba(10,9,8,0) 34%);
}
.hero__content {
  position: relative; z-index: 1;
  max-width: var(--maxw); width: 100%; margin: 0 auto;
  padding: 7rem var(--pad) 3rem;
}
.hero__title {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-weight: 300;
  font-size: clamp(3rem, 9vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  max-width: 12ch;
}
.hero__title em { font-style: italic; color: var(--gold); font-weight: 400; }

.wing { width: min(340px, 70vw); height: 46px; margin: 0.6rem 0 1.6rem; display: block; }
.wing__path {
  stroke: var(--gold); stroke-width: 3; stroke-linecap: round;
  fill: none;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  filter: drop-shadow(0 0 6px rgba(233,185,73,0.35));
}
.wing.is-drawn .wing__path {
  animation: draw-wing 1.1s var(--ease) forwards;
}
@keyframes draw-wing { to { stroke-dashoffset: 0; } }

.hero__lede { max-width: 42ch; color: var(--bone); opacity: 0.9; font-size: 1.1rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

/* ============================================================
   MANIFESTO
   ============================================================ */
.manifesto {
  max-width: 60rem; margin: 0 auto;
  padding: clamp(5rem, 12vw, 9rem) var(--pad);
  text-align: center;
}
.manifesto__body {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-weight: 300;
  font-size: clamp(1.4rem, 3.4vw, 2.35rem);
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.manifesto__body em { font-style: italic; color: var(--gold); }
.manifesto__sign {
  margin-top: 2rem; color: var(--ash);
  font-size: 0.8rem; letter-spacing: 0.22em; text-transform: uppercase;
}

/* ============================================================
   THE LINE (products)
   ============================================================ */
.line { max-width: var(--maxw); margin: 0 auto; padding: 2rem var(--pad) 4rem; }
.line__head { text-align: center; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }

.product {
  display: grid; grid-template-columns: 1.15fr 1fr;
  gap: clamp(1.5rem, 5vw, 4.5rem);
  align-items: center;
  padding: clamp(2rem, 5vw, 3.5rem) 0;
}
.product + .product { border-top: 1px solid var(--line); }
.product--reverse .product__media { order: 2; }

.product__media {
  border-radius: 3px; overflow: hidden;
  background: var(--ink-2);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.9);
}
.product__media img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.product:hover .product__media img { transform: scale(1.03); }

.product__ar { color: var(--gold); opacity: 0.8; font-size: 1.05rem; margin-bottom: 0.4rem; }
.product__name {
  font-family: var(--display); font-optical-sizing: auto;
  font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.05;
}
.product__type {
  color: var(--ash); text-transform: uppercase; letter-spacing: 0.2em;
  font-size: 0.72rem; margin: 0.5rem 0 1.2rem;
}
.product__desc { max-width: 44ch; margin-bottom: 1.4rem; opacity: 0.92; }
.product__note { margin-top: 1rem; font-size: 0.8rem; color: var(--ash); font-style: italic; }

.claims { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.claims li {
  font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.45rem 0.9rem; border: 1px solid var(--line); border-radius: 100px;
  color: var(--gold);
}

.shades { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.7rem; }
.shades li { display: flex; align-items: center; gap: 0.7rem; font-size: 0.9rem; color: var(--bone); }
.swatch {
  width: 18px; height: 18px; border-radius: 50%; background: var(--sw);
  box-shadow: inset 0 0 0 1px rgba(244,239,231,0.25);
  flex: none;
}

/* ============================================================
   STORY
   ============================================================ */
.story { background: var(--ink-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.story__grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 5vw, 4rem); align-items: center;
}
.story__img { align-self: stretch; }
.story__img img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.story__text { padding: clamp(3rem, 8vw, 6rem) var(--pad) clamp(3rem, 8vw, 6rem) 0; }
.story__text .section-title { margin-bottom: 1.5rem; }
.story__text p + p { margin-top: 1rem; opacity: 0.9; }
.story__ar {
  font-family: var(--display); font-style: italic;
  color: var(--gold); font-size: 1.4rem; margin-top: 1.8rem !important; opacity: 1 !important;
}

/* ============================================================
   STOCKISTS
   ============================================================ */
.stockists { position: relative; overflow: hidden; }
.stockists__inner {
  max-width: 52rem; margin: 0 auto; text-align: center;
  padding: clamp(5rem, 12vw, 8rem) var(--pad);
}
.stockists__lede { max-width: 48ch; margin: 1.5rem auto 2.4rem; opacity: 0.9; }
/* a faint gold wing sweep behind the stockists band */
.stockists::before {
  content: ""; position: absolute; left: -10%; top: 50%; width: 120%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.25; transform: rotate(-2deg);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--ink-2); border-top: 1px solid var(--line); }
.contact__grid {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(3.5rem, 9vw, 6rem) var(--pad);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem);
}
.contact__intro .section-title { margin-bottom: 1.2rem; }
.contact__details { margin: 2rem 0 0; display: grid; gap: 1.2rem; }
.contact__details dt {
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ash);
  margin-bottom: 0.25rem;
}
.contact__details dd { margin: 0; }
.contact__details a { color: var(--gold); }
.contact__phones { display: grid; gap: 0.5rem; }
.contact__phones a { display: flex; align-items: center; gap: 0.65rem; }
.contact__flag {
  font-size: 0.62rem; letter-spacing: 0.14em; font-weight: 600;
  color: var(--ink); background: var(--gold);
  padding: 0.15rem 0.4rem; border-radius: 3px; line-height: 1;
}
.todo { color: var(--royal); font-size: 0.8rem; background: rgba(43,76,155,0.14);
  padding: 0.1rem 0.45rem; border-radius: 3px; }

.contact__form { display: grid; gap: 1.1rem; align-content: start; }
.form__note { font-size: 0.82rem; color: var(--ash); font-style: italic; margin-bottom: 0.3rem; }
.form__note a { color: var(--gold); font-style: normal; }
.field { display: grid; gap: 0.4rem; }
.field label {
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ash);
}
.field input, .field textarea {
  font-family: var(--sans); font-size: 1rem; color: var(--bone);
  background: var(--ink); border: 1px solid var(--line); border-radius: 3px;
  padding: 0.85rem 1rem; transition: border-color 0.25s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.contact__form .btn { justify-self: start; margin-top: 0.4rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.foot { border-top: 1px solid var(--line); }
.foot__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 3.5rem var(--pad);
  display: flex; flex-direction: column; align-items: center; gap: 1.1rem; text-align: center;
}
.foot__brand img { height: 26px; filter: brightness(0) invert(1); opacity: 0.9; }
.foot__line { font-family: var(--display); font-style: italic; color: var(--gold); font-size: 1.15rem; }
.foot__links { display: flex; flex-wrap: wrap; gap: 1.6rem; }
.foot__links a { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ash); }
.foot__links a:hover { color: var(--gold); }
.foot__copy { font-size: 0.76rem; color: var(--ash); letter-spacing: 0.04em; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
/* Reveals are progressive enhancement: content is visible by default, and only
   hidden once JS has confirmed it can reveal them (html.js-reveal). If JS never
   runs, everything just shows normally. */
.js-reveal .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js-reveal .reveal.is-in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .product, .product--reverse .product__media { grid-template-columns: 1fr; order: 0; }
  .product { grid-template-columns: 1fr; }
  .story__grid { grid-template-columns: 1fr; }
  .story__img img { min-height: 260px; }
  .story__text { padding: clamp(2.5rem,8vw,4rem) var(--pad); }
  .contact__grid { grid-template-columns: 1fr; }
  .hero__media img { object-position: 68% center; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .wing__path { stroke-dashoffset: 0; }
  .reveal { opacity: 1; transform: none; }
}
