:root {
  /* Palette inspired by the template */
  --cream: #f3ebdd;
  --cream-2: #efe4d2;
  --olive: #6b7b4c;
  --olive-2: #a9b88f;
  --sage: #c9d6b8;
  --brown: #a55b2a;
  --orange: #c45a1d;
  --ink: #2e2a25;

  --h-font: "Cormorant Garamond", serif;
  --b-font: "Libre Baskerville", serif;
  --ui-font:
    "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  --radius: 18px;
  --shadow: 0 18px 40px rgba(46, 42, 37, 0.12);
  --max: 1120px;
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, var(--cream), var(--cream-2));
  font-family: var(--b-font);
  line-height: 1.75;
}

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

img {
  transition: transform 0.3s ease;
  transform-origin: center center;
}
img:hover {
  transform: scale(1.03);
}

.portrait .img,
.device .img,
.media-collage .main-img,
.screenshots-grid .screenshot,
.img-placeholder,
.event-logo-badge,
.photos-grid .photo,
.gallery .gallery-item,
.logo-card .logo-img {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  transform-origin: center center;
}

.portrait .img:hover,
.device .img:hover,
.media-collage .main-img:hover,
.screenshots-grid .screenshot:hover,
.img-placeholder:hover,
.event-logo-badge:hover,
.photos-grid .photo:hover,
.gallery .gallery-item:hover,
.logo-card .logo-img:hover {
  transform: scale(1.06);
  z-index: 10;
  box-shadow: 0 18px 48px rgba(46, 42, 37, 0.2);
}

.container {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

/* Subtle paper texture using CSS only (no images) */
.paper {
  position: relative;
  isolation: isolate;
}
.paper::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(
      circle at 10% 20%,
      rgba(255, 255, 255, 0.55),
      transparent 40%
    ),
    radial-gradient(
      circle at 90% 10%,
      rgba(255, 255, 255, 0.35),
      transparent 40%
    ),
    radial-gradient(
      circle at 30% 80%,
      rgba(255, 255, 255, 0.25),
      transparent 40%
    ),
    radial-gradient(circle at 70% 70%, rgba(0, 0, 0, 0.05), transparent 42%);
  opacity: 0.55;
  pointer-events: none;
}

/* NAV */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(243, 235, 221, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(46, 42, 37, 0.08);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}
.brand {
  font-family: var(--h-font);
  letter-spacing: 0.08em;
  font-weight: 600;
  font-size: 18px;
  text-transform: uppercase;
}
.menu {
  display: flex;
  align-items: center;
  gap: 22px;
  font-family: var(--ui-font);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.9;
}
.menu a {
  padding: 8px 6px;
  border-radius: 10px;
}
.menu a:hover {
  background: rgba(107, 123, 76, 0.08);
  text-decoration: none;
}
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--olive);
  color: #fff;
  font-family: var(--ui-font);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 0.5px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 22px rgba(107, 123, 76, 0.25);
  white-space: nowrap;
}
.cta:hover {
  filter: brightness(1.03);
  text-decoration: none;
}

/* SECTION BASE */
section {
  padding: 78px 0;
  position: relative;
}
.section-title {
  font-family: var(--h-font);
  font-weight: 600;
  letter-spacing: 0.06em;
  font-size: clamp(28px, 3.2vw, 44px);
  margin: 0 0 12px;
  color: rgba(46, 42, 37, 0.92);
}
.section-kicker {
  font-family: var(--ui-font);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  color: rgba(46, 42, 37, 0.65);
  margin: 0 0 10px;
}
.muted {
  color: rgba(46, 42, 37, 0.72);
}

/* HERO */
.hero {
  padding-top: 90px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.hero h1 {
  font-family: var(--h-font);
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.1;
  font-size: clamp(40px, 4.3vw, 64px);
  margin: 0 0 14px;
  position: relative;
}
.ps-note {
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--ui-font);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.95);
  padding: 12px 16px;
  border-radius: 12px;
  border: 0.5px solid rgba(46, 42, 37, 0.15);
  box-shadow: 0 8px 24px rgba(46, 42, 37, 0.15);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  z-index: 10;
}
.ps-note::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid rgba(255, 255, 255, 0.95);
  filter: drop-shadow(0 2px 2px rgba(46, 42, 37, 0.1));
}
.hero .hero-grid:hover .ps-note {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}
.hero p {
  margin: 0 0 18px;
  max-width: 56ch;
}
.quote {
  margin-top: 22px;
  padding: 16px 18px;
  border-left: 3px solid rgba(196, 90, 29, 0.45);
  background: rgba(255, 255, 255, 0.35);
  border-radius: 12px;
}
.quote .qmarks {
  font-family: var(--h-font);
  font-size: 28px;
  line-height: 1;
  color: rgba(196, 90, 29, 0.7);
}

/* Image frame */
.portrait {
  border-radius: 26px;
  background: linear-gradient(
    180deg,
    rgba(169, 184, 143, 0.35),
    rgba(255, 255, 255, 0.32)
  );
  border: 0.5px solid rgba(46, 42, 37, 0.1);
  box-shadow: var(--shadow);
  padding: 14px;
}
.portrait .img {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  background:
    radial-gradient(
      circle at 30% 30%,
      rgba(255, 255, 255, 0.7),
      transparent 50%
    ),
    linear-gradient(135deg, rgba(107, 123, 76, 0.18), rgba(196, 90, 29, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(46, 42, 37, 0.55);
  font-family: var(--ui-font);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
  overflow: hidden;
}
.portrait .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* BUTTONS */
.btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border-radius: 999px;
  font-family: var(--ui-font);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 0.5px solid rgba(46, 42, 37, 0.12);
  background: rgba(255, 255, 255, 0.45);
}
.btn.primary {
  background: var(--olive);
  color: #fff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 12px 26px rgba(107, 123, 76, 0.22);
}
.btn:hover {
  text-decoration: none;
  filter: brightness(1.02);
}

/* TWO-COL LAYOUT */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}
.device {
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.38);
  border: 0.5px solid rgba(46, 42, 37, 0.1);
  box-shadow: var(--shadow);
  padding: 18px;
}
.device .img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  background:
    radial-gradient(
      circle at 30% 30%,
      rgba(255, 255, 255, 0.7),
      transparent 50%
    ),
    linear-gradient(
      180deg,
      rgba(169, 184, 143, 0.35),
      rgba(255, 255, 255, 0.28)
    );
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(46, 42, 37, 0.55);
  font-family: var(--ui-font);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
  overflow: hidden;
}
.device .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.screen {
  border-radius: 18px;
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(
      180deg,
      rgba(169, 184, 143, 0.35),
      rgba(255, 255, 255, 0.28)
    ),
    radial-gradient(
      circle at 60% 40%,
      rgba(255, 255, 255, 0.5),
      transparent 55%
    );
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ui-font);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(46, 42, 37, 0.55);
}

/* SKILLS / CARDS BAND */
.band {
  background: linear-gradient(
    180deg,
    rgba(201, 214, 184, 0.58),
    rgba(201, 214, 184, 0.34)
  );
  border-top: 1px solid rgba(46, 42, 37, 0.07);
  border-bottom: 1px solid rgba(46, 42, 37, 0.07);
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 22px;
}
.card {
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.46);
  border: 0.5px solid rgba(46, 42, 37, 0.1);
  box-shadow: 0 10px 26px rgba(46, 42, 37, 0.08);
  padding: 18px 18px 16px;
}
.icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(107, 123, 76, 0.14);
  border: 0.5px solid rgba(107, 123, 76, 0.2);
  margin-bottom: 12px;
  font-family: var(--ui-font);
  font-weight: 700;
  color: rgba(46, 42, 37, 0.7);
}
.card h3 {
  font-family: var(--h-font);
  margin: 0 0 6px;
  letter-spacing: 0.04em;
  font-size: 22px;
}
.card p {
  margin: 0;
  color: rgba(46, 42, 37, 0.74);
}

/* PHONE WALL / TIKTOK */
.phone-wall {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 10px;
  max-width: 960px;
  margin-inline: auto;
  padding: 10px;
  align-items: center;
}
.phone-wall--template {
  grid-template-columns: 1fr 0.7fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0px 24px;
}
.phone-wall--template .phone:nth-child(1) {
  grid-column: 1;
  grid-row: 1 / 3;
  transform: rotate(-3deg);
}
.phone-wall--template .phone:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
  transform: rotate(2deg) scale(0.75);
  align-self: end;
  margin-bottom: -30px;
}
.phone-wall--template .phone:nth-child(3) {
  grid-column: 2;
  grid-row: 2;
  transform: rotate(-4deg) scale(0.75);
  align-self: start;
  margin-top: -30px;
}
.phone-wall--template .phone:nth-child(4) {
  grid-column: 3;
  grid-row: 1 / 3;
  transform: rotate(4deg);
}
.phone-wall--template .phone:nth-child(n + 5) {
  display: none;
}
.phone-wall--template .phone:nth-child(2):hover,
.phone-wall--template .phone:nth-child(3):hover {
  transform: scale(0.8) rotate(0deg) !important;
  z-index: 10;
}
.phone {
  border-radius: 28px;
  background: linear-gradient(
    180deg,
    rgba(46, 42, 37, 0.85),
    rgba(46, 42, 37, 0.92)
  );
  border: 2px solid rgba(46, 42, 37, 0.95);
  box-shadow: 0 12px 32px rgba(46, 42, 37, 0.3);
  padding: 6px 5px 6px;
  position: relative;
  transition: all 0.3s ease;
  width: 100%;
}
/* Add slight random rotation for personality */
.phone:nth-child(odd) {
  transform: rotate(-2deg);
}
.phone:nth-child(even) {
  transform: rotate(2deg);
}
.phone:nth-child(3n) {
  transform: rotate(-3deg);
}
.phone:hover {
  transform: scale(1.06) rotate(0deg) !important;
  z-index: 10;
  box-shadow: 0 18px 48px rgba(46, 42, 37, 0.4);
}
.phone::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  border-radius: 999px;
  background: rgba(46, 42, 37, 0.6);
}
.phone-screen {
  border-radius: 18px;
  aspect-ratio: 9 / 16;
  background:
    radial-gradient(
      circle at 50% 30%,
      rgba(255, 255, 255, 0.15),
      transparent 60%
    ),
    linear-gradient(
      135deg,
      rgba(196, 90, 29, 0.25),
      rgba(107, 123, 76, 0.22),
      rgba(165, 91, 42, 0.2)
    );
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ui-font);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
.phone-screen video,
.phone-screen img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.phone-screen::after {
  content: "";
  display: none;
}
/* Animated shimmer effect */
@keyframes shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}
.phone-screen.animated {
  background: linear-gradient(
    90deg,
    rgba(196, 90, 29, 0.2) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(107, 123, 76, 0.2) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}

/* KOC phone wall variant (for case study - max 4 phones in a row) */
.phone-wall--koc {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 18px;
  max-width: 400px;
}
.phone-wall--koc .phone {
  transform: rotate(0deg);
}
.phone-wall--koc .phone:nth-child(1) {
  transform: rotate(-2deg);
}
.phone-wall--koc .phone:nth-child(2) {
  transform: rotate(1deg);
}
.phone-wall--koc .phone:nth-child(3) {
  transform: rotate(-1deg);
}
.phone-wall--koc .phone:nth-child(4) {
  transform: rotate(3deg);
}
.phone-wall--koc .phone:hover {
  transform: scale(1.06) rotate(0deg) !important;
  z-index: 10;
}

/* AVAILABILITY / CTA */
.cta-slab {
  background: linear-gradient(
    180deg,
    rgba(201, 214, 184, 0.4),
    rgba(243, 235, 221, 0)
  );
}
.tilt {
  transform: rotate(-6deg);
}

/* ===== NEW CSS - CASE STUDY ===== */
.case-study {
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(46, 42, 37, 0.08);
}
.case-subsection {
  margin-bottom: 30px;
}
.arrow-divider {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 40px 0;
  position: relative;
  height: 60px;
}
.arrow-divider svg {
  width: 40px;
  height: 60px;
  fill: var(--olive);
  opacity: 0.6;
  animation: slideDown 2s ease-in-out infinite;
}
@keyframes slideDown {
  0% {
    transform: translateY(-10px);
    opacity: 0.3;
  }
  50% {
    transform: translateY(0);
    opacity: 0.6;
  }
  100% {
    transform: translateY(-10px);
    opacity: 0.3;
  }
}
@keyframes bouncy {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-8px) scale(1.05);
  }
}
@keyframes swayLeft {
  0%,
  100% {
    transform: translateY(0) rotate(-3deg) scale(1);
  }
  50% {
    transform: translateY(-6px) rotate(-5deg) scale(1.05);
  }
}
@keyframes swayRight {
  0%,
  100% {
    transform: translateY(0) rotate(2deg) scale(1);
  }
  50% {
    transform: translateY(-6px) rotate(4deg) scale(1.05);
  }
}
@keyframes swayCircle {
  0%,
  100% {
    transform: translateX(0) translateY(0) rotate(-2deg) scale(1);
  }
  25% {
    transform: translateX(-4px) translateY(-6px) rotate(-4deg) scale(1.03);
  }
  75% {
    transform: translateX(4px) translateY(-6px) rotate(0deg) scale(1.03);
  }
}
.case-study:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.case-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}
.case-grid.challenge-grid {
  grid-template-columns: 1fr 0.65fr;
}
.case-grid.reverse {
  direction: rtl;
}
.case-grid.reverse > * {
  direction: ltr;
}
.case-grid h3 {
  font-family: var(--h-font);
  font-weight: 600;
  font-size: clamp(18px, 2vw, 24px);
  letter-spacing: 0.04em;
  margin: 22px 0 6px;
  color: rgba(46, 42, 37, 0.88);
}
.case-grid h4 {
  font-family: var(--ui-font);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 20px 0 6px;
  color: var(--olive);
}
.case-grid p {
  margin: 0 0 10px;
}

/* Media collage */
.media-collage {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.media-collage .main-img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ui-font);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(46, 42, 37, 0.55);
  overflow: hidden;
}
.media-collage .main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Mini logos */
.mini-logos {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mini-logos .mini-logo {
  width: 280px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 12px;
}
.mini-logos .mini-logo:nth-child(1) {
  animation: swayLeft 2.5s ease-in-out infinite;
  animation-delay: 0s;
}
.mini-logos .mini-logo:nth-child(2) {
  animation: swayRight 2.8s ease-in-out infinite;
  animation-delay: 0.3s;
}
.mini-logos .mini-logo img {
  width: 85%;
  height: 85%;
  object-fit: contain;
}

/* Side-by-side screenshots */
.screenshots-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}
.screenshots-grid .screenshot {
  border-radius: 14px;
  background: linear-gradient(
    180deg,
    rgba(169, 184, 143, 0.2),
    rgba(255, 255, 255, 0.2)
  );
  border: 0.5px solid rgba(46, 42, 37, 0.08);
  box-shadow: 0 6px 16px rgba(46, 42, 37, 0.06);
  aspect-ratio: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-family: var(--ui-font);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(46, 42, 37, 0.5);
  overflow: hidden;
}
.screenshots-grid .screenshot img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Single image placeholder */
.img-placeholder {
  border-radius: var(--radius);
  background: linear-gradient(
    180deg,
    rgba(169, 184, 143, 0.25),
    rgba(255, 255, 255, 0.22)
  );
  border: 0.5px solid rgba(46, 42, 37, 0.08);
  box-shadow: 0 8px 22px rgba(46, 42, 37, 0.06);
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ui-font);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(46, 42, 37, 0.5);
  overflow: hidden;
  margin-top: 14px;
}
.img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.img-placeholder.img-scroll-vertical img {
  object-fit: cover;
  object-position: center top;
  animation: scrollImageVertical 8s ease-in-out infinite alternate;
}

@keyframes scrollImageVertical {
  0% {
    object-position: center top;
  }
  100% {
    object-position: center bottom;
  }
}

/* Event logo badge */
.event-logo-badge {
  width: 100px;
  height: 100px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.7);
  border: 0.5px solid rgba(46, 42, 37, 0.1);
  box-shadow: 0 6px 18px rgba(46, 42, 37, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  margin-bottom: 14px;
  font-family: var(--ui-font);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(46, 42, 37, 0.5);
  overflow: hidden;
}
.event-logo-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Photos grid (event) */
.photos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 12px;
  margin-top: 14px;
  align-items: start;
}
.photos-grid .photo {
  border-radius: 14px;
  background: linear-gradient(
    180deg,
    rgba(169, 184, 143, 0.2),
    rgba(255, 255, 255, 0.2)
  );
  border: 0.5px solid rgba(46, 42, 37, 0.08);
  box-shadow: 0 6px 16px rgba(46, 42, 37, 0.06);
  aspect-ratio: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ui-font);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(46, 42, 37, 0.5);
  overflow: hidden;
}
.photos-grid .photo:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
}
.photos-grid .photo:nth-child(2) {
  grid-column: 1;
  grid-row: 2;
}
.photos-grid .photo:nth-child(3) {
  grid-column: 2;
  grid-row: 1 / 3;
  aspect-ratio: auto;
  height: auto;
  align-self: center;
  min-height: 0;
  position: relative;
  overflow: visible;
}
.photos-grid .photo img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
}
.photos-grid .photo:nth-child(3) img {
  width: 100%;
  height: auto;
  object-fit: contain;
  max-height: 100%;
  border-radius: 14px;
}

.photos-grid .photo:nth-child(3) .event-logo-badge {
  position: absolute;
  top: -18px;
  left: 16px;
  width: 72px;
  height: 72px;
  margin-bottom: 0;
  z-index: 2;
  animation: swayCircle 3s ease-in-out infinite;
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
}

.photos-grid .photo:nth-child(3) img:hover {
  transform: scale(1);
}

/* Gallery (research charts) */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 22px;
}
.gallery .gallery-item {
  border-radius: 16px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.5),
    rgba(255, 255, 255, 0.22)
  );
  border: 0.5px solid rgba(46, 42, 37, 0.08);
  box-shadow: 0 8px 22px rgba(46, 42, 37, 0.06);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ui-font);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(46, 42, 37, 0.5);
  overflow: hidden;
}
.gallery .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ===== NEW CSS - LOGO GRID (Skills & Certs) ===== */
.logo-card .logo-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 6px;
}
.logo-card .logo-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.skills-row {
  display: block;
  margin-top: 10px;
}

.skills-orbit {
  --gap: 16px;
  --duration: 22s;
  --slide-h: clamp(120px, 14vw, 170px);
  
  width: 100%;
  overflow: hidden;
  margin-inline: 0;
  position: relative;
  padding: 12px 0;
}

.orbit-ring {
  display: flex;
  gap: var(--gap);
  width: max-content;
  animation: scrollSkills var(--duration) linear infinite;
}

/* Pause animation on hover */
.skills-orbit:hover .orbit-ring {
  animation-play-state: paused;
}

@keyframes scrollSkills {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50% - (var(--gap) / 2)));
  }
}

.orbit-item {
  position: relative;
  flex: 0 0 auto;
  width: clamp(140px, 18vw, 200px);
  height: var(--slide-h);
  border-radius: 10px;
  background: #fff;
  border: 0.5px solid rgba(46, 42, 37, 0.1);
  box-shadow: 0 6px 14px rgba(46, 42, 37, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
}

.orbit-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
  user-select: none;
}

.cert-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  width: 100%;
  margin-top: 20px;
}

.cert-grid .logo-card {
  width: 100%;
  height: auto;
  border-radius: 10px;
  background: #fff;
  border: 0.5px solid rgba(46, 42, 37, 0.1);
  box-shadow: 0 6px 14px rgba(46, 42, 37, 0.08);
  padding: 0;
  display: block;
  overflow: hidden;
}

.cert-grid .logo-card .logo-img {
  padding: 0;
}

.cert-grid .logo-card .logo-img img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.skills-orbit {
  touch-action: pan-y;
}

/* ===== NEW CSS - CONTACT LIST ===== */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  font-family: var(--ui-font);
  font-size: 13px;
  line-height: 2;
}
.contact-list a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ===== ABOUT "At a Glance" mini list ===== */
.at-a-glance {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--ui-font);
  font-size: 13px;
  letter-spacing: 0.04em;
  line-height: 2;
  color: rgba(46, 42, 37, 0.78);
}
.at-a-glance strong {
  color: var(--ink);
}

.strengths-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
  color: rgba(46, 42, 37, 0.78);
}

.strengths-list li {
  position: relative;
  padding-left: 18px;
}

.strengths-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(107, 123, 76, 0.75);
}

/* FOOTER */
footer {
  background: linear-gradient(
    180deg,
    rgba(165, 91, 42, 0.96),
    rgba(165, 91, 42, 0.92)
  );
  color: rgba(255, 255, 255, 0.9);
  padding: 48px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.foot {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  align-items: start;
}
.foot .links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--ui-font);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
}
.social {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.pill {
  border: 0.5px solid rgba(255, 255, 255, 0.22);
  padding: 10px 12px;
  border-radius: 999px;
  font-family: var(--ui-font);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.06);
}
.copyright {
  margin-top: 18px;
  font-size: 13px;
  opacity: 0.85;
}

/* Decorative floating "leaf" dots (simple) */
.dots {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0.35;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: rgba(46, 42, 37, 0.35);
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid,
  .two-col,
  .case-grid {
    grid-template-columns: 1fr;
  }
  .case-grid.reverse {
    direction: ltr;
  }
  .portrait {
    max-width: 520px;
    margin-inline: auto;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .skills-row {
    margin-top: 8px;
  }
  .skills-orbit {
    width: 100%;
  }
  .orbit-ring {
    --gap: 10px;
    --visible: 3;
  }
  .orbit-item {
    height: clamp(95px, 28vw, 130px);
  }
  .cert-grid {
    gap: 12px;
  }
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .phone-wall {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 10px;
  }
  .phone-wall--template {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .phone-wall--template .phone:nth-child(n) {
    grid-column: 1 !important;
    grid-row: auto !important;
    align-self: center !important;
    transform: rotate(0deg) !important;
    margin-top: 0;
    margin-bottom: 0;
    display: block !important;
  }
  .phone-wall--koc {
    grid-template-columns: repeat(2, 1fr);
  }
  .phone {
    max-width: 280px;
    margin-inline: auto;
  }
  .phone:nth-child(n) {
    transform: rotate(0deg);
  }
  .phone:hover {
    transform: scale(1.04) rotate(0deg) !important;
  }
  .menu {
    display: none;
  }
  .foot {
    grid-template-columns: 1fr;
  }
  section {
    padding: 62px 0;
  }
  .dots {
    display: none;
  }
}

@media (max-width: 480px) {
  .phone-wall {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .gallery {
    grid-template-columns: 1fr 1fr;
  }
  .logo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .screenshots-grid {
    grid-template-columns: 1fr;
  }
  .phone-wall--koc {
    grid-template-columns: repeat(2, 1fr);
  }
}
