/* Lojack Photography
   Brand tokens: navy ink, fiber paper, golden-hour amber. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4.woff2") format("woff2-variations");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-italic.woff2") format("woff2-variations");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #16243A;        /* navy: text, header, contact band */
  --ink-2: #22344F;      /* raised navy */
  --paper: #EEF0EC;      /* page ground */
  --white: #FFFFFF;
  --amber: #F2A93B;      /* golden hour: focus point, primary action */
  --amber-deep: #D98E1F;
  --slate: #536170;      /* secondary text on paper */
  --mist: #C9D0D6;       /* rules on paper */
  --mist-on-ink: #8FA0B5;/* secondary text on navy */

  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 10vw, 128px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.65;
  font-optical-sizing: auto;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; letter-spacing: -0.02em; margin: 0; font-weight: 700; }
h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--amber); color: var(--ink); padding: 10px 14px; z-index: 100; font-family: var(--display); font-weight: 600; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 22px;
  font-family: var(--display); font-weight: 600; font-size: 1rem;
  text-decoration: none; border-radius: 4px; border: 2px solid transparent;
  cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.btn-amber { background: var(--amber); color: var(--ink); }
.btn-amber:hover { background: var(--amber-deep); }
.btn-line { border-color: currentColor; color: var(--paper); }
.btn-line:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--ink); color: var(--paper); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 36px; height: 36px; flex: none; }
.brand-mark path { fill: none; stroke: currentColor; stroke-width: 7; stroke-linecap: square; }
.brand-mark circle { fill: var(--amber); }
.brand-word { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; }
.brand-sub { font-family: var(--serif); font-style: italic; font-size: .85rem; color: var(--mist-on-ink); margin-top: 2px; }
.site-nav { display: flex; gap: 28px; margin-left: auto; font-family: var(--display); font-weight: 500; font-size: 1rem; }
.site-nav a { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--amber); }
.header-call { font-family: var(--display); font-weight: 700; text-decoration: none; color: var(--ink); background: var(--amber); padding: 9px 14px; border-radius: 4px; white-space: nowrap; }
.header-call:hover { background: var(--amber-deep); }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr; background: var(--ink); color: var(--paper); }
.hero-photo { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 40%; }
.crop { position: absolute; width: 18%; aspect-ratio: 1; border: 0 solid var(--paper); }
.crop-l { left: 7%; bottom: 9%; border-left-width: 5px; border-bottom-width: 5px; }
.crop-j { right: 7%; top: 9%; border-top-width: 5px; border-right-width: 5px; }
.focus-dot { position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(22, 36, 58, .35); }
.hero-text { padding: 40px var(--gutter) 56px; }
.hero h1 { font-size: clamp(2.6rem, 9vw, 4.4rem); font-weight: 750; letter-spacing: -0.035em; max-width: 13ch; }
.hero-lede { font-size: 1.2rem; color: #D5DCE3; max-width: 34ch; margin: 22px 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (min-width: 900px) {
  .hero { grid-template-columns: 1fr 1fr; min-height: min(calc(100vh - 68px), 820px); }
  .hero h1 { font-size: clamp(3rem, 4.6vw, 4.4rem); }
  .hero-photo { order: 2; aspect-ratio: auto; }
  .hero-text { order: 1; align-self: center; padding: 64px 48px 64px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); }
}

/* The one orchestrated moment: the crop marks lock focus on load */
@media (prefers-reduced-motion: no-preference) {
  .crop-l { animation: lock-l .9s cubic-bezier(.2, .8, .2, 1) .25s both; }
  .crop-j { animation: lock-j .9s cubic-bezier(.2, .8, .2, 1) .25s both; }
  .focus-dot { animation: focus 1.2s ease-out .95s both; }
  @keyframes lock-l { from { transform: translate(-40%, 40%) scale(1.5); opacity: 0; } to { transform: none; opacity: 1; } }
  @keyframes lock-j { from { transform: translate(40%, -40%) scale(1.5); opacity: 0; } to { transform: none; opacity: 1; } }
  @keyframes focus { 0% { opacity: 0; transform: scale(2.4); } 45% { opacity: 1; transform: scale(.85); } 100% { opacity: 1; transform: scale(1); } }
}

/* Work */
.work { padding: var(--section) 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 40px; margin-bottom: 36px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  font-family: var(--display); font-size: .95rem; font-weight: 500;
  background: transparent; color: var(--ink); border: 1.5px solid var(--mist);
  padding: 8px 14px; border-radius: 999px; cursor: pointer; min-height: 40px;
}
.filter:hover { border-color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.work-grid { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 8px; }
@media (min-width: 640px) { .work-grid { column-gap: 16px; } }
@media (min-width: 1100px) { .work-grid { columns: 3; } }
.work-item { break-inside: avoid; margin: 0 0 8px; }
@media (min-width: 640px) { .work-item { margin-bottom: 16px; } }
.work-item[hidden] { display: none; }
.work-open { display: block; width: 100%; padding: 0; border: 0; background: var(--mist); cursor: zoom-in; position: relative; }
.work-open img { width: 100%; }
.work-open:hover img { filter: brightness(1.06); }

/* About */
.about { padding: 0 0 var(--section); }
.about-inner { display: grid; gap: 40px; align-items: center; }
.about-photo { margin: 0; position: relative; }
.about-photo::after { content: ""; position: absolute; right: -12px; bottom: -12px; width: 30%; aspect-ratio: 1; border: 0 solid var(--amber); border-right-width: 5px; border-bottom-width: 5px; pointer-events: none; }
.about-text { max-width: 62ch; }
.about-text h2 { margin-bottom: 24px; }
.about-name { font-style: italic; color: var(--slate); margin-top: 1.4em; }
.name-note { border-top: 1px solid var(--mist); padding-top: 14px; margin-top: 20px; }
.name-note summary { font-family: var(--display); font-weight: 600; cursor: pointer; }
.name-note p { margin: 10px 0 0; color: var(--slate); }
@media (min-width: 900px) { .about-inner { grid-template-columns: 5fr 6fr; gap: 72px; } }

/* Sessions */
.sessions { background: var(--white); padding: var(--section) 0; }
.sessions-intro { color: var(--slate); max-width: 52ch; margin: 18px 0 40px; }
.session-list { margin: 0; display: grid; grid-template-columns: 1fr; border-top: 2px solid var(--ink); }
.session-list > div { padding: 22px 0; border-bottom: 1px solid var(--mist); }
.session-list dt { font-family: var(--display); font-weight: 650; font-size: 1.3rem; letter-spacing: -0.01em; margin-bottom: 6px; }
.session-list dd { margin: 0; color: var(--slate); max-width: 46ch; }
@media (min-width: 760px) {
  .session-list { grid-template-columns: 1fr 1fr; column-gap: 56px; }
}

/* Contact */
.contact { background: var(--ink); color: var(--paper); padding: var(--section) 0; }
.contact-inner { display: grid; gap: 48px; }
.contact-direct p { color: #D5DCE3; max-width: 38ch; margin: 18px 0 28px; }
.contact-phone { display: inline-block; font-family: var(--display); font-weight: 750; font-size: clamp(2rem, 6vw, 3.2rem); letter-spacing: -0.03em; text-decoration: none; color: var(--amber); line-height: 1.1; }
.contact-phone:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.contact-email { display: block; margin-top: 12px; font-size: 1.15rem; overflow-wrap: anywhere; }
@media (min-width: 900px) { .contact-inner { grid-template-columns: 5fr 7fr; gap: 72px; } }

.contact-form { background: var(--ink-2); padding: clamp(20px, 4vw, 36px); border-radius: 6px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr; column-gap: 16px; }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { font-family: var(--display); font-weight: 500; font-size: .98rem; }
.optional { color: var(--mist-on-ink); font-weight: 400; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper);
  border: 2px solid transparent; border-radius: 4px; padding: 11px 12px; width: 100%;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--amber); }
.field [aria-invalid="true"] { border-color: #FF8A7A; }
.field-error { color: #FFB4A8; font-size: .95rem; margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 16px 0 0; min-height: 1.5em; }
.form-status.ok { color: #B9E4B0; }
.form-status.err { color: #FFB4A8; }
.contact-form button[disabled] { opacity: .6; cursor: progress; }

/* Footer */
.site-footer { background: var(--ink); color: var(--mist-on-ink); border-top: 1px solid var(--ink-2); padding: 36px 0 44px; font-size: .95rem; }
.footer-inner { display: grid; grid-template-columns: auto 1fr; gap: 18px 24px; align-items: start; }
.footer-inner p { margin: 0; }
.footer-inner p:last-child { grid-column: 2; }
.site-footer .brand-mark { color: var(--paper); width: 40px; height: 40px; }
@media (min-width: 760px) { .footer-inner { grid-template-columns: auto 1fr auto; } .footer-inner p:last-child { grid-column: auto; text-align: right; } }

/* Lightbox */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(12, 19, 31, .96); color: var(--paper); }
.lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(12, 19, 31, .96); }
.lightbox picture { display: contents; }
.lightbox img { max-width: calc(100vw - 32px); max-height: calc(100vh - 120px); width: auto; height: auto; object-fit: contain; }
.lightbox-caption { margin: 14px 16px 0; text-align: center; color: #D5DCE3; max-width: 60ch; font-size: 1rem; }
.lb-btn { position: absolute; background: rgba(22, 36, 58, .8); color: var(--paper); border: 0; width: 52px; height: 52px; border-radius: 50%; font-size: 2rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.lb-btn:hover { background: var(--amber); color: var(--ink); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* Phone layout */
@media (max-width: 759px) {
  .header-inner { flex-wrap: wrap; gap: 0 16px; min-height: 0; padding-top: 10px; }
  .site-nav { order: 3; width: 100%; margin: 6px 0 0; justify-content: space-between; gap: 8px; font-size: .95rem; }
  .site-nav a { padding: 8px 0 10px; }
  .header-call { margin-left: auto; font-size: .95rem; }
  html { scroll-padding-top: 116px; }
  .hero { min-height: 0; }
  .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; }
}
@media (max-width: 380px) {
  .brand-sub { display: none; }
}

/* 404 */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 64px var(--gutter); }
.notfound h1 { font-size: clamp(2.4rem, 7vw, 4rem); margin-bottom: 16px; }
.notfound p { color: var(--slate); max-width: 40ch; margin: 0 auto 28px; }
.notfound .btn-line { color: var(--ink); }
.notfound .btn-line:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
