/* ===========================================================
   Manjeri Kothiyal — Portfolio
   Tokens: cream #FAF6EF, ivory-deep #F0E9DC, ink #1E1A15,
           gold #C9A96E, gold-deep #A9824C, line rgba(30,26,21,.12)
   Type: Fraunces (display/serif) + Jost (sans/body & nav)
   =========================================================== */

:root {
  --cream: #FAF6EF;
  --ivory-deep: #F0E9DC;
  --ink: #1E1A15;
  --ink-soft: #4A443C;
  --white: #FFFFFF;
  --gold: #C9A96E;
  --gold-deep: #A9824C;
  --line: rgba(30, 26, 21, 0.12);
  --line-soft: rgba(30, 26, 21, 0.08);

  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --max-w: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

#home, #about, #portfolio, #work, #socials, #contact {
  scroll-margin-top: 88px;
}

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.1;
  margin: 0;
  color: var(--ink);
}

p { margin: 0 0 1em; }
a { color: inherit; }

img { display: block; max-width: 100%; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--cream);
  padding: 12px 20px;
  z-index: 200;
}
.skip-link:focus { left: 12px; top: 12px; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--sans);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid var(--ink);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
  background: transparent;
}
.btn-primary {
  background: var(--ink);
  color: var(--cream);
}
.btn-primary:hover { background: var(--gold-deep); border-color: var(--gold-deep); color: var(--ink); }
.btn-ghost {
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--cream); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--gutter);
  background: var(--cream);
  border-bottom: 1px solid var(--line-soft);
}

.brand {
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  font-variant: small-caps;
  text-decoration: none;
  color: var(--ink);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.92rem;
}
.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  position: relative;
  padding-bottom: 4px;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold-deep);
  transition: width 0.25s ease;
}
.site-nav a:hover::after { width: 100%; }

.nav-socials { display: flex; gap: 14px; margin-left: 8px; }
.nav-socials a { color: var(--ink); display: flex; }
.nav-socials a:hover { color: var(--gold-deep); }

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

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  animation: heroZoom 16s ease-out forwards;
}
@keyframes heroZoom {
  from { transform: scale(1.06); }
  to { transform: scale(1); }
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20,17,13,0.72) 0%, rgba(20,17,13,0.25) 42%, rgba(20,17,13,0) 65%);
}
.hero-content {
  position: relative;
  z-index: 2;
  color: var(--cream);
  padding: 0 var(--gutter) 72px;
  max-width: 720px;
}
.hero-tagline {
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  color: var(--gold);
  margin-bottom: 10px;
}
.hero-name {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  margin-bottom: 18px;
  color: var(--cream);
}
.hero-line {
  font-size: 1.1rem;
  max-width: 46ch;
  margin-bottom: 28px;
  color: #F1ECE1;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero .btn-primary { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.hero .btn-primary:hover { background: var(--cream); border-color: var(--cream); }
.hero .btn-ghost { color: var(--cream); border-color: rgba(250,246,239,0.7); }
.hero .btn-ghost:hover { background: var(--cream); color: var(--ink); }

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 6vw, 96px);
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 120px var(--gutter);
  align-items: center;
}
.about-portrait {
  position: relative;
}
.about-portrait::before {
  content: "";
  position: absolute;
  top: -20px; left: -20px;
  width: 100%; height: 100%;
  background: var(--gold);
  opacity: 0.18;
  z-index: 0;
}
.about-portrait img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.about-lead {
  font-family: var(--serif);
  font-size: 1.8rem;
  margin-bottom: 4px;
}
.about-role {
  color: var(--gold-deep);
  font-size: 1rem;
  margin-bottom: 24px;
}
.about-copy p:not(.about-lead):not(.about-role) {
  max-width: 60ch;
  color: var(--ink-soft);
}
.about-close {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink);
  font-size: 1.2rem;
  margin-top: 8px;
}

/* ---------- Portfolio ---------- */
.portfolio {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px var(--gutter) 100px;
}
.section-head { text-align: center; margin-bottom: 64px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.8rem); }

.category { margin-bottom: 96px; }
.category:last-child { margin-bottom: 0; }
.category-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 32px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-bottom: 32px;
}
.category-head h3 {
  font-size: 1.6rem;
  white-space: nowrap;
}
.category-head p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 46ch;
  font-size: 0.98rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 160px;
  gap: 10px;
}
.tile {
  grid-column: span 2;
  grid-row: span 2;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  overflow: hidden;
  position: relative;
}
.tile.tall { grid-row: span 3; }
.tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s ease;
}
.tile:hover img { transform: scale(1.04); }
.tile:focus-visible { outline-offset: -3px; }

.video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.fitness-video {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: var(--ink);
  cursor: pointer;
}
.video-hint {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-align: center;
}

/* ---------- Collaborations / Work ---------- */
.work {
  background: var(--ivory-deep);
  padding: 100px var(--gutter);
  text-align: center;
}
.work h2 { font-size: clamp(2rem, 4vw, 2.6rem); margin-bottom: 28px; }
.work-intro {
  max-width: 62ch;
  margin: 0 auto 20px;
  font-size: 1.1rem;
  color: var(--ink-soft);
}
.work-cta {
  max-width: 52ch;
  margin: 0 auto;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
}

.brand-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 56px;
  margin: 44px 0 48px;
}
.brand-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.brand-item a,
.brand-item .brand-name {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
}
.brand-item a:hover { color: var(--gold-deep); border-color: var(--gold-deep); }
.brand-item span:last-child {
  font-size: 0.85rem;
  color: var(--ink-soft);
  max-width: 26ch;
}

/* ---------- Socials ---------- */
.socials {
  padding: 80px var(--gutter);
  text-align: center;
}
.socials-line {
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin-bottom: 20px;
}
.socials-links { display: flex; justify-content: center; gap: 32px; }
.socials-links a {
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.3rem;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
}
.socials-links a:hover { color: var(--gold-deep); }

/* ---------- Contact ---------- */
.contact {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 100px var(--gutter) 120px;
}
.contact h2 { font-size: clamp(2rem, 4.5vw, 3rem); max-width: 16ch; margin-bottom: 20px; }
.contact-subtext { max-width: 56ch; color: var(--ink-soft); font-size: 1.05rem; margin-bottom: 56px; }

.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(32px, 6vw, 96px);
}
.contact-details { display: flex; flex-direction: column; gap: 16px; }
.contact-link {
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.3rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  width: fit-content;
}
.contact-link:hover { border-color: var(--gold-deep); color: var(--gold-deep); }

.enquiry-card {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 40px 0;
}
.enquiry-card-head {
  text-align: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 32px;
  margin-bottom: 32px;
}
.enquiry-card-head h3 {
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.enquiry-card-head p {
  max-width: 42ch;
  margin: 0 auto;
  color: var(--ink-soft);
}

.enquiry-form { display: flex; flex-direction: column; gap: 22px; }
.enquiry-form label {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.enquiry-form .req { color: var(--gold-deep); }
.enquiry-form input,
.enquiry-form select,
.enquiry-form textarea {
  font-family: var(--sans);
  font-size: 1rem;
  letter-spacing: normal;
  text-transform: none;
  padding: 12px 0;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  resize: vertical;
  appearance: none;
  -webkit-appearance: none;
}
.enquiry-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%234A443C' d='M5.5 7.5l4.5 5 4.5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  background-size: 16px;
}
.enquiry-form select:invalid { color: var(--ink-soft); }
.enquiry-form input:focus,
.enquiry-form select:focus,
.enquiry-form textarea:focus {
  outline: none;
  border-color: var(--gold-deep);
}
.enquiry-submit { display: flex; justify-content: flex-end; margin-top: 8px; }

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  padding: 32px var(--gutter);
  font-size: 0.85rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line-soft);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 12, 9, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 40px;
}
.lightbox img {
  max-width: 100%;
  max-height: 92vh;
  object-fit: contain;
}
.lightbox[hidden] { display: none; }
.lightbox-close {
  position: absolute;
  top: 24px; right: 32px;
  background: none;
  border: none;
  color: var(--cream);
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .about-portrait { max-width: 360px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 140px; }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 940px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .site-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .site-nav a { padding: 12px 0; width: 100%; }
  .nav-socials { margin: 10px 0 0; }
}

@media (max-width: 640px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .tile.tall { grid-row: span 2; }
  .category-head { flex-direction: column; }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
}
