/* ==========================================================================
   FLO — Florencia Mancini Photography
   Editorial photography portfolio. Mobile-first, no frameworks.
   ========================================================================== */

:root {
  --ink: #0d0d10;
  --ink-soft: #15151a;
  --ink-card: #1b1b21;
  --paper: #f4efe7;
  --paper-dim: #cdc6bb;
  --muted: #948d84;
  --accent: #d9764a;
  --accent-deep: #b4542c;
  --line: rgba(244, 239, 231, 0.14);
  --line-strong: rgba(244, 239, 231, 0.28);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
  --radius: 18px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
}

p { margin: 0 0 1.05em; }

::selection { background: var(--accent); color: #fff; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 22px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 12px 18px;
  z-index: 200;
  border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ------------------------------------------------------------------ header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(13, 13, 16, 0.72);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  background: rgba(13, 13, 16, 0.94);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  height: 66px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: 0.02em;
  background: linear-gradient(150deg, #23232b, #131317);
  color: var(--paper);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-name { font-family: var(--serif); font-size: 18px; letter-spacing: 0.01em; }
.brand-role { font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

.site-nav { display: flex; align-items: center; gap: 4px; }

.nav-link {
  display: none;
  font-size: 13.5px;
  letter-spacing: 0.03em;
  color: var(--paper-dim);
  padding: 8px 12px;
  border-radius: 999px;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.nav-link:hover, .nav-link:focus-visible { color: var(--paper); background: rgba(244, 239, 231, 0.07); }

.lang-switch {
  display: flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  overflow: hidden;
  margin-left: 6px;
}
.lang-switch a {
  font-size: 11.5px;
  letter-spacing: 0.1em;
  padding: 7px 11px;
  color: var(--muted);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.lang-switch a:hover { color: var(--paper); }
.lang-switch a[aria-current="true"] { background: var(--paper); color: var(--ink); font-weight: 600; }

/* -------------------------------------------------------------------- hero */

.hero {
  position: relative;
  min-height: 92vh;
  min-height: 92svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  filter: contrast(1.06) brightness(0.86);
  animation: heroDrift 26s var(--ease) forwards;
}
@keyframes heroDrift {
  from { transform: scale(1.09); }
  to { transform: scale(1); }
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(13, 13, 16, 0.72) 0%, rgba(13, 13, 16, 0.18) 34%, rgba(13, 13, 16, 0.93) 100%),
    radial-gradient(110% 80% at 12% 100%, rgba(180, 84, 44, 0.3), transparent 62%);
}

.hero-inner { padding: 96px 0 58px; width: 100%; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--paper-dim);
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--accent);
}

.hero h1 {
  font-size: clamp(3.6rem, 20vw, 10.5rem);
  letter-spacing: -0.03em;
  margin: 0 0 4px;
}
.hero h1 .flo-accent { color: var(--accent); display: block; }

.hero-name-sub {
  display: block;
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(0.8rem, 2.4vw, 1.05rem);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--paper-dim);
  margin-top: 18px;
}

.hero-tagline {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 4.6vw, 2.35rem);
  color: var(--paper);
  max-width: 22ch;
  margin: 0 0 14px;
  line-height: 1.22;
}

.hero-sub {
  color: var(--paper-dim);
  max-width: 46ch;
  font-size: 15px;
  margin-bottom: 30px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 25px;
  border-radius: 999px;
  font-size: 13.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-2px); }
.btn-ghost { border-color: var(--line-strong); color: var(--paper); }
.btn-ghost:hover { background: rgba(244, 239, 231, 0.1); transform: translateY(-2px); }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta b { color: var(--paper); font-weight: 500; }

/* ------------------------------------------------------------- marquee bar */

.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--ink-soft);
  overflow: hidden;
  padding: 15px 0;
}
.ticker-track {
  display: flex;
  gap: 46px;
  width: max-content;
  animation: ticker 34s linear infinite;
  white-space: nowrap;
}
.ticker-track span {
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--paper-dim);
  display: inline-flex;
  align-items: center;
  gap: 46px;
}
.ticker-track span::after { content: "✦"; color: var(--accent); font-size: 11px; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------- sections */

.section { padding: 74px 0; }
.section--soft { background: var(--ink-soft); }
.section-head { max-width: 640px; margin-bottom: 42px; }
.section-head h2 {
  font-size: clamp(2rem, 8vw, 3.4rem);
  margin-bottom: 14px;
}
.section-head p { color: var(--paper-dim); font-size: 16px; }
.section-label {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  display: block;
}

/* ------------------------------------------------------------------- about */

.about-grid { display: grid; gap: 42px; }

.about-quote {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 5.4vw, 2.1rem);
  line-height: 1.3;
  border-left: 2px solid var(--accent);
  padding-left: 22px;
  margin: 0 0 26px;
}
.about-body p { color: var(--paper-dim); }
.about-body strong { color: var(--paper); font-weight: 600; }

.facts {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.facts li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.facts span:first-child { color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; font-size: 11.5px; padding-top: 3px; }
.facts span:last-child { text-align: right; color: var(--paper); }

.about-visual { position: relative; }
.about-visual img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: saturate(0.95);
}
.about-visual .stamp {
  position: absolute;
  right: 14px;
  bottom: -22px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  max-width: 190px;
  line-height: 1.5;
}

/* -------------------------------------------------------------- disciplines */

.disc-grid { display: grid; gap: 16px; }

.disc {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px 24px;
  background: var(--ink-card);
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease);
}
.disc::after {
  content: "";
  position: absolute;
  inset: auto -30% -60% auto;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 118, 74, 0.34), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.disc:hover { transform: translateY(-5px); border-color: var(--line-strong); }
.disc:hover::after { opacity: 1; }
.disc-num {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.14em;
  display: block;
  margin-bottom: 34px;
}
.disc h3 { font-size: 1.5rem; margin-bottom: 10px; }
.disc p { color: var(--paper-dim); font-size: 14.5px; margin: 0; }

/* ----------------------------------------------------------------- gallery */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}
.filter-btn {
  font: inherit;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper-dim);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 9px 16px;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.filter-btn:hover { color: var(--paper); border-color: var(--paper-dim); }
.filter-btn[aria-pressed="true"] { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.gallery {
  columns: 1;
  column-gap: 14px;
}
.gal-item {
  break-inside: avoid;
  margin: 0 0 14px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  background: var(--ink-card);
  cursor: zoom-in;
}
.gal-item img {
  width: 100%;
  transition: transform 0.6s var(--ease), filter 0.5s var(--ease);
  filter: saturate(0.96);
}
.gal-item:hover img { transform: scale(1.045); filter: saturate(1.05); }
.gal-item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 40px 15px 13px;
  font-size: 12.5px;
  letter-spacing: 0.05em;
  color: #fff;
  background: linear-gradient(transparent, rgba(8, 8, 10, 0.86));
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.gal-item:hover figcaption, .gal-item:focus-within figcaption { opacity: 1; transform: none; }
.gal-item button {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: none;
  border: 0;
  cursor: zoom-in;
}
.gal-item button:focus-visible { outline: 2px solid var(--accent); outline-offset: -5px; }
.gal-item.is-hidden { display: none; }

.gallery-note { color: var(--muted); font-size: 13.5px; margin-top: 20px; }

/* ------------------------------------------------------------------- lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(8, 8, 10, 0.96);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.lightbox.is-open { display: flex; }
.lightbox figure { margin: 0; max-width: min(1100px, 100%); text-align: center; }
.lightbox img {
  max-height: 78vh;
  max-width: 100%;
  width: auto;
  margin: 0 auto;
  border-radius: 10px;
}
.lightbox figcaption { color: var(--paper-dim); font-size: 13.5px; margin-top: 14px; letter-spacing: 0.04em; }
.lb-btn {
  position: absolute;
  background: rgba(244, 239, 231, 0.1);
  border: 1px solid var(--line-strong);
  color: var(--paper);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.25s var(--ease);
}
.lb-btn:hover { background: rgba(244, 239, 231, 0.22); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ------------------------------------------------------------------- prints */

.prints {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #202027, #131318 62%);
  padding: 34px 24px;
}
.prints h2 { font-size: clamp(1.8rem, 7vw, 2.7rem); margin-bottom: 14px; }
.prints p { color: var(--paper-dim); max-width: 52ch; }
.prints ol { margin: 24px 0 0; padding: 0; list-style: none; counter-reset: p; }
.prints ol li {
  counter-increment: p;
  padding: 14px 0 14px 44px;
  border-top: 1px solid var(--line);
  position: relative;
  color: var(--paper-dim);
  font-size: 14.5px;
}
.prints ol li::before {
  content: counter(p);
  position: absolute;
  left: 0;
  top: 13px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  display: grid;
  place-items: center;
}

/* ------------------------------------------------------------------ contact */

.contact-grid { display: grid; gap: 34px; }

.contact-list { list-style: none; margin: 0 0 26px; padding: 0; }
.contact-list li { padding: 15px 0; border-bottom: 1px solid var(--line); }
.contact-list .k {
  display: block;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px;
}
.contact-list a { color: var(--paper); border-bottom: 1px solid var(--line-strong); transition: color 0.25s var(--ease), border-color 0.25s var(--ease); }
.contact-list a:hover { color: var(--accent); border-color: var(--accent); }

.form { display: grid; gap: 14px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit;
  font-size: 15px;
  color: var(--paper);
  background: var(--ink-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 15px;
  width: 100%;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #202027;
}
.field textarea { min-height: 128px; resize: vertical; }
.form .btn { justify-self: start; }
.form-note { font-size: 12.5px; color: var(--muted); margin: 0; }

/* ------------------------------------------------------------------- footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 34px 0 40px;
  background: var(--ink-soft);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
}
.footer-inner a:hover { color: var(--accent); }
.footer-brand { font-family: var(--serif); font-size: 19px; color: var(--paper); }

/* ------------------------------------------------------------------ reveal */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------- responsive */

@media (min-width: 620px) {
  .gallery { columns: 2; }
  .disc-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .hero-inner { padding-bottom: 74px; }
}

@media (min-width: 900px) {
  .wrap { padding: 0 34px; }
  .header-inner { height: 76px; }
  .nav-link { display: inline-block; }
  .hero { min-height: 100vh; }
  .section { padding: 104px 0; }
  .gallery { columns: 3; column-gap: 16px; }
  .gal-item { margin-bottom: 16px; }
  .about-grid { grid-template-columns: 1.15fr 0.85fr; gap: 60px; align-items: start; }
  .about-visual .stamp { bottom: 24px; right: -26px; }
  .disc-grid { grid-template-columns: repeat(3, 1fr); }
  .prints { padding: 56px 52px; }
  .contact-grid { grid-template-columns: 0.85fr 1.15fr; gap: 64px; }
}

@media (min-width: 1100px) {
  .disc-grid { grid-template-columns: repeat(5, 1fr); }
  .disc-num { margin-bottom: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-media img { animation: none; }
  .ticker-track { animation: none; }
}
