/* ==========================================================================
   jihanjamal.com — 2026
   Dark editorial. Single stylesheet, mobile first, no build step.

   The photographs are the point. Everything here gets out of their way:
   a deep indigo ground, one amethyst accent, and a lot of air.
   ========================================================================== */

/* --- Design tokens ------------------------------------------------------ */

:root {
  /* Deep indigo-black. Cool enough to read as blue-violet, dark enough
     that warm-lit dance photography still glows against it. */
  --bg:         #0A0913;
  --surface:    #131126;
  --surface-2:  #1B1834;
  --hairline:   rgba(228, 226, 245, 0.10);
  --hairline-2: rgba(228, 226, 245, 0.18);

  --fg:         #ECEAF6;
  --fg-muted:   #9E99B8;
  --fg-dim:     #6B6683;

  --accent:      #B49AE8;
  --accent-lit:  #D4C6F7;
  --accent-dim:  rgba(180, 154, 232, 0.16);

  /* Type */
  --display: "Cormorant Garamond", "Iowan Old Style", Palatino, Georgia, serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Fluid scale */
  --step--1: clamp(0.82rem, 0.79rem + 0.14vw, 0.90rem);
  --step-0:  clamp(1.00rem, 0.96rem + 0.20vw, 1.10rem);
  --step-1:  clamp(1.22rem, 1.12rem + 0.44vw, 1.50rem);
  --step-2:  clamp(1.55rem, 1.32rem + 1.05vw, 2.25rem);
  --step-3:  clamp(2.05rem, 1.55rem + 2.30vw, 3.60rem);
  --step-4:  clamp(2.90rem, 1.80rem + 5.20vw, 7.00rem);

  --gap: clamp(1rem, 0.7rem + 1.4vw, 1.75rem);
  --section: clamp(4rem, 2.2rem + 7vw, 9rem);
  --measure: 66ch;
  --wide: 1240px;
  --narrow: 760px;

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

/* --- Reset -------------------------------------------------------------- */

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.7;
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* A faint violet wash from the top so the page isn't a flat black slab. */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 70vh;
  background: radial-gradient(120% 100% at 50% 0%,
              rgba(150, 130, 235, 0.075) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
body > * { position: relative; z-index: 1; }

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

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.008em;
  margin: 0 0 .5em;
  text-wrap: balance;
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p, ul, ol, dl, figure, blockquote, table { margin: 0 0 1.3em; }
p { text-wrap: pretty; }

a {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 1px;
  padding-bottom: 1px;
  transition: color .25s var(--ease), background-size .3s var(--ease);
}
a:hover { color: var(--accent-lit); background-size: 100% 2px; }

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

hr { border: 0; height: 1px; background: var(--hairline); margin: var(--gap) 0; }

::selection { background: var(--accent); color: #0A0913; }

/* --- Utilities ---------------------------------------------------------- */

.wrap { width: min(100% - 2.5rem, var(--wide)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2.5rem, var(--narrow)); margin-inline: auto; }

.prose { max-width: var(--measure); color: #D6D2E6; }
.prose p + h2, .prose p + h3 { margin-top: 2em; }
.prose h2 { font-size: var(--step-2); color: var(--fg); }
.prose h3 { font-size: var(--step-1); color: var(--fg); }
.prose strong { color: var(--fg); font-weight: 600; }

.section { padding-block: var(--section); }
.section--tint { background: var(--surface); }
.section--ink { background: var(--surface-2); }

.center { text-align: center; }

.eyebrow {
  font-family: var(--body);
  font-size: var(--step--1);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin: 0 0 1.1rem;
}

.lede {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--fg-muted);
  font-family: var(--display);
  font-weight: 300;
}

.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; top: -100%; left: 1rem; z-index: 100;
  background: var(--accent); color: #0A0913;
  padding: .75rem 1.25rem; font-weight: 600;
  background-image: none;
}
.skip-link:focus { top: 1rem; }

/* --- Buttons ------------------------------------------------------------ */

.btn {
  display: inline-block;
  font-family: var(--body);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  padding: 1.05em 2.2em;
  border: 1px solid var(--accent);
  background: var(--accent);
  background-image: none;
  color: #0A0913;
  border-radius: 100px;
  cursor: pointer;
  transition: background .28s var(--ease), color .28s var(--ease),
              border-color .28s var(--ease), transform .28s var(--ease),
              box-shadow .28s var(--ease);
}
.btn:hover {
  background: var(--accent-lit);
  border-color: var(--accent-lit);
  color: #0A0913;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -12px rgba(180, 154, 232, .45);
}

.btn--ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--hairline-2);
}
.btn--ghost:hover {
  background: transparent;
  color: var(--accent-lit);
  border-color: var(--accent);
  box-shadow: none;
}

.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; }
.btn-row--center { justify-content: center; }

/* --- Header / nav ------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 9, 19, 0.72);
  backdrop-filter: saturate(1.6) blur(16px);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid var(--hairline);
}

.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--gap);
  padding-block: 1rem;
}

.brand {
  font-family: var(--display);
  font-size: var(--step-1);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.05;
  background-image: none;
  padding-bottom: 0;
}
.brand:hover { color: var(--accent-lit); }
.brand small {
  display: block;
  font-family: var(--body);
  font-size: .56rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-top: .35rem;
}

.nav-toggle {
  display: inline-flex; align-items: center;
  background: none; border: 1px solid var(--hairline-2);
  border-radius: 100px;
  padding: .6rem 1.1rem;
  font: inherit; font-size: var(--step--1); font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--fg); cursor: pointer;
  transition: border-color .25s var(--ease), color .25s var(--ease);
}
.nav-toggle:hover { border-color: var(--accent); color: var(--accent); }
.nav-toggle[hidden] { display: none; }

/* Without JS the nav renders as a stacked list — always reachable. */
.nav { padding-bottom: 1.25rem; }
.js .nav { display: none; }
.js .nav[data-open="true"] { display: block; }

.nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 0;
}
.nav a {
  display: block;
  padding: .8rem 0;
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--hairline);
  background-image: none;
  color: var(--fg-muted);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }

@media (min-width: 64rem) {
  .nav-toggle { display: none; }
  .nav, .js .nav { display: block; padding-bottom: 0; }
  .nav ul { flex-direction: row; gap: 2.2rem; align-items: center; }
  .nav a { border-bottom: 0; padding: .3rem 0; position: relative; }
  .nav a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px;
    height: 1px; background: var(--accent);
    transform: scaleX(0); transform-origin: left;
    transition: transform .32s var(--ease);
  }
  .nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
}

/* --- Hero --------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: min(84svh, 780px);
  display: grid;
  align-items: end;
  background: var(--bg);
  overflow: hidden;
  isolation: isolate;
}

/* Focal point sits right of centre so the text column on the left never
   lands on her face. On wide screens the full frame shows and this has no
   effect; on narrow ones, where `cover` crops hard horizontally, it keeps
   her in view and offset to the right. */
.hero__media {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 68% 26%;
  opacity: .78;
  filter: saturate(.92) contrast(1.04);
  z-index: -2;
}

/* Two scrims. The vertical one seats the text against the foot of the frame;
   the horizontal one darkens only the left third, so the text stays legible
   without dimming her. */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(10,9,19,.60) 0%, rgba(10,9,19,.05) 30%,
                    rgba(10,9,19,.82) 76%, var(--bg) 100%),
    linear-gradient(90deg, rgba(10,9,19,.78) 0%, rgba(10,9,19,.35) 30%,
                    transparent 52%);
}
/* Do NOT put a max-width here. This element also carries .wrap, which centres
   itself with margin-inline:auto — so narrowing it produces a thin column
   floating in the middle of the viewport rather than a text block at the left.
   Constrain the children instead; they are left-aligned inside the container. */
.hero__inner {
  padding-block: clamp(3rem, 8vw, 6.5rem);
}
.hero__inner > * { max-width: 30ch; }
.hero__inner > .hero__tagline,
.hero__inner > .hero__sub,
.hero__inner > .btn-row { max-width: none; }

/* Below ~55rem the frame crops too hard for a side-by-side arrangement to
   hold, so the text returns to the foot of the image across full width. */
@media (max-width: 55rem) {
  .hero { min-height: min(76svh, 620px); }
  .hero__media { object-position: center 22%; }
  .hero::after {
    background:
      linear-gradient(180deg, rgba(10,9,19,.55) 0%, rgba(10,9,19,.05) 26%,
                      rgba(10,9,19,.88) 68%, var(--bg) 100%);
  }
  .hero__inner { max-width: none; }
}
.hero h1 {
  margin-bottom: .12em;
  font-weight: 300;
  letter-spacing: -0.015em;
  line-height: .95;
}
.hero__tagline {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: var(--step-2);
  line-height: 1.35;
  color: var(--accent-lit);
  margin: 0 0 .9em;
  text-wrap: balance;
}
.hero__sub {
  font-size: var(--step--1);
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 2.4rem;
  max-width: none;
}
.hero .btn-row { max-width: none; }

/* Interior page header */
.page-head {
  padding-block: clamp(4rem, 11vw, 8rem) clamp(2.5rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--hairline);
}
.page-head h1 { margin-bottom: .25em; font-weight: 300; }
.page-head .lede { max-width: var(--measure); }

/* --- Grids and cards ---------------------------------------------------- */

.grid { display: grid; gap: var(--gap); }
.grid--2, .grid--3 { grid-template-columns: 1fr; }
@media (min-width: 46rem) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 64rem) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}

.split {
  display: grid; gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 56rem) {
  .split { grid-template-columns: 1fr 1fr; align-items: start; }
  .split--wide-text { grid-template-columns: 1.2fr .8fr; }
  .split--flip > :first-child { order: 2; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
  transition: border-color .3s var(--ease), background .3s var(--ease),
              transform .3s var(--ease);
}
.card:hover {
  border-color: var(--hairline-2);
  background: var(--surface-2);
  transform: translateY(-3px);
}
.card h3 { margin-bottom: .45em; font-size: var(--step-1); }
.card p { color: var(--fg-muted); }
.card p:last-child { margin-bottom: 0; }
.card__meta {
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: .9rem;
}
.section--tint .card { background: var(--surface-2); }
.section--tint .card:hover { background: #241F42; }

/* --- Figures ------------------------------------------------------------ */

figure { margin: 0 0 var(--gap); }

/* Never upscale. Much of the archive is 300–900px wide; stretching those to
   fill a column only makes them blurry. Small images sit at native size. */
figure img {
  border-radius: 8px;
  width: auto;
  max-width: 100%;
  margin-inline: auto;
  border: 1px solid var(--hairline);
}
figcaption {
  font-size: var(--step--1);
  color: var(--fg-dim);
  margin-top: .85rem;
  line-height: 1.55;
  max-width: 46ch;
}

/* --- Pull quote --------------------------------------------------------- */

.quote {
  font-family: var(--display);
  font-size: clamp(1.7rem, 1.1rem + 2.6vw, 3.2rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.18;
  letter-spacing: -0.01em;
  text-align: center;
  max-width: 20ch;
  margin-inline: auto;
  text-wrap: balance;
  color: var(--fg);
}
.quote cite {
  display: block;
  font-family: var(--body);
  font-style: normal;
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 1.6rem;
}

/* --- Entry lists (companies, productions, awards) ----------------------- */

.entries { list-style: none; padding: 0; margin: 0; }
.entries li {
  display: grid;
  grid-template-columns: 1fr;
  gap: .2rem .5rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--hairline);
  transition: border-color .3s var(--ease);
}
.entries li:hover { border-color: var(--hairline-2); }
.entries .year {
  font-family: var(--body);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.entries .title {
  font-family: var(--display);
  font-size: var(--step-1);
  font-weight: 400;
  line-height: 1.25;
}
.entries .detail { color: var(--fg-muted); font-size: var(--step--1); line-height: 1.6; }
@media (min-width: 46rem) {
  .entries li { grid-template-columns: 8rem 1fr; }
  .entries .year { grid-row: span 2; padding-top: .4rem; }
}

/* --- Gallery ------------------------------------------------------------ */

.gallery { columns: 1; column-gap: var(--gap); }
@media (min-width: 42rem) { .gallery { columns: 2; } }
@media (min-width: 70rem) { .gallery { columns: 3; } }

.gallery figure {
  break-inside: avoid;
  margin-bottom: var(--gap);
}
.gallery figure img {
  transition: transform .5s var(--ease), border-color .4s var(--ease);
}
.gallery figure:hover img {
  transform: scale(1.015);
  border-color: var(--hairline-2);
}

/* --- Forms -------------------------------------------------------------- */

.field { margin-bottom: 1.25rem; }
.field label {
  display: block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: .55rem;
}
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  font-size: var(--step-0);
  color: var(--fg);
  background: var(--surface);
  border: 1px solid var(--hairline-2);
  border-radius: var(--radius);
  padding: .85rem 1rem;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.field textarea { min-height: 10rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent);
  background: var(--surface-2);
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.field small { display: block; color: var(--fg-dim); font-size: var(--step--1); margin-top: .45rem; }

/* Honeypot. Off-screen rather than display:none — some bots skip hidden
   fields, but almost none check whether a field is merely positioned away. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --- Detail lists ------------------------------------------------------- */

.details { list-style: none; padding: 0; margin: 0; }
.details li {
  display: grid; gap: .25rem;
  padding: 1.1rem 0; border-bottom: 1px solid var(--hairline);
}
.details .label {
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--fg-dim);
  font-weight: 600;
}
.details .value { font-size: var(--step-1); font-family: var(--display); font-weight: 400; }

/* --- Notice ------------------------------------------------------------- */

.notice {
  border-left: 2px solid var(--accent);
  background: var(--accent-dim);
  padding: 1.15rem 1.4rem;
  font-size: var(--step--1);
  color: var(--fg-muted);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.notice p:last-child { margin-bottom: 0; }
.notice strong { color: var(--fg); }

/* --- Footer ------------------------------------------------------------- */

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--hairline);
  padding-block: var(--section) 2.5rem;
  font-size: var(--step--1);
  color: var(--fg-muted);
}
.site-footer h2, .site-footer h3 {
  color: var(--fg);
  font-size: var(--step-1);
  margin-bottom: .8em;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: .35rem 0; }
.footer-grid { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
@media (min-width: 50rem) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; gap: clamp(2rem,5vw,4rem); }
}
/* ADORA mark. The source is a print file with a solid purple ground, so it
   sits as a small tile rather than a knocked-out logo. Kept modest — it is a
   credit, not a second brand competing with her name. */
.footer-mark { margin: 1.75rem 0 0; }
.footer-mark img {
  width: 104px;
  height: auto;
  border-radius: 6px;
  border: 1px solid var(--hairline);
  opacity: .92;
  transition: opacity .3s var(--ease);
}
.footer-mark img:hover { opacity: 1; }

.colophon {
  margin-top: var(--section);
  padding-top: 1.75rem;
  border-top: 1px solid var(--hairline);
  display: flex; flex-wrap: wrap; gap: .75rem 2rem;
  justify-content: space-between;
  color: var(--fg-dim);
  font-size: .78rem;
}

/* --- Reveal on scroll (progressive enhancement) ------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
}

/* --- Print -------------------------------------------------------------- */

@media print {
  .site-header, .site-footer, .nav-toggle, .btn { display: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
  body::before { display: none; }
  .hero, .page-head, .section--tint, .section--ink { background: #fff; color: #000; min-height: 0; }
  .hero__media, .hero::after { display: none; }
  .prose, .lede, .card p, figcaption, .entries .detail { color: #222; }
  a { background-image: none; }
  a::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}
