/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */
@layer properties;
@layer theme, base, components, utilities;
@layer theme {
  :root, :host {
    --font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji",
      "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
      "Courier New", monospace;
    --color-lime-500: oklch(0.9864 0.0319 126.23);
    --color-pink-500: oklch(0.9832 0.01 58.22);
    --color-neutral-100: oklch(97% 0 0);
    --color-white: #fff;
    --spacing: 0.25rem;
    --text-sm: 0.875rem;
    --text-sm--line-height: calc(1.25 / 0.875);
    --text-2xl: 1.5rem;
    --text-2xl--line-height: calc(2 / 1.5);
    --text-3xl: 1.875rem;
    --text-3xl--line-height: calc(2.25 / 1.875);
    --text-6xl: 3.75rem;
    --text-6xl--line-height: 1;
    --text-7xl: 4.5rem;
    --text-7xl--line-height: 1;
    --font-weight-bold: 700;
    --animate-bounce: bounce 1s infinite;
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
    --color-darkpink-500: oklch(0.6833 0.1167 24.48);
    --radius-lg: 0.5rem;
  }
}
@layer base {
  *, ::after, ::before, ::backdrop, ::file-selector-button {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0 solid;
  }
  html, :host {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    font-family: var(--default-font-family, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
    scroll-behavior: smooth;
  }
  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }
  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }
  h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
  }
  a {
    color: inherit;
    -webkit-text-decoration: inherit;
    text-decoration: inherit;
  }
  b, strong {
    font-weight: bolder;
  }
  code, kbd, samp, pre {
    font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(--default-mono-font-variation-settings, normal);
    font-size: 1em;
  }
  small {
    font-size: 80%;
  }
  sub, sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
  }
  sub {
    bottom: -0.25em;
  }
  sup {
    top: -0.5em;
  }
  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }
  :-moz-focusring {
    outline: auto;
  }
  progress {
    vertical-align: baseline;
  }
  summary {
    display: list-item;
  }
  ol, ul, menu {
    list-style: none;
  }
  img, svg, video, canvas, audio, iframe, embed, object {
    display: block;
    vertical-align: middle;
  }
  img, video {
    max-width: 100%;
    height: auto;
  }
  img {
    border-radius: 16px;
  }
  button, input, select, optgroup, textarea, ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    border-radius: 0;
    background-color: transparent;
    opacity: 1;
  }
  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }
  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }
  ::file-selector-button {
    margin-inline-end: 4px;
  }
  ::placeholder {
    opacity: 1;
  }
  @supports (not (-webkit-appearance: -apple-pay-button))  or (contain-intrinsic-size: 1px) {
    ::placeholder {
      color: currentcolor;
      @supports (color: color-mix(in lab, red, red)) {
        color: color-mix(in oklab, currentcolor 50%, transparent);
      }
    }
  }
  textarea {
    resize: vertical;
  }
  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }
  ::-webkit-date-and-time-value {
    min-height: 1lh;
    text-align: inherit;
  }
  ::-webkit-datetime-edit {
    display: inline-flex;
  }
  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }
  ::-webkit-datetime-edit, ::-webkit-datetime-edit-year-field, ::-webkit-datetime-edit-month-field, ::-webkit-datetime-edit-day-field, ::-webkit-datetime-edit-hour-field, ::-webkit-datetime-edit-minute-field, ::-webkit-datetime-edit-second-field, ::-webkit-datetime-edit-millisecond-field, ::-webkit-datetime-edit-meridiem-field {
    padding-block: 0;
  }
  ::-webkit-calendar-picker-indicator {
    line-height: 1;
  }
  :-moz-ui-invalid {
    box-shadow: none;
  }
  button, input:where([type="button"], [type="reset"], [type="submit"]), ::file-selector-button {
    appearance: button;
  }
  ::-webkit-inner-spin-button, ::-webkit-outer-spin-button {
    height: auto;
  }
  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }
}
@layer utilities {
  .container {
    width: 100%;
    @media (width >= 40rem) {
      max-width: 40rem;
    }
    @media (width >= 48rem) {
      max-width: 48rem;
    }
    @media (width >= 64rem) {
      max-width: 64rem;
    }
    @media (width >= 80rem) {
      max-width: 80rem;
    }
    @media (width >= 96rem) {
      max-width: 96rem;
    }
  }
  .container {
    margin-inline: auto;
    padding-inline: 10%;
  }
  /* AIDEV-NOTE: Ensure header container content stays above scrolling content */
  header .container {
    position: relative;
    z-index: 10;
  }
  .my-1 {
    margin-block: calc(var(--spacing) * 1);
  }
  .flex {
    display: flex;
  }
  .grid {
    display: grid;
  }
  .hidden {
    display: none;
  }
  .explore-square {
    width: 300px;
    height: 300px;
    color: --color-yellow-500;
  }
  .size-8 {
    width: calc(var(--spacing) * 8);
    height: calc(var(--spacing) * 8);
  }
  .h-0\.5 {
    height: calc(var(--spacing) * 0.5);
  }
  .min-h-150 {
    min-height: calc(var(--spacing) * 150);
  }
  .min-h-\[500px\] {
    min-height: 500px;
  }
  .min-h-\[1000px\] {
    min-height: 1000px;
  }
  .animate-bounce {
    animation: var(--animate-bounce);
  }
  .grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
  .grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .grid-rows-3 {
    grid-template-rows: repeat(3, minmax(0, 1fr));
  }
  .flex-col {
    flex-direction: column;
  }
  .flex-row {
    flex-direction: row;
  }
  .place-content-center {
    place-content: center;
  }
  .items-center {
    align-items: center;
  }
  .items-center-safe {
    align-items: safe center;
  }
  .items-end {
    align-items: flex-end;
  }
  .justify-between {
    justify-content: space-between;
  }
  .gap-4 {
    gap: calc(var(--spacing) * 4);
  }
  .gap-6 {
    gap: calc(var(--spacing) * 6);
  }
  .gap-8 {
    gap: calc(var(--spacing) * 8);
  }
  .gap-50 {
    gap: calc(var(--spacing) * 50);
  }
  .gap-x-6 {
    column-gap: calc(var(--spacing) * 6);
  }
  .gap-x-20 {
    column-gap: calc(var(--spacing) * 20);
  }
  .gap-y-10 {
    row-gap: calc(var(--spacing) * 10);
  }
  .border-t-0 {
    border-top-style: var(--tw-border-style);
    border-top-width: 0px;
  }
  .bg-\[\#342215\] {
    background-color: #342215;
  }
  .bg-\[\#E6FFC1\] {
    background-color: #E6FFC1;
  }
  .bg-\[\#FFF8F3\] {
    background-color: #FFF8F3;
  }
  .bg-\[\#FFFBD0\] {
    background-color: #FFFBD0;
  }
  .bg-lime-500 {
    background-color: var(--color-lime-500);
  }
  .bg-neutral-100 {
    background-color: var(--color-neutral-100);
  }
  .bg-pink-500 {
    background-color: var(--color-pink-500);
  }
  .bg-white {
    background-color: var(--color-white);
  }
  .py-6 {
    padding-block: calc(var(--spacing) * 6);
  }
  .py-45 {
    padding-block: calc(var(--spacing) * 45);
  }
  .text-center {
    text-align: center;
  }
  .text-right {
    text-align: right;
  }
  .text-2xl {
    font-size: var(--text-2xl);
    line-height: var(--tw-leading, var(--text-2xl--line-height));
  }
  .text-3xl {
    font-size: var(--text-3xl);
    line-height: var(--tw-leading, var(--text-3xl--line-height));
  }
  .text-6xl {
    font-size: var(--text-6xl);
    line-height: var(--tw-leading, var(--text-6xl--line-height));
  }
  .text-7xl {
    font-size: var(--text-7xl);
    line-height: var(--tw-leading, var(--text-7xl--line-height));
  }
  .text-sm {
    font-size: var(--text-sm);
    line-height: var(--tw-leading, var(--text-sm--line-height));
  }
  .font-bold {
    --tw-font-weight: var(--font-weight-bold);
    font-weight: var(--font-weight-bold);
  }
  .light-text {
    color: #FFFBCA;
  }
  .text-darkpink-500 {
    color: var(--color-darkpink-500);
  }
  .text-white {
    color: var(--color-white);
  }
  .hover\:underline {
    &:hover {
      @media (hover: hover) {
        text-decoration-line: underline;
      }
    }
  }
  .sm\:grid-cols-1 {
    @media (width >= 40rem) {
      grid-template-columns: repeat(1, minmax(0, 1fr));
    }
  }
  .md\:block {
    @media (width >= 48rem) {
      display: block;
    }
  }
  .lg\:grid-cols-2 {
    @media (width >= 64rem) {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
  .dark\:bg-white\/10 {
    @media (prefers-color-scheme: dark) {
      background-color: color-mix(in srgb, #fff 10%, transparent);
      @supports (color: color-mix(in lab, red, red)) {
        background-color: color-mix(in oklab, var(--color-white) 10%, transparent);
      }
    }
  }
}
@property --tw-border-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}
@property --tw-font-weight {
  syntax: "*";
  inherits: false;
}
@keyframes bounce {
  0%, 100% {
    transform: translateY(-25%);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }
  50% {
    transform: none;
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
}
@layer properties {
  @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
    *, ::before, ::after, ::backdrop {
      --tw-border-style: solid;
      --tw-font-weight: initial;
    }
  }
}

/* my additions */
@layer components {
    .card {
        background-color: var(--color-yellow-500);
        border-radius: var(--radius-lg);
        padding: var(--spacing-6);
        width: 360px;
        height: 320px;
        box-shadow: var(--shadow-md);
        border: black 1px solid;
    }
}

/* global layout tweaks */
/* AIDEV-NOTE: Sticky header must cover scrolling content underneath */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  /* Ensure header has solid background to cover content */
  isolation: isolate;
  pointer-events: auto;
}

header * {
  pointer-events: auto;
}

/* AIDEV-NOTE: Hero shape spinning animation on hover */
.hero-shape-card {
  display: inline-block;
}

.hero-shape {
  width: 96px;
  height: auto;
  transform-origin: center;
  /* AIDEV-NOTE: Rotation handled by JavaScript for smooth deceleration effect */
}

/* Hero shape scale-in animation on page load */
.hero-shape-animate {
  opacity: 0;
  transform: scale(0);
  animation: scaleIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes scaleIn {
  0% {
    opacity: 0;
    transform: scale(0);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Journal section caption */
#journal-highlights caption,
#journal-text caption {
  display: block;
  font-family: "Syne", system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #342215;
  margin-bottom: calc(var(--spacing) * 3);
}

/* Journal section text readability */
#journal-text p {
  font-size: 1rem;
  line-height: 1.7;
  color: #342215;
  max-width: 100%;
}

@media (min-width: 1024px) {
  #journal-text p {
    max-width: 80ch;
  }
}

@media (max-width: 768px) {
  #journal-text p {
    font-size: 0.95rem;
    line-height: 1.6;
  }
}

@media (max-width: 480px) {
  #journal-text p {
    font-size: 0.9rem;
    line-height: 1.6;
  }
}

/* Journal heading animated underline */
.journal-heading-underline {
  position: relative;
  display: inline;
  cursor: pointer;
  transition: color 0.3s ease;
}

.journal-heading-underline::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 0;
  height: 3px;
  background-color: #8FBF5A;
  transition: width 0.6s ease-out;
}

.journal-heading-underline:hover {
  color: #8FBF5A;
}

.journal-heading-underline:hover::after {
  width: 100%;
}

/* Journal card 'Coming soon' badge */
.journal-card-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background-color: rgba(255, 251, 208, 0.95); /* warm cream, matches brand */
  color: #342215;
  font-family: "Work Sans", system-ui, sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.exploration-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background-color: rgba(255, 251, 208, 0.95);
  color: #342215;
  font-family: "Work Sans", system-ui, sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

/* About intro LinkedIn link hover */
.about-intro-link {
  color: inherit;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.about-intro-link:hover {
  color: #C77D0A; /* brand orange on hover so the link feels interactive */
}

/* About page heading underlines - different colors */
.heading-underline-orange {
  position: relative;
  display: inline;
  cursor: pointer;
  transition: color 0.3s ease;
}

.heading-underline-orange::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 0;
  height: 3px;
  background-color: #C77D0A;
  transition: width 0.6s ease-out;
}

.heading-underline-orange:hover {
  color: #C77D0A;
}

.heading-underline-orange:hover::after {
  width: 100%;
}

.heading-underline-pink {
  position: relative;
  display: inline;
  cursor: pointer;
  transition: color 0.3s ease;
}

.heading-underline-pink::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 0;
  height: 3px;
  background-color: #E04A7F;
  transition: width 0.6s ease-out;
}

.heading-underline-pink:hover {
  color: #E04A7F;
}

.heading-underline-pink:hover::after {
  width: 100%;
}

/* Footer styles */
footer {
  padding: calc(var(--spacing) * 12) 0;
}

footer h4 {
  font-family: "Syne", system-ui, sans-serif;
  transition: font-weight 0.3s ease;
}

footer h4:hover {
  font-weight: 700;
}

footer a {
  transition: text-decoration 200ms ease;
}

footer a:hover {
  text-decoration: underline;
}

.footer-linkedin-link {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.footer-linkedin-link:hover {
  color: #C77D0A;
  text-decoration: underline;
}

#footer-links {
  margin-bottom: calc(var(--spacing) * 3);
  font-weight: 600;
  font-size: 1rem;
}

/* Footer responsive styles */
@media (max-width: 1024px) {
  footer .container > div {
    flex-direction: column;
    gap: calc(var(--spacing) * 8);
    align-items: flex-start;
  }
  
  footer h4 {
    font-size: 2.5rem;
  }
  
  footer p {
    font-size: 1.25rem;
  }
  
  footer ul:last-child {
    margin-top: calc(var(--spacing) * 4);
  }
}

@media (max-width: 768px) {
  footer {
    padding: calc(var(--spacing) * 10) 0;
  }
  
  footer h4 {
    font-size: 2rem;
  }
  
  footer p {
    font-size: 1.1rem;
  }
  
  footer .container {
    gap: calc(var(--spacing) * 6);
  }
  
  footer .container > div {
    flex-direction: column;
    gap: calc(var(--spacing) * 6);
  }
}

@media (max-width: 480px) {
  footer {
    padding: calc(var(--spacing) * 8) 0;
  }
  
  footer h4 {
    font-size: 1.75rem;
    line-height: 1.3;
  }
  
  footer p {
    font-size: 1rem;
    line-height: 1.6;
  }
  
  footer .container {
    gap: calc(var(--spacing) * 5);
  }
  
  #footer-links {
    font-size: 0.9rem;
    margin-bottom: calc(var(--spacing) * 2);
  }
  
  footer a {
    font-size: 0.95rem;
  }
}

/* Case Study Styles - New Design */
.cs-dark-hero {
  background-image: url('./assets/hero-banner-ieso.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 70vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.cs-capoeira-hero {
  background-image: url('./assets/capoeira-hero-banner.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Alphabet Soup hero override */
.cs-alphabet-hero {
  background-image: none;
  background-color: #8FBF5A;
}

.cs-capoeira-hero::before {
  display: none;
}

.cs-dark-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.cs-dark-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.cs-hero-content-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.cs-hero-meta {
  font-family: "Syne", system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #F0FFDB;
  margin-bottom: calc(var(--spacing) * 8);
  opacity: 1;
  animation: fadeInDown 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.cs-hero-content-centered .cs-hero-meta {
  color: #6B1A3D;
}

.cs-hero-title {
  font-family: "Syne", system-ui, sans-serif;
  font-size: 5rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.1;
  color: #ffffff;
  max-width: 900px;
  animation: fadeInUp 1s ease-out 0.2s both;
}

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

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

@keyframes slideIn {
  from {
    width: 0;
    opacity: 0;
  }
  to {
    width: 120px;
    opacity: 1;
  }
}

/* Case Study Section Navigation */
.case-study-nav {
  position: -webkit-sticky;
  position: sticky;
  top: 80px;
  background-color: #ffffff;
  border-bottom: 2px solid #E6FFC1;
  z-index: 99;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  width: 100%;
}

/* Add scroll offset for sections to account for sticky header and nav */
.cs-overview-section,
.cs-details-section,
.case-study-section,
.case-study-full-image {
  scroll-margin-top: 160px;
}

.case-study-nav-list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: calc(var(--spacing) * 2);
  padding: calc(var(--spacing) * 3) 0;
  margin: 0;
  list-style: none;
  flex-wrap: wrap;
}

.case-study-nav-link {
  font-family: "Syne", system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #342215;
  text-decoration: none;
  padding: calc(var(--spacing) * 1.5) calc(var(--spacing) * 3);
  border-radius: 20px;
  transition: all 0.3s ease;
  position: relative;
}

.case-study-nav-link:hover {
  background-color: #E6FFC1;
  color: #342215;
  transform: translateY(-2px);
}

.case-study-nav-link:focus {
  outline: 2px solid #E6A53B;
  outline-offset: 2px;
}

.case-study-nav-link.active {
  background-color: #342215;
  color: #ffffff;
}

/* Tablet and below */
@media (max-width: 1024px) {
  .case-study-nav-list {
    gap: calc(var(--spacing) * 1.5);
  }
  
  .case-study-nav-link {
    font-size: 0.8rem;
    padding: calc(var(--spacing) * 1.5) calc(var(--spacing) * 2.5);
  }
}

/* Mobile landscape and below */
@media (max-width: 768px) {
  /* Reduce container padding on mobile */
  .container {
    padding-inline: 5%;
  }
  
  .case-study-nav {
    top: 88px;
  }
  
  .case-study-nav-list {
    gap: calc(var(--spacing) * 1);
    padding: calc(var(--spacing) * 2) 0;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  
  .case-study-nav-list::-webkit-scrollbar {
    display: none;
  }
  
  .case-study-nav-link {
    font-size: 0.75rem;
    padding: calc(var(--spacing) * 1) calc(var(--spacing) * 2);
    white-space: nowrap;
    flex-shrink: 0;
  }
  
  .cs-hero-title {
    font-size: 2.5rem;
    line-height: 1.2;
  }
  
  .cs-hero-meta {
    font-size: 0.7rem;
    margin-bottom: calc(var(--spacing) * 4);
  }
  
  .cs-dark-hero {
    min-height: 50vh;
  }
  
  .cs-overview-grid,
  .cs-details-grid {
    grid-template-columns: 1fr !important;
    gap: calc(var(--spacing) * 6);
  }
  
  .cs-overview-text {
    order: 1;
  }
  
  .cs-overview-image {
    order: 2;
    min-height: 250px;
    padding: calc(var(--spacing) * 6);
  }
  
  .cs-overview-image img {
    max-width: 200px;
    max-height: 200px;
  }
  
  .cs-overview-section {
    padding: calc(var(--spacing) * 12) 0;
  }
  
  .cs-details-section {
    padding: calc(var(--spacing) * 10) 0;
  }
  
  .case-study-section {
    padding: calc(var(--spacing) * 12) 0;
  }
  
  .case-study-full-image {
    height: 350px;
  }
  
  .cs-image-overlay {
    padding: calc(var(--spacing) * 3) calc(var(--spacing) * 4);
    font-size: 0.85rem;
    line-height: 1.6;
  }
  
  .case-study-section-title {
    font-size: 1.75rem;
    margin-bottom: calc(var(--spacing) * 6);
  }
  
  .case-study-large-text {
    font-size: 1.1rem;
    line-height: 1.6;
  }
  
  .case-study-centered-content {
    max-width: 100%;
  }
  
  .case-study-process-grid {
    gap: calc(var(--spacing) * 6);
  }
  
  .case-study-process-card {
    padding: calc(var(--spacing) * 5);
  }
  
  .case-study-process-number {
    font-size: 2rem;
  }
  
  .case-study-stats-grid {
    gap: calc(var(--spacing) * 8);
  }
  
  .case-study-stat-number {
    font-size: 2.25rem;
  }
  
  .case-study-stat-label {
    font-size: 0.9rem;
  }
  
  .cs-section-heading {
    font-size: 1.75rem;
  }
  
  .cs-overview-section,
  .cs-details-section,
  .case-study-section,
  .case-study-full-image {
    scroll-margin-top: 120px;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  /* Further reduce container padding on small mobile */
  .container {
    padding-inline: 4%;
  }
  
  .case-study-nav {
    top: 88px;
  }
  
  .case-study-nav-list {
    padding: calc(var(--spacing) * 1.5) 0;
  }
  
  .case-study-nav-link {
    font-size: 0.7rem;
    padding: calc(var(--spacing) * 0.75) calc(var(--spacing) * 1.5);
    letter-spacing: 0.03em;
  }
  
  .cs-hero-title {
    font-size: 2rem;
    line-height: 1.15;
  }
  
  .cs-hero-meta {
    font-size: 0.65rem;
    margin-bottom: calc(var(--spacing) * 3);
  }
  
  .cs-dark-hero {
    min-height: 40vh;
  }
  
  .case-study-section-title {
    font-size: 1.5rem;
    margin-bottom: calc(var(--spacing) * 5);
  }
  
  .case-study-large-text {
    font-size: 1rem;
  }
  
  .cs-overview-section,
  .cs-details-section,
  .case-study-section {
    padding: calc(var(--spacing) * 10) 0;
  }
  
  .case-study-process-card {
    padding: calc(var(--spacing) * 4);
  }
  
  .case-study-process-number {
    font-size: 1.75rem;
    margin-bottom: calc(var(--spacing) * 2);
  }
  
  .case-study-stat-number {
    font-size: 2rem;
  }
  
  .case-study-stat-label {
    font-size: 0.85rem;
  }
  
  .cs-image-overlay {
    padding: calc(var(--spacing) * 2.5) calc(var(--spacing) * 3);
    font-size: 0.8rem;
  }
  
  .case-study-full-image {
    height: 300px;
  }
  
  .cs-overview-image {
    min-height: 200px;
    padding: calc(var(--spacing) * 4);
  }
  
  .cs-overview-image img {
    max-width: 150px;
    max-height: 150px;
  }
  
  .cs-section-heading {
    font-size: 1.5rem;
  }
  
  .cs-section-label {
    font-size: 0.65rem;
    margin-bottom: calc(var(--spacing) * 3);
  }
  
  .cs-overview-text p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: calc(var(--spacing) * 3);
  }
  
  .case-study-nav-button {
    gap: calc(var(--spacing) * 1.5);
    padding: calc(var(--spacing) * 3);
    min-height: 70px;
    width: 100%;
    flex: none;
  }
  
  .nav-button-logo {
    width: 35px;
    height: 35px;
  }
  
  .logo-dark-bg,
  .logo-light-bg {
    padding: calc(var(--spacing) * 1);
  }
  
  .nav-button-label {
    font-size: 0.6rem;
    letter-spacing: 0.06em;
  }
  
  .nav-button-text {
    font-size: 0.85rem;
    line-height: 1.25;
  }
  
  .nav-arrow {
    font-size: 1rem;
  }
}

.cs-hero-lines {
  position: absolute;
  top: 20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background-image: 
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 2px,
      rgba(255, 240, 123, 0.03) 2px,
      rgba(255, 255, 255, 0.03) 4px
    );
  transform: rotate(-15deg);
}

.cs-overview-section {
  background-color: #FFFBCA;
  padding: calc(var(--spacing) * 20) 0;
}

.cs-yellow-section {
  background-color: #FFFBCA;
}

.cs-overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(var(--spacing) * 12);
  align-items: center;
}

.cs-section-label {
  font-family: "Syne", system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1a1a1a;
  margin-bottom: calc(var(--spacing) * 4);
}

.cs-section-heading {
  font-family: "Syne", system-ui, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: #1a1a1a;
  margin-bottom: calc(var(--spacing) * 6);
}

.cs-overview-text p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #1a1a1a;
  margin-bottom: calc(var(--spacing) * 4);
}

.cs-overview-image {
  width: 100%;
  height: 100%;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  padding: calc(var(--spacing) * 8);
  border-radius: 16px;
}

.cs-overview-image img {
  max-width: 300px;
  max-height: 300px;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.cs-overview-dark {
  background-color: #342215;
  padding: calc(var(--spacing) * 12);
}

.cs-overview-dark img {
  max-width: 250px;
  max-height: 250px;
}

@media (max-width: 768px) {
  .cs-overview-image {
    min-height: 300px;
    padding: calc(var(--spacing) * 4);
  }
  
  .cs-overview-image img {
    max-width: 200px;
    max-height: 200px;
  }
}

@media (max-width: 480px) {
  .cs-overview-image {
    min-height: 250px;
    padding: calc(var(--spacing) * 3);
  }
  
  .cs-overview-image img {
    max-width: 150px;
    max-height: 150px;
  }
}

.cs-details-section {
  background-color: #ffffff;
  padding: calc(var(--spacing) * 20) 0;
}

/* Process Steps */
.case-study-process {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing) * 8);
  margin-top: calc(var(--spacing) * 8);
}

.process-step {
  padding: calc(var(--spacing) * 6);
  background-color: #F0FFDB;
  border-left: 4px solid #5A8F3A;
  border-radius: 8px;
}

.process-step-title {
  font-family: "Syne", system-ui, sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #342215;
  margin-bottom: calc(var(--spacing) * 3);
}

.process-step-desc {
  font-size: 1rem;
  line-height: 1.7;
  color: #1a1a1a;
}

/* Takeaway Items */
.takeaway-item {
  margin-bottom: calc(var(--spacing) * 8);
}

.takeaway-title {
  font-family: "Syne", system-ui, sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #342215;
  margin-bottom: calc(var(--spacing) * 3);
}

.takeaway-item p {
  font-size: 1rem;
  line-height: 1.7;
  color: #1a1a1a;
}

@media (max-width: 768px) {
  .process-step {
    padding: calc(var(--spacing) * 4);
  }
  
  .process-step-title,
  .takeaway-title {
    font-size: 1.25rem;
  }
}

.cs-details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: calc(var(--spacing) * 12);
}

.cs-detail-col {
  padding: 0;
  text-align: center;
}

.cs-detail-title {
  font-family: "Syne", system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1a1a1a;
  margin-bottom: calc(var(--spacing) * 4);
}

.cs-detail-col p {
  font-size: 0.9rem;
  line-height: 1.9;
  color: #1a1a1a;
  margin-bottom: calc(var(--spacing) * 2);
}

/* Case Study Styles */
.case-study-hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
}

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

.case-study-kicker {
  font-family: "Syne", system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: calc(var(--spacing) * 3);
}

.case-study-title {
  font-family: "Syne", system-ui, sans-serif;
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: calc(var(--spacing) * 4);
}

.case-study-subtitle {
  font-size: 1.25rem;
  line-height: 1.6;
  opacity: 0.9;
}

.case-study-section {
  padding: calc(var(--spacing) * 20) 0;
}

.case-study-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: calc(var(--spacing) * 8);
  align-items: center;
}

.case-study-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: calc(var(--spacing) * 8);
}

.case-study-text-block {
  padding: calc(var(--spacing) * 8);
  border-radius: 8px;
}

.case-study-block-title {
  font-family: "Syne", system-ui, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: calc(var(--spacing) * 3);
  color: #342215;
}

.case-study-image-block img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.case-study-detail-card {
  padding: calc(var(--spacing) * 4);
}

.case-study-detail-title {
  font-family: "Syne", system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: calc(var(--spacing) * 3);
  color: #342215;
}

.case-study-detail-card p {
  margin-bottom: calc(var(--spacing) * 1);
  color: #342215;
}

.case-study-centered-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.case-study-section-title {
  font-family: "Syne", system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: calc(var(--spacing) * 8);
  color: #342215;
  text-align: center;
}

.case-study-large-text {
  font-size: 1.5rem;
  line-height: 1.6;
  color: #342215;
}

.case-study-process-grid {
  margin-top: calc(var(--spacing) * 8);
}

.case-study-process-card {
  padding: calc(var(--spacing) * 6);
  border: 1px solid #ddd;
  border-radius: 8px;
}

.case-study-process-number {
  font-family: "Syne", system-ui, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: calc(var(--spacing) * 3);
  color: #342215;
}

.case-study-full-image {
  width: 100%;
  position: relative;
  overflow: hidden;
  height: 500px;
}

.case-study-full-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 16px;
}

.cs-image-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(255, 255, 255, 0.9);
  padding: calc(var(--spacing) * 8) calc(var(--spacing) * 10);
  border-radius: 12px;
  max-width: 600px;
  width: 90%;
  text-align: center;
}

.cs-image-overlay p {
  font-size: 1rem;
  line-height: 1.7;
  color: #1a1a1a;
  margin: 0;
}

.case-study-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: calc(var(--spacing) * 12);
  text-align: center;
}

.case-study-stat-number {
  font-family: "Syne", system-ui, sans-serif;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: calc(var(--spacing) * 2);
  color: #5A8F3A;
}

.case-study-stat-label {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #342215;
}

.case-study-design-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: calc(var(--spacing) * 6);
  margin-top: calc(var(--spacing) * 8);
}

.case-study-design-item {
  text-align: center;
}

.case-study-design-preview {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  margin-bottom: calc(var(--spacing) * 2);
}

.case-study-design-label {
  font-size: 0.85rem;
  color: #342215;
}

.case-study-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: calc(var(--spacing) * 6);
  max-width: 1000px;
  margin: 0 auto;
}

.case-study-nav-button {
  display: flex;
  align-items: center;
  gap: calc(var(--spacing) * 3);
  padding: calc(var(--spacing) * 4) calc(var(--spacing) * 6);
  background-color: rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  text-decoration: none;
  color: #342215;
  transition: all 0.3s ease;
  flex: 1;
  max-width: 450px;
  min-height: 100px;
}

.case-study-nav-button:hover {
  background-color: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nav-button-content {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing) * 1);
}

.nav-button-label {
  font-family: "Syne", system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #342215;
  opacity: 0.7;
}

.nav-button-text {
  font-family: "Syne", system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #342215;
  line-height: 1.3;
}

.nav-button-logo {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-dark-bg {
  background-color: #342215;
  border-radius: 6px;
  padding: calc(var(--spacing) * 1.5);
}

.logo-light-bg {
  background-color: #ffffff;
  border-radius: 6px;
  padding: calc(var(--spacing) * 1.5);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-button-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav-arrow {
  font-size: 1.5rem;
  color: #342215;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.back-button:hover .nav-arrow {
  transform: translateX(-4px);
}

.next-button:hover .nav-arrow {
  transform: translateX(4px);
}

/* View Live Site Link */
.view-site-link {
  font-family: "Syne", system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #342215;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.3s ease;
}

.view-site-link:hover {
  color: #E6A53B;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 56px;
  height: 56px;
  background-color: #342215;
  color: #ffffff;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 8px 24px rgba(52, 34, 21, 0.6), 0 0 0 4px rgba(255, 255, 255, 0.3);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: #E6A53B;
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 32px rgba(230, 165, 59, 0.6), 0 0 0 4px rgba(255, 255, 255, 0.5);
}

.back-to-top span {
  display: block;
  line-height: 1;
}

.case-study-next-project-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.3s ease;
}

.case-study-next-project-link:hover {
  transform: translateX(8px);
}

.case-study-next-project {
  display: flex;
  gap: calc(var(--spacing) * 8);
  align-items: flex-start;
  max-width: 900px;
  margin: 0 auto;
}

.case-study-next-icon {
  flex-shrink: 0;
  width: 100%;
  max-width: 120px;
  min-width: 80px;
  height: auto;
}

.case-study-next-icon img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.case-study-next-label {
  font-family: "Syne", system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: calc(var(--spacing) * 2);
  color: #342215;
}

.case-study-next-text {
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: calc(var(--spacing) * 4);
  color: #342215;
}

.case-study-next-link {
  font-family: "Syne", system-ui, sans-serif;
  font-weight: 600;
  color: #342215;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.case-study-next-link:hover {
  opacity: 0.7;
}

@media (max-width: 768px) {
  .case-study-title {
    font-size: 2.5rem;
  }
  
  .case-study-grid-2,
  .case-study-grid-3,
  .case-study-stats-grid,
  .case-study-design-grid {
    grid-template-columns: 1fr;
  }
  
  .case-study-next-project {
    flex-direction: column;
  }
  
  .case-study-next-icon {
    max-width: 100px;
    min-width: 70px;
  }
  
  .case-study-navigation {
    flex-direction: column;
    gap: calc(var(--spacing) * 3);
    align-items: stretch;
  }
  
  .case-study-nav-button {
    max-width: 100%;
    width: 100%;
    flex: none;
    gap: calc(var(--spacing) * 2);
    padding: calc(var(--spacing) * 4);
    min-height: 80px;
  }
  
  .back-button {
    justify-content: flex-start;
  }
  
  .next-button {
    justify-content: space-between;
  }
  
  .nav-button-logo {
    width: 45px;
    height: 45px;
  }
  
  .nav-button-label {
    font-size: 0.65rem;
    letter-spacing: 0.08em;
  }
  
  .nav-button-text {
    font-size: 0.95rem;
    line-height: 1.3;
  }
  
  .nav-arrow {
    font-size: 1.25rem;
  }
}

/* custom work section + project title styles */
#work {
  background-color: #FFF8F3;
  transition: background 600ms ease-in-out, background-color 600ms ease-in-out;
}

/* patterned backgrounds for work section states */
.work-bg-alphabet {
  background-color: #8FBF5A;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(255, 251, 202, 0.4) 0, transparent 55%),
    radial-gradient(circle at 80% 70%, rgba(255, 251, 202, 0.3) 0, transparent 60%);
  background-blend-mode: multiply;
}

.work-bg-webflow {
  background-color: #E6A53B;
  background-image:
    linear-gradient(135deg, rgba(255, 251, 202, 0.25) 0, transparent 35%),
    linear-gradient(315deg, rgba(255, 251, 202, 0.3) 0, transparent 40%);
}

.work-bg-hugo {
  background-color: #F6D45A;
  background-image:
    radial-gradient(circle at 0 0, rgba(255, 251, 202, 0.4) 0, transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(255, 251, 202, 0.35) 0, transparent 55%);
}

.work-bg-hydro {
  background-color: #F6AFC5;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(255, 251, 202, 0.55) 0, transparent 55%),
    radial-gradient(circle at 85% 80%, rgba(255, 251, 202, 0.45) 0, transparent 55%);
}

.project-title {
  font-family: "Syne", system-ui, sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 400;
}

.project-title a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s ease;
  color: #342215;
  opacity: 1;
  position: relative;
  z-index: 2;
  transition: opacity 400ms ease,
              transform 400ms ease,
              color 400ms ease,
              font-size 400ms ease,
              font-weight 400ms ease;
}

.project-title.active {
  opacity: 1;
  color: #342215;
  font-weight: 700;
  font-size: 3rem;
  transform: scale(1.05);
}

/* AIDEV-NOTE: Project-specific title colors - WCAG compliant contrast */
[data-color="#8FBF5A"] .project-title.active {
  color: #1A3D00; /* Dark green for Alphabet Soup - WCAG AA compliant */
}

[data-color="#E6A53B"] .project-title.active {
  color: #5C3500; /* Dark brown-orange for Capoeira - WCAG AA compliant */
}

[data-color="#F6D45A"] .project-title.active {
  color: #6B5500; /* Dark gold for IESO - WCAG AA compliant */
}

[data-color="#F9C2D3"] .project-title.active {
  color: #6B1A3D; /* Dark magenta for Manitoba Hydro - WCAG AA compliant */
}

/* about page 'Hi Sura' heading */
.hi-sura-heading {
  font-family: "Syne", system-ui, sans-serif;
  font-weight: 600;
  color: #342215;
  display: block;
  line-height: 2.2;
  overflow: visible;
  max-width: 100%;
  word-break: normal;
  white-space: normal;
  padding-bottom: calc(var(--spacing) * 3);
  min-height: 4rem;
}

.hi-sura-heading::after {
  content: none; /* hide extra decorative shapes to keep only the flower image */
}

/* About page intro tag pills */
.code-tag-pill {
  font-family: "Work Sans", system-ui, sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  text-transform: lowercase;
  color: #342215; /* main body text color for consistency */
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.55); /* light glassy chip on warm bg */
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
}

.code-tag-pill::before,
.code-tag-pill::after {
  font-family: "Syne", system-ui, sans-serif;
  font-size: 0.8rem;
  opacity: 0.8;
}

.code-tag-pill::before {
  content: '<';
}

.code-tag-pill::after {
  content: '/>';
}

/* Brand color accent text */
.text-accent-orange {
  color: #3D6B29;
  font-weight: 700;
}

.text-accent-green {
  color: #3D6B29;
  font-weight: 700;
}

/* education section layout */
.education-list {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing) * 14);
  margin-top: calc(var(--spacing) * 10);
}

.education-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: calc(var(--spacing) * 10);
}

.education-left {
  max-width: 60%;
}

.education-right {
  text-align: right;
  font-size: 0.95rem;
}

#education caption {
  display: block;
  font-family: "Syne", system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #342215;
  margin-bottom: calc(var(--spacing) * 3);
}

.education-title {
  font-family: "Syne", system-ui, sans-serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: #342215;
  margin-bottom: calc(var(--spacing) * 3);
}

.education-meta {
  font-size: 0.95rem;
  color: #7a6a5d;
}

.education-divider {
  height: 1px;
  background-color: #e9dfd5;
}

.education-right p:first-child {
  font-family: "Syne", system-ui, sans-serif;
  font-weight: 700;
}

/* about page selected clients strip */
#clients {
  background-color: #FFF8F3;
}

.clients-strip {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing) * 6);
}

.clients-label {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7a6a5d;
}

.clients-list {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--spacing) * 3);
  padding-left: 0;
  list-style: none;
  color: #342215;
  font-size: 1rem;
  justify-content: center;
}

.clients-list li {
  padding: calc(var(--spacing) * 2.5) calc(var(--spacing) * 5);
  border-radius: 999px;
  border: 2px solid #342215;
  background: #E6FFC1;
  transition: all 0.3s ease;
  text-align: center;
  white-space: nowrap;
  flex: 0 0 auto;
}

.clients-list li:hover {
  background: #342215;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(52, 34, 21, 0.2);
}

.clients-list a {
  color: #342215;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.clients-list li:hover a {
  color: #E6FFC1;
}

.clients-list img {
  max-height: none;
  width: auto;
  display: inline;
}

/* Selected clients pills: responsive layout */
@media (max-width: 1024px) {
  .clients-list li {
    padding: calc(var(--spacing) * 2) calc(var(--spacing) * 4);
  }

  .clients-list a {
    font-size: 0.9rem;
  }
}

@media (max-width: 640px) {
  .clients-list {
    justify-content: flex-start;
  }

  .clients-list li {
    flex: 0 1 calc(50% - calc(var(--spacing) * 3)); /* two pills per row where possible */
  }
}

@media (max-width: 768px) {
  .education-row {
    flex-direction: column;
    align-items: flex-start;
    gap: calc(var(--spacing) * 4);
  }

  .education-left,
  .education-right {
    max-width: 100%;
    text-align: left;
  }
}

/* Homepage responsive tweaks */
@media (max-width: 768px) {
  #hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  
  /* Hero text scales down on smaller screens */
  #hero .text-7xl {
    font-size: 2.4rem;
    line-height: 1.2;
    text-align: center;
    max-width: 100%;
  }

  #hero .text-sm.lg\:text-1xl {
    font-size: 0.85rem;
    text-align: center;
  }

  /* Project titles slightly smaller for narrow widths */
  #work .project-title.text-6xl {
    font-size: 2.1rem;
  }

  /* Journal highlights: switch 3-column media grid to single column */
  #journal-entries {
    display: grid;
    grid-template-columns: 1fr;
    gap: calc(var(--spacing) * 4);
  }

  /* Interests section 2-column grid becomes single column */
  #interests .grid {
    grid-template-columns: 1fr;
    row-gap: calc(var(--spacing) * 6);
  }
}

/* Ensure OFFLINE section stacks on medium and smaller viewports 
   so the slideshow has full width and doesn’t fight the text column. */
/* Increase spacing between OFFLINE text and slideshow columns */
#interests .grid {
  column-gap: calc(var(--spacing) * 20);
}

@media (max-width: 1200px) {
  #interests .grid {
    grid-template-columns: 1fr;
    row-gap: calc(var(--spacing) * 6);
  }
}

/* AIDEV-NOTE: Exploration page styles matching screenshot layout */
#exploration-hero {
  background-color: #FFF8F3;
}

.exploration-page-title {
  font-family: "Syne", system-ui, sans-serif;
  font-size: 3rem;
  font-weight: 400;
  color: #342215;
  margin-bottom: 0;
}

.exploration-projects-list {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing) * 40);
  max-width: 1200px;
  margin: 0 auto;
}

.exploration-project-item {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: calc(var(--spacing) * 25);
  align-items: start;
}

.exploration-project-wip {
  display: block;
}

.exploration-project-reverse {
  grid-template-columns: 1fr 400px;
}

.exploration-project-reverse .exploration-project-image {
  order: 2;
}

.exploration-project-reverse .exploration-project-content {
  order: 1;
}

.exploration-project-image {
  width: 100%;
}

.exploration-image-placeholder {
  width: 100%;
  aspect-ratio: 1;
  background-color: #E8E4DF;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9a8a7a;
  font-size: 0.85rem;
  position: relative;
}

.exploration-image-placeholder::after {
  content: '🖼';
  font-size: 3rem;
  opacity: 0.3;
}

.exploration-project-content {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing) * 5);
  padding-top: calc(var(--spacing) * 2);
}

.exploration-project-year {
  font-size: 0.75rem;
  color: #7a6a5d;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

.exploration-project-title {
  font-family: "Syne", system-ui, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #342215;
  line-height: 1.2;
  margin: 0;
}

.exploration-project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--spacing) * 2);
  margin-top: calc(var(--spacing) * 1);
}

.exploration-tag {
  font-size: 0.8rem;
  color: #7FB069;
  font-family: 'Courier New', monospace;
  font-weight: 500;
}

.exploration-project-description {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #5a4a3a;
  margin-top: calc(var(--spacing) * 2);
}

.exploration-project-link {
  font-size: 0.85rem;
  color: #342215;
  text-decoration: none;
  border: 1.5px solid #342215;
  padding: calc(var(--spacing) * 2.5) calc(var(--spacing) * 7);
  border-radius: 999px;
  display: inline-block;
  align-self: flex-start;
  transition: background-color 200ms ease, color 200ms ease;
  margin-top: calc(var(--spacing) * 3);
  font-weight: 500;
}

.exploration-project-link:hover {
  background-color: #342215;
  color: #FFF8F3;
}

.exploration-work-link {
  text-align: left;
  margin-top: calc(var(--spacing) * 15);
  padding-left: 0;
}

.exploration-work-link a {
  font-size: 1rem;
  color: #342215;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.exploration-work-link a:hover {
  color: #C77D0A;
}

/* Exploration page flex layout for cozy image */
.exploration-flex-container {
  display: flex;
  gap: 4rem;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.exploration-text-content {
  flex: 1 1 55%;
  max-width: 600px;
  min-width: 0;
  text-align: left;
}

.exploration-image-content {
  flex: 0 0 auto;
  width: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.exploration-cozy-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

@media (max-width: 1200px) {
  .exploration-flex-container {
    gap: 3rem;
  }
  
  .exploration-image-content {
    width: 320px;
  }
}

@media (max-width: 1024px) {
  .exploration-flex-container {
    flex-direction: column;
    gap: 3rem;
    align-items: center;
  }
  
  .exploration-text-content {
    flex: 1 1 100%;
    max-width: 100%;
    text-align: center;
  }
  
  .exploration-image-content {
    flex: 1 1 100%;
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .exploration-flex-container {
    gap: 2rem;
    padding: 0 1rem;
  }
  
  .exploration-image-content {
    max-width: 280px;
  }
}

@media (max-width: 480px) {
  .exploration-flex-container {
    gap: 1.5rem;
  }
  
  .exploration-image-content {
    max-width: 240px;
  }
}

/* exploration cards layout (about page) */
#exploration {
  background-color: #FFF8F3;
}

#exploration #exploration-text caption {
  display: block;
  font-family: "Syne", system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #342215;
  margin-bottom: calc(var(--spacing) * 3);
}

.exploration-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: calc(var(--spacing) * 8);
  margin-top: calc(var(--spacing) * 14);
}

.exploration-card {
  position: relative;
  background-color: transparent;
  border-radius: 18px;
  border: 1px solid #342215;
  padding: calc(var(--spacing) * 14) calc(var(--spacing) * 10) calc(var(--spacing) * 12);
  overflow: visible;
  transition: background-color 200ms ease-out, box-shadow 200ms ease-out, transform 200ms ease-out;
}

.exploration-card-body {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing) * 4);
}

.exploration-shape-wrapper {
  position: absolute;
  top: -34px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.exploration-shape {
  width: 96px;
  height: auto;
  transform-origin: center;
  /* AIDEV-NOTE: Rotation handled by JavaScript for smooth deceleration effect */
}

.exploration-date {
  font-size: 0.8rem;
  color: #7a6a5d;
}

.exploration-title {
  font-family: "Syne", system-ui, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #342215;
}

.exploration-copy {
  font-size: 0.9rem;
  color: #4a3b31;
}

.exploration-link {
  font-size: 0.9rem;
  text-decoration-line: underline;
  text-underline-offset: 3px;
  color: #342215;
}

.exploration-card:hover {
  background-color: #FFFBD0;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

/* AIDEV-NOTE: Rotation animation handled by JavaScript for smooth deceleration */

/* Exploration card typography tweaks for medium/small viewports
   to avoid overly tall, squished-looking text columns */
@media (max-width: 1023px) {
  .exploration-title {
    font-size: 1.3rem; /* slightly smaller heading */
  }

  .exploration-copy {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .exploration-card-body {
    gap: calc(var(--spacing) * 3);
  }
}

@media (max-width: 1023px) {
  .exploration-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: calc(var(--spacing) * 16);
  }
}

@media (max-width: 640px) {
  .exploration-grid {
    grid-template-columns: 1fr;
    row-gap: calc(var(--spacing) * 16);
  }

  .exploration-card {
    padding-inline: calc(var(--spacing) * 8);
  }
}

@media (max-width: 1280px) {
  .hi-sura-heading {
    font-size: 1.75rem !important;
    line-height: 2.5 !important;
    gap: calc(var(--spacing) * 1.5);
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    padding-bottom: calc(var(--spacing) * 3);
    min-height: 4rem;
  }
}

@media (max-width: 1200px) {
  .hi-sura-heading {
    font-size: 1.65rem !important;
    line-height: 2.6 !important;
    gap: calc(var(--spacing) * 1.5);
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    padding-bottom: calc(var(--spacing) * 3);
    min-height: 3.8rem;
  }
}

@media (max-width: 1024px) {
  .hi-sura-heading {
    font-size: 1.6rem !important;
    line-height: 2.5 !important;
    gap: calc(var(--spacing) * 1.5);
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    padding-bottom: calc(var(--spacing) * 3);
    min-height: 3.5rem;
  }
}

@media (max-width: 768px) {
  .hi-sura-heading {
    font-size: 1.5rem !important;
    line-height: 2.5 !important;
    gap: calc(var(--spacing) * 1.5);
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    padding-bottom: calc(var(--spacing) * 3);
    min-height: 3rem;
  }
}

@media (max-width: 480px) {
  .hi-sura-heading {
    font-size: 1.15rem !important;
    line-height: 2.5 !important;
    gap: calc(var(--spacing) * 1);
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    padding-bottom: calc(var(--spacing) * 3);
    min-height: 2.5rem;
  }
}

/* journal page layout */
/* journal index (grid of cards) */
#journal-hero {
  background-color: var(--color-lime-500);
  /* AIDEV-NOTE: Top padding prevents overlap with sticky header */
  padding-top: calc(var(--spacing) * 20);
}

.journal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: calc(var(--spacing) * 10);
}

.journal-card {
  background-color: #FFF8F3;
  border-radius: 18px;
  border: 1px solid #342215;
  padding: calc(var(--spacing) * 10);
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing) * 6);
  /* AIDEV-NOTE: Prevents cards from scrolling too close to sticky header */
  scroll-margin-top: calc(var(--spacing) * 35);
  /* AIDEV-NOTE: Ensure cards stay below sticky header (z-index: 1000) */
  position: relative;
  z-index: 1;
}

.journal-card-media {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  height: 220px;
}

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

.journal-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 1;
  transition: background-color 180ms ease-out;
}

.journal-card-overlay-title {
  font-family: "Syne", system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #FFF8F3;
  text-align: center;
  padding-inline: calc(var(--spacing) * 6);
}

.journal-card-media:hover .journal-card-overlay {
  background-color: rgba(0, 0, 0, 0.7);
}

.journal-card-header {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing) * 2);
}

.journal-card-meta {
  font-size: 0.8rem;
  color: #7a6a5d;
}

.journal-card-title {
  font-family: "Syne", system-ui, sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #342215;
}

.journal-card-excerpt {
  font-size: 0.9rem;
  color: #4a3b31;
}

.journal-card-link {
  align-self: flex-start;
  font-size: 0.9rem;
  text-decoration-line: underline;
  text-underline-offset: 3px;
  color: #342215;
}

.journal-card:hover {
  background-color: #FFFBD0;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

/* AIDEV-NOTE: Ensure journal list section stays below sticky header with buffer zone */
#journal-list {
  position: relative;
  z-index: 0;
}

/* Override container padding-top to create buffer zone below sticky header */
#journal-list .container {
  padding-top: calc(var(--spacing) * 60) !important;
}

@media (min-width: 1100px) {
  .journal-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .journal-grid {
    grid-template-columns: 1fr;
  }
}

/* single journal entry detail page */
#journal-entry {
  background-color: #FFF8F3;
}

.journal-entry-wrapper {
  max-width: 960px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing) * 12);
}

.journal-back-link {
  font-size: 0.9rem;
  text-decoration-line: underline;
  text-underline-offset: 3px;
  color: #342215;
}

.journal-entry-header {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing) * 4);
}

.journal-entry-kicker {
  font-size: 0.8rem;
  color: #7a6a5d;
}

.journal-entry-title {
  font-family: "Syne", system-ui, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #342215;
}

.journal-entry-meta {
  font-size: 0.9rem;
  color: #7a6a5d;
}

.journal-entry-hero {
  margin-top: calc(var(--spacing) * 4);
}

.journal-entry-image-placeholder {
  width: 100%;
  height: 260px;
  border-radius: 18px;
  background-color: #f4eee6;
}

.journal-entry-layout {
  display: grid;
  grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
  gap: calc(var(--spacing) * 20);
  align-items: flex-start;
}

.journal-entry-toc {
  font-size: 0.85rem;
  color: #7a6a5d;
}

.journal-toc-heading {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: calc(var(--spacing) * 3);
}

.journal-toc-list {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing) * 2);
  padding-left: 0;
}

.journal-toc-list a {
  text-decoration-line: underline;
  text-underline-offset: 3px;
  color: #342215;
}

.journal-entry-main {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing) * 10);
}

.journal-entry-section {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing) * 4);
}

.journal-section-title {
  font-family: "Syne", system-ui, sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #342215;
}

.journal-entry-image-inline {
  width: 100%;
  max-width: 420px;
  height: 180px;
  border-radius: 12px;
  background-color: #f4eee6;
}

.journal-image-caption {
  font-size: 0.8rem;
  color: #7a6a5d;
}

.journal-entry-nav {
  margin-top: calc(var(--spacing) * 12);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: calc(var(--spacing) * 8);
}

.journal-nav-card {
  background-color: #E6FFC1;
  border-radius: 18px;
  padding: calc(var(--spacing) * 10);
}

.journal-nav-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: calc(var(--spacing) * 3);
}

.journal-nav-title {
  font-family: "Syne", system-ui, sans-serif;
  font-size: 1.1rem;
  color: #342215;
}

.nav-brand {
  font-family: "Syne", system-ui, sans-serif;
  font-weight: 700;
  position: relative;
  z-index: 10;
  transition: font-weight 0.3s ease;
}

.nav-brand:hover {
  font-weight: 800;
}

.nav-link {
  font-family: "Syne", system-ui, sans-serif;
  font-weight: 600;
  position: relative;
  z-index: 10;
}

@media (max-width: 768px) {
  .journal-entry-layout {
    grid-template-columns: 1fr;
    gap: calc(var(--spacing) * 10);
  }

  .journal-entry-nav {
    grid-template-columns: 1fr;
  }
}

/* interests slideshow (When I'm Not Working) */
.interests-slideshow {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing) * 6);
}

/* OFFLINE slideshow container; default to full column width so it lines up
   with the text column. Cap only on very large screens. */
#interests-slides {
  width: 100%;
  max-width: 100%;
  margin-inline: 0;
}

@media (min-width: 1601px) {
  #interests-slides {
    max-width: 960px;
    margin-inline: auto;
  }
}

/* Make the card itself span the full slideshow column on desktop */
@media (min-width: 1024px) {
  .interests-slides-track {
    justify-content: flex-start;
  }
}

/* On 1200px and below, make slideshow + card fill the container width
   so arrows (anchored to the container) sit just inside the image */
@media (max-width: 1200px) {
  #interests-slides {
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
  }

  .interest-item {
    max-width: 100%;
    margin-inline: 0;
  }
}

.interests-slides-track {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.interest-item {
  position: relative;
  background-color: transparent;
  border-radius: 24px;
  padding: calc(var(--spacing) * 4) 0 calc(var(--spacing) * 6);
  display: none;
  flex-direction: column;
  align-items: stretch;
  max-width: 960px; /* desktop cap */
  width: 100%;
  margin-inline: auto;
}

.interest-item[aria-hidden="false"] {
  display: flex;
}

.interest-item img {
  width: 100%;
  max-height: 320px;
  height: auto;
  border-radius: 14px;
  display: block;
  object-fit: cover;
  margin-inline: auto;
}

.interest-media-wrapper {
  background-color: #f3f3f3;
  border-radius: 24px 24px 0 0;
  overflow: hidden;
  width: 100%;
}

.interest-caption-panel {
  width: 100%;
  background-color: #ffffff;
  border-radius: 0 0 24px 24px;
  padding: calc(var(--spacing) * 6) calc(var(--spacing) * 8);
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.04); /* subtle, flat look instead of shadow */
}

.interest-caption-panel figcaption {
  font-size: 0.9rem;
  color: #342215;
}

#interests-text h3 {
  margin-bottom: calc(var(--spacing) * 4);
}

#interests-text p + p {
  margin-top: calc(var(--spacing) * 3);
}

.offline-kicker {
  display: block;
  font-family: "Syne", system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #342215;
  margin-bottom: calc(var(--spacing) * 3);
}

.interests-arrow {
  position: absolute;
  top: 40%; /* closer to center of image area */
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
  color: #342215;
  z-index: 2;
}

.interests-arrow-prev {
  /* Default: tuck just inside the left edge of the card */
  left: 12px;
  transform: translateY(-50%);
}

.interests-arrow-next {
  /* Default: tuck just inside the right edge of the card */
  right: 12px;
  transform: translateY(-50%);
}

.interests-arrow:focus-visible {
  outline: 2px solid #342215;
  outline-offset: 2px;
}

.interests-indicators {
  position: absolute;
  left: 50%;
  /* default: sit near the bottom of the image */
  bottom: 140px;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 0;
  background: none;
  border-radius: 0;
}

/* On very narrow screens, push dots slightly further into the image area */
@media (max-width: 640px) {
  .interests-indicators {
    bottom: 160px;
  }
}

.interests-indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background-color: #CFCFCF; /* neutral grey for inactive */
  opacity: 0.9;
  cursor: pointer;
}

.interests-indicator-dot.is-active {
  background-color: #7A7A7A; /* darker grey for active */
  opacity: 1;
}

/* OFFLINE slideshow responsive behavior */
@media (max-width: 1200px) and (min-width: 641px) {
  /* Let the card fill its grid column instead of staying fixed at 480px */
  .interest-item {
    max-width: 100%;
  }
}

@media (max-width: 900px) {
  .interests-slideshow {
    align-items: center;
  }
}

@media (max-width: 640px) {
  /* Allow the slideshow track to shrink naturally on small screens */
  .interests-slides-track {
    min-height: 0;
  }

  /* On the narrowest screens, keep arrows tucked just inside the card edges */
  .interests-arrow-prev {
    left: 12px;
  }

  .interests-arrow-next {
    right: 12px;
  }
}

/* floating alphabet overlay for first project */
.alphabet-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 400ms ease;
  font-family: "Syne", system-ui, sans-serif;
  color: rgba(255, 251, 202, 0.6);
  z-index: 0;
}

.alphabet-active .alphabet-bg {
  opacity: 1;
}

/* OFFLINE: final small/medium-screen override
   Make slideshow cards span the full container width at <= 900px */
@media (max-width: 900px) {
  #interests .container {
    max-width: 100%;
  }

  #interests-slides,
  .interests-slides-track,
  .interest-item {
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
  }
}

.alphabet-letter {
  position: absolute;
  font-size: 3.5rem;
  animation: float-letter 10s ease-in-out infinite alternate;
  animation-play-state: running;
}

@keyframes float-letter {
  0% {
    transform: translate(0, 0) rotate(0deg);
    letter-spacing: 0;
  }
  100% {
    transform: translate(-28px, -32px) rotate(-10deg);
    letter-spacing: 0.1em;
  }
}

.alphabet-paused .alphabet-letter {
  animation-play-state: paused;
}

/* work section project titles entrance animation */
.project-item {
  opacity: 1;
  transform: translateY(0);
  padding-block: calc(var(--spacing) * 20);
  scroll-margin-block: 25vh;
  position: relative;
  overflow: hidden;
}

/* AIDEV-NOTE: Project background animations - WCAG compliant with reduced motion support */
.project-bg-animation {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 600ms ease-in-out;
}

/* Show animations only when project title is active */
.project-item:has(.project-title.active) .project-bg-animation {
  opacity: 1;
}

/* Homepage Responsive Styles */
@media (max-width: 1024px) {
  .hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
  }
  
  .project-meta {
    font-size: 0.9rem;
  }
  
  .project-excerpt {
    font-size: 0.95rem;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: clamp(2.5rem, 7vw, 4rem);
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .project-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }
  
  .project-meta {
    font-size: 0.85rem;
  }
  
  .project-excerpt {
    font-size: 0.9rem;
  }
  
  .project-item {
    gap: calc(var(--spacing) * 3);
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }
  
  .hero-subtitle {
    font-size: 0.9rem;
  }
  
  .project-title {
    font-size: clamp(1.25rem, 6vw, 1.75rem);
  }
  
  .project-meta {
    font-size: 0.75rem;
  }
  
  .project-excerpt {
    font-size: 0.85rem;
    line-height: 1.5;
  }
}

/* Mobile Menu Styles */
/* AIDEV-NOTE: Mobile menu z-index (1001) must be higher than sticky header (1000) to appear on top.
   Breakpoint must match md breakpoint (768px) for desktop/mobile nav switching */

/* Desktop navigation - hidden on mobile, shown on desktop */
nav.hidden.md\:block,
nav.desktop-nav {
  display: none;
}

@media (min-width: 769px) {
  nav.hidden.md\:block,
  nav.desktop-nav {
    display: block;
  }
}

/* Mobile menu button - shown only on mobile */
.mobile-menu-button {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: #342215;
  transition: opacity 0.3s ease;
  position: relative;
  z-index: 1002;
  pointer-events: auto;
  touch-action: manipulation;
}

@media (min-width: 769px) {
  .mobile-menu-button {
    display: none;
  }
}

.mobile-menu-button:hover {
  opacity: 0.7;
}

.mobile-menu-button:active {
  opacity: 0.5;
}

.hamburger-icon,
.close-icon {
  pointer-events: none;
  display: block;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #FFF8F3;
  border-top: 2px solid #E6FFC1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  overflow-y: auto;
  padding: calc(var(--spacing) * 8) calc(var(--spacing) * 4);
}

.mobile-menu-close {
  position: absolute !important;
  top: calc(var(--spacing) * 3) !important;
  right: calc(var(--spacing) * 3) !important;
  left: auto !important;
  background: #342215;
  border: 2px solid #342215;
  border-radius: 50%;
  cursor: pointer;
  padding: 10px;
  color: #FFF8F3;
  transition: all 0.3s ease;
  z-index: 10000 !important;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-close:hover {
  background: #E6FFC1;
  color: #342215;
  transform: rotate(90deg);
}

.mobile-menu-close .close-icon {
  pointer-events: none;
  display: block;
}

/* Hide mobile menu on desktop */
@media (min-width: 769px) {
  .mobile-menu {
    display: none !important;
  }
}

.mobile-menu.active {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 99999 !important;
}

.mobile-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex !important;
  flex-direction: column;
  gap: calc(var(--spacing) * 2);
  visibility: visible !important;
  opacity: 1 !important;
  width: 100%;
  max-width: 100%;
}

.mobile-menu-list li {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100%;
}

.mobile-menu-link {
  display: block !important;
  padding: calc(var(--spacing) * 3) calc(var(--spacing) * 4) !important;
  font-family: "Syne", system-ui, sans-serif !important;
  font-size: 2rem !important;
  font-weight: 700 !important;
  color: #000000 !important;
  background-color: #E6FFC1 !important;
  text-decoration: none !important;
  transition: background-color 0.3s ease;
  border-radius: 8px;
  visibility: visible !important;
  opacity: 1 !important;
  min-height: 60px !important;
  line-height: 1.5 !important;
  text-indent: 0 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  word-spacing: normal !important;
  white-space: normal !important;
  text-overflow: clip !important;
  overflow: visible !important;
  width: 100% !important;
  box-sizing: border-box !important;
  border: 2px solid #342215 !important;
  content: normal !important;
  text-rendering: optimizeLegibility !important;
  -webkit-font-smoothing: antialiased !important;
}

.mobile-menu-link::before,
.mobile-menu-link::after {
  content: none !important;
  display: none !important;
}

.mobile-menu-link:hover {
  background-color: #E6FFC1;
  padding-left: calc(var(--spacing) * 10);
}

/* Navigation Link Hover */
.nav-link:hover {
  opacity: 0.7;
}

/* Active Navigation State */
.nav-link.active,
.mobile-menu-link.active {
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 700;
}

.nav-link.active:hover {
  opacity: 1;
}

.mobile-menu-link.active {
  background-color: rgba(230, 255, 193, 0.3);
}

/* Hero Section Responsive Text */
@media (max-width: 1024px) {
  .text-7xl {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
  }
  
  .text-sm {
    font-size: clamp(0.8rem, 1.5vw, 0.875rem);
  }
}

@media (max-width: 768px) {
  .text-7xl {
    font-size: clamp(2rem, 6vw, 3rem);
    line-height: 1.2;
  }
  
  .text-sm {
    font-size: 0.75rem;
  }
  
  #hero .container {
    padding-top: calc(var(--spacing) * 20);
    padding-bottom: calc(var(--spacing) * 20);
  }
  
  .hero-shape-card {
    width: 70px;
    height: 70px;
  }
  
  .hero-shape {
    width: 56px;
    height: 56px;
  }
}

@media (max-width: 480px) {
  .text-7xl {
    font-size: clamp(1.5rem, 7vw, 2.5rem);
    line-height: 1.3;
  }
  
  .text-sm {
    font-size: 0.7rem;
    letter-spacing: 0.05em;
  }
  
  #hero .container {
    gap: calc(var(--spacing) * 4);
  }
  
  .hero-shape-card {
    width: 56px;
    height: 56px;
  }
  
  .hero-shape {
    width: 44px;
    height: 44px;
  }
}

/* Floating Letters - Alphabet Soup */
.floating-letter {
  position: absolute;
  font-family: "Syne", system-ui, sans-serif;
  font-size: 6rem;
  font-weight: 800;
  color: rgba(74, 140, 26, 0.25); /* Clean green matching bg */
  text-shadow: 0 2px 4px rgba(74, 140, 26, 0.1);
  animation: float-letter 8s ease-in-out infinite;
}

@keyframes float-letter {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.35;
  }
  50% {
    transform: translateY(-40px) rotate(8deg);
    opacity: 0.55;
  }
}

/* Generative Curved Lines - Global Community (Capoeira style) */
.generative-lines {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0.7;
}

.gen-line {
  fill: none;
  stroke: rgba(139, 90, 0, 0.5); /* Darker orange for better visibility */
  stroke-width: 2;
  stroke-linecap: round;
  filter: drop-shadow(0 2px 6px rgba(139, 90, 0, 0.25));
}

.gen-line-1 {
  animation: draw-curve 8s ease-in-out infinite;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
}

.gen-line-2 {
  animation: draw-curve 9s ease-in-out infinite 1s;
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
}

.gen-line-3 {
  animation: draw-curve 10s ease-in-out infinite 2s;
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
}

.gen-line-4 {
  animation: draw-curve 8.5s ease-in-out infinite 0.5s;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
}

.gen-line-5 {
  animation: draw-curve 9.5s ease-in-out infinite 1.5s;
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
}

.gen-line-6 {
  animation: draw-curve 11s ease-in-out infinite 2.5s;
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
}

@keyframes draw-curve {
  0% {
    stroke-dashoffset: 1000;
    opacity: 0;
  }
  20% {
    opacity: 0.8;
  }
  80% {
    opacity: 0.8;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 0;
  }
}

/* Energy Grid - Power Network Visualization */
.energy-grid {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0.6;
}

.grid-line {
  stroke: rgba(154, 120, 0, 0.5); /* Darker gold for better visibility */
  stroke-width: 2.5;
  stroke-linecap: round;
}

/* Vertical grid lines pulse */
.grid-v-1 { animation: grid-pulse 4s ease-in-out infinite 0s; }
.grid-v-2 { animation: grid-pulse 4s ease-in-out infinite 0.3s; }
.grid-v-3 { animation: grid-pulse 4s ease-in-out infinite 0.6s; }
.grid-v-4 { animation: grid-pulse 4s ease-in-out infinite 0.9s; }
.grid-v-5 { animation: grid-pulse 4s ease-in-out infinite 1.2s; }
.grid-v-6 { animation: grid-pulse 4s ease-in-out infinite 1.5s; }

/* Horizontal grid lines pulse */
.grid-h-1 { animation: grid-pulse 4s ease-in-out infinite 0.2s; }
.grid-h-2 { animation: grid-pulse 4s ease-in-out infinite 0.5s; }
.grid-h-3 { animation: grid-pulse 4s ease-in-out infinite 0.8s; }
.grid-h-4 { animation: grid-pulse 4s ease-in-out infinite 1.1s; }

.energy-node {
  fill: rgba(154, 120, 0, 0.6);
  stroke: rgba(154, 120, 0, 0.8);
  stroke-width: 3;
  filter: drop-shadow(0 0 8px rgba(154, 120, 0, 0.4));
}

.node-1 { animation: node-pulse 3s ease-in-out infinite 0s; }
.node-2 { animation: node-pulse 3s ease-in-out infinite 0.5s; }
.node-3 { animation: node-pulse 3s ease-in-out infinite 1s; }
.node-4 { animation: node-pulse 3s ease-in-out infinite 1.5s; }

.energy-flow {
  stroke: rgba(154, 120, 0, 0.55);
  stroke-width: 4;
  stroke-linecap: round;
  fill: none;
  filter: drop-shadow(0 0 6px rgba(154, 120, 0, 0.35));
}

.flow-1 {
  animation: flow-energy 5s ease-in-out infinite;
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
}

.flow-2 {
  animation: flow-energy 5s ease-in-out infinite 1s;
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
}

.flow-3 {
  animation: flow-energy 5s ease-in-out infinite 2s;
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
}

@keyframes grid-pulse {
  0%, 100% {
    opacity: 0.5;
    stroke-width: 2.5;
  }
  50% {
    opacity: 0.8;
    stroke-width: 3.5;
  }
}

@keyframes node-pulse {
  0%, 100% {
    r: 8;
    opacity: 0.8;
  }
  50% {
    r: 14;
    opacity: 1;
  }
}

@keyframes flow-energy {
  0% {
    stroke-dashoffset: 300;
    opacity: 0.6;
  }
  50% {
    opacity: 0.9;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 0.6;
  }
}

/* Chart Bars & Line - Dashboard Visualization */
.chart-bar {
  position: absolute;
  width: 55px;
  background: rgba(224, 74, 127, 0.35); /* Clean pink matching bg */
  border-radius: 6px 6px 0 0;
  bottom: 15%;
  box-shadow: 0 3px 10px rgba(224, 74, 127, 0.2);
  animation: bar-animate 4s ease-in-out infinite;
}

.chart-bar-1 {
  left: 15%;
  height: 80px;
  animation-delay: 0s;
}

.chart-bar-2 {
  left: 28%;
  height: 120px;
  animation-delay: 0.3s;
}

.chart-bar-3 {
  left: 41%;
  height: 100px;
  animation-delay: 0.6s;
}

.chart-bar-4 {
  left: 54%;
  height: 150px;
  animation-delay: 0.9s;
}

.chart-bar-5 {
  left: 67%;
  height: 90px;
  animation-delay: 1.2s;
}

.chart-line {
  position: absolute;
  bottom: 15%;
  left: 15%;
  width: 55%;
  height: 5px;
  background: linear-gradient(90deg, transparent, rgba(224, 74, 127, 0.5), transparent);
  box-shadow: 0 2px 6px rgba(224, 74, 127, 0.25);
  animation: line-pulse 3s ease-in-out infinite;
}

@keyframes bar-animate {
  0%, 100% {
    transform: scaleY(0.8);
    opacity: 0.5;
  }
  50% {
    transform: scaleY(1);
    opacity: 0.7;
  }
}

@keyframes line-pulse {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 0.8;
  }
}

/* Layered Documents Animation */
.layered-docs {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 400px;
}

.doc-layer {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(107, 26, 61, 0.15);
  border: 2px solid rgba(107, 26, 61, 0.3);
  border-radius: 8px;
  animation: layer-float 3s ease-in-out infinite;
}

.doc-layer.layer-1 {
  animation-delay: 0s;
  z-index: 4;
}

.doc-layer.layer-2 {
  animation-delay: 0.3s;
  z-index: 3;
}

.doc-layer.layer-3 {
  animation-delay: 0.6s;
  z-index: 2;
}

.doc-layer.layer-4 {
  animation-delay: 0.9s;
  z-index: 1;
}

@keyframes layer-float {
  0%, 100% {
    transform: translateY(0) scale(1);
    opacity: 0.3;
  }
  50% {
    transform: translateY(-20px) scale(1.02);
    opacity: 0.5;
  }
}

/* WCAG Compliance: Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
  .floating-letter,
  .gen-line,
  .grid-line,
  .energy-node,
  .energy-flow,
  .chart-bar,
  .chart-line,
  .doc-layer {
    animation: none;
    opacity: 0.2;
  }
  
  .gen-line,
  .energy-flow {
    stroke-dashoffset: 0;
  }
}

.project-description {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing) * 3);
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.project-meta {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #342215;
  opacity: 0.8;
}

.project-excerpt {
  font-size: 1rem;
  line-height: 1.6;
  color: #342215;
  opacity: 0.9;
}

.case-study-next-text {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #342215;
  opacity: 0.7;
  margin-bottom: calc(var(--spacing) * 3);
}

.case-study-next-arrow {
  font-size: 1.5rem;
  color: #342215;
  display: inline-block;
  transition: transform 0.3s ease;
}

.case-study-next-project-link:hover .case-study-next-arrow {
  transform: translateX(4px);
}

.work-visible .project-item {
  animation: project-in 600ms ease-out forwards;
}

.work-visible .project-item:nth-child(2) {
  animation-delay: 80ms;
}

.work-visible .project-item:nth-child(3) {
  animation-delay: 160ms;
}

.work-visible .project-item:nth-child(4) {
  animation-delay: 240ms;
}

@keyframes project-in {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
