/* Lövgren & Partners
   Functional Nordic minimalism. One typeface. No accent colour —
   the photography carries every bit of colour on the page. */

:root {
  --ink:    #151A1F;   /* near-black, cooled */
  --paper:  #EEEEEB;   /* limestone */
  --white:  #FFFFFF;
  --grey:   #8A8F8C;   /* labels, secondary */
  --grey-d: #5B615E;
  --rule:   rgba(21, 26, 31, 0.15);
  --rule-i: rgba(238, 238, 235, 0.18);

  --gutter:  clamp(1.5rem, 5vw, 5.5rem);
  --section: clamp(5rem, 10vw, 9.5rem);

  --sans: "Familjen Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --track: 0.14em;      /* heading tracking */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  color-scheme: light;
  scrollbar-color: var(--grey) var(--paper);
  scrollbar-width: thin;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--ink); color: var(--paper); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--grey); }

a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

.wrap { width: 100%; max-width: 82rem; margin-inline: auto; padding-inline: var(--gutter); }

/* Section headings — one word, set large. */
.h {
  font-size: clamp(2rem, 5.5vw, 4.25rem);
  font-weight: 400;
  letter-spacing: var(--track);
  text-transform: uppercase;
  line-height: 1;
  margin: 0;
}

/* ============================ hero ============================ */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media video,
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(72% 52% at 50% 50%, rgba(21,26,31,0.62) 0%, rgba(21,26,31,0) 100%),
    linear-gradient(180deg, rgba(21,26,31,0.62) 0%, rgba(21,26,31,0.30) 42%, rgba(21,26,31,0.78) 100%);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 1.5rem;
}
.nav__mark {
  font-size: 0.9375rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}
.nav__links { display: flex; gap: clamp(1.25rem, 3vw, 2.75rem); }
.nav__links a {
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  padding-block: 0.5rem;
  transition: color 200ms var(--ease);
}
.nav__links a:hover { color: var(--white); }

.hero__center {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem var(--gutter);
}
.hero__name {
  font-size: clamp(2.25rem, 7vw, 5.5rem);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1.05;
  margin: 0;
  text-indent: 0.2em;   /* optical: compensate trailing letterspace */
}
.hero__line {
  margin: clamp(1.25rem, 2.5vw, 2rem) 0 0;
  font-size: clamp(0.75rem, 1.1vw, 0.9375rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  text-indent: 0.2em;
}

.gate-link {
  color: inherit;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 200ms var(--ease), color 200ms var(--ease);
}
.gate-link:hover { color: #fff; border-bottom-color: currentColor; }

.hero__foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  padding-block: 1.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 46rem) {
  .nav__links { display: none; }
  .hero__foot span:last-child { display: none; }
}

/* ============================ about ============================ */

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: min(80svh, 44rem);
}
.about__media { position: relative; }
.about__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding: clamp(3rem, 7vw, 7rem) clamp(1.5rem, 5vw, 5.5rem);
}
.about__text p {
  margin: 0;
  max-width: 30ch;
  font-size: clamp(1.0625rem, 1.6vw, 1.375rem);
  line-height: 1.45;
  color: var(--grey-d);
}

/* History — the one place on the page that carries real prose */
.about--flip .about__media { order: 2; }
.about--flip .about__text { order: 1; }
.history__flag {
  font-size: 0.6875rem !important;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  align-self: flex-start;
  margin-top: -0.75rem !important;
}
.history__body { display: grid; gap: 1.1em; }
.history__body p {
  max-width: 58ch;
  font-size: clamp(0.9375rem, 1.05vw, 1.0625rem);
  line-height: 1.7;
  color: var(--grey-d);
}
@media (max-width: 46rem) {
  .about--flip .about__media { order: 1; }
  .about--flip .about__text { order: 2; }
}
@media (max-width: 46rem) {
  .about { grid-template-columns: 1fr; }
  .about__media { aspect-ratio: 4 / 3; }
}

/* ============================ ledger ============================ */

.sec { padding-block: var(--section); }
.sec > .wrap > .h { margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.ledger {
  border-top: 1px solid var(--rule);
  max-width: 60rem;   /* keep name and label readable as a pair */
}

/* Alternating weight across the page: Portfolio sits left, Divestments right,
   so the capped ledger width reads as rhythm rather than as dead space. */
.sec--right > .wrap > .h { text-align: right; }
.sec--right .ledger { margin-left: auto; }
/* Team is the one section that settles to the centre. */
.sec--center > .wrap > .h { text-align: center; }
.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: baseline;
  padding-block: clamp(1.1rem, 2vw, 1.6rem);
  border-bottom: 1px solid var(--rule);
}
.row__name {
  font-size: clamp(1.375rem, 3.2vw, 2.375rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.row__meta {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey-d);
  text-align: right;
  white-space: nowrap;
}
a.row .row__name { transition: opacity 200ms var(--ease); }
a.row:hover .row__name { opacity: 0.55; }

@media (max-width: 34rem) {
  .row { grid-template-columns: 1fr; gap: 0.35rem; }
  .row__meta { text-align: left; white-space: normal; justify-self: start; }
}

/* ============================ band ============================ */

.band {
  height: clamp(18rem, 46vh, 32rem);
  background: var(--ink);
  overflow: hidden;
}
.band img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ============================ inverted ============================ */

.dark {
  background: var(--ink);
  color: var(--paper);
}
.dark .ledger { border-top-color: var(--rule-i); }
.dark .row { border-bottom-color: var(--rule-i); }
.dark .row__meta { color: rgba(238, 238, 235, 0.68); }

/* ============================ team ============================ */

.people {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 3vw, 2.75rem);
  max-width: 44rem;
  margin-inline: auto;
  border-top: 1px solid var(--rule);
  padding-top: clamp(2rem, 4vw, 3rem);
}
.person__portrait {
  aspect-ratio: 1;
  background: #DEDFDA;
  overflow: hidden;
  margin-bottom: 1.25rem;
  display: grid;
  place-items: center;
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey-d);
}
.person__portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.person__name { font-size: clamp(1.25rem, 2.2vw, 1.625rem); line-height: 1.15; }
.person__meta {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey-d);
}
.person__link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
  transition: border-color 200ms var(--ease);
}
.person__link:hover { border-bottom-color: currentColor; }
.person__link--none { color: var(--grey-d); border-bottom-style: dashed; }

.people--next {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: clamp(2rem, 4vw, 3rem);
}
@media (max-width: 30rem) { .people { grid-template-columns: 1fr; } }

/* ============================ footer ============================ */

.foot {
  background: var(--ink);
  color: var(--paper);
  padding-block: clamp(4rem, 9vw, 7rem) 2.5rem;
  text-align: center;
}
.foot .h { margin-bottom: clamp(2rem, 4vw, 3rem); }
.foot address {
  font-style: normal;
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 2.2;
  color: rgba(238, 238, 235, 0.72);
}
.foot address a { border-bottom: 1px solid var(--rule-i); padding-bottom: 2px; }
.foot address a:hover { border-bottom-color: currentColor; }
.foot__rule {
  width: 100%;
  height: 1px;
  background: var(--rule-i);
  margin: clamp(3rem, 6vw, 5rem) 0 1.75rem;
}
.foot__legal {
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(238, 238, 235, 0.6);
}

/* ============ placeholder marker — delete before launch ============ */
p.tbd { width: max-content; max-width: 100%; }
.tbd { background: rgba(138, 143, 140, 0.3); box-shadow: 0 0 0 3px rgba(138, 143, 140, 0.3); }
.dark .tbd, .foot .tbd { background: rgba(238,238,235,0.16); box-shadow: 0 0 0 3px rgba(238,238,235,0.16); }

/* ====== one authored moment: the hero resolves out of the footage ====== */

@media (prefers-reduced-motion: no-preference) {
  .rise { opacity: 0; filter: blur(6px); animation: rise 1100ms var(--ease) forwards; }
  .rise-1 { animation-delay: 120ms; }
  .rise-2 { animation-delay: 380ms; }
  .rise-3 { animation-delay: 620ms; }
  @keyframes rise { to { opacity: 1; filter: blur(0); } }
}
