/* ============================================
   VON AI STUDIO — variables & reset
   ============================================ */
:root {
  --ivory: #F7F6F3;
  --greige: #EDEAE0;
  --sage: #B3BDB5;
  --graphite: #202020;
  --rose: #CEC0B5;

  --serif: 'Cormorant Garamond', serif;
  --sans: 'DM Sans', sans-serif;

  --container: 1180px;
  --gutter: clamp(24px, 5vw, 80px);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--graphite);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ============================================
   FIXED BACKGROUND (parallax)
   A real position:fixed element rather than
   background-attachment:fixed, which iOS Safari
   never reliably supported.
   ============================================ */
.site-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: url("../img/hero-bg.jpg");
  background-size: cover;
  background-position: center 25%;
  background-repeat: no-repeat;
}

.site-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(247, 246, 243, 0.58);
}

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

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

ul, ol { padding: 0; margin: 0; list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  margin: 0;
  color: var(--graphite);
}

p { margin: 0; }

section {
  padding: clamp(80px, 12vw, 160px) var(--gutter);
}

.section-label {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--graphite);
  opacity: 0.55;
  margin-bottom: 20px;
}

/* language visibility toggle */
[data-lang="es"] .lang-en { display: none; }
[data-lang="en"] .lang-es { display: none; }
[data-lang="es"] a.lang-en { display: none; }
[data-lang="en"] a.lang-es { display: none; }

/* ============================================
   GLASS (frosted transparency)
   ============================================ */
.glass {
  background: rgba(247, 246, 243, 0.55);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 1px 1px rgba(32, 32, 32, 0.03);
}

/* ============================================
   CURSOR SPOTLIGHT
   ============================================ */
.spotlight {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(
    30px circle at var(--mx, 50%) var(--my, 40%),
    rgba(255, 255, 255, 0.75),
    rgba(255, 255, 255, 0.28) 55%,
    transparent 100%
  );
  mix-blend-mode: soft-light;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.spotlight.active { opacity: 1; }

@media (hover: none), (pointer: coarse) {
  .spotlight { display: none; }
}

/* ============================================
   HEADER / NAV
   ============================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px var(--gutter) 0;
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 28px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  font-weight: 500;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  gap: 36px;
}

.main-nav a {
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  color: var(--graphite);
  opacity: 0.7;
  transition: opacity 0.25s ease;
  position: relative;
}

.main-nav a:hover { opacity: 1; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.lang-toggle {
  background: none;
  border: 1px solid rgba(32,32,32,0.18);
  border-radius: 20px;
  padding: 6px 14px;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  color: var(--graphite);
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-opt {
  opacity: 0.4;
  transition: opacity 0.2s ease;
}

.lang-sep { opacity: 0.3; }

[data-lang="es"] .lang-opt[data-set-lang="es"] { opacity: 1; font-weight: 500; }
[data-lang="en"] .lang-opt[data-set-lang="en"] { opacity: 1; font-weight: 500; }

.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-btn span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--graphite);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-block;
  padding: 14px 34px;
  border: 1px solid var(--graphite);
  border-radius: 2px;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  transition: background 0.3s ease, color 0.3s ease;
}

.btn-primary {
  background: var(--graphite);
  color: var(--ivory);
}

.btn-primary:hover {
  background: transparent;
  color: var(--graphite);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-top: 140px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) clamp(28px, 6vw, 80px);
  border-radius: 28px;
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 28px;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(3rem, 9vw, 6rem);
  letter-spacing: 0.03em;
  line-height: 1;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-family: var(--sans);
  font-size: clamp(0.9rem, 1.6vw, 1.05rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--graphite);
  opacity: 0.6;
  margin-bottom: 36px;
}

.hero-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  line-height: 1.5;
  max-width: 600px;
  margin: 0 auto 48px;
  color: var(--graphite);
}

.hero-line {
  position: absolute;
  z-index: 1;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--graphite));
  opacity: 0.35;
}

/* ============================================
   BIO
   ============================================ */
.bio-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(40px, 8vw, 100px);
  align-items: start;
}

.bio-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 6px;
}

.bio-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--greige);
}

.bio-monogram {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14rem;
  color: var(--rose);
  opacity: 0.7;
  line-height: 1;
}

.bio-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bio-frame {
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(32,32,32,0.15);
  pointer-events: none;
}

.bio-content {
  padding: clamp(32px, 4vw, 48px);
  border-radius: 24px;
}

.bio-text p {
  font-size: 1.05rem;
  margin-bottom: 24px;
  color: var(--graphite);
  opacity: 0.85;
  max-width: 620px;
}

.bio-text p:last-child { margin-bottom: 0; }

/* ============================================
   SERVICES
   ============================================ */
.services-inner {
  max-width: var(--container);
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.service-tile {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid rgba(32,32,32,0.1);
}

.tile-bg {
  position: absolute;
  inset: 0;
  transition: transform 0.7s cubic-bezier(0.19, 1, 0.22, 1);
}

.tile-1 .tile-bg { background: linear-gradient(150deg, var(--greige) 0%, var(--rose) 130%); }
.tile-2 .tile-bg { background: linear-gradient(150deg, var(--sage) 0%, var(--greige) 130%); }
.tile-3 .tile-bg { background: linear-gradient(150deg, var(--rose) 0%, var(--sage) 130%); }

.tile-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  filter: grayscale(55%) brightness(1.25) contrast(0.9);
}

.tile-1 .tile-bg img { object-position: center 25%; }
.tile-2 .tile-bg img { object-position: center 20%; }
.tile-3 .tile-bg img { object-position: center 30%; }

/* colour wash: lets the tile's own base tone show through the photo
   so it reads as texture rather than a full photo */
.tile-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.7;
}

.tile-1 .tile-bg::before { background: linear-gradient(150deg, var(--greige) 0%, var(--rose) 130%); }
.tile-2 .tile-bg::before { background: linear-gradient(150deg, var(--sage) 0%, var(--greige) 130%); }
.tile-3 .tile-bg::before { background: linear-gradient(150deg, var(--rose) 0%, var(--sage) 130%); }

.tile-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
}

.service-tile:hover .tile-bg { transform: scale(1.06); }

.tile-index {
  position: absolute;
  top: 22px;
  left: 24px;
  z-index: 2;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--graphite);
  opacity: 0.55;
}

.tile-label {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.tile-label h3 {
  font-size: 1.65rem;
  line-height: 1.2;
  color: var(--graphite);
}

.service-tile:hover .tile-label {
  opacity: 0;
  transform: translateY(8px);
}

.tile-chevron { display: none; }

.tile-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(32, 32, 32, 0.84);
  color: var(--ivory);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.service-tile:hover .tile-overlay,
.service-tile.touch-active .tile-overlay {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.service-tile.touch-active .tile-label {
  opacity: 0;
  transform: translateY(8px);
}

.tile-overlay h3 {
  color: var(--ivory);
  font-size: 1.4rem;
  margin-bottom: 14px;
}

.tile-overlay > p {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-bottom: 20px;
}

.tile-more {
  align-self: flex-start;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--ivory);
  cursor: pointer;
  border-bottom: 1px solid rgba(247,246,243,0.4);
  padding-bottom: 2px;
  transition: border-color 0.25s ease, opacity 0.25s ease;
}

.tile-more:hover {
  border-color: rgba(247,246,243,0.9);
}

@media (hover: none) {
  .service-tile { aspect-ratio: auto; }
  .tile-bg { position: relative; aspect-ratio: 4 / 3; }

  .tile-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }

  .tile-chevron {
    display: flex;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    color: var(--graphite);
    transition: transform 0.35s ease;
  }

  .service-tile.touch-active .tile-chevron {
    transform: rotate(180deg);
  }
}

/* ============================================
   SERVICE PANELS (expanded detail, in-flow)
   ============================================ */
.service-panels {
  margin-top: 8px;
}

.service-panel {
  display: grid;
  grid-template-rows: 0fr;
  scroll-margin-top: 110px;
  transition: grid-template-rows 0.55s cubic-bezier(0.19, 1, 0.22, 1);
}

.service-panel.open {
  grid-template-rows: 1fr;
}

.panel-clip {
  overflow: hidden;
  min-height: 0;
}

.panel-inner {
  position: relative;
  margin-top: 24px;
  padding: 48px var(--gutter) 56px;
  border-radius: 6px;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
}

.service-panel.open .panel-inner {
  opacity: 1;
  transform: translateY(0);
}

.panel-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(32,32,32,0.2);
  border-radius: 50%;
  background: transparent;
  color: var(--graphite);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.panel-close:hover {
  background: var(--graphite);
  color: var(--ivory);
}

.panel-inner > h3 {
  font-size: 1.8rem;
  margin-bottom: 32px;
  padding-right: 48px;
}

.panel-lead {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(32,32,32,0.12);
}

.panel-lead h4,
.panel-add h4 {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 8px;
}

.panel-lead p {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-style: italic;
  max-width: 60ch;
}

.panel-groups {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.panel-group h4 {
  font-size: 1.05rem;
  margin-bottom: 14px;
}

.panel-group ul {
  column-width: 220px;
  column-count: 3;
  column-gap: 32px;
}

.panel-group li {
  font-size: 0.9rem;
  line-height: 1.4;
  padding: 6px 0 6px 15px;
  position: relative;
  break-inside: avoid;
}

.panel-group li::before {
  content: '—';
  position: absolute;
  left: 0;
  opacity: 0.45;
}

.panel-add {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(32,32,32,0.12);
}

.panel-add p {
  font-size: 0.95rem;
  max-width: 70ch;
}

.panel-mode {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(32,32,32,0.2);
  font-size: 0.95rem;
}

.panel-mode strong {
  font-weight: 500;
}

@media (max-width: 640px) {
  .panel-inner { padding: 40px 20px 44px; }
  .panel-group ul { column-count: 1; }
}

/* ============================================
   HOW I WORK
   ============================================ */
.how-inner {
  max-width: var(--container);
  margin: 0 auto;
}

.how-intro {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.4rem;
  margin-bottom: 56px;
  max-width: 560px;
}

.how-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: clamp(40px, 6vw, 90px);
}

.how-block {
  padding: clamp(28px, 4vw, 40px);
  border-radius: 24px;
}

.how-block h3 {
  font-size: 1.7rem;
  margin-bottom: 18px;
}

.how-block > p {
  font-size: 0.98rem;
  opacity: 0.8;
  margin-bottom: 20px;
  max-width: 520px;
}

.how-phases li {
  display: flex;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid rgba(32,32,32,0.12);
  font-size: 0.95rem;
  opacity: 0.85;
}

.how-phases li:last-child {
  border-bottom: 1px solid rgba(32,32,32,0.12);
}

.how-phases li span {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--rose);
  flex-shrink: 0;
  width: 28px;
}

/* ============================================
   PROJECT
   ============================================ */
.project-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) clamp(28px, 6vw, 72px);
  border-radius: 28px;
}

.project h2 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin-bottom: 20px;
}

.project-subtitle {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  opacity: 0.75;
  max-width: 640px;
  margin-bottom: 56px;
}

.project-shots {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
  margin-bottom: 64px;
}

.project-shots img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid rgba(32,32,32,0.12);
  background: var(--ivory);
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr;
}

.project-col {
  display: grid;
  grid-template-columns: 200px 1fr;
  column-gap: 48px;
  row-gap: 32px;
  align-items: start;
}

.project-col h4 {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.5;
  margin: 0;
  padding-top: 6px;
}

.project-col p {
  font-size: 0.98rem;
  opacity: 0.85;
  margin: 0;
}

.project-col ul {
  column-count: 2;
  column-gap: 40px;
}

.project-col li {
  font-size: 0.92rem;
  opacity: 0.85;
  padding: 8px 0 8px 18px;
  position: relative;
  border-bottom: 1px solid rgba(32,32,32,0.1);
  break-inside: avoid;
}

.project-col li::before {
  content: '—';
  position: absolute;
  left: 0;
  opacity: 0.5;
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
  text-align: center;
}

.contact-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 64px) clamp(32px, 6vw, 56px);
  border-radius: 28px;
}

.contact h2 {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  margin-bottom: 20px;
}

.contact > .contact-inner > p {
  font-size: 1.1rem;
  opacity: 0.75;
  margin-bottom: 56px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 8px 28px;
  border-radius: 18px;
  text-align: left;
}

.contact-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 4px;
  border-top: 1px solid rgba(32,32,32,0.15);
  font-size: 1.05rem;
  transition: opacity 0.25s ease;
}

.contact-links a:last-child {
  border-bottom: 1px solid rgba(32,32,32,0.15);
}

.contact-link:hover { opacity: 0.6; }

.contact-label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.5;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  padding: 48px var(--gutter) 40px;
  border-top: 1px solid rgba(32,32,32,0.1);
  background: rgba(247, 246, 243, 0.75);
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  font-size: 0.95rem;
  opacity: 0.6;
}

.site-footer p {
  font-size: 0.8rem;
  opacity: 0.5;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .bio-inner,
  .how-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-col {
    grid-template-columns: 1fr;
    row-gap: 10px;
  }

  .project-col h4 { padding-top: 0; }

  .project-col ul {
    column-count: 1;
  }

  .bio-visual { max-width: 320px; margin: 0 auto; }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .project-shots {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    padding-top: 90px;
    box-sizing: border-box;
    background: var(--ivory);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    overflow-y: auto;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s ease, opacity 0.35s ease;
    z-index: 90;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav a { font-size: 1.1rem; opacity: 0.85; }

  .menu-btn { display: flex; }

  .menu-btn.open span:first-child { transform: translateY(3px) rotate(45deg); }
  .menu-btn.open span:last-child { transform: translateY(-3px) rotate(-45deg); }

  section { padding: 72px 24px; }

  .hero { padding-top: 120px; }
}

@media (max-width: 480px) {
  .lang-toggle { padding: 5px 10px; }
  .logo { font-size: 1rem; }
}
