:root {
  --cream: #F7F3EC;
  --cream-dark: #EDE7DA;
  --forest: #2A3D2E;
  --forest-mid: #3D5C42;
  --moss: #6B8F6E;
  --moss-text: #4A6B4E;
  --honey: #C8943A;
  --honey-text: #7E5F20;
  --honey-light: #E8B86D;
  --petal: #D4A5A5;
  --ink: #1C2419;
  --mist: rgba(42,61,46,0.06);
}

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

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
}

body.nav-locked { overflow: hidden; }

/* SKIP NAV */
.skip-nav {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--forest);
  color: var(--cream);
  padding: 12px 24px;
  border-radius: 0 0 8px 8px;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-nav:focus {
  top: 0;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  opacity: 0.022;
  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)'/%3E%3C/svg%3E");
  background-size: 200px;
}

/* CURSOR */
.cursor-dot {
  width: 8px; height: 8px;
  background: var(--honey);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%,-50%);
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1.5px solid var(--forest);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%,-50%);
  transition: width 0.3s, height 0.3s, border-color 0.3s, opacity 0.3s;
  opacity: 0.5;
}
body.hovering .cursor-ring {
  width: 56px; height: 56px;
  border-color: var(--honey);
  opacity: 0.85;
}

/* NAV */
nav {
  position: fixed;
  top: 0; width: 100%;
  z-index: 500;
  padding: 28px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--forest);
  text-decoration: none;
}
.nav-links { list-style: none; display: flex; gap: 36px; }
.nav-links a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--forest);
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.2s;
}
.nav-links a:hover { opacity: 1; }

/* NAV TOGGLE (botanical leaf hamburger) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 600;
  color: var(--forest);
  transition: color 0.3s;
}
.nav-toggle-icon {
  width: 32px;
  height: 32px;
}

.toggle-stem,
.toggle-leaf {
  transition: all 0.4s cubic-bezier(.23,1,.32,1);
  transform-origin: center;
}

/* Open state: leaves rotate into an X, stem fades */
.nav-toggle.is-open .toggle-stem {
  opacity: 0;
}
.nav-toggle.is-open .toggle-leaf--left {
  d: path("M8 8 L24 24");
  opacity: 1;
}
.nav-toggle.is-open .toggle-leaf--right {
  d: path("M24 8 L8 24");
  opacity: 1;
}

/* Fallback X for browsers that don't animate d */
.nav-toggle.is-open .toggle-leaf--left {
  transform: translate(-3px, -4px) rotate(45deg) scaleX(2.2) scaleY(0.3);
}
.nav-toggle.is-open .toggle-leaf--right {
  transform: translate(3px, 4px) rotate(-45deg) scaleX(2.2) scaleY(0.3);
}

/* Nav light mode adjustments for toggle */
nav.nav-light .nav-toggle { color: var(--cream); }

/* HERO */
#hero {
  min-height: 100vh;
  padding: 140px 60px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  position: relative;
  overflow: hidden;
}
.hero-bg-circle {
  position: absolute;
  right: -140px; top: -140px;
  width: 620px; height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--cream-dark) 0%, transparent 70%);
  z-index: 0;
}
.hero-left { position: relative; z-index: 1; }

.hero-greeting {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--moss-text);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s ease forwards;
}
.hero-greeting::before {
  content: '';
  display: block;
  width: 32px; height: 1px;
  background: var(--moss);
}

.hero-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(4rem, 8vw, 7.5rem);
  font-weight: 300;
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--forest);
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 0.9s 0.35s ease forwards;
}
.hero-name em { font-style: italic; color: var(--honey); }

.hero-tagline {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--forest-mid);
  max-width: 400px;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp 0.9s 0.5s ease forwards;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--forest);
  padding: 16px 32px;
  text-decoration: none;
  border-radius: 100px;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
  opacity: 0;
  animation: fadeUp 0.9s 0.65s ease forwards;
}
.hero-cta:hover {
  background: var(--honey);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(200,148,58,0.3);
}
.hero-cta svg { transition: transform 0.3s; }
.hero-cta:hover svg { transform: translateX(5px); }

.hero-right {
  position: relative; z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: fadeIn 1.2s 0.6s ease forwards;
}
.botanical-art { width: 100%; max-width: 420px; }

/* Nav light mode (over dark sections) */
nav.nav-light {
  background: rgba(42,61,46,0.92);
  backdrop-filter: blur(12px);
}
nav.nav-light .nav-logo { color: var(--cream); }
nav.nav-light .nav-links a { color: var(--cream); }
nav.nav-light .nav-links a:hover { opacity: 1; color: var(--honey-light); }

/* SHARED */
.section-wrap { max-width: 1100px; margin: 0 auto; padding: 0 60px; }

.eyebrow {
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--honey-text);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 24px; height: 1px;
  background: var(--honey-text);
}

.section-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--forest);
}
.section-heading em { font-style: italic; color: var(--honey); }

/* ABOUT */
#about {
  padding: 140px 0;
  background: var(--forest);
  position: relative;
  overflow: hidden;
}
#about::before {
  content: '';
  position: absolute;
  bottom: -200px; right: -200px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,148,58,0.1) 0%, transparent 70%);
  pointer-events: none;
}
#about .section-wrap {
  position: relative;
  z-index: 2;
}
#about .eyebrow { color: var(--honey-light); }
#about .eyebrow::before { background: var(--honey-light); }
#about .section-heading { color: var(--cream); }
#about .section-heading em { color: var(--honey-light); }

.about-grid {
  display: block;
  max-width: 560px;
  margin-top: 60px;
  position: relative;
  z-index: 2;
}
.about-body {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.95;
  color: rgba(247,243,236,0.7);
}
.about-body p + p { margin-top: 22px; }
.about-body strong { color: var(--honey-light); font-weight: 500; }

.about-facts { display: flex; flex-direction: column; gap: 0; }
.fact-item {
  border-top: 1px solid rgba(247,243,236,0.1);
  padding: 22px 0;
}
.fact-item:last-child { border-bottom: 1px solid rgba(247,243,236,0.1); }
.fact-label {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--moss-text);
  margin-bottom: 6px;
}
.fact-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--cream);
}

/* ABOUT PORTRAIT — full bleed background */
.about-portrait-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}
.about-portrait-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(100%) contrast(1.1);
  opacity: 0.55;
}
.about-portrait-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(to right, var(--forest) 0%, rgba(42,61,46,0.7) 30%, rgba(42,61,46,0.1) 60%, rgba(42,61,46,0.4) 100%),
    linear-gradient(to bottom, var(--forest) 0%, transparent 12%, transparent 80%, var(--forest) 100%);
  pointer-events: none;
}

@media (max-width: 860px) {
  .about-portrait-bg {
    width: 100%;
    opacity: 0.5;
  }
}

/* PROJECTS */
#projects { padding: 140px 0; }
.projects-header { margin-bottom: 80px; }

.project-entry {
  border-top: 1px solid rgba(42,61,46,0.13);
  padding: 72px 0;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: start;
}
.project-entry:last-child { border-bottom: 1px solid rgba(42,61,46,0.13); }

.project-meta { position: sticky; top: 120px; }

.project-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 4.5rem;
  font-weight: 300;
  color: var(--moss);
  line-height: 1;
  margin-bottom: 18px;
}

.project-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--forest);
  margin-bottom: 12px;
  line-height: 1.2;
}
.project-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.project-tag {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--moss-text);
  border: 1px solid rgba(107,143,110,0.5);
  border-radius: 100px;
  padding: 4px 13px;
}

.project-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--forest);
  text-decoration: none;
  border-bottom: 1px solid var(--forest);
  padding-bottom: 3px;
  transition: color 0.2s, border-color 0.2s;
}
.project-link-btn:hover { color: var(--honey); border-color: var(--honey); }

.project-visual {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 36px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.project-visual-inner {
  width: 100%; height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  font-size: 5rem;
  transition: transform 0.6s cubic-bezier(.23,1,.32,1);
}
.project-entry:hover .project-visual-inner { transform: scale(1.04); }

.project-description {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.88;
  color: var(--forest-mid);
  margin-bottom: 28px;
}

.project-breakdown {
  background: var(--mist);
  border-left: 2px solid var(--honey);
  border-radius: 0 10px 10px 0;
  padding: 26px 30px;
}
.breakdown-title {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--honey-text);
  margin-bottom: 12px;
}
.breakdown-text {
  font-size: 0.93rem;
  font-weight: 300;
  line-height: 1.82;
  color: var(--forest-mid);
}

/* CONTACT */
#contact {
  padding: 140px 0;
  background: var(--cream-dark);
  position: relative;
  overflow: hidden;
}
.contact-inner { max-width: 660px; }

.contact-email {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  font-style: italic;
  color: var(--forest);
  text-decoration: none;
  display: block;
  margin-top: 48px;
  margin-bottom: 14px;
  transition: color 0.2s;
  border-bottom: 1px solid transparent;
  width: fit-content;
}
.contact-email:hover { color: var(--honey); border-color: var(--honey); }

.contact-sub {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--moss-text);
  margin-bottom: 48px;
}
.social-row { display: flex; gap: 28px; flex-wrap: wrap; }
.social-link {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--forest);
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.2s;
}
.social-link:hover { opacity: 1; }

/* Decorative leaf */
.deco-leaf {
  position: absolute;
  right: 0; bottom: 0;
  opacity: 0.06;
  pointer-events: none;
}

/* FOOTER */
footer {
  padding: 28px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--forest);
  color: rgba(247,243,236,0.6);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
}
footer a { color: inherit; text-decoration: none; transition: color 0.2s; }
footer a:hover { color: var(--honey-light); }

/* ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.85s ease, transform 0.85s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.22s; }
.reveal-d3 { transition-delay: 0.38s; }

/* RESPONSIVE */
@media (max-width: 860px) {
  #hero, .about-grid, .project-entry { grid-template-columns: 1fr; }
  nav { padding: 22px 24px; }
  .nav-links { gap: 18px; }
  .section-wrap { padding: 0 24px; }
  #hero { padding: 110px 24px 70px; }
  .hero-right { display: none; }
  .project-meta { position: static; }
  footer { flex-direction: column; gap: 10px; padding: 24px; }

  /* Mobile nav toggle — show button */
  .nav-toggle { display: block; }

  /* Mobile nav overlay */
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: var(--forest);
    z-index: 550;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s;
  }
  .nav-links.nav-open {
    opacity: 1;
    visibility: visible;
  }

  .nav-links li {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.35s ease, transform 0.35s ease;
  }
  .nav-links.nav-open li {
    opacity: 1;
    transform: translateY(0);
  }
  .nav-links.nav-open li:nth-child(1) { transition-delay: 0.1s; }
  .nav-links.nav-open li:nth-child(2) { transition-delay: 0.18s; }
  .nav-links.nav-open li:nth-child(3) { transition-delay: 0.26s; }
  .nav-links.nav-open li:nth-child(4) { transition-delay: 0.34s; }

  .nav-links a {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 0.08em;
    text-transform: none;
    color: var(--cream);
    opacity: 0.8;
    padding: 16px 0;
    display: block;
  }
  .nav-links a:hover,
  .nav-links a.active {
    opacity: 1;
    color: var(--honey-light);
  }

  /* Toggle button stays above overlay */
  .nav-toggle {
    position: relative;
    z-index: 600;
  }
  .nav-toggle.is-open {
    color: var(--cream);
  }
}


/* ==============================
   WORK PAGE
   ============================== */

/* Page header */
.work-header {
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
}
.work-header .hero-bg-circle {
  position: absolute;
  right: -140px; top: -140px;
  width: 580px; height: 580px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--cream-dark) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}
.work-header-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.work-header-text {}
.work-count {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.88rem;
  font-weight: 300;
  font-style: italic;
  color: var(--moss-text);
  margin-top: 16px;
}

/* Work grid */
.work-grid-section {
  padding: 0 0 140px;
}
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Card */
.work-card {
  background: var(--cream);
  border: 1px solid rgba(42,61,46,0.1);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(.23,1,.32,1),
              box-shadow 0.35s ease,
              border-color 0.25s;
  cursor: pointer;
}
.work-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(42,61,46,0.1);
  border-color: rgba(42,61,46,0.2);
}
.work-card[data-hidden="true"] {
  display: none;
}

.card-thumb {
  width: 100%;
  aspect-ratio: 4/3;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}
.card-thumb-inner {
  transition: transform 0.5s cubic-bezier(.23,1,.32,1);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%; height: 100%;
}
.work-card:hover .card-thumb-inner { transform: scale(1.06); }

.card-body {
  padding: 24px 26px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.card-tag {
  font-size: 0.67rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--moss-text);
  border: 1px solid rgba(107,143,110,0.45);
  border-radius: 100px;
  padding: 3px 10px;
}
.card-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--forest);
  line-height: 1.2;
  margin-bottom: 10px;
}
.card-desc {
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--forest-mid);
  flex: 1;
  margin-bottom: 20px;
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--forest);
  border-bottom: 1px solid var(--forest);
  padding-bottom: 2px;
  width: fit-content;
  transition: color 0.2s, border-color 0.2s;
}
.work-card:hover .card-link {
  color: var(--honey);
  border-color: var(--honey);
}

/* Empty state */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  display: none;
}
.empty-state.visible { display: block; }
.empty-state p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-style: italic;
  font-weight: 300;
  color: var(--moss);
}

/* Nav active state */
.nav-links a.active { opacity: 1; }
.nav-links a.active::after {
  content: '';
  display: block;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--honey);
  margin: 4px auto 0;
}

/* WORK PAGE RESPONSIVE */
@media (max-width: 1000px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .work-header { padding: 120px 0 60px; }
  .work-header-inner { flex-direction: column; align-items: flex-start; }
  .filter-bar { margin-top: 8px; }
}
@media (max-width: 560px) {
  .work-grid { grid-template-columns: 1fr; }
}

/* Accessibility badge — stands out across all cards */
.card-tag--acc {
  color: var(--honey);
  border-color: var(--honey);
  font-weight: 500;
}

/* Accessibility badge — index project tags */
.project-tag--acc {
  color: var(--honey);
  border-color: var(--honey);
  font-weight: 500;
}


/* ==============================
   DEVICE MOCKUP FRAMES
   ============================== */

.device-mockup-group {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
  width: 100%;
  height: 100%;
  padding: 0 14px 0;
  margin-bottom: 40px;
  position: relative;
}

/* --- LAPTOP --- */
.device-laptop {
  position: relative;
  width: 72%;
  flex-shrink: 0;
  z-index: 1;
}

a.device-laptop--link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.laptop-screen {
  background: #0a0a0a;
  border-radius: 5px 5px 0 0;
  border: 1.5px solid #1a1a1a;
  border-bottom: none;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  position: relative;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.05) inset;
}

.laptop-screen img {
  width: 100%;
  display: block;
}

.laptop-base {
  width: 110%;
  height: 8px;
  background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 40%, #111 100%);
  border-radius: 0 0 6px 6px;
  margin-left: -5%;
  position: relative;
}
.laptop-base::before {
  content: '';
  position: absolute;
  top: 1px;
  left: 50%;
  transform: translateX(-50%);
  width: 18%;
  height: 3px;
  background: #333;
  border-radius: 0 0 3px 3px;
}
.laptop-base::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.08) 20%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.08) 80%, transparent 100%);
}

/* --- PHONE --- */
.device-phone {
  position: relative;
  width: 22%;
  flex-shrink: 0;
  z-index: 2;
  margin-left: -8%;
  margin-bottom: -2px;
  filter: drop-shadow(-4px 4px 12px rgba(0,0,0,0.25));
}

.phone-screen {
  background: #0a0a0a;
  border-radius: 10px;
  border: 1.5px solid #1a1a1a;
  overflow: hidden;
  aspect-ratio: 9 / 19;
  position: relative;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06) inset;
}

.phone-notch {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 30%;
  height: 5px;
  background: #1a1a1a;
  border-radius: 10px;
  z-index: 3;
}

.phone-screen img {
  width: 100%;
  display: block;
}

/* Subtle reflection on both devices */
.laptop-screen::after,
.phone-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, transparent 60%);
  pointer-events: none;
  z-index: 2;
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 1000px) {
  .device-mockup-group {
    padding: 18px 12px 10px;
  }
  .device-laptop { width: 70%; }
  .device-phone { width: 24%; margin-left: -10%; }
}

@media (max-width: 560px) {
  .device-mockup-group {
    padding: 24px 20px 16px;
  }
  .device-laptop { width: 68%; }
  .device-phone { width: 26%; margin-left: -10%; }
  .laptop-screen { border-radius: 8px 8px 0 0; }
  .phone-screen { border-radius: 12px; }
  .phone-notch { height: 6px; width: 28%; }
}

/* --- WIDE VARIANT (for project-visual on portfolio page) --- */
.device-mockup-group--wide {
  padding: 0 40px;
  margin-bottom: 50px;
}
.device-mockup-group--wide .device-laptop {
  width: 68%;
}
.device-mockup-group--wide .device-phone {
  width: 16%;
  margin-left: -6%;
}

@media (max-width: 860px) {
  .device-mockup-group--wide {
    padding: 0 20px;
    margin-bottom: 20px;
  }
  .device-mockup-group--wide .device-laptop { width: 70%; }
  .device-mockup-group--wide .device-phone { width: 20%; margin-left: -8%; }
}

@media (pointer: coarse) {
  .cursor-dot,
  .cursor-ring {
    display: none;
  }
}