/* ==========================================================================
   Claudia Platinetti — one-page portfolio
   OWN-WORLD: warm ink-white ground, near-black type, antique gold as the
   signature accent (foil, framing, dividers), forest green + dusty rose as
   quiet botanical accents pulled straight from the artist's own logo mark.
   Display: Bodoni Moda (fashion-editorial serif, her Versace/CK/Tod's
   background earns it). Body/UI: Archivo (quiet grotesk, gets out of the way).
   ========================================================================== */

:root {
  --bianco: #fcfbf8;
  --bianco-deep: #f4f1ea;
  --nero: #14120f;
  --nero-soft: #2b2723;
  --oro: #a9813f;
  --oro-light: #d8bd86;
  --oro-deep: #7c5f30;
  --verde: #24463a;
  --verde-soft: #4c6357;
  --rosa: #c96f6b;
  --rosa-soft: #e0a6a2;

  --bg: var(--bianco);
  --ink: var(--nero);
  --ink-soft: var(--nero-soft);
  --accent: var(--oro);

  --font-display: "Bodoni Moda", "Times New Roman", serif;
  --font-body: "Archivo", -apple-system, "Helvetica Neue", Arial, sans-serif;

  --measure: 68ch;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --section-pad: clamp(4.5rem, 9vw, 8.5rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

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

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

::selection { background: var(--oro); color: var(--bianco); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; margin: 0; letter-spacing: -0.01em; }

.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

/* ---- reveal-on-scroll (single authored motion) ---- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

/* ---- skip link ---- */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--nero); color: var(--bianco); padding: 0.75em 1.25em;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ==================== NAV ==================== */
.site-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem clamp(1.25rem, 4vw, 2.5rem);
  transition: background-color 0.5s var(--ease), box-shadow 0.5s var(--ease), padding 0.4s var(--ease);
}
.site-nav.is-scrolled {
  background: rgba(252, 251, 248, 0.86);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  box-shadow: 0 1px 0 rgba(20, 18, 15, 0.08);
  padding-block: 0.7rem;
}
.brand {
  display: flex; align-items: center; gap: 0.65rem;
  text-decoration: none; color: var(--ink);
}
.brand img { width: 40px; height: 40px; transition: filter 0.4s var(--ease); }
.site-nav:not(.is-scrolled) .brand img { filter: brightness(0) invert(1); }
.brand-word { font-family: var(--font-display); font-size: 1.05rem; letter-spacing: 0.02em; }
.site-nav:not(.is-scrolled) .brand-word { color: var(--bianco); }

.nav-links { display: flex; align-items: center; gap: clamp(1.1rem, 2vw, 2rem); }
.nav-links a {
  text-decoration: none; font-size: 0.86rem; letter-spacing: 0.04em;
  text-transform: uppercase; position: relative; padding-bottom: 2px;
  color: var(--ink);
}
.site-nav:not(.is-scrolled) .nav-links a { color: var(--bianco); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1px;
  background: currentColor; transition: right 0.35s var(--ease);
}
.nav-links a:hover::after, .nav-links a:focus-visible::after { right: 0; }

.lang-toggle {
  display: inline-flex; border: 1px solid currentColor; border-radius: 999px;
  overflow: hidden; font-size: 0.78rem; letter-spacing: 0.05em;
}
.lang-toggle button {
  background: none; border: none; color: inherit; font: inherit; cursor: pointer;
  padding: 0.4em 0.9em; opacity: 0.55; transition: opacity 0.3s var(--ease), background 0.3s var(--ease);
}
.lang-toggle button[aria-pressed="true"] { opacity: 1; }
.site-nav.is-scrolled .lang-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--bianco); border-radius: 999px; }
.site-nav:not(.is-scrolled) .lang-toggle button[aria-pressed="true"] { background: var(--bianco); color: var(--ink); border-radius: 999px; }
.site-nav:not(.is-scrolled) .lang-toggle { color: var(--bianco); }

.nav-toggle-mobile { display: none; }

/* ==================== HERO ==================== */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  color: var(--bianco); overflow: hidden;
}
.hero-media {
  position: absolute; inset: 0; z-index: -2;
}
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 30% 20%;
  transform: scale(1.12);
  animation: heroKenBurns 22s var(--ease) forwards;
}
@keyframes heroKenBurns {
  from { transform: scale(1.12); }
  to { transform: scale(1); }
}
.hero-media::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(20,18,15,0.35) 0%, rgba(20,18,15,0.28) 40%, rgba(20,18,15,0.82) 100%),
    linear-gradient(90deg, rgba(20,18,15,0.55) 0%, rgba(20,18,15,0.05) 55%);
}
.hero-inner {
  position: relative; width: 100%; padding-block: clamp(3rem, 10vh, 6rem);
}
.hero-eyebrow-mark { width: 54px; height: 54px; margin-bottom: 1.4rem; filter: brightness(0) invert(1); opacity: 0.9; }
.hero h1 {
  font-size: clamp(2.75rem, 8vw, 6rem); line-height: 0.98; margin-bottom: 1.1rem;
  max-width: 14ch;
}
.hero p.lede {
  max-width: 46ch; font-size: clamp(1.02rem, 1.6vw, 1.2rem); font-weight: 400;
  color: rgba(252,251,248,0.92); margin-bottom: 2.2rem;
}
.hero-actions { display: flex; align-items: center; gap: 1.75rem; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-family: var(--font-body); font-size: 0.86rem; letter-spacing: 0.05em; text-transform: uppercase;
  text-decoration: none; padding: 0.95em 1.9em; border-radius: 999px;
  border: 1px solid var(--oro-light); color: var(--bianco);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.btn:hover, .btn:focus-visible { background: var(--oro-light); color: var(--nero); border-color: var(--oro-light); transform: translateY(-2px); }
.btn-ghost {
  border-color: rgba(252,251,248,0.55); color: var(--bianco);
  font-size: 0.82rem; letter-spacing: 0.04em;
}
.btn-ghost:hover, .btn-ghost:focus-visible { background: rgba(252,251,248,0.12); color: var(--bianco); border-color: var(--bianco); }
.btn-dark { border-color: var(--nero); color: var(--nero); }
.btn-dark:hover, .btn-dark:focus-visible { background: var(--nero); color: var(--bianco); }

.scroll-cue {
  position: absolute; right: clamp(1.25rem, 4vw, 2.5rem); bottom: 2rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(252,251,248,0.75);
}
.scroll-cue .line { width: 1px; height: 42px; background: rgba(252,251,248,0.5); position: relative; overflow: hidden; }
.scroll-cue .line::after {
  content: ""; position: absolute; top: -100%; left: 0; width: 100%; height: 100%;
  background: var(--bianco); animation: scrollDrip 2.2s ease-in-out infinite;
}
@keyframes scrollDrip { 0% { top: -100%; } 60% { top: 100%; } 100% { top: 100%; } }

/* ==================== SECTION SHELL ==================== */
section { padding-block: var(--section-pad); position: relative; }
.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); max-width: 52ch; }
.section-head .tag {
  font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--oro-deep); display: block; margin-bottom: 0.9rem;
}
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
.section-head p { max-width: 48ch; color: var(--ink-soft); margin-top: 1.1rem; }

.divider {
  width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--oro-light) 20%, var(--oro) 50%, var(--oro-light) 80%, transparent);
  border: none; margin: 0;
}

/* ==================== ABOUT ==================== */
.about { background: var(--bianco-deep); }
.about-grid {
  display: grid; grid-template-columns: minmax(240px, 380px) 1fr; gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.about-photo-wrap { position: relative; }
.about-photo {
  aspect-ratio: 4 / 5; overflow: hidden; border-radius: 2px;
  box-shadow: 0 30px 60px -25px rgba(20,18,15,0.35);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-photo-frame {
  position: absolute; inset: 18px -18px -18px 18px; border: 1px solid var(--oro-light); z-index: -1;
}
.about-copy p { max-width: var(--measure); margin: 0 0 1.15em; color: var(--ink-soft); }
.about-copy p:first-of-type { color: var(--ink); font-size: 1.08rem; }

.credentials {
  margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid rgba(20,18,15,0.12);
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem;
  font-family: var(--font-display); font-style: italic; font-size: 0.98rem; color: var(--verde-soft);
}
.credentials span:not(:last-child)::after { content: "·"; margin-left: 1.4rem; color: var(--oro); font-style: normal; }

/* ==================== WORKS / GALLERY ==================== */
.works .section-head { max-width: 60ch; }
.gallery {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 2.6vw, 2rem);
}
.gallery-item {
  position: relative; cursor: pointer; border: none; background: none; padding: 0; text-align: left;
  font-family: inherit; color: inherit; display: block; width: 100%;
}
.gallery-figure {
  aspect-ratio: 3 / 4; overflow: hidden; position: relative; background: var(--nero);
}
.gallery-figure img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  transition: transform 1.1s var(--ease), filter 0.6s var(--ease);
}
.gallery-item:hover .gallery-figure img, .gallery-item:focus-visible .gallery-figure img { transform: scale(1.06); }
.gallery-figure::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(20,18,15,0.75) 0%, rgba(20,18,15,0) 45%);
  opacity: 0; transition: opacity 0.5s var(--ease);
}
.gallery-item:hover .gallery-figure::after, .gallery-item:focus-visible .gallery-figure::after { opacity: 1; }
.gallery-glyph {
  position: absolute; right: 1rem; bottom: 1rem; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(252,251,248,0.7); color: var(--bianco);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(6px); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.gallery-item:hover .gallery-glyph, .gallery-item:focus-visible .gallery-glyph { opacity: 1; transform: translateY(0); }
.gallery-caption { padding-top: 0.9rem; }
.gallery-caption .title { font-family: var(--font-display); font-size: 1.15rem; }
.gallery-caption .medium { font-size: 0.84rem; color: var(--ink-soft); margin-top: 0.2rem; }
.gallery-caption .note { font-size: 0.76rem; letter-spacing: 0.03em; color: var(--oro-deep); margin-top: 0.35rem; }

.works-note { margin-top: 2.6rem; font-size: 0.9rem; color: var(--ink-soft); max-width: 60ch; }
.works-note strong { color: var(--ink); font-weight: 600; }

/* ==================== CONTACT ==================== */
.contact {
  background: var(--nero); color: var(--bianco);
  background-image: radial-gradient(circle at 85% 20%, rgba(169,129,63,0.18), transparent 55%);
}
.contact .section-head p { color: rgba(252,251,248,0.72); }
.contact .section-head .tag { color: var(--oro-light); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 1.1rem; margin-top: 2.2rem; }
.contact .btn { border-color: var(--oro-light); }
.contact .btn:hover, .contact .btn:focus-visible { background: var(--oro-light); color: var(--nero); }

/* ==================== FOOTER ==================== */
footer.site-footer {
  padding-block: 2.4rem; background: var(--nero); color: rgba(252,251,248,0.55);
  font-size: 0.8rem;
}
.footer-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.footer-row a { text-decoration: none; color: rgba(252,251,248,0.75); }
.footer-row a:hover { color: var(--oro-light); }

/* ==================== LIGHTBOX ==================== */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center;
  background: var(--nero);
  padding: clamp(1rem, 5vw, 3rem);
  overflow-y: auto;
}
body.lightbox-open .site-nav { visibility: hidden; }
.lightbox.is-open { display: flex; }
.lightbox-inner { max-width: 900px; width: 100%; text-align: center; }
.lightbox-inner img {
  max-height: 78vh; margin-inline: auto; box-shadow: 0 40px 80px -30px rgba(0,0,0,0.6);
  opacity: 0; transform: translateY(12px) scale(0.98);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.lightbox.is-open img { opacity: 1; transform: translateY(0) scale(1); }
.lightbox-caption { color: var(--bianco); margin-top: 1.2rem; font-family: var(--font-display); }
.lightbox-caption .medium { font-family: var(--font-body); font-size: 0.85rem; color: rgba(252,251,248,0.65); margin-top: 0.3rem; }
.lightbox-close {
  position: absolute; top: 1.5rem; right: clamp(1.25rem, 4vw, 2.5rem);
  background: none; border: 1px solid rgba(252,251,248,0.4); color: var(--bianco);
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer; font-size: 1.1rem;
  transition: background 0.3s var(--ease);
}
.lightbox-close:hover { background: rgba(252,251,248,0.15); }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo-wrap { max-width: 340px; }
  .gallery { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-links { position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px); height: 100svh;
    background: var(--bianco); color: var(--ink); flex-direction: column; align-items: flex-start;
    justify-content: center; gap: 1.6rem; padding: 2.5rem; transform: translateX(100%);
    transition: transform 0.45s var(--ease); box-shadow: -20px 0 50px rgba(0,0,0,0.15); }
  .nav-links.is-open { transform: translateX(0); }
  .nav-links a, .nav-links .lang-toggle { color: var(--ink) !important; }
  .nav-toggle-mobile {
    display: flex; flex-direction: column; gap: 5px; width: 26px; z-index: 101;
    background: none; border: none; cursor: pointer; padding: 0.5rem;
  }
  .nav-toggle-mobile span { height: 1.5px; background: currentColor; transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
  .site-nav:not(.is-scrolled) .nav-toggle-mobile { color: var(--bianco); }
  body.nav-open .nav-toggle-mobile span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  body.nav-open .nav-toggle-mobile span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle-mobile span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  body.nav-open { overflow: hidden; }
  .nav-scrim { position: fixed; inset: 0; background: rgba(20,18,15,0.4); z-index: 99; opacity: 0; pointer-events: none; transition: opacity 0.4s var(--ease); }
  body.nav-open .nav-scrim { opacity: 1; pointer-events: auto; }

  .gallery { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .credentials { font-size: 0.88rem; }
}
