/* ── Fonts ─────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Libre+Caslon+Display&family=Jost:wght@300;400;500&display=swap');

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --green:        #326446;
  --green-light:  #4a9466;
  --green-dim:    rgba(50, 100, 70, 0.18);
  --bg:           #0b0e0c;
  --text:         #dce8e0;
  --text-muted:   #6a8a75;
  --white:        #ffffff;
  --anim-fast:    0.9s;
  --anim-medium:  1.2s;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
}

/* ── Atmosphere & Background ────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 55% at 50% -5%,  rgba(50,100,70,.13) 0%, transparent 65%),
    radial-gradient(ellipse 50% 50% at 95% 95%,  rgba(50,100,70,.06) 0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 5%  80%,  rgba(50,100,70,.04) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}



/* ── Layout & Components ────────────────────────────────── */
main {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5rem 2rem 4rem;
  width: 100%;
  max-width: 560px;
}

.connector {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, rgba(50,100,70,.6), transparent);
  margin-bottom: 2.4rem;
  opacity: 0;
  animation: fadeIn var(--anim-fast) ease 0.55s forwards;
}

.name {
  font-family: 'Libre Caslon Display', serif;
  font-size: 2.4rem;
  line-height: 1;
  text-align: center;
  opacity: 0;
  transform: translateY(14px);
  animation: riseIn 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}

.name-first {
  letter-spacing: 0.06em;
  font-weight: 200;
  color: var(--green-light);
  color: var(--white);
}

.name-surname {
  letter-spacing: 0.05em;
  font-weight: 500;
  color: var(--white);
  color: var(--green-light);
  /* font-style: italic; */
}

.tagline {
  margin-top: 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  opacity: 0;
  animation: fadeIn var(--anim-fast) ease 0.6s forwards;
}

.rule {
  margin: 2.6rem 0;
  width: 32px;
  height: 1px;
  background: var(--green-dim);
  opacity: 0;
  animation: fadeIn var(--anim-fast) ease 0.75s forwards;
}


/* ── Footer ─────────────────────────────────────────────── */
footer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 2;
  text-align: center;
  padding: 1.4rem;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  color: rgba(106, 138, 117, 0.3);
  pointer-events: none;
}

/* ── Logo Animation ────────────────────────────────────── */
.logo-wrapper {
  margin-bottom: 2.4rem;
  opacity: 0;
  animation: fadeIn var(--anim-fast) ease 0.4s forwards;
}

.logo-wrapper svg {
  width: 180px;
  height: auto;
}

/* Logo element colors */
#fill_6  { fill: var(--green); }
#fill_9 { fill: var(--white); }

#group_shadows {
  fill: black;
  opacity: 0.2;
}

#stroke_6,
#stroke_9 {
  stroke: var(--white);
  stroke-width: 10;
  stroke-linecap: round;
  fill: none;
}

/* Mask animation paths */
#mask-path-stroke_6,
#mask-path-stroke_9,
#mask-path-fill_6,
#mask-path-fill_9 {
  stroke: white;
  stroke-width: 210;
  stroke-linecap: round;
  fill: none;
  stroke-dasharray: 2585;
  stroke-dashoffset: -2585;
}

#mask-ellipse_shadows {
  fill: white;
  rx: 0;
  ry: 0;
}

/* Mask animations */
#mask-path-stroke_6,
#mask-path-stroke_9 {
  animation: draw 1.8s cubic-bezier(0.55, 0.06, 0, 1) forwards;
}

#mask-path-fill_6,
#mask-path-fill_9 {
  animation: draw 1.8s cubic-bezier(0, 0, 0.58, 1) forwards 0.3s;
}

#mask-ellipse_shadows {
  animation: ellipse-h 0.1s forwards 1.7s, ellipse-v 0.8s forwards 1.7s;
}

#stroke_6,
#stroke_9 {
  animation: color-change 1.8s cubic-bezier(0.55, 0.06, 0, 1) forwards 1s;
}

/* Logo Keyframes */
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes color-change {
  from { stroke: white; }
  to { stroke: #0b0e0c; }
}
@keyframes ellipse-h {
  from { rx: 0; ry: 0; }
  to { rx: 400; ry: 10; }
}
@keyframes ellipse-v {
  from { rx: 400; ry: 10; }
  to { rx: 400; ry: 365; }
}

/* ── Layout Keyframes ──────────────────────────────────── */
@keyframes riseIn { to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes fadeIn { to { opacity: 1; } }

/* ── Social links ───────────────────────────────────────── */
.socials {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  margin-top: 2.4rem;
  opacity: 0;
  animation: fadeIn var(--anim-fast) ease 0.9s forwards;
}

.socials a {
  display: flex;
  align-items: center;
  gap: 0.45em;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: color 0.3s;
  position: relative;
}

.socials a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--green-light);
  transition: width 0.3s ease;
}

.socials a:hover { color: var(--green-light); }
.socials a:hover::after { width: 100%; }

.socials svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(50,100,70,.4);
  flex-shrink: 0;
}

/* ── Contact ────────────────────────────────────────────── */
.contact {
  margin-top: 1.8rem;
  opacity: 0;
  animation: fadeIn var(--anim-fast) ease 1.05s forwards;
}

.contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border: 1px solid var(--green-dim);
  padding: 0.65em 1.5em;
  border-radius: 2px;
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}

.contact a svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.contact a:hover {
  color: var(--white);
  border-color: rgba(50,100,70,.5);
  background: rgba(50,100,70,.07);
}
@media (max-width: 420px) {
  .corner { display: none; }
  .logo-wrapper svg { width: 140px; }
  .socials { gap: 1rem; flex-wrap: wrap; justify-content: center; }
}