/* ==========================================================================
   FreLuck Productions
   ========================================================================== */

:root{
  /* colour ---------------------------------------------------------------- */
  --ground:      #0D0D0D;   /* base */
  --ground-lift: #131313;   /* alternating band */
  --paper:       #F5F3EF;   /* primary text, warm white */
  --muted:       #8A8580;   /* secondary text */
  --dim:         #5E5A56;   /* tertiary, structural */
  --accent:      #C1272D;   /* used sparingly */
  --rule:        #262626;

  /* type ------------------------------------------------------------------ */
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --script:  'Courier Prime', 'Courier New', monospace;  /* slate only */

  /* measure --------------------------------------------------------------- */
  --shell: 1180px;
  --gutter: clamp(1.5rem, 5vw, 5rem);

  /* rhythm ---------------------------------------------------------------- */
  --band-y: clamp(3.5rem, 6vw, 4.5rem);
}

/* ── 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; }
}

body{
  margin: 0;
  background: var(--ground);
  color: var(--paper);
  font-family: var(--display);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p, blockquote, figure, ol, ul{ margin: 0; }
ol, ul{ padding: 0; list-style: none; }
img{ display: block; max-width: 100%; height: auto; }

a{ color: inherit; }

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

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

.skip{
  position: absolute;
  left: -9999px;
}
.skip:focus{
  left: 1rem;
  top: 1rem;
  z-index: 100;
  padding: .6rem 1rem;
  background: var(--paper);
  color: var(--ground);
  font-size: .8rem;
  text-decoration: none;
}

/* ── shell ─────────────────────────────────────────────────────────────── */

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

/* ── masthead ──────────────────────────────────────────────────────────── */

.masthead{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 13, 13, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
}

.masthead__inner{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  min-height: 68px;
}

/* social icons, centre column */
.social{
  display: flex;
  justify-content: center;
  gap: clamp(.85rem, 1.6vw, 1.4rem);
}

.social a{
  display: inline-flex;
  color: var(--muted);
  transition: color .25s ease;
}

.social svg{
  width: 18px;
  height: 18px;
  fill: currentColor;
  display: block;
}

.social a:hover,
.social a:focus-visible{ color: var(--paper); }

@media (max-width: 720px){
  .masthead__inner{ grid-template-columns: 1fr auto; }
  .social{ display: none; }
}

.wordmark{
  display: inline-flex;
  align-items: baseline;
  gap: .55rem;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -.015em;
  text-decoration: none;
  white-space: nowrap;
}

.wordmark__sub{
  font-weight: 500;
  font-size: .66rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav{
  display: flex;
  justify-content: flex-end;
  gap: clamp(1rem, 3vw, 2.25rem);
  font-weight: 600;
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.nav a{
  position: relative;
  padding-block: .35rem;
  color: var(--muted);
  text-decoration: none;
  transition: color .25s ease;
}

.nav a::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s cubic-bezier(.2,.7,.3,1);
}

.nav a:hover,
.nav a:focus-visible{ color: var(--paper); }
.nav a:hover::after,
.nav a:focus-visible::after{ transform: scaleX(1); }

/* ── hero ──────────────────────────────────────────────────────────────── */

.hero{
  padding-block: 6rem clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--rule);
}

/* Both lines are sized from one value, computed so the longer string
   ("MOTION PICTURE DEVELOPMENT", 26 characters) fills the shell without
   wrapping. Fraunces runs wider than a grotesk, so the cap is lower.    */

.hero__title{
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.025em;
  text-transform: uppercase;
  font-size: min(4.6vw, 54px);
  font-variation-settings: 'opsz' 144, 'SOFT' 0, 'WONK' 1;
  text-align: center;
}

.line{
  display: block;
  white-space: nowrap;
}

.line--lead{ color: var(--accent); }
.line--sub { color: var(--paper);  }

/* word cascade */
.w{
  display: inline-block;
  opacity: 0;
  transform: translateY(.28em);
}

.hero.is-shown .w{
  animation: word-in .62s cubic-bezier(.2,.7,.25,1) forwards;
  animation-delay: calc(var(--i) * .13s);
}

@keyframes word-in{
  to{ opacity: 1; transform: none; }
}

.hero__lede{
  max-width: 34ch;
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
  font-size: clamp(1.05rem, 1.9vw, 1.35rem);
  line-height: 1.5;
  color: var(--muted);
}

/* slate pointer, the hook above the fold */
.hero__now{
  display: inline-block;
  margin-top: clamp(2.25rem, 4.5vw, 3.25rem);
  padding: 1.1rem 1.4rem 1.2rem;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  text-decoration: none;
  transition: border-color .25s ease, background .25s ease;
}

.hero__now:hover,
.hero__now:focus-visible{
  background: var(--ground-lift);
  border-color: var(--dim);
  border-left-color: var(--accent);
}

.hero__now-label{
  display: block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero__now-title{
  display: block;
  margin-top: .45rem;
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -.015em;
}

/* ── bands ─────────────────────────────────────────────────────────────── */

.band{
  padding-block: var(--band-y);
  border-bottom: 1px solid var(--rule);
}

.band--tint{ background: var(--ground-lift); }

.band--close{ border-bottom: none; }

.marker{
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-bottom: clamp(1.15rem, 2.2vw, 1.6rem);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}

.marker::before{
  content: "";
  width: 26px;
  height: 2px;
  background: var(--accent);
  flex: none;
}

/* ── about ─────────────────────────────────────────────────────────────── */

.statement{
  max-width: 22ch;
  font-size: clamp(1.4rem, 3.4vw, 2.35rem);
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: -.018em;
}

@media (min-width: 700px){
  .statement{ max-width: 26ch; }
}

/* ── principles ────────────────────────────────────────────────────────── */

.principles{
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 5vw, 5rem);
}

@media (min-width: 900px){
  .principles{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.principle__name{
  padding-bottom: .9rem;
  border-bottom: 1px solid var(--rule);
  font-size: clamp(1.05rem, 1.7vw, 1.2rem);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.principle__body{
  margin-top: 1.15rem;
  max-width: 46ch;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--muted);
}

/* ── slate, the one place the script face appears ──────────────────────── */

.slate{
  display: grid;
  gap: 0;
}

.project{
  display: grid;
  gap: .9rem;
  padding-block: clamp(2.25rem, 4.5vw, 3.25rem);
  border-top: 1px solid var(--rule);
}

.project:last-child{ border-bottom: 1px solid var(--rule); }

@media (min-width: 860px){
  .project{
    grid-template-columns: 15rem minmax(0, 1fr);
    gap: 2.5rem;
  }
}

.project__status{
  display: inline-block;
  font-family: var(--script);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim);
}

.project__status--active{
  color: var(--accent);
}

.project__title{
  font-size: clamp(1.75rem, 4.4vw, 3.05rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.028em;
  text-transform: uppercase;
}

.project__title--held{
  font-weight: 400;
  color: var(--muted);
}

.project__logline{
  max-width: 56ch;
  margin-top: 1.1rem;
  font-family: var(--script);
  font-size: .95rem;
  line-height: 1.75;
  color: var(--muted);
}

.project__link{
  display: inline-block;
  margin-top: 1.5rem;
  padding-bottom: .3rem;
  border-bottom: 1px solid var(--rule);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-decoration: none;
  transition: color .25s ease, border-color .25s ease;
}

.project__link::before{
  content: "→ ";
  color: var(--accent);
}

.project__link:hover,
.project__link:focus-visible{
  border-bottom-color: var(--accent);
}

/* ── team ──────────────────────────────────────────────────────────────── */

.team{
  display: grid;
  gap: clamp(3rem, 6vw, 5rem);
}

@media (min-width: 820px){
  .team{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.member{
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 560px){
  .member{
    grid-template-columns: minmax(0, 13rem) minmax(0, 1fr);
    align-items: start;
    gap: 2rem;
  }
}

/* photo sits in full colour; a soft vignette settles it onto the ground
   and the four corners fall away entirely                                */
.member__figure{
  position: relative;
}

.member__figure::after{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 26px 10px var(--ground-lift);
}

.member__photo{
  width: 100%;
  -webkit-mask-image: radial-gradient(ellipse closest-side, #000 88%, transparent 130%);
          mask-image: radial-gradient(ellipse closest-side, #000 88%, transparent 130%);
}

.member__name{
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -.02em;
}

.member__role{
  margin-top: .5rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

.member__quote{
  position: relative;
  max-width: 44ch;
  margin-top: 1.6rem;
  padding-left: 1.35rem;
  font-size: 1rem;
  font-style: italic;
  line-height: 1.68;
  color: var(--muted);
}

.member__quote::before{
  content: "";
  position: absolute;
  left: 0;
  top: .45rem;
  bottom: .45rem;
  width: 2px;
  background: var(--accent);
}

/* ── contact ───────────────────────────────────────────────────────────── */

.contact__line{
  font-size: .95rem;
  letter-spacing: .04em;
  color: var(--muted);
}

.contact__mail{
  display: inline-block;
  margin-top: 1.1rem;
  font-size: clamp(1.6rem, 5.2vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -.03em;
  text-decoration: none;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 2px;
  transition: background-size .4s cubic-bezier(.2,.7,.3,1);
}

.contact__mail:hover,
.contact__mail:focus-visible{
  background-size: 100% 2px;
}

/* ── footer ────────────────────────────────────────────────────────────── */

.footer{
  padding-block: clamp(3rem, 6vw, 4.5rem);
  border-top: 1px solid var(--rule);
}

.footer__rows{
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
}

.footer__mark{
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .01em;
}

.footer__social{
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.footer__social a{
  color: var(--muted);
  text-decoration: none;
  transition: color .25s ease;
}

.footer__social a:hover,
.footer__social a:focus-visible{ color: var(--paper); }

.footer__legal{
  font-size: .78rem;
  letter-spacing: .04em;
  color: var(--dim);
}

/* ── reveal ────────────────────────────────────────────────────────────── */

.hero,
.band{
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1);
}

.hero.is-shown,
.band.is-shown{
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce){
  .hero,
  .band{
    opacity: 1;
    transform: none;
    transition: none;
  }
  .nav a::after,
  .contact__mail{ transition: none; }

  .w{
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* fallback if JS never runs */
.no-js .hero,
.no-js .band{ opacity: 1; transform: none; }
