/* ============================================================
   CELOVE — Livestream Commerce & Creator Solutions
   Light Nordic editorial · broadcast-red accent
   ============================================================ */

:root {
  --paper:    #e9ecef;   /* cool off-white */
  --paper-2:  #dde2e6;   /* deeper cool grey */
  --ink:      #101418;   /* cool near-black */
  --ink-soft: #4e545a;   /* muted text on paper */
  --ink-mut:  #535a61;   /* cool grey */
  --line:     rgba(16, 19, 23, 0.16);
  --rec:      #e8472b;   /* signal red accent */
  --studio:   #101418;   /* cool dark sections */
  --studio-2: #181c21;
  --bone-dim: rgba(233, 236, 239, 0.62);

  --serif: "Fraunces", Georgia, serif;
  --sans:  "Schibsted Grotesk", system-ui, sans-serif;
  --mono:  "DM Mono", ui-monospace, monospace;

  --pad: clamp(1.25rem, 5vw, 6rem);
  --maxw: 1320px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 74px; /* fallback; kept in sync with real nav height via JS */
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--rec); color: var(--paper); }

a { color: inherit; text-decoration: none; }
em { font-style: italic; }
.serif-it { font-family: var(--serif); font-style: italic; font-weight: 400; }

/* Film-grain overlay --------------------------------------------------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem var(--pad);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav__brand { display: flex; align-items: center; gap: 0.6rem; }
.nav__mark {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--rec);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--rec) 22%, transparent);
}
.nav__name { font-weight: 700; letter-spacing: 0.22em; font-size: 0.95rem; }

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.tc {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-mut);
  letter-spacing: 0.05em;
}

.nav__links { display: flex; align-items: center; gap: 1.8rem; }
.nav__links a {
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  transition: opacity 0.2s;
}
.nav__links a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; bottom: -4px;
  width: 100%; height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav__links a:not(.nav__cta):hover::after,
.nav__links a.is-active::after { transform: scaleX(1); }

.nav__cta {
  padding: 0.55rem 1.15rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 100px;
  transition: background 0.25s, transform 0.25s;
}
.nav__cta:hover { background: var(--rec); transform: translateY(-1px); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 6px;
}
.nav__toggle span {
  width: 26px; height: 2px; background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.nav.is-open .nav__toggle span:first-child { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__toggle span:last-child  { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7rem var(--pad) 5rem;
  max-width: var(--maxw);
  margin: 0 auto;
}
.hero__inner { max-width: 16ch; }
.hero__inner, .hero__inner * { max-width: none; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mut);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
}
.rec-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--rec);
  animation: blink 1.6s ease-in-out infinite;
}

.hero__title {
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(2.9rem, 8.4vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 1.8rem;
}
.hero__title span { display: block; }
.hero__title .amp { font-family: var(--serif); font-style: italic; color: var(--rec); }

.hero__sub {
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  max-width: 46ch;
  color: var(--ink-mut);
  margin-bottom: 1.9rem;
  line-height: 1.5;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}
.loc {
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  margin-right: 0.5rem;
}

.hero__scroll {
  position: absolute;
  bottom: 2.4rem; right: var(--pad);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mut);
}
.hero__scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(var(--ink), transparent);
  animation: scrolldown 2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes scrolldown { 0%, 100% { transform: scaleY(0.4); opacity: 0.4; } 50% { transform: scaleY(1); opacity: 1; } }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.6rem;
  border-radius: 100px;
  border: 1.5px solid var(--ink);
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
  cursor: pointer;
}
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--rec); border-color: var(--rec); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }
.btn--full { width: 100%; }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 1.1rem 0;
  background: var(--paper-2);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 2rem;
  white-space: nowrap;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee__track span {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2.4vw, 1.8rem);
  font-weight: 400;
}
.marquee__track .sep { color: var(--rec); font-size: 0.6em; font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   SECTION SHELL
   ============================================================ */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(4.5rem, 10vw, 9rem) var(--pad);
}
.section--dark {
  max-width: none;
  background: var(--studio);
  color: var(--paper);
  position: relative;
}
.section--dark .section,
.contact__grid { max-width: var(--maxw); margin: 0 auto; }

.section__head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.tag {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rec);
  display: inline-block;
  margin-bottom: 1.2rem;
}
.tag--light { color: var(--rec); }
.section__title {
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(2rem, 5.5vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 18ch;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.about__lead {
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
}
.about__lead em { color: var(--rec); }
.about__body p { color: var(--ink-mut); margin-bottom: 1.4rem; max-width: 52ch; }
.about__body strong { color: var(--ink); font-weight: 600; }

.about__locs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2.5rem;
}
.loc-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.4rem;
  background: color-mix(in srgb, var(--paper-2) 60%, transparent);
}
.loc-card__tc {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--rec);
  letter-spacing: 0.05em;
}
.loc-card h3 { font-family: var(--serif); font-weight: 450; font-size: 1.5rem; margin: 0.4rem 0 0.3rem; }
.loc-card p { font-size: 0.88rem; color: var(--ink-mut); margin: 0; }

/* ============================================================
   SERVICES
   ============================================================ */
.services__grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(233, 236, 239, 0.16);
}
.svc {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1.5rem 1rem;
  border-bottom: 1px solid rgba(233, 236, 239, 0.16);
  border-right: 1px solid rgba(233, 236, 239, 0.16);
  transition: background 0.3s, padding-left 0.3s var(--ease);
  cursor: default;
}
.services__grid li:nth-child(3n) { border-right: 0; }
.svc:hover { background: var(--studio-2); padding-left: 1.6rem; }
.svc:hover .svc__name { color: var(--paper); }
.svc:hover .svc__n { color: var(--rec); }
.svc__n {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--bone-dim);
  min-width: 2ch;
}
.svc__name {
  font-size: 1.08rem;
  font-weight: 500;
  color: rgba(233, 236, 239, 0.88);
  transition: color 0.3s;
}

/* ============================================================
   PACKAGES
   ============================================================ */
.pkg__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.pkg {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 2rem 1.8rem;
  background: color-mix(in srgb, var(--paper-2) 50%, transparent);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
.pkg:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -28px rgba(21,20,15,0.4); }
.pkg--featured {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.pkg--featured .pkg__price small { color: var(--bone-dim); }
.pkg--featured .btn--solid { border-color: var(--rec); }
.pkg__flag {
  position: absolute;
  top: -11px; left: 1.8rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--rec);
  color: var(--paper);
  padding: 0.3rem 0.7rem;
  border-radius: 100px;
}
.pkg__head { margin-bottom: 1.6rem; }
.pkg__tag {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.7rem;
  display: block;
  margin-bottom: 0.8rem;
}
.pkg__price { font-size: 1.25rem; font-weight: 600; }
.pkg__price small { display: block; font-size: 0.72rem; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-mut); margin-bottom: 0.2rem; }
.pkg__list {
  list-style: none;
  margin-bottom: 2rem;
  flex: 1;
}
.pkg__list li {
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  display: flex;
  gap: 0.6rem;
}
.pkg--featured .pkg__list li { border-color: rgba(233,236,239,0.18); }
.pkg__list li::before { content: "—"; color: var(--rec); }
.pkg__note { text-align: center; margin-top: 2.2rem; color: var(--ink-mut); }
.pkg__note strong { color: var(--ink); }

/* ============================================================
   PORTFOLIO / GALLERY
   ============================================================ */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 230px;
  grid-auto-flow: dense;
  gap: 1rem;
}
.shot {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(232,71,43,0.16), transparent 55%),
    linear-gradient(135deg, var(--studio-2), var(--studio));
  display: flex;
  align-items: flex-end;
  padding: 1.2rem;
  color: var(--paper);
  transition: transform 0.4s var(--ease);
}
.shot::after {
  /* subtle scanline texture so empty placeholders still feel intentional */
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 4px);
  opacity: 0.5;
}
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* keep the scanline subtle over real photos, and darken the foot so captions stay legible */
.shot:has(img)::after { opacity: 0.18; }
.shot:has(img)::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,9,7,0.7) 0%, rgba(10,9,7,0.12) 35%, transparent 60%);
  z-index: 1;
}
.shot:hover { transform: scale(0.985); }
.shot--tall { grid-row: span 2; }
.shot--wide { grid-column: span 2; }
.shot__rec {
  position: absolute;
  top: 1rem; left: 1rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  display: flex; align-items: center; gap: 0.4rem;
  z-index: 2;
}
.shot__rec::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--rec); animation: blink 1.6s ease-in-out infinite;
}
.shot figcaption {
  position: relative;
  z-index: 2;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.contact__title {
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 1rem 0 1.2rem;
}
.contact__intro > p { color: var(--bone-dim); max-width: 40ch; margin-bottom: 2.4rem; }
.contact__methods { list-style: none; }
.contact__methods li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 0;
  border-top: 1px solid rgba(233,236,239,0.16);
}
.contact__methods li:last-child { border-bottom: 1px solid rgba(233,236,239,0.16); }
.contact__k {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.contact__methods a { font-size: 1.05rem; font-weight: 500; transition: color 0.2s; }
.contact__methods a:hover { color: var(--rec); }

.form { display: flex; flex-direction: column; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.field .opt { text-transform: none; letter-spacing: 0; }
.field input, .field textarea {
  background: transparent;
  border: 1px solid rgba(233,236,239,0.22);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  color: var(--paper);
  font-family: var(--sans);
  font-size: 1rem;
  transition: border-color 0.25s, background 0.25s;
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--rec);
  background: rgba(233,236,239,0.04);
}
.form .btn--solid { background: var(--rec); border-color: var(--rec); margin-top: 0.4rem; }
.form .btn--solid:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.form__status { font-family: var(--mono); font-size: 0.8rem; color: var(--bone-dim); min-height: 1.2em; }
.form__status.is-ok { color: #7fd18a; }
.form__status.is-err { color: var(--rec); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--paper-2); padding: clamp(3rem, 6vw, 5rem) var(--pad) 2rem; border-top: 1px solid var(--line); }
.footer__top {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line);
}
.footer__brand { display: flex; flex-direction: column; gap: 0.8rem; }
.footer__brand .nav__mark { width: 20px; height: 20px; }
.footer__name { font-weight: 700; letter-spacing: 0.22em; font-size: 1.1rem; }
.footer__tag { color: var(--ink-mut); font-size: 0.92rem; line-height: 1.5; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.footer__cols div { display: flex; flex-direction: column; gap: 0.55rem; }
.footer__k {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rec);
  margin-bottom: 0.3rem;
}
.footer__cols a { font-size: 0.95rem; color: var(--ink-mut); transition: color 0.2s; width: fit-content; }
.footer__cols a:hover { color: var(--ink); }
.footer__bottom {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-top: 1.6rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--ink-mut);
}
.footer__bottom .tc { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; }

/* ============================================================
   LEGAL PAGES (privacy / terms)
   ============================================================ */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 9rem var(--pad) 5rem;
}
.legal h1 {
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(2.4rem, 6vw, 4rem);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 0.6rem;
}
.legal .updated { font-family: var(--mono); font-size: 0.78rem; color: var(--ink-mut); margin-bottom: 2.5rem; }
.legal h2 {
  font-family: var(--serif);
  font-weight: 450;
  font-size: 1.5rem;
  margin: 2.4rem 0 0.7rem;
}
.legal p, .legal li { color: var(--ink-mut); margin-bottom: 0.9rem; }
.legal ul { padding-left: 1.2rem; }
.legal a { color: var(--rec); text-decoration: underline; text-underline-offset: 3px; }
.legal__back {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.06em;
  margin-bottom: 2.5rem; color: var(--ink);
}
.legal__back:hover { color: var(--rec); }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .about__grid { grid-template-columns: 1fr; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .services__grid li:nth-child(3n) { border-right: 1px solid rgba(233,236,239,0.16); }
  .services__grid li:nth-child(2n) { border-right: 0; }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav__links {
    position: fixed;
    inset: 64px 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.4rem;
    padding: 2rem var(--pad) 2.4rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    transform: translateY(-130%);
    transition: transform 0.45s var(--ease);
  }
  .nav.is-open .nav__links { transform: translateY(0); }
  .nav__links a { font-size: 1.4rem; }
  .nav__toggle { display: flex; }

  .pkg__grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  /* drop the desktop explicit placements: every tile is 1x1 by default */
  .gallery .shot { grid-column: auto !important; grid-row: auto !important; }
  /* mobile span overrides */
  .gallery .shot--m-wide { grid-column: 1 / -1 !important; } /* 2 columns wide */
  .gallery .shot--m-tall { grid-row: span 2 !important; }    /* 2 rows tall */
  .about__locs { grid-template-columns: 1fr; }
  .hero__scroll { display: none; }
}

@media (max-width: 480px) {
  .services__grid { grid-template-columns: 1fr; }
  .services__grid li { border-right: 0 !important; }
  .footer__cols { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; }
}
