/* Simplify: transformation gallery — extends approved stylesheet without altering it. */
.transformation-showcase {
  background:radial-gradient(ellipse at 80% 12%,#2b251f 0%,#1b1815 46%,#151311 90%);
  padding:78px 0 86px;
  border-top:1px solid #46382b;
  border-bottom:1px solid #43352a;
}
.transformation-showcase .content-width {padding-inline:clamp(25px,4vw,64px)}
.transformation-section-top {display:flex;justify-content:space-between;align-items:end;gap:45px;margin-bottom:34px}
.transformation-section-top .eyebrow {margin-bottom:14px;color:var(--gold)}
.transformation-section-top .display-heading {font-size:clamp(45px,4.1vw,68px);line-height:1.02}
.transformation-section-top>p {max-width:400px;color:#c8bfb5;font-size:16px;line-height:1.6;margin:0 0 7px}
.transformation-project {
  background:linear-gradient(117deg,#201b17 0%,#1c1916 60%,#1c1814 100%);
  border:1px solid #56412b;
  padding:29px;
  display:grid;
  grid-template-columns:minmax(190px,.8fr) minmax(0,1.6fr);
  gap:40px;
}
.transformation-project-copy {align-self:center;padding:0 0 0 7px}
.transformation-project-copy .eyebrow {font-size:11px;letter-spacing:.24em}
.transformation-project-title {font-family:var(--serif);font-weight:400;font-size:clamp(36px,3vw,53px);line-height:.99;letter-spacing:-.02em;margin:20px 0 17px}
.transformation-project-copy>p:not(.eyebrow) {font-size:15px;color:#b9b0a7;line-height:1.68;margin:0;max-width:300px}
.transformation-project-meta {margin-top:31px;display:flex;align-items:center;gap:12px;color:#c2aa8b;font-size:11px;letter-spacing:.1em;text-transform:uppercase}
.transformation-meta-rule {height:1px;width:33px;background:var(--gold);display:block}
.transformation-media {min-width:0}
.transformation-pair {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:stretch}
.transformation-video-card {min-width:0}
.transformation-video-frame {position:relative;aspect-ratio:4 / 5;background:#171411;border:1px solid #6c5640;overflow:hidden}
.transformation-video {
  width:100%;height:100%;object-fit:cover;object-position:center 43%;display:block;
  background-color:#161311;cursor:zoom-in;
}
.transformation-video-label {position:absolute;left:13px;top:13px;pointer-events:none;background:rgba(17,14,12,.83);border:1px solid #99744d;color:#f3ede5;font-size:10px;font-weight:700;letter-spacing:.2em;padding:9px 11px}
.transformation-expand {position:absolute;bottom:12px;right:12px;display:grid;place-items:center;min-width:34px;height:34px;background:rgba(18,15,12,.83);color:#f8eee2;border:1px solid #8d7151;font-size:21px;line-height:1;transition:background .2s}
.transformation-expand:hover {background:#a17b52;color:#1d1814}
.transformation-player-toolbar {display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:12px;min-height:30px}
.transformation-playback-status {color:#a79b8f;font-size:11px;letter-spacing:.035em}
.transformation-player-actions {display:flex;gap:9px;align-items:center;flex-shrink:0}
.transformation-player-actions button {border:0;border-bottom:1px solid #96744d;color:#dbc7ad;background:none;font-size:11px;letter-spacing:.07em;padding:5px 0}
.transformation-player-actions button:hover {color:#fff;border-color:#fff}
.transformation-footer {display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:29px}
.transformation-footer p {margin:0;color:#b0a399;font-family:var(--serif);font-size:23px;font-style:italic}
.transformation-footer .btn {min-height:52px;padding-inline:24px;font-size:11px}
.transformation-video-dialog {width:min(720px,calc(100vw - 28px));max-height:92vh;overflow:auto;background:#161411;padding:16px;border:1px solid #9b754b;color:#f3ede7;box-shadow:0 25px 80px #000c}
.transformation-video-dialog::backdrop {background:rgba(0,0,0,.88);backdrop-filter:blur(5px)}
.transformation-video-dialog-header {display:flex;justify-content:space-between;align-items:center;gap:15px;padding:0 0 12px}
.transformation-video-dialog-header h2 {margin:0;font-family:var(--serif);font-size:clamp(24px,4vw,36px);font-weight:400}
.transformation-video-dialog-header button {border:1px solid #8c6a45;background:none;color:#fff;min-width:40px;height:40px;font-size:26px;line-height:1}
#transformation-expanded-video {display:block;max-width:100%;height:min(72vh,700px);width:auto;margin:0 auto;background:#090806}

/* Full transformation gallery page */
.transformation-gallery-page {background:var(--canvas);min-height:65vh}
.transformation-gallery-intro {padding:86px 0 50px;background:radial-gradient(ellipse at 85% 0,#2c251f,#171513 73%)}
.transformation-gallery-intro .eyebrow {margin-bottom:17px}
.transformation-gallery-intro .display-heading {font-size:clamp(52px,5vw,80px)}
.transformation-gallery-intro p:not(.eyebrow) {max-width:700px;color:#c9bfb4;line-height:1.7;font-size:17px}
.transformation-filters {display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:26px}
.transformation-filter {background:transparent;color:#b9ab9c;border:1px solid #70553b;padding:11px 18px;text-transform:uppercase;letter-spacing:.13em;font-size:11px}
.transformation-filter:hover,.transformation-filter[aria-pressed="true"] {background:#b08a62;color:#191411;border-color:#b08a62}
.transformations-list {padding:0 0 100px}
.transformations-grid {display:grid;gap:26px}
.transformations-empty {padding:55px;text-align:center;color:#c9bcb0}
.transformations-list .transformation-project {grid-template-columns:minmax(200px,.7fr) minmax(0,1.65fr)}
.transformations-list .transformation-video-frame {aspect-ratio:4 / 5}

@media (max-width:1120px) {
  .transformation-project {gap:23px;grid-template-columns:minmax(190px,.7fr) minmax(0,1.6fr);padding:20px}
  .transformation-section-top .display-heading {font-size:48px}
  .transformations-list .transformation-project {grid-template-columns:minmax(180px,.7fr) minmax(0,1.65fr)}
  .transformation-project-title {font-size:36px}
}
@media (max-width:800px) {
  .transformation-showcase {padding:58px 0 62px}
  .transformation-showcase .content-width {padding-inline:22px}
  .transformation-section-top {display:block;margin-bottom:23px}
  .transformation-section-top .display-heading {font-size:clamp(42px,7vw,58px)}
  .transformation-section-top>p {margin-top:19px;max-width:540px;font-size:15px}
  .transformation-project,.transformations-list .transformation-project {display:block;padding:18px}
  .transformation-project-copy {padding:0 0 20px}
  .transformation-project-title {font-size:36px;margin:10px 0}
  .transformation-project-copy>p:not(.eyebrow) {max-width:100%;font-size:14px}
  .transformation-project-meta {margin-top:15px}
  .transformation-pair {gap:10px}
  .transformation-video-frame,.transformations-list .transformation-video-frame {aspect-ratio:9 / 13}
  .transformation-video-label {font-size:9px;left:7px;top:7px;padding:7px 9px}
  .transformation-player-toolbar {flex-wrap:wrap;align-items:center;justify-content:space-between}
  .transformation-footer {align-items:start;flex-direction:column;margin-top:25px}
  .transformation-footer p {font-size:20px}
  .transformation-gallery-intro {padding:55px 0 32px}
  .transformation-gallery-intro .content-width,.transformations-list .content-width {padding-inline:20px}
  .transformation-gallery-intro .display-heading {font-size:52px}
  .transformations-list {padding-bottom:65px}
}
@media (max-width:390px) {
  .transformation-showcase .content-width {padding-inline:13px}
  .transformation-project {padding:12px}
  .transformation-video-frame {aspect-ratio:9 / 14}
  .transformation-expand {right:5px;bottom:5px;min-width:29px;height:29px;font-size:18px}
  .transformation-playback-status {font-size:10px}
  .transformation-player-actions button {font-size:10px}
}

/* Sequential Before -> After player: replaces only the previous paired-video area. */
.transformation-player {min-width:0;max-width:100%;}
.transformation-player-frame {
  position:relative;isolation:isolate;width:100%;height:510px;
  overflow:hidden;border:1px solid #71563b;background:#181411;
}
.transformation-player-frame::before {
  content:"";position:absolute;inset:-22px;z-index:0;
  background-image:linear-gradient(90deg,rgba(24,20,17,.66),rgba(24,20,17,.46)),var(--transformation-before-poster);
  background-size:cover;background-position:center;filter:blur(24px) brightness(.58);
  transform:scale(1.1);
}
.transformation-player-frame.show-after::before {
  background-image:linear-gradient(90deg,rgba(24,20,17,.66),rgba(24,20,17,.46)),var(--transformation-after-poster);
}
.transformation-player-frame .transformation-video {
  position:absolute;inset:0;height:100%;width:100%;display:block;
  object-fit:contain;object-position:center;pointer-events:none;background-color:transparent;
  opacity:0;z-index:1;transition:opacity .35s ease;
}
.transformation-player-frame .transformation-video[data-phase="before"] {opacity:1;z-index:1}
.transformation-player-frame.show-after .transformation-video[data-phase="after"] {opacity:1;z-index:2}
.transformation-player-frame .transformation-video-label {z-index:3;left:20px;top:18px;font-size:11px;letter-spacing:.21em}
.transformation-player-frame .transformation-expand {z-index:3;bottom:16px;right:16px}
.transformation-stage-track {display:grid;grid-template-columns:1fr 32px 1fr;gap:10px;align-items:center;margin-top:14px}
.transformation-stage {border-top:2px solid #65523e;color:#ab9d8c;font-size:10px;font-weight:700;letter-spacing:.18em;text-transform:uppercase;padding-top:10px;transition:color .3s,border-color .3s}
.transformation-stage.is-current {border-color:var(--gold);color:#f0d6b3}
.transformation-stage.is-done {border-color:#b69160;color:#c9af8c}
.transformation-stage-divider {color:var(--gold);text-align:center;font-size:18px}
.transformation-player-toolbar {margin-top:13px}
.transformation-player-actions button {font-size:12px}
/* Keep the enlarged version as the SAME player; video state and final frame persist. */
.transformation-video-dialog {width:min(980px,calc(100vw - 24px));max-height:96vh;overflow:auto}
.transformation-expanded-mount {min-width:0}
.transformation-expanded-mount .transformation-player-frame {height:min(71vh,740px)}
.transformation-expanded-mount .transformation-media {width:100%}
.transformation-expanded-mount .transformation-player-toolbar {padding:0 4px 10px}
@media (max-width:800px) {
  .transformation-player-frame {height:auto;aspect-ratio:4 / 5}
  .transformation-player-frame .transformation-video-label {left:10px;top:10px;font-size:10px}
  .transformation-stage {font-size:10px}
  .transformation-player-toolbar {gap:12px}
  .transformation-player-actions {gap:14px}
  .transformation-expanded-mount .transformation-player-frame {height:min(68vh,640px);aspect-ratio:auto}
}
@media (prefers-reduced-motion:reduce) {
  .transformation-player-frame .transformation-video,
  .transformation-stage {transition:none}
}

/* Mixed-media portfolio additions: scoped to the Transformations page. */
.transformation-collection-heading {display:flex;align-items:end;justify-content:space-between;gap:28px;margin:0 0 26px}
.transformation-collection-heading .eyebrow {margin:0 0 10px}
.transformation-collection-heading h2 {font:400 clamp(36px,3.9vw,56px)/1.05 var(--serif);margin:0;color:#f1e8df}
.transformation-collection-heading>p {margin:0 0 5px;max-width:340px;color:#b7ab9f;font-size:14px;line-height:1.6}
.transformation-gallery-intro {padding-bottom:38px}
.transformations-list {padding:24px 0 58px}
.transformation-photos-section {padding:38px 0 100px;border-top:1px solid #39312a;background:#1b1917}
.transformation-photos-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.transformation-photo-card {min-width:0;border:1px solid #483a2e;background:#25221f;overflow:hidden}
.transformation-photo-open {display:block;position:relative;overflow:hidden;width:100%;padding:0;border:0;background:#15120f;cursor:zoom-in;text-align:left}
.transformation-photo-open img {display:block;width:100%;height:350px;object-fit:cover;object-position:center;transition:transform .35s ease}
.transformation-photo-open:hover img,.transformation-photo-open:focus-visible img {transform:scale(1.035)}
.transformation-photo-zoom {position:absolute;right:13px;bottom:13px;background:#181410d9;border:1px solid #9b7850;padding:8px 11px;color:#f1e8db;letter-spacing:.09em;text-transform:uppercase;font-size:10px}
.transformation-photo-info {padding:18px 20px 21px}
.transformation-photo-info .eyebrow {margin:0 0 9px;font-size:10px}
.transformation-photo-info h3 {font:400 29px/1.1 var(--serif);margin:0;color:#f3eae0}
.transformation-photo-dialog {width:min(1100px,calc(100vw - 26px));max-height:94vh;padding:18px;background:#171411;color:#f4eee7;border:1px solid #94704a;box-shadow:0 28px 100px #000c}
.transformation-photo-dialog::backdrop {background:#000d;backdrop-filter:blur(5px)}
.transformation-photo-dialog-header {display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:16px}
.transformation-photo-dialog-header .eyebrow {margin:0 0 5px}
.transformation-photo-dialog-header h2 {font:400 32px var(--serif);margin:0}
.transformation-photo-dialog-header button {color:#fff;border:1px solid #94704a;background:transparent;font-size:25px;min-width:40px;height:40px;cursor:pointer}
#transformation-photo-expanded {display:block;max-width:100%;max-height:calc(94vh - 116px);width:auto;height:auto;object-fit:contain;margin:auto}
@media (max-width:900px) {.transformation-photos-grid {grid-template-columns:repeat(2,minmax(0,1fr))}.transformation-photo-open img {height:310px}}
@media (max-width:600px) {
 .transformation-collection-heading {display:block;margin-bottom:20px}
 .transformation-collection-heading>p {margin-top:12px;font-size:13px}
 .transformation-photos-section {padding:32px 0 65px}
 .transformation-photos-section .content-width {padding-inline:20px}
 .transformation-photos-grid {grid-template-columns:1fr;gap:18px}
 .transformation-photo-open img {height:360px}
 .transformation-gallery-intro .display-heading {font-size:clamp(41px,9vw,52px)}
}

/* Two-across Before/After video cards on the Transformations page only.
   The homepage's featured player and the photo gallery are unaffected. */
@media (min-width: 1000px) {
  .transformations-list .transformations-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 24px;
  }
  .transformations-list .transformation-project {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 22px;
    gap: 16px;
  }
  .transformations-list .transformation-project-copy {
    align-self: stretch;
    padding: 0;
  }
  .transformations-list .transformation-project-title {
    font-size: clamp(32px, 2.8vw, 42px);
    margin: 8px 0 9px;
    line-height: 1.1;
  }
  .transformations-list .transformation-project-copy > p:not(.eyebrow) {
    font-size: 13px;
    line-height: 1.5;
    max-width: none;
  }
  .transformations-list .transformation-project-meta {
    margin-top: 12px;
    font-size: 10px;
  }
  .transformations-list .transformation-media {
    width: 100%;
    margin-top: auto;
  }
  .transformations-list .transformation-player-frame {
    height: clamp(360px, 31vw, 440px);
  }
  .transformations-list .transformation-player-toolbar {
    flex-wrap: wrap;
    gap: 10px;
  }
}

/* Combined portfolio: videos and photographs in one continuous gallery.
   These overrides apply only to the dedicated Transformations page. */
.transformations-combined {
  background:#1b1917;
  padding:25px 0 90px;
}
.transformations-combined .transformation-collection-heading {margin-bottom:27px}
.transformations-combined .transformation-collection-heading h2 {font-size:clamp(38px,3.5vw,57px)}
.transformations-combined .transformations-grid {margin-bottom:26px}
.transformations-combined .transformation-photos-grid {
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:16px;
  align-items:stretch;
}
.transformations-combined .transformation-photo-card {
  border:1px solid #716049;
  border-radius:5px;
  overflow:hidden;
  background:#191614;
}
.transformations-combined .transformation-photo-open {height:100%;aspect-ratio: 1.28 / 1}
.transformations-combined .transformation-photo-open img {
  width:100%;height:100%;object-fit:cover;object-position:center;
}
.transformations-combined .transformation-photo-zoom {
  padding:4px 8px;bottom:7px;right:7px;font-size:16px;
  opacity:0;transition:opacity .2s ease;
}
.transformations-combined .transformation-photo-open:hover .transformation-photo-zoom,
.transformations-combined .transformation-photo-open:focus-visible .transformation-photo-zoom {opacity:1}
.transformations-combined .transformation-project {border-radius:6px}
@media(max-width:1100px) {
  .transformations-combined .transformation-photos-grid {grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}
}
@media(max-width:700px) {
  .transformations-combined {padding:15px 0 66px}
  .transformations-combined .content-width {padding-inline:20px}
  .transformations-combined .transformation-photos-grid {grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
  .transformations-combined .transformation-collection-heading h2 {font-size:38px}
  .transformations-combined .transformations-grid {margin-bottom:18px}
  .transformations-combined .transformation-photo-open {aspect-ratio:1 / 1}
  .transformations-combined .transformation-photo-zoom {opacity:1;font-size:12px;padding:2px 5px}
}
@media(max-width:390px) {
  .transformations-combined .transformation-photos-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* Bedroom gallery update: compact photo thumbnails above the video transformations.
   Scoped to the combined gallery; all other pages and players are unchanged. */
.transformations-combined .transformation-photos-grid {margin-bottom:26px}
.transformations-combined .transformations-grid {margin-bottom:0}
@media(max-width:700px) {
  .transformations-combined .transformation-photos-grid {margin-bottom:18px}
}
