/* Phil in the Frame — site styles */
@font-face { font-family: "Saira Condensed"; font-weight: 600; font-display: swap; src: url("../fonts/saira-condensed-semibold.woff2") format("woff2"); }
@font-face { font-family: "Saira Condensed"; font-weight: 800; font-display: swap; src: url("../fonts/saira-condensed-extrabold.woff2") format("woff2"); }
@font-face { font-family: "Saira Condensed"; font-weight: 900; font-display: swap; src: url("../fonts/saira-condensed-black.woff2") format("woff2"); }

:root {
  --ink: #111418;
  --ink-2: #1a1e24;
  --ink-3: #252a31;
  --green: #2B9348;
  --green-hover: #34a855;
  --white: #ffffff;
  --text: #e9ecef;
  --muted: #a3acb5;
  --line: #2f353d;
  --display: "Saira Condensed", "Arial Narrow", sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--text); font-family: var(--body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--white); }
a:hover { color: var(--green-hover); }
:focus-visible { outline: 2px solid var(--green-hover); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); color: var(--ink); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* Display type: slanted to match the logo */
.display, h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: 0.5px; line-height: 1.02; color: var(--white); margin: 0; }
h1 { font-size: clamp(44px, 7vw, 92px); font-weight: 900; }
h2 { font-size: clamp(34px, 4.5vw, 56px); }
h3 { font-size: 26px; }
.eyebrow { font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: 4px; text-transform: uppercase; color: var(--green-hover); margin: 0 0 12px; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--text); max-width: 640px; }
.muted { color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 26px; border-radius: 4px; font-family: var(--display); font-weight: 800; font-size: 18px; letter-spacing: 1.5px; text-transform: uppercase; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-hover); color: var(--white); }
.btn-ghost { border-color: rgba(255,255,255,.7); color: var(--white); background: transparent; }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.1); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Header */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .3s, box-shadow .3s; }
.site-header.solid, .site-header.always-solid { background: rgba(17,20,24,.96); box-shadow: 0 1px 0 var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 76px; }
.brand img { width: 220px; height: auto; }
.nav { display: flex; gap: 6px; align-items: center; }
.nav a { font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: 2px; text-transform: uppercase; text-decoration: none; color: var(--white); padding: 10px 14px; border-radius: 4px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--green-hover); }
.nav .btn { padding: 8px 18px; min-height: 42px; font-size: 16px; margin-left: 8px; }
.menu-toggle { display: none; background: none; border: 0; color: var(--white); width: 48px; height: 48px; cursor: pointer; }
@media (max-width: 860px) {
  .brand img { width: 180px; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav { position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; background: var(--ink); padding: 12px var(--gutter) 24px; border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 6px; font-size: 20px; }
  .nav .btn { margin: 10px 0 0; }
}

/* Hero */
.hero { position: relative; min-height: max(620px, 100svh); display: flex; align-items: flex-end; overflow: hidden; background: #000; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,12,15,.92) 0%, rgba(10,12,15,.5) 40%, rgba(10,12,15,0) 65%), linear-gradient(to right, rgba(10,12,15,.6) 0%, rgba(10,12,15,0) 60%), linear-gradient(to bottom, rgba(10,12,15,.55) 0%, rgba(10,12,15,0) 18%); pointer-events: none; }
.hero .eyebrow { color: var(--white); text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.hero h1, .hero .lead { text-shadow: 0 2px 14px rgba(0,0,0,.45); }
@media (max-width: 860px) { .hero::after { background: linear-gradient(to top, rgba(10,12,15,.95) 0%, rgba(10,12,15,.7) 50%, rgba(10,12,15,.15) 80%), linear-gradient(to bottom, rgba(10,12,15,.55) 0%, rgba(10,12,15,0) 18%); } }
.hero-content { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(48px, 9vh, 96px); }
.hero-content .lead { margin: 18px 0 30px; }
.hero-caption { position: absolute; right: var(--gutter); bottom: 22px; z-index: 2; font-size: 13px; color: rgba(255,255,255,.75); letter-spacing: .5px; }
.hero-dots { display: flex; gap: 10px; margin-top: 34px; }
.hero-dots button { width: 34px; height: 4px; border: 0; padding: 0; background: rgba(255,255,255,.35); cursor: pointer; border-radius: 2px; }
.hero-dots button[aria-current="true"] { background: var(--green-hover); }
.hero-dots button::before { content: ""; display: block; height: 44px; margin-top: -20px; }
@media (max-width: 860px) { .hero-caption { display: none; } }

/* Sections */
section { padding: clamp(64px, 10vw, 120px) 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 36px; }
.alt-bg { background: var(--ink-2); }

/* Masonry grid */
.masonry { columns: 3 320px; column-gap: 14px; }
.masonry .tile { break-inside: avoid; margin: 0 0 14px; position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--ink-3); cursor: zoom-in; overflow: hidden; border-radius: 3px; }
.masonry .tile img { width: 100%; height: auto; transition: transform .5s ease, opacity .3s; }
.masonry .tile:hover img { transform: scale(1.03); }
.tile .tile-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; font-size: 14px; color: var(--white); text-align: left; background: linear-gradient(to top, rgba(0,0,0,.7), rgba(0,0,0,0)); opacity: 0; transition: opacity .25s; }
.tile:hover .tile-cap, .tile:focus-visible .tile-cap { opacity: 1; }
@media (hover: none) { .tile .tile-cap { opacity: 1; } }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.filters button { min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--text); font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: 1px; cursor: pointer; }
.filters button span { color: var(--muted); margin-left: 6px; font-size: 14px; }
.filters button:hover { border-color: var(--muted); }
.filters button[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: var(--white); }
.filters button[aria-pressed="true"] span { color: rgba(255,255,255,.8); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin: 40px 0; counter-reset: step; }
.step { background: var(--ink-3); border-radius: 6px; padding: 28px; border-top: 4px solid var(--green); }
.step h3 { margin-bottom: 10px; }
.step h3::before { counter-increment: step; content: counter(step) "."; color: var(--green-hover); margin-right: 10px; }
.step p { margin: 0; color: var(--muted); }
.notice { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 30px; border: 1px solid var(--line); border-radius: 6px; background: var(--ink); }
.notice p { margin: 0; max-width: 680px; }

/* About split */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.split img { border-radius: 4px; width: 100%; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.placeholder { border: 2px dashed #c9a227; background: rgba(201,162,39,.08); padding: 14px 16px; border-radius: 4px; color: #f1d97a; }

/* Contact */
.contact-card { text-align: center; max-width: 760px; margin: 0 auto; }
.contact-card .lead { margin: 18px auto 30px; }
.contact-card .btn-row { justify-content: center; }

/* Page header (inner pages) */
.page-head { padding-top: 150px; padding-bottom: 30px; }
.page-head .lead { margin-top: 16px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; font-size: 15px; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.footer-inner img { width: 170px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--white); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(5,6,8,.97); display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; max-width: 94vw; max-height: 92vh; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-width: 94vw; max-height: 84vh; width: auto; height: auto; object-fit: contain; }
.lightbox figcaption { color: var(--text); margin-top: 12px; font-size: 15px; text-align: center; }
.lb-btn { position: absolute; background: rgba(255,255,255,.08); border: 0; color: var(--white); width: 52px; height: 52px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lb-btn:hover { background: rgba(255,255,255,.18); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 700px) { .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-slide, .masonry .tile img { transition: none; }
}
.bio p { font-size: 18px; } .gear, .bio + ul { margin: 0; }
