@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: dark;
  --bg: #0b0b0d;
  --surface: #151519;
  --surface-light: #222228;
  --text: #f2f3f7;
  --muted: #a4a8b2;
  --line: rgba(242, 243, 247, .13);
  --accent: #159cf5;
  --accent-hover: #54b9ff;
  --accent-dark: #102b45;
  --font-body: 'DM Sans', Arial, sans-serif;
  --font-display: 'Manrope', 'DM Sans', sans-serif;
  --page-width: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
body:has(.lightbox[open]) { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
img { display: block; width: 100%; }
::selection { color: var(--bg); background: var(--accent); }

.site-header { width: min(var(--page-width), calc(100% - 80px)); min-height: 88px; margin: auto; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); position: relative; z-index: 5; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-logo, .footer-brand img { width: 72px; height: 72px; object-fit: contain; border-radius: 50%; }

.hero-image::before, .work-photo::after, .about-photo::after, .lightbox-photo::after {
  content: '';
  position: absolute;
  z-index: 2;
  bottom: 12px;
  left: 12px;
  width: clamp(28px, 4vw, 42px);
  aspect-ratio: 1;
  border: 1px solid rgba(21, 156, 245, .6);
  border-radius: 50%;
  background: #000 url('../assets/images/fotografia-logo.jpeg') center / contain no-repeat;
  opacity: .8;
  pointer-events: none;
}
.brand-name { font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.brand-name small { display: block; margin-top: 5px; color: var(--muted); font-size: 8px; font-weight: 500; letter-spacing: .18em; }
.site-nav { display: flex; align-items: center; gap: 42px; color: #c6c9d1; font-size: 12px; }
.site-nav a { transition: color .2s ease; }
.site-nav a:hover, .footer-links a:hover { color: var(--accent); }
.site-nav .nav-contact { padding: 12px 16px; border: 1px solid var(--line); color: var(--text); }
.nav-contact span { padding-left: 8px; color: var(--accent); }
.menu-toggle { display: none; }

.hero { position: relative; width: min(var(--page-width), calc(100% - 80px)); min-height: 650px; margin: 0 auto; display: grid; grid-template-columns: .91fr 1.09fr; align-items: center; padding: 56px 0 76px; }
.hero-copy { position: relative; z-index: 1; padding: 0 34px 0 0; }
.eyebrow { margin: 0 0 23px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .17em; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin: 0 8px 1px 0; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px rgba(21, 156, 245, .55); }
h1, h2, h3, p, figure { margin-top: 0; }
.hero h1, .section-heading h2, .about-copy h2, .contact-copy h2 { margin: 0; font-family: var(--font-display); font-weight: 600; letter-spacing: -.075em; }
.hero h1 { font-size: clamp(62px, 7.3vw, 104px); line-height: .98; }
.hero h1 em, .section-heading h2 em, .about-copy h2 em, .contact-copy h2 em { color: var(--accent); font-style: normal; }
.hero-description { max-width: 340px; margin: 25px 0 0; color: #b7bbc5; font-size: 14px; line-height: 1.8; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 23px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; gap: 18px; padding: 14px 18px; font-size: 11px; font-weight: 700; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--accent); color: var(--bg); }
.button-primary:hover { background: var(--accent-hover); }
.button-primary span { font-size: 16px; }
.text-link { color: var(--text); font-size: 11px; font-weight: 600; }
.text-link span { display: inline-block; margin-left: 7px; color: var(--accent); transition: transform .2s; }
.text-link:hover span { transform: translate(2px, -2px); }
.hero-note { display: flex; align-items: center; gap: 12px; margin-top: 61px; color: #858b97; font-size: 9px; letter-spacing: .06em; }
.note-line { width: 34px; height: 1px; background: var(--accent); }
.hero-image { position: relative; height: 490px; margin: 0; overflow: hidden; background: var(--surface); }
.hero-image::after { content: ''; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, .48)); pointer-events: none; }
.hero-image > img { height: 100%; object-fit: cover; object-position: center 43%; }
.hero-image figcaption { position: absolute; z-index: 1; right: 23px; bottom: 21px; left: 72px; display: flex; justify-content: space-between; color: #fff; font-size: 8px; font-weight: 600; letter-spacing: .14em; }
.scroll-cue { position: absolute; bottom: 25px; left: 0; display: flex; align-items: center; gap: 10px; color: #858b97; font-size: 8px; letter-spacing: .16em; }
.scroll-cue span { width: 25px; height: 25px; border: 1px solid var(--line); border-radius: 50%; position: relative; }
.scroll-cue span::after { content: ''; position: absolute; top: 7px; left: 11px; width: 1px; height: 8px; background: var(--accent); }

.section-wrap { width: min(var(--page-width), calc(100% - 80px)); margin: 0 auto; }
.work-section { padding: 96px 0 104px; border-top: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; }
.section-heading .eyebrow, .about-copy .eyebrow { margin-bottom: 14px; }
.section-heading h2, .about-copy h2 { font-size: clamp(38px, 5vw, 62px); line-height: 1.05; }
.section-intro { max-width: 300px; margin: 0 0 4px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.filter-bar { display: flex; align-items: center; gap: 8px; margin: 34px 0 26px; }
.filter-button { padding: 10px 15px; border: 1px solid transparent; background: transparent; color: var(--muted); font-size: 10px; cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.filter-button:hover { color: var(--text); }
.filter-button.is-active { border-color: var(--line); background: var(--surface); color: var(--text); }
.filter-button span { margin-left: 4px; color: var(--accent); font-size: 8px; }
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 37px 18px; }
.work-card { min-width: 0; padding: 0; border: 0; background: transparent; text-align: left; cursor: pointer; animation: reveal .35s ease both; }
.work-card[hidden] { display: none; }
@keyframes reveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.work-photo { position: relative; display: block; height: 300px; overflow: hidden; background: var(--surface); }
.work-card-tall .work-photo { height: 365px; }
.work-photo img { height: 100%; object-fit: cover; transition: transform .55s cubic-bezier(.2, .7, .2, 1), filter .35s; }
.work-card:hover .work-photo img { transform: scale(1.045); filter: brightness(.78); }
.photo-open { position: absolute; right: 14px; bottom: 14px; display: grid; width: 37px; height: 37px; place-items: center; background: var(--accent); color: var(--bg); opacity: 0; transform: translateY(5px); transition: .2s ease; }
.work-card:hover .photo-open, .work-card:focus-visible .photo-open { opacity: 1; transform: translateY(0); }
.work-meta { display: flex; justify-content: space-between; align-items: start; gap: 12px; padding-top: 13px; }
.work-meta strong, .work-meta small { display: block; }
.work-meta strong { font-family: var(--font-display); font-size: 12px; font-weight: 600; }
.work-meta small { margin-top: 5px; color: var(--muted); font-size: 9px; }
.work-index { color: #777e8b; font-size: 9px; }
.filter-empty { margin: 30px 0 0; color: var(--muted); font-size: 13px; }

.about-section { display: grid; grid-template-columns: .92fr 1.08fr; gap: 11%; align-items: center; padding: 95px 10%; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.about-photo { position: relative; width: 100%; max-width: 370px; aspect-ratio: 1; }
.about-photo::before { content: ''; position: absolute; inset: 15px -15px -15px 15px; border: 1px solid rgba(21, 156, 245, .55); }
.about-photo img { position: relative; height: auto; }
.about-photo-label { position: absolute; top: 14px; left: 14px; padding: 8px 10px; background: var(--accent); color: var(--bg); font-size: 8px; font-weight: 700; letter-spacing: .13em; }
.about-copy h2 { margin-bottom: 24px; }
.about-copy > p:not(.eyebrow) { max-width: 450px; margin-bottom: 15px; color: #b6bac4; font-size: 12px; line-height: 1.9; }
.about-copy .text-link { display: inline-block; margin-top: 10px; }

.services-section { padding: 96px 0 100px; }
.compact-heading h2 { max-width: 610px; }
.service-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-top: 42px; border-top: 1px solid var(--line); }
.service-card { position: relative; grid-column: span 2; display: flex; flex-direction: column; justify-content: space-between; min-height: 198px; padding: 20px 22px 22px 0; border-bottom: 1px solid var(--line); }
.service-card + .service-card { padding-left: 22px; border-left: 1px solid var(--line); }
.service-card:nth-child(n + 4) { grid-column: span 3; }
.service-card:nth-child(4) { padding-left: 0; border-left: 0; }
.service-number { color: var(--accent); font-size: 9px; letter-spacing: .1em; }
.service-card h3 { margin: 0 0 9px; font-family: var(--font-display); font-size: 16px; font-weight: 600; letter-spacing: -.03em; }
.service-card p { max-width: 270px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.service-arrow { position: absolute; right: 16px; bottom: 22px; color: var(--accent); font-size: 13px; }

.contact-section { display: flex; justify-content: space-between; align-items: center; gap: 40px; padding: 66px 7%; background: var(--accent); color: var(--bg); }
.contact-section .eyebrow { color: var(--accent-dark); }
.contact-section .status-dot { background: var(--bg); box-shadow: none; }
.contact-copy h2 { font-size: clamp(40px, 5.5vw, 68px); line-height: 1; }
.contact-copy h2 em { color: var(--accent-dark); }
.contact-copy > p:last-child { margin: 17px 0 0; color: var(--accent-dark); font-size: 12px; }
.contact-cta { min-width: 230px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 17px; border: 1px solid rgba(11, 11, 13, .35); font-size: 9px; font-weight: 700; letter-spacing: .1em; transition: background .2s, color .2s; }
.contact-cta:hover { background: var(--bg); color: var(--accent); }
.cta-arrow { font-size: 19px; }
.site-footer { width: min(var(--page-width), calc(100% - 80px)); min-height: 94px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.footer-brand { flex-shrink: 0; }
.site-footer p { margin: 0; color: var(--muted); font-size: 9px; }
.footer-links { display: flex; gap: 20px; color: #c6c9d1; font-size: 9px; }

.lightbox { width: min(900px, calc(100% - 36px)); max-width: none; max-height: calc(100% - 36px); padding: 18px; border: 1px solid var(--line); background: #101014; color: var(--text); }
.lightbox::backdrop { background: rgba(7, 7, 9, .88); backdrop-filter: blur(5px); }
.lightbox-close { display: flex; align-items: center; gap: 12px; margin: 0 0 12px auto; padding: 4px 0 4px 8px; color: var(--text); font-size: 10px; cursor: pointer; }
.lightbox-close span { color: var(--accent); font-size: 22px; line-height: .7; }
.lightbox-photo { position: relative; width: fit-content; max-width: 100%; margin: 0 auto; }
.lightbox-photo > img { width: auto; max-width: 100%; max-height: calc(100vh - 130px); object-fit: contain; }
.lightbox-caption { display: flex; justify-content: space-between; gap: 15px; padding-top: 12px; color: var(--muted); font-size: 10px; }
.lightbox-caption strong { color: var(--text); font-weight: 600; }

@media (max-width: 900px) {
  .hero { min-height: 590px; grid-template-columns: .95fr 1.05fr; }
  .hero h1 { font-size: clamp(58px, 8vw, 78px); }
  .hero-image { height: 430px; }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-card-tall .work-photo, .work-photo { height: 320px; }
  .about-section { gap: 8%; padding-right: 7%; padding-left: 7%; }
}

@media (max-width: 640px) {
  html { scroll-padding-top: 70px; }
  .site-header, .section-wrap, .site-footer, .hero { width: calc(100% - 40px); }
  .site-header { min-height: 72px; }
  .brand-logo { width: 56px; height: 56px; }
  .brand-name { font-size: 9px; }
  .brand-name small { font-size: 7px; }
  .menu-toggle { width: 42px; height: 42px; display: flex; flex-direction: column; justify-content: center; gap: 6px; align-items: center; border: 1px solid var(--line); background: var(--bg); cursor: pointer; }
  .menu-toggle span { width: 16px; height: 1px; background: var(--text); transition: transform .2s; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .site-nav { position: absolute; top: calc(100% + 1px); right: 0; left: 0; display: none; align-items: stretch; gap: 0; padding: 9px 16px 16px; border: 1px solid var(--line); background: var(--bg); }
  .site-nav.is-open { display: flex; flex-direction: column; }
  .site-nav > a { padding: 14px 0; }
  .site-nav .nav-contact { margin-top: 5px; padding: 13px; }
  .hero { min-height: 0; grid-template-columns: 1fr; padding: 52px 0 65px; }
  .hero-copy { padding: 0; }
  .hero h1 { font-size: clamp(60px, 17vw, 82px); }
  .hero-description { max-width: 300px; margin-top: 18px; font-size: 13px; }
  .hero-actions { gap: 18px; margin-top: 23px; }
  .button { padding: 13px 15px; }
  .hero-image { height: min(112vw, 470px); margin-top: 37px; }
  .hero-note { margin-top: 28px; }
  .scroll-cue { display: none; }
  .work-section { padding: 68px 0 72px; }
  .section-heading { align-items: start; flex-direction: column; gap: 15px; }
  .section-heading h2, .about-copy h2 { font-size: 42px; }
  .section-intro { max-width: 330px; }
  .filter-bar { gap: 3px; margin: 25px 0 20px; overflow-x: auto; }
  .filter-button { flex: 0 0 auto; padding: 9px 11px; font-size: 9px; }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 11px; }
  .work-card-tall .work-photo, .work-photo { height: auto; aspect-ratio: 4 / 5; }
  .work-card:nth-child(3n) .work-photo { aspect-ratio: 1 / 1.08; }
  .work-meta { gap: 5px; padding-top: 9px; }
  .work-meta strong { font-size: 10px; line-height: 1.35; }
  .work-meta small { font-size: 8px; line-height: 1.4; }
  .work-index { font-size: 8px; }
  .about-section { grid-template-columns: 1fr; gap: 34px; width: 100%; padding: 64px 20px 70px; }
  .about-photo { width: calc(100% - 15px); max-width: 390px; }
  .about-copy > p:not(.eyebrow) { font-size: 11px; }
  .services-section { padding: 68px 0; }
  .compact-heading { gap: 15px; }
  .service-grid { grid-template-columns: 1fr; margin-top: 25px; }
  .service-card, .service-card + .service-card { grid-column: auto; min-height: 150px; padding: 17px 28px 18px 0; border-left: 0; }
  .service-card + .service-card { padding-left: 0; }
  .service-card h3 { font-size: 15px; }
  .contact-section { width: 100%; align-items: stretch; flex-direction: column; gap: 26px; padding: 47px 20px; }
  .contact-copy h2 { font-size: 47px; }
  .contact-cta { width: 100%; }
  .site-footer { min-height: 100px; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 18px 0; }
  .site-footer p { order: 3; width: 100%; }
  .footer-links { gap: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
