/* ========================
   IMPORTS
======================== */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&family=Poppins:wght@300;400;500&display=swap');

/* ========================
   CSS VARIABLES
======================== */
:root {
  /* Colors */
  --bg:          #fcfaf7;
  --bg-2:        #EDE8E0;
  --dark:        #2C2A27;
  --text:        #6B6760;
  --grey:        #ABA69E;
  --orange:      #AA5834;
  --green:       #5F795F;
  --border-dark: #2C2A27;
  --orange-light: #F4B99F;

  /* Typography */
  --serif:       'Cormorant Garamond', Georgia, serif;
  --sans:        'Poppins', system-ui, sans-serif;

  /* Spacing */
  --padding-x:       4.5rem;
  --padding-mobile-x: 1.5rem;
  --section-padding: 7rem var(--padding-x);
  --radius-sm:   10px;
  --radius-md:   16px;
  --radius-lg:   24px;
  --radius-xl:   32px;
  --radius-pill: 100px;
}

/* ========================
   DARK MODE
======================== */
[data-theme="dark"] {
  --bg:    #1A1814;
  --bg-2:  #222019;
  --dark:  #ffffff;
  --text:  #d1c4b4;
  --grey:  #aa9d91;
  --orange:#F4B99F;
  --green: #89b689;
  --border-dark: #d4c4b2;
  --orange-light: #b94513;
}
/* ========================
   TYPOGRAPHY
======================== */

#cursor {
  width: 10px;
  height: 10px;
  background: var(--dark);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.25s ease, height 0.25s ease, background 0.25s ease;
  mix-blend-mode: difference;
  background: white;
}

#cursor-ring {
  width: 34px;
  height: 34px;
  border: 1px solid var(--dark);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  opacity: 0.3;
  transition: opacity 0.2s ease;
  mix-blend-mode: difference;
  border-color: white; 
}

/* cursor expands and changes color on hover */
.cursor-hover #cursor {
  width: 36px;
  height: 36px;
  background: var(--orange);
  opacity: 0.8;
  background: white;
  opacity: 1;
}

.cursor-hover #cursor-ring {
  opacity: 0;
}

html { overflow-x: clip; }
body { overflow-x: clip; }

/* Heading 0 — 72px, Cormorant Garamond */
.h0 {
  font-family: var(--serif);
  font-size: 72px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--dark);
}

/* Heading 1 — 48px, Cormorant Garamond */
h1, .h1 {
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--dark);
}

/* Heading 2 — 40px, Cormorant Garamond */
h2, .h2 {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--dark);
}

/* Heading 3 Serif — 28px/40, Cormorant Garamond */
h3, .h3 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 300;
  line-height: 40px;
  color: var(--dark);
}

/* Heading 4 — 18px, Poppins */
h4, .h4 {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--dark);
}

/* Paragraph — 16px/35, Poppins */
p, .p {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  line-height: 35px;
  color: var(--text);
}

/* Paragraph Small — 14px/30, Poppins */
.p-small {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 300;
  line-height: 30px;
  color: var(--text);
}

/* Label / Eyebrow — uppercase small tag */
.label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
}

/* Italic accent — used for colored italic words in headings */
em {
  font-style: italic;
  color: var(--orange);
}

/* ========================
   LAYOUT
======================== */
section {
  padding: var(--section-padding);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
}

/* ========================
   BUTTONS
======================== */
.btn-primary {
  display: inline-block;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--dark);
  padding: 0.5rem 2rem;
  border-radius: var(--radius-pill);
  transition: background 0.25s ease, transform 0.2s ease;
}

.btn-primary:hover {
  background: var(--green);
  transform: translateY(-2px);
}

.btn-ghost {
  display: inline-block;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--dark);
  border-bottom: 1.5px solid var(--dark);
  padding-bottom: 3px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.btn-ghost:hover {
  color: var(--orange);
  border-color: var(--orange);
}

#hero-btn {
  padding: .75rem 2rem;
}


/* ========================
   TYPING CURSOR
======================== */
#typing-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background-color: var(--orange);
  vertical-align: middle;
  margin-left: 2px;
  animation: blink 0.8s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ========================
   GLOBAL BACKGROUND GRID
======================== */
#site-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(112, 86, 46, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(112, 86, 46, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
}

#site-grid-hover {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(112, 86, 46, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(112, 86, 46, 0.1) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(
    circle 180px at var(--gx, 50%) var(--gy, 50%),
    black 0%,
    transparent 100%
  );
  mask-image: radial-gradient(
    circle 180px at var(--gx, 50%) var(--gy, 50%),
    black 0%,
    transparent 100%
  );
}

/* hide grid on dark dividers and cards */
#work-divider,
#skills-divider,
#work-list article,
#skills article {
  position: relative;
  isolation: isolate;
  z-index: 0;
}

.case-modal {
  isolation: isolate;
}
section, nav, footer, #work-divider, #skills-divider {
  position: relative;
  z-index: 2;
}


#site-grid,
#site-grid-hover {
  position: fixed;
  inset: 0;
  background-position: 0 0;
  will-change: transform;
}

/* ========================
   NAVBAR
======================== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 4.5rem;
  background-color: rgba(249, 248, 245, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 0.5px solid rgba(44, 42, 39, 0.08);
  transition: background-color 0.4s ease, border-color 0.4s ease;
}

/* logo — direct anchor inside nav */
nav > a {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  font-style: italic;
  color: var(--dark);
  letter-spacing: 0.02em;
  transition: color 0.4s ease;
}

/* nav links list */
nav ul {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  list-style: none;
}

nav ul a {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  transition: color 0.2s ease;
  position: relative;
  padding-bottom: 3px;
}

nav ul a:hover {
  color: var(--orange);
}

nav ul a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 1px;
  background-color: var(--orange);
  transition: width 0.25s ease;
}

nav ul a:hover::after {
  width: 100%;
}

/* right side div — toggle + resume */
nav > div {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* theme toggle button */
nav > div > button {
  background: none;
  border: none;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.btn-primary {
  font-size: 14px; /* was 11px */
} 

nav > div > button:hover {
  background-color: rgba(44, 42, 39, 0.06);
}

body {
  padding-top: 72px;
}

[data-theme="dark"] nav {
  background-color: rgba(26, 24, 20, 0.75);
  border-bottom-color: rgba(240, 235, 224, 0.06);
}

.header-tag {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.header-tag--right {
  justify-content: space-between;
  gap: 0;
  width: 100%;  /* add this */
}

.header-tag span {
  display: block;
  width: 28px;
  height: 1.5px;
  background: var(--green);
  flex-shrink: 0;
  border-radius: 1.5px;
}

.header-tag p {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  line-height: 1;
}

@media (max-width: 768px) {
  nav > a {
    font-size: 20px;
    line-height: 1.2;
  }
}

/* ========================
   HAMBURGER BUTTON
======================== */
#menuToggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 110;
}

#menuToggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--grey);
  border-radius: 4px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

#menuToggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
#menuToggle.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
#menuToggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ========================
   MOBILE MENU DROPDOWN
======================== */
#mobileMenu {
  position: fixed;
  top: 80px; /* nav height */
  left: 0;
  right: 0;
  z-index: 99;
  background-color: rgba(247, 244, 239, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 2rem 2rem;
  gap: 0;
  border-bottom: 0.5px solid rgba(44, 42, 39, 0.1);

  /* closed state */
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobileMenu.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

#mobileMenu a {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  padding: 1rem 0;
  border-bottom: 0.5px solid rgba(44, 42, 39, 0.08);
  transition: color 0.2s ease;
}

#mobileMenu a:hover {
  color: var(--orange);
}

#mobileMenuBottom {
  display: flex;
  align-items: center;
  padding-top: 1.2rem;
}

#themeToggleMobile {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

#themeToggleMobile img {
  width: 18px;
  height: 18px;
}

#themeToggleMobile:hover {
  background-color: rgba(44, 42, 39, 0.06);
}

[data-theme="dark"] #mobileMenu {
  background-color: rgba(26, 24, 20, 0.97);
}

/* ========================
   NAV MOBILE
======================== */

@media (max-width: 1000px) {

  nav ul {
    display: none; /* hide desktop links */
  }

  #menuToggle {
    display: flex;
  }
}

@media (max-width: 768px) {
  nav {
    padding: 1.2rem 1.5rem;
  }

  nav ul {
    display: none; /* hide desktop links */
  }

  #menuToggle {
    display: flex;
  }
}

/* ========================
   HERO
======================== */


#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 5rem 5rem;
  position: relative;
  overflow: visible;
}

/* background elements — pulled out of grid flow */
#heroGrid,
#hero-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

#heroGrid {
  background-image:
    linear-gradient(rgba(44, 42, 39, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(44, 42, 39, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  --mouse-x: 50%;
  --mouse-y: 50%;
  -webkit-mask-image: radial-gradient(
    circle 180px at var(--mouse-x) var(--mouse-y),
    rgba(0,0,0,0.25) 0%,
    rgba(0,0,0,0.08) 40%,
    transparent 100%
  );
  mask-image: radial-gradient(
    circle 180px at var(--mouse-x) var(--mouse-y),
    rgba(0,0,0,0.25) 0%,
    rgba(0,0,0,0.08) 40%,
    transparent 100%
  );
}

#hero-shapes {
  position: absolute;
  top: -50px;
  left: -50px;
  right: -50px;
  bottom: -50px;
  pointer-events: none;
  z-index: 0;
  /* removed overflow: hidden */
}

.blob {
  position: absolute;
}

.blob-1 {
  width: 600px;
  height: 600px;
  background: #c4714a57;
  top: calc(5% - 50px);   /* shift up to compensate for extra container size */
  left: calc(52% - 50px);  /* shift left to compensate */
  clip-path: url(#clip-1);
}

.blob-2 {
  width: 460px;
  height: 460px;
  background: #7a9e7a78;
  top: calc(48% - 50px);
  left: calc(68% - 50px);
  clip-path: url(#clip-2);
}

.blob-3 {
  width: 400px;
  height: 400px;
  background: #d4c9b8c7;
  top: calc(58% - 50px);
  left: calc(45% - 50px);
  clip-path: url(#clip-3);
}

.blob-4 {
  width: 300px;
  height: 300px;
  background: #aa573453;
  top: calc(15% - 50px);
  left: calc(80% - 50px);
  clip-path: url(#clip-4);
}

.blob-5 {
  width: 500px;
  height: 500px;
  background: #e8d5c47d;
  top: calc(27% - 50px);
  left: calc(42% - 50px);
  clip-path: url(#clip-5);
}

[data-theme="dark"] .blob-5 { background: #3A2A1E; opacity: 0.4; }

.blob-6 {
  width: 220px;
  height: 220px;
  background: #7a9e7a6d;
  top: calc(12% - 50px);
  left: calc(40% - 50px);
  clip-path: url(#clip-6);
}

[data-theme="dark"] .blob-6 { background: #3A5A3A; opacity: 0.4; }

[data-theme="dark"] .blob-1 { background: #6B3520; opacity: 0.5; }
[data-theme="dark"] .blob-2 { background: #3A5A3A; opacity: 0.5; }
[data-theme="dark"] .blob-3 { background: #2C2A27; opacity: 0.4; }
[data-theme="dark"] .blob-4 { background: #5A2A10; opacity: 0.4; }

@media (max-width: 768px) {
  .blob-1 {
    opacity: 0.25;
    top: calc(2% - 50px);
    left: calc(30% - 50px);
  }

  .blob-2 {
    opacity: 0.20;
    top: calc(40% - 50px);
    left: calc(55% - 50px);
  }

  .blob-3 {
    opacity: 0.25;
    top: calc(60% - 50px);
    left: calc(20% - 50px);
  }

  .blob-4 {
    opacity: 0.25;
    top: calc(10% - 50px);
    left: calc(70% - 50px);
  }

  .blob-5 {
    opacity: 0.25;
    top: calc(15% - 50px);
    left: calc(40% - 50px);
  }

  .blob-6 {
    opacity: 0.25;
    top: calc(0% - 50px);
    left: calc(20% - 50px);
  }
}
/* ========================
   HERO LEFT COLUMN
======================== */
#hero-left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  z-index: 2;
  margin-left: clamp(0rem, 5vw, 8rem);
  margin-top: -25px;
}

#hero h1 {
  display: flex;
  flex-direction: column;
  font-family: var(--serif);
  font-size: clamp(5rem, 6.5vw, 8rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--dark);
}

#hero-roles {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 300;
  font-style: italic;
  color: var(--orange);
  line-height: 1;
  min-height: 1.5rem;
}

#hero-desc {
  font-weight: 300;
  line-height: 1.85;
  color: var(--text);
  max-width: 600px;
  mix-blend-mode: hard-light;
}

#hero-desc em {
  color: var(--text);
  font-weight: 500;
  font-style: normal;
}
/* ========================
   HERO CONTACTS
======================== */
#hero-contacts {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0px;
}

#hero-contacts > div {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

#hero-contacts img,
#hero-contacts .contact-icon {
  width: 14px;
  height: 14px;
  opacity: 0.5;
  color: var(--text);
  flex-shrink: 0;
  font-weight: 500;
}

#copyBtn .copy-icon {
  width: 15px;
  height: 15px;
  color: var(--text);
}

#hero-contacts a {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  transition: color 0.2s ease;
}

#hero-contacts a:hover { color: var(--orange); }

#contact-sep {
  display: block;
  width: 1px;
  height: 14px;
  background: var(--grey);
  opacity: 0.5;
  flex-shrink: 0;
}

#copyBtn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  opacity: 0.4;
  transition: opacity 0.2s ease;
}

#copyBtn:hover { opacity: 1; }
#copyBtn img { width: 13px; height: 13px; }

#copyToast {
  position: absolute;
  top: -2rem;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--dark);
  color: var(--bg);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

#copyToast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ========================
   HERO CTAS
======================== */
#hero-ctas {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 25px;
}

#hero-ctas a {
  font-size: 14px;
}

@media (max-width: 768px) {
  #hero {
    padding: 2rem 1.5rem 4rem;
    min-height: unset;
    margin-top: 100px;
    margin-bottom: 50px;
  }

  #hero-left {
    gap: 1.2rem;
    margin: 0 var(--padding-mobile-x);
  }

  #hero h1 {
    font-size: clamp(4rem, 15vw, 5.5rem);
    line-height: 1;
  }

  #hero-roles {
    font-size: 1.5rem;
  }

  #hero-desc {
    font-size: 14px;
    line-height: 1.75;
    max-width: 100%;
  }

  #hero-contacts {
    flex-wrap: wrap;
    gap: 0.6rem;
  }

  #hero-contacts a {
  font-size: 12px;
  font-weight: 400;
  }

  #hero-ctas {
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
  }
}

@media (max-width: 430px) {

  /* hide the vertical separator line */
  #contact-sep {
    display: none;
  }

  #hero-ctas {
    margin-top: 25px;
  }
 
  #hero-ctas a {
    font-size: 12px;
    padding: 0.75rem 1.25rem;
  }

  #hero-about-btn {
    border-bottom: none;
    position: relative;
    padding-bottom: 3px;
  }

  #hero-about-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 75%; /* adjust to taste */
    height: 1.5px;
    background: var(--dark);
    transition: background 0.2s ease;
  }

  #hero-about-btn:hover::after {
    background: var(--orange);
  }
  /* center contacts too so it looks balanced */
  #hero-contacts {
    flex-wrap: wrap;
    gap: 0.6rem;
  }

}

/* ========================
   WORK DIVIDER
======================== */
#work-divider {
  height: 150px;
  background: var(--border-dark);
}

/* ========================
   WORK SECTION
======================== */
#work {
  background: var(--bg-2);
}

#work-header h2 {
  margin-top: 2rem;
  margin-bottom: 4rem;
}

#work-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

#work-list article {
  display: grid;
  grid-template-columns: 380px 1fr;
  background: var(--bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 0.5px solid rgba(44, 42, 39, 0.08);
  transition: background 0.65s ease;
}

/* thumbnail */
#work-list article > div:first-child {
  background: var(--bg-2);
  min-height: 220px;
  max-height: 400px;
  border-right: 0.5px solid rgba(44, 42, 39, 0.08);
  overflow: hidden;
}

#work-list article > div:first-child img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* content side */
#work-list article > div:last-child {
  padding: 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.2rem;
}

#work-list article h3 {
  margin-top: 0.5rem;
  font-size: 40px;
}

#work-list article p {
  font-size: 16px;
  line-height: 1.85;
}

/* tools row */
#work-list article > div:last-child > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* case study link */
#work-list article a {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  border-bottom: 1.5px solid var(--orange);
  padding-bottom: 2px;
  align-self: flex-end;
  transition: color 0.2s ease, border-color 0.2s ease;
}

#work-list article a:hover {
  color: var(--dark);
  border-color: var(--dark);
}

/* Category pill — green */
#work-list article > div:last-child > span {
  display: inline-block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 0.55rem 1rem;
  border-radius: 100px;
  background: #C5D4C6;
  color: #19541D;
  border: 0.5px solid transparent;
  align-self: flex-start;
}

/* Skill / tool pills — grey, no fill */
#work-list article > div:last-child > div > span {
  display: inline-block;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 0.55rem 1rem;
  border-radius: 100px;
  border: 1.25px solid #ABA69E;
  color: var(--text);
  background: transparent;
}

/* change your existing work breakpoint from 768px to 1024px */
@media (max-width: 1024px) {
  #work-list article {
    grid-template-columns: 1fr;
    border-radius: var(--radius-lg);
    position: relative;
  }

  #work-list article p {
    font-size: 14px;
    line-height: 1.85;
  }

  #work-list article > div:first-child {
    min-height: 240px;
    max-height: 320px;
    border-right: none;
    border-bottom: 0.5px solid rgba(44, 42, 39, 0.08);
  }

  #work-list article > div:last-child {
    padding: 1.5rem 2rem;
  }

  #work-list article > div:last-child > span {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
  }

  #work-list article > div:last-child > div > span {
    font-size: 12px;
  }

  #work-list article h3 {
    font-size: 28px;
    margin-top: 0;
  }

  #work-list article a {
    align-self: flex-start;
    font-size: 12px;
    margin-top: 15px;
  }

  #work {
    padding: 4rem 1.5rem;
  }

  #work-header h2 {
    margin-bottom: 2rem;
  }
}

/* ========================
   ABOUT SECTION
======================== */
#about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center; /* was start */
  margin-right: 3rem;
}

/* photo */
#about > div:first-child {
  display: flex;
  align-items: center;
  justify-content: center;
}

#about > div:first-child img {
  width: 100%;
  max-width: 360px;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-xl);
  border: 0.5px solid rgba(44, 42, 39, 0.1);
  background: var(--bg-2);
  display: block;
  margin: 3.75rem auto;
}
#about > div:last-child {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  width: 100%;  /* add this */
}

#about .label {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 14px;
}

#about .label span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--green);
  flex-shrink: 0;
  border-radius: 2px;
}

#about h2 {
  line-height: 1.05;
  margin-top: -15px;
}

#about hr {
  border: none;
  border-top: 1.5px solid rgba(44, 42, 39, 0.12);
}

/* 2x2 info grid */
#about > div:last-child > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 3rem;
}

#about h4 {
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.5rem;
}

#about > div:last-child > div > div p {
  font-size: 16px;
  line-height: 1.8;
}

@media (max-width: 875px) {

  #about {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 4rem 1.5rem;
    margin: auto var(--padding-mobile-x);
  }

  #about > div:first-child img {
    max-width: 400px;
    width: 75%;
    margin: 0 auto;
    border-radius: var(--radius-lg);
  }

  #about > div:last-child {
    gap: 1.4rem;
    margin: 50px auto;
  }

  #about h2 {
    margin-top: 0;
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  /* 2x2 grid stays but tighter */
  #about > div:last-child > div {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 2rem;
  }

  #about > div:last-child > div > div p {
    font-size: 14px;
    line-height: 1.7;
  }

}

/* ========================
   SKILLS DIVIDER
======================== */
#skills-divider {
  background: var(--border-dark);
  padding: 1rem var(--padding-xl);
  text-align: center;
  height: 225px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#skills-divider p {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 300;
  color: var(--bg);
  line-height: 1.4;
  margin: 0 auto;
  width: 800px;
}

#skills-divider em {
  color: var(--orange-light);
}

@media (max-width: 768px) {
  #skills-divider p {
    font-size: 32px;
    margin: 30px 15px;
  }
}
/* ========================
   SKILLS SECTION
======================== */

#skills {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 6rem;
  align-items: start;
  position: relative;
  z-index: auto;
  isolation: isolate; 
}

#skills > div:first-child {
  position: sticky;
  top: 8rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  align-self: start; /* critical — without this sticky won't work in grid */
}

#skills .label {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

#skills .label span {
  display: block;
  width: 22px;
  height: 0.5px;
  background: var(--green);
  flex-shrink: 0;
}

#skills > div:first-child p {
  font-size: 16px;
  line-height: 1.8;
}

/* right column — skill cards */
#skills > div:last-child {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

#skills article {
  background: var(--bg-2);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  position: relative;
  z-index: 3; 
}

#skills article h3 {
  font-size: 28px;
}

#skills article p {
  font-size: 16px;
  line-height: 1.8;
}

#skills article hr {
  border: none;
  border-top: 0.5px solid rgba(44, 42, 39, 0.12);
}

#skills article div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

@media (max-width: 800px) {

  #skills {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 4rem 1.5rem;
  }

  /* remove sticky — just sits on top statically */
  #skills > div:first-child {
    position: static;
    gap: 1rem;
    margin: 25px var(--padding-mobile-x);
  }

  #skills > div:first-child h2 {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  #skills > div:first-child p {
    font-size: 16px;
    line-height: 1.75;
  }

  #skills > div:last-child {
    gap: 1.2rem;
  }

  #skills article {
    padding: 1.5rem;
    gap: 1rem;
  }

  #skills article h3 {
    font-size: 24px;
    line-height: 1.2;
  }

  #skills article p {
    font-size: 14px;
    line-height: 1.75;
  }

}

/* ========================
   SKILL TAGS — pill style
======================== */
#skills article > div > span {
  display: inline-block;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 0.55rem 1rem;
  border-radius: 100px;
  border: 0.5px solid #ABA69E;
  color: var(--text);
  background: transparent;
}

/* core (first 4) — soft red pill */
#skills article > div > span:nth-child(-n+4) {
  border: 0.5px solid #D1A28E;
  color: #524B41;
  background: #F2E5DF;
}

@media (max-width: 800px) {
  #skills article > div > span {
    font-size: 12px;
    padding: 0.45rem 0.8rem;
  }
}

/* ========================
   CONNECT SECTION
======================== */
#connect {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.8rem;
  background: var(--bg-2);
}

#connect .label {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  justify-content: center;
}

#connect .label span {
  display: block;
  width: 22px;
  height: 0.5px;
  background: var(--green);
  flex-shrink: 0;
}

#connect p:not(.label) {
  font-size: 16px;
  line-height: 1.85;
  max-width: 520px;
}

#connect > div {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 0.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  #connect {
    padding: 4rem 1.5rem;
  }

  #connect > div {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
  }
}
/* ========================
   FOOTER
======================== */
footer {
  background: var(--border-dark);
  padding: 2rem var(--padding-x);
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
}

footer > a {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  font-style: italic;
  color: var(--bg);
  transition: color 0.2s ease;
}

footer > a:hover {
  color: var(--orange-light);
}

footer ul {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

footer ul a {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
  transition: color 0.2s ease;
}

footer ul a:hover {
  color: var(--bg);
}

footer > p {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--grey);
}

@media (max-width: 900px) {
  footer {
    flex-direction: column;
    height: auto;
    padding: 2.5rem 1.5rem;
    gap: 1.5rem;
    text-align: center;
  }

  footer ul {
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
  }
}
/* ========================
   CASE STUDY ARTICLE — clickable
======================== */
#work-list article {
  cursor: pointer;
}
#work-list article:hover {
  background: var(--bg);
  transform: translateY(-2px);
}

/* ========================
   CASE STUDY MODAL
======================== */
.case-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2.5vh 2.5vw;
}

.case-modal.open {
  display: flex;
  animation: caseModalFadeIn 0.3s ease;
}

.case-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 18, 14, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.case-modal__panel {
  position: relative;
  width: 1400px;
  height: 95vh;
  background: var(--bg);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 40px 100px -20px rgba(0,0,0,0.45);
  animation: caseModalSlideUp 0.4s cubic-bezier(.2,.8,.2,1);
}

.case-modal__close {
  position: absolute;
  top: 1.4rem;
  right: 1.4rem;
  z-index: 5;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg);
  border: 0.5px solid rgba(44, 42, 39, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark);
  transition: background 0.45s ease, color 0.45s ease, transform 0.45s ease;
}
.case-modal__close:hover {
  background: var(--orange);
  color: var(--bg);
  transform: rotate(90deg);
}
.case-modal__close svg {
  width: 18px;
  height: 18px;
}

.case-modal__content {
  height: 100%;
  overflow-y: auto;
  scroll-behavior: smooth;
}

/* Hide scrollbar styling — subtle */
.case-modal__content::-webkit-scrollbar { width: 8px; }
.case-modal__content::-webkit-scrollbar-track { background: transparent; }
.case-modal__content::-webkit-scrollbar-thumb {
  background: rgba(44, 42, 39, 0.15);
  border-radius: 4px;
}

@keyframes caseModalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes caseModalSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

body.modal-open { overflow: hidden; }

/* ========================
   CASE STUDY CONTENT
======================== */
.cs {
  padding: 4rem 5rem 5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* INTRO */
.cs-intro {
  display: grid;
  grid-template-columns: 4fr 1fr;
  gap: 100px;
  padding-bottom: 0.5rem;
  margin-top: 25px;
}

.cs-intro__left h1 {
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 400;
  color: var(--orange);
  margin-bottom: 1.2rem;
  line-height: 1;
}

.cs-intro__left {
  display: flex;
  flex-direction: column;
}

.cs-title-row {
  display: flex;
  align-items: center; 
  gap: 1.5rem;
  margin-bottom: 1.2rem;
}

.cs-title-row h1 {
  margin-bottom: 0; /* remove any bottom margin since the row handles spacing */
}

.cs-live-link {
  display: inline-block;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.13em;
  color: var(--orange);
  border-bottom: 1.5px solid var(--orange);
  padding-bottom: 2px;
  white-space: nowrap;
  flex-shrink: 0; /* prevents it from wrapping */
  transition: color 0.2s ease, border-color 0.2s ease;
  margin-top: 5px;
}

.cs-live-link:hover {
  color: var(--dark);
  border-color: var(--dark);
}

.cs-title-sep {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 100%;
  background: var(--grey);
  flex-shrink: 0;
}

.cs-intro__tagline {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--dark);
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

.cs-intro__desc {
  font-size: 16px;
  line-height: 1.9;
  color: var(--text);
}

.cs-intro__meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
  align-content: start;
  padding-top: 0.4rem;
}

.cs-intro__meta dt {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.3rem;
}

.cs-intro__meta dd {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 300;
}

/* CHALLENGE / OUTCOME — two-up */
.cs-twoup {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  padding-top: 0.5rem;
  margin-bottom: 50px;
}

.cs-twoup__col h4 {
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.8rem;
}

.cs-twoup__col h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--dark);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.cs-twoup__col p {
  font-size: 16px;
  line-height: 1.9;
  color: var(--text);
}

/* DARK DIVIDER BAND */
.cs-band {
  height: 60px;
  background: var(--dark);
  margin: 0 -5rem;
}

/* HERO IMAGE — full-bleed top of case study */
.cs-hero-image {
  width: auto;
  height: 420px;
  background: var(--bg-2);
  border-radius: 0;
  border: none;
  border-bottom: 0.5px solid rgba(44, 42, 39, 0.08);
  margin: -4rem -5rem 0;
  position: relative;
}

.cs-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* SECTION DIVIDER LINE — between sections */
.cs-line {
  height: 1px;
  background: #E0D6C7;
  border: none;
  margin: 0;
  width: 100%;
}

/* SECTION (numbered) */
.cs-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0;
  margin: 0;
}

.cs-section + .cs-line,
.cs-line + .cs-section {
  margin-top: 0;
}

/* tighten reflection vertical breathing room */
.cs-section--reflection {
  gap: 0.8rem;
}
.cs-section--reflection .cs-reflection__list {
  margin-top: 0;
  gap: 0.4rem;
}
.cs-section--reflection .cs-reflection__item {
  padding: 0.4rem 0;
}

.cs-section__num {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green);
  margin-top: 25px;
  margin-bottom: 10px;
}

.cs-section__title {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  color: var(--dark);
  line-height: 1.2;
  margin-top: -0.7rem;
}

.cs-section__body {
  font-size: 16px;
  line-height: 1.95;
  color: var(--text);
  max-width: 100%;
}

.cs-section__body p + p {
  margin-top: 0.8rem;
}

.cs-section__image {
  width: 100%;
  background: var(--bg-2);
  border-radius: 14px;
  margin-top: 0.6rem;
  border: 0.5px solid rgba(44, 42, 39, 0.08);
  overflow: hidden; /* ← add this */
}

.cs-section__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top; /* ← shows the top of the image */
  display: block;
}

.cs-section__image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Two-image row for Process */
.cs-section__images-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-top: 0.6rem;
}


/* REFLECTION list */
.cs-reflection__list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 1rem;
  padding-top: 25px;
}

.cs-reflection__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3rem;
  align-items: baseline;
  padding: 1rem 0;
  border-top: 0.5px solid rgba(44, 42, 39, 0.1);
}

.cs-reflection__item:last-child {
  border-bottom: 0.5px solid rgba(44, 42, 39, 0.1);
}

.cs-reflection__tag {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  background: rgba(170, 88, 52, 0.08);
  padding: 0.35rem 0.5rem;
  border-radius: 100px;
  white-space: nowrap;
}

.cs-reflection__item p {
  font-size: 14px;
  line-height: 1.85;
  color: var(--text);
}

/* responsive — mobile */
@media (max-width: 720px) {
  .cs { padding: 3rem 1.5rem 4rem; gap: 2.4rem; }
  .cs-intro,
  .cs-twoup,
  .cs-section__images-2 { grid-template-columns: 1fr; gap: 2rem; }
  .cs-band { margin: 0 -1.5rem; }
  .case-modal__panel { width: 100vw; height: 100vh; border-radius: 0; }
  .case-modal { padding: 0; }

  .cs-hero-image {
    margin: -3rem -1.5rem 0; /* match the mobile padding of .cs */
    height: 280px;
  }
}


