/* ============================================================
   SRS Bidness — Art-Deco Portfolio
   ============================================================ */

:root {
  --gold: #d4af37;
  --gold-soft: #e7c968;
  --gold-deep: #a67c1f;
  --ink: #12121a;
  --ink-2: #1b1b24;
  --ink-3: #24242f;
  --cream: #f4ecd8;
  --cream-dim: #cfc7b4;
  --shadow: rgba(0, 0, 0, 0.55);

  --font-display: "Cinzel", "Times New Roman", serif;
  --font-deco: "Poiret One", "Century Gothic", sans-serif;
  --font-body: "Poppins", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

/* ---------- Decorative backdrop ---------- */
.deco-backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 50% -10%, rgba(212, 175, 55, 0.14), transparent 45%),
    repeating-linear-gradient(
      45deg,
      rgba(212, 175, 55, 0.03) 0px,
      rgba(212, 175, 55, 0.03) 2px,
      transparent 2px,
      transparent 26px
    ),
    repeating-linear-gradient(
      -45deg,
      rgba(212, 175, 55, 0.03) 0px,
      rgba(212, 175, 55, 0.03) 2px,
      transparent 2px,
      transparent 26px
    ),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
}

/* ---------- Hero ---------- */
.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(3rem, 8vw, 7rem) 1.5rem clamp(2.5rem, 6vw, 5rem);
}

.hero__frame {
  position: relative;
  text-align: center;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 6vw, 5rem);
  border: 2px solid var(--gold);
  outline: 1px solid var(--gold);
  outline-offset: 8px;
  background: rgba(18, 18, 26, 0.6);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.6), inset 0 0 30px rgba(212, 175, 55, 0.06);
}

.hero__eyebrow {
  font-family: var(--font-deco);
  letter-spacing: 0.5em;
  text-transform: uppercase;
  font-size: clamp(0.6rem, 1.6vw, 0.85rem);
  color: var(--gold-soft);
  margin: 0 0 1rem;
  padding-left: 0.5em;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 11vw, 6.5rem);
  letter-spacing: 0.06em;
  line-height: 1;
  margin: 0;
  color: var(--cream);
  text-shadow: 0 2px 0 var(--gold-deep), 0 4px 18px rgba(0, 0, 0, 0.6);
  background: linear-gradient(180deg, #fff7e2 0%, var(--gold) 55%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__subtitle {
  font-family: var(--font-deco);
  font-size: clamp(0.85rem, 2.6vw, 1.25rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cream-dim);
  margin: 1.2rem 0 0;
}

/* Sunburst / chevron flourishes */
.hero__flourish {
  display: block;
  height: 14px;
  margin: 0 auto;
  width: min(60%, 260px);
}

.hero__flourish--top {
  margin-bottom: 1.4rem;
  background:
    linear-gradient(90deg, transparent, var(--gold) 50%, transparent),
    radial-gradient(circle at center, var(--gold) 2px, transparent 3px);
  background-size: 100% 2px, 18px 18px;
  background-position: center, center;
  background-repeat: no-repeat, repeat-x;
  clip-path: polygon(0 45%, 48% 45%, 50% 0, 52% 45%, 100% 45%, 100% 55%, 52% 55%, 50% 100%, 48% 55%, 0 55%);
}

.hero__flourish--bottom {
  margin-top: 1.6rem;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  clip-path: polygon(0 45%, 48% 45%, 50% 0, 52% 45%, 100% 45%, 100% 55%, 52% 55%, 50% 100%, 48% 55%, 0 55%);
}

/* ---------- Section titles ---------- */
main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: clamp(2.5rem, 6vw, 4.5rem) 0 2.5rem;
}

.section-title__rule {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.section-title__rule:last-child {
  background: linear-gradient(90deg, var(--gold), transparent);
}

.section-title h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
  padding-left: 0.28em;
}

/* ---------- About ---------- */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 320px) 1fr;
  gap: clamp(1.5rem, 5vw, 3.5rem);
  align-items: center;
}

.about__photo {
  margin: 0;
}

.about__photo-frame {
  position: relative;
  border: 2px solid var(--gold);
  outline: 1px solid var(--gold);
  outline-offset: 7px;
  padding: 8px;
  background: var(--ink-3);
  box-shadow: 0 14px 40px var(--shadow), inset 0 0 20px rgba(212, 175, 55, 0.08);
}

.about__photo-frame::before,
.about__photo-frame::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border: 2px solid var(--gold-soft);
}

.about__photo-frame::before {
  top: -12px;
  left: -12px;
  border-right: 0;
  border-bottom: 0;
}

.about__photo-frame::after {
  bottom: -12px;
  right: -12px;
  border-left: 0;
  border-top: 0;
}

.about__photo-frame img {
  display: block;
  width: 100%;
  height: auto;
  filter: grayscale(0.15) contrast(1.05);
}

.about__text p {
  margin: 0 0 1.1rem;
  color: var(--cream);
  font-size: clamp(0.95rem, 2vw, 1.08rem);
}

.about__text strong {
  color: var(--gold-soft);
  font-weight: 600;
}

.about__text em {
  color: var(--cream);
  font-style: italic;
  border-bottom: 1px dotted var(--gold-deep);
}

/* ---------- Categories & Cards ---------- */
.category {
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.category__label {
  font-family: var(--font-deco);
  font-size: clamp(1.05rem, 2.6vw, 1.4rem);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-soft);
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1.5rem;
}

.category__label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-deep), transparent);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  position: relative;
  background: linear-gradient(160deg, var(--ink-3), var(--ink-2));
  border: 1px solid var(--gold-deep);
  padding: 1.75rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 26px var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 22px rgba(212, 175, 55, 0.12);
}

.card__badge {
  align-self: flex-start;
  font-family: var(--font-deco);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--gold);
  padding: 0.28rem 0.7rem;
  margin-bottom: 1rem;
}

.card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  color: var(--cream);
  margin: 0 0 0.6rem;
}

.card__tagline {
  font-size: 0.92rem;
  color: var(--cream-dim);
  margin: 0 0 1.5rem;
  flex: 1;
}

.card__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  font-family: var(--font-deco);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.85rem;
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  background: var(--gold);
  color: var(--ink);
  outline: none;
}

.btn--solid {
  background: var(--gold);
  color: #090909;
}

.btn--solid:hover,
.btn--solid:focus-visible {
  background: var(--gold-soft);
  border-color: var(--gold-soft);
  color: #090909;
}

/* ---------- Footer ---------- */
.footer {
  text-align: center;
  padding: clamp(3rem, 7vw, 5rem) 1.5rem 3rem;
  margin-top: 3rem;
  color: var(--cream-dim);
  font-family: var(--font-deco);
  letter-spacing: 0.14em;
  font-size: 0.85rem;
}

.footer__flourish {
  display: block;
  width: 120px;
  height: 12px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  clip-path: polygon(0 45%, 48% 45%, 50% 0, 52% 45%, 100% 45%, 100% 55%, 52% 55%, 50% 100%, 48% 55%, 0 55%);
}

/* ---------- Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal[hidden] {
  display: none;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 10, 0.82);
  backdrop-filter: blur(3px);
  animation: fade 0.25s ease;
}

.modal__dialog {
  position: relative;
  width: min(560px, 100%);
  background: linear-gradient(160deg, var(--ink-3), var(--ink));
  border: 2px solid var(--gold);
  padding: clamp(2rem, 5vw, 3rem);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7);
  animation: rise 0.3s ease;
}

.modal__corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid var(--gold);
}

.modal__corner--tl { top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
.modal__corner--tr { top: 8px; right: 8px; border-left: 0; border-bottom: 0; }
.modal__corner--bl { bottom: 8px; left: 8px; border-right: 0; border-top: 0; }
.modal__corner--br { bottom: 8px; right: 8px; border-left: 0; border-top: 0; }

.modal__close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--gold);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.modal__close:hover {
  color: var(--gold-soft);
  transform: rotate(90deg);
}

.modal__category {
  font-family: var(--font-deco);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--gold-soft);
  margin: 0 0 0.5rem;
}

.modal__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  letter-spacing: 0.05em;
  color: var(--cream);
  margin: 0;
}

.modal__divider {
  height: 10px;
  margin: 1rem 0 1.25rem;
  background: linear-gradient(90deg, var(--gold), transparent);
  clip-path: polygon(0 45%, 40% 45%, 42% 0, 44% 45%, 100% 45%, 100% 55%, 44% 55%, 42% 100%, 40% 55%, 0 55%);
}

.modal__body {
  color: var(--cream);
  font-size: 1rem;
  margin: 0 0 1.75rem;
}

.modal__link {
  font-family: var(--font-deco);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.8rem;
  padding: 0.7rem 1.4rem;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: var(--ink);
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s ease;
}

.modal__link:hover {
  background: var(--gold-soft);
}

.modal__link[hidden] {
  display: none;
}

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Responsive ---------- */
@media (max-width: 680px) {
  .about__grid {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: left;
  }

  .about__photo {
    max-width: 280px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
