/* ═══════════════════════════════════════════════════
   TOKENS  — change these to restyle the whole site
   ═══════════════════════════════════════════════════ */
:root {
  --bg:          #F2F2F2;   /* light neutral grey, matches reference */
  --text:        #1A1916;   /* near-black */
  --text-muted:  #1A1916;   /* secondary grey */
  --border:      #D4D4D4;   /* divider lines */
  --placeholder: #C8C8C8;   /* grey image boxes */
  --nav-h:       64px;
  --font:        'Poppins', sans-serif;
  --max-w:       1160px;
  --gap:         clamp(1.5rem, 4vw, 3rem);
}

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

html { scroll-padding-top: var(--nav-h); }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.7;
  font-weight: 700;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 3.5rem;   /* clearance for the fixed footer */
}

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

ul { list-style: none; }

/* ═══════════════════════════════════════════════════
   LAYOUT HELPERS
   ═══════════════════════════════════════════════════ */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3.5rem);
}

/* ═══════════════════════════════════════════════════
   NAVIGATION — sticky, minimal
   ═══════════════════════════════════════════════════ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  padding-inline: clamp(1.25rem, 5vw, 3.5rem);
  background: #111110;
  border-bottom: none;
}

.nav-logo {
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #ffffff;
}

.nav nav {
  display: flex;
  gap: clamp(1.25rem, 3vw, 2.5rem);
}

.nav nav a {
  font-size: 0.875rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.nav nav a:hover { color: #ffffff; }

/* ═══════════════════════════════════════════════════
   PLACEHOLDER IMAGE BOXES
   ═══════════════════════════════════════════════════ */
.placeholder-img {
  width: 100%;
  background: var(--placeholder);
  aspect-ratio: 4 / 3;
}

/* ═══════════════════════════════════════════════════
   SECTION COMMON STYLES
   ═══════════════════════════════════════════════════ */
.section {
  padding-block: clamp(4rem, 8vw, 7rem);
  border-top: 1px solid var(--border);
}

.section-header {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

#ci-initiatives {
  border-top: none;
  padding-top: 0;
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.section-label {
  font-size: 1.47rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 2fr;   /* photo ~40%, text ~60% */
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.about-photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  filter: none;
}

.about-bio .section-label {
  display: block;
  margin-bottom: 0.75rem;
}

.bio-headline {
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}

.about-bio p {
  font-weight: 400;
  color: var(--text-muted);
}

.about-bio p + p { margin-top: 1.1rem; }

/* ═══════════════════════════════════════════════════
   PORTFOLIO CAROUSEL
   ═══════════════════════════════════════════════════ */
.portfolio-section {
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin: clamp(2.5rem, 5vw, 4rem) auto 0;
  padding: 0 1.25rem;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: opacity 0.25s ease;
}

.scroll-cue:hover { opacity: 0.6; }

.scroll-cue__arrow {
  font-size: 1.35rem;
  line-height: 1;
  animation: scroll-cue-bob 1.8s ease-in-out infinite;
}

@keyframes scroll-cue-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}

.portfolio-carousel {
  display: flex;
  align-items: stretch;
  width: 100%;
}

.portfolio-viewport {
  flex: 1;
  overflow: hidden;
  min-width: 0;   /* prevents flex from overflowing its container */
}

.portfolio-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding-inline: 2px;
  /* width is set in pixels by JS so the offset calculation is always exact */
}

.project-card .placeholder-img {
  aspect-ratio: 4 / 3;
}

.project-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.project-info {
  padding-top: 1.25rem;
}

.project-info h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.project-info p {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.ci-card {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding-inline: 2px;
}

.ci-img {
  width: 100%;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 8px;
  margin-bottom: 1rem;
  display: block;
}

.ci-card .project-info h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.ci-card .project-info p {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-muted);
}

.project-bullets {
  list-style: disc;
  padding-left: 1.1rem;
  margin-bottom: 0.75rem;
}

.project-bullets li {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.project-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 0.3rem 0.65rem;
  border-radius: 2px;
}

.carousel-btn {
  flex-shrink: 0;
  width: clamp(2.5rem, 4vw, 3.5rem);
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--text);
  cursor: pointer;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn:hover { opacity: 0.5; }

/* ═══════════════════════════════════════════════════
   CONTACTS FORM
   ═══════════════════════════════════════════════════ */
.contact-intro {
  max-width: 680px;
  margin: 0 0 1rem;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-muted);
}

.contact-intro a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-form {
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-group label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 0;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  resize: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
  border-bottom-color: var(--text);
}

.form-submit {
  align-self: flex-start;
  background: #111110;
  color: #ffffff;
  border: none;
  padding: 0.85rem 2.25rem;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s;
}

.form-submit:hover {
  opacity: 0.75;
}

.form-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-result {
  font-size: 0.85rem;
  font-weight: 400;
  min-height: 1.2em;
}

.form-result--ok  { color: #2a7a2a; }
.form-result--err { color: #b00020; }

/* ═══════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════ */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  padding-block: 1rem;
  padding-inline: clamp(1.25rem, 5vw, 3.5rem);
  background: #111110;
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffffff;
}

.footer a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE — tablet (≤ 768px)
   ═══════════════════════════════════════════════════ */
@media (max-width: 768px) {

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

  .about-photo img {
    aspect-ratio: 4 / 3;
    max-height: 400px;
  }

.form-row {
    grid-template-columns: 1fr;
  }

}

/* ═══════════════════════════════════════════════════
   HAMBURGER TOGGLE — hidden on desktop
   ═══════════════════════════════════════════════════ */
.nav-toggle {
  display: none;
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE — mobile (≤ 768px)
   ═══════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* show hamburger, hide inline nav */
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
  }

  .nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #ffffff;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  /* hamburger → X when open */
  .nav--open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav--open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav--open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* dropdown menu */
  .nav nav {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: #111110;
    padding: 1.25rem clamp(1.25rem, 5vw, 3.5rem) 1.75rem;
    gap: 1.25rem;
    z-index: 99;
  }

  .nav--open nav {
    display: flex;
  }

  .nav nav a {
    font-size: 1rem;
  }

}
