/* Willow Carpentry & Construction — premium Canberra portfolio
   Palette read from the project photos: warm charcoal, off-white, jarrah timber,
   muted sandstone, subtle sage greenery. Colour used sparingly; photography leads. */

:root {
  --charcoal:     #201B18;
  --charcoal-2:   #2A2420;
  --charcoal-3:   #352E29;
  --offwhite:     #F0EBE3;
  --offwhite-2:   #E7E0D4;
  --stone:        #C7BCA9;
  --stone-mute:   #B0A492;
  --stone-dim:    #8B8071;
  --jarrah:       #7C3A26;   /* deep brick-red timber — primary action (not orange) */
  --jarrah-deep:  #5E2C1D;
  --ember:        #C98C5F;    /* warm muted highlight for small accents */
  --sage:         #616B53;
  --text:         #ECE6DC;
  --text-mute:    #B4A996;
  --line:         rgba(236, 230, 220, 0.13);
  --line-dark:    rgba(32, 27, 24, 0.16);

  --ff-display: "Archivo", system-ui, sans-serif;
  --ff-body: "Inter", system-ui, sans-serif;

  --maxw: 1340px;
  --gutter: clamp(20px, 4vw, 60px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--ff-body); background: var(--charcoal); color: var(--text); line-height: 1.6; font-size: 17px; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---------- Type ---------- */
.display { font-family: var(--ff-display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.0; text-wrap: balance; }
h1.display { font-size: clamp(2.5rem, 6vw, 5.2rem); }
h2.display { font-size: clamp(2rem, 4.2vw, 3.6rem); }
h3 { font-family: var(--ff-display); font-weight: 600; letter-spacing: -0.01em; }
.eyebrow { font-family: var(--ff-display); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.26em; text-transform: uppercase; color: var(--stone-mute); }
.eyebrow .dot { color: var(--jarrah); }
.lede { font-size: clamp(1.04rem, 1.5vw, 1.26rem); color: var(--text-mute); max-width: 56ch; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
section { position: relative; }
.section-pad { padding-block: clamp(74px, 9vw, 126px); }
.on-light { background: var(--offwhite); color: var(--charcoal); }
.on-light .eyebrow { color: var(--stone-dim); }
.on-light .eyebrow .dot { color: var(--jarrah); }
.on-light .lede { color: #5b534a; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 0.6em; font-family: var(--ff-display); font-weight: 600; font-size: 0.92rem; padding: 1em 1.6em; border-radius: 3px; transition: transform .35s cubic-bezier(.2,.7,.2,1), background .3s, border-color .3s, color .3s; }
.btn .arrow { transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: var(--jarrah); color: #fff; }
.btn-primary:hover { background: var(--jarrah-deep); transform: translateY(-2px); }
.btn-ghost { border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); transform: translateY(-2px); }
.on-light .btn-ghost { border-color: var(--line-dark); color: var(--charcoal); }
.on-light .btn-ghost:hover { border-color: var(--charcoal); }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 60; display: flex; align-items: center; justify-content: space-between; padding: 16px var(--gutter); transition: background .4s, backdrop-filter .4s, padding .4s, border-color .4s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(24,20,17,.86); backdrop-filter: blur(12px); padding-block: 11px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 40px; width: 40px; object-fit: contain; background: var(--offwhite); border-radius: 8px; padding: 4px; }
.brand .bt { font-family: var(--ff-display); font-weight: 700; letter-spacing: 0.14em; font-size: 0.92rem; line-height: 1; }
.brand .bt small { display: block; font-size: 0.56rem; font-weight: 500; letter-spacing: 0.22em; color: var(--stone-dim); margin-top: 3px; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { font-size: 0.85rem; color: var(--text-mute); transition: color .25s; }
.nav-links a:hover { color: var(--text); }
.nav-burger { display: none; flex-direction: column; gap: 5px; padding: 6px; }
.nav-burger span { width: 24px; height: 2px; background: var(--text); transition: .3s; }
.mobile-menu { position: fixed; inset: 0; z-index: 55; background: rgba(20,16,14,.97); backdrop-filter: blur(8px); display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: var(--gutter); transform: translateY(-100%); transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a { font-family: var(--ff-display); font-size: 1.7rem; font-weight: 600; padding: 11px 0; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 22px; align-self: flex-start; }

/* ---------- Hero ---------- */
.hero { min-height: 100svh; display: flex; align-items: flex-end; position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero-scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(18,14,12,.92) 0%, rgba(18,14,12,.4) 45%, rgba(18,14,12,.2) 72%, rgba(18,14,12,.5) 100%); }
.hero-inner { position: relative; z-index: 10; width: 100%; padding-top: clamp(96px, 14vh, 132px); padding-bottom: clamp(46px, 7vw, 92px); }
.hero h1 { max-width: 15ch; margin-top: 16px; }
.hero .lede { margin-top: 22px; color: var(--offwhite); }
.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 30px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.hero-meta .n { font-family: var(--ff-display); font-weight: 700; font-size: 1.4rem; }
.hero-meta .l { font-size: 0.78rem; color: var(--stone-mute); }

/* ---------- Section head ---------- */
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; margin-bottom: 46px; }
.sec-head .sec-title { max-width: 20ch; margin-top: 14px; }

/* ---------- Story (before / after side by side) ---------- */
.story + .story { border-top: 1px solid var(--line); margin-top: clamp(2rem, 3.5vw, 3.5rem); padding-top: clamp(2rem, 3.5vw, 3.5rem); }
.on-light .story + .story { border-top: 1px solid var(--line-dark); }
.story-head { max-width: 760px; margin-bottom: clamp(1.5rem, 2.5vw, 2rem); }
.story-head h2 { margin: 10px 0 14px; }
.ba-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ba-card { position: relative; height: clamp(320px, 42vw, 520px); overflow: hidden; border-radius: 4px; box-shadow: 0 26px 60px -34px rgba(0,0,0,.7); }
.ba-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.ba-card:hover img { transform: scale(1.04); }
.ba-badge { position: absolute; z-index: 2; top: 12px; left: 12px; font-family: var(--ff-display); font-size: 0.58rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; padding: 5px 9px; background: rgba(18,14,12,.72); backdrop-filter: blur(4px); border-radius: 3px; color: var(--offwhite); }
.ba-badge.finished { color: var(--ember); }
.story-meta { display: flex; gap: 28px; margin-top: 26px; flex-wrap: wrap; }
.story-meta .k { font-family: var(--ff-display); font-weight: 700; font-size: 1.1rem; }
.story-meta .v { font-size: 0.8rem; color: var(--stone-dim); }
.on-light .story-meta .v { color: var(--stone-dim); }
/* Frame-to-Finish: compact module rhythm (tighter padding + controlled heading scale) */
#transformation { padding-block: clamp(4rem, 7vw, 7rem); }
#transformation .sec-head { margin-bottom: clamp(1.75rem, 3vw, 2.5rem); }
#transformation .sec-head .sec-title { font-size: clamp(2.4rem, 4.4vw, 3.5rem); }
#transformation .story-head h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); }

/* ---------- Services: full-height image panel navigation (adapted 21st.dev "Expanding Cards") ---------- */
.svc-section .sec-head { margin-bottom: 0; }
/* three full-bleed panels with interlocking ~8deg diagonal cuts (clip-path),
   separated by a dark angled gutter that follows the same angle. The gutter is
   the section background showing through where adjacent panels are clipped. */
.svc-panels { --cut: clamp(54px, 6vw, 90px); --gutter: 16px; display: flex;
  width: min(100% - 48px, 1680px); margin: clamp(40px, 5vw, 64px) auto 0; padding: var(--gutter); background: var(--charcoal); }
.svc-panel { position: relative; display: block; flex: 0 0 calc((100% + 2 * var(--cut)) / 3); height: clamp(520px, 68vh, 760px); overflow: hidden; background: var(--charcoal-2); box-shadow: inset 0 0 52px rgba(0, 0, 0, 0.42); }
.svc-panel:nth-child(2), .svc-panel:nth-child(3) { margin-left: calc(-1 * var(--cut)); }
.svc-panel:nth-child(1) { clip-path: polygon(0 0, calc(100% - var(--gutter)) 0, calc(100% - var(--cut) - var(--gutter)) 100%, 0 100%); }
.svc-panel:nth-child(2) { clip-path: polygon(var(--cut) 0, calc(100% - var(--gutter)) 0, calc(100% - var(--cut) - var(--gutter)) 100%, 0 100%); }
.svc-panel:nth-child(3) { clip-path: polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%); }
.svc-panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center;
  filter: brightness(0.82) saturate(0.96); transition: transform 1.1s cubic-bezier(.2,.7,.2,1), filter .6s ease; }
.svc-panel:hover img, .svc-panel:focus-visible img { transform: scale(1.05); filter: brightness(1) saturate(1.05); }
/* middle panel (bathroom): focus the crop on the vanity / timber benchtop / mirror / window
   and keep the brighter photo from washing out under a lighter overlay */
.svc-panel:nth-child(2) img { object-position: 55% 32%; filter: brightness(0.9) saturate(0.98); }
.svc-panel:nth-child(2):hover img { filter: brightness(1.02) saturate(1.02); }
.svc-panel-scrim { position: absolute; inset: 0; z-index: 1; transition: background .5s ease;
  background: linear-gradient(to top, rgba(18,14,12,.92) 0%, rgba(18,14,12,.45) 42%, rgba(18,14,12,.12) 78%, rgba(18,14,12,.3) 100%); }
.svc-panel:nth-child(2) .svc-panel-scrim {
  background: linear-gradient(to top, rgba(18,14,12,.88) 0%, rgba(18,14,12,.34) 42%, rgba(18,14,12,.06) 74%, rgba(18,14,12,.14) 100%); }
.svc-panel:hover .svc-panel-scrim { background: linear-gradient(to top, rgba(18,14,12,.9) 0%, rgba(18,14,12,.34) 45%, rgba(18,14,12,.05) 82%, rgba(18,14,12,.2) 100%); }
/* shared text grid: text block bottom-anchored at one offset on every panel, with
   2-line title space reserved so titles, descriptions and links line up across all three */
.svc-panel-body { position: absolute; z-index: 2; left: 0; right: 0; top: auto; bottom: clamp(2rem, 5vw, 5rem);
  padding-left: clamp(26px, 2.4vw, 40px); padding-right: clamp(26px, 2.4vw, 40px); }
/* keep text clear of the diagonal cut on the cut side(s) */
.svc-panel:nth-child(1) .svc-panel-body, .svc-panel:nth-child(2) .svc-panel-body { padding-right: calc(var(--cut) + var(--gutter) + clamp(14px, 1.6vw, 26px)); }
.svc-panel:nth-child(3) .svc-panel-body { padding-left: calc(var(--gutter) + clamp(22px, 2.2vw, 38px)); }
.svc-panel-body h3 { display: flex; align-items: flex-end; min-height: 2.12em; margin: 0 0 1rem; max-width: clamp(16rem, 24vw, 22rem);
  font-family: var(--ff-display); font-weight: 700; letter-spacing: -0.01em; font-size: clamp(1.7rem, 2.2vw, 2.4rem); line-height: 1.06; color: var(--offwhite); }
.svc-panel-body p { margin: 0 0 1.5rem; max-width: clamp(16rem, 24vw, 22rem); color: var(--stone); font-size: 0.96rem; line-height: 1.5; opacity: .92; transform: translateY(4px); transition: opacity .45s ease, transform .45s ease; }
.svc-panel:hover .svc-panel-body p { opacity: 1; transform: none; }
.svc-panel-link { display: inline-flex; align-items: center; gap: 0.6em; margin-top: 0; font-family: var(--ff-display); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ember); }
.svc-panel-link .arrow { transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.svc-panel:hover .svc-panel-link .arrow { transform: translateX(5px); }

/* ---------- Project gallery (masonry) ---------- */
.gallery { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.gallery .g-item { position: relative; flex: 0 0 calc((100% - 32px) / 3); aspect-ratio: 4 / 5; overflow: hidden; border-radius: 4px; cursor: zoom-in; }
.gallery .g-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1s cubic-bezier(.2,.7,.2,1), filter .4s; }
.gallery .g-item:hover img { transform: scale(1.04); filter: brightness(1.05); }
.gallery .g-cap { position: absolute; z-index: 2; left: 14px; bottom: 12px; font-family: var(--ff-display); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--offwhite); background: rgba(18,14,12,.6); backdrop-filter: blur(4px); padding: 5px 10px; border-radius: 3px; opacity: 0; transition: opacity .3s; }
.gallery .g-item:hover .g-cap { opacity: 1; }
.gallery .g-item.g-ph { display: flex; align-items: center; justify-content: center; text-align: center; cursor: default;
  aspect-ratio: 4 / 5; background: linear-gradient(155deg, var(--charcoal-3), var(--charcoal-2)); border: 1px dashed var(--line); }
.gallery .g-item.g-ph span { font-family: var(--ff-display); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--stone-dim); line-height: 1.7; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 120; display: none; align-items: center; justify-content: center; background: rgba(14,11,9,.93); backdrop-filter: blur(10px); padding: 4vh 4vw; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 90vh; object-fit: contain; border-radius: 4px; }
.lightbox .lb-close { position: absolute; top: 22px; right: 26px; font-size: 2rem; color: var(--stone); line-height: 1; }



/* ---------- Final CTA ---------- */
.final { position: relative; min-height: 74svh; display: flex; align-items: center; overflow: hidden; }
.final-bg { position: absolute; inset: 0; z-index: 0; }
.final-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.final-scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(110deg, rgba(18,14,12,.92) 0%, rgba(18,14,12,.6) 58%, rgba(18,14,12,.35) 100%); }
.final-inner { position: relative; z-index: 2; }
.final h2 { max-width: 16ch; }
.final .lede { color: var(--offwhite); margin-top: 18px; }
.final .btn { margin-top: 30px; }

/* ---------- Footer ---------- */
.footer { background: #15110E; padding-top: clamp(62px, 7vw, 94px); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 54px; }
.footer .brand { margin-bottom: 16px; }
.footer-blurb { color: var(--stone-dim); font-size: 0.92rem; max-width: 32ch; }
.footer h4 { font-family: var(--ff-display); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--stone-dim); margin-bottom: 16px; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer ul a, .footer ul li { color: var(--text-mute); font-size: 0.92rem; transition: color .25s; }
.footer ul a:hover { color: var(--ember); }
.footer-bottom { border-top: 1px solid var(--line); padding: 22px 0; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; color: var(--stone-dim); font-size: 0.8rem; }
.footer-bottom .socials { display: flex; gap: 18px; }
.footer-bottom .socials a:hover { color: var(--ember); }

/* ---------- Builderino polish: signature seam, spec sheet, a11y ---------- */

/* gallery items are real buttons now — reset and keep masonry behaviour */
.gallery .g-item { display: block; width: 100%; padding: 0; text-align: left; background: none; border: none; font: inherit; color: inherit; }

/* before → after seam: the signature element of the transformation */
.ba-pair { position: relative; }
.ba-seam { position: absolute; z-index: 3; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 9px; padding: 8px 14px;
  background: rgba(18,14,12,.86); backdrop-filter: blur(6px);
  border: 1px solid rgba(201,140,95,.4); border-radius: 100px;
  font-family: var(--ff-display); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--offwhite);
  box-shadow: 0 14px 34px -18px rgba(0,0,0,.8); white-space: nowrap; }
.ba-seam i { color: var(--ember); font-style: normal; font-size: 0.95rem; line-height: 1; transform: translateY(-1px); }

/* spec-sheet treatment under each story — encodes real build info */
.story-meta.spec { gap: 0; border-top: 1px solid var(--line); margin-top: 28px; padding-top: 0; }
.on-light .story-meta.spec { border-top: 1px solid var(--line-dark); }
.story-meta.spec > div { flex: 1; min-width: 140px; padding: 18px 22px 0 0; }
.story-meta.spec > div + div { border-left: 1px solid var(--line); padding-left: 22px; }
.on-light .story-meta.spec > div + div { border-left: 1px solid var(--line-dark); }
.story-meta.spec .k { font-size: 1.05rem; }
.story-meta.spec .v { font-family: var(--ff-display); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--stone-mute); margin-top: 5px; }
.on-light .story-meta.spec .v { color: var(--stone-dim); }

/* ---------- Keyboard focus (visible, on-brand) ---------- */
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 2px; }
.g-item:focus-visible { outline-offset: -3px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .hero-bg img { transform: none !important; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ---------- Reveal base (class-driven, fail-safe in <head> + app.js) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(22px); will-change: opacity, transform;
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ========== Service detail pages ========== */
.sp-header { padding-top: clamp(112px, 16vh, 152px); }
.back-link { display: inline-flex; align-items: center; gap: 0.5em; font-family: var(--ff-display); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--stone-mute); transition: color .25s; }
.back-link:hover { color: var(--ember); }
.sp-header .back-link { margin-bottom: 22px; }
/* split hero: copy left, large service image right (connects to the homepage panel) */
.sp-hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(34px, 5vw, 76px); align-items: center; margin-top: clamp(26px, 3vw, 40px); }
.sp-hero-copy h1 { font-size: clamp(2.4rem, 5vw, 4rem); margin: 0; line-height: 1.02; }
.sp-hero-copy .lede { margin-top: 18px; color: var(--offwhite); max-width: 32ch; }
.sp-hero-copy .sp-body { margin-top: 24px; }
.sp-hero-copy .sp-body p { color: var(--text-mute); max-width: 52ch; }
.sp-hero-copy .sp-body p + p { margin-top: 14px; }
.sp-hero-media { position: relative; aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden; box-shadow: 0 30px 70px -42px rgba(0,0,0,.85); }
.sp-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.sp-hero-media .sp-hero-scrim { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(18,14,12,.34) 0%, rgba(18,14,12,.04) 45%, rgba(18,14,12,.2) 100%); }
/* designed "what this can include": numbered rows, two columns, thin dividers */
.sp-incl-h { font-family: var(--ff-display); font-weight: 700; font-size: clamp(1.2rem, 2vw, 1.65rem); color: var(--offwhite); letter-spacing: -0.01em; }
.incl-grid { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(36px, 5vw, 80px); margin-top: 22px; }
.incl-grid li { display: flex; align-items: baseline; gap: 16px; padding: 16px 2px; border-top: 1px solid var(--line); color: var(--text); font-size: 1rem; }
.incl-grid .incl-n { font-family: var(--ff-display); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.12em; color: var(--ember); min-width: 1.6em; }
.sp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 40px; }
.sp-tile { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; display: block; background: var(--charcoal-2); }
.sp-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.9); transition: transform .9s cubic-bezier(.2,.7,.2,1), filter .5s; }
.sp-tile:hover img { transform: scale(1.05); filter: brightness(1.03); }
.sp-tile .sp-scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(18,14,12,.85), transparent 58%); }
.sp-tile .sp-label { position: absolute; z-index: 2; left: 0; bottom: 0; padding: 18px 20px; font-family: var(--ff-display); font-weight: 600; font-size: 1rem; color: var(--offwhite); }
.sp-tile.ph { display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; background: linear-gradient(155deg, var(--charcoal-3), var(--charcoal-2)); border: 1px dashed var(--line); }
.sp-tile.ph .sp-label { position: static; padding: 0; color: var(--stone-mute); }
.sp-tile.ph small { display: block; margin-top: 9px; font-family: var(--ff-body); font-weight: 400; font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--stone-dim); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .nav-links, .nav .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .svc-panels { flex-direction: column; gap: 14px; }           /* stack panels as large image-led panels */
  .svc-panel { flex-basis: auto; width: 100%; margin-left: 0; clip-path: none; height: clamp(360px, 56vh, 540px); }
  /* no diagonal on mobile: uniform padding, natural title height, simple spacing */
  .svc-panel:nth-child(1) .svc-panel-body, .svc-panel:nth-child(2) .svc-panel-body, .svc-panel:nth-child(3) .svc-panel-body { padding-left: clamp(26px, 6vw, 40px); padding-right: clamp(26px, 6vw, 40px); }
  .svc-panel-body h3 { display: block; min-height: 0; }
  .gallery .g-item { flex-basis: calc((100% - 16px) / 2); }   /* 2 per row on tablet */
  .sp-hero { grid-template-columns: 1fr; gap: clamp(26px, 5vw, 40px); }   /* stack copy + image */
  .sp-hero-media { aspect-ratio: 16 / 11; }                   /* shorter image band when stacked */
  .incl-grid { grid-template-columns: 1fr; }                  /* single column inclusions */
  .sp-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .ba-pair { grid-template-columns: 1fr; }   /* before/after stacks on mobile */
  .ba-seam i { transform: rotate(90deg); }   /* arrow points down when stacked */
  .story-meta.spec { flex-wrap: wrap; }
  .story-meta.spec > div + div { border-left: none; padding-left: 0; }
  .gallery .g-item { flex-basis: 100%; }                      /* 1 per row on mobile */
  .sp-grid { grid-template-columns: 1fr; }                    /* stack project tiles */
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
