/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #fdfaf6;
  --bg-white: #ffffff;
  --bg-dark: #191919;
  --text-primary: #1b1b1b;
  --text-secondary: #242f3a;
  --text-muted: #6b6560;
  --text-light: #9a9590;
  --accent: #e8f5a3;
  --accent-dark: #d8eb7a;
  --stroke: #e8e4df;
  --border-opacity: rgba(13, 23, 32, 0.08);
  --shadow-dropdown: 0 8px 16px rgba(86, 101, 116, 0.08);
  --font-heading: 'Petrona', Georgia, serif;
  --font-body: 'Geist', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-label: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 80px;
  padding: 16px 120px 0;
  background: rgba(253, 250, 246, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  transition: var(--transition);
}

.header.scrolled {
  border-bottom-color: var(--stroke);
}

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

.header-logo {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 18px;
  line-height: 28px;
  color: var(--text-primary);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header-nav a {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 28px;
  color: var(--text-primary);
  transition: opacity var(--transition);
}

.header-nav a:hover {
  opacity: 0.7;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  line-height: 16px;
  white-space: nowrap;
  transition: all var(--transition);
  cursor: pointer;
}

.btn svg {
  flex-shrink: 0;
}

.btn-md {
  height: 40px;
  min-width: 40px;
  padding: 0 14px;
  border-radius: 8px;
}

.btn-pill {
  border-radius: 40px;
}

.btn-accent {
  background: var(--accent);
  color: var(--text-secondary);
  border: 1px solid var(--border-opacity);
}

.btn-accent:hover {
  background: var(--accent-dark);
}

.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-opacity);
}

.btn-outline:hover {
  border-color: rgba(13, 23, 32, 0.2);
}

.btn-ghost {
  background: transparent;
  color: #92a0ae;
  border: 1px solid rgba(211, 224, 236, 0.16);
}

.btn-ghost:hover {
  border-color: rgba(211, 224, 236, 0.3);
  color: #b0bcc8;
}

.btn-back {
  background: var(--bg-white);
  color: var(--text-secondary);
  border: 1px solid var(--border-opacity);
  font-size: 16px;
  line-height: 20px;
}

.btn-back:hover {
  border-color: rgba(13, 23, 32, 0.2);
}

/* .icon-btn base styles defined in the Animations section below */

/* ===== HERO ===== */
.hero {
  min-height: 900px;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  overflow: hidden;
  padding-top: 80px;
}

.hero-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 40px;
  padding: 0 120px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.hero-top {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.hero-circle {
  width: 100px;
  height: 100px;
  border-radius: 32px;
  background: var(--accent-dark);
}

.hero-title {
  display: flex;
  flex-direction: column;
  max-width: 690px;
}

.hero-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 72px;
  line-height: 1.2;
  color: var(--text-primary);
}

.hero-role {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 72px;
  line-height: 1.2;
  color: var(--text-primary);
}

.hero-bottom {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 690px;
}

.hero-description {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 30px;
  color: var(--text-primary);
  width: 588px;
  max-width: 100%;
}

.hero-location {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 30px;
  color: var(--text-secondary);
  width: 588px;
  max-width: 100%;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

/* ===== PROJECTS ===== */
.projects {
  background: var(--bg-white);
  padding: 120px;
  overflow: hidden;
}

.section-container {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.projects-header {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 48px;
  line-height: 1.2;
  color: var(--text-primary);
}

.section-subtitle {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 30px;
  color: var(--text-secondary);
  max-width: 588px;
}

.projects-grid {
  display: flex;
  gap: 32px;
}

.project-card {
  width: 584px;
  flex-shrink: 0;
  background: var(--bg-white);
  border: 1px solid var(--stroke);
  border-radius: 24px;
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  box-shadow: var(--shadow-dropdown);
  border-color: transparent;
}

.project-card-image {
  height: 388px;
  overflow: hidden;
  position: relative;
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-card-image img {
  transform: scale(1.03);
}

.project-card-image-empty {
  background: #b2bfcd;
  opacity: 0.15;
}

.project-card-body {
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.project-card-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project-card-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 24px;
  line-height: 32px;
  color: var(--text-primary);
}

.project-card-desc {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-secondary);
}

/* ===== SKILLS ===== */
.skills {
  background: var(--bg);
  padding: 120px;
  overflow: hidden;
}

.skills-inner {
  display: flex;
  gap: 24px;
  align-items: center;
}

.skills-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.skills-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 690px;
}

.skills-description {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 30px;
  color: var(--text-primary);
  max-width: 588px;
}

.skills-location {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 30px;
  color: var(--text-muted);
}

.skills-tags {
  display: flex;
  gap: 8px;
}

.skill-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border: 1px solid var(--stroke);
  border-radius: 100px;
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 14px;
  line-height: 16px;
  color: var(--text-primary);
}

.skills-actions {
  display: flex;
  gap: 16px;
}

.skills-visual {
  flex-shrink: 0;
}

.skills-shape {
  width: 486px;
  height: 486px;
  border-radius: 32px;
  background: var(--accent-dark);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-dark);
}

.footer-main {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 400px;
  padding: 0 120px;
  overflow: hidden;
}

.footer-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.footer-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 48px;
  line-height: 1.2;
  color: var(--bg);
}

.footer-subtitle {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: rgba(253, 250, 246, 0.6);
  max-width: 588px;
}

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

.footer-bottom {
  border-top: 1px solid rgba(253, 250, 246, 0.1);
  height: 80px;
  padding: 16px 120px 0;
}

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

.footer-bottom span {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 28px;
  color: rgba(253, 250, 246, 0.4);
}

/* ===== CASE STUDY PAGE ===== */
.case-back {
  padding: 48px 120px;
}

.case-hero {
  padding: 0 120px;
  margin-bottom: 120px;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.case-description {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.case-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 48px;
  line-height: 1.2;
  color: #201f1d;
}

.case-intro {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-secondary);
  max-width: 588px;
}

.case-intro strong {
  font-weight: 600;
}

.case-overview {
  display: flex;
  gap: 24px;
  width: 100%;
}

.overview-card {
  flex: 1;
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.overview-card-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-secondary);
}

.overview-card-value {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-secondary);
}

.case-hero-image {
  width: 100%;
  height: 800px;
  border-radius: 16px;
  overflow: hidden;
}

.case-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Problems / Outcome */
.case-problems {
  display: flex;
  gap: 32px;
  padding: 120px;
  align-items: center;
}

.case-card {
  flex: 1;
  border: 1px solid var(--stroke);
  border-radius: 24px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-self: stretch;
}

.case-card-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 32px;
  line-height: 40px;
  color: var(--text-primary);
}

.case-card-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.case-card-item-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-muted);
}

.case-card-item-label svg {
  flex-shrink: 0;
}

.case-card-item-text {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 24px;
  color: var(--text-primary);
}

.case-card-item-text.muted {
  color: var(--text-muted);
}

/* Project Overview Section (AI platform) */
.case-overview-section {
  background: var(--bg);
  padding: 120px;
}

.case-overview-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 588px;
}

.case-overview-body {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.case-overview-body .case-process-block-text {
  margin-bottom: 0;
}

.case-overview-body .case-process-block-text + .case-process-block-text {
  margin-top: 20px;
}

.case-overview-subsection {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.case-overview-subtitle {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 24px;
  line-height: 32px;
  color: #1b1b1b;
}

.case-overview-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.case-overview-items--spaced {
  gap: 16px;
}

.case-overview-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.case-overview-item-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  line-height: 22px;
  color: #252429;
}

.case-overview-item-text {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 20px;
  color: #1b1b1b;
}

/* Constraints Grid (CVS annotation) */
.case-constraints-grid {
  padding: 120px;
}

.case-constraints-grid-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.constraints-grid-cols {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.constraints-grid-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.constraints-grid-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.constraints-grid-item-title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  line-height: 22px;
  color: #252429;
}

.constraints-grid-item-text {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 20px;
  color: var(--text-primary);
}

/* Problems/Outcome alt background */
.case-problems-outcome-alt {
  background: var(--bg);
  padding-top: 120px;
  padding-bottom: 120px;
}

.case-problems-outcome-alt .problems-outcome-card {
  border: none;
  padding: 0;
  max-width: 792px;
  margin: 0 auto;
}

.case-problems-outcome-alt .problems-outcome-header {
  padding-left: 0;
}

.case-problems-outcome-alt .problems-outcome-cols {
  padding-left: 0;
}

/* Challenges */
.case-challenges {
  padding: 0 120px 120px;
}

.case-challenges-inner {
  border: 1px solid var(--stroke);
  border-radius: 24px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Problems / Outcome */
.case-problems-outcome {
  padding: 0 120px 120px;
}

.problems-outcome-card {
  border: 1px solid var(--stroke);
  border-radius: 24px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.problems-outcome-header {
  display: flex;
  gap: 24px;
  padding-left: 160px;
}

.problems-outcome-title {
  flex: 1;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 24px;
  line-height: 32px;
  color: var(--text-primary);
}

.problems-outcome-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--stroke);
}

.problems-outcome-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-muted);
}

.problems-outcome-label svg {
  flex-shrink: 0;
}

.problems-outcome-cols {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding-left: 160px;
}

.problems-outcome-problem,
.problems-outcome-outcome {
  flex: 1;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 24px;
  color: var(--text-primary);
}

.problems-outcome-arrow {
  font-size: 20px;
  color: var(--text-muted);
  flex-shrink: 0;
  line-height: 24px;
}

/* Constraints */
.case-constraints {
  background: var(--bg);
  display: flex;
  flex-direction: row;
  align-items: center;
  min-height: 800px;
  width: 100%;
}

.case-constraints-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: stretch;
  gap: 24px;
}

/* Left / right horizontal segments of the cross */
.constraints-line-h {
  flex: 1;
  height: 1px;
  background: rgba(0, 0, 0, 0.1);
  align-self: center;
}

/* Top / bottom vertical segments of the cross */
.constraints-line-v {
  flex: 1;
  width: 1px;
  background: rgba(0, 0, 0, 0.1);
  align-self: center;
}

.constraints-card {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 24px;
  padding: 32px;
  width: 588px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--bg);
  position: relative;
  z-index: 1;
}

.constraints-card-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 32px;
  line-height: 40px;
  color: var(--text-primary);
}

.constraints-card-text {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-secondary);
}

.constraints-card-text p {
  margin-bottom: 0;
}

/* Process */
.case-process {
  padding: 80px 120px 120px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.case-process-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 588px;
}

.case-process-block-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 24px;
  line-height: 32px;
  color: #22242a;
}

.case-process-block-text {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #22242a;
}

.case-process-block-text ul {
  list-style: disc;
  padding-left: 21px;
}

.case-process-block-text ul li {
  margin-bottom: 0;
}

/* Features */
.case-features {
  padding: 120px 120px 0;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.case-feature {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.case-feature-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 588px;
}

.case-feature-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 24px;
  line-height: 32px;
  color: #22242a;
}

.case-feature-subtitle {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #22242a;
}

.case-feature-image {
  width: 1200px;
  height: 800px;
  border-radius: 8px;
  overflow: hidden;
}

.case-feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-feature-image-half {
  width: 588px;
  height: 392px;
  border-radius: 8px;
  overflow: hidden;
}

.case-feature-image-half img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-feature-row {
  display: flex;
  gap: 24px;
}

/* Admin Panel */
.case-admin {
  background: #f8fafc;
  padding: 80px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.case-admin-header {
  padding: 0 120px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 708px;
}

.case-admin-images {
  padding: 24px 120px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow: hidden;
}

.case-admin-row {
  display: flex;
  gap: 24px;
}

.case-admin-image {
  flex: 1;
  aspect-ratio: 2880 / 2048;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  box-shadow:
    0 8px 16px rgba(86, 101, 116, 0.08),
    0 8px 8px rgba(86, 101, 116, 0.08);
}

.case-admin-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Next Project */
.case-next {
  background: var(--bg);
  padding: 120px;
  overflow: hidden;
  height: 420px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-next > .case-next-card {
  width: 100%;
}

.case-next-card {
  position: relative;
  background: var(--bg-white);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 32px;
  padding: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background var(--transition), border-color var(--transition);
}

.case-next-card:hover {
  background: #e8f5a3;
  border-color: rgba(0, 0, 0, 0.1);
}

.case-next-preview {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 360px;
  height: 240px;
  border: 1px solid var(--stroke);
  border-radius: 16px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  z-index: 1;
}

.case-next-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-next-card:hover .case-next-preview {
  opacity: 1;
}

.case-next-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.case-next-label {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #22242a;
}

.case-next-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 24px;
  line-height: 32px;
  color: #22242a;
}

.case-next-arrow {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: transform var(--transition);
}

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

/* ===== MOBILE NAV ===== */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

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

.mobile-nav a {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-primary);
}

/* ===== 12-COLUMN GRID (1440px+) ===== */
/* Grid spec: 12 cols × 78px + 11 gaps × 24px = 1200px total */
@media (min-width: 1440px) {
  /* Remove horizontal padding from sections — centered inner containers handle layout */
  .hero-inner {
    padding-left: 0;
    padding-right: 0;
    max-width: 1200px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .projects {
    padding-left: 0;
    padding-right: 0;
  }

  .skills {
    padding-left: 0;
    padding-right: 0;
  }

  .footer-main {
    padding-left: 0;
    padding-right: 0;
  }

  .footer-bottom {
    padding-left: 0;
    padding-right: 0;
  }

  /* Hero: 12-col grid */
  .hero-content {
    display: grid;
    grid-template-columns: repeat(12, 78px);
    column-gap: 24px;
  }

  .hero-top,
  .hero-bottom {
    grid-column: 1 / 8; /* 7 cols = 690px */
    max-width: none;
  }

  .hero-description {
    max-width: none;
  }

  /* Projects: 12-col grid */
  .section-container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    display: grid;
    grid-template-columns: repeat(12, 78px);
    column-gap: 24px;
    row-gap: 48px;
  }

  .projects-header {
    grid-column: 1 / -1;
  }

  .projects-grid {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 24px;
  }

  .project-card {
    width: auto;
  }

  /* Skills: 12-col grid */
  .skills-inner {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    display: grid;
    grid-template-columns: repeat(12, 78px);
    column-gap: 24px;
    align-items: center;
  }

  .skills-content {
    grid-column: 1 / 8; /* 7 cols = 690px */
  }

  .skills-visual {
    grid-column: 8 / 13; /* 5 cols = 486px */
  }

  .skills-shape {
    width: 100%;
    height: 486px;
  }

  /* Case study page */
  .case-back,
  .case-hero,
  .case-problems,
  .case-process,
  .case-features,
  .case-challenges,
  .case-problems-outcome,
  .case-constraints-grid,
  .case-overview-section,
  .case-next {
    padding-left: calc((100% - 1200px) / 2);
    padding-right: calc((100% - 1200px) / 2);
  }

  /* Project Overview: 12-col grid */
  .case-overview-inner {
    max-width: 1200px;
    display: grid;
    grid-template-columns: repeat(12, 78px);
    column-gap: 24px;
  }

  .case-overview-inner > * {
    grid-column: 1 / 7; /* 6 cols = 588px */
  }

  .case-admin-header {
    padding-left: calc((100% - 1200px) / 2);
    padding-right: calc((100% - 1200px) / 2);
  }

  .case-admin-images {
    padding-left: calc((100% - 1200px) / 2);
    padding-right: calc((100% - 1200px) / 2);
  }

  .case-overview,
  .case-hero-image,
  .case-feature-image {
    width: 100%;
  }
}

/* ===== ANIMATIONS ===== */

/* Keyframes */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-14px); }
}

@keyframes circle-pop {
  0%   { opacity: 0; transform: scale(0.5); }
  70%  { transform: scale(1.08); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* Hero entrance — each child gets its own delay */
.hero-circle {
  animation: circle-pop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  animation-delay: 0.05s;
}

.hero-name {
  animation: fade-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.18s;
}

.hero-role {
  animation: fade-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.28s;
}

.hero-description {
  animation: fade-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.38s;
}

.hero-location {
  animation: fade-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.44s;
}

.hero-actions {
  animation: fade-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.52s;
}

/* Case study page entrance */
.case-back {
  animation: fade-up 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.05s;
}

/* Floating skills shape */
.skills-shape {
  animation: float 6s ease-in-out infinite;
}

/* Scroll-reveal base state */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger siblings inside a parent via JS-set --delay */
.reveal-stagger {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay, 0ms),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay, 0ms);
}

.reveal-stagger.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Project card hover */
.project-card {
  transition:
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.25s ease;
  will-change: transform;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 56px rgba(27, 27, 27, 0.10);
  border-color: transparent;
}

.project-card-image img {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-card-image img {
  transform: scale(1.04);
}

/* Icon button → pill expand on card hover */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  height: 40px;
  min-width: 40px;
  padding: 0 10px;
  border: 1px solid var(--border-opacity);
  border-radius: 40px;
  background: transparent;
  color: var(--text-secondary);
  overflow: hidden;
  transition:
    background 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.3s ease,
    padding 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    gap 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.icon-btn-label {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.25s ease,
    margin 0.35s ease;
}

.project-card:hover .icon-btn {
  background: var(--accent);
  border-color: var(--border-opacity);
  padding: 0 8px 0 14px;
  gap: 4px;
}

.project-card:hover .icon-btn-label {
  max-width: 100px;
  opacity: 1;
}

/* Button micro-interactions */
.btn {
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(27, 27, 27, 0.08);
}

.btn:active {
  transform: translateY(0px);
  box-shadow: none;
}

/* Skill tags */
.skill-tag {
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.skill-tag:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-2px);
}

/* Footer next-project card hover */
.footer-next-card {
  transition:
    box-shadow 0.3s ease,
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.footer-next-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(27, 27, 27, 0.08);
}

/* Smooth header reveal on scroll */
.header {
  transition:
    background 0.3s ease,
    backdrop-filter 0.3s ease,
    border-color 0.3s ease;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1280px) {
  .header {
    padding: 16px 40px 0;
  }

  .hero-inner {
    padding: 0 40px;
  }

  .projects {
    padding: 80px 40px;
  }

  .skills {
    padding: 80px 40px;
  }

  .projects-grid {
    flex-direction: column;
  }

  .project-card {
    width: 100%;
  }

  .skills-shape {
    width: 300px;
    height: 300px;
  }

  .footer-main {
    padding: 0 40px;
  }

  .footer-bottom {
    padding: 16px 40px 0;
  }

  .case-back,
  .case-hero,
  .case-problems,
  .case-process,
  .case-features,
  .case-challenges,
  .case-problems-outcome,
  .case-constraints-grid,
  .case-next {
    padding-left: 40px;
    padding-right: 40px;
  }

  .case-overview {
    width: 100%;
  }

  .case-hero-image,
  .case-feature-image {
    width: 100%;
  }

  .case-feature-image-half {
    width: calc(50% - 12px);
    flex: 1;
  }

  .case-admin-header {
    padding: 0 40px;
  }

  .case-admin-images {
    padding: 24px 40px;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 16px 20px 0;
  }

  .header-nav {
    display: none;
  }

  .header .btn-accent {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .mobile-nav {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding-top: 120px;
    padding-bottom: 60px;
  }

  .hero-inner {
    padding: 0 20px;
  }

  .hero-name,
  .hero-role {
    font-size: 40px;
  }

  .hero-description,
  .hero-location {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .projects {
    padding: 60px 20px;
  }

  .section-title {
    font-size: 36px;
  }

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

  .skills {
    padding: 60px 20px;
  }

  .skills-inner {
    flex-direction: column;
  }

  .skills-shape {
    width: 100%;
    height: 300px;
  }

  .footer-main {
    padding: 0 20px;
    height: auto;
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .footer-title {
    font-size: 32px;
  }

  .footer-actions {
    flex-direction: column;
  }

  .footer-bottom {
    padding: 16px 20px 0;
  }

  .footer-bottom-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  /* Case study responsive */
  .case-back,
  .case-hero,
  .case-problems,
  .case-process,
  .case-features,
  .case-challenges,
  .case-problems-outcome,
  .case-constraints-grid,
  .case-next {
    padding-left: 20px;
    padding-right: 20px;
  }

  .problems-outcome-header {
    padding-left: 0;
  }

  .problems-outcome-cols {
    padding-left: 0;
    flex-direction: column;
    gap: 12px;
  }

  .problems-outcome-arrow {
    display: none;
  }

  .constraints-grid-cols {
    flex-direction: column;
  }

  .case-constraints-grid {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .case-problems-outcome-alt {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .case-title {
    font-size: 32px;
  }

  .case-overview {
    flex-direction: column;
  }

  .case-hero-image {
    height: 400px;
  }

  .case-problems {
    flex-direction: column;
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .case-feature-image {
    height: 400px;
  }

  .case-feature-row {
    flex-direction: column;
  }

  .case-feature-image-half {
    width: 100%;
    height: 250px;
  }

  .case-admin-header {
    padding: 0 20px;
    max-width: 100%;
  }

  .case-admin-images {
    padding: 24px 20px;
  }

  .case-admin-row {
    flex-direction: column;
  }

  .case-next {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .constraints-card {
    width: 100%;
    margin: 0 20px;
  }
}

/* ===== PASSWORD MODAL ===== */
.password-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.password-overlay.active {
  opacity: 1;
  visibility: visible;
}

.password-modal {
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 48px 40px 40px;
  width: 100%;
  max-width: 420px;
  margin: 0 20px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.12);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.25s ease;
}

.password-overlay.active .password-modal {
  transform: translateY(0) scale(1);
}

.password-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 4px;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}

.password-close:hover {
  color: var(--text-primary);
  background: var(--bg-secondary);
}

.password-modal-title {
  font-family: 'Petrona', serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.password-modal-text {
  font-family: 'Geist', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.password-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.password-input-wrap {
  position: relative;
}

.password-input {
  width: 100%;
  padding: 12px 44px 12px 16px;
  font-family: 'Geist', sans-serif;
  font-size: 15px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--bg-primary);
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}

.password-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.12);
}

.password-input.error {
  border-color: #e53e3e;
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 2px;
  display: flex;
  align-items: center;
}

.password-toggle:hover {
  color: var(--text-primary);
}

.password-error {
  font-family: 'Geist', sans-serif;
  font-size: 13px;
  color: #e53e3e;
  opacity: 0;
  transition: opacity 0.15s ease;
  margin-top: -4px;
}

.password-error.visible {
  opacity: 1;
}

.password-submit {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}
