:root {
  --blue: #359fc1;
  --blue-deep: #128cb3;
  --blue-soft: #eaf6fa;
  --ink: #111827;
  --ink-2: #1f2937;
  --muted: #5b6577;
  --faint: #8b93a4;
  --line: #e6eaf1;
  --bg: #ffffff;
  --paper: #ffffff;
  --wash: #f6f7fb;
  --wash-2: #eef2fb;
  --shadow: 0 24px 60px rgba(31, 41, 55, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 82% 4%, rgba(53,159,193,.10), transparent 32rem),
    var(--bg);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  line-height: 1.6;
}

a { color: inherit; }
.shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }

/* ----- Portfolio header: matched to index.html ----- */
.wrap {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 76px;
  background: rgba(246, 247, 251, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav {
  height: 76px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo img {
  height: 60px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 2px;
  margin-left: auto;
}

.nav-links a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 11px;
  border-radius: 999px;
  position: relative;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--blue);
}

.nav-links a.is-active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 3px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 12px;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: .2s transform, .2s background, .2s border-color;
  text-decoration: none;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 18px rgba(31,111,235,.20);
}

.btn-primary:hover { background: var(--blue-deep); }

#nav-toggle { display: none; }

.menu-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 0;
  color: var(--ink);
  font-size: 22px;
  cursor: pointer;
}

/* ----- Hero ----- */
.hero {
  min-height: 610px;
  display: grid;
  grid-template-columns: 1.55fr .75fr;
  gap: 72px;
  align-items: center;
  padding-block: 88px 78px;
}

.eyebrow {
  color: var(--blue);
  font-size: .75rem;
  letter-spacing: .18em;
  font-weight: 800;
  margin: 0 0 14px;
}

h1, h2, p { margin-top: 0; }

h1 {
  font-size: clamp(3rem, 6.2vw, 5.8rem);
  line-height: .97;
  letter-spacing: -.055em;
  margin-bottom: 28px;
  max-width: 900px;
}

h1 span {
  color: #556176;
  font-weight: 600;
}

.lede {
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  line-height: 1.75;
  max-width: 760px;
  margin-bottom: 32px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chips span {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 13px;
  color: #3d4a63;
  font-size: .78rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(31,41,55,.035);
}

.hero-card {
  background: linear-gradient(160deg, #ffffff, #f5fbfd);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 30px;
  box-shadow: var(--shadow);
}

.card-kicker {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .16em;
}

.metric {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: start;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.metric strong {
  color: var(--blue);
  font-size: .78rem;
  letter-spacing: .1em;
}

.metric span {
  color: var(--ink-2);
  font-weight: 650;
  line-height: 1.45;
}

/* ----- Scrollable project preview ----- */
.preview-section {
  padding: 84px 0 70px;
  background: var(--wash);
  border-block: 1px solid var(--line);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
  margin-bottom: 28px;
}

.section-heading h2,
.details h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: -.04em;
  line-height: 1.08;
}

.preview-note {
  color: var(--muted);
  max-width: 450px;
  margin: 0;
  font-size: .95rem;
}

.browser-frame {
  border: 1px solid #d8dee8;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 28px 70px rgba(31,41,55,.14);
}

.browser-bar {
  height: 52px;
  background: #eef2f7;
  display: grid;
  grid-template-columns: 100px 1fr 100px;
  align-items: center;
  padding: 0 18px;
  border-bottom: 1px solid #dfe4ec;
}

.dots {
  display: flex;
  gap: 7px;
}

.dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #a9b3c2;
}

.dots i:nth-child(2) { opacity: .72; }
.dots i:nth-child(3) { opacity: .46; }

.address {
  justify-self: center;
  min-width: 300px;
  max-width: 560px;
  width: 62%;
  padding: 6px 14px;
  border-radius: 7px;
  background: #fff;
  border: 1px solid #dfe4ec;
  text-align: center;
  color: #6b7688;
  font-size: .75rem;
}

.browser-frame iframe {
  display: block;
  width: 100%;
  height: 720px;
  border: 0;
  background: #fff;
}

.scroll-hint {
  text-align: center;
  margin: 16px 0 0;
  color: var(--faint);
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ----- Case-study details ----- */
.details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px 80px;
  padding-block: 110px;
}

.details article {
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.details article p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.03rem;
  max-width: 560px;
}

.details .wide { grid-column: 1 / -1; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 34px;
}

.feature-grid div {
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  min-height: 175px;
  box-shadow: 0 8px 24px rgba(31,41,55,.04);
}

.feature-grid strong {
  display: block;
  margin-bottom: 12px;
  font-size: .98rem;
  color: var(--ink);
}

.feature-grid span {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.6;
}

/* ----- Takeaway ----- */
.takeaway {
  border-top: 1px solid var(--line);
  background: linear-gradient(110deg, #eef8fb, #f7f9fc);
}

.takeaway-inner { padding-block: 86px; }

blockquote {
  margin: 0;
  max-width: 980px;
  font-size: clamp(1.5rem, 3.5vw, 2.65rem);
  line-height: 1.38;
  letter-spacing: -.025em;
  color: #29364a;
  font-weight: 520;
}

/* ----- Footer ----- */
footer {
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--faint);
  font-size: .78rem;
}

.footer-inner {
  min-height: 86px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

/* ----- Responsive ----- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .menu-toggle { display: block; }

  #nav-toggle:checked ~ .nav .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 12px 20px 16px;
    z-index: 60;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 42px;
    min-height: auto;
    padding-block: 72px;
  }

  .hero-card { max-width: 650px; }
  .section-heading { display: block; }
  .preview-note { margin-top: 16px; }
  .browser-frame iframe { height: 640px; }

  .details {
    grid-template-columns: 1fr;
    gap: 50px;
    padding-block: 78px;
  }

  .details .wide { grid-column: auto; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .shell { width: min(100% - 28px, 1180px); }
  .wrap { width: min(1180px, calc(100% - 28px)); }

  .hero { padding-block: 58px; }
  h1 { font-size: clamp(2.65rem, 13vw, 4rem); }

  .preview-section { padding-block: 58px; }

  .browser-bar {
    grid-template-columns: 72px 1fr;
    padding: 0 12px;
  }

  .browser-spacer { display: none; }

  .address {
    min-width: 0;
    width: 100%;
    font-size: .68rem;
  }

  .browser-frame iframe { height: 570px; }
  .feature-grid { grid-template-columns: 1fr; }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-block: 24px;
  }
}


/* =========================================================
   PHOTO MANAGEMENT / LIGHTROOM CASE STUDY
   ========================================================= */
.lightroom-preview-frame {
  background: #0d1218;
}

.case-study-preview-image {
  display: block;
  width: 100%;
  height: auto;
  background: #0d1218;
}

.lightroom-tech-band {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 0 0 94px;
}

.lightroom-tech-inner {
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 38px;
  box-shadow: 0 12px 34px rgba(31,41,55,.05);
}

.lightroom-tech-inner h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  letter-spacing: -.04em;
  line-height: 1.08;
  max-width: 720px;
}

.tech-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 28px 0 20px;
}

.tech-flow span {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 13px;
  color: #3d4a63;
  font-size: .78rem;
  font-weight: 750;
}

.tech-flow b {
  color: var(--blue);
  font-weight: 800;
}

.tech-copy {
  margin: 0;
  color: var(--muted);
  font-size: .93rem;
  max-width: 920px;
}

@media (max-width: 620px) {
  .lightroom-tech-band {
    padding-bottom: 64px;
  }

  .lightroom-tech-inner {
    padding: 26px 20px;
    border-radius: 18px;
  }

  .tech-flow {
    align-items: flex-start;
    flex-direction: column;
  }

  .tech-flow b {
    transform: rotate(90deg);
    margin-left: 18px;
  }
}


/* ----- Projects dropdown ----- */
.nav-dropdown {
  position: relative;
}

.nav-dropdown summary {
  list-style: none;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 11px;
  border-radius: 999px;
  position: relative;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.nav-dropdown summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown summary:hover,
.nav-dropdown[open] summary,
.nav-dropdown.is-active summary {
  color: #359fc1;
}

.nav-dropdown.is-active summary::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 3px;
  height: 2px;
  background: #359fc1;
  border-radius: 2px;
}

.nav-chevron {
  display: inline-block;
  margin-left: 3px;
  font-size: 12px;
  transition: transform .18s ease;
}

.nav-dropdown[open] .nav-chevron {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  width: 285px;
  padding: 9px;
  background: #fff;
  border: 1px solid #e6eaf1;
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(31,41,55,.14);
  z-index: 100;
}

.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  width: 10px;
  height: 10px;
  background: #fff;
  border-left: 1px solid #e6eaf1;
  border-top: 1px solid #e6eaf1;
  transform: translateX(-50%) rotate(45deg);
}

.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 11px;
  border-radius: 9px;
  color: #1f2937;
  font-size: 13px;
  line-height: 1.35;
  text-decoration: none;
}

.nav-dropdown-menu a::after {
  display: none !important;
}

.nav-dropdown-menu a:hover {
  color: #359fc1;
  background: #f3f8fa;
}

.nav-dropdown-menu .nav-dropdown-all {
  margin-bottom: 5px;
  padding-bottom: 11px;
  border-bottom: 1px solid #e6eaf1;
  border-radius: 9px 9px 4px 4px;
  font-weight: 750;
}


@media (max-width: 900px) {
  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown summary {
    display: block;
    width: 100%;
    padding: 9px 11px;
  }

  .nav-dropdown-menu {
    position: static;
    transform: none;
    width: 100%;
    margin: 4px 0 2px;
    padding: 6px 0 4px 12px;
    border: 0;
    border-left: 2px solid #dce5eb;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }

  .nav-dropdown-menu::before {
    display: none;
  }

  .nav-dropdown-menu a {
    padding: 9px 11px;
  }

  .nav-dropdown-menu .nav-dropdown-all {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 9px;
  }
}
