/*
Theme Name: Layer Cake Productions Builder
Theme URI: https://layercakeproductions.com
Author: Layer Cake Productions
Description: Bold editorial one-page WordPress theme with a simple Layer Cake Builder admin panel for hero images, inserted split sections, selected frames, negative sections and contact details.
Version: 1.1.1
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPL v2 or later
Text Domain: layercake
*/

:root {
  --black: #030303;
  --white: #f5f5f0;
  --muted: rgba(245,245,240,.66);
  --line: rgba(245,245,240,.22);
  --paper: #f2f1ea;
  --ink: #070707;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: Arial Black, Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  overflow-x: hidden;
  text-transform: uppercase;
}
body:before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background:
    linear-gradient(rgba(255,255,255,.027) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.027) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(circle at 50% 40%, #000 0, transparent 78%);
}
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
.site { position: relative; z-index: 1; }
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: flex-end;
  padding: 22px clamp(20px, 4vw, 64px);
  pointer-events: none;
}
.menu-toggle {
  pointer-events: auto;
  width: clamp(58px, 5vw, 82px);
  height: clamp(58px, 5vw, 82px);
  border: 1px solid rgba(245,245,240,.55);
  background: rgba(0,0,0,.72);
  display: grid;
  place-items: center;
}
.menu-toggle span,
.menu-toggle span:before,
.menu-toggle span:after {
  content: "";
  display: block;
  width: 31px;
  height: 3px;
  background: var(--white);
  position: relative;
}
.menu-toggle span:before { position: absolute; top: -10px; left: 0; }
.menu-toggle span:after { position: absolute; top: 10px; left: 0; }
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0,0,0,.97);
  padding: 120px clamp(22px, 5vw, 80px) 52px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  display: grid;
  align-items: end;
  transition: .25s ease;
}
.menu-overlay:target { opacity: 1; visibility: visible; pointer-events: auto; }
.menu-close {
  position: fixed;
  top: 22px;
  right: clamp(20px, 4vw, 64px);
  width: clamp(58px, 5vw, 82px);
  height: clamp(58px, 5vw, 82px);
  border: 1px solid rgba(245,245,240,.55);
  display: grid;
  place-items: center;
  font-size: 44px;
  line-height: 1;
  background: rgba(0,0,0,.72);
}
.menu-logo {
  color: transparent;
  -webkit-text-stroke: 1px var(--white);
  font-size: clamp(40px, 7vw, 110px);
  line-height: .78;
  letter-spacing: -.08em;
  margin-bottom: 36px;
}
.menu-links { display: grid; gap: 8px; }
.menu-links a {
  font-size: clamp(58px, 12vw, 190px);
  line-height: .76;
  letter-spacing: -.085em;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}
.section { padding: clamp(80px, 9vw, 150px) clamp(22px, 4vw, 64px); position: relative; }
.kicker {
  font-family: Arial, sans-serif;
  font-weight: 900;
  color: var(--muted);
  font-size: clamp(11px, .9vw, 14px);
  letter-spacing: .22em;
  line-height: 1.55;
}
.white-outline { color: transparent; -webkit-text-stroke: clamp(1px, .18vw, 2px) var(--white); }
.black-outline { color: transparent; -webkit-text-stroke: clamp(1px, .18vw, 2px) var(--ink); }
.hero {
  min-height: auto;
  height: calc(100svh - clamp(118px, 9vw, 158px));
  padding: clamp(64px, 5.5vw, 88px) clamp(22px, 4vw, 64px) 38px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  gap: clamp(32px, 5vw, 92px);
  align-items: end;
  overflow: hidden;
}
.hero-copy { position: relative; z-index: 4; }
.hero-title {
  margin: 22px 0 0;
  font-size: clamp(70px, 12.3vw, 210px);
  line-height: .72;
  letter-spacing: -.095em;
  max-width: 980px;
}
.hero-title span { display: block; }
.hero-title .hero-outline {
  font-size: .82em;
  max-width: 8.2ch;
  color: transparent;
  -webkit-text-stroke: clamp(1px, .22vw, 3px) var(--white);
  letter-spacing: -.075em;
}
.intro {
  margin: 28px 0 0;
  max-width: 760px;
  font-family: Arial, sans-serif;
  text-transform: none;
  font-size: clamp(18px, 1.8vw, 27px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -.035em;
  color: rgba(245,245,240,.92);
}
.hero-media { min-height: 0; height: 100%; position: relative; }
.hero-card {
  position: absolute;
  border: 1px solid var(--line);
  background: #111;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0,0,0,.58);
}
.hero-card:before,
.work-card:before,
.negative-media:before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(245,245,240,.45);
  z-index: 3;
  pointer-events: none;
}
.negative-media:before { border-color: rgba(0,0,0,.2); }
.hero-card img, .work-card img, .negative-media img,
.hero-card video, .work-card video, .negative-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.is-bw { filter: grayscale(1) contrast(1.12); }
.is-colour { filter: none; }
.hero-card.primary {
  width: min(42vw, 580px);
  aspect-ratio: 4 / 5;
  right: 2vw;
  bottom: 0;
  transform: rotate(-5deg);
  z-index: 2;
}
.hero-card.secondary {
  width: min(32vw, 440px);
  aspect-ratio: 4 / 5;
  left: 0;
  top: 4vh;
  transform: rotate(7deg);
  opacity: .36;
  z-index: 1;
}
.edge-source {
  position: absolute;
  top: 14px;
  right: 14px;
  bottom: 14px;
  width: 24px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Arial, sans-serif;
  font-weight: 900;
  color: rgba(245,245,240,.98);
  font-size: 10px;
  letter-spacing: .12em;
  line-height: 1;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  white-space: nowrap;
  background: rgba(0,0,0,.62);
  border-left: 1px solid rgba(245,245,240,.35);
  border-right: 1px solid rgba(245,245,240,.16);
  padding: 10px 4px;
}
.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  white-space: nowrap;
  font-size: clamp(46px, 8vw, 128px);
  line-height: .88;
  letter-spacing: -.08em;
  padding: 18px 0 26px;
}
.strip div { display: inline-block; animation: move 20s linear infinite; }
@keyframes move { to { transform: translateX(-50%); } }
.built-grid {
  display: grid;
  grid-template-columns: minmax(320px, .78fr) minmax(0, 1.22fr);
  gap: clamp(46px, 7vw, 130px);
  align-items: start;
}
.built-grid .statement {
  padding-top: clamp(10px, 1.2vw, 24px);
  align-self: start;
}
h2 {
  margin: 0;
  font-size: clamp(56px, 10vw, 168px);
  line-height: .74;
  letter-spacing: -.085em;
}
.statement {
  font-family: Arial, sans-serif;
  text-transform: none;
  font-weight: 900;
  font-size: clamp(21px, 2.3vw, 38px);
  line-height: 1.04;
  letter-spacing: -.045em;
  margin: 0;
  max-width: 880px;
}
.services {
  margin-top: clamp(42px, 6vw, 84px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.service {
  min-height: 230px;
  padding: clamp(20px, 2vw, 30px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 38px;
}
.service b {
  font-size: clamp(26px, 3vw, 52px);
  line-height: .86;
  letter-spacing: -.07em;
}
.service small {
  max-width: 21ch;
  font-family: Arial, sans-serif;
  color: var(--muted);
  font-size: clamp(11px, .95vw, 14px);
  line-height: 1.16;
  letter-spacing: .055em;
  font-weight: 900;
}
.work-header {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(280px, .7fr);
  gap: 40px;
  align-items: end;
  margin-bottom: clamp(36px, 6vw, 86px);
}
.work-header p {
  margin: 0;
  max-width: 620px;
  font-family: Arial, sans-serif;
  text-transform: none;
  font-weight: 900;
  font-size: clamp(18px, 1.5vw, 24px);
  line-height: 1.1;
  letter-spacing: -.035em;
  color: rgba(245,245,240,.78);
}
.work-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 96px;
  gap: clamp(14px, 1.3vw, 22px);
  align-items: stretch;
}
.work-card {
  position: relative;
  border: 1px solid var(--line);
  background: #111;
  overflow: hidden;
}
.work-card.feature { grid-column: 1 / span 7; grid-row: span 7; }
.work-card.medium-a { grid-column: 8 / span 5; grid-row: span 4; transform: rotate(1.5deg); }
.work-card.medium-b { grid-column: 1 / span 4; grid-row: span 4; transform: rotate(-1deg); }
.work-card.wide { grid-column: 5 / span 8; grid-row: span 4; }
.caption {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 4;
  font-family: Arial, sans-serif;
  font-size: 12px;
  letter-spacing: .12em;
  font-weight: 900;
  background: rgba(0,0,0,.78);
  color: var(--white);
  padding: 8px 10px;
}
.negative {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(34px, 6vw, 110px);
  align-items: center;
  overflow: hidden;
}
.negative.is-white { background: var(--paper); color: var(--ink); }
.negative.is-black { background: var(--black); color: var(--white); }
.negative.reverse .negative-media { order: 2; }
.negative.reverse .negative-copy { order: 1; }
.negative-media {
  position: relative;
  min-height: clamp(420px, 48vw, 720px);
  border: 1px solid rgba(0,0,0,.2);
  overflow: hidden;
  transform: rotate(-1.5deg);
  background: #ddd;
}
.negative-copy {
  min-width: 0;
  max-width: 760px;
  padding-right: clamp(18px, 3vw, 48px);
}
.negative-copy h2 {
  font-size: clamp(54px, 8.4vw, 138px);
  line-height: .76;
  max-width: 7.2ch;
}
.negative-copy p {
  max-width: 640px;
  font-family: Arial, sans-serif;
  text-transform: none;
  font-weight: 900;
  font-size: clamp(18px, 1.5vw, 25px);
  line-height: 1.12;
  letter-spacing: -.035em;
  margin: 26px 0 0;
}
.contact {
  min-height: 84vh;
  border-top: 1px solid var(--line);
  display: grid;
  align-items: center;
}
.contact-inner {
  display: grid;
  grid-template-columns: minmax(330px, .9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 110px);
  align-items: center;
}
.contact h2 {
  font-size: clamp(58px, 10vw, 165px);
  line-height: .75;
  letter-spacing: -.08em;
}
.contact-links { display: grid; gap: 18px; text-align: right; }
.contact-links a {
  border-bottom: 1px solid var(--line);
  padding: 0 0 16px;
  font-size: clamp(24px, 2.7vw, 52px);
  line-height: .92;
  letter-spacing: -.065em;
  white-space: nowrap;
  overflow: visible;
  text-overflow: unset;
}
.contact-links a.email-link {
  font-size: clamp(24px, 3vw, 58px);
}
.footer {
  border-top: 1px solid var(--line);
  padding: 24px clamp(22px, 4vw, 64px) 34px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-family: Arial, sans-serif;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .1em;
  font-weight: 900;
}
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; height: auto; min-height: auto; padding-top: 104px; }
  .hero-title { font-size: clamp(72px, 16vw, 150px); }
  .hero-title .hero-outline { max-width: none; font-size: .72em; }
  .hero-media { min-height: 58vh; }
  .hero-card.primary { width: min(70vw, 560px); right: 10%; }
  .hero-card.secondary { width: min(54vw, 420px); left: 4%; }
  .built-grid, .work-header, .negative, .contact-inner { grid-template-columns: 1fr; }
  .built-grid .statement { padding-top: 0; }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .negative-copy { max-width: none; padding-right: 0; }
  .negative-copy h2 { max-width: none; }
  .contact-links { text-align: left; }
  .contact-links a { white-space: normal; overflow: visible; text-overflow: unset; }
}
@media (max-width: 700px) {
  body:before { background-size: 38px 38px; opacity: .78; }
  .nav { padding: 14px 16px; }
  .menu-toggle, .menu-close { width: 56px; height: 56px; }
  .menu-toggle span, .menu-toggle span:before, .menu-toggle span:after { width: 28px; height: 3px; }
  .menu-overlay { padding: 96px 22px 38px; }
  .menu-logo { font-size: clamp(48px, 15vw, 76px); line-height: .82; margin-bottom: 30px; }
  .menu-links a { font-size: clamp(52px, 16vw, 82px); line-height: .86; }

  .hero {
    display: block;
    min-height: auto;
    height: auto;
    padding: 92px 20px 44px;
    overflow: hidden;
  }
  .kicker {
    max-width: calc(100% - 72px);
    font-size: 10px;
    letter-spacing: .18em;
    line-height: 1.45;
  }
  .hero-copy {
    max-width: 100%;
  }
  .hero-title {
    margin-top: 24px;
    font-size: clamp(54px, 17vw, 78px);
    line-height: .92;
    letter-spacing: -.055em;
    max-width: 4.9ch;
  }
  .hero-title span {
    display: block;
  }
  .hero-title .hero-outline {
    display: block;
    font-size: .78em;
    line-height: .94;
    letter-spacing: -.015em;
    -webkit-text-stroke: 1px var(--white);
    max-width: 100%;
    white-space: normal;
  }
  .intro {
    margin-top: 24px;
    max-width: 100%;
    font-size: 18px;
    line-height: 1.16;
    letter-spacing: -.02em;
  }
  .hero-media {
    min-height: 0;
    height: auto;
    margin: 36px 0 0;
    aspect-ratio: 4 / 5;
  }
  .hero-card.secondary { display: none; }
  .hero-card.primary {
    position: relative;
    width: 92vw;
    max-width: none;
    right: auto;
    bottom: auto;
    margin-left: 3vw;
    transform: rotate(-3deg);
    aspect-ratio: 4 / 5;
  }
  .hero-card:before, .work-card:before, .negative-media:before { inset: 12px; }
  .edge-source { top: 12px; right: 12px; bottom: 12px; width: 20px; font-size: 8px; letter-spacing: .1em; padding: 8px 3px; }
  .strip { font-size: 46px; line-height: .9; padding: 14px 0 20px; }

  .section { padding: 64px 20px; }
  .built-grid { display: block; }
  #production h2 {
    font-size: clamp(46px, 14.5vw, 68px);
    line-height: .94;
    letter-spacing: -.045em;
    max-width: 5.2ch;
  }
  #production h2 .white-outline {
    -webkit-text-stroke: 1px var(--white);
  }
  .statement { margin-top: 22px; font-size: 19px; line-height: 1.12; letter-spacing: -.02em; }

  .services {
    margin-top: 38px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .service {
    min-height: 176px;
    padding: 16px;
    gap: 24px;
  }
  .service b { font-size: clamp(28px, 9vw, 40px); line-height: .9; letter-spacing: -.04em; }
  .service small { font-size: 10px; line-height: 1.18; letter-spacing: .04em; max-width: 18ch; }

  .work-header { display: block; margin-bottom: 30px; }
  .work-header h2 {
    font-size: clamp(50px, 16vw, 74px);
    line-height: .92;
    letter-spacing: -.05em;
  }
  .work-header p { margin-top: 22px; font-size: 17px; line-height: 1.12; }
  .work-grid { display: block; }
  .work-card {
    height: auto;
    aspect-ratio: 4 / 5;
    margin-bottom: 18px;
    transform: none !important;
  }
  .work-card.feature { height: auto; aspect-ratio: 4 / 5; }
  .work-card.wide { aspect-ratio: 16 / 10; }
  .caption { left: 12px; bottom: 12px; font-size: 10px; padding: 7px 8px; }

  .negative {
    display: flex;
    flex-direction: column;
    gap: 34px;
    padding: 64px 20px;
  }
  .negative.reverse .negative-media, .negative.reverse .negative-copy { order: initial; }
  .negative-media {
    width: 100%;
    min-height: 0;
    aspect-ratio: 4 / 5;
    transform: none;
    order: 2;
  }
  .negative-copy {
    order: 1;
    padding-right: 0;
    max-width: none;
  }
  .negative-copy h2 {
    font-size: clamp(46px, 14.5vw, 68px);
    line-height: .94;
    letter-spacing: -.045em;
    max-width: 5.8ch;
  }
  .negative-copy p { margin-top: 20px; font-size: 17px; line-height: 1.14; }

  .contact { min-height: auto; padding-top: 70px; padding-bottom: 80px; }
  .contact h2 {
    font-size: clamp(48px, 15vw, 72px);
    line-height: .92;
    letter-spacing: -.05em;
  }
  .contact-links { margin-top: 34px; gap: 15px; text-align: left; }
  .contact-links a { font-size: clamp(28px, 8vw, 38px); line-height: .95; white-space: normal; }
  .footer { display: grid; padding: 22px 20px 30px; font-size: 10px; line-height: 1.5; }
}

@media (max-width: 380px) {
  .hero-title { font-size: 62px; }
  .services { grid-template-columns: 1fr; }
  .service { min-height: 165px; }
}
