/* ============================================
   Satya Investments — Styles
   ============================================ */

/* ----- 1. Custom Properties ----- */
:root {
  --parchment: #FAF8F5;
  --ink: #1A1A1A;
  --accent: #1B4332;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
  --max-w: 1120px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ----- 2. Reset & Base ----- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

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

body {
  background-color: var(--parchment);
  background-image: url(herobg.png);
  background-repeat: repeat;
  background-size: 1200px auto;
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Parchment wash over bg image */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: var(--parchment);
  opacity: 0.91;
}

/* Subtle grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

::selection {
  background-color: var(--accent);
  color: white;
}

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

a { text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ----- 3. Navigation ----- */
.nav {
  position: relative;
  z-index: 20;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem 0;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--parchment);
  transition: opacity 150ms;
}
.nav-logo:hover { opacity: 0.8; }

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  position: relative;
  font-size: 0.875rem;
  color: rgba(250, 248, 245, 0.5);
  transition: color 150ms;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  height: 1px;
  width: 0;
  background: rgba(250, 248, 245, 0.3);
  transition: width 200ms;
}
.nav-link:hover { color: var(--parchment); }
.nav-link:hover::after { width: 100%; }

.nav-cta {
  border-radius: 0.5rem;
  border: 1px solid rgba(250, 248, 245, 0.2);
  padding: 0.375rem 0.875rem;
  font-size: 0.875rem;
  color: rgba(250, 248, 245, 0.5);
  transition: all 150ms;
}
.nav-cta:hover {
  border-color: rgba(250, 248, 245, 0.4);
  background: rgba(250, 248, 245, 0.05);
  color: var(--parchment);
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-toggle-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: rgba(250, 248, 245, 0.5);
  transition: color 150ms;
}
.nav-toggle:hover .nav-toggle-icon { color: rgba(250, 248, 245, 0.8); }

/* ----- 4. Hero ----- */
.hero {
  position: relative;
  background: var(--ink);
  margin: 0.75rem;
  margin-bottom: 0;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(26, 26, 26, 0.08);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url(herobg.png) center / cover;
  opacity: 0.12;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--ink), rgba(26, 26, 26, 0.6), rgba(26, 26, 26, 0.3));
}

.hero-content {
  position: relative;
  z-index: 10;
  padding: 2.5rem 2rem 3.5rem;
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: var(--parchment);
}

.hero-subhead {
  margin-top: 1.5rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.625;
  color: rgba(250, 248, 245, 0.75);
}

.hero-descriptor {
  margin-top: 1.5rem;
  max-width: 32rem;
  font-size: 1rem;
  line-height: 1.625;
  color: rgba(250, 248, 245, 0.6);
}

.hero-ctas {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn-primary {
  border-radius: 0.5rem;
  border: 1px solid var(--parchment);
  background: var(--parchment);
  padding: 0.625rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
  transition: all 150ms;
}
.btn-primary:hover {
  background: rgba(250, 248, 245, 0.9);
  transform: scale(1.02);
}
.btn-primary:active { transform: scale(0.98); }

.btn-secondary {
  border-radius: 0.5rem;
  border: 1px solid rgba(250, 248, 245, 0.25);
  padding: 0.625rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(250, 248, 245, 0.75);
  transition: all 150ms;
}
.btn-secondary:hover {
  border-color: rgba(250, 248, 245, 0.5);
  color: var(--parchment);
  transform: scale(1.02);
}
.btn-secondary:active { transform: scale(0.98); }

/* ----- 5. Globe ----- */
.globe {
  position: absolute;
  bottom: -110px;
  right: -90px;
  z-index: 10;
  width: 300px;
  height: 300px;
  pointer-events: none;
}

/* ----- 6. Portfolio ----- */
.portfolio-section {
  scroll-margin-top: 5rem;
  padding: 3rem 1.5rem;
}

.portfolio-container {
  max-width: 1400px;
  margin: 0 auto;
}

.portfolio-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.portfolio-title {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: rgba(26, 26, 26, 0.5);
}

/* Filter strip */
.filter-wrapper {
  position: relative;
  display: flex;
  flex: 1;
  min-width: 0;
  align-items: center;
  overflow: visible;
}

.filter-chevron {
  position: absolute;
  z-index: 10;
  width: 0.75rem;
  height: 0.75rem;
  flex-shrink: 0;
  color: rgba(26, 26, 26, 0.25);
  transition: opacity 200ms;
  pointer-events: none;
  opacity: 0;
}
.filter-chevron-left { left: -1rem; }
.filter-chevron-right { right: -1rem; }
.filter-chevron.visible { opacity: 1; }

.filter-strip {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  overflow-x: auto;
  flex-wrap: nowrap;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.filter-strip::-webkit-scrollbar { display: none; }

.filter-btn {
  flex-shrink: 0;
  scroll-snap-align: start;
  border-radius: 9999px;
  padding: 0.25rem 0.875rem;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.025em;
  color: rgba(26, 26, 26, 0.4);
  transition: all 150ms;
  white-space: nowrap;
}
.filter-btn:hover { color: rgba(26, 26, 26, 0.7); }
.filter-btn.active {
  background: var(--ink);
  color: var(--parchment);
}

/* Portfolio grid */
.portfolio-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-left: 1px solid rgba(26, 26, 26, 0.1);
  border-right: 1px solid rgba(26, 26, 26, 0.1);
}

/* Top & bottom rules */
.portfolio-grid::before,
.portfolio-grid::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  border-top: 1px solid rgba(26, 26, 26, 0.1);
  pointer-events: none;
}
.portfolio-grid::before { top: -1px; }
.portfolio-grid::after { bottom: -1px; border-top: none; border-bottom: 1px solid rgba(26, 26, 26, 0.1); }

/* Grid cell */
.portfolio-cell {
  position: relative;
  border-bottom: 1px solid rgba(26, 26, 26, 0.1);
}
.portfolio-cell:nth-child(odd) {
  border-right: 1px solid rgba(26, 26, 26, 0.1);
}
/* Remove bottom border from last row */
.portfolio-cell.last-row { border-bottom: none; }

/* Plus icon at grid intersections (desktop only) */
.grid-plus {
  display: none;
  position: absolute;
  right: -12.5px;
  bottom: -12.5px;
  z-index: 20;
  width: 24px;
  height: 24px;
  color: rgba(26, 26, 26, 0.3);
}

/* Card */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  overflow: hidden;
  padding: 0 1rem;
  min-height: 11.25rem;
  transition: all 500ms var(--ease);
  text-decoration: none;
  color: inherit;
}
.card.tinted { background: rgba(26, 26, 26, 0.025); }

/* Card background image */
.card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 300ms ease-out;
}
.card:hover .card-bg,
.card.tapped .card-bg { opacity: 1; }

/* Card dark overlay */
.card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0);
  transition: all 350ms ease-out 75ms;
}
.card:hover .card-overlay,
.card.tapped .card-overlay { background: rgba(26, 26, 26, 0.75); }

/* Card logo */
.card-logo-wrap {
  position: relative;
  z-index: 10;
  transition: transform 300ms ease-out;
}
.card:hover .card-logo-wrap,
.card.tapped .card-logo-wrap { transform: translateY(-0.5rem); }

.card-logo {
  pointer-events: none;
  user-select: none;
  width: auto;
  max-width: 8.125rem;
  height: 1.75rem;
  object-fit: contain;
  transition: all 300ms ease-out;
}
.card-logo.lg { height: 2.5rem; }

/* Logo with background container */
.card-logo-bg {
  display: inline-flex;
  height: 2.5rem;
  align-items: center;
  padding: 0 0.75rem;
  border-radius: 0.5rem;
}
.card-logo-bg .card-logo {
  height: 1.5rem;
  max-width: 8.125rem;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  transition: opacity 300ms;
}
.card:hover .card-logo-bg .card-logo,
.card.tapped .card-logo-bg .card-logo { opacity: 1; }

/* Logo with rest filter (dual-logo crossfade) */
.card-logo-dual {
  position: relative;
}
.card-logo-dual .card-logo-rest {
  transition: opacity 300ms ease-out;
}
.card-logo-dual .card-logo-hover {
  position: absolute;
  inset: 0;
  width: auto;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0;
  transition: opacity 300ms ease-out;
}
.card:hover .card-logo-dual .card-logo-rest,
.card.tapped .card-logo-dual .card-logo-rest { opacity: 0; }
.card:hover .card-logo-dual .card-logo-hover,
.card.tapped .card-logo-dual .card-logo-hover { opacity: 1; }

/* Logo hover invert */
.card-logo.invert-hover {
  transition: filter 300ms ease-out;
}
.card:hover .card-logo.invert-hover,
.card.tapped .card-logo.invert-hover {
  filter: brightness(0) invert(1);
}

/* Logo default (non-preserve) — invert on hover */
.card-logo.default-invert {
  transition: filter 300ms ease-out;
}
.card:hover .card-logo.default-invert,
.card.tapped .card-logo.default-invert {
  filter: brightness(0) invert(1);
}

/* Card name fallback (no logo) */
.card-name-fallback {
  pointer-events: none;
  user-select: none;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(26, 26, 26, 0.5);
  transition: color 500ms;
  position: relative;
  z-index: 10;
}
.card:hover .card-name-fallback,
.card.tapped .card-name-fallback { color: rgba(250, 248, 245, 0.9); }

/* Card name label */
.card-name {
  position: relative;
  z-index: 10;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.025em;
  color: rgba(26, 26, 26, 0.3);
  transition: all 300ms ease-out;
}
.card:hover .card-name,
.card.tapped .card-name { color: rgba(250, 248, 245, 0.6); }

/* Card description */
.card-desc {
  position: relative;
  z-index: 10;
  max-width: 10rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.625;
  color: rgba(250, 248, 245, 0);
  transform: translateY(0.5rem);
  transition: all 300ms ease-out 100ms;
}
.card:hover .card-desc,
.card.tapped .card-desc {
  color: rgba(250, 248, 245, 0.5);
  transform: translateY(0);
}

/* Mobile tap arrow */
.card-arrow {
  display: none;
  position: relative;
  z-index: 10;
  margin-top: 0.25rem;
  width: 1.75rem;
  height: 1.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid rgba(250, 248, 245, 0.2);
  color: rgba(250, 248, 245, 0.6);
}
.card.tapped .card-arrow { display: flex; }

/* ----- 7. Footer / Contact ----- */
.footer {
  margin-top: 3rem;
  overflow: hidden;
  background: var(--ink);
}

.contact-section {
  scroll-margin-top: 5rem;
  padding: 3.5rem 2rem 4rem;
}

.contact-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.contact-title {
  margin-bottom: 2rem;
  font-family: var(--font-serif);
  font-size: 0.875rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(250, 248, 245, 0.3);
}

.contact-row {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.contact-info { max-width: 28rem; }

.contact-highlight {
  border-radius: 0.5rem;
  margin: -0.5rem -1rem;
  padding: 0.5rem 1rem;
  transition: all 700ms;
  background: transparent;
}
.contact-highlight.glow {
  background: rgba(250, 248, 245, 0.06);
  box-shadow: 0 0 20px rgba(250, 248, 245, 0.04);
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(250, 248, 245, 0.8);
  text-decoration: underline;
  text-decoration-color: rgba(250, 248, 245, 0.25);
  text-underline-offset: 4px;
  transition: color 150ms, text-decoration-color 150ms;
}
.contact-email:hover {
  color: var(--parchment);
  text-decoration-color: rgba(250, 248, 245, 0.5);
}

.contact-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.contact-linkedin-wrap { margin-top: 0.75rem; }

.contact-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: rgba(250, 248, 245, 0.5);
  text-decoration: underline;
  text-decoration-color: rgba(250, 248, 245, 0.15);
  text-underline-offset: 4px;
  transition: color 150ms, text-decoration-color 150ms;
}
.contact-linkedin:hover {
  color: rgba(250, 248, 245, 0.75);
  text-decoration-color: rgba(250, 248, 245, 0.3);
}

.contact-note {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: rgba(250, 248, 245, 0.4);
}

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

.copyright {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(250, 248, 245, 0.2);
  letter-spacing: 0.025em;
}

.privacy-btn {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(250, 248, 245, 0.25);
  letter-spacing: 0.025em;
  transition: color 200ms;
}
.privacy-btn:hover { color: rgba(250, 248, 245, 0.5); }

/* Watermark */
.watermark-wrap {
  overflow: hidden;
  padding-bottom: 1rem;
}
.watermark {
  user-select: none;
  white-space: nowrap;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 15vw;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.05em;
  color: rgba(250, 248, 245, 0.06);
}

/* ----- 8. Back to Top ----- */
.back-to-top {
  position: fixed;
  bottom: 0;
  right: 1rem;
  z-index: 40;
  display: none;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.5rem 0.5rem 0 0;
  background: var(--ink);
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(250, 248, 245, 0.7);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  transform: translateY(100%);
  opacity: 0;
  transition: all 300ms;
  pointer-events: none;
}
.back-to-top:hover { color: var(--parchment); }
.back-to-top.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* ----- 9. Mobile Menu ----- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.mobile-menu[hidden] { display: none; }

.mobile-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.mobile-menu-panel {
  position: relative;
  z-index: 10;
  margin: 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(250, 248, 245, 0.08);
  background: var(--ink);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
}

.mobile-menu-logo {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--parchment);
}

.mobile-menu-close {
  display: flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid rgba(250, 248, 245, 0.08);
  color: rgba(250, 248, 245, 0.4);
  transition: color 150ms;
}
.mobile-menu-close:hover { color: rgba(250, 248, 245, 0.7); }

.mobile-menu-links {
  border-top: 1px solid rgba(250, 248, 245, 0.06);
  padding: 1rem 1.5rem;
}

.mobile-menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  font-size: 1rem;
  color: rgba(250, 248, 245, 0.7);
  transition: color 150ms;
}
.mobile-menu-link svg { color: rgba(250, 248, 245, 0.25); }
.mobile-menu-link:hover { color: var(--parchment); }

.mobile-menu-cta-wrap {
  border-top: 1px solid rgba(250, 248, 245, 0.06);
  padding: 1.25rem 1.5rem;
}

.mobile-menu-cta {
  display: block;
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid rgba(250, 248, 245, 0.15);
  padding: 0.75rem;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(250, 248, 245, 0.6);
  transition: all 150ms;
}
.mobile-menu-cta:hover {
  border-color: rgba(250, 248, 245, 0.3);
  color: var(--parchment);
}

/* ----- 10. Privacy Modal ----- */
.privacy-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.privacy-modal[hidden] { display: none; }

.privacy-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.8);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fadeIn 200ms ease-out;
}

.privacy-panel {
  position: relative;
  width: 100%;
  max-width: 36rem;
  max-height: 80vh;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(250, 248, 245, 0.06);
  background: var(--ink);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  animation: slideUp 300ms ease-out;
}

.privacy-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(250, 248, 245, 0.06);
  padding: 1.25rem 1.75rem;
}

.privacy-heading {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(250, 248, 245, 0.5);
}

.privacy-close {
  display: flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid rgba(250, 248, 245, 0.08);
  color: rgba(250, 248, 245, 0.3);
  transition: all 200ms;
}
.privacy-close:hover {
  border-color: rgba(250, 248, 245, 0.2);
  color: rgba(250, 248, 245, 0.6);
}

.privacy-body {
  overflow-y: auto;
  padding: 1.5rem 1.75rem;
  max-height: calc(80vh - 70px);
}

.privacy-section {
  margin-bottom: 1.5rem;
}
.privacy-section h3 {
  margin-bottom: 0.5rem;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(250, 248, 245, 0.7);
}
.privacy-section p {
  font-size: 13px;
  line-height: 1.625;
  color: rgba(250, 248, 245, 0.5);
}

.privacy-updated {
  border-top: 1px solid rgba(250, 248, 245, 0.06);
  padding-top: 1.25rem;
}
.privacy-updated p {
  font-size: 11px;
  color: rgba(250, 248, 245, 0.3);
}

/* ----- 11. Animations ----- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(1rem); }
  to { opacity: 1; transform: translateY(0); }
}

/* ----- 12. Responsive ----- */

/* md: 768px+ */
@media (min-width: 768px) {
  .nav-inner { padding: 1.5rem 3rem 0; }
  .nav-links { display: flex; }
  .nav-toggle { display: none; }

  .hero {
    margin: 1rem 1.25rem 0;
    border-radius: 1.5rem;
  }

  .hero-content { padding: 3.5rem 3rem 5rem; }

  .hero-headline { font-size: 3rem; }
  .hero-subhead { font-size: 1.5rem; }

  .globe {
    bottom: -130px;
    right: -100px;
    width: 400px;
    height: 400px;
  }

  .portfolio-section { padding: 4rem 2rem; }

  .portfolio-header { justify-content: space-between; }

  .filter-wrapper {
    flex: none;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .filter-strip {
    overflow-x: visible;
    flex-wrap: wrap;
    scroll-snap-type: none;
  }
  .filter-chevron { display: none !important; }

  .portfolio-grid { grid-template-columns: repeat(4, 1fr); }

  .portfolio-cell:nth-child(odd) { border-right: none; }
  .portfolio-cell { border-right: 1px solid rgba(26, 26, 26, 0.1); }
  .portfolio-cell.col-last { border-right: none; }

  .card { min-height: 13.75rem; }
  .card-logo { max-width: 10.625rem; height: 2.75rem; }
  .card-logo.lg { height: 3.5rem; }
  .card-logo-bg { height: 3rem; padding: 0 1.25rem; }
  .card-logo-bg .card-logo { height: 2.25rem; max-width: 10rem; }
  .card-name { font-size: 11px; }
  .card-desc { max-width: 12.5rem; font-size: 11px; }

  .card:hover .card-logo-wrap,
  .card.tapped .card-logo-wrap { transform: translateY(-0.5rem); }

  .grid-plus { display: block; }

  .card-arrow { display: none !important; }

  .contact-section { padding: 5rem 3rem; }
  .contact-row {
    flex-direction: row;
    justify-content: space-between;
  }
  .contact-meta {
    align-items: flex-end;
    text-align: right;
  }

  .watermark { font-size: 11rem; }

  .back-to-top {
    display: flex;
    right: 1.5rem;
  }
}

/* lg: 1024px+ */
@media (min-width: 1024px) {
  .hero { margin-left: 1.5rem; margin-right: 1.5rem; }
  .hero-headline { font-size: 3.75rem; }
  .watermark { font-size: 14rem; }
  .back-to-top { right: 2rem; }
}

/* Touch devices — show arrow on tapped cards */
@media (hover: none) {
  .card.tapped .card-arrow { display: flex; }
}
