/* ================================================
   BEATRIZ TERREU — Portfolio Design System
   ================================================ */

/* ---- DESIGN TOKENS ---- */
:root {
  /* Colors */
  --color-bg:        #F7F9F9;
  --color-surface:   #FFFFFF;
  --color-primary:   #1A1A1A;
  --color-secondary: #5A5A5A;
  --color-muted:     #9A9A9A;
  --color-accent:    #0D9488;
  --color-accent-2:  #0F766E;
  --color-border:    #E5EBEA;
  --color-tag-bg:    #F0FDFA;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;

  /* Spacing */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  2rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --shadow-hover: 0 20px 60px rgba(0,0,0,0.14);

  /* Transitions */
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --max-width: 1200px;
  --nav-height: 80px;
}

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

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

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-primary);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
  list-style: none;
}

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

h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 3rem); margin-bottom: var(--space-md); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); margin-top: var(--space-lg); margin-bottom: var(--space-md); }
h4 { font-size: 1.125rem; }

p {
  color: var(--color-secondary);
  max-width: 65ch;
}

/* ---- LAYOUT ---- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-3xl) 0;
}

.section-sm {
  padding: var(--space-xl) 0;
}

/* ---- NAVIGATION ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(247, 249, 249, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.nav.scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  box-sizing: border-box;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.02em;
  transition: color var(--transition);
}

.nav__logo:hover { color: var(--color-accent); }

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-secondary);
  position: relative;
  transition: color var(--transition);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition);
}

.nav__link:hover {
  color: var(--color-primary);
}

.nav__link:hover::after { width: 100%; }

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.5rem 1.25rem;
  background: var(--color-primary);
  color: #fff !important;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background var(--transition);
}

.nav__cta:hover {
  background: var(--color-accent);
}

.nav__cta::after { display: none !important; }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  transition: var(--transition);
  transform-origin: center;
}

.nav__hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav */
.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--color-bg);
  padding: var(--space-lg);
  flex-direction: column;
  gap: var(--space-md);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}

.nav__mobile.open { display: flex; }
.nav__mobile .nav__link { font-size: 1rem; }

/* ---- HERO ---- */
.hero {
  min-height: auto;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-height) + var(--space-xl));
  padding-bottom: var(--space-xl);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13,148,136,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}

.hero__label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.375rem 1rem;
  background: var(--color-tag-bg);
  border: 2px solid rgba(13,148,136,0.35);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

.hero__label::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
  animation: pulse 2s ease-in-out infinite;
}

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

.hero__title {
  margin-bottom: var(--space-lg);
  color: var(--color-primary);
}

.hero__title em {
  font-style: normal;
  color: var(--color-accent);
}

.hero__subtitle {
  font-size: 1.125rem;
  margin-bottom: var(--space-lg);
  max-width: 55ch;
  margin-left: auto;
  margin-right: auto;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
  align-items: center;
}

.hero__social {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.hero__social-link {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: var(--color-muted);
  transition: color var(--transition);
}

.hero__social-link:hover { color: var(--color-accent); }

.hero__image-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero__image-card {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1/1;
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.hero__image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #2D2D5E 0%, #E8432C 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__initials {
  font-family: var(--font-display);
  font-size: 6rem;
  font-weight: 700;
  color: rgba(255,255,255,0.3);
  letter-spacing: -0.05em;
  user-select: none;
}

.hero__badge {
  position: absolute;
  bottom: -16px;
  right: -16px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.hero__badge-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #0D9488, #14B8A6);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.hero__badge-text strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
}

.hero__badge-text span {
  font-size: 0.75rem;
  color: var(--color-muted);
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.btn-primary:hover {
  background: #0F766E;
  border-color: #0F766E;
}

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-border);
}

.btn-secondary:hover {
  border-color: var(--color-primary);
}

.btn-dark {
  background: var(--color-primary);
  color: #fff;
}

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

/* Arrow nudge on button hover */
.btn svg {
  transition: transform var(--transition);
}
.btn:hover svg {
  transform: translateX(3px);
}

/* ---- METRICS STRIP ---- */
.metrics {
  background: var(--color-primary);
  color: #fff;
  padding: var(--space-xl) 0;
}

.metrics__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.metric {
  text-align: center;
  position: relative;
}

.metric + .metric::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(255,255,255,0.15);
}

.metric__number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: #fff !important;
  line-height: 1;
  display: block;
}

.metric__label {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  margin-top: 0.375rem;
  display: block;
}

/* ---- SECTION HEADER ---- */
.section-header {
  margin-bottom: var(--space-xl);
}

.section-header h2 {
  margin-bottom: var(--space-md);
}

.section-header p {
  margin-top: 0;
}

/* Unified h2 + p spacing across all sections */
.section h2 {
  margin-bottom: var(--space-md);
}

.section-header--center {
  text-align: center;
}

.section-header--center p {
  margin: var(--space-md) auto 0;
}

.section-tag {
  display: inline-block;
  padding: 0;
  background: none;
  border: none;
  color: var(--color-accent);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

/* ---- PROJECTS GRID ---- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-lg);
}

.project-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative;
}

.project-card:hover {
  box-shadow: var(--shadow-hover);
}

.project-card--featured {
  grid-column: span 8;
}

.project-card--small {
  grid-column: span 4;
}

.project-card--half {
  grid-column: span 6;
}

.project-card__image {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--color-tag-bg);
  position: relative;
}

.project-card--featured .project-card__image {
  aspect-ratio: 16/9;
}

.project-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.project-card__image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.project-card__content {
  padding: var(--space-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-card__category {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.project-card__title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-top: 0;
  margin-bottom: var(--space-md);
  line-height: 1.25;
}

.project-card--featured .project-card__title {
  font-size: 1.75rem;
  margin-bottom: var(--space-xl);
}

.project-card__desc {
  font-size: 0.9375rem;
  color: var(--color-secondary);
  margin-bottom: var(--space-md);
  flex: 1;
  max-width: 100%;
  line-height: 1.5;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.875rem;
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.project-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-primary);
  transition: gap var(--transition), color var(--transition);
  align-self: flex-start;
  margin-top: auto;
}

.project-card__link:hover {
  gap: var(--space-md);
  color: var(--color-accent);
}

/* ---- ABOUT SECTION ---- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.about__content p {
  margin-bottom: var(--space-md);
  font-size: 1.0625rem;
  max-width: 100%;
}

.about__skills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.skill-chip {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.5rem 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-secondary);
  transition: all var(--transition);
}

.skill-chip:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: rgba(13,148,136,0.06);
}

.about__visual {
  position: relative;
}

.about__card-main {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, #2D2D5E 0%, #1a1a3e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about__card-float {
  position: absolute;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.about__card-float--award {
  bottom: -12px;
  left: -24px;
  font-size: 0.875rem;
}

.about__card-float--award strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
}

.about__card-float--award span {
  font-size: 0.8125rem;
  color: var(--color-muted);
}

.award-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: #1C1A14;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* ---- INDUSTRIES ---- */
.industries__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.industry-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all var(--transition);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.industry-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}

.industry-card__icon {
  font-size: 2rem;
  width: 56px;
  height: 56px;
  background: var(--color-tag-bg);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition);
}

.industry-card:hover .industry-card__icon {
  background: rgba(13,148,136,0.1);
}

.industry-card__name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.industry-card__desc {
  font-size: 0.875rem;
  color: var(--color-muted);
  max-width: 100%;
  line-height: 1.4;
}

/* ---- EXPERIENCE TIMELINE ---- */
.experience__list {
  position: relative;
  padding-left: var(--space-xl);
}

.experience__list::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-accent), transparent);
}

.experience-item {
  position: relative;
  padding-bottom: var(--space-xl);
}

.experience-item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-xl) - 5px);
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 2px solid var(--color-bg);
  box-shadow: 0 0 0 3px rgba(232,67,44,0.2);
}

.experience-item__period {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
  display: block;
}

.experience-item__role {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-primary);
}

.experience-item__company {
  font-size: 0.9375rem;
  color: var(--color-secondary);
  margin-bottom: var(--space-sm);
}

.experience-item__desc {
  font-size: 0.9375rem;
  color: var(--color-secondary);
  max-width: 100%;
  line-height: 1.6;
}

/* ---- DESIGN SYSTEM PREVIEW ---- */
.ds-preview__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.ds-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  border: 1px solid var(--color-border);
}

.ds-card__title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-md);
}

.ds-colors {
  display: flex;
  gap: var(--space-sm);
}

.ds-color-swatch {
  flex: 1;
  height: 48px;
  border-radius: var(--radius-md);
}

.ds-typography-sample {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.ds-type-xl { font-size: 2rem; font-family: var(--font-display); font-weight: 700; color: var(--color-primary); }
.ds-type-lg { font-size: 1.25rem; font-weight: 600; color: var(--color-primary); }
.ds-type-sm { font-size: 0.875rem; color: var(--color-muted); }

/* ---- CONTACT ---- */
.contact {
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: var(--space-3xl) var(--space-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
  margin: var(--space-3xl) 0;
}

.contact::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13,148,136,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.contact h2 {
  color: #fff;
  margin-bottom: var(--space-md);
}

.contact p {
  color: rgba(255,255,255,0.65);
  margin: 0 auto var(--space-xl);
  max-width: 50ch;
  font-size: 1.0625rem;
}

.contact__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.btn-light {
  background: #fff;
  color: var(--color-primary);
  border-color: #fff;
}

.btn-light:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.35);
}

.btn-outline-light:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.08);
}

.contact__socials {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.contact__social-link {
  color: rgba(255,255,255,0.5);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  transition: color var(--transition);
}

.contact__social-link:hover { color: #fff; }

/* ---- FOOTER ---- */
.footer {
  border-top: 1px solid var(--color-border);
  padding: var(--space-lg) 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer__copy {
  font-size: 0.875rem;
  color: var(--color-muted);
}

.footer__links {
  display: flex;
  gap: var(--space-lg);
}

.footer__link {
  font-size: 0.875rem;
  color: var(--color-muted);
  transition: color var(--transition);
}

.footer__link:hover { color: var(--color-accent); }

/* ---- SCROLL REVEAL ---- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .project-card--featured,
  .project-card--small,
  .project-card--half {
    grid-column: span 1;
  }
  .metrics__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg) var(--space-xl);
  }
  .metric + .metric::before { display: none; }
  .industries__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ds-preview__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --space-3xl: 5rem;
    --space-xl: 3rem;
  }

  .nav__links { display: none; }
  .nav__hamburger { display: flex; }

  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__subtitle { margin: 0 auto var(--space-lg); }
  .hero__actions { justify-content: center; }
  .hero__social { justify-content: center; }
  .hero__image-wrap { order: -1; }
  .hero__image-card { max-width: 280px; }
  .hero__badge { display: none; }

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

  .about__visual { display: none; }

  .projects-grid { grid-template-columns: 1fr; }
  .project-card--featured,
  .project-card--small,
  .project-card--half {
    grid-column: span 1;
  }

  .metrics__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }

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

  .ds-preview__grid { grid-template-columns: 1fr; }

  .contact {
    padding: var(--space-xl);
    margin: var(--space-xl) 0;
  }

  .footer__inner { flex-direction: column; align-items: center; text-align: center; }

  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.875rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 var(--space-md); }
  .metrics__grid { grid-template-columns: repeat(2, 1fr); }
  .contact__socials { flex-direction: column; align-items: center; gap: var(--space-md); }
  .hero__actions { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; }
}

/* ---- UTILITIES ---- */
.text-accent { color: var(--color-accent); }
.text-muted  { color: var(--color-muted); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.flex-center { display: flex; align-items: center; justify-content: center; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* Nav CTA arrow animation */
.nav__cta svg {
  transition: transform var(--transition);
  flex-shrink: 0;
}
.nav__cta:hover svg {
  transform: translateX(3px);
}

/* Zurich card: softer zoom on hover */
.project-card--soft-zoom:hover .project-card__image img {
  transform: scale(1.02);
}

/* ---- CAREER CARDS: desktop spacing reduction ---- */
.career-card {
  padding: var(--space-lg) !important;
}
.career-grid {
  gap: var(--space-md) !important;
}
.career-title-row {
  margin-bottom: 0.25rem !important;
}
.career-desc {
  margin-bottom: var(--space-md) !important;
}

/* ---- MOBILE: project cards compact ---- */
@media (max-width: 640px) {
  .project-card__content {
    padding: var(--space-md);
  }
  .project-card__category {
    font-size: 0.6875rem;
    margin-bottom: 0.25rem;
  }
  .project-card__title {
    font-size: 1.0625rem;
    margin-top: 0;
    margin-bottom: var(--space-sm);
  }
  .project-card--featured .project-card__title {
    font-size: 1.1875rem;
    margin-top: 0;
    margin-bottom: var(--space-sm);
  }
  .project-card__desc {
    font-size: 0.875rem;
  }
  .tag {
    font-size: 0.75rem;
    padding: 0.2rem 0.625rem;
  }
  .project-card__tags {
    gap: 0.375rem;
  }
}

/* ---- MOBILE: career cards layout ---- */
@media (max-width: 640px) {
  .career-card {
    padding: var(--space-md) !important;
  }
  .career-grid {
    grid-template-columns: auto 1fr !important;
    grid-template-areas:
      "logo title"
      ". date"
      "desc desc"
      "chips chips" !important;
    row-gap: var(--space-sm) !important;
  }
  /* logo stays col 1 */
  .career-grid > div:first-child {
    grid-area: logo;
    align-self: start;
  }
  /* career-body becomes invisible box: children join the grid directly */
  .career-body {
    display: contents;
  }
  .career-title-row {
    grid-area: title;
    align-self: start;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.125rem !important;
  }
  /* hide dot separator on mobile */
  .career-sep {
    display: none;
  }
  .career-date {
    grid-area: date;
    text-align: left !important;
  }
  .career-desc {
    grid-area: desc;
  }
  .career-chips {
    grid-area: chips;
  }
}
