

:root {
  --ink:       #1a1714;
  --parchment: #f0ead8;
  --aged:      #c8b99a;
  --dust:      #8c7d6a;
  --moss:      #4a5e45;
  --sage:      #7a9472;
  --fern:      #5c7558;
  --lichen:    #a8b89e;
  --shadow:    #0d0b09;
  --vellum:    #e8dfc8;
  --fog:       #2a2520;
  --stone:     #3d3830;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--ink);
  color: var(--parchment);
  font-family: 'Crimson Pro', serif;
  font-size: 18px;
  line-height: 1.7;
  overflow-x: hidden;
}


/* NOISE TEXTURE OVERLAY */

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


/* NAVIGATION */

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to bottom, rgba(26,23,20,0.97) 0%, rgba(26,23,20,0) 100%);
/*   border-bottom: 1px solid rgba(122,148,114,0.15);
 */}

.nav-sigil {
  font-family: 'IM Fell English', serif;
  font-size: 1.1rem;
  color: var(--sage);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--aged);
  text-decoration: none;
  font-family: 'Crimson Pro', serif;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--sage);
  transition: width 0.3s;
}

.nav-links a:hover        { color: var(--lichen); }
.nav-links a:hover::after { width: 100%; }

.nav-links a.current-page {
  color: var(--sage);
}

.nav-links a.current-page::after {
  width: 100%;
}


/* BUTTONS */

.btn {
  font-family: 'Crimson Pro', serif;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.8rem 2.2rem;
  border: 1px solid;
  transition: all 0.3s;
  cursor: pointer;
  background: none;
  display: inline-block;
}

.btn-primary {
  border-color: var(--sage);
  color: var(--sage);
}

.btn-primary:hover {
  background: var(--sage);
  color: var(--ink);
}

.btn-secondary {
  border-color: var(--stone);
  color: var(--dust);
}

.btn-secondary:hover {
  border-color: var(--dust);
  color: var(--aged);
}


/* SECTION SHARED STYLES */

section {
  padding: 6rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

.page-top {
  padding-top: 8rem;
}

.section-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-label::before {
  content: '§';
  font-size: 1rem;
  opacity: 0.6;
}

.section-title {
  font-family: 'IM Fell English', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--parchment);
  margin-bottom: 3rem;
  line-height: 1.2;
}

.section-title em {
  color: var(--sage);
  font-style: italic;
}

.section-rule {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, var(--stone), transparent);
  margin: 5rem 0 0;
}

.page-intro {
  color: var(--aged);
  max-width: 600px;
  margin-bottom: 3rem;
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.8;
}


/* HERO  (index.html) */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(74,94,69,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 20% 70%, rgba(44,38,30,0.9) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 80% 20%, rgba(44,38,30,0.9) 0%, transparent 60%);
}

.ornament {
  color: var(--moss);
  font-size: 1.4rem;
  letter-spacing: 0.5em;
  margin-bottom: 1.5rem;
  opacity: 0.7;
  animation: fadeIn 1.5s ease both;
}

.hero-title {
  font-family: 'IM Fell English', serif;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 1.05;
  color: var(--parchment);
  margin-bottom: 0.5rem;
  animation: fadeInUp 1.2s ease 0.2s both;
}

.hero-title em {
  color: var(--sage);
  font-style: italic;
}

.hero-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: var(--dust);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
  animation: fadeInUp 1.2s ease 0.4s both;
}

.divider-ornament {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--moss);
  margin: 1.5rem auto;
  width: fit-content;
  animation: fadeIn 1.5s ease 0.6s both;
}

.divider-ornament::before,
.divider-ornament::after {
  content: '';
  width: 80px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--moss));
}

.divider-ornament::after {
  background: linear-gradient(to left, transparent, var(--moss));
}

.hero-desc {
  max-width: 550px;
  color: var(--aged);
  font-size: 1.1rem;
  font-style: italic;
  animation: fadeInUp 1.2s ease 0.7s both;
  line-height: 1.8;
}

.hero-cta {
  margin-top: 3rem;
  display: flex;
  gap: 1.5rem;
  animation: fadeInUp 1.2s ease 0.9s both;
}

/* Scroll indicator */
.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--dust);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  animation: fadeIn 2s ease 1.5s both;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--moss), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}


/* ABOUT SECTION  (index.html) */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.about-text p {
  color: var(--aged);
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
}

/* Drop cap on the first paragraph */
.about-text p:first-child::first-letter {
  font-family: 'IM Fell English', serif;
  font-size: 3.5em;
  float: left;
  line-height: 0.8;
  margin: 0.05em 0.08em 0 0;
  color: var(--sage);
}

.about-aside {
  padding: 2rem;
  border: 1px solid rgba(122,148,114,0.2);
  position: relative;
}

.about-aside::before {
  content: '';
  position: absolute;
  top: -1px; left: 2rem;
  width: 3rem; height: 1px;
  background: var(--sage);
}

.skill-category {
  margin-bottom: 2rem;
}

.skill-category h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.8rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  font-size: 0.8rem;
  padding: 0.3rem 0.8rem;
  border: 1px solid rgba(122,148,114,0.25);
  color: var(--dust);
  font-family: 'Crimson Pro', serif;
  letter-spacing: 0.05em;
}


/* CATEGORIES GRID  (index.html) */

.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.category-card {
  padding: 2.5rem 2rem;
  border: 1px solid rgba(122,148,114,0.15);
  position: relative;
  text-decoration: none;
  display: block;
  transition: border-color 0.3s;
  background: rgba(44,38,30,0.3);
}

.category-card:hover {
  border-color: rgba(122,148,114,0.4);
}

.category-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  color: rgba(74,94,69,0.2);
  position: absolute;
  top: 1rem; right: 1.5rem;
  line-height: 1;
}

.category-icon {
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
  color: var(--sage);
  opacity: 0.7;
}

.category-title {
  font-family: 'IM Fell English', serif;
  font-size: 1.4rem;
  color: var(--parchment);
  margin-bottom: 0.8rem;
}

.category-desc {
  font-size: 0.95rem;
  color: var(--dust);
  line-height: 1.6;
}

.category-arrow {
  margin-top: 1.5rem;
  color: var(--sage);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.3s;
}

.category-card:hover .category-arrow {
  opacity: 1;
}


/* 9. WORK GRID  (unreal.html / unity.html / art.html)
   CARD TYPES:
   Standard  landscape  →  <div class="work-card">
   Wide      landscape  →  <div class="work-card featured">
   Tall      portrait   →  <div class="work-card tall">
   Large     2×2        →  <div class="work-card featured tall"> */

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px; 
  gap: 1.5rem;
}

.work-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(122,148,114,0.1);
  grid-row: span 1;
}

.work-card.featured {
  grid-column: span 2;
}

.work-card.tall {
  grid-row: span 2;
}

.work-card.featured.tall {
  grid-column: span 2;
  grid-row: span 2;
}

.work-card-bg {
  width: 100%;
  height: 100%;
  background: var(--fog);
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.work-card:hover .work-card-bg {
  transform: scale(1.04);
}

.work-card-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.work-card-placeholder {
  width: 60px; height: 60px;
  border: 1px solid rgba(122,148,114,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--moss);
  font-size: 1.5rem;
  opacity: 0.4;
}

.work-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,23,20,0.95) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.4s;
}

.work-card:hover .work-card-overlay {
  opacity: 1;
}

.work-card-title {
  font-family: 'IM Fell English', serif;
  font-size: 1.1rem;
  color: var(--parchment);
  margin-bottom: 0.3rem;
}

.work-card-tag {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage);
}


/* 10. RESUME LAYOUT  (resume.html) */

.resume-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
}

.resume-sidebar h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1.5rem;
}

.resume-entry {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(122,148,114,0.1);
}

.resume-entry:last-child {
  border-bottom: none;
}

.resume-year {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--sage);
  margin-bottom: 0.4rem;
}

.resume-entry-title {
  font-family: 'IM Fell English', serif;
  font-size: 1.2rem;
  color: var(--parchment);
  margin-bottom: 0.3rem;
}

.resume-entry-sub {
  font-size: 0.85rem;
  color: var(--dust);
  font-style: italic;
  margin-bottom: 0.8rem;
}

.resume-entry-body {
  font-size: 0.9rem;
  color: var(--aged);
  line-height: 1.7;
}

/* Divider between resume sections (Experience / Education / Projects) */
.resume-section-gap {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(122,148,114,0.1);
}

.resume-section-gap h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 2rem;
}


/* FOOTER */

footer {
  text-align: center;
  padding: 4rem 2rem;
  border-top: 1px solid rgba(122,148,114,0.1);
  color: var(--dust);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
}

.footer-name {
  font-family: 'IM Fell English', serif;
  font-size: 1.4rem;
  color: var(--parchment);
  margin-bottom: 0.8rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 1.5rem 0;
  list-style: none;
}

.footer-links a {
  color: var(--dust);
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: color 0.3s;
}

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


/* ANIMATIONS & SCROLL REVEAL */

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

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

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

/* Elements with this class animate in when scrolled into view.
   JS in main.js adds the .visible class via IntersectionObserver. */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* LIGHTBOX */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(13,11,9,0.96);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  animation: fadeIn 0.25s ease;
}

.lightbox.open {
  display: flex;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  box-shadow: 0 0 80px rgba(0,0,0,0.8);
  cursor: default;
  animation: lightboxIn 0.3s ease;
}

.lightbox-caption {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  width: 100vw;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem 1.5rem;
  background: linear-gradient(to top, rgba(26,23,20,0.95) 0%, transparent 60%);
}

.lightbox-caption-title {
  font-family: 'IM Fell English', serif;
  font-size: 1.1rem;
  color: var(--parchment);
  margin-bottom: 0.25rem;
}

.lightbox-caption-tag {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage);
}

.lightbox-close {
  position: fixed;
  top: 1.5rem;
  right: 2rem;
  color: var(--dust);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
  font-family: 'Crimson Pro', serif;
  background: none;
  border: none;
  padding: 0.5rem;
}

.lightbox-close:hover {
  color: var(--parchment);
}

@keyframes lightboxIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}


/* UNDER CONSTRUCTION */

.construction-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.construction-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(74,94,69,0.07) 0%, transparent 70%);
}

.construction-ornament {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.7rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 2rem;
  animation: fadeIn 1.2s ease both;
}

.construction-sigil {
  font-size: 2.5rem;
  color: var(--moss);
  opacity: 0.5;
  margin-bottom: 2rem;
  animation: fadeIn 1.5s ease 0.2s both;
  letter-spacing: 0.4em;
}

.construction-title {
  font-family: 'IM Fell English', serif;
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  color: var(--parchment);
  line-height: 1.1;
  margin-bottom: 1rem;
  animation: fadeInUp 1.2s ease 0.3s both;
}

.construction-title em {
  color: var(--sage);
  font-style: italic;
}

.construction-rule {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--moss);
  margin: 1.5rem auto 2rem;
  width: fit-content;
  animation: fadeIn 1.5s ease 0.5s both;
}

.construction-rule::before,
.construction-rule::after {
  content: '';
  width: 60px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--moss));
}

.construction-rule::after {
  background: linear-gradient(to left, transparent, var(--moss));
}

.construction-body {
  max-width: 480px;
  color: var(--aged);
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.9;
  margin-bottom: 3rem;
  animation: fadeInUp 1.2s ease 0.6s both;
}

.construction-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  animation: fadeInUp 1.2s ease 0.8s both;
}

.construction-contact-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--dust);
}

.construction-email {
  font-family: 'IM Fell English', serif;
  font-size: 1.15rem;
  color: var(--sage);
  text-decoration: none;
  position: relative;
  transition: color 0.3s;
}

.construction-email::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--sage);
  transition: width 0.3s;
}

.construction-email:hover {
  color: var(--lichen);
}

.construction-email:hover::after {
  width: 100%;
}

.construction-back {
  margin-top: 3.5rem;
  animation: fadeIn 1.5s ease 1s both;
}


/* RESPONSIVE */

@media (max-width: 768px) {
  nav {
    padding: 1rem 1.5rem;
  }

  .nav-links {
    gap: 1.2rem;
  }

  .about-grid,
  .resume-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .work-grid,
  .categories-grid {
    grid-template-columns: 1fr;
  }

.work-grid {
  grid-template-columns: 1fr;
  grid-auto-rows: auto;
  gap: 1rem;
}

.work-card {
  grid-column: span 1 !important;
  grid-row: span 1 !important;
  aspect-ratio: unset;
}

.work-card-bg {
  aspect-ratio: 4/3;
  height: auto;
}

.work-card.tall .work-card-bg {
  aspect-ratio: 3/4;
}

.work-card.featured .work-card-bg {
  aspect-ratio: 4/3;
}

  section {
    padding: 4rem 1.5rem;
  }

  /* Always show the caption overlay on touch screens — no hover available */
.work-card-overlay {
  opacity: 1;
  background: linear-gradient(to top, rgba(26,23,20,0.85) 0%, transparent 50%);
}
}
