/* Cloud Cover Post — shared styles */
:root {
  --paper: #dcdbd3;
  --paper-2: #ebeae4;
  --ink: #111111;
  --sky: #f9a92a;
  --sky-ink: #111111;
  --muted: #5d5d57;
  --display: "Big Shoulders Display", Impact, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --bar: 52px;
  --rail: 56px;
  --gutter: clamp(16px, 3vw, 40px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--mono); font-size: 14px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
::selection { background: var(--sky); color: var(--sky-ink); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* film grain */
body::after {
  content: ""; position: fixed; inset: -50%; pointer-events: none; z-index: 900; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(4) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 25%{transform:translate(-3%,2%)} 50%{transform:translate(2%,-3%)} 75%{transform:translate(-2%,-1%)} }

/* ---------- top bar ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; height: var(--bar); z-index: 500;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 0 var(--gutter); background: var(--paper-2);
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.bar .logo { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: .04em; color: var(--ink); line-height: 1; display: inline-flex; align-items: center; white-space: nowrap; }
.logo-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--sky); margin: 0 11px 0 12px; flex: none; }
.logo-name { font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; }
.bar .tag { display: flex; align-items: center; gap: 9px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; padding-right: var(--rail); line-height: 1.3; }
.bar .tag b { font-weight: 500; }
/* live weather icon */
.wx { display: inline-flex; width: 20px; height: 20px; }
.wx svg { width: 100%; height: 100%; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.wx-cloud { animation: wx-drift 7s ease-in-out infinite; }
.wx-drop { opacity: 0; animation: wx-fall 1.1s cubic-bezier(.5,0,1,1) infinite; }
.wx-drop:nth-of-type(2) { animation-delay: .37s; }
.wx-drop:nth-of-type(3) { animation-delay: .74s; }
@keyframes wx-fall { 0% { transform: translate(0, -2px); opacity: 0; } 20% { opacity: 1; } 100% { transform: translate(-1.5px, 4px); opacity: 0; } }
.wx-snow g { transform-origin: 12px 12px; animation: wx-spin 14s linear infinite; }
.wx-wind path { stroke-dasharray: 26 6; animation: wx-gust 1.8s linear infinite; }
.wx-wind path:nth-child(2) { animation-duration: 2.3s; }
@keyframes wx-drift { 0%, 100% { transform: translate(-3px, 0); } 50% { transform: translate(4px, -1px); } }
@keyframes wx-spin { to { transform: rotate(360deg); } }
@keyframes wx-gust { to { stroke-dashoffset: -32; } }

/* ---------- vertical rail nav ---------- */
.rail {
  position: fixed; right: 0; top: var(--bar); bottom: 0; width: var(--rail); z-index: 400;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 44px;
  mix-blend-mode: difference;
}
.rail a {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: #fff;
  padding: 4px 0; position: relative;
}
.rail a::before {
  content: ""; position: absolute; left: -6px; top: 0; bottom: 0; width: 2px; background: #fff;
  transform: scaleY(0); transform-origin: top; transition: transform .35s ease;
}
.rail a:hover::before, .rail a.on::before { transform: scaleY(1); }

main { padding-right: var(--rail); }
.wrap { padding: 0 var(--gutter); }

/* ---------- hero ---------- */
.hero {
  padding-top: calc(var(--bar) + 40px); padding-bottom: 40px;
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); align-items: end;
}
.hero .reel {
  grid-column: 5 / -1; grid-row: 1; position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #1a1a18;
}
.hero .reel video, .hero .reel img, .hero .reel iframe { border: 0; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero .reel-from {
  position: absolute; top: 12px; right: 12px; z-index: 2; max-width: calc(100% - 24px);
  font-size: 10px; letter-spacing: .16em; text-transform: uppercase; line-height: 1.3;
  background: var(--ink); color: var(--paper); padding: 6px 10px; transition: background .2s, color .2s;
}
.hero .reel-from:hover { background: var(--sky); color: var(--ink); }
.hero h1 { grid-column: 1 / -1; grid-row: 2; position: relative; z-index: 2; margin-top: -.62em !important; }
.hero-foot { grid-column: 1 / -1; }
.hero h1 {
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(48px, 11.2vw, 196px); line-height: .84; letter-spacing: -.005em; margin: 0;
  color: var(--tag, var(--ink)); /* --tag: a color picked to complement the current top still */
}
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line span { display: inline-block; transform: translateY(105%); animation: rise 1.1s cubic-bezier(.2,.8,.1,1) forwards; }
/* hold the rise until the top still and its colors are chosen */
html:not(.ready) .hero h1 .line span { animation-play-state: paused; }
.hero h1 .line:nth-child(2) span { animation-delay: .1s; }
.hero h1 .line:nth-child(3) span { animation-delay: .2s; }
.hero h1 em { font-style: normal; }
.hero h1 .line > span {
  color: transparent;
  background-image: linear-gradient(var(--tag-img, var(--tag)), var(--tag-img, var(--tag))), linear-gradient(var(--tag, var(--ink)), var(--tag, var(--ink)));
  background-repeat: no-repeat; background-size: 0 0, 100% 100%;
  -webkit-background-clip: text; background-clip: text;
}
@keyframes rise { to { transform: translateY(0); } }
.hero-foot { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); align-items: start; padding-top: 48px; }
.hero-foot p { max-width: 46ch; margin: 0; font-size: 15px; }
.hero-foot .role {
  display: inline-block; margin: 0 0 14px; font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(30px, 3.6vw, 52px); line-height: .95; letter-spacing: .01em;
}
.role a { background: linear-gradient(var(--sky), var(--sky)) 0 88% / 100% .32em no-repeat; transition: background-size .35s; padding: 0 .06em; }
.role a:hover { background-size: 100% 100%; }
.role small { font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: .14em; vertical-align: super; margin-left: 4px; }
.about .copy a { color: var(--sky); border-bottom: 1px solid currentColor; }
.hero-foot .scroll { justify-self: end; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; display: flex; gap: 10px; align-items: center; }
.hero-foot .scroll i { width: 1px; height: 42px; background: var(--ink); display: block; animation: drip 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes drip { 0%{transform:scaleY(0)} 50%{transform:scaleY(1)} 100%{transform:scaleY(1); opacity:0} }

/* ---------- client marquee ---------- */
.marquee { border-block: 2px solid var(--ink); overflow: hidden; white-space: nowrap; padding: 14px 0; }
.marquee .track { display: inline-flex; animation: slide 38s linear infinite; }
.marquee span {
  font-family: var(--display); font-weight: 800; font-size: clamp(34px, 5vw, 64px); text-transform: uppercase; line-height: 1;
  padding: 0 .45em; color: transparent; -webkit-text-stroke: 1.5px var(--ink);
}
.marquee span:nth-child(3n+1) { color: var(--ink); -webkit-text-stroke: 0; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- section heads ---------- */
.head { display: flex; justify-content: space-between; align-items: end; gap: 20px; padding: 80px var(--gutter) 40px; flex-wrap: wrap; }
.head h2 {
  font-family: var(--display); font-weight: 900; text-transform: uppercase; margin: 0;
  font-size: clamp(56px, 10vw, 150px); line-height: .85;
}
.head .count { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.toggle { display: inline-flex; border: 1.5px solid var(--ink); border-radius: 99px; overflow: hidden; }
.toggle button {
  font: inherit; font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  background: none; border: 0; padding: 8px 16px; cursor: pointer; color: var(--ink);
}
.toggle button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

/* ---------- staggered work tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); row-gap: clamp(60px, 7vw, 105px); padding: clamp(50px, 6vw, 90px) var(--gutter) 40px; }
.tile { position: relative; display: block; }
.tile .frame { overflow: hidden; background: #c8c7bf; aspect-ratio: 16 / 9; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.8,.1,1), filter .6s; filter: saturate(.9); }
.tile:hover img { transform: scale(1.045); filter: saturate(1.15); }
.tile .client {
  position: absolute; z-index: 2; top: 0; transform: translateY(-62%);
  font-family: var(--display); font-weight: 900; text-transform: uppercase; color: var(--sky);
  font-size: clamp(40px, 6.4vw, 108px); line-height: .82; letter-spacing: .005em; white-space: nowrap;
  transition: letter-spacing .5s cubic-bezier(.2,.8,.1,1);
}
.tile:hover .client { letter-spacing: .03em; }
/* two-tone title: a second shade of the yellow where the letters overlap the thumbnail (set per tile in index.html) */
.tile .client {
  color: transparent;
  background-image: linear-gradient(var(--on, var(--sky)), var(--on, var(--sky))), linear-gradient(var(--sky), var(--sky));
  background-repeat: no-repeat; background-size: 0 0, 100% 100%;
  -webkit-background-clip: text; background-clip: text;
}
.tile .meta { display: flex; justify-content: space-between; gap: 16px; margin-top: 12px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.tile .meta .n { color: var(--muted); }
/* cycle of 6 placements */
.tile:nth-child(6n+1) { grid-column: 1 / span 8; }
.tile:nth-child(6n+1) .client { left: -0.04em; }
.tile:nth-child(6n+2) { grid-column: 6 / span 7; }
.tile:nth-child(6n+2) .client { right: 0; }
.tile:nth-child(6n+3) { grid-column: 2 / span 5; }
.tile:nth-child(6n+3) .client { left: 0; }
.tile:nth-child(6n+4) { grid-column: 7 / span 6; margin-top: 60px; }
.tile:nth-child(6n+4) .client { right: 0; }
.tile:nth-child(6n+5) { grid-column: 1 / span 12; }
.tile:nth-child(6n+5) .frame { aspect-ratio: 21 / 9; }
.tile:nth-child(6n+5) .client { left: 50%; transform: translate(-50%, -62%); font-size: clamp(56px, 11vw, 190px); }
.tile:nth-child(6n+6) { grid-column: 4 / span 6; }
.tile:nth-child(6n+6) .client { left: 0; }

/* ---------- index list view ---------- */
.index { display: none; padding: 0 var(--gutter) 40px; }
.work[data-view="index"] .tiles { display: none; }
.work[data-view="index"] .index { display: block; }
.row {
  display: grid; grid-template-columns: 56px 1.1fr 1.4fr auto; gap: 16px; align-items: baseline;
  border-top: 1.5px solid var(--ink); padding: 14px 0 10px; position: relative;
}
.row:last-child { border-bottom: 1.5px solid var(--ink); }
.row .n, .row .go { font-size: 11px; letter-spacing: .14em; }
.row .c { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 4.2vw, 60px); text-transform: uppercase; line-height: .9; transition: color .2s, transform .35s cubic-bezier(.2,.8,.1,1); }
.row .t { text-transform: uppercase; font-size: 13px; letter-spacing: .05em; }
.row:hover .c { color: var(--sky); transform: translateX(10px); }
.row:hover { background: linear-gradient(var(--paper-2), var(--paper-2)); }
.peek {
  position: fixed; z-index: 450; width: 340px; aspect-ratio: 16/9; pointer-events: none; overflow: hidden;
  opacity: 0; transform: translate(-50%, -50%) scale(.9) rotate(-2deg); transition: opacity .2s, transform .3s;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
}
.peek.show { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-2deg); }
.peek img { width: 100%; height: 100%; object-fit: cover; }
.more { text-align: center; padding: 70px var(--gutter) 0; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }

/* ---------- about ---------- */
.about { background: var(--ink); color: var(--paper); margin-top: 140px; padding-bottom: 120px; }
.about .head h2 { color: var(--paper); }
.about-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); padding: 0 var(--gutter); }
.about .portrait { grid-column: 1 / span 4; }
.about .portrait img { width: 100%; aspect-ratio: 4/5; object-fit: cover; filter: grayscale(1); }
.about .head.about-head { padding-top: 90px; padding-bottom: 36px; }
.about .head.about-head h2 {
  font-size: clamp(34px, 4.2vw, 60px); font-weight: 700; text-transform: none; line-height: 1; letter-spacing: .01em;
}
.about .portrait figcaption { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; margin-top: 10px; color: #9a9991; }
.about .copy { grid-column: 6 / span 7; }
.about .lede { text-wrap: balance; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(32px, 3.8vw, 58px); line-height: .95; margin: 0 0 32px; }
.about .lede em { font-style: normal; color: var(--sky); }
.about .copy p { max-width: 60ch; color: #cfcec6; }
.skills { list-style: none; margin: 44px 0 0; padding: 0; border-top: 1px solid #3a3a37; }
.skills li { display: flex; justify-content: space-between; border-bottom: 1px solid #3a3a37; padding: 12px 0; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.skills li span:last-child { color: var(--sky); }

/* ---------- outside strip ---------- */
.outside .intro { padding: 0 var(--gutter) 30px; max-width: 60ch; }
.strip { display: flex; gap: 14px; overflow-x: auto; padding: 0 var(--gutter) 24px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.strip figure { margin: 0; flex: 0 0 auto; scroll-snap-align: start; }
.strip img { height: clamp(260px, 46vh, 460px); width: auto; object-fit: cover; }
.strip figure:nth-child(odd) { margin-top: 40px; }

/* ---------- contact band ---------- */
.contact { background: var(--sky); color: var(--sky-ink); margin-top: 140px; padding: 90px var(--gutter) 28px; }
.about, .contact { margin-right: calc(-1 * var(--rail)); }
.about { padding-right: var(--rail); }
.contact { padding-right: calc(var(--gutter) + var(--rail)) !important; }
.contact .big {
  display: block; font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(56px, 14vw, 250px); line-height: .8; white-space: nowrap; margin: 0;
}
.contact .big span { display: inline-block; transition: transform .5s cubic-bezier(.2,.8,.1,1); }
.contact .big:hover span { transform: translateX(.08em); }
.contact .big:hover span:last-child { transform: translateX(.16em); }
/* contact form */
.cform { display: grid; grid-template-columns: 1fr 1fr; gap: 26px var(--gutter); margin-top: 56px; max-width: 1100px; }
.cform label span { display: block; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 6px; }
.cform input, .cform textarea {
  width: 100%; font: inherit; font-size: 18px; color: var(--ink); background: transparent;
  border: 0; border-bottom: 2px solid var(--ink); border-radius: 0; padding: 8px 0; outline: none; resize: vertical;
}
.cform textarea { border: 2px solid var(--ink); padding: 12px; min-height: 140px; }
.cform input:focus, .cform textarea:focus { background: rgba(255,255,255,.22); }
.cform [aria-invalid="true"] { border-color: #8a1f11; }
.f-msg { grid-column: 1 / -1; }
.f-send { grid-column: 1 / -1; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.cform button {
  font-family: var(--display); font-weight: 800; font-size: 28px; text-transform: uppercase; letter-spacing: .02em;
  background: var(--ink); color: var(--sky); border: 0; padding: 12px 26px 10px; cursor: pointer; transition: transform .25s;
}
.cform button:hover { transform: translateX(6px); }
.cform button:disabled { opacity: .5; cursor: wait; transform: none; }
.f-status { margin: 0; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact .rule { height: 6px; background: var(--sky-ink); margin: 46px 0 22px; }
.contact .foot { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.contact .foot a { border-bottom: 1px solid transparent; }
.contact .foot a:hover { border-color: currentColor; }

/* ---------- cursor ---------- */
.cursor {
  position: fixed; z-index: 800; left: 0; top: 0; width: 92px; height: 92px; border-radius: 50%;
  background: var(--sky); color: var(--ink); display: grid; place-items: center; pointer-events: none;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  transform: translate(-50%, -50%) scale(0); transition: transform .3s cubic-bezier(.2,.8,.1,1);
}
.cursor.show { transform: translate(-50%, -50%) scale(1); }

/* reveal */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s, transform 1s cubic-bezier(.2,.8,.1,1); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 820px) {
  :root { --rail: 0px; }
  .rail { top: auto; bottom: 0; left: 0; width: auto; height: 46px; flex-direction: row; gap: 28px; background: var(--ink); mix-blend-mode: normal; }
  .rail a { writing-mode: horizontal-tb; transform: none; font-size: 10px; }
  .rail a::before { left: 0; right: 0; top: auto; bottom: -2px; width: auto; height: 2px; transform: scaleX(0); }
  .rail a:hover::before, .rail a.on::before { transform: scaleX(1); }
  body { padding-bottom: 46px; }
  .bar .tag { padding-right: 0; font-size: 10px; letter-spacing: .12em; }
  .bar .logo { flex-direction: column; align-items: flex-start; gap: 3px; font-size: 22px; }
  .logo-dot { display: none; }
  .logo-name { font-size: 9px; letter-spacing: .16em; }
  .hero-foot { grid-template-columns: 1fr; }
  .hero-foot .scroll { justify-self: start; }
  .hero .reel { grid-column: 1 / -1; }
  .hero h1 { margin-top: -.45em !important; }
  .tile, .tile:nth-child(n) { grid-column: 1 / -1 !important; margin-top: 0 !important; }
  .tile:nth-child(n) .client { left: 0; right: auto; transform: translateY(-62%); font-size: clamp(40px, 13vw, 80px); white-space: normal; }
  .tile:nth-child(6n+5) .frame { aspect-ratio: 16/9; }
  .row { grid-template-columns: 36px 1fr; }
  .row .t { grid-column: 2; }
  .row .go { display: none; }
  .about .portrait, .about .copy { grid-column: 1 / -1; }
  .contact .foot { grid-template-columns: 1fr 1fr; }
  .cform { grid-template-columns: 1fr; }
  .contact .big { white-space: normal; font-size: clamp(56px, 18vw, 120px); }
  .peek, .cursor { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero h1 .line span { transform: none; }
  .reveal { opacity: 1; transform: none; }
}
