/* DeckMan Design Center: a split portal. Desktop: two photo panels split by a gold diagonal; the hovered
   side widens (via --split) and the other dims. Phones: the two panels stack, each a full-width link. */
@property --split { syntax: '<percentage>'; inherits: true; initial-value: 50%; }

:root {
  --gold: #c9a45c;
  --gold-hi: #fbe3a1;
  --gold-lo: #c08f36;
  --ink: #0d0d0d;
  --tilt: 6vw;             /* half the horizontal lean of the diagonal */
  --bar: 76px;             /* height of the title bar */
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--ink); color: #fff; }
body { font-family: 'Montserrat', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.stage {
  --split: 50%;
  position: relative; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden;
  transition: --split .75s cubic-bezier(.22, .8, .24, 1);
}
.stage[data-active="outdoor"] { --split: 60%; }
.stage[data-active="designs"] { --split: 40%; }

/* ---------- panels ---------- */
.panel { position: absolute; inset: 0; display: block; color: inherit; text-decoration: none; outline: none; }
.panel.outdoor {
  z-index: 2;
  clip-path: polygon(0 0, calc(var(--split) + var(--tilt)) 0, calc(var(--split) - var(--tilt)) 100%, 0 100%);
}
.panel.designs { z-index: 1; }

.media { position: absolute; inset: 0; overflow: hidden; }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.22, .8, .24, 1), filter .6s; }
/* each photo is sized to the widest its side can get, so the image does not stretch to the full screen */
.outdoor .media { right: auto; width: calc(60% + var(--tilt)); }
.designs .media { left: calc(40% - var(--tilt)); }
.outdoor .media img { object-position: 50% 46%; }
.designs .media { display: grid; grid-template-rows: 56% 44%; }
.designs .media img { min-height: 0; }
.designs .kitchen { object-position: 50% 55%; }
.designs .bath { object-position: 50% 45%; border-top: 2px solid rgb(201 164 92 / .55); }

/* light at the top (so the logos read), dark lower down behind the white text */
.shade { position: absolute; inset: 0; transition: background-color .6s, opacity .6s; }
.outdoor .shade { background: linear-gradient(180deg, rgb(0 0 0 / 0) 0%, rgb(0 0 0 / .15) 30%, rgb(0 0 0 / .55) 62%, rgb(0 0 0 / .78) 100%); }
.designs .shade { background: linear-gradient(180deg, rgb(255 255 255 / .05) 0%, rgb(0 0 0 / .18) 30%, rgb(0 0 0 / .6) 60%, rgb(0 0 0 / .82) 100%); }

/* content sits in the middle of its own side of the diagonal */
.content {
  position: absolute; top: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: calc(var(--bar) + clamp(18px, 4vh, 44px)) 24px clamp(80px, 12vh, 120px);
  transition: opacity .6s, transform .6s;
}
.outdoor .content { left: 0; width: calc(var(--split) - var(--tilt) * .6); }
.designs .content { left: calc(var(--split) + var(--tilt) * .6); right: 0; }

.logo { height: auto; filter: drop-shadow(0 4px 18px rgb(0 0 0 / .35)); }
/* the logos have black lettering, so they sit on a light frosted plate to stay readable on any photo */
.logo { background: rgb(255 251 244 / .86); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border-radius: 14px;
  box-shadow: 0 10px 30px rgb(0 0 0 / .35), inset 0 0 0 1px rgb(201 164 92 / .55); filter: none; }
.logo-outdoor { width: min(330px, 74%); padding: 12px 18px; }
.logo-designs { width: min(200px, 46%); padding: 12px 16px; }

.title {
  margin-top: auto; display: flex; flex-direction: column; line-height: .95;
  font-weight: 900; font-size: clamp(42px, 5.2vw, 88px); letter-spacing: .01em; text-transform: uppercase;
  text-shadow: 0 4px 24px rgb(0 0 0 / .55);
}
.title.gold span {
  background: linear-gradient(180deg, var(--gold-hi) 0%, var(--gold) 55%, var(--gold-lo) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 1px rgb(255 236 190 / .35); text-shadow: none; filter: drop-shadow(0 4px 18px rgb(0 0 0 / .6));
}
.sub { margin-top: 14px; font-weight: 500; font-size: clamp(16px, 1.35vw, 21px); letter-spacing: .02em; text-shadow: 0 2px 10px rgb(0 0 0 / .7); }
.btn {
  margin-top: 26px; display: inline-flex; align-items: center; gap: 10px; padding: 15px 30px; border-radius: 4px;
  background: linear-gradient(180deg, #d9b76d, #b58c3f); color: #161208; font-weight: 800; font-size: 15px; letter-spacing: .16em; text-transform: uppercase;
  box-shadow: 0 10px 28px rgb(0 0 0 / .45), inset 0 1px 0 rgb(255 255 255 / .4);
  transition: transform .3s, box-shadow .3s, background .3s;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; transition: transform .3s; }

/* the gold diagonal between the two sides */
.divider {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold), var(--gold-lo));
  clip-path: polygon(calc(var(--split) + var(--tilt) - 2px) 0, calc(var(--split) + var(--tilt) + 2px) 0,
                     calc(var(--split) - var(--tilt) + 2px) 100%, calc(var(--split) - var(--tilt) - 2px) 100%);
  filter: drop-shadow(0 0 10px rgb(201 164 92 / .8));
}

/* ---------- interaction: the active side widens, the other dims ---------- */
.stage[data-active] .panel .media img { transform: scale(1.0); }
.stage[data-active="outdoor"] .outdoor .media img,
.stage[data-active="designs"] .designs .media img { transform: scale(1.05); }
.stage[data-active="outdoor"] .designs .shade,
.stage[data-active="designs"] .outdoor .shade { background-color: rgb(0 0 0 / .58); }
.stage[data-active="outdoor"] .designs .media img,
.stage[data-active="designs"] .outdoor .media img { filter: saturate(.75) brightness(.88); }
.stage[data-active="outdoor"] .designs .content,
.stage[data-active="designs"] .outdoor .content { opacity: .38; transform: scale(.96); }
.stage[data-active="outdoor"] .outdoor .btn,
.stage[data-active="designs"] .designs .btn { transform: translateY(-2px); background: linear-gradient(180deg, #ecc97b, #c49a48); box-shadow: 0 14px 34px rgb(0 0 0 / .55), 0 0 0 3px rgb(243 213 138 / .35); }
.stage[data-active="outdoor"] .outdoor .btn svg,
.stage[data-active="designs"] .designs .btn svg { transform: translateX(4px); }
.panel:focus-visible .btn { outline: 3px solid #fff; outline-offset: 4px; }

/* ---------- title bar ---------- */
.topbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5; height: var(--bar);
  display: flex; align-items: center; justify-content: center; padding: 0 24px;
  background: linear-gradient(180deg, rgb(10 10 10 / .82), rgb(10 10 10 / .55) 70%, rgb(10 10 10 / 0));
}
.brand {
  margin: 0; display: flex; align-items: center; gap: 16px; color: var(--gold-hi);
  font-weight: 800; font-size: clamp(15px, 1.5vw, 22px); letter-spacing: .32em; text-transform: uppercase;
  text-shadow: 0 2px 12px rgb(0 0 0 / .6);
}
.brand-line { width: clamp(24px, 4vw, 64px); height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.brand-line:last-child { background: linear-gradient(90deg, var(--gold), transparent); }
.about-btn {
  position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
  padding: 10px 20px; border: 1px solid var(--gold); border-radius: 4px; background: rgb(0 0 0 / .35); color: #fff; cursor: pointer;
  font: 700 13px/1 'Montserrat', sans-serif; letter-spacing: .18em; text-transform: uppercase; transition: background .25s, color .25s;
}
.about-btn:hover, .about-btn:focus-visible { background: linear-gradient(180deg, #d9b76d, #b58c3f); color: #161208; outline: none; }

/* ---------- About dialog ---------- */
.about {
  width: min(640px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 36px 32px 30px; border: 0; border-top: 4px solid var(--gold);
  border-radius: 14px; background: #121212; color: #f2ede4; box-shadow: 0 30px 80px rgb(0 0 0 / .6);
  font-family: 'Montserrat', system-ui, sans-serif;
}
.about::backdrop { background: rgb(0 0 0 / .65); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.about[open] { animation: about-in .35s cubic-bezier(.22, .8, .24, 1); }
@keyframes about-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.about-close-form { position: absolute; top: 10px; right: 12px; margin: 0; }
.about-close { width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.about-close:hover, .about-close:focus-visible { background: rgb(255 255 255 / .1); outline: none; }
.about-eyebrow { margin: 0 0 6px; color: var(--gold); font-weight: 700; font-size: 12px; letter-spacing: .28em; text-transform: uppercase; }
.about h2 { margin: 0 0 12px; font-weight: 800; font-size: clamp(24px, 3vw, 32px); text-transform: uppercase; color: var(--gold-hi); }
.about p { margin: 0 0 20px; line-height: 1.6; font-size: 16px; }
.about-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.about-card {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 14px; border-radius: 10px; text-align: center;
  background: rgb(255 255 255 / .04); border: 1px solid rgb(201 164 92 / .35); color: inherit; text-decoration: none; transition: border-color .25s, background .25s, transform .25s;
}
.about-card:hover, .about-card:focus-visible { border-color: var(--gold); background: rgb(201 164 92 / .1); transform: translateY(-2px); outline: none; }
.about-card img { height: 54px; width: auto; margin-bottom: 6px; padding: 6px 10px; border-radius: 8px; background: rgb(255 251 244 / .9); }
.about-card strong { font-size: 16px; text-transform: uppercase; letter-spacing: .04em; }
.about-card span { font-size: 14px; opacity: .8; }
.about-card em { margin-top: 4px; font-style: normal; font-size: 13px; color: var(--gold-hi); }

/* ---------- bottom strip ---------- */
.strip {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; display: flex; justify-content: center; align-items: center; gap: 14px;
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgb(13 13 13 / 0), rgb(13 13 13 / .85) 45%);
  font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: rgb(255 255 255 / .8); pointer-events: none;
}
.strip-hint::before, .strip-hint::after { content: ""; display: inline-block; width: 28px; height: 1px; margin: 0 14px 4px; background: var(--gold); vertical-align: middle; }

/* ---------- phones and small tablets: stacked ---------- */
@media (max-width: 820px) {
  .stage { height: auto; min-height: 100svh; display: flex; flex-direction: column; }
  .panel { position: relative; inset: auto; flex: 1 1 50%; min-height: 50svh; }
  .outdoor .media, .designs .media { left: 0; right: 0; width: auto; }
  .panel.outdoor { order: 1; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), 0 100%); margin-bottom: -28px; }
  .panel.designs { order: 2; }
  .divider { display: none; }
  .outdoor .content, .designs .content { left: 0; right: 0; width: auto; padding: 24px 20px 44px; }
  .designs .content { padding-top: 48px; }
  .title { font-size: clamp(34px, 10vw, 54px); }
  .btn { padding: 13px 26px; font-size: 14px; }
  .logo-outdoor { width: min(280px, 76%); }
  .logo-designs { width: min(150px, 42%); }
  .topbar { position: relative; order: 0; height: auto; min-height: 60px; padding: 12px 104px 12px 16px; justify-content: flex-start; background: var(--ink); border-bottom: 1px solid rgb(201 164 92 / .4); }
  .brand { font-size: 13px; letter-spacing: .2em; gap: 0; }
  .brand-line { display: none; }
  .about-btn { right: 12px; padding: 9px 14px; font-size: 12px; }
  .outdoor .content { padding-top: 24px; }
  .strip { display: none; }
  .about { padding: 30px 20px 22px; }
  .about-cards { grid-template-columns: 1fr; }
  .stage[data-active] .content { opacity: 1 !important; transform: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .stage, .media img, .content, .btn, .btn svg, .shade { transition: none !important; }
}

/* ---------- hover glow: the active side lights up with a soft gold glow ---------- */
.panel::after {                     /* warm glow inside the panel's edges */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0;
  box-shadow: inset 0 0 0 3px rgb(243 213 138 / .85), inset 0 0 24px 4px rgb(243 213 138 / .55), inset 0 0 160px 40px rgb(243 213 138 / .32);
  transition: opacity .6s;
}
.content::before {                  /* halo behind the title and button */
  content: ""; position: absolute; left: 6%; right: 6%; top: 34%; bottom: 4%; z-index: -1; pointer-events: none; opacity: 0;
  background: radial-gradient(closest-side, rgb(243 213 138 / .36), rgb(243 213 138 / .12) 60%, rgb(243 213 138 / 0));
  transition: opacity .6s;
}
.content { z-index: 2; isolation: isolate; }
.stage[data-active="outdoor"] .outdoor::after,
.stage[data-active="designs"] .designs::after,
.stage[data-active="outdoor"] .outdoor .content::before,
.stage[data-active="designs"] .designs .content::before { opacity: 1; animation: dm-glow 3.2s ease-in-out infinite; }
@keyframes dm-glow { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
.stage[data-active="outdoor"] .outdoor .title { text-shadow: 0 4px 24px rgb(0 0 0 / .55), 0 0 28px rgb(243 213 138 / .45); }
.stage[data-active="designs"] .designs .title.gold span { filter: drop-shadow(0 4px 18px rgb(0 0 0 / .6)) drop-shadow(0 0 16px rgb(243 213 138 / .55)); }
.divider { transition: filter .6s; }
.stage[data-active="outdoor"] .divider,
.stage[data-active="designs"] .divider { filter: drop-shadow(0 0 14px rgb(243 213 138 / 1)) drop-shadow(0 0 28px rgb(201 164 92 / .8)); }
@media (max-width: 820px) {
  .panel::after, .content::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .stage[data-active] .panel::after, .stage[data-active] .content::before { animation: none !important; }
}
