:root {
  --bg: #f4f2ee;
  --fg: #191919;
  --muted: #666666;
  --panel: #ffffffee;
  --panel-strong: #ffffff;
  --border: #e0dcd5;
  --primary: #0a66c2;
  --primary-soft: #dce9f5;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  --radius: 12px;
  --nav-size: 40px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: clip;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, sans-serif;
  color: var(--fg);
  background: var(--bg);
  min-height: 100vh;
}

img {
  max-width: 100%;
}

h1,
h2,
h3,
h4 {
  font-family: "Space Grotesk", sans-serif;
  margin: 0;
  line-height: 1.2;
}

p,
ul {
  margin: 0;
}

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

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

.shell {
  width: min(1200px, 94vw);
  margin: 0 auto;
  max-width: 100%;
}

.page-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  z-index: -3;
}

.backdrop-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0;
  z-index: -2;
}

.glow-one {
  width: 330px;
  height: 330px;
  right: -90px;
  top: -80px;
  background: #99b9ff;
}

.glow-two {
  width: 280px;
  height: 280px;
  left: -70px;
  bottom: 30px;
  background: #9de8cc;
}

.layout {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 1.15rem;
  padding: 1rem 0 1.5rem;
}

.sidebar {
  position: sticky;
  top: 1rem;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: calc(100vh - 1.25rem);
  overflow: hidden;
}

.panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.identity-panel {
  padding: 1rem;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
}

.portrait {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  display: block;
  margin: 0 auto;
  flex-shrink: 1;
}

.kicker {
  margin-top: 0.6rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0a66c2;
  font-weight: 700;
}

.identity-panel h1 {
  margin-top: 0.35rem;
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  white-space: nowrap;
}

.role {
  margin-top: 0.15rem;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.85rem;
}

.meta,
.mail-link {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.mail-link {
  display: inline-flex;
  margin-top: 0.25rem;
  color: #0a66c2;
  transition: color 150ms ease;
}

.mail-link:hover {
  color: #1a44a8;
  text-decoration: underline;
}

.sidebar-socials {
  margin-top: 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.sidebar-socials a {
  border: 1px solid var(--border);
  background: #fff;
  padding: 0.35rem 0.62rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #31415f;
  transition: background 150ms ease, border-color 150ms ease;
}

.sidebar-socials a:hover {
  background: var(--primary-soft);
  border-color: #c4d7ed;
}

.nav-panel {
  padding: 0.6rem;
  flex: 0 0 auto;
  min-height: 0;
  overflow: hidden;
}

.side-nav {
  position: relative;
  display: grid;
  gap: 0.3rem;
}

.active-indicator {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: var(--nav-size);
  border-radius: 14px;
  background: linear-gradient(145deg, #e8f0fe, #dce9f5);
  border: 1px solid #c4d7ed;
  box-shadow: none;
  transform: translateY(0);
  transition: transform 260ms cubic-bezier(0.21, 1, 0.31, 1);
}

.side-nav button {
  height: var(--nav-size);
  border: 0;
  background: transparent;
  border-radius: 14px;
  text-align: left;
  padding: 0 0.95rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: #546178;
  cursor: pointer;
  position: relative;
  z-index: 2;
  transition: color 150ms ease;
}

.side-nav button:hover {
  color: #0f2e73;
}

.side-nav button.is-active {
  color: #0f2e73;
}

.skill-panel {
  padding: 0.7rem;
  flex: 0 0 auto;
}

.skill-panel h2 {
  font-size: 1rem;
}

.pill-list {
  margin-top: 0.8rem;
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.pill-list li,
.stack-list li {
  border: 1px solid #c7d8fb;
  background: var(--primary-soft);
  color: #1a44a8;
  padding: 0.35rem 0.62rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.content-column {
  display: grid;
  gap: 1rem;
}

.reveal {
  --reveal-delay: 0ms;
  opacity: 0;
  transform: translateY(22px) scale(0.985);
  filter: blur(5px);
  transition:
    opacity 180ms cubic-bezier(0.25, 0.7, 0.3, 1) var(--reveal-delay),
    transform 180ms cubic-bezier(0.25, 0.7, 0.3, 1) var(--reveal-delay),
    filter 180ms cubic-bezier(0.25, 0.7, 0.3, 1) var(--reveal-delay);
  will-change: transform, opacity, filter;
}

.reveal.from-left {
  transform: translateX(-24px) scale(0.985);
}

.reveal.from-right {
  transform: translateX(24px) scale(0.985);
}

.reveal.fx-pop {
  transform: translateY(18px) scale(0.92);
}

.reveal.fx-tilt {
  transform: translateY(20px) rotate(-0.9deg) scale(0.98);
  transform-origin: 50% 100%;
}

.reveal.fx-clip {
  transform: none;
  filter: none;
  clip-path: inset(0 0 100% 0 round 14px);
  transition:
    opacity 160ms cubic-bezier(0.25, 0.7, 0.3, 1) var(--reveal-delay),
    clip-path 210ms cubic-bezier(0.25, 0.7, 0.3, 1) var(--reveal-delay);
}

.reveal.is-visible {
  opacity: 1;
  transform: translate(0, 0) scale(1);
  filter: blur(0);
}

.reveal.reveal-complete {
  will-change: auto;
  transition: none;
}

.reveal.is-visible.fx-clip {
  clip-path: inset(0 0 0 0 round 14px);
}

.section-card {
  padding: 1.25rem;
  scroll-margin-top: 1rem;
  background: rgba(255, 255, 255, 0.55);
}

.section-head h2 {
  margin-top: 0.42rem;
  font-size: clamp(1.25rem, 3vw, 2.15rem);
  max-width: 24ch;
}

section#about .section-head h2 {
  max-width: none;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

.prose {
  margin-top: 1rem;
  display: grid;
  gap: 0.72rem;
  color: var(--muted);
}

.attribute-grid {
  margin-top: 1.1rem;
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.attribute-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0.85rem;
  background: #fff;
}

.attribute-card h3 {
  font-size: 0.94rem;
}

.attribute-card p {
  margin-top: 0.36rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.growth-panel {
  margin-top: 1.1rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1rem;
  background: linear-gradient(145deg, #ffffff, #f7fbff);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.growth-panel header h3 {
  font-size: 1.04rem;
}

.growth-panel header p {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.impact-hero {
  margin-top: 0.8rem;
  border: 1px solid #c4d7ed;
  border-radius: 16px;
  background: linear-gradient(140deg, #e8f0fe, #dce9f5 55%, #f9fbff);
  padding: 0.85rem;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 0.8rem;
  align-items: center;
}

.impact-hero-kicker {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0a66c2;
  font-weight: 700;
}

.impact-hero-value {
  margin-top: 0.26rem;
  font-size: clamp(1.02rem, 1.8vw, 1.36rem);
  line-height: 1.25;
  font-weight: 800;
  color: #0f2e73;
}

.impact-hero-note {
  margin-top: 0.34rem;
  color: #546178;
  font-size: 0.85rem;
}

.impact-hero-art {
  width: 100%;
  border-radius: 14px;
  border: 1px solid #ccdcff;
  background: #fff;
}

.growth-grid {
  margin-top: 0.78rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.growth-card {
  border: 1px solid #c4d7ed;
  border-radius: 15px;
  padding: 0.7rem;
  background: linear-gradient(165deg, #ffffff, #f7fbff);
  box-shadow: inset 0 1px 0 #fff;
}

.growth-label {
  color: #5f7190;
  font-size: 0.82rem;
}

.growth-value {
  margin-top: 0.22rem;
  color: #0a66c2;
  font-size: 1.28rem;
  font-weight: 800;
  line-height: 1.2;
}

.growth-delta {
  margin-top: 0.2rem;
  color: #2e6f55;
  font-size: 0.78rem;
  font-weight: 700;
}

.growth-sparkline {
  margin-top: 0.55rem;
  width: 100%;
  height: 72px;
  border-radius: 10px;
  border: 1px solid #c4d7ed;
  background: #f9fbff;
}

.portfolio-carousel {
  margin-top: 1rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0.75rem;
  background: #fff;
}

.carousel-frame {
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid #d3ddf0;
}

.carousel-track {
  display: flex;
  transition: transform 320ms ease;
}

.carousel-slide {
  min-width: 100%;
  height: 240px;
  display: grid;
  place-items: end start;
  padding: 0.9rem;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  box-shadow: inset 0 -60px 120px rgba(255, 255, 255, 0.3);
}

.carousel-slide span {
  font-size: 0.84rem;
  font-weight: 700;
  color: #1a44a8;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: #ffffffd4;
  border: 1px solid #c7d8fb;
}

.slide-one {
  background-image: url("assets/portfolio/territory-forecast-real.png");
}

.slide-two {
  background-image: url("assets/portfolio/garn-website-real.png");
}

.slide-three {
  background-image: url("assets/portfolio/packet-redesign.svg");
}

.slide-four {
  background-image: url("assets/portfolio/virtual-recruitment.svg");
}

.carousel-controls {
  margin-top: 0.65rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.carousel-btn {
  border: 1px solid var(--border);
  background: #fff;
  color: #31415f;
  border-radius: 10px;
  padding: 0.4rem 0.7rem;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease;
}

.carousel-btn:hover {
  background: var(--primary-soft);
  border-color: #c4d7ed;
}

.carousel-dots {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: #b5c4de;
  cursor: pointer;
  transition: background 150ms ease;
}

.carousel-dot:hover {
  background: #8da3c8;
}

.carousel-dot.is-active {
  background: #0a66c2;
}

.project-list {
  margin-top: 1rem;
  display: grid;
  gap: 0.85rem;
}

.project-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0.85rem;
  background: #fff;
}

.project-media {
  width: 100%;
  height: 180px;
  border-radius: 12px;
  border: 1px solid #d3ddf0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.media-a {
  background-image: url("assets/portfolio/territory-forecast.svg");
}

.media-b {
  background-image: url("assets/portfolio/virtual-recruitment.svg");
}

.media-c {
  background-image: url("assets/portfolio/garn-digital.svg");
}

.project-topline {
  margin-top: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: baseline;
}

.project-topline h3 {
  font-size: 1.05rem;
}

.project-topline span,
.timeline-meta {
  color: #5f7190;
  font-size: 0.9rem;
}

.project-card p {
  margin-top: 0.4rem;
  color: var(--muted);
}

.stack-list {
  margin-top: 0.65rem;
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-actions {
  margin-top: 0.82rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.project-actions a {
  color: #0a66c2;
  font-weight: 700;
  font-size: 0.92rem;
  transition: color 150ms ease;
}

.project-actions a:hover {
  color: #1a44a8;
  text-decoration: underline;
}

/* Brands section */
.brands-section .section-head h2,
.brands-section-inner .section-head h2 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.brands-section-inner {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  justify-items: center;
  gap: 1.75rem 1.25rem;
  padding: 1rem 0 0.5rem;
}

a.brand-item {
  text-decoration: none;
  color: inherit;
}

.brand-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  opacity: 0.55;
  transition: opacity 250ms ease;
  width: 100%;
  cursor: pointer;
}

.brand-item:hover {
  opacity: 1;
}

.brand-logo {
  height: 38px;
  width: 100%;
  max-width: 130px;
  object-fit: contain;
  display: block;
}

.brand-gcsu .brand-logo,
.brand-garn .brand-logo {
  height: 48px;
  max-width: 160px;
}

.brand-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
}

.freelance-logos {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #d3ddf0;
  margin-left: calc(-74px - 0.8rem - 0.9rem + 20px);
  margin-right: calc(-0.9rem + 20px);
}

.freelance-logos .brand-item {
  cursor: default;
  width: auto;
}

/* GARN showcase */
.garn-showcase {
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.garn-showcase-redesign {
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.garn-showcase-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.garn-showcase-item img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
  object-fit: cover;
  object-position: top;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  transition: opacity 150ms ease;
  background: #fff;
}

.garn-showcase-item img:hover {
  opacity: 0.85;
}

.garn-showcase-redesign .garn-showcase-item img {
  aspect-ratio: 4 / 3;
}

.garn-showcase-redesign .garn-showcase-logo img {
  object-fit: contain;
  object-position: center center;
  background: #fff;
  padding: 1rem;
}

.garn-showcase-web img {
  object-fit: cover;
  object-position: top;
}

.garn-showcase-web a {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.garn-showcase-web a:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(10, 102, 194, 0.12);
}

.garn-showcase-web a img {
  border: none;
  border-radius: 0;
  height: 100%;
}

.garn-showcase-ppt img {
  object-fit: cover;
  object-position: top;
}

.garn-site-card {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: linear-gradient(160deg, #fdf6ee, #f7ede0);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.garn-site-card:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(10, 102, 194, 0.1);
}

.garn-site-card-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.garn-site-card-url {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--fg);
}

.garn-site-card-cta {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
}

.garn-showcase-item-wide {
  grid-column: 1 / -1;
}

.garn-site-preview {
  display: block;
  position: relative;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.garn-site-preview:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(10, 102, 194, 0.12);
}

.garn-site-preview-gif {
  width: 100%;
  display: block;
  border-radius: 8px;
}

.garn-site-preview-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem 1rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  opacity: 0;
  transition: opacity 200ms ease;
}

.garn-site-preview:hover .garn-site-preview-overlay {
  opacity: 1;
}

.garn-showcase-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
}

.garn-showcase-label a {
  color: var(--primary);
  text-decoration: none;
}

.garn-showcase-label a:hover {
  text-decoration: underline;
}

/* Email samples row */
.email-carousel {
  margin-top: 0.75rem;
  position: relative;
  overflow: hidden;
}

.email-carousel-track {
  display: grid;
  grid-template-columns: repeat(6, calc((100% - 1.5rem) / 4));
  gap: 0.5rem;
  transition: transform 350ms ease;
}

.email-carousel-track img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
  object-fit: cover;
  object-position: top;
  aspect-ratio: 3 / 4;
  cursor: pointer;
  transition: opacity 150ms ease;
}

.email-carousel-track img:hover {
  opacity: 0.85;
}

.email-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--panel-strong);
  color: var(--fg);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  z-index: 2;
  transition: opacity 200ms ease;
}

.email-carousel-btn:hover {
  background: var(--primary-soft);
}

.email-carousel-btn.hidden {
  opacity: 0;
  pointer-events: none;
}

.email-carousel-prev {
  left: 4px;
}

.email-carousel-next {
  right: 4px;
}

/* Freelance Design grid */
.freelance-divider {
  border: none;
  border-top: 1px solid #d3ddf0;
  margin: 1rem calc(-0.9rem + 20px) 1rem calc(-74px - 0.8rem - 0.9rem + 20px);
}

.freelance-heading {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--fg);
  text-align: center;
  margin-left: calc(-74px - 0.8rem - 0.9rem + 20px);
  margin-right: calc(-0.9rem + 20px);
}

.freelance-grid {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-left: calc(-74px - 0.8rem - 0.9rem + 20px);
  margin-right: calc(-0.9rem + 20px);
}

.freelance-grid img {
  width: 140px;
  border-radius: 8px;
  border: 1px solid var(--border);
  object-fit: cover;
  aspect-ratio: 3 / 4;
  cursor: pointer;
  transition: opacity 150ms ease;
}

.freelance-grid img:nth-child(2) {
  aspect-ratio: auto;
  width: auto;
  max-height: 187px;
}

.freelance-grid img:hover {
  opacity: 0.85;
}

/* Forecast grid */
.forecast-grid {
  margin-top: 0.75rem;
  display: flex;
  gap: 0.35rem;
  align-items: flex-start;
}

.forecast-grid img {
  height: 160px;
  width: auto;
  border-radius: 6px;
  border: 1px solid var(--border);
  object-fit: cover;
  cursor: pointer;
  transition: opacity 150ms ease;
  flex-shrink: 1;
  min-width: 0;
}

.forecast-grid img:hover {
  opacity: 0.85;
}

/* Honors grid */
.honors-grid {
  margin-top: 0.75rem;
  display: flex;
  gap: 0.35rem;
  align-items: flex-start;
}

.honors-grid img {
  height: 160px;
  flex: 1 1 0;
  border-radius: 6px;
  border: 1px solid var(--border);
  object-fit: cover;
  cursor: pointer;
  transition: opacity 150ms ease;
  min-width: 0;
}

.honors-grid img:hover {
  opacity: 0.85;
}

.data-disclaimer {
  margin-top: 0.5rem;
  font-size: 0.78rem;
  font-style: italic;
  color: var(--muted);
}

/* Design Carousel */
.design-carousel {
  margin-top: 0.75rem;
  position: relative;
  overflow: hidden;
}

.design-carousel-track {
  display: grid;
  grid-template-columns: repeat(6, calc((100% - 1rem) / 3));
  gap: 0.5rem;
  transition: transform 350ms ease;
}

.design-carousel-track img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
  object-fit: cover;
  aspect-ratio: 16 / 10;
  cursor: pointer;
  transition: opacity 150ms ease;
}

.design-carousel-track img:hover {
  opacity: 0.85;
}

.design-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--panel-strong);
  color: var(--fg);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  z-index: 2;
  transition: opacity 200ms ease;
}

.design-carousel-btn:hover {
  background: var(--primary-soft);
}

.design-carousel-btn.hidden {
  opacity: 0;
  pointer-events: none;
}

.design-carousel-prev {
  left: 4px;
}

.design-carousel-next {
  right: 4px;
}

/* Virtual Events Carousel */
.virtual-carousel {
  margin-top: 0.75rem;
  position: relative;
  overflow: hidden;
}

.virtual-carousel-track {
  display: grid;
  grid-template-columns: repeat(5, calc((100% - 1rem) / 3));
  gap: 0.5rem;
  transition: transform 350ms ease;
}

.virtual-carousel-track img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
  object-fit: cover;
  aspect-ratio: 16 / 10;
  cursor: pointer;
  transition: opacity 150ms ease;
}

.virtual-carousel-track img:hover {
  opacity: 0.85;
}

.virtual-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--panel-strong);
  color: var(--fg);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  z-index: 2;
  transition: opacity 200ms ease;
}

.virtual-carousel-btn:hover {
  background: var(--primary-soft);
}

.virtual-carousel-btn.hidden {
  opacity: 0;
  pointer-events: none;
}

.virtual-carousel-prev {
  left: 4px;
}

.virtual-carousel-next {
  right: 4px;
}

/* Lightbox */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.8);
  align-items: center;
  justify-content: center;
  padding: 2rem;
  cursor: pointer;
}

.lightbox-overlay.is-open {
  display: flex;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  transition: background 150ms ease;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.15);
}

.stacked-list {
  margin-top: 0.6rem;
  padding-left: 1rem;
  color: var(--muted);
  display: grid;
  gap: 0.35rem;
}

.timeline {
  margin-top: 1rem;
  display: grid;
  gap: 0.8rem;
}

.timeline-item {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  padding: 0.9rem;
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 0.8rem;
}

.logo-badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  overflow: hidden;
  padding: 0;
}

.org-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
}

.logo-badge-gcsu {
  background: transparent;
}

.logo-badge-gt {
  background: transparent;
}

.org-logo-garn {
  object-fit: cover;
  border-radius: 50%;
  object-position: center;
}

.org-logo-text {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--muted);
  background: var(--border);
  border-radius: 50%;
}

.org-logo-gcsu {
  width: 78%;
  height: 78%;
  object-position: center;
}

.org-logo-gatech {
  width: 78%;
  height: 78%;
  object-position: center;
}

.timeline-item h3 {
  font-size: 1rem;
}

.position-block h4 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.96rem;
  line-height: 1.25;
}

.position-block .timeline-meta {
  margin-top: 0.2rem;
}

.position-divider {
  height: 1px;
  border-radius: 1px;
  background: #d3ddf0;
  margin: 0.85rem calc(-0.9rem + 20px) 0.85rem calc(-74px - 0.8rem - 0.9rem + 20px);
}

.timeline-item ul {
  margin-top: 0.45rem;
  padding-left: 1rem;
  color: var(--muted);
  display: grid;
  gap: 0.35rem;
}

.contact-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(125deg, #ffffff, #f3f7ff);
}

.contact-card p:last-of-type {
  margin-top: 0.55rem;
  color: var(--muted);
  max-width: 56ch;
}

.cta {
  white-space: nowrap;
  border-radius: 12px;
  border: 1px solid #b6ccff;
  background: #0a66c2;
  color: #fff;
  padding: 0.72rem 0.95rem;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(10, 102, 194, 0.1);
  transition: background 150ms ease, box-shadow 150ms ease;
}

.cta:hover {
  background: #2559d4;
  box-shadow: 0 3px 8px rgba(10, 102, 194, 0.14);
}

@media (max-width: 1024px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .sidebar {
    position: static;
    height: auto;
    overflow: hidden;
    flex-direction: column;
    min-width: 0;
  }

  .content-column {
    min-width: 0;
  }

  .identity-panel {
    flex: 0 0 auto;
    min-height: auto;
    overflow: visible;
  }

  .identity-panel h1 {
    white-space: normal;
  }

  .nav-panel {
    flex: 0 0 auto;
    min-height: auto;
    overflow: visible;
  }

  .section-card {
    scroll-margin-top: 0.5rem;
  }
}

@media (max-width: 760px) {
  .identity-panel h1 {
    white-space: normal;
  }

  .section-card {
    overflow: hidden;
  }

  .timeline-item {
    overflow: hidden;
  }

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

  .impact-hero {
    grid-template-columns: 1fr;
  }

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

  /* Brands grid — 2 cols on tablet */
  .brands-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem 1rem;
  }

  /* GARN showcase — stack to 1 col */
  .garn-showcase,
  .garn-showcase-redesign {
    grid-template-columns: 1fr;
  }

  /* Image grids — wrap into 2x2 */
  .forecast-grid,
  .honors-grid {
    flex-wrap: wrap;
  }

  .forecast-grid img,
  .honors-grid img {
    flex: 1 1 45%;
    height: auto;
  }

  /* Freelance grid — wrap and resize */
  .freelance-grid {
    flex-wrap: wrap;
    margin-left: 0;
    margin-right: 0;
  }

  .freelance-grid img {
    width: 120px;
  }

  .freelance-grid img:nth-child(2) {
    max-height: 160px;
  }

  /* Reset negative margins when timeline collapses to 1 column */
  .timeline-item {
    grid-template-columns: 1fr;
  }

  .org-logo-col {
    display: none;
  }

  .logo-badge {
    display: none;
  }

  .position-divider {
    margin: 0.85rem 0;
  }

  .freelance-logos {
    margin-left: 0;
    margin-right: 0;
  }

  .freelance-divider {
    margin-left: 0;
    margin-right: 0;
  }

  .freelance-heading {
    margin-left: 0;
    margin-right: 0;
  }

  /* Carousels — show 2 at a time */
  .email-carousel-track {
    grid-template-columns: repeat(6, calc((100% - 0.5rem) / 2));
  }

  .design-carousel-track {
    grid-template-columns: repeat(6, calc((100% - 0.5rem) / 2));
  }

  .virtual-carousel-track {
    grid-template-columns: repeat(5, calc((100% - 0.5rem) / 2));
  }

  .contact-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  /* Portrait smaller on phones */
  .portrait {
    width: 120px;
    height: 120px;
  }

  .identity-panel h1 {
    font-size: 1.15rem;
  }

  .section-card {
    padding: 0.85rem;
  }

  /* Image grids — fully stack */
  .forecast-grid,
  .honors-grid {
    flex-direction: column;
  }

  .forecast-grid img,
  .honors-grid img {
    flex: 1 1 auto;
    width: 100%;
    height: auto;
  }

  /* Freelance grid — stack fully */
  .freelance-grid {
    flex-direction: column;
    align-items: center;
  }

  .freelance-grid img {
    width: 100%;
    max-width: 260px;
  }

  .freelance-grid img:nth-child(2) {
    max-height: none;
    width: 100%;
    max-width: 260px;
  }

  /* Brands grid — 2 cols on phone */
  .brands-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 0.75rem;
  }

  /* Carousels — show 1 at a time */
  .email-carousel-track {
    grid-template-columns: repeat(6, 100%);
  }

  .design-carousel-track {
    grid-template-columns: repeat(6, 100%);
  }

  .virtual-carousel-track {
    grid-template-columns: repeat(5, 100%);
  }

  /* Growth panel cards */
  .growth-sparkline {
    height: 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.from-left,
  .reveal.from-right,
  .reveal.fx-pop,
  .reveal.fx-tilt,
  .reveal.fx-clip {
    opacity: 1;
    transform: none;
    filter: none;
    clip-path: none;
    transition: none;
  }
}
