/* Kosmic Kreations — kosmickreations.ai — v1 */

:root {
  --navy: #0f1b33;
  --navy-deep: #0a1226;
  --gold: #c9a85c;
  --gold-dim: rgba(201, 168, 92, 0.38);
  --gold-faint: rgba(201, 168, 92, 0.16);
  --bone: #e8e4da;
  --bone-dim: #b9b4a7;
  --measure: 62ch;
  --gutter: clamp(20px, 5vw, 72px);
}

* { box-sizing: border-box; }

html { background: var(--navy); color: var(--bone); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "EB Garamond", Georgia, "Times New Roman", serif;
  font-size: 1.1875rem;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--gold); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }

img, svg, video, iframe { max-width: 100%; display: block; }

/* Spaced-capital voice: wordmark, headings, nav, footer */
.caps, h1, h2, h3, nav, .btn, .footer, .film-title, .series-rule {
  font-family: "Jost", "Josefin Sans", "Futura", "Century Gothic", sans-serif;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.22em;
}

h1, h2, h3 { color: var(--bone); margin: 0 0 0.6em; line-height: 1.25; }
h1 { font-size: clamp(1.5rem, 3.2vw, 2.25rem); letter-spacing: 0.3em; }
h2 { font-size: clamp(1.05rem, 2vw, 1.3rem); margin-top: 2.6em; }
h3 { font-size: 0.95rem; letter-spacing: 0.2em; margin-top: 2em; color: var(--gold); }

p { margin: 0 0 1.1em; max-width: var(--measure); }
ul, ol { max-width: var(--measure); padding-left: 1.2em; }
li { margin-bottom: 0.45em; }
em { font-style: italic; }
small, .small { font-size: 0.92rem; color: var(--bone-dim); }

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 22px var(--gutter);
  border-bottom: 1px solid var(--gold-faint);
}
.brand { display: flex; align-items: center; gap: 14px; color: var(--bone); }
.brand:hover, .brand:focus-visible { text-decoration: none; }
.brand svg { width: 36px; height: 36px; flex: none; }
.brand .caps { font-size: 0.78rem; letter-spacing: 0.3em; }

nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(14px, 2.5vw, 34px); }
nav a { color: var(--bone-dim); font-size: 0.72rem; }
nav a:hover, nav a:focus-visible { color: var(--gold); text-decoration: none; }
nav a[aria-current="page"] { color: var(--gold); border-bottom: 1px solid var(--gold); padding-bottom: 3px; }

/* Page body */
main { flex: 1; }
.wrap { padding: clamp(40px, 7vw, 96px) var(--gutter); max-width: 1100px; margin: 0 auto; width: 100%; }
.wrap > p:first-of-type { margin-top: 0; }

/* Hero (home) */
.hero {
  position: relative;
  padding: clamp(48px, 9vw, 120px) var(--gutter) clamp(40px, 6vw, 80px);
  display: grid;
  gap: clamp(28px, 5vw, 64px);
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  overflow: hidden;
}
@media (min-width: 760px) { .hero { grid-template-columns: minmax(260px, 420px) minmax(0, 1fr); } }

/* the drafting line that runs through the hero, aligned with the K's axis */
.hero::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  height: 1px;
  background: var(--gold-faint);
  pointer-events: none;
}

.mark { width: min(100%, 420px); margin: 0 auto; }
.mark svg { width: 100%; height: auto; }

.lockup .caps { display: block; }
.lockup h1 { margin: 0; }
.lockup .rule { width: 72px; height: 1px; background: var(--gold); margin: 18px 0; }
.lockup .tagline { font-size: 0.78rem; letter-spacing: 0.34em; color: var(--gold); margin: 0; }
.lockup p.lede { margin-top: 2.2em; font-size: 1.25rem; max-width: 46ch; }

/* The K draws itself. Construction lines first, then the letter. */
@media (prefers-reduced-motion: no-preference) {
  .mark .guides path, .mark .guides circle { stroke-dasharray: 1600; stroke-dashoffset: 1600; animation: draw 1.6s ease-out forwards; }
  .mark .letter path { stroke-dasharray: 500; stroke-dashoffset: 500; animation: draw 0.9s ease-out 1.1s forwards; }
  .lockup { opacity: 0; animation: appear 0.8s ease-out 1.7s forwards; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }

/* Three doors */
.doors { display: grid; gap: 1px; background: var(--gold-faint); border: 1px solid var(--gold-faint); margin: clamp(32px, 5vw, 56px) auto 0; max-width: 1100px; }
@media (min-width: 640px) { .doors { grid-template-columns: repeat(3, 1fr); } }
.door { background: var(--navy); padding: 28px clamp(20px, 3vw, 36px); color: var(--bone); display: block; }
.door:hover, .door:focus-visible { background: var(--navy-deep); text-decoration: none; }
.door .caps { font-size: 0.8rem; color: var(--gold); display: block; margin-bottom: 10px; }
.door p { margin: 0; color: var(--bone-dim); font-size: 1.05rem; }

/* Films */
.player { position: relative; aspect-ratio: 16 / 9; background: var(--navy-deep); border: 1px solid var(--gold-faint); overflow: hidden; }
.player img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.player button {
  position: absolute; inset: 0; width: 100%; height: 100%;
  background: transparent; border: 0; cursor: pointer; color: var(--bone);
  display: flex; align-items: center; justify-content: center;
}
.player button span {
  width: 64px; height: 64px; border: 1px solid var(--gold); border-radius: 50%;
  display: grid; place-items: center; background: rgba(15, 27, 51, 0.55);
}
.player button span::after { content: ""; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent var(--gold); margin-left: 4px; }
.player button:hover span, .player button:focus-visible span { background: var(--navy); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.feature { max-width: 860px; }
.feature .film-title { margin-top: 14px; }

.film-grid { display: grid; gap: clamp(20px, 3vw, 36px) clamp(16px, 2.5vw, 28px); margin-top: 24px; }
@media (min-width: 560px) { .film-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .film-grid { grid-template-columns: repeat(3, 1fr); } }
.film-title { font-size: 0.74rem; letter-spacing: 0.2em; color: var(--bone); margin: 12px 0 2px; }
.film-meta { font-size: 0.95rem; color: var(--bone-dim); margin: 0; }

.series { border-top: 1px solid var(--gold-faint); padding-top: 32px; margin-top: 48px; }
.series:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.series h2 { margin-top: 0; }

/* Work with us */
.lines { list-style: none; padding: 0; margin: 0; max-width: 100%; }
.lines li { border-top: 1px solid var(--gold-faint); padding: 26px 0; margin: 0; display: grid; gap: 6px 40px; }
@media (min-width: 760px) { .lines li { grid-template-columns: 260px minmax(0, 1fr); } }
.lines h3 { margin: 0; padding-top: 4px; }
.lines p { margin: 0; }
.lines p + p { margin-top: 0.8em; }

.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; padding-left: 2.6em; position: relative; margin-bottom: 0.7em; }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 0.15em; font-family: "Jost", sans-serif; font-weight: 300; font-size: 0.8rem; letter-spacing: 0.1em; color: var(--gold); }

.btn {
  display: inline-block; font-size: 0.74rem; color: var(--navy); background: var(--gold);
  padding: 14px 26px; margin-top: 8px;
}
.btn:hover, .btn:focus-visible { text-decoration: none; background: var(--bone); }

.call { border: 1px solid var(--gold-dim); padding: clamp(24px, 4vw, 40px); margin-top: 56px; max-width: 760px; }
.call h2 { margin-top: 0; }
.call p:last-of-type { margin-bottom: 1.4em; }

/* Contact */
.contact-line { font-size: 1.4rem; margin: 0.2em 0 1.2em; }
.contact-line a { border-bottom: 1px solid var(--gold-dim); }
.contact-line a:hover { text-decoration: none; border-color: var(--gold); }

/* Footer */
.footer {
  background: var(--navy-deep);
  border-top: 1px solid var(--gold-faint);
  padding: 32px var(--gutter) 40px;
  font-size: 0.68rem;
  color: var(--bone-dim);
  letter-spacing: 0.2em;
  line-height: 2.2;
}
.footer a { color: var(--bone-dim); }
.footer a:hover { color: var(--gold); text-decoration: none; }
.footer .disclosure { text-transform: none; letter-spacing: 0.02em; font-family: "EB Garamond", Georgia, serif; font-size: 0.95rem; margin-top: 10px; }
.footer .inner { max-width: 1100px; margin: 0 auto; }
.footer .sep { color: var(--gold-dim); padding: 0 0.6em; }

nav a { white-space: nowrap; }
nav ul { flex-wrap: wrap; }
.doors { margin-bottom: clamp(48px, 7vw, 96px); }
.feature .film-title, .feature .film-meta { max-width: 860px; }

@media (max-width: 600px) {
  body { font-size: 1.1rem; }
  .site-header { flex-wrap: wrap; gap: 14px 0; padding-bottom: 14px; }
  .brand .caps { display: none; }
  nav { width: 100%; }
  nav ul { gap: 10px 18px; }
  nav a { font-size: 0.66rem; letter-spacing: 0.18em; }
  .footer .sep { display: none; }
  .footer .line > a, .footer .line > span { display: block; }
}
