/* ================================================
   DESIGN TOKENS
   ================================================ */
:root {
  --color-primary:       #3B2F24;
  --color-primary-light: #DDD8CB;
  --color-primary-dark:  #1F1710;
  --color-surface:       #FDFBF4;
  --color-border:        #3B2F24;
  --color-subtle:        rgba(59, 47, 36, 0.05);
  --color-subtle-border: rgba(59, 47, 36, 0.1);
    /* Profile width: change this to control hero image and button widths.
      Use a fixed pixel value for a constant size, or a clamp() for responsive limits. */
    --profile-w: clamp(240px, 80vw, 400px);

  /* Swap 'Space Grotesk' for 'General Grotesk' once font files are added */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;

  --max-w:  880px;
  --gutter: clamp(24px, 6vw, 80px);
}

/* ================================================
   DARK MODE TOKENS
   ================================================ */
body.dark {
  --color-primary:       #EDE5D8;
  --color-primary-light: #2E2820;
  --color-primary-dark:  #F8F3EC;
  --color-surface:       #1A1612;
  --color-border:        #EDE5D8;
  --color-subtle:        rgba(237, 229, 216, 0.05);
  --color-subtle-border: rgba(237, 229, 216, 0.1);
}

body.dark .watermark {
  color: var(--color-primary);
  opacity: 0.07;
}


body.dark .cloud {
  filter: brightness(0.82) saturate(0.7);
}

/* ================================================
   RESET
   ================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  {
  background: var(--color-surface);
  color: var(--color-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.35s ease, color 0.35s ease;
}
img   { display: block; max-width: 100%; }
a     { color: inherit; text-decoration: none; }
ul    { list-style: none; }

/* ================================================
   WATERMARK
   ================================================ */
.watermark {
  position: absolute;
  font-family: var(--font-display);
  font-size: clamp(80px, 24vw, 1000px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-primary-light);
  opacity: 0.5;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  line-height: 1;
}

/* ================================================
   HERO
   ================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px var(--gutter);
  overflow: hidden;
}

.hero .watermark {
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: max-content;
  justify-content: center;
  text-align: center;
  gap: 24px;
}

.profile-photo {
  --profile-width: var(--profile-w);
  width: var(--profile-width);
  height: var(--profile-width);
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  background-color: var(--color-primary-light);
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 12vw, 60px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.hero-tagline {
  font-size: clamp(16px, 8vw, 22px);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.hero-tagline.typing::after {
  content: '';
  display: inline-block;
  width: 2px;
  height: 0.85em;
  background: currentColor;
  margin-left: 2px;
  vertical-align: middle;
  animation: blink-caret 0.8s steps(2, start) infinite;
  opacity: 0.6;
}

/* ================================================
   HERO CLOUDS
   ================================================ */
/* No z-index on container — lets each cloud stack directly against hero-inner */
.hero-clouds {
  position: absolute;
  inset: 0;
}

.cloud {
  position: absolute;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: auto;
  cursor: grab;
  /* translate composes parallax (--px/--py) + viewport slide (--cloud-vp-x) */
  translate: calc(var(--px, 0px) + var(--cloud-vp-x, 0px)) var(--py, 0px);
  transition: translate 0.5s ease-out;
  will-change: translate;
}

.cloud img {
  width: 100%;
  display: block;
  -webkit-user-drag: none;
}

/* Balloon string — starts at cloud's vertical centre, extends to top of screen */
.cloud::after {
  content: '';
  position: absolute;
  bottom: 50%;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 200vh;
  background: linear-gradient(to top, var(--color-primary-light) 0%, transparent 85%);
  opacity: 0.9;
  pointer-events: none;
  z-index: -1;
}

body.dark .cloud::after {
  background: linear-gradient(to top, rgba(237, 229, 216, 0.55) 0%, transparent 85%);
  opacity: 1;
}

/* Left-side clouds slide off left as viewport narrows below 1200px */
.cloud-1, .cloud-2, .cloud-3 { --cloud-vp-x: clamp(-600px, calc(100vw - 1200px), 0px); }
/* Right-side clouds slide off right */
.cloud-4, .cloud-5, .cloud-6 { --cloud-vp-x: clamp(0px, calc(1200px - 100vw), 600px); }

/* Drop-in on page load — falls from off-screen top with a realistic bounce settle */
@keyframes cloud-drop-in {
  0%   { transform: translateY(-110vh); opacity: 0; }
  55%  { opacity: 1; }
  72%  { transform: translateY(22px); }
  84%  { transform: translateY(-11px); }
  92%  { transform: translateY(6px); }
  97%  { transform: translateY(-2px); }
  100% { transform: translateY(0); }
}

/* Smaller clouds — behind the photo (z-index 0 < hero-inner z-index 1) */
.cloud-1 { top:  6%; left:  2%;   width: 310px; z-index: 0; animation: cloud-drop-in 1.1s ease-out 0.10s both, cloud-float 7s   ease-in-out infinite 1.20s; }
.cloud-3 { top: 70%; left: -3%;   width: 270px; z-index: 0; animation: cloud-drop-in 1.1s ease-out 0.45s both, cloud-float 6.5s ease-in-out infinite 1.55s; }
.cloud-5 { top: 28%; right: -5%;  width: 330px; z-index: 0; animation: cloud-drop-in 1.1s ease-out 0.30s both, cloud-float 7.5s ease-in-out infinite 1.40s; }

/* Larger clouds — in front of the photo (z-index 2 > hero-inner z-index 1) */
.cloud-2 { top: 42%; left: -6%;   width: 430px; z-index: 2; animation: cloud-drop-in 1.1s ease-out 0.20s both, cloud-float 9s   ease-in-out infinite 1.30s; }
.cloud-4 { top:  5%; right: -4%;  width: 450px; z-index: 2; animation: cloud-drop-in 1.1s ease-out 0.05s both, cloud-float 8s   ease-in-out infinite 1.15s; }
.cloud-6 { top: 58%; right: -3%;  width: 410px; z-index: 2; animation: cloud-drop-in 1.1s ease-out 0.55s both, cloud-float 10s  ease-in-out infinite 1.65s; }

@keyframes cloud-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-16px); }
}

.hero-actions {
  display: flex;
  gap: 8px;
  width: 100%;
  margin-top: 16px;
}

.hero-actions .btn {
  flex: 1 1 0;
}

.hero-actions .btn {
  justify-content: center;
  text-align: center;
}

/* ================================================
   BUTTONS
   ================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  border: 1.5px solid var(--color-primary);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn-filled {
  background: var(--color-primary);
  color: var(--color-surface);
}
.btn-filled:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}

.btn-ghost {
  background: transparent;
  color: var(--color-primary);
}
.btn-ghost:hover {
  background: var(--color-primary);
  color: var(--color-surface);
}

/* ================================================
   SITE CONTROLS
   ================================================ */
.site-controls {
  position: fixed;
  top: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 900;
  pointer-events: none;
}

.mode-toggle {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 5px 6px;
  background: var(--color-surface);
  border: 1.5px solid var(--color-primary-light);
  border-radius: 99px;
  /* box-shadow: 0 1px 4px rgba(0,0,0,0.07); */
  transition: background 0.35s ease, border-color 0.35s ease;
}

.mode-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--color-primary);
  opacity: 0.35;
  transition: opacity 0.2s, background 0.2s;
  padding: 0;
}

.mode-btn.active {
  opacity: 1;
  background: var(--color-primary-light);
}

.mode-btn:hover:not(.active) { opacity: 0.65; }

.music-btn {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 1.5px solid var(--color-primary-light);
  cursor: pointer;
  color: var(--color-primary);
  /* opacity: 0.6; */
  /* box-shadow: 0 1px 4px rgba(0,0,0,0.07); */
  transition: background 0.35s ease, border-color 0.35s ease, opacity 0.2s;
  padding: 0;
}

.music-btn:hover { opacity: 1; }

.music-btn .wave-1,
.music-btn .wave-2 {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.music-btn.playing           { opacity: 1; }
.music-btn.playing .wave-1   { opacity: 1; }
.music-btn.playing .wave-2   { opacity: 0.55; }

/* ================================================
   SHARED SECTION LAYOUT
   ================================================ */
/* overflow: clip clips visually without creating a scroll container,
   so position: sticky still works inside sections */
section { position: relative; overflow: clip; }

.section-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 120px var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* ================================================
   FLOATING PILL
   ================================================ */
.floating-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 24px;
  border: 1px solid var(--color-border);
  border-radius: 99px 99px 0px 99px;
  font-size: clamp(15px, 1.8vw, 18px);
  color: var(--color-surface);
  background: var(--color-primary);
  min-height: 44px;
  box-shadow: 0 1px 3px rgba(59, 47, 36, 0.06);
  position: relative;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.floating-pill.typing,
.floating-pill.done-typing {
  opacity: 1;
}

.floating-pill.typing::after {
  content: '';
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 3px;
  background: currentColor;
  animation: blink-caret 0.8s steps(2, start) infinite;
  vertical-align: middle;
  opacity: 0.7;
}

@keyframes blink-caret {
  0%, 100% { opacity: 0; }
  50%       { opacity: 1; }
}

/* ================================================
   PIN STAGE (scroll-driven intro for work + about)
   ================================================ */

/* 100vh sticky + 60vh scroll-through for typing animation */
.pin-wrap { height: 160vh; }

.pin-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Clips the oversized watermark to the viewport-height stage area */
.stage-backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.stage-backdrop .watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Constrained-width row that right-aligns the pill like a chat bubble */
.stage-pill-wrap {
  width: 100%;
  max-width: var(--max-w);
  padding: 0 var(--gutter);
  display: flex;
  justify-content: flex-end;
  position: relative;
  z-index: 1;
}

/* Pull content up so it appears ~50px below the watermark bottom
   when the pin phase ends, rather than a full viewport away.
   Formula: -50vh (offset from pin-end) + ~10vw (half watermark cap-height) + 50px gap */
#work-content,
#about-content {
  margin-top: calc(-50vh + 10vw + 50px);
  padding-top: 40px;
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(24px);
  will-change: opacity, transform;
}

/* ================================================
   WORK SECTION
   ================================================ */
.work .section-inner { gap: 64px; }

.case-study { width: 100%; }

.case-study-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.case-study-name {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.025em;
}

.case-study-role {
  text-align: right;
  font-size: 16px;
  line-height: 1.5;
}
.case-study-role span { display: block; }
.case-study-role em   { font-style: italic; }

/* ================================================
   CASE STUDY CARDS
   ================================================ */
.case-study-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transform-origin: center bottom;
  border: 1.5px solid var(--color-primary);
  transition: transform 0.45s cubic-bezier(0.23, 1, 0.32, 1),
              box-shadow 0.45s cubic-bezier(0.23, 1, 0.32, 1);
}

.case-study-card:hover {
  transform: rotate(-1.8deg) scale(1.015);
  box-shadow: 0 24px 60px rgba(59, 47, 36, 0.18);
}

.case-study-card:hover .card-hover-overlay { opacity: 1; }

/* Grid layouts */
.card-grid {
  display: grid;
  gap: 10px;
  padding: 20px;
  background: var(--color-surface);
}

.layout-main-stack  { grid-template-columns: 1.6fr 1fr; }
.layout-thirds      { grid-template-columns: repeat(3, 1fr); }

.card-screen       { overflow: hidden; border-radius: 8px; }
.card-screen-stack { display: flex; flex-direction: column; gap: 10px; }

/* ================================================
   MOCK SCREENS (replace with real screenshots)
   ================================================ */
.mock-screen {
  width: 100%;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  border: 1.5px solid var(--color-primary);
}

/* Aspect ratios per slot */
.card-screen.main      .mock-screen { aspect-ratio: 4 / 3; }
.card-screen.secondary .mock-screen { aspect-ratio: 16 / 9; }
.layout-thirds .card-screen .mock-screen { aspect-ratio: 3 / 6.5; }


/* ================================================
   CARD HOVER OVERLAY
   ================================================ */
.card-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(59, 47, 36, 0.78);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card-hover-overlay span {
  font-family: var(--font-body);
  font-size: clamp(11px, 1vw, 16px);
  font-weight: 400;
  color: var(--color-surface);
  letter-spacing: 0.01em;
}

/* ================================================
   CASE STUDY CARD GROUP (Vertice & Atlassian)
   ================================================ */
.cs-card-group {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 10px;
  min-height: 380px;
}

.cs-side-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cs-card {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

/* Mock screens fill the card — no aspect-ratio override needed */
.cs-card .mock-screen {
  aspect-ratio: unset;
  height: 100%;
  border-radius: inherit;
  overflow: hidden;
}

/* Ensure image elements with the mock-screen class fill their slot
   and keep rounded corners with the parent container.
   This makes the visible border follow the card's rounded corners. */
img.mock-screen {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit;
  box-sizing: border-box;
}

.cs-main {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transform-origin: center bottom;
  transition: transform 0.45s cubic-bezier(0.23, 1, 0.32, 1),
              box-shadow 0.45s cubic-bezier(0.23, 1, 0.32, 1);
}

.cs-main .mock-screen { flex: 1; }

.cs-main:hover {
  transform: rotate(-1.5deg) scale(1.01);
  box-shadow: 0 20px 50px rgba(59, 47, 36, 0.15);
}

.cs-secondary {
  flex: 1;
  display: flex;
  flex-direction: column;
  cursor: default;
}

.cs-secondary .mock-screen { flex: 1; }

/* Shared overlay */
.cs-overlay {
  position: absolute;
  inset: 0;
  background: rgba(59, 47, 36, 0.75);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.cs-card:hover .cs-overlay { opacity: 1; }

.cs-overlay span {
  font-family: var(--font-body);
  font-size: clamp(11px, 1vw, 16px);
  font-weight: 400;
  color: #FDFBF4;
  letter-spacing: 0.01em;
  text-align: center;
  padding: 0 24px;
}

/* ================================================
   CASE STUDY MODAL
   ================================================ */
.cs-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--color-surface);
  color: var(--color-primary);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.cs-modal.open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transition: opacity 0.3s ease;
}

.cs-modal-close {
  position: fixed;
  top: 24px;
  right: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  cursor: pointer;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  z-index: 1;
}

.cs-modal-close:hover { background: var(--color-primary-light); }

.cs-modal-body {
  flex: 1;
  overflow-y: auto;
}

/* Atlassian placeholder (centred) */
.cs-modal-inner {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 32px;
}

.cs-modal-placeholder {
  font-size: 16px;
  opacity: 0.35;
}

/* ─── Modal content: cm-* ──────────────────────── */
.cm-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 32px 120px;
}

.cm-hero { margin-bottom: 80px; }

.cm-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 24px;
}

.cm-intro {
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 1.8;
  opacity: 0.7;
  margin-bottom: 10px;
}

.cm-meta {
  font-size: 12px;
  letter-spacing: 0.02em;
  opacity: 0.4;
  margin-top: 20px;
  margin-bottom: 40px;
}

.cm-img {
  width: 100%;
  border-radius: 10px;
  background: var(--color-subtle);
  flex-shrink: 0;
}

.cm-img-hero { aspect-ratio: 16 / 9; }
.cm-img-sm   { aspect-ratio: 4 / 3; }

.cm-section { margin-bottom: 80px; }

.cm-section-heading {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 600;
  text-align: center;
  letter-spacing: -0.01em;
  margin-bottom: 48px;
}

.cm-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
  margin-bottom: 52px;
}

.cm-item:last-child { margin-bottom: 0; }

.cm-item-text h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.cm-item-text p             { font-size: 14px; line-height: 1.8; opacity: 0.65; }
.cm-item-text p + p         { margin-top: 10px; }

.cm-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.cm-list li {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.65;
  padding-left: 16px;
  position: relative;
}

.cm-list li::before { content: '—'; position: absolute; left: 0; opacity: 0.4; }

.cm-body {
  font-size: 14px;
  line-height: 1.8;
  opacity: 0.65;
}

.cm-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.cm-stat {
  text-align: center;
  padding: 28px 16px;
  background: var(--color-subtle);
  border-radius: 12px;
  border: 1px solid var(--color-subtle-border);
}

.cm-stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.cm-stat-label {
  display: block;
  font-size: 12px;
  opacity: 0.5;
  line-height: 1.4;
}

.cm-two-col {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: start;
}

.cm-context-text h3 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.cm-context-text h3:not(:first-child) { margin-top: 28px; }

.cm-context-text ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cm-context-text li {
  font-size: 13px;
  line-height: 1.65;
  opacity: 0.65;
  padding-left: 16px;
  position: relative;
}

.cm-context-text li::before { content: '—'; position: absolute; left: 0; opacity: 0.4; }

/* ================================================
   ABOUT SECTION
   ================================================ */
.about-inner { align-items: flex-start; margin-bottom: 100px; }

.about-body {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 600px;
  width: 100%;
}

.about-body p {
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.75;
}

/* Squiggly underline — links will be wired up later */
.squiggle {
  text-decoration: underline;
  text-decoration-style: wavy;
  text-decoration-color: var(--color-primary);
  text-underline-offset: 5px;
  text-decoration-thickness: 1.5px;
  cursor: pointer;
}

.squiggle:hover { opacity: 0.7; }

.confetti-piece {
  position: fixed;
  width: 8px;
  height: 8px;
  pointer-events: none;
  will-change: transform, opacity;
  border-radius: 2px;
}

.bitmoji img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(100%);
  margin-top: 4px;
}

/* ================================================
   SCENE DIVIDER
   ================================================ */
.scene-divider {
  width: 100%;
  line-height: 0;
}

.scene-divider img {
  width: 100%;
  display: block;
  min-height: 320px;
  background: var(--color-surface);
}

/* ================================================
   CONTACT / FOOTER
   ================================================ */
.contact {
  background: #1F1710;
  color: #FDFBF4;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 0;
}

.contact .watermark {
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--color-primary);
  opacity: 0.2;
}

.contact-inner { margin-top: 50px; padding-bottom: 200px; }

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.contact-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  /* color: var(--color-surface); */
  color: #FDFBF4;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.contact-list a:hover { opacity: 1; }
.contact-list svg { flex-shrink: 0; opacity: 0.55; }

.footer-bar {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max-w);
  padding: 20px var(--gutter);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  /* color: var(--color-surface); */
  color: #FDFBF4;
  opacity: 0.35;
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 600px) {
  .hero-inner {
    grid-template-columns: fit-content(calc(100vw - 48px));
  }
  .hero-tagline { white-space: normal; }
  .cloud { display: none; }
  .cs-card-group { grid-template-columns: 1fr; min-height: unset; }

  .case-study-header {
    flex-direction: column;
    gap: 4px;
  }
  .case-study-role { text-align: left; }

  .layout-main-stack { grid-template-columns: 1fr; }
  .card-screen-stack { flex-direction: row; }

  .card-screen.main .mock-screen      { aspect-ratio: 16 / 10; }
  .card-screen.secondary .mock-screen { aspect-ratio: 16 / 10; }
}
