/* ============================================================
   ANTONOVSKY.ME — CSS Design System
   Inspired by: Giacometti · Brancusi · Noguchi · Rothko
   Palette: warm ivory, peach, sand, espresso, taupe
   ============================================================ */

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

:root {
  /* Colour Palette */
  --ivory:        #F7F2EC;
  --ivory-warm:   #F2EBE0;
  --cream:        #EDE3D5;
  --peach:        #E8D5C0;
  --sand:         #D4BAA0;
  --taupe:        #B8997A;
  --clay:         #9C7A5E;
  --espresso:     #3A2A1E;
  --espresso-mid: #5C3D28;
  --text-primary: #2E1E14;
  --text-body:    #5A4232;
  --text-muted:   #9C8070;
  --text-light:   #C4A898;
  --accent-gold:  #C8A97A;
  --accent-warm:  #D4956A;
  --white:        #FFFFFF;

  /* Typography */
  --font-serif:  'Cormorant Garamond', Georgia, serif;
  --font-sans:   'Inter', -apple-system, sans-serif;

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  6rem;
  --space-2xl: 10rem;

  /* Layout */
  --max-w:     1320px;
  --gutter:    clamp(1.5rem, 5vw, 4rem);

  /* Transitions */
  --ease:      cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --dur:       0.45s;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--ivory);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  font-weight: 300;
  line-height: 1.75;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ── Utilities ── */
.section-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section-label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.section-heading {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.section-heading em {
  font-style: italic;
  color: var(--espresso-mid);
}

.section {
  padding-block: clamp(5rem, 10vw, 9rem);
}

/* ── Navigation ── */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding-block: 1.4rem;
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.site-header.scrolled {
  background: rgba(247, 242, 236, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(58, 42, 30, 0.08);
}

.nav-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--espresso);
}

.nav-links {
  display: flex;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
}

.nav-links a {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-body);
  transition: color var(--dur) var(--ease);
}

.nav-links a:hover { color: var(--espresso); }

.nav-cta {
  border-bottom: 1px solid var(--accent-gold);
  padding-bottom: 1px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--espresso);
  transition: all var(--dur) var(--ease);
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(ellipse 80% 70% at 30% 40%, var(--peach) 0%, var(--ivory) 55%, var(--cream) 100%);
}

/* Organic background blobs (Rothko / Noguchi inspired) */
.hero-bg { position: absolute; inset: 0; pointer-events: none; }

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
}

.blob-1 {
  width: clamp(400px, 55vw, 780px);
  height: clamp(400px, 55vw, 780px);
  background: radial-gradient(circle, #E8CDB0 0%, transparent 70%);
  top: -15%;
  right: -10%;
}

.blob-2 {
  width: clamp(300px, 35vw, 500px);
  height: clamp(300px, 35vw, 500px);
  background: radial-gradient(circle, #D4A87A 0%, transparent 70%);
  bottom: 5%;
  left: 20%;
  opacity: 0.25;
}

.blob-3 {
  width: clamp(200px, 25vw, 350px);
  height: clamp(200px, 25vw, 350px);
  background: radial-gradient(circle, #F0DEC8 0%, transparent 70%);
  top: 30%;
  left: -5%;
  opacity: 0.6;
}

.hero-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-block: 7rem 5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 7rem);
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Hero text */
.hero-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-eyebrow {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-name {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 7.5vw, 7rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--espresso);
}

.hero-tagline {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 300;
  font-style: italic;
  color: var(--espresso-mid);
  line-height: 1.4;
  margin-top: 0.5rem;
}

.hero-sub {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--text-body);
  line-height: 1.9;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  align-self: flex-start;
  margin-top: 0.5rem;
  padding: 0.85rem 2.2rem;
  background: var(--espresso);
  color: var(--ivory);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid var(--espresso);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.btn-primary:hover {
  background: transparent;
  color: var(--espresso);
  transform: translateY(-2px);
}

/* Hero art panel */
.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
}

.art-frame {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 2px;
  box-shadow:
    0 20px 60px rgba(58, 42, 30, 0.15),
    0 4px 16px rgba(58, 42, 30, 0.10);
}

.art-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 1.2s var(--ease);
}

.art-frame:hover .art-img { transform: scale(1.03); }

/* Stone decorative shapes (Noguchi inspired) */
.stone {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cream), var(--sand));
  box-shadow: inset 0 2px 8px rgba(58,42,30,0.08);
}

.stone-a {
  width: clamp(80px, 10vw, 140px);
  height: clamp(80px, 10vw, 140px);
  bottom: -20px;
  left: -30px;
  border-radius: 40% 60% 55% 45%;
  opacity: 0.85;
}

.stone-b {
  width: clamp(50px, 6vw, 90px);
  height: clamp(50px, 6vw, 90px);
  top: 10%;
  right: -15px;
  border-radius: 55% 45% 40% 60%;
  opacity: 0.65;
  background: linear-gradient(135deg, var(--peach), var(--taupe));
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
}

.scroll-line {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--taupe));
  animation: scrollPulse 2s var(--ease) infinite;
}

.scroll-label {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  writing-mode: vertical-rl;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.1); }
}

/* ── ABOUT ── */
.about { background: var(--ivory); }

.about-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: clamp(2rem, 5vw, 6rem);
  align-items: start;
}

.section-label-col {
  padding-top: 0.3rem;
}

.about-content { max-width: 680px; }

.about-body {
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  color: var(--text-body);
  line-height: 1.85;
  margin-bottom: 1.4rem;
}

.about-body strong { color: var(--espresso); font-weight: 500; }

.about-stat-row {
  display: flex;
  gap: clamp(2rem, 4vw, 4rem);
  margin-top: clamp(2rem, 4vw, 3.5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--peach);
}

.stat { display: flex; flex-direction: column; gap: 0.3rem; }

.stat-num {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 400;
  color: var(--espresso);
  line-height: 1;
}

.stat-desc {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── EXPERTISE ── */
.expertise {
  background: var(--ivory-warm);
  position: relative;
  overflow: hidden;
}

.expertise::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--sand), transparent);
}

.expertise-art {
  position: absolute;
  right: var(--gutter);
  top: 0;
  bottom: 0;
  display: flex;
  align-items: stretch;
  pointer-events: none;
}

.art-line-v {
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--peach) 20%, var(--peach) 80%, transparent);
  opacity: 0.6;
}

.section-header-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: clamp(3rem, 5vw, 5rem);
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--peach);
}

.expertise-card {
  background: var(--ivory-warm);
  padding: clamp(2rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: background var(--dur) var(--ease);
}

.expertise-card:hover { background: var(--ivory); }

.card-num {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  color: var(--text-light);
  letter-spacing: 0.05em;
}

.expertise-card h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  font-weight: 400;
  color: var(--espresso);
  line-height: 1.25;
}

.expertise-card p {
  font-size: 0.85rem;
  color: var(--text-body);
  line-height: 1.75;
  font-weight: 300;
}

/* ── EXPERIENCE ── */
.experience { background: var(--ivory); }

.experience-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: clamp(2rem, 5vw, 6rem);
  align-items: start;
}

.experience-content { max-width: 660px; }

.experience-content .section-heading {
  margin-bottom: clamp(2.5rem, 4vw, 4rem);
}

/* Timeline */
.timeline { display: flex; flex-direction: column; }

.timeline-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 2rem;
  padding-block: 2rem;
  border-top: 1px solid var(--peach);
  transition: opacity var(--dur) var(--ease);
}

.timeline-item:last-child { border-bottom: 1px solid var(--peach); }

.timeline-year {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding-top: 0.2rem;
  white-space: nowrap;
}

.timeline-body h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--espresso);
  margin-bottom: 0.3rem;
}

.timeline-body p {
  font-size: 0.85rem;
  color: var(--text-body);
  line-height: 1.65;
}

.timeline-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--taupe);
  border-bottom: 1px solid var(--sand);
  transition: color var(--dur) var(--ease);
}

.timeline-link:hover { color: var(--espresso); }

/* Education */
.education {
  margin-top: clamp(3rem, 5vw, 4.5rem);
  padding-top: clamp(2rem, 3vw, 3rem);
  border-top: 1px solid var(--peach);
}

.edu-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.edu-list { display: flex; flex-direction: column; gap: 0.9rem; }

.edu-list li {
  display: flex;
  gap: 1.5rem;
  font-size: 0.83rem;
  color: var(--text-body);
  line-height: 1.6;
}

.edu-year {
  color: var(--text-muted);
  white-space: nowrap;
  min-width: 54px;
}

/* ── PROJECTS ── */
.projects { background: var(--cream); }

.projects::before {
  content: '';
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--sand), transparent);
  margin-bottom: 0;
}

.projects-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--sand);
  margin-top: clamp(2.5rem, 4vw, 4rem);
}

.project-item {
  background: var(--cream);
  padding: clamp(1.8rem, 3vw, 2.8rem);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  transition: background var(--dur) var(--ease);
}

.project-item:hover { background: var(--peach); }

.project-geo {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--taupe);
}

.project-item h3 {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 400;
  color: var(--espresso);
  line-height: 1.4;
}

/* ── CONTACT ── */
.contact {
  background: var(--espresso);
  position: relative;
  overflow: hidden;
}

.contact-bg { position: absolute; inset: 0; pointer-events: none; }

.contact-blob {
  position: absolute;
  width: 70%;
  height: 140%;
  top: -20%;
  right: -15%;
  background: radial-gradient(ellipse at center, rgba(200, 169, 122, 0.18) 0%, transparent 65%);
  border-radius: 50%;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(3rem, 6vw, 8rem);
  align-items: center;
  position: relative;
  z-index: 1;
}

.contact-art {
  display: flex;
  justify-content: center;
  align-items: stretch;
  height: 100%;
}

.contact-line {
  width: 1px;
  min-height: 200px;
  background: linear-gradient(to bottom, transparent, var(--accent-gold), transparent);
  margin-inline: auto;
  opacity: 0.5;
}

.contact .section-label { color: var(--text-muted); margin-bottom: 1rem; }

.contact-heading-lg {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  color: var(--ivory);
  margin-bottom: 1.5rem;
}

.contact-heading-lg em { color: var(--accent-gold); }

.contact-body {
  font-size: clamp(0.88rem, 1.1vw, 1rem);
  color: var(--text-light);
  line-height: 1.85;
  max-width: 460px;
  margin-bottom: 2.5rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-link {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  font-weight: 400;
  color: var(--peach);
  border-bottom: 1px solid rgba(200, 169, 122, 0.3);
  padding-bottom: 0.3rem;
  align-self: flex-start;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.contact-link:hover {
  color: var(--accent-gold);
  border-color: var(--accent-gold);
}

/* ── FOOTER ── */
.site-footer {
  background: var(--espresso);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-block: 2.5rem;
}

.footer-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-name {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 400;
  color: var(--ivory);
  letter-spacing: 0.05em;
}

.footer-tagline {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-light);
}

.footer-copy {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-left: auto;
}

/* ── Animations / Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.22s; }
.reveal-delay-3 { transition-delay: 0.34s; }
.reveal-delay-4 { transition-delay: 0.46s; }

/* ── Mobile Navigation ── */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--ivory);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    z-index: 90;
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    font-size: 1rem;
    letter-spacing: 0.15em;
  }

  .nav-toggle { display: flex; position: relative; z-index: 101; }

  .nav-toggle.active span:first-child {
    transform: rotate(45deg) translate(4px, 4px);
  }

  .nav-toggle.active span:last-child {
    transform: rotate(-45deg) translate(4px, -4px);
  }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .about-grid,
  .experience-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .section-label-col { padding-top: 0; }

  .contact-inner {
    grid-template-columns: 1fr;
  }

  .contact-art { display: none; }
}

@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: 9rem;
    padding-bottom: 5rem;
    gap: 4rem;
  }

  .hero-art { order: -1; }

  .art-frame {
    max-width: 380px;
    aspect-ratio: 4 / 3;
  }

  .stone-a, .stone-b { display: none; }

  .projects-list { grid-template-columns: 1fr; }

  .about-stat-row { flex-wrap: wrap; gap: 2rem; }
}

@media (max-width: 600px) {
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .footer-copy { margin-left: 0; }

  .scroll-hint { display: none; }
}

/* ── Accessibility ── */
:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
