/* ============================================================
   Julia Schirrmeister — Portfolio
   Global Stylesheet
   ============================================================ */

/* === Google Fonts === */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=Inter:ital,wght@0,300;0,400;0,500;0,600;1,400;1,600&display=swap');

/* === CSS Custom Properties === */
:root {
  /* Accent Colors */
  --blue:   #0047FF;
  --red:    #FF2020;
  --yellow: #FFD600;

  /* Light Mode */
  --bg:          #F9FAFB;
  --bg-alt:      #EEEEF0;
  --text:        #101720;
  --text-muted:  #5A6070;
  --border:      #E0DFDD;
  --nav-bg:      rgba(249, 250, 251, 0.95);

  /* Typography */
  --font-display: 'Syne', sans-serif;
  --font-body:    'Inter', sans-serif;

  /* Layout */
  --max-w:       1200px;
  --px:          clamp(1.25rem, 5vw, 4rem);
  --section-gap: clamp(5rem, 10vw, 9rem);

  /* Transitions */
  --t:      0.2s ease;
  --t-slow: 0.4s ease;
}

[data-theme="dark"] {
  --bg:         #0D0D0D;
  --bg-alt:     #1A1A1A;
  --text:       #F0F0F0;
  --text-muted: #999999;
  --border:     #2C2C2C;
  --nav-bg:     rgba(13, 13, 13, 0.95);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

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

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

ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; font-size: inherit; color: inherit; }

/* === Accessibility: Skip Link === */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 9999;
  background: var(--blue);
  color: #fff;
  padding: 0.5rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* === Focus styles (WCAG) === */
*:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}

/* === Reduced Motion === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--px);
  padding-right: var(--px);
}

.section {
  padding-top: var(--section-gap);
  padding-bottom: var(--section-gap);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* ============================================================
   NAVIGATION
   ============================================================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background-color var(--t-slow), border-color var(--t-slow);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 2rem;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: var(--text);
  transition: color var(--t);
}
.nav-brand:hover { color: var(--blue); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
}

/* Shared link styles */
.nav-link,
.nav-dropdown-trigger {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  padding: 0.5rem 0.875rem;
  position: relative;
  transition: color var(--t);
  text-decoration: none;
}

/* Animated underline */
.nav-link::after,
.nav-dropdown-trigger::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0.875rem;
  right: 0.875rem;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t);
}

.nav-link:hover { color: var(--blue); }
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: var(--blue); font-weight: 600; }

/* Bold on click */
.nav-link:active { font-weight: 700; }

/* Dropdown */
.nav-dropdown { position: relative; }

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: none;
  border: none;
}
.nav-dropdown-trigger:hover { color: var(--blue); }
.nav-dropdown-trigger:hover::after { transform: scaleX(1); }

.dropdown-chevron {
  width: 10px; height: 10px;
  transition: transform var(--t);
  flex-shrink: 0;
}
.nav-dropdown-trigger[aria-expanded="true"] .dropdown-chevron { transform: rotate(180deg); }

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  min-width: 230px;
  padding: 0.375rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity var(--t), visibility var(--t), transform var(--t);
}
.nav-dropdown-menu[data-open="true"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: background-color var(--t), color var(--t);
  border-radius: 2px;
}
.nav-dropdown-item:hover {
  background: var(--bg-alt);
  color: var(--blue);
}
.nav-dropdown-item-num {
  font-size: 0.6875rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-muted);
  min-width: 16px;
}

/* Dark mode toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  color: var(--text);
  transition: background-color var(--t), color var(--t);
  flex-shrink: 0;
  margin-left: 0.5rem;
}
.theme-toggle:hover {
  background: var(--bg-alt);
  color: var(--blue);
}
.icon-sun  { display: none; }
.icon-moon { display: block; }
[data-theme="dark"] .icon-sun  { display: block; }
[data-theme="dark"] .icon-moon { display: none; }

/* Mobile hamburger */
.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  color: var(--text);
  transition: color var(--t);
  margin-left: 0.25rem;
}
.mobile-menu-toggle:hover { color: var(--blue); }

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: background-color var(--t), color var(--t), border-color var(--t), transform var(--t), box-shadow var(--t);
  cursor: pointer;
  border: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--blue);
  color: #fff;
}
.btn-primary:hover {
  background: #003ACC;
  box-shadow: 0 4px 16px rgba(0,71,255,0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* ============================================================
   TAGS
   ============================================================ */

.tag {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.875rem;
  background: var(--bg-alt);
  color: var(--text-muted);
}
.tag--blue {
  background: rgba(0,71,255,0.08);
  color: var(--blue);
}
.tag--red {
  background: rgba(255,32,32,0.08);
  color: var(--red);
}
[data-theme="dark"] .tag--blue { background: rgba(0,71,255,0.18); }
[data-theme="dark"] .tag--red  { background: rgba(255,32,32,0.18); }

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

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 8rem;
  padding-bottom: 2.5rem;
}

.hero-eyebrow { margin-bottom: 1.75rem; }

.hero-headline {
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 1.75rem;
  max-width: 75%;
  animation: fadeUp 0.7s ease 0.1s both;
}
.hero-headline em {
  font-style: italic;
  color: var(--blue);
}

.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--text-muted);
  max-width: 500px;
  line-height: 1.7;
  margin-bottom: 0;
  animation: fadeUp 0.7s ease 0.25s both;
}

.hero-statement {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.25rem, 2.2vw, 2rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--text);
  max-width: 780px;
  margin-bottom: 0;
  animation: fadeUp 0.7s ease 0.25s both;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeUp 0.7s ease 0.4s both;
}

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

/* ============================================================
   PROJECTS LIST (HOMEPAGE)
   ============================================================ */

.projects-section-header {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}
.projects-section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.projects-list { }

.project-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: clamp(1.5rem, 3vw, 2.5rem) 0;
  border-bottom: 1px solid var(--border);
}
.project-item:last-child { border-bottom: none; }

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

.project-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  line-height: 1;
  align-self: stretch;
  display: flex;
  align-items: center;
}
.project-item--blue .project-num { color: var(--blue); }
.project-item--red  .project-num { color: var(--red); }

.project-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.75vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 0.875rem;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.project-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1.75rem;
  max-width: 440px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 2px solid var(--blue);
  transition: color var(--t), gap var(--t);
}
.project-link:hover {
  color: var(--blue);
  gap: 0.75rem;
}

.project-img {
  aspect-ratio: 4 / 3;
  background: var(--bg-alt);
  overflow: hidden;
  position: relative;
}
.project-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.project-item:hover .project-img img { transform: scale(1.04); }

/* Image placeholder */
.img-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--border);
  border: 2px dashed var(--border);
  transition: border-color var(--t), color var(--t);
}
.project-item:hover .img-placeholder {
  border-color: var(--text-muted);
  color: var(--text-muted);
}

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

.footer { border-top: 1px solid var(--border); }

.footer-cta {
  padding: clamp(2rem, 4vw, 3.5rem) 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(2rem, 5vw, 6rem);
  align-items: end;
}

.footer-headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.0;
  margin-bottom: 1.25rem;
}

.footer-sub {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 420px;
  line-height: 1.7;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.875rem;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--t);
}
.contact-link:hover { color: var(--blue); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ============================================================
   PROJECT PAGE — CASE STUDY
   ============================================================ */

.project-page-hero {
  padding-top: 7rem;
  padding-bottom: 1rem;
}

.back-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 2.5rem;
  transition: color var(--t), gap var(--t);
}
.back-nav:hover { color: var(--blue); gap: 0.75rem; }

.project-page-eyebrow {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.project-page-title {
  font-size: clamp(2.5rem, 6.5vw, 5.5rem);
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.95;
  margin-bottom: 1.75rem;
}

.project-page-overview {
  font-size: clamp(1rem, 1.5vw, 1.1875rem);
  color: var(--text-muted);
  max-width: 680px;
  line-height: 1.8;
}

/* Project details bar */
.project-details-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 2rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 2rem 0 0;
}
.detail-item label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.375rem;
}
.detail-item span {
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-display);
}

/* Case study sections */
.case-section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--border);
}
.case-section:last-of-type { border-bottom: none; }

.case-section-label {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
.case-section-num {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  flex-shrink: 0;
}
.case-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}

/* Accent title colors */
.accent-blue .case-section-title { color: var(--blue); }
.accent-red  .case-section-title { color: var(--red); }

.case-text {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 700px;
  margin-bottom: 1.25rem;
}
.case-text strong { color: var(--text); font-weight: 600; }

/* Image layouts */
.case-img-full {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-alt);
  margin: 3rem 0;
  overflow: hidden;
}
.case-img-full img { width: 100%; height: 100%; object-fit: cover; }

.case-img-tall {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--bg-alt);
  margin: 3rem 0;
  overflow: hidden;
}

.case-img-half {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 3rem 0;
}
.case-img-half > figure {
  aspect-ratio: 4 / 3;
  background: var(--bg-alt);
  overflow: hidden;
}

.case-img-third {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 3rem 0;
}
.case-img-third > figure {
  aspect-ratio: 3 / 4;
  background: var(--bg-alt);
  overflow: hidden;
}

.case-img-quarter {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 3rem 0;
}
.case-img-quarter > figure {
  aspect-ratio: 1;
  background: var(--bg-alt);
  overflow: hidden;
}

.case-img-full img,
.case-img-tall img,
.case-img-half > figure img,
.case-img-third > figure img,
.case-img-quarter > figure img {
  width: 100%; height: 100%; object-fit: cover;
}

figcaption {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.625rem;
  line-height: 1.5;
}

/* Highlight block */
.highlight-block {
  padding: 3rem;
  margin: 3rem 0;
}
.highlight-block--blue {
  background: var(--blue);
  color: #fff;
}
.highlight-block--red {
  background: var(--red);
  color: #fff;
}
.highlight-block--yellow {
  background: var(--yellow);
  color: #111;
}
.highlight-block p {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.875rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */

.about-hero {
  padding-top: 8rem;
  padding-bottom: 5rem;
  border-bottom: 1px solid var(--border);
}

.about-hero-eyebrow { margin-bottom: 1.5rem; }

.about-hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
}
.about-hero-title em {
  font-style: italic;
  color: var(--blue);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
  padding: 5rem 0;
}

.about-img-wrap {
  position: sticky;
  top: 80px;
}
.about-img {
  aspect-ratio: 3 / 4;
  background: var(--bg-alt);
  overflow: hidden;
}
.about-img img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.about-content h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.025em;
}

.about-content .eyebrow { margin-bottom: 2.5rem; }

.about-content p {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 560px;
}
.about-content p strong {
  color: var(--text);
  font-weight: 600;
}

.about-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

.skills-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.skill-item {
  font-size: 0.9375rem;
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.skill-item:last-child,
.skill-item:nth-last-child(2):nth-child(odd) { border-bottom: none; }

/* ============================================================
   ART GALLERY
   ============================================================ */

.art-hero {
  padding-top: 8rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--border);
}

.art-hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: 1rem;
}

.art-hero-sub {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.7;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
  padding: 4rem 0;
}

.gallery-item {
  cursor: pointer;
}

.gallery-item-img {
  display: block;
  width: 100%;
  background: var(--bg-alt);
  overflow: hidden;
  transition: opacity var(--t);
}
.gallery-item-img:hover { opacity: 0.88; }
.gallery-item-img img {
  width: 100%; height: auto;
  display: block;
  transition: transform 0.4s ease;
}
.gallery-item-img:hover img { transform: scale(1.02); }

.gallery-caption { margin-top: 0.625rem; }
.gallery-caption-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}
.gallery-caption-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 0.125rem;
}

/* Gallery placeholder heights */
.gph-tall  { aspect-ratio: 3/4; }
.gph-sq    { aspect-ratio: 1/1; }
.gph-wide  { aspect-ratio: 4/3; }
.gph-port  { aspect-ratio: 2/3; }
.gph-xwide { aspect-ratio: 16/9; }

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

@media (max-width: 900px) {
  .project-item {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .project-img { order: -1; }

  .footer-cta {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .footer-contact {
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-img-wrap { position: static; }
  .about-img { aspect-ratio: 4/3; max-width: 400px; }

  .case-img-half   { grid-template-columns: 1fr; }
  .case-img-third  { grid-template-columns: 1fr 1fr; }
  .case-img-quarter{ grid-template-columns: 1fr 1fr; }

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

@media (max-width: 600px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 64px; left: 0; right: 0; bottom: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem var(--px);
    gap: 0;
    overflow-y: auto;
    z-index: 99;
  }
  .nav-links.is-open { display: flex; }

  .nav-link,
  .nav-dropdown-trigger {
    font-size: 1.375rem;
    font-weight: 600;
    padding: 0.75rem 0;
    width: 100%;
  }
  .nav-link::after,
  .nav-dropdown-trigger::after { left: 0; right: 0; }

  .nav-dropdown-menu {
    position: static;
    border: none;
    box-shadow: none;
    background: transparent;
    padding: 0 0 0.5rem 1.25rem;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }
  .nav-dropdown-menu[data-open="false"] { display: none; }

  .mobile-menu-toggle { display: flex; }

  .gallery-grid { grid-template-columns: 1fr; }
  .case-img-third { grid-template-columns: 1fr; }
  .project-details-bar { grid-template-columns: 1fr 1fr; }

  .highlight-block { padding: 2rem 1.5rem; }
}

/* ============================================================
   PAGE ENTRANCE ANIMATION
   ============================================================ */

.page-content {
  animation: pageFadeIn 0.35s ease both;
}

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

/* ============================================================
   MISC UTILITIES
   ============================================================ */

.divider { border: none; border-top: 1px solid var(--border); margin: 0; }
.text-muted { color: var(--text-muted); }
.text-blue  { color: var(--blue); }
.text-red   { color: var(--red); }

.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 3rem; }
