/* ─────────────────────────────────────────────
   Tara Hamilton Photography
   styles.css v0.1 — working draft
   Built 11 Aug 2026 by Coelho against source-of-truth.md
   Visual reference: Canva PDF pages 1-5 (Aug 2026)
   ───────────────────────────────────────────── */

:root {
  --bg:        #F5F3EE;   /* cream — page background */
  --ink:       #1A1A1A;   /* near-black text */
  --wordmark:  #3A3A3A;   /* dark grey, for the wordmark */
  --slate:     #8C8E94;   /* logo block, accent */
  --slate-ink: #FFFFFF;   /* text on slate */
  --rule:      #C9C7C2;   /* thin dividers */
  --serif:     "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans:      "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: rgba(148, 149, 153, 0.4); } /* 16 Sep: tap flash is logo-silver, not browser blue (Richard) */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }
/* a:hover fade removed (was: opacity: 0.7) — too much of a light change on image tiles.
   Pure scale-only zoom on hover, consistent with In Frame section. */

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0.005em;
  color: var(--ink);
}

/* ─────────────── HEADER ─────────────── */
.site-header {
  text-align: center;
  padding: 1.5rem 1.5rem 2.5rem;
}

.wordmark-stack {
  display: inline-block;
  position: relative;
}

.wordmark {
  font-style: italic;
  font-size: clamp(3.5rem, 8vw, 5.5rem);
  font-weight: 500;
  margin-bottom: -0.55rem;
  color: var(--wordmark);
  letter-spacing: -0.01em;
  display: block;
}

.wordmark-sub {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2.1vw, 1.425rem);
  font-weight: 400;
  color: var(--wordmark);
  letter-spacing: 0.18em;
  margin-top: 0;
  margin-bottom: 2rem;
  white-space: nowrap;
  width: 100%;
  text-align: center;
}

.primary-nav {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  font-family: var(--serif);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.primary-nav a {
  position: relative;
  padding: 0.25rem 0;
  color: var(--ink);
  transition: color 200ms ease;
}

.primary-nav a:hover {
  color: #B8860B;
}

.primary-nav a[aria-current="page"] {
  border-bottom: 1px solid #B8860B;
  padding-bottom: 0.25rem;
}

.primary-nav .has-dropdown {
  position: relative;
  list-style: none;
}

.primary-nav .dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg, #F5F3EE);
  border: 1px solid var(--rule, #C9C7C2);
  padding: 1.5rem 2rem;
  display: none;
  list-style: none;
  min-width: 320px;
  z-index: 100;
}

.primary-nav .has-dropdown:hover > .dropdown,
.primary-nav .has-dropdown:focus-within > .dropdown {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-width: 240px;
}

.primary-nav .dropdown-group {
  list-style: none;
}

.primary-nav .dropdown-label {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.5rem;
  width: 100%;
  font-family: var(--serif);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate, #8C8E94);
  transition: color 200ms ease;
}

.primary-nav .dropdown-label::before {
  content: ">";
  color: #B8860B;
  opacity: 0;
  transition: opacity 200ms ease;
  margin-right: 0.5rem;
}

.primary-nav .dropdown-label::after {
  content: "<";
  color: #B8860B;
  opacity: 0;
  transition: opacity 200ms ease;
  margin-left: 0.5rem;
}

.primary-nav .dropdown-label:hover {
  color: #B8860B;
}

.primary-nav .dropdown-label:hover::before,
.primary-nav .dropdown-label:hover::after {
  opacity: 1;
}

.primary-nav .dropdown ul {
  display: none;
}

/* ─────────────── HERO ─────────────── */
.hero {
  padding: 1.5rem 1.5rem 3rem;
}

.hero-pair {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(1rem, 2vw, 2rem);
  max-width: 1500px;
  margin: 0 auto;
  align-items: center;
}

.hero-rule {
  width: 1px;
  background: var(--rule);
  align-self: stretch;
  min-height: 360px;
  opacity: 0.7;
  margin-top: -3rem;
  margin-bottom: -3rem;
}

.hero-frame {
  overflow: hidden;
  background: #ECEAE5;
  aspect-ratio: 3 / 2;
}

.hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 1200ms ease;
}

.hero-frame:hover img { transform: scale(1.02); }

/* Per-frame focal points so the over-cropping doesn't lop off the subject */
.hero-frame.left img  { object-position: center center; }  /* two horses: subjects centred, dark+light */
.hero-frame.right img { object-position: 75% center; }     /* bay horse: subject on right, negative space left */

/* ─────────────── STATEMENT ─────────────── */
.statement {
  text-align: center;
  padding: 2.75rem 1.5rem 5rem;
  max-width: 720px;
  margin: 0 auto;
}

/* Home first-paint balance (desktop widths): header tightened and the
   statement block pulled up so wordmark → grey line sits inside one page.
   Values signed off via runtime mock-up 15 Sep. Phone rhythm untouched. */
@media (min-width: 761px) {
  .site-header { padding-top: 0.9rem; }                 /* top distance: 24→18 (−25%), then −20% → 14.4 */
  .wordmark-stack { position: relative; top: -0.9rem; } /* 16 Sep: lifts ONLY Tara Hamilton + PHOTOGRAPHY by the 14.4px headroom (~4mm); nav and all below stay put (Richard) */
  .wordmark { margin-bottom: -1.05rem; }              /* wordmark ↔ PHOTOGRAPHY −8px */
  .wordmark-sub { margin-bottom: 1.375rem; }          /* PHOTOGRAPHY ↔ nav 32→22 */
  .statement { padding-top: 0.25rem; }               /* Equine block up: 8→4 */
  .statement .statement-line { margin-bottom: 0.95rem; } /* Equine ↔ Dubai line 19→15 (needs .statement prefix: base rule sits later in source) */
  .statement .statement-rule { margin-top: 0.75rem; } /* Dubai line → grey rule 16→12 */
  .hero { padding-top: 1rem; }                       /* pictures up 8px: 24→16 */
  .hero-rule { margin-top: -2.5rem; margin-bottom: -2.5rem; } /* line overhang 48→40 both ends; pictures stay centred */
  header + .category-section { padding-top: 0; margin-top: 6px; } /* Portfolio: nav → Equine Elegance. 16 Sep: −45px (12mm) per Richard, then +19px (5mm) more space, whole section moves as one unit — net −26px from original 72 */
  section.contact-page { padding-top: 0.25rem; }      /* Contact: nav → lede gap halved 88→44 (15 Sep) */
  section.cta-pair { padding-top: 4rem; }            /* Home: editorial break → Enquire/Visualise gap doubled 32→64; needs section prefix (base rule sits later in source); pair rule rides down with the blocks */
}

.statement-line {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  font-weight: 400;
  margin-bottom: 1.2rem;
}

.statement-sub {
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #6B6B6B;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .statement-sub { white-space: normal; }
}

.statement-rule {
  border: 0;
  height: 1px;
  background: #B5B5B5;
  width: 240px;
  margin: 1.75rem auto 0;
}

/* ─────────────── SECTION TITLES ─────────────── */
.section-title {
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  font-weight: 500;
  text-align: center;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
}

.section-eyebrow {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: #6B6B6B;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

/* ─────────────── SELECTED WORK (homepage strip) ─────────────── */
/* Two rows of four, outer extremes on a true 1500px — the same span as
   .hero-pair above and .full-bleed below, so all three line up.
   1548 = 1500 content + 48 side padding (border-box subtracts it).
   Tiles land at ~357px against 235px sources, so there is ~1.5x upscale.
   If Tara re-exports at ~1000px square it goes sharp with no layout change. */
.selected-work {
  padding: 1.5rem 1.5rem 2.5rem; /* 17 Sep: laptop gallery→editorial gap 80→40px (−50%, Richard); phone keeps its own override in mobile.css */
  max-width: 1548px;
  margin: 0 auto;
}

.selected-work .grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.selected-work .tile {
  display: block;
  overflow: hidden;
  background: var(--bg, #F5F3EE);
  aspect-ratio: 1 / 1;
}

.selected-work .tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 800ms ease;
}

.selected-work .tile:hover img {
  transform: scale(1.04);
}

/* ─────────────── ABOUT TEASER (homepage) ─────────────── */
.about-teaser {
  text-align: center;
  padding: 16px 1.5rem 2.5rem;
  max-width: 640px;
  margin: 0 auto;
}

.about-teaser p {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  line-height: 1.75;
  margin-bottom: 1.8rem;
  color: #2A2A2A;
}

.text-link {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.25rem;
  color: var(--ink);
  transition: color 200ms ease;
}

.text-link:hover {
  color: #B8860B;
}

/* ─────────────── CONTACT CTA (homepage) ─────────────── */
.cta {
  padding: 3rem 1.5rem 6rem;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.cta-heading {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.cta-sub {
  font-size: 1rem;
  margin-bottom: 2.5rem;
  color: #4A4A4A;
}

/* About page: "A Life Behind the Camera" sized + weighted to match the
   .statement-line at the bottom of the page (clamp(1.4rem,2.4vw,1.85rem)/400) */
.about-hero .cta-heading {
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  font-weight: 400;
}

.cta-button {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  border: 1px solid var(--rule);              /* 16 Sep: client-area box language repeated site-wide (Richard) */
  background: var(--bg, #F5F3EE);
  box-shadow: inset 0 1px 5px rgba(140, 142, 148, 0.14);
  color: var(--ink);
  transition: background 250ms ease, color 250ms ease, border-color 250ms ease;
}

.cta-button:hover {
  background: rgb(148, 149, 153); /* logo-slate hover, white writing — same concept as client boxes (Richard/Tara, 16 Sep) */
  border-color: rgb(148, 149, 153);
  color: #FFFFFF;
  opacity: 1;
}

/* ─────────────── PAIRED CLOSE (home) — BALANCED ─────────────── */
/* Both blocks mirror the same structure: heading (same size both sides) ->
   3:2 image tile (same max width) -> text -> action. Rules come AFTER the
   base .cta-heading/.cta-sub rules so overrides win on source order. */
.cta-pair {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 3.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 5rem;
  align-items: stretch;   /* blocks share row height so pinned buttons level */
}

.cta-pair-rule {
  width: 1px;
  background: var(--rule);
  align-self: stretch;
  opacity: 0.7;
  margin: -1rem 0;
}

.cta-block {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-block .cta-heading {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  margin-bottom: 1.6rem;
}

.cta-block .cta-sub {
  max-width: 430px;
  margin: 0 auto 1.8rem;
  line-height: 1.7;
  font-size: 0.9rem;
}

.cta-block .cta-img {
  display: block;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  margin: 0 auto 1.4rem;
}

/* Both close images are STATIC by decision (11 Sep) — no hover zoom here,
   unlike the portfolio/In Frame galleries. Consistency within this block. */

/* Buttons pinned to the bottom of each block so the two boxes stay level
   even if either paragraph's line count changes later (11 Sep decision). */
.cta-block .cta-button { margin-top: auto; }

/* Anchor target gets breathing room when deep-linked (11 Sep) — the
   bedroom row should land about a centimetre below the viewport top
   instead of flush against it, so it reads as "scrolled here" not
   "page didn't move". */
#wall-preview { scroll-margin-top: 40px; }

@media (max-width: 820px) {
  .cta-pair { grid-template-columns: 1fr; gap: 2.5rem; }
  .cta-pair-rule { display: none; }
}

/* ─────────────── FULL-BLEED BREAK ─────────────── */
.full-bleed {
  width: 100%;
  max-width: 1548px;
  margin: 0 auto;
  padding: 0 1.5rem;
  aspect-ratio: 1920 / 1036;
  overflow: hidden;
  background: transparent;
}

.full-bleed img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ─────────────── PORTFOLIO PAGE ─────────────── */
.portfolio-intro {
  text-align: center;
  padding: 2rem 1.5rem 3rem;
  max-width: 640px;
  margin: 0 auto;
}

.portfolio-intro p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: #4A4A4A;
}

.category-section {
  padding: 3rem 1.5rem;
  max-width: 1500px;
  margin: 0 auto;
}

.category-section + .category-section {
  border-top: 1px solid var(--rule);
  padding-top: 4rem;
}

.category-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
  text-align: center;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.category-grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 1100px;
  margin: 0 auto;
}

#equestrian-sport .category-grid.cols-2 .tile {
  aspect-ratio: 3 / 2;
}

.category-grid.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.category-grid .tile {
  display: block;
  overflow: hidden;
  background: #ECEAE5;
  aspect-ratio: 4 / 5;
}

.category-grid.cols-2 .tile,
.category-grid.cols-4 .tile {
  aspect-ratio: 1 / 1;
}

.category-grid.cols-3 {
  max-width: 1000px;
  margin: 0 auto;
}

.category-grid.cols-3 .tile {
  aspect-ratio: 1 / 1;
}

.category-grid.cols-3.portraits-grid {
  grid-template-columns: repeat(3, 1fr);
  max-width: 1300px;
}

.category-grid.cols-3.portraits-grid .tile {
  aspect-ratio: 4 / 5;
}

#farrier-dentist .category-grid.cols-3 .tile {
  aspect-ratio: 1187 / 828;   /* 16 Sep: uniform box = aligned grid (Richard rejected the height step); 2 & 5 ship wider so they letterbox ~7px cream top/bottom — zero crop of Tara's framing */
  background: var(--bg, #F5F3EE);
  position: relative;
}

#farrier-dentist .category-grid.cols-3 {
  max-width: 1300px;
}

#farrier-dentist .category-grid.cols-3 .tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;        /* box == source ratio for 1,3,4,6: fills exactly, no bands, hover scale zooms in place inside the overflow-hidden frame */
}

#farrier-dentist .category-grid.cols-3 .tile:nth-child(2) img,
#farrier-dentist .category-grid.cols-3 .tile:nth-child(5) img {
  object-fit: cover;          /* 16 Sep: 2 & 5 ship wider (1.51 vs 1.434) and letterboxed sunken in the flush row (Richard's screenshot); cover trims ~2.5% each side at render so they fill the cell edge-to-edge — source files untouched, revert = delete this rule */
}

#equestrian-sport .es-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 1300px;
  margin: 0 auto 1.25rem;
}

#equestrian-sport .es-row:last-child { margin-bottom: 0; }

#equestrian-sport .es-row-wide .es-tile {
  aspect-ratio: 1263 / 750;  /* matches ES1-3 source ratio (~1.684) */
}

#equestrian-sport .es-row-3-2 .es-tile {
  aspect-ratio: 1262 / 828;  /* matches ES4-6 source ratio (~1.524, basically 3:2) */
}

#equestrian-sport .es-tile {
  width: 100%;
  background: var(--bg, #F5F3EE);
  overflow: hidden;
  position: relative;
}

#equestrian-sport .es-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 800ms ease;
  cursor: pointer;
}

#equestrian-sport .es-tile img:hover {
  transform: scale(1.04);
}

/* ─────────────── DOGS & CO ─────────────── */
/* Three portrait sources, two aspect ratios:
   dogs-1.jpg & dogs-3.jpg -> 1125x1703 (ratio 0.6606)
   dogs-2.jpg            -> 1266x1703 (ratio 0.7434)
   Equal heights, NO CROP. Per-tile widths chosen so all three come out 606px tall:
     0.6606 * w  = 0.7434 * (w + 50)
     DC 1/3 = 400.6px wide, DC 2 = 450.8px wide. Sum: 1252 + 48 gaps = 1300. */
#dogs .dc-grid {
  display: grid;
  grid-template-columns: 400.6px 450.8px 400.6px;
  gap: 1.5rem;
  max-width: 1300px;
  margin: 0 auto;
}

#dogs .dc-tile {
  width: 100%;
  height: 606px;
  background: var(--bg, #F5F3EE);
  overflow: hidden;
  position: relative;
}

#dogs .dc-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 800ms ease;
  cursor: pointer;
}

#dogs .dc-tile img:hover {
  transform: scale(1.04);
}



/* ─────────────── DOGS ─────────────── */
/* Top row: 4 portrait tiles (slots 1-4), each 307px x 413.21px.
   Bottom row: 3 tiles (5, 6, 7) aligned to the same 4-column grid.
   Slot 6 spans 2 columns -- width = 2 x 307 = 614px, sitting across
   columns 2 and 3. Slots 5 and 7 each occupy one column, sitting under
   slots 1 and 4 respectively. Slot 6 source is landscape (1722x1094,
   ratio 1.574); at 614px wide the natural height is 389.96px, but to
   match the row's portrait tile height of 413.21px the tile is taller than
   the image's natural aspect, so object-fit: contain letterboxes top/bottom.
   Row width 1300px, matches the Dogs & Co section above. */
#dogs-2 .dg-grid,
#dogs-2 .dg-row-bottom {
  display: grid;
  grid-template-columns: repeat(4, 307px);
  gap: 1.5rem 1.5rem;
  max-width: 1300px;
  margin: 0 auto 1.5rem;
}

#dogs-2 .dg-row-bottom {
  margin-bottom: 0;
}

/* Top row tiles keep the default dg-tile size. */
#dogs-2 .dg-grid .dg-tile {
  width: 307px;
  height: 413.21px;       /* 307 * (1094 / 813) */
}

/* Bottom row default tile size (slots 5 and 7). MUST come BEFORE
   .dg-tile-wide below so source order gives the wider variant precedence. */
#dogs-2 .dg-row-bottom .dg-tile {
  width: 307px;
  height: 413.21px;
}

/* Slot 6 spans 2 columns of the bottom-row grid. Width = 2 cols + 1 gap
   = 2 x 307 + 24 = 638px, so slot 6 sits exactly in cols 2 and 3 with no
   overflow into the gap to slot 7. Height = 413.21px (matches slots 5/7).
   Image source is landscape (1722/1094, ratio 1.574); at 638px wide the
   natural height is 405.34px, so object-fit: contain letterboxes the
   image ~4px top/bottom inside the tile -- invisible against cream
   background. The grid-template-columns repeat(4, 307px) + 3 gaps + slot 6
   width 638px = 1300px row total exactly, with all gaps uniform at 24px.
   The wider .dg-row-bottom .dg-tile-wide rule MUST come AFTER the default
   .dg-tile rule below so source order gives it precedence. */
#dogs-2 .dg-row-bottom .dg-tile-wide {
  grid-column: span 2;
  width: 638px;
  height: 413.21px;
}

#dogs-2 .dg-tile {
  background: var(--bg, #F5F3EE);
  overflow: hidden;
  position: relative;
}

#dogs-2 .dg-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 800ms ease;
  cursor: pointer;
}

/* Slot 6 source is landscape (1722x1094) but its tile is portrait-shaped
   (638 x 413.21). object-fit: contain letterboxes ~4px top/bottom. Switch to
   fill so the image stretches to fit the tile -- a uniform 4.6% stretch,
   below the perception threshold. Same fix used on In Frame corners and
   the Equestrian Sport section. Slot 5 and 7 keep contain (no change). */
#dogs-2 .dg-tile-wide img {
  object-fit: fill;
}

#dogs-2 .dg-tile img:hover {
  transform: scale(1.04);
}

/* ─────────────── IN FRAME — 5-image asymmetric row ─────────────── */
/* Flexbox row, three children: left column (2 squares), middle portrait, right column (2 squares).
   The middle is the height anchor: 540 x 740 (the 500/675 source ratio rounded up to 740 so
   it equals the side stack of 360 + 20 + 360 = 740). Total row width 1300px matches the
   Portraits row above. No aspect-ratio on any tile — explicit pixel dimensions only. */
#portraits .in-frame-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 1.25rem;
  max-width: 100%;
  margin: 0 auto;
}

#portraits .in-frame-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 360px;
  flex: 0 0 360px;
}

#portraits .in-frame-tile {
  width: 360px;
  height: 360px;
  flex: 0 0 360px;
  overflow: hidden;
  background: var(--bg, #F5F3EE);
}

#partner .category-grid.cols-3 {
  max-width: 1300px;
}

#eyes .category-grid.cols-4 {
  max-width: 1300px;
  margin: 0 auto;
}

#eyes .category-grid.cols-4 .tile {
  aspect-ratio: 1 / 1;
  background: var(--bg, #F5F3EE);
}

#eyes .category-grid.cols-4 .tile img {
  object-fit: contain;
}

#partner .category-grid.cols-3 .tile {
  aspect-ratio: 3 / 2;
  background: var(--bg, #F5F3EE);
}

#partner .category-grid.cols-3 .tile img {
  object-fit: contain;
}

#partners .category-grid.cols-3 {
  column-gap: 0.703125rem;
}

#partners .category-grid.cols-3 .tile {
  background: var(--bg, #F5F3EE);
}

#partners .category-grid.cols-3 .tile img {
  object-fit: contain;
}

#portraits .in-frame-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  transition: transform 800ms ease;
  cursor: pointer;
}

#portraits .in-frame-tile img:hover {
  transform: scale(1.04);
}

#portraits .in-frame-portrait-wrap {
  width: 540px;
  height: 740px;
  flex: 0 0 540px;
}

#portraits .in-frame-portrait-wrap img {
  object-fit: fill;
  transform: scale(1.006); /* 16 Sep: hides the 3 pure-white rows baked into ea-2.jpg's bottom edge; tile clips the overflow. Hover scale(1.04) still wins on :hover. */
}

.category-grid .tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 800ms ease;
}

.category-grid .tile:hover img {
  transform: scale(1.04);
}

.category-blurb {
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  color: #6B6B6B;
  font-size: 1.575rem;
  max-width: 560px;
  margin: -1.5rem auto 2.5rem;
}

.category-empty {
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  color: #888;
  padding: 3rem 1rem;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-top: 1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.single-work {
  display: flex;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
}

.single-work .tile {
  width: 100%;
  max-width: 700px;
  aspect-ratio: 3 / 2;
}

.category-empty .empty-label {
  display: block;
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #6B6B6B;
  margin-bottom: 0.6rem;
}

/* ─────────────── ABOUT PAGE — SUB-HEADING ─────────────── */
.page-statement {
  text-align: center;
  padding: 2rem 1.5rem 3rem;
  max-width: 760px;
  margin: 0 auto;
}

.page-statement .statement-line {
  margin-bottom: 0;
}

/* ─────────────── ABOUT PAGE — HERO SPLIT ─────────────── */
.about-hero {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  align-items: center;
}

.about-hero-text {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.about-hero-text .body {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #2A2A2A;
  max-width: 480px;
}

.about-hero-text .body p + p {
  margin-top: 1.4rem;
}

.about-hero-frame {
  overflow: hidden;
  background: transparent;
  margin: 0;
}

.about-hero-frame img {
  width: 100%;
  height: auto;
  object-fit: contain;
  aspect-ratio: 3 / 4;
  transition: transform 800ms ease;
}

.about-hero-frame:hover img { transform: scale(1.02); }

/* ─────────────── ABOUT PAGE — LEGACY (kept for any pages still using the old structure) ─────────────── */
.about-page {
  padding: 4rem 1.5rem 6rem;
  max-width: 720px;
  margin: 0 auto;
}

.about-page .lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 400;
  line-height: 1.6;
  text-align: center;
  margin-bottom: 3rem;
  color: #2A2A2A;
}

.about-page .body {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #2A2A2A;
  margin-bottom: 2rem;
}

.about-page .body p + p {
  margin-top: 1.4rem;
}

.about-page .signature {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.4rem;
  text-align: center;
  margin-top: 3rem;
  color: var(--ink);
}

.placeholder-banner {
  background: #F0EAE0;
  border-left: 3px solid #B89968;
  padding: 1.5rem 2rem;
  margin: 0 auto 3rem;
  max-width: 720px;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: #6B5230;
}

.placeholder-banner strong {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

/* ─────────────── LICENSING PAGE ─────────────── */
.licensing-page {
  padding: 4rem 1.5rem 6rem;
  max-width: 760px;
  margin: 0 auto;
}

.licensing-rule {
  background: var(--ink);
  color: var(--bg);
  padding: 2rem 2.5rem;
  margin: 3rem 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.6;
  text-align: center;
}

.licensing-page h3 {
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin: 2.5rem 0 1rem;
  color: var(--ink);
}

.licensing-page p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #2A2A2A;
  margin-bottom: 1rem;
}

.licensing-page ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.licensing-page ul li {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #2A2A2A;
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.6rem;
}

.licensing-page ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--slate);
}

/* ─────────────── IN FRAME PAGE (extends licensing-page styles) ─────────────── */
/* Page wrapper. Sits at the full section width (1500px) so the gallery row
   can reach hero-size tile widths. Uses the existing .licensing-rule dark
   band and heading typography. */
.in-frame-page {
  padding: 1rem 1.5rem 6rem;
  max-width: 1500px;
  margin: 0 auto;
}

/* Two rows of two mockups. Each row matches the home page's hero
   width (1500px container, two 3:2 landscape frames per row). Same
   pattern as .hero-pair on the home page. */
.in-frame-gallery {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.in-frame-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(1rem, 2vw, 2rem);
  margin-bottom: 2.5rem;
  align-items: center;
}

.in-frame-row:last-child {
  margin-bottom: 0;
}

.in-frame-rule {
  width: 1px;
  background: var(--rule);
  align-self: stretch;
  min-height: 360px;
  opacity: 0.7;
}

.in-frame-row .tile {
  aspect-ratio: 3 / 2;
  background: var(--bg, #F5F3EE);
  overflow: hidden;
}

/* Row 1 (composite mockups): tiles rendered 10% larger than the default
   3:2 in BOTH dimensions. Width 738 -> 812, height 492 -> 541. The grid
   columns are overridden to fixed pixel widths so each tile is exactly
   10% wider than the default row, and aspect-ratio 812/541 keeps them
   10% taller. The grid rule (in-frame-rule) sits between them.
   Row 1 is wider than the page container, so justify-content: center
   keeps the row centred (it overflows the container symmetrically). */
.in-frame-gallery .in-frame-row:first-of-type {
  grid-template-columns: 698.04px auto 698.04px;
  justify-content: center;
}

.in-frame-gallery .in-frame-row:first-of-type .tile {
  aspect-ratio: 698.04 / 465.04;
}

.in-frame-row .tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 800ms ease;
}

.in-frame-row .tile:hover img {
  transform: scale(1.04);
}

/* Empty row tiles: no image yet, so show as clean cream rectangles
   instead of broken-image icons. Ready for future drop-in. */
.in-frame-row-empty .tile {
  background: var(--bg, #F5F3EE);
  min-height: 360px;
}

.in-frame-row-empty .tile:empty::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
}

/* Blurb section: centred text, narrow column. Two-line copy. */
.in-frame-blurb {
  max-width: 760px;
  margin: 2.5rem auto;
  padding: 0 1.5rem;
  text-align: center;
}

.in-frame-blurb h2 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  color: var(--ink);
}

.in-frame-blurb p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #2A2A2A;
}

/* Stacked blurb lines (e.g. "See it on your wall"): the global reset zeroes
   paragraph margins, so give consecutive lines breathing room. */
.in-frame-blurb p + p {
  margin-top: 0.85rem;
}

.in-frame-blurb .cta-button {
  margin-top: 1.75rem;
}

/* Licensing section: wider (1300px max) so terms read across the page with
   fewer line wraps. No left/right split -- the gray rule above is the only
   visual separator between blurb and licensing. */
.in-frame-terms {
  max-width: 1300px;
  margin: 0 auto 4rem;
  padding: 0 1.5rem;
}

.in-frame-terms h2 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  color: var(--ink);
}

.in-frame-terms p {
  font-size: 1rem;
  line-height: 1.75;
  color: #2A2A2A;
  margin-bottom: 1rem;
}

/* More breathing room around the gray divider lines on the In Frame page.
   The global .statement-rule has 1.75rem top / 0 bottom, fine for the home
   page but cramped here. Symmetrical 2.5rem top and bottom. */
.in-frame-page .statement-rule {
  margin: 2.5rem auto;
}

/* The divider above the first row of images: pull it close to the nav.
   Bottom margin untouched so divider-to-image gap stays comfortable.
   Override placed after the default rule (source-order rule). */
.in-frame-page > .statement-rule:first-of-type {
  margin-top: 0.5rem;
}

/* ─────────────── CONTACT PAGE ─────────────── */
.contact-page {
  padding: 4rem 1.5rem 6rem;
  max-width: 640px;
  margin: 0 auto;
}

.contact-page .lede {
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  margin-bottom: 3rem;
  color: #2A2A2A;
}

/* Client Area door — direction C: type only, small caps + short gold rule (15 Sep).
   Hover/focus: words go gold and the rule grows. Nothing else on the page. */
.client-door {
  display: flex;
  justify-content: center;
  margin: 1.125rem 0 1.375rem; /* 22/22: box centred in the space between wordmark and lede */
}
/* Desktop keeps the nav text link; the door is a phone object only (Richard, 15 Sep).
   Placed AFTER the base rule so it wins source order at equal specificity. */
@media (min-width: 761px) {
  .client-door { display: none; }
}
/* Phone: the section carries 64px padding above the door, so negative top /
   larger bottom margin centre the box in the visible space (52/52). */
@media (max-width: 760px) {
  .client-door { margin: -0.75rem 0 3.25rem; }
}
.client-door-type {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 14px 28px 12px;
  border: 1.5px solid #B8860B;           /* gold box: the door must be clearly seen */
  box-shadow: inset 0 1px 5px rgba(140, 142, 148, 0.14); /* very light grey shadow inside */
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
  transition: color 0.18s ease, background-color 0.18s ease;
}
.client-door-rule {
  width: 36px;
  height: 1px;
  background: #B8860B;
  transition: width 0.22s ease;
}
.client-door-type:hover,
.client-door-type:focus-visible { color: #FFFFFF; background: rgb(148, 149, 153); border-color: #B8860B; } /* 16 Sep: silver fill on hover/tap, gold box stays gold (Richard) */
.client-door-type:hover .client-door-rule,
.client-door-type:focus-visible .client-door-rule { width: 72px; background: #FFFFFF; }
/* Tap state (Richard, 16 Sep): silver fill, white writing, GOLD BORDER KEPT.
   Placed after :hover so a held tap wins. */
.client-door-type:active {
  color: #FFFFFF;
  background: rgb(148, 149, 153);
  border-color: #B8860B; /* gold box stays gold on tap */
}
.client-door-type:active .client-door-rule { width: 72px; background: #FFFFFF; }

/* ─────────────── CLIENT AREA — STATEMENT LINE (16 Sep) ─────────────── */
/* Richard: same size as the section headings, centred between the nav
   and the Equestrian Events / Private Galleries row. The header carries
   2.5rem of bottom padding, so the wrap's own padding compensates. */
.client-statement-wrap { padding-top: 3.5rem; padding-bottom: 1rem; } /* balances nav->line and line->headings at ~96px each (measured 16 Sep) */
.client-statement {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem); /* matches .cta-block .cta-heading exactly */
  font-weight: 500;
  margin-bottom: 0;
}

/* ─────────────── CLIENT AREA — EVENT & GALLERY BOXES (16 Sep) ─────────────── */
/* Two-by-two box grids inside the homepage-style cta-pair split
   (Richard, 16 Sep: layout must mirror the home page pair).
   Same design language: slate hairline, cream ground, gold on hover. */
.cta-block .client-grid { width: 100%; }
.client-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 900px;
  margin: 1.75rem auto 0;
}
.client-box {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3 / 1; /* 16 Sep: half the previous height (was 3/2) — little strip boxes per Richard */
  border: 1px solid var(--rule);
  background: var(--bg, #F5F3EE);
  box-shadow: inset 0 1px 5px rgba(140, 142, 148, 0.14);
  transition: border-color 0.22s ease, background-color 0.22s ease;
}
.client-box:hover,
.client-box:focus-visible { border-color: rgb(148, 149, 153); background: rgb(148, 149, 153); } /* whole box logo-slate on hover (Tara, 16 Sep — sampled from THP LOGO.png block) */
.client-box:hover .client-box-type,
.client-box:focus-visible .client-box-type { color: #FFFFFF; } /* writing stays white over the slate */
.client-box-type {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink, #3A3A3A);
}
@media (max-width: 640px) {
  .client-grid { grid-template-columns: 1fr; }
}

/* 17 Sep (Richard): client-area pair — the left (events) boxes must match the
   right (private) boxes' large size and stay there. Cause: 1fr tracks are
   minmax(auto,1fr), so the private grid's min-content stretched its track to
   612px and squeezed the events track to 427px. minmax(0,1fr) forces equal
   tracks; pair widened 1200->1385 so both grids get 612px (boxes 294x98) at
   full laptop width. Laptop only — below 821px the existing stack rule wins. */
@media (min-width: 821px) {
  .cta-pair.client-doors {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    max-width: 1385px;
  }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-field label {
  display: block;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #6B6B6B;
  margin-bottom: 0.5rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  padding: 0.9rem 0;
  border: none;
  border-bottom: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  transition: border-color 200ms ease;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-bottom-color: var(--ink);
}

.form-field textarea {
  resize: vertical;
  min-height: 96px;
}

.form-field-hint {
  font-size: 0.85rem;
  color: #888;
  font-style: italic;
  font-family: var(--serif);
  margin-top: 0.4rem;
}

/* File upload field (contact form) — same underline grammar as the other
   inputs; the native picker button restyled to sit quietly in the system. */
.form-field input[type="file"] {
  font-family: var(--sans);
  font-size: 0.9rem;
  color: #6B6B6B;
  padding: 0.75rem 0;
}

.form-field input[type="file"]::file-selector-button {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--bg, #F5F3EE);   /* 16 Sep: client-box language (Richard) */
  box-shadow: inset 0 1px 5px rgba(140, 142, 148, 0.14);
  border: 1px solid var(--rule);
  padding: 0.6rem 1.2rem;
  margin-right: 1rem;
  cursor: pointer;
  transition: border-color 200ms ease;
}

.form-field input[type="file"]::file-selector-button:hover {
  background: rgb(148, 149, 153);
  border-color: rgb(148, 149, 153);
  color: #FFFFFF;
}

.form-submit {
  margin-top: 1rem;
  align-self: flex-start;
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  background: var(--bg, #F5F3EE);   /* 16 Sep: client-box language, was solid ink (Richard) */
  color: var(--ink);
  border: 1px solid var(--rule);
  box-shadow: inset 0 1px 5px rgba(140, 142, 148, 0.14);
  cursor: pointer;
  transition: background 250ms ease, color 250ms ease, border-color 250ms ease;
}

.form-submit:hover { background: rgb(148, 149, 153); color: #FFFFFF; } /* 16 Sep: slate-and-white hover, same concept site-wide */

.form-note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: #888;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  text-align: center;
}

/* ─────────────── FOOTER ─────────────── */
.site-footer {
  padding: 4rem 1.5rem 2.5rem;
  text-align: center;
  border-top: 1px solid var(--rule);
  margin-top: 3rem;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 2rem;
}

.footer-logo-img {
  display: block;
  height: 90px;
  width: auto;
}

.footer-meta {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 0.8rem;
}

.footer-links {
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.footer-links a {
  margin: 0 0.7rem;
  color: #4A4A4A;
}

.back-to-top {
  text-align: center;
  margin: 1.5rem auto 0;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #888;
}

.back-to-top a {
  color: #888;
  text-decoration: none;
}

/* 17 Sep: touch keeps :hover stuck on the last tap, so the gold never
   released on phones (Richard). Gold hover only where a real hover exists
   (mouse); touch gets :active, which resets to grey on finger-lift. */
@media (hover: hover) {
  .back-to-top a:hover {
    color: #B8860B; /* gold on hover (Richard, 16 Sep) */
  }
}
.back-to-top a:active {
  color: #B8860B;
}

/* In Frame foot: back-to-top centred 50-50 between the statement rule
   and the footer hairline (63.5px each side). Scoped by sibling selector:
   only In Frame ends its content in <article>. */
article + .back-to-top {
  margin: -72.5px auto 64.5px;
}

/* ─────────────── RESPONSIVE ─────────────── */
@media (max-width: 960px) {
  .hero-pair { grid-template-columns: 1fr; gap: 1rem; }
  .hero-rule { display: none; }
  .selected-work .grid,
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .category-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .primary-nav { gap: 1rem; font-size: 0.78rem; letter-spacing: 0.15em; }
}

@media (max-width: 560px) {
  .site-header { padding: 2.5rem 1rem 1.5rem; }
  .wordmark { font-size: 3rem; }
  .selected-work .grid,
  .category-grid,
  .category-grid.cols-4 { grid-template-columns: 1fr; }
  .full-bleed { height: 50vh; min-height: 320px; }
  .primary-nav { flex-wrap: wrap; gap: 0.8rem 1.4rem; }
}
/* Morphing door (18 Sep, Tara-approved): gold rule hidden in pre-install state, shows after flip. */
.client-door-type.door-morph .client-door-rule { display: none; }

/* Force light rendering — phones in dark mode must not darken the site (18 Sep). */
:root { color-scheme: light; }
