/* Kentroy Yearwood: fashion-brand homepage. Plain CSS, no build step. */

:root {
  --ink: #111111;
  --paper: #f3f1ec;
  --tint: #e9e6df;
  --muted: #6b6962;
  --line: rgba(17, 17, 17, 0.14);
  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: 16px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 12px;
}
.skip:focus { top: 8px; }

/* ---------- Top bar ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  color: #fff;
  transition: transform 0.6s var(--ease), background 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
}
.nav.scrolled {
  background: rgba(243, 241, 236, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
.nav.hidden { transform: translateY(-100%); }

.brand img {
  height: 44px;
  width: auto;
  transition: filter 0.4s ease;
}
/* The logo is dark grey: invert it to white while it sits over the video. */
.nav:not(.scrolled) .brand img { filter: brightness(0) invert(1); }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.nav-links a {
  position: relative;
  display: inline-block;
  padding: 6px 0;
  text-decoration: none;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-btn {
  display: none;
  background: none;
  border: 0;
  padding: 8px 0;
  color: inherit;
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
}

/* Mobile menu overlay */
.menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
.menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
}
.menu li { overflow: hidden; }
.menu a {
  display: inline-block;
  padding: 10px 0;
  font-family: var(--serif);
  font-size: 40px;
  line-height: 1.2;
  text-decoration: none;
  transform: translateY(110%);
  transition: transform 0.8s var(--ease);
}
.menu-open .menu {
  opacity: 1;
  pointer-events: auto;
}
.menu-open .menu a { transform: none; }
.menu li:nth-child(2) a { transition-delay: 0.05s; }
.menu li:nth-child(3) a { transition-delay: 0.1s; }
.menu li:nth-child(4) a { transition-delay: 0.15s; }
.menu li:nth-child(5) a { transition-delay: 0.2s; }
.menu li:nth-child(6) a { transition-delay: 0.25s; }
.menu-open .nav {
  background: var(--paper);
  color: var(--ink);
}
.menu-open .nav .brand img { filter: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #0d0d0d;
  color: #fff;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  animation: drift 24s ease-in-out infinite alternate;
  filter: contrast(1.05);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 var(--gutter);
}
.wordmark {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(56px, 14vw, 230px);
  line-height: 0.92;
  letter-spacing: -0.02em;
}
.wordmark .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.04em;
}
/* Letters are split by JS and rise into place one after another. */
.wordmark .ch {
  display: inline-block;
  transform: translateY(110%);
  animation: rise 1.2s var(--ease) forwards;
  animation-delay: calc(0.3s + var(--i) * 55ms);
}
.hero-cta {
  display: inline-block;
  margin-top: 30px;
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  padding-bottom: 8px;
  background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat;
  opacity: 0;
  animation: fadeUp 1s var(--ease) 1.5s forwards, underline 0.6s ease 1.5s forwards;
  transition: background-size 0.6s var(--ease);
}
.hero-cta:hover { background-size: 100% 1px; }
.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  width: 1px;
  height: 56px;
  background: rgba(255, 255, 255, 0.3);
  overflow: hidden;
  transform: translateX(-50%);
}
.scroll-cue::after {
  content: "";
  position: absolute;
  left: 0;
  top: -100%;
  width: 1px;
  height: 100%;
  background: #fff;
  animation: cue 2.2s var(--ease) infinite;
}

@keyframes drift { to { transform: scale(1); } }
@keyframes rise { to { transform: none; } }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes underline { to { opacity: 1; } }
@keyframes cue { to { top: 100%; } }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  white-space: nowrap;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.mq-group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
}
.mq-group span {
  display: inline-flex;
  align-items: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 3vw, 40px);
  padding: 0 28px;
}
.mq-group span::after {
  content: "\2726";
  font-style: normal;
  font-size: 0.5em;
  margin-left: 56px;
  opacity: 0.6;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { position: relative; }
.section-tint { background: var(--tint); }
.wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(72px, 12vw, 160px) var(--gutter);
}
.eyebrow {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  width: 40px;
  height: 1px;
  background: currentColor;
}
.h2 {
  margin: 16px 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(42px, 6.5vw, 96px);
  line-height: 1;
  letter-spacing: -0.015em;
}
.lede {
  max-width: 44ch;
  margin: 24px 0 0;
  font-size: 17px;
  color: var(--muted);
}
.section-head { margin-bottom: clamp(40px, 6vw, 80px); }

/* ---------- Reveal motion ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.1s var(--ease), transform 1.3s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
/* Frames wipe open as they enter the viewport: a paper-coloured cover slides away.
   (Not clip-path on the frame itself, because IntersectionObserver can't see a fully clipped element.) */
.clip::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--paper);
  transform-origin: top;
  transition: transform 1.4s var(--ease);
  transition-delay: var(--d, 0s);
  pointer-events: none;
}
.clip.in::after { transform: scaleY(0); }

/* ---------- Image frames ---------- */
.frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: var(--ar, 4 / 5);
  background: var(--tint);
}
.frame img {
  transition: transform 1.4s var(--ease);
}
.frame:hover img { transform: scale(1.04); }
.plx {
  position: absolute;
  inset: -9% 0;
  will-change: transform;
}
.plx img,
.frame > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Collection grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}
.item { margin: 0; }
.item.s4 { grid-column: span 4; }
.item.s5 { grid-column: span 5; }
.item.s7 { grid-column: span 7; }
.item.offset { margin-top: clamp(40px, 8vw, 140px); }
.item figcaption,
.card figcaption {
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.item figcaption span { color: var(--muted); }

/* ---------- Lookbook (pinned horizontal scroll on desktop) ---------- */
.lookbook {
  position: relative;
  height: 300vh;
}
.lookbook-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.lookbook-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 0 var(--gutter);
  margin-bottom: 32px;
}
.progress {
  position: relative;
  width: min(240px, 40vw);
  height: 1px;
  background: var(--line);
  overflow: hidden;
}
.progress span {
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform-origin: left;
  transform: scaleX(var(--p, 0));
}
.lookbook-track {
  display: flex;
  gap: clamp(16px, 3vw, 48px);
  padding: 0 var(--gutter);
  will-change: transform;
}
.card {
  margin: 0;
  flex: 0 0 auto;
  width: clamp(260px, 32vw, 500px);
}
.card .frame {
  --ar: 4 / 5;
  aspect-ratio: 4 / 5;
}
.card .frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Split layouts ---------- */
.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 6vw, 120px);
  align-items: center;
}
.split .copy { max-width: 560px; }

/* ---------- News ---------- */
.news-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(32px, 5vw, 64px);
  border-top: 1px solid var(--ink);
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 36px);
  line-height: 1.3;
}
.news-panel p { margin: 0; max-width: 28ch; }
.text-link {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  padding-bottom: 6px;
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
  transition: background-size 0.5s var(--ease);
}
.text-link:hover { background-size: 0 1px; background-position: right bottom; }

/* ---------- Contact form ---------- */
.enquire {
  display: flex;
  align-items: center;
  max-width: 760px;
  border-bottom: 1px solid var(--ink);
}
.enquire input {
  flex: 1;
  min-width: 0;
  padding: 16px 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(20px, 2.6vw, 30px);
  outline: none;
}
.enquire input::placeholder { color: rgba(17, 17, 17, 0.4); }
.enquire button {
  padding: 12px 0 12px 16px;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  cursor: pointer;
}
.enquire button:hover { text-decoration: underline; text-underline-offset: 6px; }
.enquire:focus-within { border-bottom-width: 2px; }
.form-msg {
  min-height: 1.6em;
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: var(--paper);
}
.footer-inner {
  display: grid;
  gap: 28px;
  padding-top: 64px;
  padding-bottom: 48px;
}
.brand-foot {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 44px);
  text-decoration: none;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.footer-links a { text-decoration: none; opacity: 0.8; }
.footer-links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.copy-line {
  margin: 0;
  font-size: 12px;
  opacity: 0.6;
}

/* ---------- Custom cursor (fine pointers only) ---------- */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  mix-blend-mode: difference;
  pointer-events: none;
  display: none;
  transition: width 0.3s var(--ease), height 0.3s var(--ease);
}
.cursor.big { width: 60px; height: 60px; }
@media (hover: hover) and (pointer: fine) {
  .cursor { display: block; }
  .has-cursor, .has-cursor a, .has-cursor button, .has-cursor .item, .has-cursor .card { cursor: none; }
  .has-cursor input { cursor: text; }
}

/* ---------- Tablet and below ---------- */
@media (min-width: 821px) {
  .menu { display: none; }
}

@media (max-width: 820px) {
  .nav-links { display: none; }
  .menu-btn { display: block; }

  .grid { grid-template-columns: 1fr; }
  .grid .item { grid-column: 1 / -1; }
  .grid .item:nth-child(even) { width: 86%; justify-self: end; }
  .item.offset { margin-top: 0; }

  .lookbook { height: auto; }
  .lookbook-sticky {
    position: static;
    height: auto;
    padding: 56px 0;
    overflow: visible;
  }
  .lookbook-head { margin-bottom: 20px; }
  .lookbook-track {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 8px;
  }
  .lookbook-track::-webkit-scrollbar { display: none; }
  .card { width: 78vw; scroll-snap-align: start; }
  .progress { display: none; }

  .split,
  .split-flip { grid-template-columns: 1fr; }
  .split .copy { max-width: none; }
  .news-panel { flex-direction: column; align-items: flex-start; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-video { animation: none; transform: none; }
  .marquee-track { animation: none; }
  .reveal { opacity: 1; transform: none; }
  .clip::after { display: none; }
}
