/* Schirete — Writer, Spy, Filmmaker */

:root {
  --bg: #000;
  --gold: #f5b800;
  --gold-bright: #ffc820;
  --white: #f2f2f2;
  --grey: #8a8a8a;
  --line: #1e1e1e;
  --nav: 'Oswald', 'Arial Narrow', sans-serif;
  --body: 'Barlow', -apple-system, 'Segoe UI', sans-serif;
  --script: 'Yellowtail', cursive;
  --mono: 'Share Tech Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 40px; }

/* ---------- nav ---------- */

.site-nav {
  padding: 34px 0 0;
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 50;
}

.site-nav ul {
  display: flex;
  gap: 34px;
  list-style: none;
  flex-wrap: wrap;
}

.site-nav a {
  font-family: var(--nav);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: .4px;
  color: var(--gold);
  text-decoration: none;
  transition: color .18s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] { color: #fff; }

.nav-toggle { display: none; }

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 60px;
  align-items: stretch;
  padding: 70px 0 40px;
}

/* the brand column matches the photo's height, so the quote can sit on its
   baseline instead of being pushed there with a magic padding value */
.brand {
  display: flex;
  flex-direction: column;
  padding-top: 20px;
}

.brand h1 {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(64px, 7vw, 104px);
  line-height: 1;
  color: #eceaea;
  letter-spacing: 1px;
}

.brand .tagline {
  font-family: var(--nav);
  font-weight: 500;
  font-size: 21px;
  letter-spacing: .5px;
  color: #e8e8e8;
  margin: 14px 0 0 34px;
}

.quote {
  margin-top: auto;      /* bottoms out against the photo, no magic number */
  padding-bottom: 6%;
  max-width: 30ch;
  font-style: italic;
  font-size: 21px;
  line-height: 1.45;
  color: var(--gold);
  min-height: 3em;
}

/* crossfade: the outgoing line fades before the next one arrives */
.quote span {
  display: inline-block;
  opacity: 1;
  transition: opacity 700ms ease;
}

.quote.swapping span { opacity: 0; }

/* ---------- work strip ---------- */

.work {
  border-top: 1px solid var(--line);
  padding: 0 0 90px;
}

.work h2 {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--grey);
  padding: 26px 0 4px;
}

.work ul { list-style: none; }

.work li { border-bottom: 1px solid var(--line); }

.work a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: baseline;
  padding: 26px 0;
  text-decoration: none;
  transition: padding-left .25s ease, color .2s ease;
}

.work a:hover, .work a:focus-visible { padding-left: 14px; }

.work .t {
  font-family: var(--nav);
  font-weight: 500;
  font-size: clamp(26px, 3.4vw, 40px);
  color: var(--white);
  letter-spacing: .4px;
  transition: color .2s ease;
}

.work a:hover .t, .work a:focus-visible .t { color: var(--gold); }

.work .k {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--grey);
}

.work a:hover .k { color: var(--gold); }

/* ---------- viewfinder ---------- */

.viewfinder {
  position: relative;
  aspect-ratio: 1910 / 1397; /* matches assets/hero.jpg exactly */
  background: #050505;
  overflow: hidden;
  isolation: isolate;
}

.viewfinder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1); /* the source is already B&W — this just guards it */
}

/* ---------- iris shutter ---------- */

.viewfinder .iris {
  position: absolute;
  inset: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.iris .hole,
.iris .seams {
  transform-origin: 100px 100px;
  transition: transform 620ms cubic-bezier(.22, .61, .36, 1);
}

.viewfinder.firing .iris .hole,
.viewfinder.firing .iris .seams {
  transition-duration: 95ms;
  transition-timing-function: cubic-bezier(.5, 0, .9, .4);
}

.iris .seams line { stroke: rgba(255, 255, 255, .07); stroke-width: 1.2; }

/* white flash on capture */
.viewfinder .flash {
  position: absolute;
  inset: 0;
  z-index: 6;
  background: #fff;
  opacity: 0;
  pointer-events: none;
}

.viewfinder.flashing .flash { animation: pop 260ms ease-out; }

@keyframes pop {
  0%   { opacity: .82; }
  100% { opacity: 0; }
}

/* click target */
.viewfinder .shutter-hit {
  position: absolute;
  inset: 0;
  z-index: 7;
  background: none;
  border: 0;
  padding: 0;
  cursor: crosshair;
}

.viewfinder .shutter-hit:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -4px;
}

.viewfinder .hint {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 7%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: clamp(9px, .85vw, 12px);
  letter-spacing: 3px;
  color: rgba(255, 255, 255, .5);
  text-shadow: 0 0 6px rgba(0, 0, 0, .9);
  pointer-events: none;
  animation: pulse 2.6s ease-in-out infinite;
  transition: opacity .4s ease;
}

.viewfinder.shot .hint { opacity: 0; }

@keyframes pulse { 0%, 100% { opacity: .35 } 50% { opacity: .8 } }

@media (prefers-reduced-motion: reduce) {
  .iris .hole, .iris .seams { transition: none; }
  .viewfinder .hint { animation: none; }
}

/* the lens vignette and the REC/timecode readout are baked into hero.jpg,
   so only the scanline texture is drawn live */

/* scanlines */
.viewfinder::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom, rgba(255,255,255,.035) 0 1px, transparent 1px 3px);
}

/* ---------- 404 ---------- */

.lost {
  min-height: 62vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 70px 0 90px;
}

.lost .closed-iris { width: 120px; height: 120px; margin-bottom: 30px; }

.lost .code {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 5px;
  color: var(--grey);
}

.lost h2 {
  font-family: var(--nav);
  font-weight: 600;
  font-size: clamp(34px, 5vw, 56px);
  color: var(--gold);
  margin: 14px 0 10px;
}

.lost .say { color: #c9c9c9; font-style: italic; margin-bottom: 34px; }

/* ---------- interior pages ---------- */

.page-head { padding: 60px 0 10px; }

.page-head .kicker {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--grey);
}

.page-head h2 {
  font-family: var(--nav);
  font-weight: 600;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.05;
  color: var(--gold);
  margin-top: 12px;
  letter-spacing: .5px;
}

.page-head .sub {
  margin-top: 16px;
  max-width: 62ch;
  color: #c9c9c9;
  font-size: 19px;
  font-style: italic;
}

.content { padding: 46px 0 100px; }

.content .lede {
  font-size: 21px;
  line-height: 1.6;
  max-width: 66ch;
  color: #e4e4e4;
}

.content p { max-width: 66ch; margin-bottom: 22px; color: #c9c9c9; }

.content h3 {
  font-family: var(--nav);
  font-weight: 600;
  font-size: 26px;
  color: var(--white);
  margin: 46px 0 16px;
  letter-spacing: .4px;
}

.rule { height: 1px; background: var(--line); margin: 54px 0; }

.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 26px;
  margin: 34px 0 10px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
}

.meta-grid dt {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 6px;
}

.meta-grid dd { font-family: var(--nav); font-size: 19px; color: var(--white); }

/* film list */
.films { list-style: none; }

.films li {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 24px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.films .year { font-family: var(--mono); color: var(--gold); font-size: 16px; }
.films .title { font-family: var(--nav); font-size: 23px; color: var(--white); }
.films .note { color: var(--grey); font-size: 15px; font-style: italic; }

/* forms */
.form { max-width: 560px; margin-top: 34px; }

.form label {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 8px;
}

.form input,
.form textarea {
  width: 100%;
  background: #0a0a0a;
  border: 1px solid #262626;
  color: var(--white);
  font-family: var(--body);
  font-size: 17px;
  padding: 13px 15px;
  margin-bottom: 24px;
  transition: border-color .18s ease;
}

.form input:focus,
.form textarea:focus { outline: none; border-color: var(--gold); }

.form textarea { min-height: 170px; resize: vertical; }

.btn {
  display: inline-block;
  font-family: var(--nav);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #000;
  background: var(--gold);
  border: 0;
  padding: 14px 34px;
  cursor: pointer;
  text-decoration: none;
  transition: background .18s ease;
}

.btn:hover { background: var(--gold-bright); }

.btn-ghost {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}

.btn-ghost:hover { background: var(--gold); color: #000; }

.direct {
  margin-top: 42px;
  font-family: var(--mono);
  font-size: 15px;
  color: var(--grey);
  letter-spacing: 1px;
}

.direct a { color: var(--gold); text-decoration: none; }
.direct a:hover { text-decoration: underline; }

/* footer */
.site-foot {
  border-top: 1px solid var(--line);
  padding: 30px 0 50px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 2px;
  color: #4a4a4a;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.site-foot a { color: #4a4a4a; text-decoration: none; }
.site-foot a:hover { color: var(--gold); }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .wrap { padding: 0 22px; }

  .hero {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 40px 0 60px;
    min-height: 0;
  }

  .brand { padding-top: 0; }
  .brand .tagline { margin-left: 8px; }
  .quote { padding-top: 0; margin-top: 4px; max-width: none; font-size: 19px; }
  .viewfinder { order: -1; }

  .site-nav ul { gap: 18px; }
  .site-nav a { font-size: 16px; }

  .films li { grid-template-columns: 1fr; gap: 6px; }
}
