/* ============================================================
   Akemi Kawanabe Photography
   Layout ported from Start Bootstrap "Creative" (MIT, see LICENSE-creative.txt):
   fixed nav over a full-screen photo masthead, accent band, four-column
   services, edge-to-edge photo grid with hover captions, closing call to action.
   Brand (palette, type, orange-only-in-Sports) from docs/website-brief.md.
   No framework: plain CSS, no build step.
   ============================================================ */

:root {
  --bg:        #FAFAF8;  /* warm white */
  --ink:       #1A1A1A;  /* near-black */
  --burgundy:  #7B2D3B;  /* brand accent (resting state) */
  --burgundy-deep: #5E2230;
  --grey:      #6F6F68;  /* warm grey, darkened from #8A8A82 to pass 4.5:1 on --bg */
  --orange:    #E04A1F;  /* sports accent, only inside Sports */
  --line:      #E6E4DE;
  --paper:     #F1EFEA;  /* placeholder tiles */
  --accent:    var(--burgundy);

  --max:   1180px;
  --gut:   clamp(20px, 5vw, 64px);
  --nav-h: 76px;
  /* Type: Instrument Serif for headlines (editorial, fashion-magazine), Archivo for
     text and labels (athletic grotesque named in the brief). Hanken Grotesk stays
     on the AK mark and corner name only, as part of the logo. */
  --font-display: 'Instrument Serif', 'Times New Roman', serif;
  --font-body: 'Archivo', system-ui, sans-serif;
  --font-name: 'Hanken Grotesk', system-ui, sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); scrollbar-color: #C9C6BE var(--bg); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--burgundy); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { text-wrap: balance; }
h1, h2 { font-family: var(--font-display); font-weight: 400; line-height: 1.02; letter-spacing: -0.012em; }
h1 em, h2 em { font-style: italic; }
h2 { font-size: clamp(2.3rem, 4.4vw, 3.6rem); }
h3 { font-size: 1.15rem; font-weight: 600; line-height: 1.2; letter-spacing: -0.005em; }
p { text-wrap: pretty; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut); }
.center { text-align: center; }

.eyebrow {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent);
}

/* Creative's short rule under a heading */
.divider {
  width: 56px; height: 3px; border: 0;
  background: var(--accent);
  margin: 22px auto 26px;
}
.divider--left { margin-left: 0; }
.divider--light { background: #fff; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font: inherit;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 17px 34px;
  border-radius: 2px;
  background: var(--accent); color: #fff;
  border: 1px solid var(--accent);
  transition: background-color .25s, color .25s, border-color .25s;
}
.btn:hover { background: var(--burgundy-deep); border-color: var(--burgundy-deep); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--on-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,.85); }
.btn--on-dark:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light { background: #fff; color: var(--burgundy); border-color: #fff; }
.btn--light:hover { background: var(--bg); color: var(--burgundy-deep); border-color: var(--bg); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- navigation (Creative: transparent over the masthead, solid on scroll) ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center;
  color: var(--ink);
  background: rgba(250, 250, 248, .96);
  border-bottom: 1px solid var(--line);
  transition: background-color .35s, color .35s, border-color .35s, height .35s var(--ease-out);
}
.site-header .wrap { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.has-masthead .site-header:not(.is-scrolled) { background: transparent; color: #fff; border-color: transparent; }
.site-header.is-scrolled { height: 64px; }

.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-name); font-weight: 700; font-size: 14px; letter-spacing: .16em; text-transform: uppercase; }
.brand-mark { width: 34px; height: 34px; }
.brand-mark text { font-family: var(--font-name); font-weight: 700; letter-spacing: -1px; fill: currentColor; }

.nav { display: flex; align-items: center; gap: 34px; }
.nav a { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; opacity: .78; transition: opacity .2s; }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 7px; text-decoration-thickness: 2px; text-decoration-color: var(--accent); }
.nav .nav-book { opacity: 1; padding: 10px 18px; border: 1px solid currentColor; border-radius: 2px; }
.nav .nav-book:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.has-masthead .site-header:not(.is-scrolled) .nav .nav-book:hover { background: #fff; color: var(--ink); border-color: #fff; }

.nav-toggle { display: none; background: none; border: 0; color: inherit; width: 44px; height: 44px; cursor: pointer; }
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); color: var(--ink);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gut) 20px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); opacity: 1; }
  .nav .nav-book { margin-top: 14px; text-align: center; border-color: var(--ink); }
  .has-masthead .site-header:not(.is-scrolled):has(.nav.is-open) { background: var(--bg); color: var(--ink); }
}

/* ---------- masthead ---------- */
/* Creative's full-screen photo masthead. The copy sits as a compact block at the
   lower left so the faces in a portrait-led photo stay clear. */
.masthead {
  position: relative; isolation: isolate;
  min-height: max(100svh, 560px);
  display: grid; align-items: end;
  color: #fff;
  padding: calc(var(--nav-h) + 40px) 0 clamp(48px, 7vh, 88px);
  overflow: hidden;
}
.masthead-photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.masthead::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to bottom, rgba(26,26,26,.45) 0%, rgba(26,26,26,0) 22%),
    linear-gradient(to top, rgba(26,26,26,.86) 0%, rgba(26,26,26,.55) 32%, rgba(26,26,26,0) 62%);
}
.masthead-inner { max-width: 620px; }
.masthead .eyebrow { color: #fff; opacity: .9; }
.masthead h1 { font-size: clamp(3rem, 5.6vw, 5.2rem); margin-top: 14px; }
.masthead .divider { background: #fff; margin: 20px 0 22px; }
.masthead .lede { max-width: 32em; margin: 0 0 30px; font-size: clamp(1rem, 1.3vw, 1.1rem); color: rgba(255,255,255,.9); }
.masthead .btn-row { justify-content: flex-start; }

/* Narrow screens: photo on top, copy on ink below, so nothing covers a face. */
@media (max-width: 899px) {
  .masthead { display: block; min-height: 0; padding: 0; background: var(--ink); }
  .masthead-photo { position: relative; z-index: 0; height: min(78svh, 125vw); object-position: 50% 25%; }
  .masthead::after { bottom: auto; height: 140px; background: linear-gradient(to bottom, rgba(26,26,26,.55), rgba(26,26,26,0)); z-index: 0; }
  .masthead > .wrap { padding-top: 40px; padding-bottom: 56px; }
}

/* Wide screens: split masthead. Copy on ink at the left, the photo full height at
   the right with nothing laid over it, so faces in a portrait photo stay clear. */
@media (min-width: 900px) {
  .masthead { background: var(--ink); align-items: center; padding-bottom: 72px; }
  .masthead-photo { left: auto; width: 56%; object-position: 50% 30%; }
  .masthead::after { background: linear-gradient(to bottom, rgba(26,26,26,.5) 0%, rgba(26,26,26,0) 18%); left: 44%; }
  .masthead > .wrap { max-width: none; margin: 0; padding-left: clamp(40px, 6vw, 96px); padding-right: 0; }
  .masthead-inner { max-width: calc(44vw - clamp(40px, 6vw, 96px) - 56px); }
  .masthead h1 { font-size: clamp(3rem, 5vw, 5.2rem); }
}

@media (prefers-reduced-motion: no-preference) {
  .masthead-inner > * { animation: rise 1.1s var(--ease-out) both; }
  .masthead-inner > :nth-child(2) { animation-delay: .08s; }
  .masthead-inner > :nth-child(3) { animation-delay: .16s; }
  .masthead-inner > :nth-child(4) { animation-delay: .22s; }
  .masthead-inner > :nth-child(5) { animation-delay: .28s; }
  .masthead-photo { animation: settle 2.4s var(--ease-out) both; }
}
/* transform only: the text is readable from the first frame even if the animation never runs */
@keyframes rise { from { transform: translateY(18px); } to { transform: none; } }
@keyframes settle { from { transform: scale(1.06); } to { transform: none; } }

/* ---------- sections ---------- */
.page-section { padding: clamp(80px, 11vw, 136px) 0; }

.band { background: var(--burgundy); color: #fff; }
.band h2 { max-width: 18em; margin: 0 auto; }
.band p { max-width: 38em; margin: 0 auto 34px; color: rgba(255,255,255,.88); }
.band--ink { background: var(--ink); }
.band--ink .divider { background: var(--burgundy); }

/* services: Creative's four columns */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 48px 36px; margin-top: 64px; text-align: center; }
.service { display: flex; flex-direction: column; align-items: center; }
.service-icon { width: 46px; height: 46px; color: var(--burgundy); margin-bottom: 20px; }
.service--sports .service-icon { color: var(--orange); }
.service h3 { margin-bottom: 10px; }
.service p { color: var(--grey); font-size: 15.5px; max-width: 24em; }
.service .link {
  margin-top: 16px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--accent);
}
.service--sports .link { text-decoration-color: var(--orange); }
@media (max-width: 980px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services { grid-template-columns: 1fr; } }

/* ---------- photo grid: edge to edge, hover captions ---------- */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
@media (max-width: 900px) { .photo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .photo-grid { grid-template-columns: 1fr; } }

.tile {
  --tile-accent: var(--burgundy);
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--paper);
}
.tile[data-category="sports"] { --tile-accent: var(--orange); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.tile-caption {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 24px; text-align: center; color: #fff;
  background: color-mix(in srgb, var(--tile-accent) 88%, transparent);
  opacity: 0; transition: opacity .35s;
}
.tile-category { font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; opacity: .9; }
.tile-name { font-family: var(--font-display); font-size: 1.9rem; font-weight: 400; line-height: 1.05; }
a.tile:hover .tile-caption, a.tile:focus-visible .tile-caption { opacity: 1; }
a.tile:hover img, a.tile:focus-visible img { transform: scale(1.04); }
a.tile:focus-visible { outline-offset: -4px; outline-color: #fff; }

@media (hover: none) {
  .tile-caption { opacity: 1; justify-content: flex-end; align-items: flex-start; text-align: left; background: linear-gradient(to top, rgba(26,26,26,.72), transparent 45%); }
  .tile-name { font-size: 1.4rem; }
}

.tile--empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--grey); text-align: center; padding: 24px; border-right: 1px solid var(--bg); border-bottom: 1px solid var(--bg); }
.tile--empty::before { content: ""; width: 40px; height: 2px; background: var(--tile-accent); margin-bottom: 8px; }
.tile--empty .tile-category { color: var(--ink); opacity: 1; }
.tile--empty .tile-note { font-size: 14px; }

/* ---------- contact ---------- */
.contact p { max-width: 34em; margin: 0 auto 32px; color: var(--grey); }
.contact .meta { margin-top: 28px; margin-bottom: 0; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }

/* ---------- inner page header ---------- */
.page-head { padding: calc(var(--nav-h) + clamp(56px, 8vw, 104px)) 0 clamp(40px, 6vw, 64px); }
.page-head h1 { font-size: clamp(2.9rem, 6.2vw, 5.4rem); margin-top: 14px; max-width: 13em; }
.page-head h1 em, #services h2 em { color: var(--burgundy); }
.page-head .lede { margin-top: 22px; max-width: 36em; color: var(--grey); font-size: 1.1rem; }

/* ---------- work page ---------- */
.work-filter {
  position: sticky; top: 64px; z-index: 20;
  background: rgba(250,250,248,.96);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.work-filter .wrap { display: flex; gap: 8px 32px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.work-filter a { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); padding: 6px 0; }
.work-filter a:hover { color: var(--ink); }
.work-filter a[data-category="sports"]:hover { color: var(--orange); }

.gallery { padding-top: clamp(56px, 7vw, 88px); scroll-margin-top: 80px; }
.gallery-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 28px; }
.gallery-head h2 { display: flex; align-items: center; gap: 14px; }
.gallery-head h2::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--burgundy); flex: none; }
.gallery--sports .gallery-head h2::before { background: var(--orange); }
.gallery-head p { color: var(--grey); max-width: 30em; font-size: 15.5px; }
.gallery:last-of-type { padding-bottom: clamp(56px, 7vw, 88px); }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: none; grid-template-columns: 64px 1fr 64px; grid-template-rows: 1fr; align-items: center;
  background: rgba(16,16,16,.96); color: #fff;
  padding: 24px 12px;
}
.lightbox.is-open { display: grid; }
.lightbox figure { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; align-items: center; gap: 14px; max-height: 100%; }
.lightbox img { max-width: 100%; max-height: calc(100svh - 110px); object-fit: contain; }
.lightbox figcaption { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.82); }
.lightbox button { background: none; border: 0; color: #fff; cursor: pointer; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; }
.lightbox button:hover { background: rgba(255,255,255,.12); }
.lightbox button:focus-visible { outline-color: #fff; }
.lightbox button svg { width: 26px; height: 26px; }
.lightbox button[hidden] { display: none; }
.lightbox-close { position: absolute; top: 16px; right: 16px; }
.lightbox-prev { grid-column: 1; grid-row: 1; justify-self: center; }
.lightbox-next { grid-column: 3; grid-row: 1; justify-self: center; }
@media (max-width: 600px) {
  .lightbox { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; }
  .lightbox figure { grid-column: 1 / 3; grid-row: 1; }
  .lightbox-prev { grid-column: 1; grid-row: 2; }
  .lightbox-next { grid-column: 2; grid-row: 2; }
}

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; padding-bottom: clamp(80px, 10vw, 128px); }
.about-portrait { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; position: sticky; top: 96px; }
.prose { max-width: 36em; }
.prose p + p { margin-top: 1.1em; }
.prose h3 { margin: 2.2em 0 .9em; font-size: 1.25rem; }
.prose strong { font-weight: 600; }
.prose .pull { font-family: var(--font-display); font-style: italic; font-size: clamp(2rem, 3.4vw, 2.8rem); font-weight: 400; line-height: 1.08; color: var(--burgundy); margin: 1.2em 0; }
.prose .btn { margin-top: 2.2em; }
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-grid aside { order: -1; }
  .about-portrait { position: static; max-width: 440px; }
}

/* ---------- book ---------- */
.form-wrap { padding-bottom: clamp(80px, 10vw, 128px); }
.form-wrap > * { max-width: 760px; }
.book-note { border-top: 3px solid var(--burgundy); background: #fff; padding: 22px 26px; margin-bottom: 40px; }
.book-note__tag { display: block; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--burgundy); margin-bottom: 8px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
@media (max-width: 640px) { .two-col { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.field label { font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.opt { color: var(--grey); font-weight: 500; }
input, select, textarea {
  font: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 1px solid #C9C6BE; border-radius: 2px;
  padding: 13px 14px; caret-color: var(--burgundy);
  transition: border-color .2s, box-shadow .2s;
}
textarea { min-height: 150px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #75746D; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--burgundy); box-shadow: 0 0 0 3px rgba(123,45,59,.18); }
.is-error { border-color: #B3261E; box-shadow: 0 0 0 3px rgba(179,38,30,.14); }
.form-success { display: none; background: #fff; border-top: 3px solid var(--burgundy); padding: 20px 24px; margin-bottom: 28px; font-weight: 600; }
form .btn { cursor: pointer; margin-top: 8px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0; font-size: 13px; color: var(--grey); }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.site-footer .brand { color: var(--ink); font-size: 12px; }
.site-footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
.site-footer nav a:hover { color: var(--ink); }

/* ---------- 404 ---------- */
.notfound { min-height: 72svh; display: grid; align-content: center; }
.notfound .btn-row { justify-content: flex-start; margin-top: 34px; }
