/* ============================================
   Photo placements — overrides for real photography
   Loaded after styles.css / extra.css.
   ============================================ */

/* ---------- HERO photo ---------- */
.hero.hero-photo .hero-bg {
  background: #1a1410;
}
.hero.hero-photo .hero-bg::after { content: none; }
.hero-bg .hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  z-index: 0;
  filter: saturate(0.95) contrast(1.02);
}
.hero-bg .hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg,
      rgba(15,17,13,0.55) 0%,
      rgba(15,17,13,0.10) 24%,
      rgba(15,17,13,0.10) 55%,
      rgba(15,17,13,0.72) 100%),
    linear-gradient(90deg,
      rgba(15,17,13,0.35) 0%,
      rgba(15,17,13,0.00) 45%);
}

/* ---------- STYLES section — photo + chart inset ---------- */
.style-illus {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 480px;
  background: #1a1410;
}
.style-illus .style-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: saturate(0.92);
}
.style-illus::before {
  /* dim the photo edges so badges stay legible */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,17,13,0.40) 0%, rgba(15,17,13,0.00) 30%, rgba(15,17,13,0.00) 70%, rgba(15,17,13,0.55) 100%);
  z-index: 1;
  background-image: none;
}
.style-illus .badge,
.style-illus .badge-r {
  z-index: 3;
  background: rgba(15,17,13,0.55);
  color: #FBF8F3;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.18);
}
/* the chart SVG becomes a small white inset card bottom-right */
.style-illus > svg {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 130px;
  height: 162px;
  background: rgba(251,248,243,0.96);
  padding: 10px;
  border: 1px solid rgba(0,0,0,0.06);
  z-index: 2;
  box-shadow: 0 12px 32px rgba(0,0,0,0.32), 0 2px 6px rgba(0,0,0,0.18);
}

@media (max-width: 1024px) {
  .style-illus { min-height: 380px; }
  .style-illus > svg { width: 100px; height: 124px; bottom: 14px; right: 14px; }
}

/* ---------- HARDWARE band ---------- */
.hardware-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0 56px;
}
.hardware-band figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 5 / 4;
  background: #1a1410;
}
.hardware-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.95);
  transition: transform .8s ease;
}
.hardware-band figure:hover img { transform: scale(1.03); }
.hardware-band figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 16px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #FBF8F3;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.55) 100%);
  display: flex;
  align-items: center;
  gap: 10px;
}
.hardware-band figcaption span {
  color: var(--accent-soft);
  border: 1px solid rgba(255,255,255,0.4);
  padding: 2px 6px;
  font-size: 9px;
  letter-spacing: 0.18em;
}

@media (max-width: 720px) {
  .hardware-band { grid-template-columns: 1fr; }
}

/* ---------- BEFORE/AFTER — img variant ---------- */
img.ba-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ba-stage .ba-tag-meta {
  position: absolute;
  bottom: 18px;
  right: 18px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: #FBF8F3;
  background: rgba(15,17,13,0.55);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 6px 10px;
  z-index: 3;
  pointer-events: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* ---------- PORTFOLIO cards — photo variant ---------- */
.pf-img.has-photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  position: relative;
}
.pf-img.has-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .9s ease, filter .3s ease;
  filter: saturate(0.95);
}
.pf-card:hover .pf-img.has-photo img {
  transform: scale(1.045);
  filter: saturate(1.0);
}

/* ---------- FEATURED case study — photo grid ---------- */
.feat-photo-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto;
  gap: 12px;
}
.feat-photo-grid .main {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.feat-photo-grid .row2 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
}
.feat-photo-grid .row2 img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.feat-fig figcaption.feat-cap {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.feat-fig figcaption.feat-cap span + span { color: var(--ink-2); }

/* ---------- ABOUT page interior photo ---------- */
.about-photo-strip {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  margin: 48px 0 0;
}
.about-photo-strip figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  background: #1a1410;
  aspect-ratio: 5 / 4;
}
.about-photo-strip figure.tall { aspect-ratio: 4 / 5; }
.about-photo-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.95);
}
.about-photo-strip figcaption {
  position: absolute;
  bottom: 12px;
  left: 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #FBF8F3;
  background: rgba(15,17,13,0.65);
  padding: 6px 10px;
  backdrop-filter: blur(6px);
}

/* ---------- CONSERVATION / LISTED — full-bleed arch hero ---------- */
.arch-hero {
  position: relative;
  min-height: 520px;
  background: #1a1410;
  overflow: hidden;
  margin-bottom: 80px;
}
.arch-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  filter: saturate(0.95);
}
.arch-hero .shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15,17,13,0.62) 0%, rgba(15,17,13,0.15) 45%, rgba(15,17,13,0.00) 100%),
    linear-gradient(180deg, rgba(15,17,13,0.30) 0%, rgba(15,17,13,0.00) 30%);
}
.arch-hero .arch-inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 96px var(--gutter) 64px;
  color: #FBF8F3;
}
.arch-hero .breadcrumb,
.arch-hero .breadcrumb a,
.arch-hero .breadcrumb span { color: rgba(251,248,243,0.7); }
.arch-hero .breadcrumb a:hover { color: var(--accent-soft); }
.arch-hero .eyebrow { color: rgba(251,248,243,0.65); }
.arch-hero h1 {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(48px, 6.5vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin: 16px 0 24px;
  max-width: 760px;
}
.arch-hero h1 em { font-style: italic; color: var(--accent-soft); font-weight: 300; }
.arch-hero p.lede {
  font-family: var(--display);
  font-weight: 350;
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.45;
  max-width: 540px;
  color: rgba(251,248,243,0.88);
  margin: 0 0 32px;
}

@media (max-width: 720px) {
  .feat-photo-grid .row2 { grid-template-columns: 1fr; }
  .about-photo-strip { grid-template-columns: 1fr; }
}

/* ---------- Conservation arch-meta-bar ---------- */
.arch-meta-bar {
  padding: 32px 0 48px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.arch-meta-bar .container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: center;
}
.arch-meta-bar .ph-spec {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 0;
  border-top: 2px solid var(--accent);
  border-bottom: 1px solid var(--line);
}
.arch-meta-bar .ph-k {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.arch-meta-bar .ph-v {
  font-family: var(--display);
  font-weight: 350;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.arch-meta-bar .ph-v em { font-style: italic; color: var(--accent); font-weight: 350; }
.arch-meta-bar .ph-u {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-left: 8px;
}
.arch-meta-bar .ph-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.arch-meta-bar .ph-list li {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.arch-meta-bar .ph-list .dt {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.arch-meta-bar .ph-list .dd {
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
}

@media (max-width: 880px) {
  .arch-meta-bar .container { grid-template-columns: 1fr; gap: 24px; }
  .arch-meta-bar .ph-list { grid-template-columns: repeat(2, 1fr); }
}
