/* Home page: moody, editorial, photography-led. */
.h-wrap { width: min(1320px, 100% - var(--gutter) * 2); margin: 0 auto; }
.h-sec { position: relative; padding: clamp(96px, 14vh, 170px) 0; }
.h-lede { font-size: clamp(1.15rem, 1.4vw, 1.35rem); line-height: 1.6; color: var(--text); }
.h-link {
  display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-weight: 600; font-size: .98rem;
  padding-bottom: 6px; background: linear-gradient(var(--brass), var(--brass)) 0 100% / 100% 1px no-repeat;
  transition: background-size .5s var(--ease-out), color .3s;
}
.h-link:hover { color: var(--brass-hi); background-size: 40% 1px; }

/* ---------- Hero ---------- */
.h-hero { position: relative; height: max(680px, 100svh); overflow: hidden; display: flex; align-items: flex-end; isolation: isolate; }
.h-hero__media { position: absolute; inset: 0; z-index: -1; }
.h-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; opacity: 0; transform: scale(1.04); transition: opacity 2.2s ease; }
.h-slide.is-on { opacity: 1; transform: none; }
.h-slide.was-on { animation: kb-out 2.4s linear forwards; }
@keyframes kb { from { transform: scale(1.04) translate3d(0, 0, 0); } to { transform: scale(1.13) translate3d(-1.2%, -.8%, 0); } }
@keyframes kb-out { from { transform: scale(1.13) translate3d(-1.2%, -.8%, 0); } to { transform: scale(1.15) translate3d(-1.4%, -1%, 0); } }
.h-hero__count { display: flex; gap: 10px; }
.h-hero__count i { width: 38px; height: 2px; background: rgba(255,255,255,.22); position: relative; overflow: hidden; }
.h-hero__count i::after { content: ''; position: absolute; inset: 0; background: var(--brass-hi); transform: scaleX(0); transform-origin: left; }
.h-hero__count i.is-on::after { animation: fill var(--slide, 7s) linear forwards; }
@keyframes fill { to { transform: scaleX(1); } }
.h-hero__media::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,11,12,.75) 0%, rgba(10,11,12,.3) 26%, rgba(10,11,12,.38) 55%, rgba(10,11,12,.94) 100%),
    linear-gradient(90deg, rgba(10,11,12,.6) 0%, rgba(10,11,12,0) 60%),
    radial-gradient(ellipse 90% 80% at 50% 40%, transparent 40%, rgba(10,11,12,.6) 100%);
}
.h-hero__inner { width: min(1320px, 100% - var(--gutter) * 2); margin: 0 auto; padding-bottom: clamp(90px, 14vh, 150px); }
.h-hero__kicker { color: #f0d79a; font-weight: 600; font-size: 1rem; margin-bottom: 22px; text-shadow: 0 1px 12px rgba(0,0,0,.8); }
.h-hero h1 { font-size: clamp(3.2rem, 6.8vw, 7rem); max-width: 13ch; color: #fff; }
.h-hero__sub { margin-top: 26px; max-width: 46ch; font-size: clamp(1.1rem, 1.45vw, 1.35rem); color: #e2dfd8; line-height: 1.6; }
.h-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 30px; margin-top: 38px; }
.h-hero__foot { position: absolute; left: 0; right: 0; bottom: 34px; width: min(1320px, 100% - var(--gutter) * 2); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.h-hero__phone { color: var(--text-dim); text-decoration: none; font-weight: 600; font-variant-numeric: tabular-nums; font-size: .95rem; transition: color .3s; }
.h-hero__phone:hover { color: #fff; }
.h-hero__scroll { width: 1px; height: 54px; background: rgba(255,255,255,.18); position: relative; overflow: hidden; }
.h-hero__scroll i { position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--brass-hi); animation: drip 2.4s var(--ease) infinite; }
@keyframes drip { to { top: 100%; } }
.h-hero [data-rise] { opacity: 0; transform: translateY(30px); }
.h-hero.is-on [data-rise] { opacity: 1; transform: none; transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: calc(var(--i, 0) * 110ms + 100ms); }

/* ---------- Scroll reveals ---------- */

/* ---------- Section heads ---------- */
.h-head { display: grid; gap: 20px; max-width: 760px; margin-bottom: clamp(48px, 7vh, 80px); }
.h-head h2 { font-size: clamp(2.6rem, 4.6vw, 4.6rem); }
.h-head p { color: var(--text-dim); font-size: 1.1rem; max-width: 56ch; }
.h-head--split { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; }
.h-more { margin-top: 56px; }

/* ---------- Services ---------- */
.h-services { background: var(--bg-2); }
.h-svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2vw, 28px); }
.h-svc { position: relative; display: block; text-decoration: none; color: var(--text); overflow: hidden; aspect-ratio: 4 / 5; background: var(--bg-3); isolation: isolate; }
.h-svc img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.4s var(--ease-out), filter .8s; filter: saturate(.85) brightness(.85); }
.h-svc::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,11,12,.05) 30%, rgba(10,11,12,.88) 100%); transition: opacity .6s; }
.h-svc__body { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(22px, 2.4vw, 34px); display: grid; gap: 10px; }
.h-svc h3 { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.7rem, 2.3vw, 2.3rem); line-height: 1.05; letter-spacing: 0; font-stretch: 100%; }
.h-svc p { color: #d4d0c8; font-size: .98rem; max-width: 34ch; opacity: .82; transform: translateY(8px); transition: opacity .6s, transform .6s var(--ease-out); }
.h-svc__num { position: absolute; top: clamp(20px, 2vw, 28px); left: clamp(22px, 2.4vw, 34px); font-size: .82rem; font-weight: 600; color: var(--brass-hi); font-variant-numeric: tabular-nums; }
.h-svc:hover img { transform: scale(1.06); filter: saturate(1) brightness(.95); }
.h-svc:hover p { opacity: 1; transform: none; }
.h-svc:focus-visible { outline-offset: 4px; }

/* ---------- Gallery ---------- */
.h-gallery { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(150px, 15vw, 230px); gap: clamp(14px, 1.6vw, 22px); }
.h-tile { position: relative; overflow: hidden; display: block; background: var(--bg-2); text-decoration: none; color: #fff; }
.h-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out), filter .8s; filter: brightness(.9); }
.h-tile figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 50px 22px 18px; background: linear-gradient(transparent, rgba(10,11,12,.85)); font-weight: 600; font-size: .95rem; opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .6s var(--ease-out); }
.h-tile:hover img { transform: scale(1.05); filter: brightness(1); }
.h-tile:hover figcaption, .h-tile:focus-visible figcaption { opacity: 1; transform: none; }
.h-tile:nth-child(1) { grid-column: span 7; grid-row: span 3; }
.h-tile:nth-child(2) { grid-column: span 5; grid-row: span 2; }
.h-tile:nth-child(3) { grid-column: span 5; grid-row: span 1; }
.h-tile:nth-child(4) { grid-column: span 4; grid-row: span 2; }
.h-tile:nth-child(5) { grid-column: span 4; grid-row: span 2; }
.h-tile:nth-child(6) { grid-column: span 4; grid-row: span 2; }

/* ---------- Testimonial ---------- */
.h-quote { position: relative; overflow: hidden; isolation: isolate; padding: clamp(120px, 20vh, 220px) 0; text-align: center; }
.h-quote__bg { position: absolute; inset: -12% 0; z-index: -1; will-change: transform; }
.h-quote__bg img { width: 100%; height: 100%; object-fit: cover; }
.h-quote__bg::after { content: ''; position: absolute; inset: 0; background: rgba(10,11,12,.74); }
.h-quote__inner { display: grid; justify-items: center; }
.h-quote .quotes { min-height: 260px; max-width: 980px; width: 100%; }
.h-quote .quote p { font-family: var(--f-display); font-style: italic; font-weight: 400; font-size: clamp(1.9rem, 3.4vw, 3.3rem); line-height: 1.22; color: #fff; max-width: 30ch; }
.h-quote .quote footer { color: var(--brass-hi); margin-top: 26px; }

/* ---------- CTA ---------- */
.h-cta { background: var(--bg-2); }
.h-cta__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.h-cta h2 { font-size: clamp(2.8rem, 5vw, 5.2rem); max-width: 12ch; }
.h-cta__copy { display: grid; gap: 26px; }
.h-cta__actions { display: flex; flex-wrap: wrap; gap: 30px; align-items: center; margin-top: 8px; }
.h-cta__img { aspect-ratio: 4 / 5; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .h-svc-grid { grid-template-columns: 1fr 1fr; }
  .h-cta__grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .h-hero h1 { font-size: 3.2rem; }
  .h-hero__inner { padding-bottom: 120px; }
  .h-svc-grid { grid-template-columns: 1fr; }
  .h-svc { aspect-ratio: 4 / 3.6; }
  .h-svc p { opacity: 1; transform: none; }
  .h-gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  .h-tile:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .h-tile:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .h-tile figcaption { opacity: 1; transform: none; font-size: .82rem; padding: 30px 12px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .h-hero__media img { animation: none; }
  .h-reveal, .h-reveal-img, .h-reveal-img img { opacity: 1; transform: none; clip-path: none; }
}

/* ---------- Faint photo backdrops with soft fades ---------- */
.h-intro, .h-services, .h-work, .h-process { isolation: isolate; overflow: hidden; }
.h-bgphoto { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  -webkit-mask-image: linear-gradient(transparent 0%, #000 28%, #000 72%, transparent 100%); mask-image: linear-gradient(transparent 0%, #000 28%, #000 72%, transparent 100%); }
.h-bgphoto img { width: 100%; height: 100%; object-fit: cover; opacity: .22; filter: grayscale(.25) contrast(1.05); }
.h-bgphoto--strong img { opacity: .28; }
.h-bgphoto::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 60% at 50% 50%, transparent, var(--bg) 92%); }
.h-services .h-bgphoto::after { background: radial-gradient(ellipse 70% 60% at 50% 50%, transparent, var(--bg-2) 92%); }

/* living gallery: tiles fade to other projects */
.h-tile img { position: absolute; inset: 0; }
.h-tile img + img { opacity: 0; transition: opacity 1.8s ease, transform 1.4s var(--ease-out), filter .8s; }
.h-tile.is-swapped img + img { opacity: 1; }

/* a course of Belgian block with a slow light sweeping along it */
.h-course { position: relative; height: 34px; margin: 0 auto; width: min(1320px, 100% - var(--gutter) * 2);
  background: url(../assets/stone-course.jpg) 0 50% / auto 34px repeat-x;
  filter: brightness(.72) saturate(.75); overflow: hidden; box-shadow: inset 0 1px 0 rgba(214,180,106,.35), inset 0 -1px 0 rgba(214,180,106,.35);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); }
.h-course::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 42%, rgba(255,214,140,.9) 50%, transparent 58%); background-size: 260% 100%; mix-blend-mode: overlay; animation: sweep 9s ease-in-out infinite; }
@keyframes sweep { 0% { background-position: 130% 0; } 60%, 100% { background-position: -30% 0; } }

@media (prefers-reduced-motion: reduce) {
  .h-slide.is-on { animation: none; transform: none; }
  .h-course::after { animation: none; opacity: 0; }
}

/* ---------- Black and gold ---------- */
.h-head::before { content: ''; display: block; width: 64px; height: 1px; margin-bottom: 26px; background: linear-gradient(90deg, var(--gold-hi), transparent); }
.h-frame::after { content: ''; position: absolute; inset: 14px; border: 1px solid rgba(226,194,124,.5); pointer-events: none; z-index: 2; transition: inset .6s var(--ease-out), border-color .6s; }
.h-frame:hover::after { inset: 10px; border-color: rgba(226,194,124,.85); }
.h-svc::before { content: ''; position: absolute; inset: 12px; border: 1px solid rgba(226,194,124,.18); z-index: 1; pointer-events: none; transition: border-color .6s, inset .6s var(--ease-out); }
.h-svc:hover::before { border-color: rgba(226,194,124,.75); inset: 9px; }
.h-svc__num { color: var(--gold-hi); }
.h-tile::after { content: ''; position: absolute; inset: 0; border: 1px solid rgba(226,194,124,0); transition: border-color .6s; pointer-events: none; }
.h-tile:hover::after { border-color: rgba(226,194,124,.7); }
.h-quote .quotes::before { content: '“'; display: block; font-family: var(--f-display); font-size: 7rem; line-height: .6; color: var(--gold-hi); margin-bottom: 18px; }
.h-quote { border-top: 1px solid rgba(226,194,124,.2); border-bottom: 1px solid rgba(226,194,124,.2); }

/* services: richer photographic backdrop */
.h-services .h-bgphoto img { opacity: .5; filter: saturate(.9); }
.h-services .h-bgphoto::after { background: linear-gradient(180deg, rgba(20,22,24,.55), rgba(20,22,24,.35) 50%, rgba(20,22,24,.6)), radial-gradient(ellipse 80% 70% at 50% 50%, transparent 30%, var(--bg-2) 100%); }


/* testimonial: quotes stack in one cell so the tallest sets the height; controls sit below */
.h-quote .quotes { display: grid; min-height: 0; }
.h-quote .quote { position: relative; inset: auto; grid-area: 1 / 1; }
.h-quote .quote-nav { margin-top: 48px; padding-top: 28px; border-top: 1px solid rgba(226,194,124,.25); }

/* recent work: a warm darkened backdrop and a gold-framed stage */
.h-work .h-bgphoto img { opacity: .42; filter: saturate(.95); }
.h-work .h-bgphoto::after { background: linear-gradient(180deg, rgba(14,15,16,.7), rgba(14,15,16,.35) 45%, rgba(14,15,16,.75)), radial-gradient(ellipse 80% 70% at 50% 50%, transparent 30%, var(--bg) 100%); }
.h-gallery { position: relative; padding: clamp(14px, 1.6vw, 22px); border: 1px solid rgba(226,194,124,.35); background: rgba(14,15,16,.45); }
.h-work h2 { text-shadow: 0 4px 30px rgba(0,0,0,.6); }
.h-yours { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; margin-top: 40px; }
.h-yours p { font-family: var(--f-display); font-size: clamp(2rem, 3.4vw, 3.2rem); color: #fff; line-height: 1; }
.h-quote .quotes::before { grid-area: 1 / 1; justify-self: center; }
.h-quote .quote { grid-area: 2 / 1; }
.h-head--split::before { flex: 0 0 64px; margin-right: calc(100% - 64px); margin-bottom: 0; }

/* burgundy accents on the home page; gold only on frames, numerals and the quote mark */
.h-head::before { background: linear-gradient(90deg, var(--wine-hi), transparent); }
.h-link { background-image: linear-gradient(var(--wine-hi), var(--wine-hi)); }
.h-link:hover { color: #fff; }
.h-svc::before { border-color: rgba(255,255,255,.1); }
.h-svc:hover::before { border-color: rgba(226,194,124,.6); }
.h-svc__num { color: #d7c6ad; }
.h-gallery { border-color: rgba(255,255,255,.1); }
.h-steps li, .h-steps li:last-child { border-color: rgba(255,255,255,.09); }
.h-process, .h-quote { border-color: rgba(255,255,255,.07); }
.h-quote .quote footer { color: #d7c6ad; }
.h-quote .quote-nav { border-top-color: rgba(255,255,255,.12); }
.h-frame::after { border-color: rgba(226,194,124,.35); }

/* ---------- Intro: text on a solid panel, two framed photos ---------- */
.h-img { margin: 0; overflow: hidden; position: relative; background: var(--bg-2); }
.h-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.h-panel { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(30px, 4vw, 64px); align-items: center; padding: clamp(32px, 4.5vw, 72px); background: rgba(20,22,24,.94); border: 1px solid rgba(255,255,255,.08); box-shadow: 0 50px 90px -40px rgba(0,0,0,.8); }
.h-panel__text { display: grid; gap: 22px; justify-items: start; }
.h-panel__text h2 { font-size: clamp(2.4rem, 3.8vw, 3.9rem); max-width: 14ch; color: #fff; }
.h-panel__text h2::before { content: ''; display: block; width: 56px; height: 1px; margin-bottom: 24px; background: linear-gradient(90deg, var(--wine-hi), transparent); }
.h-panel__text .h-lede { color: #f1eee8; max-width: 44ch; }
.h-panel__text p:not(.h-lede) { color: #bdb8af; max-width: 46ch; }
.h-panel__media { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 1.4vw, 20px); }
.h-panel__media .h-img { aspect-ratio: 3 / 4; }
.h-panel__media .h-img:last-child { margin-top: clamp(30px, 5vw, 70px); }
@media (max-width: 1000px) { .h-panel { grid-template-columns: 1fr; } }
@media (max-width: 680px) { .h-panel__media .h-img:last-child { margin-top: 0; } .h-panel__media .h-img { aspect-ratio: 4 / 5; } }

/* ---------- Process: a calm grid of solid panels ---------- */
.h-process .h-bgphoto img { opacity: .3; }
.h-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.4vw, 20px); }
.h-steps li { padding: clamp(24px, 2.2vw, 34px); background: rgba(22,24,26,.82); border: 1px solid rgba(255,255,255,.08); display: grid; gap: 12px; align-content: start; transition: border-color .4s; }
.h-steps li:hover { border-color: rgba(226,194,124,.4); }
.h-steps__n { font-family: var(--f-display); font-size: 2.6rem; line-height: 1; color: var(--gold-hi); }
.h-steps h3 { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.45rem, 1.7vw, 1.75rem); line-height: 1.12; color: #fff; letter-spacing: 0; font-stretch: 100%; }
.h-steps p { color: var(--text-dim); font-size: .97rem; }
.h-steps__cta { background: linear-gradient(160deg, rgba(125,29,44,.55), rgba(40,14,20,.85)) !important; border-color: rgba(158,43,62,.6) !important; }
.h-steps__cta p { color: #e8d9dc; }
.h-steps__cta .btn { justify-self: start; margin-top: 8px; }

@media (max-width: 1000px) {
  .h-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .h-steps { grid-template-columns: 1fr; }
}
/* link underline as text decoration, not a background */
.h-link { background: none; padding-bottom: 0; text-decoration: underline; text-decoration-color: var(--wine-hi); text-decoration-thickness: 1px; text-underline-offset: 8px; transition: color .3s, text-underline-offset .4s var(--ease-out); }
.h-link:hover { color: #fff; text-underline-offset: 5px; }

/* testimonial: photo holds still, no quote mark */
.h-quote__bg { inset: 0; will-change: auto; transform: none !important; }
.h-quote .quotes::before { content: none; display: none; }

/* phones only: What we build becomes a left/right swipe carousel */
@media (max-width: 680px) {
  .h-svc-grid { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
    margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 6px; scroll-padding: 0 var(--gutter); scrollbar-width: none; }
  .h-svc-grid::-webkit-scrollbar { display: none; }
  .h-svc { flex: 0 0 82%; aspect-ratio: 4 / 5; scroll-snap-align: start; }
  .h-svc-dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
  .h-svc-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.25); transition: background-color .3s, width .3s; }
  .h-svc-dots i.is-on { width: 22px; border-radius: 4px; background: var(--wine-hi); }
}
@media (min-width: 681px) { .h-svc-dots { display: none; } }
