:root {
  --bg: #0b0b0d;
  --card: #17171c;
  --text: #f5f0e8;
  --muted: #b9b2aa;
  --gold: #e6d0a4;
  --line: rgba(255, 255, 255, 0.12);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 Arial, Helvetica, sans-serif;
}
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
body.lightbox-open { overflow: hidden; }

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  min-height: 84px;
  padding: 0 max(22px, calc((100vw - var(--max)) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(11, 11, 13, 0.84);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.brand { width: clamp(146px, 14vw, 170px); height: 78px; display: flex; align-items: center; flex: 0 0 auto; text-decoration: none; }
.brand img { display: block; width: 100%; height: 100%; object-fit: contain; }
nav { display: flex; gap: clamp(14px, 2vw, 26px); margin-left: 24px; }
nav a { position: relative; text-decoration: none; color: var(--muted); }
nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -5px; height: 1px; background: var(--gold); transition: right 180ms ease; }
nav a:hover { color: var(--text); }
nav a:hover::after { right: 0; }
.menu { display: none; width: 42px; height: 38px; border: 1px solid var(--line); border-radius: 9px; background: transparent; }
.menu span { display: block; width: 17px; height: 1px; margin: 5px auto; background: var(--text); }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
  padding: 150px 24px 80px;
  display: grid;
  place-items: center;
  text-align: center;
  background: #070708;
}
.hero-photo { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; }
.hero-shade { position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, rgba(5,5,7,0.55), rgba(5,5,7,0.28) 42%, rgba(5,5,7,0.9)), linear-gradient(90deg, rgba(7,7,9,0.72), rgba(7,7,9,0.08) 35%, rgba(7,7,9,0.08) 65%, rgba(7,7,9,0.72)); }
.hero > div { position: relative; z-index: 1; max-width: 880px; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.15; }
h1 { font-size: clamp(3rem, 7vw, 6.2rem); margin: 0.1em 0 0.3em; letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 4.5vw, 3.8rem); margin: 0.1em 0 0.35em; letter-spacing: -0.025em; }
h3 { margin: 0; }
.lead { max-width: 700px; margin: auto; color: #d6d0c8; font-size: 1.12rem; text-shadow: 0 2px 20px rgba(0,0,0,0.75); }
.kicker { margin: 0 0 12px; color: var(--gold); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; }
.buttons { margin-top: 32px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-flex; min-height: 48px; padding: 12px 20px; border-radius: 999px; align-items: center; justify-content: center; text-decoration: none; font-weight: 600; transition: transform 180ms ease, background 180ms ease; }
.btn:hover { transform: translateY(-2px); }
.primary { background: var(--gold); color: #15110b; }
.primary:hover { background: #f2ddb4; }
.secondary { border: 1px solid rgba(255, 255, 255, 0.32); }

.section { width: min(var(--max), calc(100% - 48px)); margin: auto; padding: 100px 0; }
.intro { display: grid; grid-template-columns: 1fr 0.8fr; gap: 70px; align-items: end; }
.intro > p, .about p, .contact p { color: var(--muted); }

/* Editorial portfolio */
.portfolio-section { position: relative; overflow: hidden; background: #0f0f12; border-block: 1px solid rgba(255, 255, 255, 0.07); }
.portfolio-section::before { content: ""; position: absolute; width: 520px; height: 520px; right: -240px; top: 120px; border-radius: 50%; background: rgba(119, 78, 128, 0.12); filter: blur(2px); }
.portfolio-inner { position: relative; }
.portfolio-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 32px; }
.portfolio-heading h2 { max-width: 760px; }
.portfolio-status { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; margin: 0 0 20px; color: var(--muted); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; }
.portfolio-status span { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 6px rgba(230, 208, 164, 0.1); }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.category-card { position: relative; min-width: 0; aspect-ratio: 4 / 5; padding: 0; overflow: hidden; text-align: left; color: var(--text); background: #18181d; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 3px; cursor: pointer; }
.category-card > img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1), filter 400ms ease; }
.category-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,5,7,0.08) 20%, rgba(5,5,7,0.88) 100%); transition: background 300ms ease; }
.category-copy { position: absolute; z-index: 2; inset: auto 28px 28px; display: flex; flex-direction: column; align-items: flex-start; }
.category-copy strong { font: 500 clamp(1.75rem, 3vw, 2.65rem)/1.05 Georgia, "Times New Roman", serif; letter-spacing: -0.02em; text-shadow: 0 2px 18px rgba(0,0,0,0.72); }
.category-copy > span { max-width: 290px; margin-top: 10px; color: #ddd6cd; font-size: 0.92rem; line-height: 1.45; text-shadow: 0 2px 12px rgba(0,0,0,0.9); }
.category-copy small { margin-top: 18px; color: var(--gold); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.category-card:hover > img, .category-card:focus-visible > img { transform: scale(1.045); filter: saturate(1.08); }
.category-card:hover .category-overlay, .category-card:focus-visible .category-overlay { background: linear-gradient(180deg, rgba(5,5,7,0.02) 20%, rgba(5,5,7,0.94) 100%); }
.category-card.active { border-color: rgba(230, 208, 164, 0.72); }
.category-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.category-gallery { scroll-margin-top: 104px; margin-top: 54px; padding-top: 42px; border-top: 1px solid var(--line); }
.category-gallery[hidden] { display: none; }
.gallery-heading { margin-bottom: 28px; }
.gallery-heading h3 { max-width: 670px; font-size: clamp(1.6rem, 3vw, 2.5rem); }
.gallery-close { flex: 0 0 auto; padding: 9px 13px; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; }
.gallery-close-bottom { display: block; width: fit-content; margin: 28px auto 0; }
.gallery-close:hover, .gallery-close:focus-visible { color: var(--text); border-color: rgba(230,208,164,0.6); outline: none; }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1px; gap: 18px; align-items: start; }
.portfolio-card { position: relative; display: block; align-self: start; width: 100%; min-width: 0; padding: 0; overflow: hidden; cursor: zoom-in; text-align: left; color: var(--text); background: #18181d; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 2px; }
.portfolio-card[hidden] { display: none; }
.portfolio-card > img:first-child { display: block; width: 100%; height: auto; object-fit: contain; transition: transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1), filter 400ms ease; }
.portfolio-card:hover > img:first-child, .portfolio-card:focus-visible > img:first-child { transform: scale(1.035); filter: saturate(1.08); }
.portfolio-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.portfolio-watermark { position: absolute; z-index: 3; right: 13px; top: 12px; width: clamp(72px, 24%, 118px); height: auto; opacity: 0.5; pointer-events: none; filter: drop-shadow(0 1px 8px rgba(0,0,0,0.7)); }
.dark-watermark { opacity: 0.62; filter: brightness(0) drop-shadow(0 1px 5px rgba(255,255,255,0.3)); }
.portfolio-note { max-width: 660px; margin: 42px 0 0 auto; padding-top: 24px; display: flex; align-items: center; gap: 18px; border-top: 1px solid var(--line); }
.note-mark { display: grid; place-items: center; flex: 0 0 auto; width: 42px; height: 42px; border: 1px solid rgba(230, 208, 164, 0.45); border-radius: 50%; color: var(--gold); font: 300 1.4rem/1 Arial, sans-serif; }
.portfolio-note p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.portfolio-note strong { display: block; color: var(--text); font-weight: 600; }

.about { padding: 28px; display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 48px; background: linear-gradient(145deg, #141418, #1d1d23); border: 1px solid var(--line); border-radius: 28px; }
.portrait { position: relative; min-height: 500px; overflow: hidden; border-radius: 20px; background: #18131b; }
.portrait::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 66%, rgba(7, 7, 9, 0.18)); }
.portrait img { display: block; width: 100%; height: 100%; min-height: 500px; object-fit: cover; object-position: 50% 48%; }
.tags { display: flex; gap: 10px; flex-wrap: wrap; }
.about .tags { margin-top: 2rem; }
.tags span { padding: 8px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 0.82rem; }
.testimonials-section { scroll-margin-top: 84px; background: #0f0f12; border-block: 1px solid rgba(255, 255, 255, 0.07); }
.testimonials-section[hidden] { display: none; }
.testimonials-heading { max-width: 720px; margin-bottom: 34px; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.testimonial-card { min-width: 0; padding: 28px; background: linear-gradient(145deg, #141418, #1d1d23); border: 1px solid var(--line); border-radius: 20px; }
.testimonial-stars { position: relative; display: inline-block; color: rgba(230, 208, 164, 0.28); font-size: 1.05rem; line-height: 1; letter-spacing: 0.18em; white-space: nowrap; }
.testimonial-stars-empty { display: block; }
.testimonial-stars-filled { position: absolute; inset: 0 auto 0 0; width: 0; overflow: hidden; color: var(--gold); white-space: nowrap; }
.testimonial-card blockquote { margin: 18px 0 24px; color: #e6dfd6; font: 1.05rem/1.65 Georgia, "Times New Roman", serif; }
.testimonial-name { margin: 0; font-weight: 700; }
.testimonial-event { margin: 2px 0 0; color: var(--muted); font-size: 0.84rem; }
.section.contact-section { padding-top: 100px; }
.contact { padding: 38px; border: 1px solid var(--line); border-radius: 26px; background: linear-gradient(145deg, #141418, #1d1d23); display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr); column-gap: clamp(48px, 7vw, 110px); align-items: center; }
.contact-copy { min-width: 0; }
.contact-cta { display: flex; flex-direction: column; align-items: center; justify-self: end; align-self: center; padding-right: clamp(0px, 2.5vw, 36px); text-align: center; }
.small { font-size: 0.8rem; }
.contact .small { margin: 22px 0 0; }
footer { width: min(var(--max), calc(100% - 48px)); margin: auto; padding: 28px 0 32px; display: flex; justify-content: space-between; align-items: center; color: var(--muted); border-top: 1px solid var(--line); }
.footer-brand { display: flex; align-items: center; gap: 20px; }
.footer-brand a { display: flex; align-items: center; text-decoration: none; }
.footer-brand a:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 4px; }
.footer-brand img { width: 145px; height: auto; object-fit: contain; }
.footer-links { display: flex; align-items: center; gap: 20px; }
.footer-links a { color: var(--muted); text-decoration: none; transition: color 160ms ease; }
.footer-links a:hover, .footer-links a:focus-visible { color: var(--gold); }

/* Fullscreen portfolio view */
.lightbox { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 34px 76px; background: rgba(4, 4, 6, 0.95); backdrop-filter: blur(12px); }
.lightbox[hidden] { display: none; }
.lightbox figure { max-width: min(1100px, calc(100vw - 180px)); margin: 0; }
.lightbox-image { position: relative; display: grid; place-items: center; }
.lightbox-image > img:first-child { display: block; max-width: 100%; max-height: 80vh; width: auto; height: auto; object-fit: contain; box-shadow: 0 24px 80px rgba(0,0,0,0.5); }
.lightbox-watermark { position: absolute; right: 18px; top: 16px; width: clamp(90px, 16vw, 170px); height: auto; opacity: 0.55; filter: drop-shadow(0 2px 10px rgba(0,0,0,0.8)); }
.lightbox-watermark.dark-watermark { opacity: 0.62; filter: brightness(0) drop-shadow(0 1px 5px rgba(255,255,255,0.3)); }
.lightbox figcaption { padding-top: 12px; color: #d8d1c9; text-align: center; font: 1rem/1.4 Georgia, "Times New Roman", serif; letter-spacing: 0.02em; }
.lightbox-close, .lightbox-arrow { position: fixed; z-index: 2; display: grid; place-items: center; color: white; border: 1px solid rgba(255,255,255,0.2); background: rgba(19,19,23,0.72); cursor: pointer; }
.lightbox-close { top: 22px; right: 24px; width: 46px; height: 46px; border-radius: 50%; font-size: 2rem; line-height: 1; }
.lightbox-arrow { top: 50%; width: 50px; height: 64px; border-radius: 12px; font-size: 2.5rem; transform: translateY(-50%); }
.lightbox-arrow.previous { left: 18px; }
.lightbox-arrow.next { right: 18px; }
.lightbox-close:hover, .lightbox-arrow:hover, .lightbox-close:focus-visible, .lightbox-arrow:focus-visible { color: var(--gold); border-color: rgba(230,208,164,0.65); outline: none; }

@media (max-width: 1120px) {
  .menu { display: block; }
  nav { position: absolute; top: 84px; right: 18px; display: none; flex-direction: column; min-width: 210px; padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 50px rgba(0,0,0,0.35); }
  nav.open { display: flex; }
}

@media (max-width: 900px) {
  .intro, .about, .contact { grid-template-columns: 1fr; }
  .contact { row-gap: 38px; }
  .contact-cta { width: 100%; justify-self: center; padding-right: 0; }
  .portfolio-heading { align-items: flex-start; flex-direction: column; gap: 2px; }
  .portfolio-status { margin-bottom: 0; }
  .category-grid { grid-template-columns: 1fr; }
  .category-card { aspect-ratio: 16 / 8; }
  .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .testimonials-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 580px) {
  .header { min-height: 76px; }
  .brand { width: 138px; height: 70px; }
  nav { top: 76px; }
  .section { width: calc(100% - 32px); padding: 75px 0; }
  .section.contact-section { padding-top: 75px; }
  .hero { min-height: 100vh; min-height: 100svh; padding-inline: 16px; }
  .hero-photo { object-position: 50% 60%; }
  .category-card { aspect-ratio: 4 / 5; }
  .category-copy { inset: auto 22px 23px; }
  .portfolio-grid { grid-template-columns: 1fr; gap: 14px; }
  .category-gallery { margin-top: 36px; padding-top: 34px; }
  .gallery-close-bottom { margin-top: 24px; }
  .portfolio-note { margin-top: 30px; }
  .about, .contact { padding: 22px; border-radius: 20px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  footer { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer-brand { flex-direction: column; align-items: flex-start; gap: 4px; }
  .footer-brand img { width: 150px; margin-left: -8px; }
  .footer-links { flex-wrap: wrap; gap: 10px 18px; }
  .lightbox { padding: 64px 16px 84px; }
  .lightbox figure { max-width: calc(100vw - 32px); }
  .lightbox-image > img:first-child { max-height: 72vh; }
  .lightbox-watermark { right: 10px; top: 9px; width: 92px; }
  .lightbox-arrow { top: auto; bottom: 15px; width: 54px; height: 48px; transform: none; }
  .lightbox-arrow.previous { left: calc(50% - 64px); }
  .lightbox-arrow.next { right: calc(50% - 64px); }
  .lightbox-close { top: 12px; right: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
