/* ==========================================================================
   LUX CORP — luxcorp.pl
   Builds on lux.css (the it.luxcorp.pl design system: ivory & ink, champagne gold,
   Instrument Serif). This file adds the real-estate pieces: arched hero photo,
   the two-division "doors", property cards, gallery, lightbox and key facts.
   ========================================================================== */

/* Dark "jewel" surfaces that are new on this site reuse the ink variables */
.door--ink, .lightbox, .skup-band {
  --bg: var(--noir);
  --fg: #e9e5da;
  --fg-strong: #fbf9f4;
  --fg-muted: #a7a194;
  --accent: var(--gold-soft);
  --line: rgba(255, 252, 240, .12);
  --line-strong: rgba(255, 252, 240, .28);
  --card: var(--noir-2);
  --p-bg: #faf8f3;
  --p-fg: #15140f;
  --p-hover: var(--gold-soft);
}

/* ---------- Preview / draft notes ---------- */
.preview-bar { position: fixed; left: 16px; bottom: 16px; z-index: 250; max-width: calc(100vw - 32px); padding: 9px 16px; border-radius: 999px; background: var(--noir); color: #e9e5da; font-size: .74rem; letter-spacing: .02em; box-shadow: var(--shadow-lg); }
.preview-bar a { color: var(--gold-soft); text-decoration: underline; text-underline-offset: 3px; margin-left: 6px; }
.draft-bar { position: relative; z-index: 120; margin-top: var(--nav-h); padding: 12px var(--gutter); background: #f5e7c4; color: #4a3b17; font-size: .88rem; text-align: center; }
.draft-bar + .page-hero { padding-top: clamp(48px, 6vw, 80px); }
.draft-bar a { font-weight: 600; text-decoration: underline; }

/* ---------- Hero with arched photo ---------- */
.hero--estate { min-height: auto; padding-top: calc(var(--nav-h) + clamp(40px, 6vw, 88px)); }
.estate-hero { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(40px, 6vw, 96px); align-items: center; padding-bottom: clamp(56px, 7vw, 96px); }
.hero--estate h1 { font-size: clamp(2.7rem, 5.4vw, 5.4rem); max-width: 11em; }
.hero--estate .lead { max-width: 31em; }

.arch { position: relative; justify-self: end; width: min(100%, 480px); margin: 0; animation: rise 1.2s var(--ease) both .15s; }
.arch::before { content: ""; position: absolute; inset: -14px; border: 1px solid rgba(179, 146, 90, .55); border-radius: 999px 999px 10px 10px; pointer-events: none; }
.arch::after { content: ""; position: absolute; inset: -28px; border: 1px solid rgba(179, 146, 90, .18); border-radius: 999px 999px 14px 14px; pointer-events: none; }
.arch__frame { position: relative; aspect-ratio: 3 / 4; border-radius: 999px 999px 4px 4px; overflow: hidden; background: var(--stone); box-shadow: var(--shadow-lg); }
.arch__frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); animation: arch-in 2.4s var(--ease) both .2s; }
.arch__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(21, 20, 15, .28)); pointer-events: none; }
@keyframes arch-in { from { transform: scale(1.14); filter: saturate(.6); } }
.arch__tag { position: absolute; left: clamp(-36px, -3vw, -12px); bottom: 48px; z-index: 2; padding: 14px 20px 15px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); font-size: .86rem; line-height: 1.4; color: var(--fg-strong); }
.arch__tag span { display: block; margin-bottom: 4px; font-size: .62rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-ink); }
.arch__seal { position: absolute; top: 14%; right: clamp(-34px, -2.6vw, -14px); z-index: 2; width: 92px; height: 92px; display: grid; place-items: center; border-radius: 50%; background: var(--noir); box-shadow: var(--shadow-lg); }
.arch__seal::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: repeating-conic-gradient(rgba(216, 195, 155, .7) 0deg .6deg, transparent .6deg 6deg); -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 7px), #000 calc(100% - 7px)); mask: radial-gradient(closest-side, transparent calc(100% - 7px), #000 calc(100% - 7px)); animation: spin 90s linear infinite; }
.arch__seal img { width: 64px; height: 64px; border-radius: 50%; }
@media (max-width: 960px) {
  .estate-hero { grid-template-columns: 1fr; }
  .arch { justify-self: center; width: min(86%, 400px); margin-top: 12px; }
}
@media (max-width: 480px) { .arch__tag { left: -6px; bottom: 28px; } .arch__seal { width: 76px; height: 76px; right: -8px; } .arch__seal img { width: 40px; height: 40px; } }

/* ---------- Two divisions ---------- */
.doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.door { position: relative; display: flex; flex-direction: column; padding: clamp(32px, 4vw, 56px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--fg); box-shadow: var(--shadow); isolation: isolate; overflow: hidden; transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease); }
.door--ink { border-color: rgba(216, 195, 155, .45); background: radial-gradient(70% 90% at 100% 0%, rgba(216, 195, 155, .14), transparent 70%), var(--noir); box-shadow: var(--shadow-lg); }
.door--ink::before { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(216, 195, 155, .2); border-radius: 3px; pointer-events: none; }
a.door:hover { transform: translateY(-4px); border-color: rgba(179, 146, 90, .55); box-shadow: var(--shadow-lg); }
.door__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 36px; }
.door__icon { order: -1; width: 34px; height: 34px; color: var(--accent); }
.door__num { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--accent); }
.door .eyebrow { margin-bottom: 18px; }
.door h3 { font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.04; }
.door > p { margin-top: 16px; color: var(--fg-muted); max-width: 32em; }
.door ul { list-style: none; padding: 0; margin-top: 26px; border-top: 1px solid var(--line); }
.door li { display: flex; gap: 14px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .95rem; color: var(--fg-strong); }
.door li::before { content: ""; width: 10px; height: 1px; background: var(--gold); transform: translateY(-4px); flex: none; }
.door__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; margin-top: auto; padding-top: 34px; }
a.door .link-arrow { margin-top: auto; padding-top: 28px; }
@media (max-width: 860px) { .doors { grid-template-columns: 1fr; } }

/* ---------- Property cards ---------- */
.props { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.prop-card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ivory); color: var(--fg); box-shadow: var(--shadow); overflow: hidden; transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease); }
.on-ink .prop-card, .on-paper .prop-card { background: var(--white); }
.prop-card:hover { transform: translateY(-4px); border-color: rgba(179, 146, 90, .5); box-shadow: var(--shadow-lg); }
.js .prop-card[data-reveal] { transition: opacity .9s var(--ease), transform .6s var(--ease), border-color .45s var(--ease), box-shadow .45s var(--ease); }
.js .prop-card[data-reveal].is-in:hover { transform: translateY(-4px); }
.prop-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--stone); }
.prop-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s var(--ease); }
.prop-card:hover .prop-card__media img { transform: scale(1.05); }
.prop-card__media--plan { background: #fff; border-bottom: 1px solid var(--line); }
.prop-card__media--plan img { object-fit: contain; padding: 14px 14px 10px; }
.prop-card:hover .prop-card__media--plan img { transform: scale(1.02); }
.prop-card__placeholder { position: absolute; inset: 0; background: url(../img/skyline.svg) center / 42% no-repeat, radial-gradient(60% 60% at 50% 40%, rgba(234, 220, 191, .7), transparent 70%), var(--stone); opacity: .7; }
.prop-card--closed .prop-card__media img { filter: saturate(.55) brightness(.97); }
.prop-card--closed:hover .prop-card__media img { filter: none; }
.prop-card .badge { position: absolute; top: 16px; left: 16px; }
.prop-card__body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 22px; }
.prop-card__loc { display: flex; align-items: center; gap: 7px; font-size: .78rem; color: var(--fg-muted); }
.prop-card__loc .i { width: 14px; height: 14px; color: var(--gold-ink); }
.prop-card h3 { margin-top: 10px; font-size: 1.6rem; line-height: 1.1; }
.prop-card__facts { display: flex; flex-wrap: wrap; gap: 4px 0; list-style: none; padding: 0; margin-top: 14px; font-size: .84rem; color: var(--fg-muted); }
.prop-card__facts li + li::before { content: "·"; margin: 0 9px; color: var(--gold); }
.prop-card__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.prop-card__facts + .prop-card__foot, .prop-card h3 + .prop-card__foot { margin-top: 20px; }
.prop-card__price { font-family: var(--serif); font-size: 1.45rem; line-height: 1.1; color: var(--fg-strong); }
.prop-card--closed .prop-card__price { font-family: var(--sans); font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-muted); }
@media (max-width: 1000px) { .props { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .props { grid-template-columns: 1fr; } }

/* Status badges */
.badge { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px 7px 11px; border-radius: 999px; font-size: .62rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; line-height: 1; white-space: nowrap; background: rgba(250, 248, 243, .94); color: var(--fg-strong); box-shadow: 0 2px 10px -4px rgba(21, 20, 15, .35); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .55; }
.badge--dostepne { background: var(--noir); color: var(--gold-soft); }
.badge--dostepne::before { background: #8fd19e; opacity: 1; box-shadow: 0 0 0 3px rgba(143, 209, 158, .25); }
.badge--zarezerwowane { background: #f5e7c4; color: #5a4614; }
.badge--w-przygotowaniu { background: var(--stone); color: var(--gold-ink); }
.badge--wynajete, .badge--sprzedane { color: var(--fg-muted); }

/* List headings */
.list-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 24px; margin-bottom: 32px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.list-head--past { margin-top: clamp(72px, 9vw, 120px); }
.list-head__count { font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }

.notice { display: flex; gap: clamp(20px, 3vw, 40px); align-items: flex-start; padding: clamp(28px, 4vw, 48px); border: 1px solid var(--line); border-left: 2px solid var(--gold); border-radius: var(--radius-sm); background: var(--ivory); }
.notice__icon { width: 40px; height: 40px; color: var(--gold-ink); flex: none; }
.notice h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
.notice p { margin-top: 12px; color: var(--fg-muted); max-width: 40em; }
.notice .hero__cta { margin-top: 28px; }
@media (max-width: 600px) { .notice { flex-direction: column; } }

/* Filter chips as links */
a.chip { text-decoration: none; }
.chip[aria-current="page"] { background: var(--noir); color: var(--ivory); border-color: var(--noir); }

/* ---------- Skup band ---------- */
.skup { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(40px, 7vw, 112px); align-items: center; }
.skup__lead { margin-top: 24px; color: var(--fg-muted); max-width: 34em; }
.skup__list { list-style: none; padding: 0; border-top: 1px solid var(--line-strong); }
.skup__list li { display: flex; align-items: baseline; gap: 22px; padding: 20px 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.1; color: var(--fg-strong); }
.skup__list span { font-style: italic; font-size: 1rem; color: var(--accent); min-width: 1.8em; }
@media (max-width: 900px) { .skup { grid-template-columns: 1fr; } }

/* ---------- Service grid variants ---------- */
a.service { color: var(--fg); }
.services--links .service .link-arrow { margin-top: auto; padding-top: 22px; font-size: .7rem; }
.services--links .service p { margin-bottom: 4px; }
.services--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.services--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1200px) { .services--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .services--3, .services--5 { grid-template-columns: 1fr; } }
.it-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; margin-top: 40px; padding: 28px 32px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); }
.it-cta p { color: var(--fg-muted); }

/* Reading list (IT page) */
.reads { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; border-top: 1px solid var(--line-strong); }
.reads a { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.2; color: var(--fg-strong); transition: color .25s var(--ease); }
.reads a:hover { color: var(--accent); }
.reads .i { width: 20px; height: 20px; color: var(--gold); flex: none; transition: transform .35s var(--ease); }
.reads a:hover .i { transform: translate(3px, -3px); }
@media (max-width: 760px) { .reads { grid-template-columns: 1fr; } }

/* ---------- Property page ---------- */
.page-hero--prop { padding-bottom: clamp(32px, 4vw, 48px); border-bottom: 0; }
.page-hero--prop::after { opacity: .08; }
.page-hero--prop h1 { max-width: 18em; }
.prop-status { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 20px; font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.prop-loc { display: flex; align-items: center; gap: 9px; margin-top: 18px; font-size: 1.05rem; color: var(--fg-muted); }
.prop-loc .i { color: var(--gold-ink); }

.gallery-wrap { position: relative; background: var(--ivory); padding-bottom: clamp(40px, 5vw, 64px); }
.gallery { display: grid; gap: 10px; height: clamp(320px, 50vw, 620px); grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.gallery__item { position: relative; display: block; overflow: hidden; border-radius: var(--radius-sm); background: var(--stone); cursor: zoom-in; }
.gallery__item[hidden] { display: none; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item--main { grid-row: span 2; }
.gallery--n1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.gallery--n1 .gallery__item--main { grid-row: auto; }
.gallery--n2 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
.gallery--n2 .gallery__item--main { grid-row: auto; }
.gallery--n3 { grid-template-columns: 2fr 1fr; }
.gallery--n4 .gallery__item:nth-child(4) { grid-column: span 2; }
.gallery__more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(21, 20, 15, .5); color: #fff; font-family: var(--serif); font-size: 1.6rem; }
.gallery__open { position: absolute; right: calc(var(--gutter) + 16px); bottom: calc(clamp(40px, 5vw, 64px) + 16px); background: rgba(250, 248, 243, .92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
@media (min-width: 1321px) { .gallery__open { right: calc((100vw - var(--container)) / 2 + 16px); } }
@media (max-width: 760px) {
  .gallery, .gallery--n1, .gallery--n2, .gallery--n3 { display: flex; height: auto; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery__item { flex: 0 0 86%; aspect-ratio: 4 / 3; scroll-snap-align: center; }
  .gallery--n1 .gallery__item { flex-basis: 100%; }
  .gallery__item[hidden] { display: block; }
  .gallery__more { display: none; }
  .gallery__open { position: static; margin-top: 14px; }
}

.prop-body { padding-top: clamp(24px, 3vw, 40px); }
.keyfacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); margin-bottom: clamp(40px, 5vw, 64px); }
.keyfacts > div { padding: 22px 20px 24px 0; }
.keyfacts dt { display: flex; align-items: center; gap: 8px; font-size: .64rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--fg-muted); }
.keyfacts dt .i { width: 15px; height: 15px; color: var(--gold-ink); }
.keyfacts dd { margin-top: 8px; font-family: var(--serif); font-size: clamp(1.5rem, 2.2vw, 1.9rem); line-height: 1.1; color: var(--fg-strong); }
.prose .prose__lead { font-family: var(--serif); font-size: clamp(1.45rem, 2.2vw, 1.8rem); line-height: 1.3; color: var(--fg-strong); }
.prose .ticks--cols { columns: 2; column-gap: 40px; }
.prose .ticks--cols li { break-inside: avoid; margin: 0 0 .55em; }
@media (max-width: 600px) { .prose .ticks--cols { columns: 1; } }
.prose table.details { min-width: 0; }
.prose table.details th { width: 42%; text-transform: none; letter-spacing: 0; font-size: .92rem; font-weight: 500; color: var(--fg-muted); background: transparent; border-bottom: 0; border-top: 1px solid var(--line); padding: 13px 16px; }
.prose table.details tr:first-child th, .prose table.details tr:first-child td { border-top: 0; }
.prose table.details td { color: var(--fg-strong); }
.prose table.details tr:nth-child(even) td, .prose table.details tr:nth-child(even) th { background: #fcfbf8; }
.plans { display: grid; gap: 16px; }
.plan-img { display: block; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; padding: 12px; cursor: zoom-in; }
.plan-img img { width: 100%; }

.prop-aside .eyebrow { margin-bottom: 14px; }
.aside-card .prop-aside__price { margin-top: 0; font-family: var(--serif); font-size: clamp(2.2rem, 3vw, 2.8rem); line-height: 1; color: var(--fg-strong); }
.aside-card .prop-aside__note { margin-top: 10px; font-size: .85rem; }
.prop-aside h3 { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); }
.prop-aside__price + h3, .prop-aside__note + h3 { margin-top: 26px; }
.prop-aside .eyebrow + h3 { margin-top: 0; padding-top: 0; border-top: 0; }
.prop-aside .btn + .btn { margin-top: 10px; }
.aside-card .prop-aside__perk { display: flex; gap: 10px; align-items: flex-start; margin-top: 20px; font-size: .86rem; line-height: 1.5; }
.prop-aside__perk .i { width: 16px; height: 16px; margin-top: 3px; color: var(--accent); }
.prop-aside__perk b { color: var(--fg-strong); font-weight: 600; }

/* ---------- Forms ---------- */
.field--select select { width: 100%; appearance: none; -webkit-appearance: none; background: transparent; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0; padding: 26px 28px 12px 0; font-size: 1rem; color: var(--fg-strong); cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 12px) 60%, calc(100% - 7px) 60%; background-size: 5px 5px; background-repeat: no-repeat; }
.field--select select:focus { outline: none; border-bottom-color: var(--gold); }
.field--select label { transform: translateY(-20px) scale(.75); color: var(--accent); }
.form__ref { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-left: 2px solid var(--gold); border-radius: var(--radius-sm); background: var(--ivory); font-size: .9rem; color: var(--fg-muted); }
.form__ref .i { color: var(--gold-ink); margin-top: 3px; }
.form__ref b { color: var(--fg-strong); font-weight: 600; }
.form__note a { text-decoration: underline; text-underline-offset: 3px; }
.form-error { margin-top: 20px; padding: 14px 16px; border-radius: var(--radius-sm); background: #fbeceb; border: 1px solid #efc7c3; color: #7d2620; font-size: .92rem; }
.form-done { text-align: center; padding: 24px 0; }
.form-done__icon { width: 56px; height: 56px; margin: 0 auto 22px; padding: 14px; border: 1px solid rgba(179, 146, 90, .5); border-radius: 50%; color: var(--gold-ink); }
.form-done p { margin: 14px auto 26px; color: var(--fg-muted); max-width: 26em; }
.form-done a:not(.btn) { color: var(--fg-strong); text-decoration: underline; }
.contact__lead a { color: var(--fg-strong); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }

/* Address band (contact page) */
.map-band { background: var(--stone); border-top: 1px solid var(--line); }
.map-band__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding-block: clamp(40px, 5vw, 64px); }
.map-band__addr { margin: 14px 0 6px; font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.1; color: var(--fg-strong); }

/* Social links */
.social { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin-top: 26px; }
.footer .social { display: flex; gap: 10px; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--fg); opacity: 1 !important; transition: border-color .25s, color .25s; }
.social a:hover { border-color: var(--gold-soft); color: var(--gold-soft); }
.social .i { width: 17px; height: 17px; }
.social--light { margin-top: 32px; }
.social--light a { width: auto; height: auto; display: inline-flex; gap: 8px; padding: 9px 16px; border-radius: 999px; font-size: .82rem; color: var(--fg-strong); }
.social--light a:hover { border-color: var(--gold); color: var(--gold-ink); }

/* ---------- About ---------- */
.timeline { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); list-style: none; padding: 0; margin-top: clamp(72px, 9vw, 120px); border-top: 1px solid var(--line-strong); }
.timeline li { position: relative; padding: 30px 22px 0 0; }
.timeline li + li { padding-left: 22px; border-left: 1px solid var(--line); }
.timeline li::before { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; transform: rotate(45deg); background: var(--gold); }
.timeline li + li::before { left: -4px; }
.timeline b { display: block; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(2rem, 3vw, 2.6rem); line-height: 1; color: var(--accent); }
.timeline h3 { margin-top: 14px; font-size: 1.35rem; }
.timeline p { margin-top: 6px; font-size: .88rem; color: var(--fg-muted); }
@media (max-width: 960px) {
  .timeline { grid-auto-flow: row; grid-template-columns: 1fr; border-top: 0; border-left: 1px solid var(--line-strong); }
  .timeline li, .timeline li + li { padding: 0 0 28px 28px; border-left: 0; }
  .timeline li::before, .timeline li + li::before { top: 10px; left: -4px; }
}

.certs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); align-items: start; }
.certs--teaser { max-width: 820px; }
.cert { display: block; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; padding: 10px; box-shadow: var(--shadow); cursor: zoom-in; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.cert:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: var(--shadow-lg); }
.cert-card { margin: 0; }
.cert-card figcaption { margin-top: 20px; font-size: .92rem; color: var(--fg-muted); }
.cert-card figcaption b { display: block; margin-bottom: 6px; font-family: var(--serif); font-weight: 400; font-size: 1.6rem; color: var(--fg-strong); }
@media (max-width: 700px) { .certs { grid-template-columns: 1fr; } }

.company--wide { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: clamp(48px, 6vw, 72px); padding-top: 28px; border-top: 1px solid var(--line); }
@media (max-width: 860px) { .company--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 400; display: grid; grid-template-columns: 72px minmax(0, 1fr) 72px; align-items: center; background: rgba(12, 11, 8, .95); color: var(--fg); animation: fade .3s var(--ease); }
.lightbox[hidden] { display: none; }
.lightbox__stage { margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100vh; height: 100dvh; padding: 56px 0 40px; }
.lightbox__stage img { max-width: 100%; max-height: calc(100dvh - 120px); object-fit: contain; border-radius: 2px; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8); }
.lightbox__stage figcaption { margin-top: 14px; font-size: .74rem; letter-spacing: .2em; color: var(--fg-muted); }
.lightbox button { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(21, 20, 15, .6); color: var(--fg-strong); cursor: pointer; transition: border-color .25s, color .25s; }
.lightbox button:hover { border-color: var(--gold-soft); color: var(--gold-soft); }
.lightbox__nav { justify-self: center; }
.lightbox__close { position: absolute; top: 16px; right: 16px; z-index: 2; }
.lightbox.is-single .lightbox__nav { visibility: hidden; }
@media (max-width: 640px) {
  .lightbox { grid-template-columns: 1fr; }
  .lightbox__stage { padding: 64px 8px 88px; }
  .lightbox__nav { position: absolute; bottom: 24px; }
  .lightbox__nav--prev { left: calc(50% - 64px); }
  .lightbox__nav--next { right: calc(50% - 64px); }
}

/* ---------- Brand: the LuxCorp logo (the gold lion belongs to IT Division only) ---------- */
.brand--logo img, .footer .brand--logo img { width: auto; height: 58px; border-radius: 0; box-shadow: none; }
.footer .brand--logo img { height: 64px; }
@media (max-width: 480px) { .brand--logo img { height: 48px; } }
/* Sub-page watermark: line-art skyline from the LuxCorp emblem instead of the IT lion (lux.css) */
.page-hero::after { background-image: url(../img/skyline.svg); opacity: .13; }
@keyframes lion-float { to { transform: translateY(-47%) rotate(-1.2deg) scale(1.03); opacity: .17; } }
.page-hero--prop::after { opacity: .07; }

/* ---------- Misc ---------- */
.notfound .container { padding-top: var(--nav-h); }
