/* giannopoulos.art — shared styles for all pages */

:root {
  --bg: #0e0d0b;
  --ink: #f2efe9;
  --muted: #9a958c;
  --accent: #d8b45c;
  --line: rgba(242, 239, 233, 0.14);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  min-height: 100vh;
  position: relative;
}

/* Home page centers its hero content */
body.home {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 1rem 2rem;
}

/* Subtle animated backdrop */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(60% 50% at 20% 15%, rgba(216, 180, 92, 0.08), transparent 60%),
    radial-gradient(50% 40% at 85% 80%, rgba(216, 180, 92, 0.05), transparent 60%);
}

.grain {
  position: fixed;
  inset: -50%;
  z-index: 1;
  opacity: 0.05;
  pointer-events: none;
  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'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: drift 18s linear infinite alternate;
}

@keyframes drift {
  from { transform: translate(0, 0); }
  to   { transform: translate(4%, 3%); }
}

/* Site navigation */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 4;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem 2.25rem;
  padding: 1.1rem 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  background: linear-gradient(to bottom, rgba(14, 13, 11, 0.85), transparent);
}

.site-nav a { color: var(--muted); text-decoration: none; transition: color 0.3s; }
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--accent); }

main {
  position: relative;
  z-index: 2;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 3rem 2rem;
  text-align: center;
}

main.wide { max-width: 860px; }

/* Subpages clear the fixed nav */
body:not(.home) main { padding-top: 5.5rem; }

.monogram {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  font-weight: 400;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  color: var(--ink);
  animation: rise 1s ease-out both;
}

.page-head .monogram { font-size: clamp(1.6rem, 4vw, 2.5rem); }

.domain {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  letter-spacing: 0.45em;
  text-indent: 0.45em;
  text-transform: uppercase;
  color: var(--accent);
  animation: rise 1s ease-out 0.15s both;
}

.rule {
  width: 64px;
  height: 1px;
  margin: 2.25rem auto;
  background: var(--line);
  position: relative;
  overflow: hidden;
  animation: rise 1s ease-out 0.3s both;
}

.rule::after {
  content: "";
  position: absolute;
  top: 0; left: -40%;
  width: 40%; height: 100%;
  background: var(--accent);
  animation: sweep 3.2s ease-in-out infinite;
}

@keyframes sweep { 0% { left: -40%; } 100% { left: 110%; } }

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  letter-spacing: 0.06em;
  animation: rise 1s ease-out 0.45s both;
}

p.tagline {
  margin: 1rem auto 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 46ch;
  animation: rise 1s ease-out 0.6s both;
}


/* Photo carousel */
.carousel { margin-top: 2.75rem; animation: rise 1s ease-out 0.75s both; }

.frame {
  position: relative;
  aspect-ratio: 16 / 10;
  max-width: 560px;
  margin: 0 auto;
  border: 1px solid var(--line);
  background: #14120e;
  overflow: hidden;
}

.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.9s ease; }
.slide.active { opacity: 1; }

.slide svg,
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; }

.slide figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.4rem 1.25rem 0.8rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-align: left;
  background: linear-gradient(to top, rgba(14, 13, 11, 0.9), transparent);
}

.nav { display: flex; justify-content: center; gap: 2.5rem; margin-top: 1rem; }

.nav button {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: none;
  color: var(--ink);
  font-size: 1rem;
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s;
}

.nav button:hover,
.nav button:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  outline: none;
}

.dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1rem; }

.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
}

.dot.active { background: var(--accent); border-color: var(--accent); }

/* About teaser (home page) */
.about {
  margin-top: 3.5rem;
  padding-top: 2.75rem;
  border-top: 1px solid var(--line);
  max-width: 640px;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 2rem;
  align-items: center;
  text-align: left;
  animation: rise 1s ease-out 1.5s both;
}

.portrait {
  width: 110px; height: 110px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: radial-gradient(120% 120% at 30% 20%, #242017, #14120e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  color: var(--accent);
}

img.portrait { object-fit: cover; }

.signature {
  margin-top: 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  color: var(--accent);
}

.more-link {
  display: inline-block;
  margin-top: 1.1rem;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(216, 180, 92, 0.35);
  padding-bottom: 2px;
  transition: border-color 0.3s;
}

.more-link:hover { border-bottom-color: var(--accent); }

/* Explore cards (about page) */
.explore {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}

.explore a {
  display: block;
  padding: 1.4rem 1rem;
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  transition: border-color 0.3s, color 0.3s;
}

.explore a:hover,
.explore a:focus-visible { border-color: var(--accent); color: var(--accent); }

/* Contact page */
.email-big {
  display: inline-block;
  margin-top: 1.25rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(216, 180, 92, 0.35);
  padding-bottom: 2px;
  transition: border-color 0.3s;
}

.email-big:hover { border-bottom-color: var(--accent); }

.contact-note { margin-top: 1rem; font-size: 0.8rem; color: var(--muted); }

.contact-form {
  max-width: 520px;
  margin: 1.5rem auto 0;
  display: grid;
  gap: 0.9rem;
}

.contact-form label {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: #14120e;
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.92rem;
  padding: 0.8rem 0.9rem;
}

.contact-form textarea { min-height: 140px; resize: vertical; }

.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--accent); }

.contact-form button {
  justify-self: center;
  margin-top: 0.5rem;
  padding: 0.85rem 2.25rem;
  border: 1px solid var(--accent);
  background: none;
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

.contact-form button:hover { background: var(--accent); color: var(--bg); }

/* Simple centered list (privacy page) */
.plain-list { list-style: none; max-width: 560px; margin: 1rem auto 0; }
.plain-list li { padding: 0.45rem 0; color: var(--muted); font-size: 0.95rem; line-height: 1.7; }
.plain-list li::before { content: "\2014\00a0"; color: var(--accent); }

/* About page sections */
.section {
  margin-top: 3.25rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
  text-align: center;
  animation: rise 1s ease-out both;
}

main > section:nth-of-type(1) { animation-delay: 0.75s; }
main > section:nth-of-type(2) { animation-delay: 0.9s; }
main > section:nth-of-type(3) { animation-delay: 1.05s; }
main > section:nth-of-type(4) { animation-delay: 1.2s; }
main > section:nth-of-type(5) { animation-delay: 1.35s; }

.section h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: 1.25rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 1rem;
}

.section p { color: var(--muted); font-size: 0.95rem; line-height: 1.8; max-width: 62ch; margin-left: auto; margin-right: auto; }
.section p + p { margin-top: 0.9rem; }

/* Works list (cinematography, writing, games) */
.work-list { list-style: none; margin: 1.5rem auto 0; max-width: 520px; }

.work-list li { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }

.work-list .title {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink);
}

.work-list .role { display: block; margin-top: 0.4rem; color: var(--muted); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; }
.work-list .year { display: block; margin-top: 0.4rem; color: var(--accent); font-variant-numeric: tabular-nums; }

/* Photo grid */
.photo-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.photo-grid figure {
  position: relative;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  background: #14120e;
  overflow: hidden;
}

.photo-grid svg,
.photo-grid img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.photo-grid figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.2rem 0.8rem 0.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-align: center;
  background: linear-gradient(to top, rgba(14, 13, 11, 0.9), transparent);
}

footer {
  margin-top: 3rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  animation: rise 1s ease-out 1.65s both;
}

footer a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(216, 180, 92, 0.35);
  padding-bottom: 1px;
}

footer a:hover { border-bottom-color: var(--accent); }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
  .photo-grid { grid-template-columns: 1fr 1fr; }
  .explore { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .about { grid-template-columns: 1fr; justify-items: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
