/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
  transition: background-color 0.3s ease, color 0.3s ease;
  background: #fafafa;
  color: #000;
}

body.dark-mode {
  background: #2a2a2a;
  color: #fff;
}

/* Global Focus Styles */
*:focus-visible {
  outline: 3px solid #d45a2a;
  outline-offset: 2px;
}

body.dark-mode *:focus-visible {
  outline-color: #ff9d7a;
}

/* Hamburger Menu Button */
.hamburger {
  display: none;
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 1100;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.75rem;
  min-width: 48px;
  min-height: 48px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  transition: transform 0.3s ease;
  pointer-events: auto;
}

.hamburger-line {
  width: 28px;
  height: 3px;
  background: #000;
  border-radius: 2px;
  transition: all 0.3s ease;
}

body.dark-mode .hamburger-line {
  background: #fff;
}

.hamburger.active .hamburger-line:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Navigation */
.navigation {
  position: absolute;
  top: 3rem;
  right: 6rem;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  z-index: 1000;
  transition: transform 0.3s ease;
}

.nav-link {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: #000;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.2s ease;
  text-decoration: none;
}

.nav-link:hover {
  opacity: 0.6;
}

.nav-link.active {
  font-weight: 500;
}

body.dark-mode .nav-link {
  color: #fff;
}

.dark-mode-toggle {
  font-size: 1.25rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.75rem;
  min-width: 48px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.dark-mode-toggle:hover {
  transform: scale(1.1);
}

/* Skip Link (Accessibility) */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #000;
  color: #fff;
  padding: 0.5rem 1rem;
  text-decoration: none;
  z-index: 10000;
}

.skip-link:focus {
  top: 0;
}

body.dark-mode .skip-link {
  background: #fff;
  color: #000;
}

/* Home Page */
.home-page {
  background: #fafafa;
  position: relative;
}

body.dark-mode .home-page {
  background: #2a2a2a;
}

.home-content {
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
  padding: 4rem 6rem;
  min-height: 100vh;
  overflow: hidden;
}

.home-left {
  position: relative;
  display: flex;
  align-items: flex-start;
}

.home-title {
  font-family: 'EdmondSans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(5rem, 12vw, 10rem);
  font-weight: 400;
  line-height: 0.9;
  margin: 0;
  color: #000;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

body.dark-mode .home-title {
  color: #fff;
}

.name-first,
.name-last {
  display: block;
}

.home-right {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
}

.gradient-circle {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: linear-gradient(165deg,
    #ffc4d6 0%,
    #ffb5a7 25%,
    #ffa98d 50%,
    #ff9d7a 75%,
    #e89968 100%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  transition: transform 0.1s ease-out;
  transform-style: preserve-3d;
  will-change: transform;
  pointer-events: none;
}

.home-text {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding-left: 3rem;
  padding: 2rem;
  background: rgba(250, 250, 250, 0.85);
  backdrop-filter: blur(10px);
  border-radius: 12px;
}

body.dark-mode .home-text {
  background: rgba(42, 42, 42, 0.85);
}

.tagline {
  font-family: 'EdmondSans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 2rem 0;
  color: #000;
}

body.dark-mode .tagline {
  color: #fff;
}

.subtitle {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.6;
  margin: 0;
  color: #1a1a1a;
  font-weight: 400;
}

body.dark-mode .subtitle {
  color: #e0e0e0;
}

/* Home Intro Section */
.home-intro {
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
  padding: 5rem 6rem 7rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.home-intro-block {
  max-width: 680px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.home-intro-block.visible {
  opacity: 1;
  transform: translateY(0);
}

.home-intro-featured {
  max-width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.home-intro-image-col {
  display: flex;
  justify-content: flex-end;
}

.home-intro-image {
  width: 100%;
  max-width: 560px;
  height: auto;
  border-radius: 8px;
  display: block;
}

.home-intro-block:nth-child(2) {
  transition-delay: 0.1s;
}

.home-intro-block:nth-child(3) {
  transition-delay: 0.2s;
}

.home-intro-heading {
  font-family: 'EdmondSans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 400;
  line-height: 1.3;
  margin: 0 0 1rem 0;
  color: #000;
}

body.dark-mode .home-intro-heading {
  color: #fff;
}

.home-intro-sub {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
  color: #1a1a1a;
  margin: 0;
  font-weight: 500;
}

body.dark-mode .home-intro-sub {
  color: #e0e0e0;
}

.home-intro-text {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.125rem;
  line-height: 1.8;
  color: #1a1a1a;
  margin: 0;
}

body.dark-mode .home-intro-text {
  color: #e0e0e0;
}

/* About Section */
.about-section {
  background: #fafafa;
  padding: 6rem 6rem;
  min-height: 60vh;
  position: relative;
}

body.dark-mode .about-section {
  background: #2a2a2a;
}

.about-container {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.about-block {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.about-block.visible {
  opacity: 1;
  transform: translateY(0);
}

.about-block-featured {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-featured-text {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.about-featured-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

body.dark-mode .about-image {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.about-heading {
  font-family: 'EdmondSans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 400;
  margin: 0 0 1.5rem 0;
  color: #000;
}

body.dark-mode .about-heading {
  color: #fff;
}

.about-heading-name {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.5rem;
}

.about-text {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.125rem;
  line-height: 1.8;
  color: #1a1a1a;
  margin: 0;
}

body.dark-mode .about-text {
  color: #e0e0e0;
}

.about-text + .about-text {
  margin-top: 1.25rem;
}

.about-text-after-list {
  margin-top: 2rem;
}

.about-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.about-list li {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.125rem;
  line-height: 1.8;
  color: #1a1a1a;
  padding-left: 2rem;
  position: relative;
}

body.dark-mode .about-list li {
  color: #e0e0e0;
}

.about-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: #d45a2a;
  font-size: 1.25rem;
  font-weight: 400;
}

body.dark-mode .about-list li::before {
  color: #ff9d7a;
}

.about-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #ffc4d6, #ffa98d, #e89968);
  margin: 1rem 0;
  opacity: 0;
  transform: scaleX(0);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.about-divider.visible {
  opacity: 1;
  transform: scaleX(1);
}

.about-link {
  color: #c04a1e;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-bottom-color 0.2s ease;
}

.about-link:hover {
  border-bottom-color: #c04a1e;
}

body.dark-mode .about-link {
  color: #ff9d7a;
}

body.dark-mode .about-link:hover {
  border-bottom-color: #ff9d7a;
}

/* Pebbles Animation */
.pebbles-container {
  position: relative;
  width: 200px;
  height: 200px;
  float: left;
  margin: 0 2rem 1rem -200px;
  animation: rotate-container 60s linear infinite;
  pointer-events: none;
}

.pebbles-small {
  position: absolute;
  float: none;
  margin: 0;
  left: 30px;
  top: 6rem;
  width: 120px;
  height: 120px;
  z-index: 1;
}

.pebbles-small .pebble {
  width: 30px;
  height: 30px;
  margin-left: -15px;
  margin-top: -15px;
}

.pebbles-small .pebble-1 { transform: rotate(0deg) translateX(45px); }
.pebbles-small .pebble-2 { transform: rotate(72deg) translateX(45px); }
.pebbles-small .pebble-3 { transform: rotate(144deg) translateX(45px); }
.pebbles-small .pebble-4 { transform: rotate(216deg) translateX(45px); }
.pebbles-small .pebble-5 { transform: rotate(288deg) translateX(45px); }

@keyframes rotate-container {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.pebble {
  position: absolute;
  width: 50px;
  height: 50px;
  left: 50%;
  top: 50%;
  margin-left: -25px;
  margin-top: -25px;
}

.pebble img {
  width: 100%;
  height: 100%;
  opacity: 0.6;
  transition: opacity 0.3s ease;
  transform-style: preserve-3d;
}

body.dark-mode .pebble img {
  opacity: 1;
}

.pebble-1 {
  transform: rotate(0deg) translateX(75px);
}

.pebble-1 img {
  animation: pebble-wobble-1 8s ease-in-out infinite;
}

@keyframes pebble-wobble-1 {
  0%, 100% { transform: rotateX(0deg) rotateY(0deg) rotateZ(-360deg); }
  25% { transform: rotateX(15deg) rotateY(-10deg) rotateZ(-270deg); }
  50% { transform: rotateX(-10deg) rotateY(15deg) rotateZ(-180deg); }
  75% { transform: rotateX(12deg) rotateY(-8deg) rotateZ(-90deg); }
}

.pebble-2 {
  transform: rotate(72deg) translateX(75px);
}

.pebble-2 img {
  animation: pebble-wobble-2 10s ease-in-out infinite;
}

@keyframes pebble-wobble-2 {
  0%, 100% { transform: rotateX(0deg) rotateY(0deg) rotateZ(-360deg); }
  25% { transform: rotateX(-12deg) rotateY(18deg) rotateZ(-270deg); }
  50% { transform: rotateX(15deg) rotateY(-12deg) rotateZ(-180deg); }
  75% { transform: rotateX(-10deg) rotateY(14deg) rotateZ(-90deg); }
}

.pebble-3 {
  transform: rotate(144deg) translateX(75px);
}

.pebble-3 img {
  animation: pebble-wobble-3 12s ease-in-out infinite;
}

@keyframes pebble-wobble-3 {
  0%, 100% { transform: rotateX(0deg) rotateY(0deg) rotateZ(-360deg); }
  25% { transform: rotateX(18deg) rotateY(-15deg) rotateZ(-270deg); }
  50% { transform: rotateX(-14deg) rotateY(10deg) rotateZ(-180deg); }
  75% { transform: rotateX(16deg) rotateY(-12deg) rotateZ(-90deg); }
}

.pebble-4 {
  transform: rotate(216deg) translateX(75px);
}

.pebble-4 img {
  animation: pebble-wobble-4 9s ease-in-out infinite;
}

@keyframes pebble-wobble-4 {
  0%, 100% { transform: rotateX(0deg) rotateY(0deg) rotateZ(-360deg); }
  25% { transform: rotateX(-15deg) rotateY(12deg) rotateZ(-270deg); }
  50% { transform: rotateX(10deg) rotateY(-18deg) rotateZ(-180deg); }
  75% { transform: rotateX(-13deg) rotateY(16deg) rotateZ(-90deg); }
}

.pebble-5 {
  transform: rotate(288deg) translateX(75px);
}

.pebble-5 img {
  animation: pebble-wobble-5 11s ease-in-out infinite;
}

@keyframes pebble-wobble-5 {
  0%, 100% { transform: rotateX(0deg) rotateY(0deg) rotateZ(-360deg); }
  25% { transform: rotateX(14deg) rotateY(-16deg) rotateZ(-270deg); }
  50% { transform: rotateX(-16deg) rotateY(14deg) rotateZ(-180deg); }
  75% { transform: rotateX(11deg) rotateY(-10deg) rotateZ(-90deg); }
}

/* Generic Page Styles (About, Writing, Contact) */
.page-content {
  min-height: 100vh;
  padding: 6rem;
  max-width: 900px;
  margin: 0 auto;
}

.page-title {
  font-family: 'EdmondSans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 400;
  margin: 0 0 2rem 0;
  color: #000;
}

body.dark-mode .page-title {
  color: #fff;
}

.page-text {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.25rem;
  line-height: 1.7;
  color: #1a1a1a;
}

body.dark-mode .page-text {
  color: #e0e0e0;
}

/* Contact Page Styles */
.contact-page {
  min-height: 100vh;
  padding: 6rem 3rem;
  max-width: 800px;
  margin: 0 auto;
}

.contact-header {
  position: relative;
  margin-bottom: 2rem;
}

.contact-title {
  font-family: 'EdmondSans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 400;
  margin: 0;
  color: #000;
  position: relative;
  z-index: 1;
}

body.dark-mode .contact-title {
  color: #fff;
}

.contact-sections {
  display: flex;
  flex-direction: column;
}

.contact-section {
  padding: 0;
}

.contact-email {
  font-family: 'EdmondSans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 400;
  margin: 0 0 1.5rem 0;
  color: #000;
}

body.dark-mode .contact-email {
  color: #fff;
}

.contact-email .contact-link {
  font-size: inherit;
}

.contact-heading {
  font-family: 'EdmondSans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400;
  margin: 0 0 1rem 0;
  color: #000;
}

body.dark-mode .contact-heading {
  color: #fff;
}

.contact-text {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.125rem;
  line-height: 1.7;
  margin: 0 0 0.75rem 0;
  color: #1a1a1a;
}

.contact-text:last-child {
  margin-bottom: 0;
}

body.dark-mode .contact-text {
  color: #e0e0e0;
}

.contact-link {
  color: #c04a1e;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-bottom-color 0.2s ease;
}

.contact-link:hover {
  border-bottom-color: #c04a1e;
}

body.dark-mode .contact-link {
  color: #ff9d7a;
}

body.dark-mode .contact-link:hover {
  border-bottom-color: #ff9d7a;
}

/* Contact Pebbles Animation */
.contact-pebbles {
  position: absolute;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  width: 140px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  z-index: -1;
}

.contact-pebble {
  width: 55px;
  height: 55px;
  position: relative;
}

.contact-pebble img {
  width: 100%;
  height: 100%;
  opacity: 0.6;
  transform-style: preserve-3d;
}

body.dark-mode .contact-pebble img {
  opacity: 1;
}

.contact-pebble-1 {
  animation: pebble-breathe-1 6s ease-in-out infinite;
}

.contact-pebble-2 {
  animation: pebble-breathe-2 6s ease-in-out infinite;
}

@keyframes pebble-breathe-1 {
  0%, 100% {
    transform: translateX(0px) rotateY(0deg) rotateX(0deg);
  }
  50% {
    transform: translateX(15px) rotateY(20deg) rotateX(10deg);
  }
}

@keyframes pebble-breathe-2 {
  0%, 100% {
    transform: translateX(0px) rotateY(0deg) rotateX(0deg);
  }
  50% {
    transform: translateX(-15px) rotateY(-20deg) rotateX(-10deg);
  }
}

/* Writing Page Styles */
.writing-page {
  min-height: 100vh;
  padding: 6rem 6rem 6rem 22rem;
  max-width: 1400px;
  margin: 0 auto;
  background:
    radial-gradient(circle, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: 0 0;
  position: relative;
}

body.dark-mode .writing-page {
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: 0 0;
}

/* Smooth scrolling for anchor links */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
}

.writing-header {
  margin-bottom: 4rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

body.dark-mode .writing-header {
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

/* Writing Sidebar */
.writing-sidebar {
  position: fixed;
  left: 0;
  top: 8rem;
  width: 16rem;
  padding: 2rem;
  z-index: 100;
}

.sidebar-nav {
  position: sticky;
  top: 2rem;
}

.sidebar-title {
  font-family: 'EdmondSans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1.25rem;
  font-weight: 400;
  margin: 0 0 1rem 0;
  color: #000;
}

body.dark-mode .sidebar-title {
  color: #fff;
}

.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sidebar-link {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: #666;
  text-decoration: none;
  display: block;
  padding: 0.5rem 0;
  border-left: 2px solid transparent;
  padding-left: 0.75rem;
  transition: all 0.2s ease;
}

.sidebar-link:hover {
  color: #000;
  border-left-color: #ffa98d;
  padding-left: 1rem;
}

.sidebar-link.active {
  color: #000;
  border-left-color: #ffa98d;
  font-weight: 500;
}

body.dark-mode .sidebar-link {
  color: #999;
}

body.dark-mode .sidebar-link:hover {
  color: #fff;
  border-left-color: #ff9d7a;
}

body.dark-mode .sidebar-link.active {
  color: #fff;
  border-left-color: #ff9d7a;
}

.writing-title {
  font-family: 'EdmondSans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 400;
  margin: 0 0 0.5rem 0;
  color: #000;
}

body.dark-mode .writing-title {
  color: #fff;
}

.writing-subtitle {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.125rem;
  color: #666;
  margin: 0;
}

body.dark-mode .writing-subtitle {
  color: #999;
}

.articles-container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.article-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 3rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.article-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

body.dark-mode .article-card {
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.4);
}

body.dark-mode .article-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), 0 2px 4px rgba(0, 0, 0, 0.4);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.article-date {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.875rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

body.dark-mode .article-date {
  color: #999;
}

.article-tag {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.75rem;
  color: #d45a2a;
  background: rgba(212, 90, 42, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

body.dark-mode .article-tag {
  color: #ff9d7a;
  background: rgba(255, 157, 122, 0.15);
}

.article-title {
  font-family: 'EdmondSans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 400;
  line-height: 1.3;
  margin: 0 0 2rem 0;
  color: #000;
}

body.dark-mode .article-title {
  color: #fff;
}

.article-content {
  max-width: 700px;
}

.article-text {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.8;
  margin: 0 0 1.5rem 0;
  color: #1a1a1a;
}

body.dark-mode .article-text {
  color: #e0e0e0;
}

.article-text strong {
  font-weight: 600;
  color: #000;
}

body.dark-mode .article-text strong {
  color: #fff;
}

.article-text em {
  font-style: italic;
}

.article-callout {
  font-size: 1.25rem;
  padding: 1.5rem;
  background: rgba(212, 90, 42, 0.08);
  border-left: 4px solid #ffa98d;
  border-radius: 4px;
  margin: 2rem 0;
}

body.dark-mode .article-callout {
  background: rgba(255, 157, 122, 0.12);
  border-left-color: #ff9d7a;
}

.article-callout em {
  font-size: 1.25rem;
  font-weight: 500;
}

.article-conclusion {
  font-size: 1.125rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

body.dark-mode .article-conclusion {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.article-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 2rem 0;
}

.article-list li {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.8;
  margin-bottom: 0.75rem;
  color: #1a1a1a;
  padding-left: 1.5rem;
  position: relative;
}

body.dark-mode .article-list li {
  color: #e0e0e0;
}

.article-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #d45a2a;
  font-size: 1.25rem;
}

body.dark-mode .article-list li::before {
  color: #ff9d7a;
}

/* Leadership Page */
.leadership-page {
  background: #f5f5f5;
  color: #1a1a1a;
  padding: 4rem 6rem;
  min-height: 100vh;
}

body.dark-mode .leadership-page {
  background: #1a1a1a;
  color: #fff;
}

.leadership-header {
  position: relative;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
}

.gradient-circle-left {
  display: none;
}

.leadership-title {
  font-family: 'EdmondSans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 400;
  margin: 0 0 0.5rem 0;
  position: relative;
  z-index: 1;
  color: #000;
}

body.dark-mode .leadership-title {
  color: #fff;
}

.leadership-subtitle {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.125rem;
  color: #666;
  margin: 0;
  position: relative;
  z-index: 1;
}

body.dark-mode .leadership-subtitle {
  color: #999;
}

/* Case Study Dropdown (Mobile Only) */
.case-study-dropdown-container {
  display: none;
  position: relative;
  margin-bottom: 2rem;
}

.case-study-dropdown {
  width: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  padding: 1rem 3rem 1rem 1.25rem;
  min-height: 48px;
  background: #fff;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  color: #000;
  appearance: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

body.dark-mode .case-study-dropdown {
  background: #2a2a2a;
  border-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.dropdown-arrow {
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: #d45a2a;
  font-size: 0.875rem;
  pointer-events: none;
}

body.dark-mode .dropdown-arrow {
  color: #ff9d7a;
}

/* Folder Tabs */
.folder-tabs {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  margin-bottom: 0;
  position: relative;
  z-index: 1050;
}

.folder-tab {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.875rem 2rem;
  min-height: 48px;
  border: none;
  border-radius: 8px 8px 0 0;
  background: #cacaca;
  color: #4a4a4a;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  z-index: 0;
  box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
}

body.dark-mode .folder-tab {
  background: #222;
  color: #888;
  box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.3);
}

.folder-tab:hover {
  background: #d5d5d5;
  color: #2a2a2a;
  z-index: 1;
  transform: translateY(-2px);
}

body.dark-mode .folder-tab:hover {
  background: #282828;
  color: #aaa;
}

.folder-tab:focus-visible {
  z-index: 3;
}

.folder-tab.active {
  background: #fff;
  color: #000;
  z-index: 2;
  padding-bottom: 1.25rem;
  box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.1);
  transform: translateY(0);
}

body.dark-mode .folder-tab.active {
  background: #2a2a2a;
  color: #fff;
  box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.5);
}

.tab-label {
  display: block;
}

.case-studies-container {
  max-width: 900px;
  position: relative;
}

.case-study-card {
  background: #fff;
  border-radius: 8px;
  padding: 3rem;
  margin-bottom: 3rem;
  position: relative;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.1),
    0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

body.dark-mode .case-study-card {
  background: #2a2a2a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.3),
    0 4px 12px rgba(0, 0, 0, 0.4);
}

.case-study-card.hidden {
  display: none;
}

/* Folded corner effect */
.case-study-corner {
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 24px 24px 0;
  border-color: transparent #f5f5f5 transparent transparent;
}

body.dark-mode .case-study-corner {
  border-color: transparent #1a1a1a transparent transparent;
}

.case-study-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

body.dark-mode .case-study-meta {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.study-category {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #d45a2a;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

body.dark-mode .study-category {
  color: #ff9d7a;
}

.study-date {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.8125rem;
  color: #999;
  letter-spacing: 0.05em;
}

body.dark-mode .study-date {
  color: #666;
}

.case-study-title {
  font-family: 'EdmondSans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 400;
  line-height: 1.3;
  margin: 0 0 2.5rem 0;
  color: #000;
}

body.dark-mode .case-study-title {
  color: #fff;
}

.case-study-body {
  max-width: 750px;
}

.case-study-section {
  margin-bottom: 2.5rem;
}

.case-study-section h3 {
  font-family: 'EdmondSans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  margin: 0 0 1rem 0;
  color: #1a1a1a;
}

body.dark-mode .case-study-section h3 {
  color: #fff;
}

.case-study-section p {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  margin: 0 0 1.25rem 0;
  color: #333;
}

body.dark-mode .case-study-section p {
  color: #e0e0e0;
}

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

.case-study-section ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.case-study-section li {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: 0.5rem;
  color: #333;
  padding-left: 1.5rem;
  position: relative;
}

body.dark-mode .case-study-section li {
  color: #e0e0e0;
}

.case-study-section li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #d45a2a;
}

body.dark-mode .case-study-section li::before {
  color: #ff9d7a;
}

.case-study-section strong {
  color: #000;
  font-weight: 600;
}

body.dark-mode .case-study-section strong {
  color: #fff;
}

/* Case study images */
.case-study-figure {
  margin: 2.5rem 0;
  text-align: center;
}

.case-study-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: block;
  margin: 0 auto;
}

body.dark-mode .case-study-image {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.case-study-caption {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #666;
  margin-top: 1rem;
  font-style: italic;
}

body.dark-mode .case-study-caption {
  color: #999;
}

/* Responsive styles */

/* Large tablets and small desktops: 1024px - 1199px */
@media (max-width: 1199px) {
  .navigation {
    right: 3rem;
    gap: 2rem;
  }

  .home-content {
    padding: 3rem 4rem;
    gap: 3rem;
  }

  .home-intro {
    padding: 4rem 4rem 6rem;
  }

  .home-title {
    font-size: clamp(4rem, 10vw, 8rem);
  }

  .home-right {
    min-height: 450px;
  }

  .gradient-circle {
    width: 450px;
    height: 450px;
  }

  .home-text {
    padding-left: 2rem;
  }

  .tagline {
    font-size: clamp(1.75rem, 4vw, 3rem);
  }

  .subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
  }

  .about-section {
    padding: 4rem 3rem;
  }

  .about-container {
    gap: 3rem;
  }

  .about-heading {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
  }

  .about-text,
  .about-list li {
    font-size: 1.0625rem;
  }

  .about-divider {
    margin: 2.5rem 0;
  }

  .pebbles-container {
    width: 180px;
    height: 180px;
    margin: 0 1.5rem 1rem -180px;
  }

  .pebble {
    width: 45px;
    height: 45px;
    margin-left: -22.5px;
    margin-top: -22.5px;
  }

  .pebble-1,
  .pebble-2,
  .pebble-3,
  .pebble-4,
  .pebble-5 {
    transform: rotate(var(--rotation)) translateX(65px);
  }

  .pebble-1 { --rotation: 0deg; }
  .pebble-2 { --rotation: 72deg; }
  .pebble-3 { --rotation: 144deg; }
  .pebble-4 { --rotation: 216deg; }
  .pebble-5 { --rotation: 288deg; }

  .leadership-page {
    padding: 3rem 4rem;
  }

  .page-content {
    padding: 5rem 4rem;
  }

  .contact-page {
    padding: 5rem 4rem;
  }

  .contact-header {
    margin-bottom: 2.5rem;
  }

  .contact-pebbles {
    right: -60px;
    width: 120px;
    gap: 40px;
  }

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

  .contact-email {
    font-size: clamp(1.5rem, 2.5vw, 2.25rem);
    margin-bottom: 1.25rem;
  }
}

/* Tablets: 768px - 1023px */
@media (max-width: 1023px) {
  .navigation {
    top: 2rem;
    right: 2rem;
    gap: 1.5rem;
  }

  .nav-link {
    font-size: 1rem;
  }

  .home-content {
    padding: 2rem 3rem;
    gap: 2rem;
  }

  .home-intro {
    padding: 3rem 3rem 5rem;
  }

  .home-title {
    font-size: clamp(3.5rem, 9vw, 7rem);
    line-height: 0.95;
  }

  .home-right {
    min-height: 400px;
  }

  .gradient-circle {
    width: 400px;
    height: 400px;
  }

  .home-text {
    padding-left: 1.5rem;
  }

  .tagline {
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  }

  .page-content {
    padding: 4rem 2rem;
  }

  .page-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
  }

  .page-text {
    font-size: 1.1rem;
  }

  .contact-page {
    padding: 5rem 2rem;
  }

  .contact-header {
    margin-bottom: 2rem;
  }

  .contact-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
  }

  .contact-pebbles {
    right: -50px;
    width: 100px;
    gap: 35px;
  }

  .contact-pebble {
    width: 42px;
    height: 42px;
  }

  .contact-email {
    font-size: clamp(1.35rem, 2.5vw, 2rem);
    margin-bottom: 1rem;
  }

  .contact-text {
    font-size: 1.0625rem;
  }

  .about-section {
    padding: 3rem 2rem;
  }

  .about-container {
    gap: 2.5rem;
  }

  .about-block[data-align="left"],
  .about-block[data-align="right"] {
    align-self: center;
    margin: 0 auto;
    max-width: 100%;
  }

  .writing-page {
    padding: 5rem 4rem 5rem 20rem;
  }

  .writing-sidebar {
    width: 14rem;
    padding: 1.5rem;
  }

  .sidebar-title {
    font-size: 1.125rem;
  }

  .sidebar-link {
    font-size: 0.875rem;
  }

  .writing-header {
    margin-bottom: 3rem;
  }

  .article-card {
    padding: 2.5rem;
  }

  .article-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
  }

  .article-text {
    font-size: 1.0625rem;
  }

  .article-callout {
    font-size: 1.15rem;
    padding: 1.25rem;
  }

  .article-list li {
    font-size: 1.0625rem;
  }

  .leadership-page {
    padding: 2.5rem 2rem;
  }

  .leadership-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .leadership-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
  }

  .leadership-subtitle {
    font-size: 1rem;
  }

  .gradient-circle-left {
    width: 150px;
    height: 150px;
    left: -40px;
    top: -25px;
  }

  .folder-tabs {
    gap: 0.2rem;
  }

  .folder-tab {
    font-size: 0.8125rem;
    padding: 0.65rem 1.5rem 0.75rem 1.5rem;
  }

  .folder-tab.active {
    padding-bottom: 0.875rem;
  }

  .case-study-card {
    padding: 2.5rem;
  }

  .case-study-title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
  }

  .case-study-section h3 {
    font-size: 1.15rem;
  }

  .case-study-section p,
  .case-study-section li {
    font-size: 1rem;
  }
}

/* Mobile landscape and small tablets: 600px - 767px */
@media (max-width: 767px) {
  html, body {
    overflow-x: hidden;
  }

  .hamburger {
    display: flex;
  }

  .mobile-menu-overlay {
    display: block;
  }

  .navigation {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 5rem 2rem 2rem 2rem;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    overflow-y: auto;
  }

  body.dark-mode .navigation {
    background: #1a1a1a;
  }

  .navigation.active {
    right: 0;
  }

  .nav-link {
    font-size: 1.5rem;
    width: 100%;
    text-align: left;
    padding: 1rem 0;
    min-height: 48px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }

  body.dark-mode .nav-link {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-link:last-of-type {
    border-bottom: none;
  }

  .dark-mode-toggle {
    margin-top: 2rem;
    font-size: 2rem;
    align-self: flex-start;
  }

  .home-content {
    padding: 1.5rem;
    padding-top: 4.5rem;
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
    min-height: auto;
  }

  .home-intro {
    padding: 2rem 1.5rem 4rem;
    align-items: center;
  }

  .home-intro-featured {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .home-intro-image-col {
    justify-content: center;
  }

  .home-intro-block {
    max-width: 100%;
  }

  .home-left {
    justify-content: center;
  }

  .home-title {
    text-align: center;
    font-size: clamp(3rem, 8vw, 5rem);
  }

  .home-right {
    min-height: auto;
    order: 2;
  }

  .gradient-circle {
    width: 320px;
    height: 320px;
    left: 50%;
  }

  .home-text {
    padding: 1.5rem;
    max-width: 100%;
    text-align: center;
    margin: 0 auto;
  }

  .tagline {
    font-size: clamp(1.35rem, 3vw, 2rem);
    margin-bottom: 1.5rem;
  }

  .subtitle {
    font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  }

  .page-content {
    padding: 4.5rem 1.5rem 3rem;
  }

  .page-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
    margin-bottom: 1.5rem;
  }

  .page-text {
    font-size: 1.05rem;
  }

  .contact-page {
    padding: 4.5rem 1.5rem 3rem;
  }

  .contact-header {
    margin-bottom: 1.5rem;
  }

  .contact-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

  .contact-pebbles {
    right: -40px;
    width: 85px;
    gap: 28px;
  }

  .contact-pebble {
    width: 38px;
    height: 38px;
  }

  .contact-email {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    margin-bottom: 1rem;
  }

  .contact-text {
    font-size: 1rem;
  }

  .about-section {
    padding: 4.5rem 1.5rem 2rem;
  }

  .about-container {
    gap: 2rem;
  }

  .about-heading {
    font-size: clamp(1.35rem, 2vw, 1.75rem);
    margin-bottom: 1rem;
  }

  .about-text,
  .about-list li {
    font-size: 1rem;
  }

  .about-divider {
    margin: 2rem 0;
  }

  .pebbles-container {
    float: none;
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem auto;
  }

  .pebbles-small {
    position: relative;
    left: auto;
    top: auto;
    width: 150px;
    height: 150px;
  }

  .pebble {
    width: 40px;
    height: 40px;
    margin-left: -20px;
    margin-top: -20px;
  }

  .pebble-1,
  .pebble-2,
  .pebble-3,
  .pebble-4,
  .pebble-5 {
    transform: rotate(var(--rotation)) translateX(50px);
  }

  .about-list {
    gap: 1rem;
  }

  .about-divider {
    margin: 1.5rem 0;
  }

  .writing-page {
    padding: 4.5rem 2rem 4rem;
  }

  .writing-sidebar {
    position: static;
    width: 100%;
    padding: 0;
    margin-bottom: 2rem;
  }

  .sidebar-nav {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    padding: 1.5rem;
  }

  body.dark-mode .sidebar-nav {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  .sidebar-title {
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }

  .sidebar-list {
    gap: 0.5rem;
  }

  .sidebar-link {
    font-size: 0.875rem;
    padding: 0.4rem 0;
    padding-left: 0.75rem;
  }

  .sidebar-link:hover {
    padding-left: 1rem;
  }

  .writing-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
  }

  .articles-container {
    gap: 2.5rem;
  }

  .article-card {
    padding: 2rem;
  }

  .article-title {
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    margin-bottom: 1.5rem;
  }

  .article-text {
    font-size: 1rem;
    margin-bottom: 1.25rem;
  }

  .article-callout {
    font-size: 1.125rem;
    padding: 1rem;
    margin: 1.5rem 0;
  }

  .article-callout em {
    font-size: 1.125rem;
  }

  .article-list {
    margin: 0.75rem 0 1.5rem 0;
  }

  .article-list li {
    font-size: 1rem;
    margin-bottom: 0.6rem;
  }

  .leadership-page {
    padding: 4.5rem 1.5rem 2rem;
  }

  .leadership-header {
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
  }

  .leadership-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

  .leadership-subtitle {
    font-size: 0.9375rem;
  }

  .gradient-circle-left {
    width: 120px;
    height: 120px;
    left: -30px;
    top: -20px;
  }

  .case-study-dropdown-container {
    display: block;
  }

  .folder-tabs {
    display: none;
  }

  .case-study-card {
    padding: 2rem;
    border-radius: 0 6px 6px 6px;
  }

  .case-study-meta {
    margin-bottom: 1.5rem;
    padding-bottom: 0.875rem;
  }

  .study-category,
  .study-date {
    font-size: 0.75rem;
  }

  .case-study-title {
    font-size: clamp(1.35rem, 2.2vw, 1.75rem);
    margin-bottom: 2rem;
  }

  .case-study-section {
    margin-bottom: 2rem;
  }

  .case-study-section h3 {
    font-size: 1.1rem;
  }

  .case-study-section p,
  .case-study-section li {
    font-size: 0.9375rem;
    line-height: 1.65;
  }
}

/* Mobile portrait: 320px - 599px */
@media (max-width: 599px) {
  .hamburger {
    top: 1.5rem;
    right: 1.5rem;
  }

  .hamburger-line {
    width: 24px;
    height: 2.5px;
  }

  .hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
  }

  .hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
  }

  .navigation {
    width: 260px;
    padding: 4.5rem 1.5rem 2rem 1.5rem;
  }

  .nav-link {
    font-size: 1.35rem;
    padding: 0.85rem 0;
    min-height: 48px;
    display: flex;
    align-items: center;
  }

  .dark-mode-toggle {
    font-size: 1.75rem;
    margin-top: 1.5rem;
  }

  .home-content {
    padding: 1rem;
    padding-top: 4.5rem;
    gap: 1.5rem;
  }

  .home-intro {
    padding: 1.5rem 1rem 3rem;
  }

  .home-intro-heading {
    font-size: clamp(1.5rem, 5vw, 1.75rem);
  }

  .home-intro-text,
  .home-intro-sub {
    font-size: 1rem;
  }

  .home-title {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

  .home-right {
    min-height: auto;
  }

  .gradient-circle {
    width: 260px;
    height: 260px;
  }

  .tagline {
    font-size: clamp(1.15rem, 5vw, 1.5rem);
    margin-bottom: 1rem;
  }

  .subtitle {
    font-size: clamp(0.875rem, 3.5vw, 1rem);
    line-height: 1.55;
  }

  .page-content {
    padding: 4.5rem 1rem 2.5rem;
  }

  .page-title {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
    margin-bottom: 1.25rem;
  }

  .page-text {
    font-size: 1rem;
    line-height: 1.6;
  }

  .contact-page {
    padding: 4.5rem 1rem 2.5rem;
  }

  .contact-header {
    margin-bottom: 1.25rem;
  }

  .contact-title {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }

  .contact-pebbles {
    position: static;
    transform: none;
    width: 80px;
    height: 40px;
    margin: 1rem auto 0 auto;
    gap: 20px;
  }

  .contact-pebble {
    width: 30px;
    height: 30px;
  }

  .contact-email {
    font-size: clamp(1.15rem, 4vw, 1.5rem);
    margin-bottom: 0.85rem;
  }

  .contact-text {
    font-size: 0.9375rem;
    line-height: 1.6;
  }

  .about-section {
    padding: 4.5rem 1.25rem 2rem;
  }

  .about-container {
    gap: 2rem;
  }

  .about-heading {
    font-size: clamp(1.15rem, 4vw, 1.5rem);
    margin-bottom: 0.85rem;
  }

  .about-text,
  .about-list li {
    font-size: 0.9375rem;
    line-height: 1.7;
  }

  .about-list {
    gap: 0.85rem;
  }

  .about-list li {
    padding-left: 1.5rem;
  }

  .pebbles-container {
    float: none;
    margin: 0 auto 1.5rem auto;
    width: 140px;
    height: 140px;
  }

  .pebbles-small {
    position: relative;
    left: auto;
    top: auto;
    width: 140px;
    height: 140px;
  }

  .pebble {
    width: 35px;
    height: 35px;
    margin-left: -17.5px;
    margin-top: -17.5px;
  }

  .pebble-1,
  .pebble-2,
  .pebble-3,
  .pebble-4,
  .pebble-5 {
    transform: rotate(var(--rotation)) translateX(45px);
  }

  .writing-page {
    padding: 4.5rem 1rem 3rem;
    background-size: 20px 20px;
  }

  .writing-sidebar {
    margin-bottom: 1.5rem;
  }

  .sidebar-nav {
    padding: 1.25rem;
  }

  .sidebar-title {
    font-size: 0.9375rem;
  }

  .sidebar-link {
    font-size: 0.8125rem;
  }

  .writing-header {
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
  }

  .writing-title {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }

  .writing-subtitle {
    font-size: 1rem;
  }

  .articles-container {
    gap: 2rem;
  }

  .article-card {
    padding: 1.5rem;
    border-radius: 8px;
  }

  .article-meta {
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
  }

  .article-date {
    font-size: 0.8rem;
  }

  .article-tag {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
  }

  .article-title {
    font-size: clamp(1.15rem, 5vw, 1.5rem);
    margin-bottom: 1.25rem;
    line-height: 1.25;
  }

  .article-text {
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 1.15rem;
  }

  .article-callout {
    font-size: 1rem;
    padding: 1rem;
    margin: 1.25rem 0;
  }

  .article-callout em {
    font-size: 1rem;
  }

  .article-conclusion {
    font-size: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
  }

  .article-list {
    margin: 0.5rem 0 1.25rem 0;
  }

  .article-list li {
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
    padding-left: 1.25rem;
  }

  .leadership-page {
    padding: 4.5rem 1rem 1.5rem;
  }

  .leadership-header {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
  }

  .leadership-title {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }

  .leadership-subtitle {
    font-size: 0.875rem;
  }

  .gradient-circle-left {
    width: 100px;
    height: 100px;
    left: -25px;
    top: -15px;
  }

  .folder-tabs {
    gap: 0.5rem;
    flex-wrap: wrap;
  }

  .folder-tab {
    font-size: 0.75rem;
    padding: 0.875rem 1rem;
    min-height: 48px;
  }

  .folder-tab.active {
    padding-bottom: 1rem;
  }

  .case-studies-container {
    max-width: 100%;
  }

  .case-study-card {
    padding: 1.5rem;
  }

  .case-study-corner {
    border-width: 0 18px 18px 0;
  }

  .case-study-meta {
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
  }

  .study-category,
  .study-date {
    font-size: 0.7rem;
  }

  .case-study-title {
    font-size: clamp(1.15rem, 5vw, 1.5rem);
    margin-bottom: 1.5rem;
    line-height: 1.25;
  }

  .case-study-section {
    margin-bottom: 1.75rem;
  }

  .case-study-section h3 {
    font-size: 1rem;
    margin-bottom: 0.85rem;
  }

  .case-study-section p,
  .case-study-section li {
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1rem;
  }

  .case-study-section li {
    padding-left: 1.25rem;
  }
}
