/* ============================================================
   ARLO — ethereal portfolio site
   ============================================================ */

:root {
  --bg: #0b0910;
  --bg-soft: #14101a;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-border: rgba(255, 255, 255, 0.08);
  --text: #f3eef7;
  --text-muted: #b7abc4;
  --text-faint: #7c7189;
  --glow-rose: #f3b6d3;
  --glow-lilac: #b9a3e3;
  --glow-teal: #8fd9cf;
  --glow-gold: #e7c98f;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --max: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

::selection {
  background: var(--glow-lilac);
  color: #12101a;
}

/* ---------------- Ambient glow background ---------------- */

.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  mix-blend-mode: screen;
  animation: drift 26s ease-in-out infinite alternate;
}

.orb.rose {
  width: 46vw; height: 46vw;
  top: -12vw; left: -10vw;
  background: radial-gradient(circle, var(--glow-rose), transparent 65%);
  animation-duration: 30s;
}

.orb.lilac {
  width: 40vw; height: 40vw;
  top: 30vh; right: -12vw;
  background: radial-gradient(circle, var(--glow-lilac), transparent 65%);
  animation-duration: 24s;
  animation-delay: -6s;
}

.orb.teal {
  width: 34vw; height: 34vw;
  bottom: -10vw; left: 20vw;
  background: radial-gradient(circle, var(--glow-teal), transparent 65%);
  animation-duration: 34s;
  animation-delay: -12s;
}

@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(3vw, 4vh) scale(1.08); }
  100% { transform: translate(-4vw, -2vh) scale(0.96); }
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  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.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------------- Layout helpers ---------------- */

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 2;
}

section { position: relative; z-index: 2; }

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--glow-rose);
  margin: 0 0 16px;
}

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

h1 { font-size: clamp(48px, 9vw, 108px); line-height: 1.02; font-weight: 500; }
h2 { font-size: clamp(32px, 5vw, 52px); line-height: 1.1; }
h3 { font-size: clamp(20px, 2.4vw, 26px); }

p { color: var(--text-muted); font-size: 16px; }

.lede {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--text-muted);
  max-width: 56ch;
}

/* ---------------- Reveal on scroll ---------------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s cubic-bezier(.2,.7,.2,1), transform 1s cubic-bezier(.2,.7,.2,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .12s; }
.reveal-delay-2 { transition-delay: .24s; }
.reveal-delay-3 { transition-delay: .36s; }

/* ---------------- Nav ---------------- */

.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 32px;
  background: rgba(11, 9, 16, 0.55);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.brand {
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: 0.12em;
  font-weight: 600;
  background: linear-gradient(120deg, var(--text), var(--glow-lilac));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  position: relative;
  padding-bottom: 4px;
  transition: color .3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: linear-gradient(90deg, var(--glow-rose), var(--glow-lilac));
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 60;
}
.nav-toggle span {
  width: 22px;
  height: 1px;
  background: var(--text);
  display: block;
  transition: transform .3s ease, opacity .3s ease;
}

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    background: rgba(11, 9, 16, 0.97);
    backdrop-filter: blur(20px);
    transform: translateY(-100%);
    opacity: 0;
    transition: transform .5s cubic-bezier(.2,.7,.2,1), opacity .4s ease;
    pointer-events: none;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a { font-size: 16px; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 34px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.22);
  color: var(--text);
  transition: border-color .35s ease, background .35s ease, transform .35s ease;
  background: rgba(255,255,255,0.03);
}

.btn:hover {
  border-color: transparent;
  background: linear-gradient(120deg, var(--glow-rose), var(--glow-lilac));
  color: #14101a;
  transform: translateY(-2px);
}

.btn.ghost {
  border-color: rgba(255,255,255,0.14);
  background: transparent;
}

/* ---------------- Hero ---------------- */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  position: relative;
  padding: 160px 0 80px;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: saturate(0.9) brightness(0.72);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11,9,16,0.15) 0%, rgba(11,9,16,0.35) 45%, rgba(11,9,16,0.96) 100%),
    linear-gradient(90deg, rgba(11,9,16,0.55) 0%, rgba(11,9,16,0.05) 45%);
}

.hero-content { position: relative; z-index: 2; }

.hero-content .eyebrow { color: var(--glow-gold); }

.hero-content h1 { margin-bottom: 22px; }

.hero-actions {
  display: flex;
  gap: 18px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.scroll-cue {
  position: absolute;
  bottom: 36px;
  right: 40px;
  z-index: 2;
  writing-mode: vertical-rl;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  gap: 14px;
}

.scroll-cue::after {
  content: "";
  width: 1px;
  height: 46px;
  background: linear-gradient(180deg, var(--text-faint), transparent);
}

/* ---------------- Section spacing ---------------- */

.section { padding: 130px 0; }
.section.tight { padding: 90px 0; }
.section-head { max-width: 640px; margin-bottom: 64px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------------- Intro / About blocks ---------------- */

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: center;
}

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 48px; }
}

.split.reverse .media { order: 2; }
.split.reverse .copy { order: 1; }
@media (max-width: 900px) {
  .split.reverse .media,
  .split.reverse .copy { order: initial; }
}

.frame {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--panel-border);
}

.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
  transition: transform 1.2s cubic-bezier(.2,.7,.2,1);
}

.frame:hover img { transform: scale(1.045); }

.frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 4px;
  transform: translate(14px, 14px);
  z-index: -1;
  pointer-events: none;
}

.stat-row {
  display: flex;
  gap: 48px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.stat .num {
  font-family: var(--serif);
  font-size: 34px;
  color: var(--glow-rose);
  display: block;
}

.stat .label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ---------------- Services / offerings ---------------- */

.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--panel-border);
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  overflow: hidden;
}

@media (max-width: 780px) {
  .offer-grid { grid-template-columns: 1fr; }
}

.offer {
  background: var(--bg-soft);
  padding: 46px 38px;
  transition: background .4s ease;
}

.offer:hover { background: rgba(255,255,255,0.035); }

.offer .index {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--glow-teal);
  letter-spacing: 0.1em;
}

.offer h3 { margin: 20px 0 14px; }
.offer p { font-size: 14.5px; margin: 0; }

/* ---------------- Featured strip / masonry gallery ---------------- */

.strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.strip a {
  grid-row: span 1;
  overflow: hidden;
  border-radius: 3px;
  display: block;
}

.strip a:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.strip a:nth-child(4) { grid-column: span 2; }
.strip a:nth-child(5) { grid-column: span 2; }
.strip a:nth-child(6) { grid-column: span 2; }

.strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  filter: saturate(0.92) brightness(0.9);
  transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .5s ease;
}

.strip a:nth-child(1) img { aspect-ratio: 1/1; }

.strip a:hover img {
  transform: scale(1.07);
  filter: saturate(1) brightness(1);
}

@media (max-width: 780px) {
  .strip { grid-template-columns: repeat(2, 1fr); }
  .strip a:nth-child(1) { grid-column: span 2; grid-row: span 1; }
  .strip a:nth-child(4), .strip a:nth-child(5), .strip a:nth-child(6) { grid-column: span 1; }
}

.masonry {
  column-count: 3;
  column-gap: 18px;
}

@media (max-width: 900px) { .masonry { column-count: 2; } }
@media (max-width: 560px) { .masonry { column-count: 1; } }

.masonry figure {
  margin: 0 0 18px;
  break-inside: avoid;
  border-radius: 3px;
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
}

.masonry img {
  width: 100%;
  display: block;
  filter: saturate(0.94) brightness(0.92);
  transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .5s ease;
}

.masonry figure:hover img {
  transform: scale(1.045);
  filter: saturate(1) brightness(1);
}

.masonry figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(11,9,16,0.55) 100%);
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}

.masonry figure:hover::after { opacity: 1; }

/* ---------------- Lightbox ---------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(9, 7, 13, 0.94);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease;
  padding: 40px;
}

.lightbox.open { opacity: 1; pointer-events: auto; }

.lightbox img {
  max-width: 90vw;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 3px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}

.lightbox-close {
  position: absolute;
  top: 28px;
  right: 34px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 15px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity .3s ease;
}
.lightbox-close:hover { opacity: 1; }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--serif);
  font-size: 34px;
  cursor: pointer;
  opacity: 0.55;
  padding: 12px 18px;
  transition: opacity .3s ease;
}
.lightbox-nav:hover { opacity: 1; }
.lightbox-nav.prev { left: 10px; }
.lightbox-nav.next { right: 10px; }

/* ---------------- Quote / CTA band ---------------- */

.quote-band {
  padding: 120px 0;
  text-align: center;
  position: relative;
}

.quote-band blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(24px, 3.6vw, 40px);
  color: var(--text);
  max-width: 820px;
  margin: 0 auto;
  line-height: 1.4;
}

.quote-band cite {
  display: block;
  margin-top: 24px;
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.cta-band {
  text-align: center;
  padding: 140px 0;
}

.cta-band h2 { margin-bottom: 22px; }

/* ---------------- Contact ---------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 56px; } }

.contact-links { margin-top: 40px; display: flex; flex-direction: column; gap: 18px; }

.contact-links a {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--serif);
  font-size: 22px;
  color: var(--text);
  border-bottom: 1px solid transparent;
  width: fit-content;
  transition: border-color .3s ease, color .3s ease;
}
.contact-links a:hover { border-color: var(--glow-rose); color: var(--glow-rose); }
.contact-links span { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-faint); }

.field {
  margin-bottom: 24px;
}

.field label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 10px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  padding: 14px 16px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  transition: border-color .3s ease, background .3s ease;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--glow-lilac);
  background: rgba(255,255,255,0.06);
}

.field textarea { resize: vertical; min-height: 130px; }

.form-note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-faint);
}

.form-success {
  display: none;
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(143, 217, 207, 0.4);
  background: rgba(143, 217, 207, 0.08);
  color: var(--glow-teal);
  font-size: 14px;
  border-radius: 4px;
}
.form-success.show { display: block; }
.form-success.error {
  border-color: rgba(224, 122, 122, 0.4);
  background: rgba(224, 122, 122, 0.08);
  color: #e07a7a;
}

/* ---------------- Footer ---------------- */

footer {
  border-top: 1px solid var(--panel-border);
  padding: 56px 0 40px;
  position: relative;
  z-index: 2;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.footer-links a:hover { color: var(--text); }

.footer-note {
  font-size: 12px;
  color: var(--text-faint);
  margin-top: 30px;
}

/* ---------------- Page hero (interior pages) ---------------- */

.page-hero {
  padding: 190px 0 70px;
  position: relative;
}

.page-hero .eyebrow { color: var(--glow-teal); }

/* ---------------- misc ---------------- */

.center-text { text-align: center; }
.mt-lg { margin-top: 64px; }
