/* Views Photography — Views From the Bay
   Draft stylesheet. Dark editorial / sports direction. */

:root {
  --bg: #0a0a0b;
  --bg-elevated: #121214;
  --bg-card: #161618;
  --bg-soft: #1c1c1f;
  --text: #f3efe6;
  --text-muted: #9b968b;
  --text-dim: #6e6a62;
  --line: #2a2a2e;
  --line-strong: #3a3a40;
  --accent: #e0b01a;
  --accent-soft: #f0c94a;
  --accent-dim: rgba(224, 176, 26, 0.18);
  --cream: #e8e4d9;
  --danger: #c45c4a;
  --header-h: 4.5rem;
  --max: 72rem;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --font-display: "Bebas Neue", "Oswald", "Arial Narrow", sans-serif;
  --font-sans: "Outfit", "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--accent-soft);
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 400;
  line-height: 0.95;
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  background: var(--accent);
  color: #111;
  padding: 0.6rem 1rem;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

/* Header
   -------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 10, 11, 0.88);
  backdrop-filter: blur(16px);
}

.site-header__inner {
  width: 100%;
  max-width: calc(var(--max) + 4rem);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.wordmark {
  display: flex;
  flex-direction: column;
  line-height: 0.85;
  color: var(--text);
  flex-shrink: 0;
}

.wordmark:hover {
  color: var(--text);
}

.wordmark__primary {
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: 0.16em;
}

.wordmark__secondary {
  font-family: var(--font-sans);
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 0.15rem;
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 1.15rem;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background 0.2s var(--ease), color 0.2s, border-color 0.2s, transform 0.2s;
}

.btn:hover {
  color: inherit;
}

.btn--gold {
  background: var(--accent);
  color: #111;
  border-color: var(--accent);
}

.btn--gold:hover {
  background: var(--accent-soft);
  color: #111;
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}

.btn--ghost:hover {
  border-color: var(--cream);
  color: var(--cream);
}

.btn--header {
  padding: 0.7rem 1.1rem;
}

/* Layout
   -------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: calc(var(--max) + 4rem);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.section {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}

.section--tight {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}

.section__kicker {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}

.section__lead {
  max-width: 38rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.25rem;
  flex-wrap: wrap;
}

/* Hero
   -------------------------------------------------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(2rem, 6vw, 4rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 80% 20%, rgba(224, 176, 26, 0.12), transparent 50%),
    linear-gradient(180deg, #141416 0%, var(--bg) 70%);
  pointer-events: none;
}

.hero__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.hero__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(10, 10, 11, 0.58) 0%, rgba(10, 10, 11, 0.28) 42%, rgba(10, 10, 11, 0.88) 100%),
    linear-gradient(90deg, rgba(10, 10, 11, 0.45) 0%, transparent 55%);
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 18px,
    rgba(255, 255, 255, 0.015) 18px,
    rgba(255, 255, 255, 0.015) 19px
  );
}

.hero__inner {
  position: relative;
  z-index: 2;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.hero__meta span + span::before {
  content: "·";
  margin-right: 1.5rem;
  color: var(--accent);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(5.2rem, 18vw, 12.5rem);
  letter-spacing: 0.02em;
  line-height: 0.8;
}

.hero__from {
  display: block;
  font-family: var(--font-sans);
  font-size: clamp(0.85rem, 2vw, 1.15rem);
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0.35rem 0 0.15rem;
}

.hero__sub {
  margin-top: 1.75rem;
  max-width: 28rem;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--cream);
  font-weight: 300;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.25rem;
}

.ticker {
  position: relative;
  z-index: 2;
  margin-top: clamp(3rem, 8vw, 5.5rem);
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.22em;
  color: var(--text-dim);
  white-space: nowrap;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.ticker__track {
  display: inline-block;
  animation: ticker 32s linear infinite;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Placeholder frames
   -------------------------------------------------- */
.ph {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-width: 0;
  background:
    linear-gradient(180deg, #1a1a1d 0%, #111113 100%);
  border: 1px solid var(--line);
  overflow: hidden;
  color: var(--text-muted);
  text-align: center;
}

.ph img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ph.has-image {
  background: #111;
}

.ph.has-image .ph__label {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.2rem 0.85rem 0.85rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
}

.ph.has-image .ph__note {
  display: none;
}

.gallery__item .ph.has-image .ph__label,
.feature-grid .ph.has-image .ph__label {
  /* captions sit under the frame */
  display: none;
}

.ph::before,
.ph::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: var(--line-strong);
  border-style: solid;
  pointer-events: none;
}

.ph::before {
  top: 8px;
  left: 8px;
  border-width: 1px 0 0 1px;
}

.ph::after {
  bottom: 8px;
  right: 8px;
  border-width: 0 1px 1px 0;
}

.ph__label {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem;
}

.ph__cat {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: 0.08em;
  color: var(--cream);
}

.ph__note {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.ph--hero-tile { aspect-ratio: 3 / 4; }
.ph--feature { aspect-ratio: 4 / 5; }
.ph--feature.wide { aspect-ratio: 16 / 10; }
.ph--portrait { aspect-ratio: 4 / 5; }
.ph--gallery { aspect-ratio: 3 / 4; }

/* Category tiles
   -------------------------------------------------- */
.tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.tile {
  position: relative;
  display: block;
  color: inherit;
}

.tile:hover {
  color: inherit;
}

.tile .ph {
  transition: border-color 0.25s var(--ease), transform 0.35s var(--ease);
}

.tile:hover .ph,
.tile:focus-visible .ph {
  border-color: var(--accent);
  transform: translateY(-3px);
}

/* Featured grid
   -------------------------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

figure {
  margin: 0;
}

.feature-grid .item,
.tiles .tile,
.gallery__item {
  min-width: 0;
  width: 100%;
}

.feature-grid .ph {
  aspect-ratio: 4 / 5;
}

.caption {
  margin-top: 0.55rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* About strip
   -------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.split--reverse {
  grid-template-columns: 1.15fr 0.85fr;
}

.split__copy .section__title {
  margin-bottom: 1.25rem;
}

.split__copy p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.split__copy .actions {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* CTA band
   -------------------------------------------------- */
.cta-band {
  background: var(--bg-elevated);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.cta-band p {
  color: var(--text-muted);
}

/* Page hero (interior)
   -------------------------------------------------- */
.page-hero {
  padding: clamp(3rem, 7vw, 5rem) 0 2.5rem;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 9vw, 6.5rem);
  letter-spacing: 0.04em;
}

.page-hero p {
  margin-top: 1.1rem;
  max-width: 38rem;
  color: var(--text-muted);
  font-size: 1.08rem;
}

/* Portfolio filters
   -------------------------------------------------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 2rem 0 1.75rem;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text-muted);
  padding: 0.55rem 0.95rem;
  cursor: pointer;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.filter-btn:hover,
.filter-btn.is-active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem 0.75rem;
}

.gallery__item.is-hidden {
  display: none;
}

/* Services cards
   -------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: clamp(1.5rem, 3vw, 2.15rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card__kicker {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.card h2 {
  font-family: var(--font-display);
  font-size: 2.35rem;
  letter-spacing: 0.05em;
}

.card p,
.card li {
  color: var(--text-muted);
}

.card ul {
  margin: 0;
  padding-left: 1.1rem;
}

.card li + li {
  margin-top: 0.35rem;
}

.price {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.price .btn {
  padding: 0.7rem 1.05rem;
  flex-shrink: 0;
}

.price__value {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.04em;
  color: var(--cream);
}

.flag {
  display: inline-block;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.2rem 0.45rem;
}

.note-box {
  margin-top: 1.5rem;
  padding: 1.1rem 1.25rem;
  border: 1px dashed var(--line-strong);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.package-group + .package-group {
  margin-top: 3.25rem;
}

.package-group__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: 0.04em;
  margin: 0 0 0.65rem;
}

.package-group__lead {
  max-width: 38rem;
  color: var(--text-muted);
  margin: 0 0 1.35rem;
}

.terms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 3.25rem;
}

.offer-box {
  margin-top: 1.5rem;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--accent);
  background: var(--accent-dim);
  color: var(--cream);
  font-size: 1rem;
}

.offer-box .flag {
  margin-bottom: 0.7rem;
}

.offer-box p {
  margin: 0;
  max-width: 52rem;
  color: var(--cream);
}

.offer-box a {
  color: var(--accent-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Forms
   -------------------------------------------------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.field input,
.field select,
.field textarea {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  padding: 0.8rem 0.9rem;
  outline: none;
  width: 100%;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
}

.field textarea {
  min-height: 9rem;
  resize: vertical;
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 0.5rem;
}

.form-hint,
.mailto-fallback {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.mailto-fallback a {
  color: var(--accent-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-status {
  grid-column: 1 / -1;
  display: none;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  font-size: 0.95rem;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-error {
  border-color: var(--danger);
  color: #f0c9c2;
}


/* Recent work
   -------------------------------------------------- */
.recent-work {
  border-bottom: 1px solid var(--line);
  padding: 1.35rem 0;
  background: var(--bg-elevated);
}

.recent-work .wrap {
  display: flex;
  align-items: baseline;
  gap: 1.25rem 2rem;
  flex-wrap: wrap;
}

.recent-work .section__kicker {
  margin: 0;
  flex-shrink: 0;
}

.recent-work p:not(.section__kicker) {
  margin: 0;
  color: var(--cream);
  max-width: 46rem;
  font-size: 0.98rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.social-links a {
  color: var(--accent-soft);
  text-decoration: none;
  letter-spacing: 0.06em;
}

.social-links a:hover {
  color: var(--cream);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Footer
   -------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0 2rem;
  background: #080809;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2rem;
}

.site-footer h2 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  letter-spacing: 0.08em;
}

.site-footer .tag {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0.25rem 0 1rem;
}

.site-footer p,
.site-footer li,
.site-footer a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.site-footer a:hover {
  color: var(--cream);
}

.site-footer h3 {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 0.85rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li + li {
  margin-top: 0.4rem;
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}

/* Utility
   -------------------------------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


.placeholder-inline {
  color: var(--accent);
  font-size: 0.85em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

hr.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* Responsive
   -------------------------------------------------- */
@media (max-width: 960px) {
  .tiles,
  .feature-grid,
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .split,
  .split--reverse,
  .cards,
  .terms-grid,
  .footer-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: rgba(10, 10, 11, 0.97);
    border-bottom: 1px solid var(--line);
    padding: 1rem var(--pad) 1.25rem;
    display: none;
  }

  .nav.is-open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .btn--header {
    display: none;
  }

  .nav.is-open .btn--header {
    display: inline-flex;
    margin-top: 0.5rem;
  }

  body.nav-open {
    overflow: hidden;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
  }

  .hero__meta {
    flex-direction: column;
    gap: 0.4rem;
  }

  .hero__meta span + span::before {
    content: none;
    margin: 0;
  }

  .hero h1 {
    font-size: clamp(4.4rem, 22vw, 6.5rem);
  }

}

@media (max-width: 520px) {
  .tiles {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .feature-grid,
  .gallery {
    grid-template-columns: 1fr 1fr;
  }

}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker__track { animation: none; }
  .tile .ph { transition: none; }
}
