/* ===========================
   RESET & BASE STYLES
   =========================== */

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

html {
  scroll-behavior: smooth;
}

/* ===========================
   SCROLL REVEAL ANIMATIONS
   =========================== */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.stagger-reveal > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger-reveal > *.revealed {
  opacity: 1;
  transform: translateY(0);
}

body {
  background-color: #ffffff;
  color: #111111;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, system-ui, sans-serif;
  line-height: 1.5;
  font-size: 16px;
  font-weight: 400;
}

/* ===========================
   TYPOGRAPHY
   =========================== */

h1 {
  font-size: 72px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 24px;
}

h2 {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.3px;
  margin-bottom: 16px;
}

h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 12px;
}

p {
  margin-bottom: 16px;
  color: #1d1d1f;
  line-height: 1.6;
  max-width: 65ch;
}

a {
  color: #0071e3;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.7;
}

a:focus {
  outline: none;
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}

button:focus {
  outline: none;
}

/* ===========================
   HAMBURGER MENU
   =========================== */

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  cursor: pointer;
  z-index: 110;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background-color: #1d1d1f;
  transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
  position: relative;
}

.nav-toggle span:nth-child(1) {
  margin-bottom: 5px;
}

.nav-toggle span:nth-child(2) {
  margin-bottom: 5px;
}

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

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

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

/* ===========================
   LAYOUT & SPACING
   =========================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 60px 0;
}

section:first-of-type {
  padding-top: 80px;
}

/* Alternating section backgrounds */
.section-alt {
  background-color: #f9f9fb;
}

.section-light {
  background-color: #ffffff;
}

/* ===========================
   HEADER & NAV
   =========================== */

header {
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  display: flex;
  gap: 40px;
  align-items: center;
}

nav a {
  font-size: 15px;
  font-weight: 500;
  color: #1d1d1f;
  text-decoration: none;
  transition: color 0.25s ease;
}

nav a:hover {
  color: #0071e3;
  opacity: 1;
}

.logo {
  font-weight: 600;
  font-size: 17px;
  color: #1d1d1f;
  letter-spacing: -0.02em;
}

nav-spacer {
  flex: 1;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ===========================
   HERO SECTION
   =========================== */

.hero {
  text-align: center;
  padding-top: 100px;
  padding-bottom: 80px;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 800px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(0, 113, 227, 0.03) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.hero h1 {
  font-size: 64px;
  margin-bottom: 16px;
  line-height: 1.1;
  letter-spacing: -1.5px;
  background: linear-gradient(180deg, #1d1d1f 0%, #424245 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-label {
  font-size: 13px;
  font-weight: 600;
  color: #6e6e73;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.hero .subtitle {
  font-size: 18px;
  color: #6e6e73;
  max-width: 480px;
  margin: 0 auto 32px;
  line-height: 1.5;
}

.cta-primary {
  display: inline-block;
  background-color: #0071e3;
  color: #ffffff;
  padding: 14px 32px;
  border-radius: 980px;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.01em;
  transition: all 0.25s cubic-bezier(0.25, 0.1, 0.25, 1);
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.cta-primary:hover {
  background-color: #0077ed;
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.25);
}

.cta-primary:focus {
  outline: none;
}

/* ===========================
   PROJECTS SECTION
   =========================== */

.projects-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.projects-section {
  padding-top: 40px;
}

.section-label {
  font-size: 13px;
  font-weight: 600;
  color: #6e6e73;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}

.project-item {
  position: relative;
}

.project-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  align-items: center;
  padding: 20px;
  border-radius: 16px;
  background: #ffffff;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.project-card::after {
  content: '→';
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: #86868b;
  transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.project-card:hover {
  border-color: rgba(0, 113, 227, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  opacity: 1;
}

.project-card:hover::after {
  transform: translateY(-50%) translateX(4px);
  color: #0071e3;
}

.project-thumb {
  width: 160px;
  height: 120px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-card:hover .project-thumb img {
  transform: scale(1.05);
}

.project-info {
  padding-right: 48px;
}

.project-info h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
  color: #1d1d1f;
}

.project-info p {
  color: #6e6e73;
  margin-bottom: 0;
  font-size: 15px;
  line-height: 1.5;
}

/* ===========================
   ABOUT SECTION
   =========================== */

.about-content {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px;
}

.about-hero {
  text-align: center;
  padding-top: 80px;
  padding-bottom: 40px;
}

.about-hero h1 {
  font-size: 48px;
  letter-spacing: -1px;
  line-height: 1.1;
  background: linear-gradient(180deg, #1d1d1f 0%, #424245 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-content p {
  margin-bottom: 24px;
  line-height: 1.75;
  font-size: 17px;
  color: #1d1d1f;
}

/* About Profile */
.about-profile {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.about-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.about-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about-location {
  font-size: 15px;
  color: #6e6e73;
  margin-bottom: 0;
}

.resume-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color: #0071e3;
  transition: all 0.2s ease;
}

.resume-link:hover {
  opacity: 0.8;
}

.resume-link svg {
  flex-shrink: 0;
}

/* Tools Grid */
.about-tools {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.about-tools h3 {
  font-size: 14px;
  font-weight: 600;
  color: #6e6e73;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.tools-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tool-tag {
  display: inline-block;
  padding: 8px 16px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  color: #1d1d1f;
}

/* ===========================
   CONTACT SECTION
   =========================== */

.contact {
  text-align: center;
  padding: 80px 0;
  position: relative;
  background-color: #ffffff;
}

.contact::before {
  display: none;
}

.contact h2 {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  background: linear-gradient(180deg, #1d1d1f 0%, #424245 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-icons {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: center;
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #f5f5f7;
  transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.contact-icon svg {
  width: 24px;
  height: 24px;
  color: #1d1d1f;
  transition: color 0.3s ease;
}

.contact-icon:hover {
  background: #0071e3;
  opacity: 1;
  transform: translateY(-2px);
}

.contact-icon:hover svg {
  color: #ffffff;
}

/* ===========================
   PROJECT PAGE LAYOUT
   =========================== */

.project-hero {
  padding-top: 80px;
  padding-bottom: 48px;
  text-align: center;
}

.project-hero h1 {
  margin-bottom: 16px;
  font-size: 48px;
  letter-spacing: -1px;
  background: linear-gradient(180deg, #1d1d1f 0%, #424245 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.project-hero .subtitle {
  font-size: 18px;
  color: #6e6e73;
  margin-bottom: 0;
}

.project-container {
  display: grid;
  grid-template-columns: 42% 1fr;
  gap: 56px;
  align-items: start;
  margin-bottom: 40px;
}

.project-image {
  position: sticky;
  top: 100px;
}

.project-frame {
  background: #f5f5f7;
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.project-frame img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  display: block;
}

.project-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-top: 16px;
}

.project-link-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.25, 0.1, 0.25, 1);
  flex: 1;
}

.project-link-icon svg {
  width: 22px;
  height: 22px;
  color: #86868b;
  transition: color 0.25s ease;
}

.project-link-icon span {
  font-size: 11px;
  font-weight: 500;
  color: #86868b;
  transition: color 0.25s ease;
}

.project-link-icon:hover {
  background: rgba(0, 0, 0, 0.04);
  opacity: 1;
}

.project-link-icon:hover svg,
.project-link-icon:hover span {
  color: #1d1d1f;
}

.project-sections {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: 0;
}

.accordion-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transition: border-color 0.25s ease;
}

.accordion-item:first-child {
  border-top: none;
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-header {
  display: flex;
  align-items: center;
  padding: 20px 0;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: all 0.25s ease;
  background: none;
  gap: 16px;
}

.accordion-header:hover {
  opacity: 0.7;
}

.accordion-header:focus {
  outline: none;
}

.accordion-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: #1d1d1f;
}

.accordion-title {
  flex: 1;
  font-size: 16px;
  font-weight: 500;
  color: #1d1d1f;
  letter-spacing: -0.01em;
}

.accordion-toggle {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.accordion-toggle::before,
.accordion-toggle::after {
  content: '';
  position: absolute;
  background-color: #1d1d1f;
  transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1), opacity 0.3s ease;
}

.accordion-toggle::before {
  width: 14px;
  height: 1.5px;
}

.accordion-toggle::after {
  width: 1.5px;
  height: 14px;
}

.accordion-header[aria-expanded="true"] .accordion-toggle::after {
  transform: rotate(90deg);
  opacity: 0;
}

.accordion-header[aria-expanded="true"] .accordion-toggle::before {
  transform: rotate(180deg);
}

/* Legacy chevron support */
.accordion-chevron {
  display: none;
}

.accordion-outcome {
  display: none;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.25, 0.1, 0.25, 1), padding 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
  padding-left: 40px;
}

.accordion-header[aria-expanded="true"] + .accordion-content {
  max-height: 2000px;
  padding-bottom: 20px;
}

.accordion-text {
  color: #6e6e73;
  line-height: 1.65;
  font-size: 15px;
}

.accordion-text p {
  margin-bottom: 16px;
  max-width: 56ch;
}

.accordion-text ul,
.accordion-text ol {
  margin-bottom: 16px;
  margin-left: 20px;
}

.accordion-text li {
  margin-bottom: 8px;
  color: #424245;
  line-height: 1.6;
}

/* ===========================
   FOOTER
   =========================== */

footer {
  background-color: #fbfbfd;
  padding: 32px 0;
  margin-top: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-left {
  font-size: 14px;
  color: #86868b;
}

.footer-right {
  display: flex;
  gap: 24px;
}

.footer-right a {
  font-size: 14px;
  color: #86868b;
  transition: color 0.25s ease;
}

.footer-right a:hover {
  color: #1d1d1f;
  opacity: 1;
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 768px) {
  h1 {
    font-size: 40px;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
  }

  h2 {
    font-size: 24px;
    margin-bottom: 12px;
  }

  section {
    padding: 40px 0;
  }

  section:first-of-type {
    padding-top: 60px;
  }

  .hero {
    padding-top: 60px;
    padding-bottom: 48px;
  }

  .hero h1 {
    font-size: 44px;
    letter-spacing: -1px;
  }

  .hero .subtitle {
    font-size: 16px;
    margin-bottom: 24px;
  }

  .hero::before {
    display: none;
  }

  .contact h2 {
    font-size: 28px;
  }

  .nav-toggle {
    display: flex;
    /* position: fixed; */
    top: 20px;
    right: 24px;
    z-index: 1001;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 8px;
  }

  nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: #ffffff;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 48px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.25, 0.1, 0.25, 1), visibility 0.4s;
    z-index: 1000;
    padding: 80px 24px;
    overflow: hidden;
  }

  nav.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
  }

  body:has(nav.active) {
    overflow: hidden;
  }

  nav a {
    font-size: 36px;
    font-weight: 600;
    color: #1d1d1f;
    letter-spacing: -1px;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    text-align: center;
  }

  nav.active a {
    transform: translateY(0);
    opacity: 1;
  }

  nav.active a:nth-child(1) {
    transition-delay: 0.1s;
  }

  nav.active a:nth-child(2) {
    transition-delay: 0.15s;
  }

  nav.active a:nth-child(3) {
    transition-delay: 0.2s;
  }

  nav a:hover {
    color: #0071e3;
  }

  .project-card {
    grid-template-columns: 120px 1fr;
    gap: 16px;
    padding: 16px;
  }

  .project-card::after {
    right: 16px;
    font-size: 18px;
  }

  .project-thumb {
    width: 120px;
    height: 90px;
  }

  .project-info {
    padding-right: 32px;
  }

  .project-info h3 {
    font-size: 17px;
  }

  .project-info p {
    font-size: 14px;
  }

  .about-profile {
    flex-direction: column;
    text-align: center;
  }

  .about-meta {
    align-items: center;
  }

  .project-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .project-image {
    position: relative;
    top: auto;
  }

  .project-frame {
    padding: 12px;
    border-radius: 16px;
  }

  .project-frame img {
    border-radius: 10px;
  }

  .project-links {
    gap: 4px;
    padding-top: 12px;
  }

  .project-link-icon {
    padding: 10px 12px;
    border-radius: 10px;
  }

  .project-link-icon svg {
    width: 20px;
    height: 20px;
  }

  .project-link-icon span {
    font-size: 10px;
  }

  .footer-content {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer-right {
    justify-content: center;
  }

  .contact-info {
    gap: 8px;
  }

  .about-hero {
    padding-top: 60px;
    padding-bottom: 32px;
  }

  .about-hero h1 {
    font-size: 36px;
  }

  .project-hero {
    padding-top: 60px;
    padding-bottom: 32px;
  }

  .project-hero h1 {
    font-size: 36px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 15px;
  }

  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 20px;
  }

  .container,
  .container-narrow {
    padding: 0 16px;
  }

  section {
    padding: 32px 0;
  }

  section:first-of-type {
    padding-top: 48px;
  }

  .hero {
    padding-top: 48px;
    padding-bottom: 32px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .cta-primary {
    padding: 12px 24px;
    font-size: 15px;
  }

  .project-card {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
  }

  .project-card::after {
    position: static;
    transform: none;
    margin-top: 8px;
  }

  .project-thumb {
    width: 100%;
    height: 160px;
  }

  .project-info {
    padding-right: 0;
  }

  .project-info h3 {
    font-size: 17px;
  }

  .project-info p {
    font-size: 14px;
  }

  .tools-grid {
    gap: 8px;
  }

  .tool-tag {
    padding: 6px 12px;
    font-size: 13px;
  }

  .contact h2 {
    font-size: 28px;
  }

  .contact-icon {
    width: 48px;
    height: 48px;
  }

  .contact-icon svg {
    width: 20px;
    height: 20px;
  }

  .accordion-header {
    padding: 16px 0;
    gap: 12px;
  }

  .accordion-title {
    font-size: 15px;
  }

  .accordion-icon {
    width: 20px;
    height: 20px;
  }

  .accordion-content {
    padding-left: 32px;
  }

  .about-hero {
    padding-top: 48px;
    padding-bottom: 24px;
  }

  .about-hero h1 {
    font-size: 28px;
  }

  .project-hero {
    padding-top: 48px;
    padding-bottom: 24px;
  }

  .project-hero h1 {
    font-size: 28px;
  }

  .hero-label {
    font-size: 11px;
  }

  .process-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ========================================
   VISUAL PROCESS SECTION
======================================== */
.process-section {
  padding: 80px 0;
  background-color: #f5f5f7;
}

.process-title {
  font-size: 32px;
  font-weight: 600;
  color: #1d1d1f;
  text-align: center;
  margin-bottom: 48px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.process-item {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.process-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.process-label {
  font-size: 14px;
  font-weight: 600;
  color: #1d1d1f;
  padding: 20px 20px 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.process-item p {
  font-size: 15px;
  color: #6e6e73;
  line-height: 1.5;
  padding: 0 20px 20px;
  margin: 0;
}

@media (max-width: 768px) {
  .process-section {
    padding: 60px 0;
  }

  .process-title {
    font-size: 24px;
    margin-bottom: 32px;
  }

  .process-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ========================================
   ELITE CASE STUDY STYLES
======================================== */

/* Case Hero - Immersive full-screen */
.case-hero {
  position: relative;
  height: 85vh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.case-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 0.6s ease;
}

.case-hero:hover .case-hero-bg {
  transform: scale(1);
}

.case-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    rgba(0, 0, 0, 0.2) 100%
  );
}

.case-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px 80px;
  max-width: 800px;
}

.case-hero-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 16px;
}

.case-hero h1 {
  font-size: 72px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -2px;
  margin-bottom: 20px;
  line-height: 1;
}

.case-hero-tagline {
  font-size: 22px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
  max-width: 100%;
  margin-bottom: 32px;
}

.case-hero-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.case-hero-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.case-hero-link:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.4);
}

.case-hero-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.case-hero-link:hover svg {
  transform: scale(1.1);
}

.case-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.case-hero-cta:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.case-hero-cta svg {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.case-hero-cta:hover svg {
  transform: translateX(4px);
}

/* Case Meta - Project info bar */
.case-meta {
  background: #1d1d1f;
  padding: 40px 0;
}

.case-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.case-meta-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.case-meta-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

/* Case Study Grid with TOC */
.case-study-wrapper {
  padding: 80px 0 0;
  background: #fff;
}

.case-study-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 80px;
  align-items: start;
}

/* Table of Contents */
.case-toc {
  position: sticky;
  top: 120px;
}

.case-toc-nav {
  display: block;
  padding: 24px;
  background: #f5f5f7;
  border-radius: 12px;
  border: 1px solid #e5e5e5;
}

.case-toc-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #6e6e73;
  margin-bottom: 16px;
}

.case-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toc-link {
  display: block;
  padding: 8px 12px;
  font-size: 15px;
  color: #1d1d1f;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.toc-link:hover {
  background: #e5e5e5;
  color: #0071e3;
}

.toc-link.active {
  background: #0071e3;
  color: #fff;
  font-weight: 500;
}

/* Main Content Area */
.case-main-content {
  max-width: 720px;
}

/* Full-bleed image inside grid */
.case-fullbleed-inline {
  margin: 48px 0;
  width: 100%;
}

.case-fullbleed-inline img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

.case-fullbleed-inline figcaption {
  background: linear-gradient(135deg, #1d1d1f 0%, #2a2a2c 100%);
  color: rgba(255, 255, 255, 0.8);
  padding: 16px 20px;
  font-size: 14px;
  font-style: italic;
  text-align: center;
  letter-spacing: 0.3px;
  line-height: 1.6;
  border-radius: 0 0 12px 12px;
  margin-top: -4px;
}

.case-meta-value {
  font-size: 16px;
  font-weight: 500;
  color: #fff;
}

/* Case Metrics - Big numbers */
.case-metrics {
  padding: 80px 0;
  background: #f5f5f7;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.metric-card {
  background: #fff;
  border-radius: 20px;
  padding: 40px 32px;
  text-align: center;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.metric-number {
  display: block;
  font-size: 56px;
  font-weight: 700;
  color: #1d1d1f;
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 8px;
}

.metric-label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 8px;
}

.metric-context {
  display: block;
  font-size: 14px;
  color: #6e6e73;
}

/* Case Content - Narrative sections */
.case-content {
  padding: 80px 0;
}
/* 
.case-section {
  margin-bottom: 64px;
} */

.case-section:last-child {
  margin-bottom: 0;
}

.case-section-title {
  font-size: 32px;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

.case-lead {
  font-size: 22px;
  font-weight: 400;
  color: #1d1d1f;
  line-height: 1.5;
  margin-bottom: 20px;
}

.case-content p {
  font-size: 17px;
  line-height: 1.7;
  color: #424245;
  margin-bottom: 16px;
}

.case-content p:last-child {
  margin-bottom: 0;
}

.case-content code {
  background: #f5f5f7;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: "SF Mono", Monaco, monospace;
  font-size: 14px;
  color: #1d1d1f;
}

/* Full-bleed Image */
.case-fullbleed {
  margin: 0;
  width: 100%;
}

.case-fullbleed img {
  width: 100%;
  height: 60vh;
  min-height: 400px;
  object-fit: cover;
  display: block;
}

.case-fullbleed figcaption {
  background: linear-gradient(135deg, #1d1d1f 0%, #2a2a2c 100%);
  color: rgba(255, 255, 255, 0.8);
  padding: 24px 32px;
  font-size: 15px;
  font-style: italic;
  text-align: center;
  letter-spacing: 0.3px;
  line-height: 1.6;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Pull Quote */
.case-pullquote {
  margin: 64px 0;
  padding: 48px 0;
  border-top: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
  font-size: 28px;
  font-weight: 500;
  color: #1d1d1f;
  line-height: 1.4;
  letter-spacing: -0.5px;
}

.case-pullquote cite {
  display: block;
  font-size: 14px;
  font-weight: 400;
  font-style: normal;
  color: #6e6e73;
  margin-top: 20px;
}

/* Decision Cards */
.case-decisions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.decision-item {
  background: #f5f5f7;
  border-radius: 16px;
  padding: 28px;
}

.decision-item h3 {
  font-size: 17px;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 12px;
}

.decision-item p {
  font-size: 15px;
  line-height: 1.5;
  color: #6e6e73;
  margin: 0;
}

/* Device Showcase */
.case-showcase {
  padding: 80px 0;
  background: linear-gradient(180deg, #1d1d1f 0%, #0a0a0a 100%);
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.showcase-item {
  text-align: center;
}

.showcase-item img {
  width: 100%;
  max-width: 260px;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
  margin: 0 auto 20px;
  display: block;
}

.showcase-caption {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Comparison Section */
.case-comparison {
  padding: 80px 0;
  background: #f5f5f7;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.comparison-item {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.comparison-item.featured {
  box-shadow: 0 8px 40px rgba(0, 113, 227, 0.15);
  border: 2px solid #0071e3;
}

.comparison-badge {
  display: block;
  padding: 12px 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: #f5f5f7;
  color: #6e6e73;
}

.comparison-item.featured .comparison-badge {
  background: #0071e3;
  color: #fff;
}

.comparison-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.comparison-item p {
  padding: 20px;
  font-size: 15px;
  color: #6e6e73;
  margin: 0;
  text-align: center;
}

/* Features List */
.case-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.case-features li {
  padding: 20px 0;
  border-bottom: 1px solid #e5e5e5;
  font-size: 17px;
  line-height: 1.6;
  color: #424245;
}

.case-features li:first-child {
  padding-top: 0;
}

.case-features li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.case-features strong {
  color: #1d1d1f;
}

/* Project Links */
.case-links {
  padding: 80px 0;
  background: linear-gradient(135deg, #0071e3 0%, #005bb5 100%);
  border-top: none;
  position: relative;
}

.case-links-grid {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.case-link-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 32px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  color: #1d1d1f;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.case-link-card:hover {
  background: #ffffff;
  color: #0071e3;
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.case-link-card svg {
  width: 22px;
  height: 22px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.case-link-card:hover svg {
  transform: scale(1.1);
}

/* Next Project */
.case-next {
  background: #1d1d1f;
  padding: 80px 0;
  text-align: center;
}

.case-next-link {
  display: inline-block;
  text-decoration: none;
}

.case-next-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 12px;
}

.case-next-title {
  display: block;
  font-size: 36px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.5px;
  transition: color 0.2s ease;
}

.case-next-link:hover .case-next-title {
  color: #0071e3;
}

/* Case Study Page - hide header bg initially */
.case-study-page header {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.case-study-page header.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.case-study-page header .logo,
.case-study-page header nav a {
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.case-study-page header.scrolled .logo,
.case-study-page header.scrolled nav a {
  color: #1d1d1f;
  text-shadow: none;
}

.case-study-page .nav-toggle span {
  background: #fff;
}

.case-study-page header.scrolled .nav-toggle span {
  background: #1d1d1f;
}

/* Mobile menu for case study page */
@media (max-width: 768px) {
  .case-study-page .nav-toggle {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
  }

  .case-study-page header.scrolled .nav-toggle {
    background: rgba(255, 255, 255, 0.95);
  }

  .case-study-page nav.active a {
    color: #1d1d1f !important;
    text-shadow: none !important;
  }
}

/* Responsive Case Study */
@media (max-width: 1024px) {
  .case-study-grid {
    grid-template-columns: 200px 1fr;
    gap: 40px;
  }

  .case-decisions {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .showcase-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .showcase-item img {
    max-width: 200px;
  }
}

@media (max-width: 768px) {
  .case-study-wrapper {
    padding: 40px 0 0;
  }

  .case-study-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .case-toc {
    position: relative;
    top: 0;
    order: -1;
  }

  .case-toc-nav {
    padding: 20px;
  }

  .case-main-content {
    max-width: 100%;
  }

  .case-fullbleed-inline {
    margin: 32px -20px;
    width: calc(100% + 40px);
  }

  .case-fullbleed-inline img {
    border-radius: 0;
  }

  .case-fullbleed-inline figcaption {
    border-radius: 0;
  }

  .case-hero {
    height: 70vh;
    min-height: 500px;
  }

  .case-hero h1 {
    font-size: 42px;
    letter-spacing: -1px;
  }

  .case-hero-tagline {
    font-size: 18px;
  }

  .case-hero-content {
    padding-bottom: 60px;
  }

  .case-meta-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .case-metrics {
    padding: 60px 0;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .metric-card {
    padding: 32px 24px;
  }

  .metric-number {
    font-size: 42px;
  }

  .case-content {
    padding: 60px 0;
  }

  .case-section-title {
    font-size: 26px;
  }

  .case-lead {
    font-size: 19px;
  }

  .case-pullquote {
    font-size: 22px;
    margin: 48px 0;
    padding: 32px 0;
  }

  .case-fullbleed img {
    height: 40vh;
    min-height: 280px;
  }

  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .showcase-item img {
    max-width: 280px;
  }

  .comparison-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .case-next-title {
    font-size: 28px;
  }

  .case-links-grid {
    flex-direction: column;
    align-items: center;
  }

  .case-link-card {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}

/* ========================================
   PROCESS ARTIFACTS SECTION
======================================== */
.case-process {
  padding: 100px 0;
  background: #fff;
}

.case-process-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #6e6e73;
  text-align: center;
  margin-bottom: 16px;
}

.case-process-headline {
  font-size: 36px;
  font-weight: 600;
  color: #1d1d1f;
  text-align: center;
  margin-bottom: 60px;
  letter-spacing: -0.5px;
}

.process-artifacts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.artifact {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.artifact img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.artifact:hover img {
  transform: scale(1.05);
}

.artifact-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: 24px;
}

.artifact-label {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Testimonial inside grid */
.case-testimonial {
  margin: 48px 0;
  padding: 40px;
  background: linear-gradient(135deg, #f5f5f7 0%, #e8e8ea 100%);
  border-radius: 12px;
  border: 1px solid #e5e5e5;
}

.case-testimonial blockquote {
  margin: 0;
  padding: 0;
  border: none;
}

.case-testimonial p {
  font-size: 18px;
  font-style: italic;
  color: #1d1d1f;
  line-height: 1.6;
  margin-bottom: 24px;
}

.case-testimonial footer {
  margin: 0;
  padding: 0;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-testimonial cite {
  font-size: 15px;
  font-weight: 600;
  font-style: normal;
  color: #1d1d1f;
  display: block;
}

.testimonial-role {
  font-size: 14px;
  color: #6e6e73;
  display: block;
  margin-top: 2px;
}

/* Impact Metrics Enhanced - Premium Design */
.impact-metrics-enhanced {
  display: block;
  margin: 48px 0 64px;
}

.impact-card {
  background: linear-gradient(135deg, #ffffff 0%, #f9f9fb 100%);
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  margin-bottom: 32px;
}

.impact-card:last-child {
  margin-bottom: 0;
}

.impact-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  border-color: #0071e3;
}

.impact-card-header {
  padding: 16px 24px;
  background: linear-gradient(135deg, #f5f5f7 0%, #e8e8ea 100%);
  border-bottom: 1px solid #e5e5e5;
}

.impact-badge {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #0071e3;
}

.impact-card-content {
  padding: 32px 24px;
  text-align: center;
}

.impact-number-group {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.impact-number-large {
  font-size: 64px;
  font-weight: 700;
  color: #0071e3;
  line-height: 1;
  letter-spacing: -2px;
}

.impact-number-small {
  font-size: 32px;
  font-weight: 600;
  color: #6e6e73;
  line-height: 1;
}

.impact-vs {
  font-size: 14px;
  font-weight: 500;
  color: #6e6e73;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.impact-icon-large {
  font-size: 56px;
  margin-bottom: 20px;
  line-height: 1;
}

.impact-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 12px;
  line-height: 1.3;
}

.impact-card p {
  font-size: 15px;
  color: #6e6e73;
  line-height: 1.6;
  margin: 0;
  max-width: 100%;
}

/* Testimonial Featured - Premium Design */
.testimonial-featured {
  background: linear-gradient(135deg, #0071e3 0%, #005bb5 100%);
  border-radius: 20px;
  padding: 56px 48px;
  position: relative;
  margin-top: 48px;
  overflow: hidden;
}

.testimonial-featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 1;
  z-index: 0;
}

.testimonial-quote-mark {
  position: absolute;
  top: 32px;
  left: 32px;
  font-size: 120px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.15);
  line-height: 1;
  font-family: Georgia, serif;
  z-index: 0;
}

.testimonial-content {
  position: relative;
  z-index: 1;
}

.testimonial-text {
  font-size: 24px;
  font-weight: 500;
  color: #ffffff;
  line-height: 1.5;
  margin-bottom: 40px;
  max-width: 100%;
  font-style: normal;
}

.testimonial-author-enhanced {
  display: flex;
  align-items: center;
  gap: 20px;
}

.testimonial-avatar-large {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

.testimonial-author-info {
  text-align: left;
}

.testimonial-name {
  display: block;
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  font-style: normal;
  margin-bottom: 4px;
}

.testimonial-title {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 8px;
}

.testimonial-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.testimonial-separator {
  color: rgba(255, 255, 255, 0.4);
}

.testimonial-stats {
  font-weight: 500;
}

/* Image gallery with captions */
.case-gallery {
  padding: 80px 0;
  background: #f5f5f7;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.gallery-item {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.gallery-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.gallery-caption {
  padding: 24px;
}

.gallery-caption h3 {
  font-size: 17px;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 8px;
}

.gallery-caption p {
  font-size: 15px;
  color: #6e6e73;
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .process-artifacts {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .case-process-headline {
    font-size: 28px;
  }

  .testimonial-quote {
    font-size: 24px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   ELITE HOMEPAGE STYLES
======================================== */

/* Home Hero */
.home-hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 120px 0 80px;
  background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
}

.home-hero-content {
  max-width: 800px;
}

.home-hero-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #0071e3;
  margin-bottom: 24px;
  padding: 8px 16px;
  background: rgba(0, 113, 227, 0.1);
  border-radius: 100px;
}

.home-hero-title {
  font-size: 72px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -2px;
  color: #1d1d1f;
  margin-bottom: 24px;
}

.home-hero-title span {
  display: block;
}

.home-hero-title em {
  font-style: normal;
  background: linear-gradient(135deg, #0071e3 0%, #00c6ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.home-hero-sub {
  font-size: 24px;
  color: #6e6e73;
  margin-bottom: 40px;
  font-weight: 400;
}

.home-hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  background: #1d1d1f;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  border-radius: 12px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary:hover {
  background: #0071e3;
  opacity: 1;
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  background: transparent;
  color: #1d1d1f;
  font-size: 16px;
  font-weight: 500;
  border-radius: 12px;
  border: 1px solid #d2d2d7;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-secondary:hover {
  border-color: #1d1d1f;
  opacity: 1;
}

.btn-text {
  font-size: 16px;
  font-weight: 500;
  color: #0071e3;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.btn-text:hover {
  opacity: 0.7;
}

.home-hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #86868b;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
}

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

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

/* Section Headers */
.section-header {
  margin-bottom: 60px;
}

.section-header-secondary {
  margin-top: 100px;
  padding-top: 60px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.section-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #0071e3;
  margin-bottom: 12px;
}

.section-headline {
  font-size: 42px;
  font-weight: 600;
  color: #1d1d1f;
  letter-spacing: -1px;
}

/* Projects Section */
.home-projects {
  padding: 120px 0;
  background: #fff;
}

.project-cards {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.project-card-large {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 0;
  background: #f5f5f7;
  border-radius: 24px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.project-card-large:hover {
  transform: translateY(-8px);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.12);
  opacity: 1;
}

.project-card-image {
  overflow: hidden;
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card-large:hover .project-card-image img,
.project-card-medium:hover .project-card-image img {
  transform: scale(1.05);
}

.project-card-content {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-card-label {
  font-size: 13px;
  font-weight: 500;
  color: #6e6e73;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.project-card-title {
  font-size: 28px;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.project-card-desc {
  font-size: 16px;
  color: #6e6e73;
  line-height: 1.5;
  margin-bottom: 20px;
}

.project-card-link {
  font-size: 15px;
  font-weight: 500;
  color: #0071e3;
}

.project-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.project-card-medium {
  background: #f5f5f7;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.project-card-medium:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.1);
  opacity: 1;
}

.project-card-medium .project-card-image {
  height: 240px;
}

.project-card-medium .project-card-content {
  padding: 32px;
}

.project-card-medium .project-card-title {
  font-size: 22px;
}

/* Home About Section */
.home-about {
  padding: 120px 0;
  background: #f5f5f7;
}

.home-about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
}

.home-about-title {
  font-size: 36px;
  font-weight: 600;
  color: #1d1d1f;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}

.home-about-text {
  font-size: 17px;
  color: #424245;
  line-height: 1.6;
  margin-bottom: 24px;
}

.home-about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.stat-item {
  text-align: center;
  padding: 32px 16px;
  background: #fff;
  border-radius: 16px;
}

.stat-number {
  display: block;
  font-size: 42px;
  font-weight: 700;
  color: #1d1d1f;
  letter-spacing: -1px;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 14px;
  color: #6e6e73;
}

/* Home Contact */
.home-contact {
  padding: 120px 0;
  background: #1d1d1f;
}

.home-contact-inner {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.home-contact .section-eyebrow {
  color: rgba(255, 255, 255, 0.5);
}

.home-contact-title {
  font-size: 48px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.home-contact-text {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 48px;
}

.home-contact-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.contact-link-large {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 32px 48px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  text-decoration: none;
  transition: all 0.2s ease;
  min-width: 200px;
}

.contact-link-large:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
  opacity: 1;
}

.contact-link-label {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-link-value {
  font-size: 18px;
  font-weight: 500;
  color: #fff;
}

/* Home Footer */
.home-footer {
  background: #0a0a0a;
  padding: 60px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 48px;
  align-items: center;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 24px;
}

.footer-logo {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}

.footer-tagline {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 4px;
}

.footer-nav {
  display: flex;
  gap: 32px;
}

.footer-nav a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: #fff;
  opacity: 1;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s ease;
}

.footer-social a:hover {
  color: #fff;
  opacity: 1;
}

.footer-bottom {
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

/* ========================================
   ELITE ABOUT PAGE STYLES
======================================== */

.about-hero-elite {
  padding: 160px 0 100px;
  background: #fff;
  position: relative;
}

.about-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}

.about-hero-image {
  position: relative;
}

.about-hero-image img {
  width: 100%;
  max-width: 400px;
  border-radius: 24px;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.15);
}

.about-hero-title {
  font-size: 36px;
  font-weight: 600;
  color: #1d1d1f;
  line-height: 1.3;
  letter-spacing: -0.5px;
  margin-bottom: 32px;
}

.about-hero-bio {
  max-width: 600px;
  margin-bottom: 32px;
}

.about-hero-bio p {
  font-size: 17px;
  color: #424245;
  line-height: 1.7;
  margin-bottom: 20px;
}

.about-hero-bio p:last-child {
  margin-bottom: 0;
}

.about-hero-bio strong {
  color: #1d1d1f;
  font-weight: 600;
}

.about-hero-meta {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: #6e6e73;
}

.meta-icon {
  font-size: 18px;
}

/* Philosophy */
.about-philosophy {
  padding: 100px 0;
  background: #f5f5f7;
}

.philosophy-main {
  max-width: 840px;
}

.philosophy-lead {
  font-size: 32px;
  font-weight: 600;
  color: #1d1d1f;
  line-height: 1.3;
  letter-spacing: -0.5px;
  margin-bottom: 48px;
}

.philosophy-points {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.philosophy-point h3 {
  font-size: 20px;
  font-weight: 600;
  color: #1d1d1f;
  line-height: 1.5;
  margin-bottom: 16px;
}

.philosophy-point ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.philosophy-point li {
  font-size: 17px;
  color: #424245;
  line-height: 1.6;
  padding-left: 24px;
  position: relative;
}

.philosophy-point li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: #0071e3;
  font-weight: 600;
}

.philosophy-point p {
  font-size: 17px;
  color: #424245;
  line-height: 1.7;
  margin: 0;
}

/* Values */
.about-values {
  padding: 100px 0;
  background: #fff;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 60px;
}

.value-card {
  padding: 40px;
  background: #f5f5f7;
  border-radius: 20px;
  transition: transform 0.3s ease;
}

.value-card:hover {
  transform: translateY(-4px);
}

.value-number {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #0071e3;
  margin-bottom: 16px;
}

.value-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 12px;
}

.value-card p {
  font-size: 15px;
  color: #6e6e73;
  line-height: 1.5;
  margin: 0;
}

/* Experience */
.about-experience {
  padding: 100px 0;
  background: #1d1d1f;
}

.experience-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
}

.experience-header .section-eyebrow {
  color: rgba(255, 255, 255, 0.5);
}

.experience-header .section-headline {
  color: #fff;
}

.experience-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.experience-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 32px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.experience-item:first-child {
  padding-top: 0;
}

.experience-role h3 {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.experience-company {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

.experience-period {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}

/* Skills */
.about-skills {
  padding: 100px 0;
  background: #f5f5f7;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
}

.skills-title {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #6e6e73;
  margin-bottom: 24px;
}

.skills-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.skills-list li {
  font-size: 16px;
  color: #1d1d1f;
  padding: 12px 0;
  border-bottom: 1px solid #e5e5e5;
}

.skills-list li:last-child {
  border-bottom: none;
}

/* About CTA */
.about-cta {
  padding: 120px 0;
  background: linear-gradient(135deg, #0071e3 0%, #00c6ff 100%);
}

.cta-inner {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta-title {
  font-size: 48px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.cta-text {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.about-cta .btn-primary {
  background: #fff;
  color: #0071e3;
}

.about-cta .btn-primary:hover {
  background: #1d1d1f;
  color: #fff;
}

.about-cta .btn-secondary {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.about-cta .btn-secondary:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* Responsive - Homepage & About */
@media (max-width: 1024px) {
  .home-hero-title {
    font-size: 56px;
  }

  .project-card-large {
    grid-template-columns: 1fr;
  }

  .project-card-large .project-card-image {
    height: 300px;
  }

  .home-about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .home-about-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .about-hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .about-hero-image img {
    max-width: 300px;
    margin: 0 auto;
  }

  .about-hero-meta {
    justify-content: center;
  }

  .about-hero-content .btn-primary {
    margin: 0 auto;
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .experience-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .home-hero {
    min-height: auto;
    padding: 140px 0 80px;
  }

  .home-hero-title {
    font-size: 42px;
    letter-spacing: -1px;
  }

  .home-hero-sub {
    font-size: 18px;
  }

  .home-hero-scroll {
    display: none;
  }

  .section-headline {
    font-size: 32px;
  }

  .project-cards-grid {
    grid-template-columns: 1fr;
  }

  .project-card-content {
    padding: 28px;
  }

  .home-about-stats {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .stat-item {
    padding: 24px;
  }

  .home-contact-title {
    font-size: 32px;
  }

  .home-contact-links {
    flex-direction: column;
    align-items: center;
  }

  .contact-link-large {
    width: 100%;
    max-width: 280px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .footer-nav {
    justify-content: center;
  }

  .footer-social {
    justify-content: center;
  }

  .about-hero-elite {
    padding: 120px 0 60px;
  }

  .about-hero-grid {
    gap: 32px;
  }

  .about-hero-image img {
    max-width: 280px;
  }

  .about-hero-title {
    font-size: 28px;
    letter-spacing: -0.5px;
  }

  .about-hero-bio p {
    font-size: 16px;
  }

  .about-hero-meta {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }

  .about-philosophy {
    padding: 60px 0;
  }

  .philosophy-lead {
    font-size: 24px;
  }

  .philosophy-point h3 {
    font-size: 18px;
  }

  .philosophy-point li,
  .philosophy-point p {
    font-size: 16px;
  }

  .about-values {
    padding: 60px 0;
  }

  .values-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .value-card {
    padding: 28px 24px;
  }

  .about-experience {
    padding: 60px 0;
  }

  .experience-item {
    flex-direction: column;
    gap: 12px;
    padding: 24px;
  }

  .experience-period {
    text-align: left;
  }

  .about-skills {
    padding: 60px 0;
  }

  .skills-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-cta {
    padding: 60px 0;
  }

  .cta-title {
    font-size: 28px;
  }

  .cta-text {
    font-size: 16px;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .cta-buttons a {
    text-align: center;
  }
}



