/* ============================================================
   Ritika Sharma — case study 01 · Marketing website for CamPulse

   Type scale, column widths and vertical rhythm are lifted from the
   1400px-wide design file: a 1160px content column on 120px margins,
   a 354px numbered heading rail, prose starting on the 474px line.
   ============================================================ */

:root {
  --ink:       #171717;   /* headings                        */
  --body:      #525252;   /* section prose                   */
  --muted:     #737373;   /* rationale copy under decisions  */
  --line:      #eaeaea;   /* section dividers                */
  --paper:     #ffffff;
  --tint:      #ecf5ff;   /* pale blue plate behind visuals  */
  --blue:      #1d4ed8;   /* CTA                             */
  --blue-deep: #2b3a55;   /* serif card headlines            */
  --rose:      #ffb6b6;   /* challenge bullets               */
  --indigo:    #7d9eff;   /* lessons bullets                 */

  --dark-2:    #2b2b2b;   /* footer plate, same as the landing page */

  --nav-h: 62px;
  --rail:  354px;         /* numbered heading column + gutter */
  --head-w: 325px;        /* the heading text box itself      */

  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Playfair Display', 'Iowan Old Style', Georgia, serif;
  --font-mono:  'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }

.arr { font-size: .85em; }

/* 1160px of content plus the gutters, so the column lands on the same
   120px margins the design file uses at 1400px wide */
.wrap {
  max-width: 1208px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─────────────────────────  NAV  ─────────────────────────
   Identical to the landing page bar: same frosted glass, same
   sizes, same hover behaviour — only the links point back home. */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 22px;
  background: rgba(16, 16, 16, .66);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
          backdrop-filter: blur(28px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, .10);
  box-shadow: 0 6px 30px rgba(0, 0, 0, .18);
  color: #fff;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
}

.nav__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
}

.nav__links {
  display: flex;
  gap: 34px;
  font-size: 13.5px;
  font-weight: 400;
  color: #eaeaea;
}

.nav__links a { opacity: .85; transition: opacity .2s; }
.nav__links a:hover { opacity: 1; }

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  background: #fff;
  color: #111;
  font-size: 12.5px;
  font-weight: 500;
  transition: transform .2s, box-shadow .2s;
}
.nav__cta:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,.35); }

/* ─────────────────────────  HERO  ───────────────────────── */
.hero { padding: calc(var(--nav-h) + 68px) 0 0; }

.hero__title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(30px, 4.5vw, 63px);
  line-height: 1.06;
  text-transform: uppercase;
}

/* four labelled columns, widths taken from the design file */
.meta {
  display: grid;
  grid-template-columns: 241px 241px 311px 1fr;
  margin: 58px 0 0;
}

.meta__col { min-width: 0; }

.meta dt {
  margin: 0 0 11px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.35;
  text-transform: uppercase;
  color: var(--body);
}

.meta dd {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
  color: var(--ink);
}

.hero__shot {
  margin: 66px 0 0;
  border-radius: 16px;
  overflow: hidden;
  background: var(--tint);
  box-shadow: 0 18px 44px rgba(19, 19, 19, .12);
}

.hero__shot img { width: 100%; }

.hero__cta { margin: 38px 0 0; text-align: center; }

/* the portfolio's own accent blue at full strength — same colour and
   corner as the landing page buttons, but filled so it carries the
   eye down the page after the hero image */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 16px 30px;
  border-radius: 10px;
  background: #2f6bff;
  color: #fff;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.35;
  box-shadow: 0 10px 26px rgba(47, 107, 255, .30);
  transition: background .2s, transform .2s, box-shadow .2s;
}
.btn-primary:hover {
  background: #1f57e0;
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(47, 107, 255, .38);
}

/* ───────────────────  SECTION SCAFFOLD  ───────────────────
   Every numbered section shares one grid: a 354px rail holding the
   numbered heading, then prose on a fixed line. The heading hangs
   its number into the left margin, so wrapped lines sit under the
   first word rather than under the number.                      */
.sec {
  padding: 76px 0 82px;
  border-top: 1px solid var(--line);
}

.sec--first { border-top: 0; padding-top: 71px; }
.sec--last  { padding-bottom: 106px; }

.sec__grid {
  display: grid;
  grid-template-columns: var(--rail) 1fr;
  align-items: start;
}

.sec__head {
  width: var(--head-w);
  margin: 0;
  text-align: left;
  font-size: 28px;
  font-weight: 600;
  line-height: 45px;
  color: var(--ink);
}

.sec__body { min-width: 0; }

.sec__body > p {
  margin: 0 0 20px;
  font-size: 18px;
  line-height: 28px;
  color: var(--body);
}
.sec__body > p:last-child { margin-bottom: 0; }
.sec__body strong { font-weight: 600; color: var(--ink); }

/* ─────────────────────  BULLET LISTS  ───────────────────── */
.bullets {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bullets li { position: relative; }
.bullets li::before {
  content: "";
  position: absolute;
  border-radius: 50%;
}

/* the challenge list: 20px rose dots on the 474px line */
.bullets--rose li {
  padding-left: 40px;
  margin-bottom: 21px;
}
.bullets--rose li:last-child { margin-bottom: 0; }
.bullets--rose li::before {
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  background: var(--rose);
}

.bullets--rose h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 30px;
  color: var(--ink);
}

.bullets--rose p {
  margin: 0;
  font-size: 18px;
  line-height: 28px;
  color: var(--body);
}

/* the lessons / next-steps lists: 16px indigo dots inside the cards */
.bullets--indigo li {
  padding-left: 30px;
  margin-bottom: 22px;
}
.bullets--indigo li:last-child { margin-bottom: 0; }
.bullets--indigo li::before {
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  background: var(--indigo);
}

.bullets--indigo h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 32px;
  color: var(--ink);
}

.bullets--indigo p {
  margin: 0;
  font-size: 18px;
  line-height: 24px;
  color: var(--body);
}

/* ───────────────────  RESEARCH MATRIX  ─────────────────── */
.matrix-scroll {
  margin-top: 43px;
  overflow-x: auto;
  border-radius: 18px;
}

.matrix {
  min-width: 900px;
  background: #161c26;
  border-radius: 18px;
  box-shadow: 0 26px 60px rgba(15, 23, 42, .20);
  overflow: hidden;
}

.matrix__row {
  display: grid;
  grid-template-columns: 31.81% 32.16% 36.03%;
}

.matrix__row > div {
  display: flex;
  gap: 7px;
  min-height: 93px;
  padding: 30px 0 24px 30px;
  font-size: 13.7px;
  line-height: 23px;
  color: #99a1af;
}

/* the strategy column stops short of the card edge, as in the design */
.matrix__row > div:last-child { padding-right: 48px; }

.matrix__row + .matrix__row > div { border-top: 1px solid rgba(255, 255, 255, .055); }

.matrix__row--head > div {
  min-height: 0;
  padding: 20px 24px 20px 27px;
  background: #1d212c;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #6b7280;
}
.matrix__row--head .is-blue { color: #4e9af1; }

.matrix__row .is-strong { color: #f4f6f9; }

.ic {
  flex: none;
  width: 16px;
  font-size: 15px;
  line-height: 23px;
}
.ic--x     { color: #ef4444; }
.ic--check { color: #34d399; }
.ic--arrow { color: #4e9af1; }

/* Below the width the three columns need, the matrix stops being a
   table and becomes a stack: each row is one block, and every cell
   carries its own column label so the comparison still reads. */
@media (max-width: 940px) {
  .matrix-scroll { overflow-x: visible; }
  .matrix { min-width: 0; }

  .matrix__row--head { display: none; }

  .matrix__row { grid-template-columns: 1fr; padding: 8px 0; }
  .matrix__row + .matrix__row { border-top: 1px solid rgba(255, 255, 255, .10); }

  /* the label is lifted out of the flex row so icon + copy keep
     sitting side by side with the same hanging alignment */
  .matrix__row > div,
  .matrix__row > div:last-child {
    position: relative;
    min-height: 0;
    padding: 45px 24px 18px;
    border-top: 0;
  }

  .matrix__row > div::before {
    content: attr(data-label);
    position: absolute;
    top: 18px;
    left: 24px;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #6b7280;
  }
  .matrix__row > div:last-child::before { color: #4e9af1; }
}

/* ─────────────  FULL-WIDTH VISUAL PLATES  ───────────── */
.shot {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(19, 19, 19, .12);
}

.shot img { width: 100%; }

.shot--tint { margin-top: 45px; }

/* ─────────────────  KEY DESIGN DECISIONS  ───────────────── */
.decision {
  margin-top: 122px;
  text-align: center;
}

.decision:first-child { margin-top: 139px; }

.decision h3 {
  max-width: 980px;
  margin: 0 auto 29px;
  font-size: 30px;
  font-weight: 700;
  line-height: 36px;
  color: var(--ink);
}

.decision > p {
  max-width: 960px;
  margin: 0 auto;
  font-size: 20px;
  line-height: 24px;
  color: var(--muted);
}

.decision > p strong { font-weight: 600; color: var(--ink); }

.decision .shot { margin-top: 39px; }

/* ─────────────────────  IMPACT CARDS  ───────────────────── */
.impact {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 54px;
}

.icard {
  position: relative;
  overflow: hidden;
  min-height: 341px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 30px;
  padding: 33px 12px 27px 30px;
  border: 1px solid #f0f0f0;
  border-radius: 16px;
  background: var(--paper);
}

/* every second card sits on a light plate, as in the design file */
.icard:nth-child(even) { background: #f6f6f6; }

/* the pale "C" watermark tucked into the top-right corner */
.icard::after {
  content: "";
  position: absolute;
  top: -30px;
  right: -34px;
  width: 112px;
  height: 112px;
  border: 20px solid #dfe8ff;
  border-right-color: transparent;
  border-radius: 50%;
  transform: rotate(-38deg);
  opacity: .8;
}

/* the headline breaks a word earlier than the body copy does */
.icard h3 {
  position: relative;
  z-index: 1;
  max-width: 192px;
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 25px;
  line-height: 36px;
  color: var(--blue-deep);
}

.icard p {
  margin: 0;
  font-size: 18px;
  line-height: 24px;
  color: #262626;
}

/* ──────────────  LESSONS LEARNED / NEXT STEPS  ────────────── */
.lessons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 54px;
}

.lcard {
  min-height: 365px;
  padding: 33px 30px 30px;
  border: 1px solid #f0f0f0;
  border-radius: 16px;
  background: var(--paper);
}

.lcard h3 {
  margin: 0 0 29px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 24px;
  line-height: 29px;
  color: var(--blue-deep);
}

/* ─────────────────────────  FOOTER  ─────────────────────────
   Identical to the landing page footer.                        */
.footer {
  background: var(--dark-2);
  color: #f2f2f2;
  text-align: center;
  padding: 46px 24px 26px;
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
}

.footer__title {
  margin: 16px auto 14px;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(21px, 2.8vw, 30px);
  line-height: 1.3;
  letter-spacing: .01em;
}

.footer__copy {
  margin: 0 0 26px;
  font-size: 12.5px;
  color: #b9b9b9;
}
.footer__copy a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.socials { display: flex; justify-content: center; gap: 12px; }

.socials a {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #efefef;
  color: #1c1c1c;
  transition: transform .2s, background .2s;
}
.socials a:hover { background: #fff; transform: translateY(-2px); }

.socials svg { width: 17px; height: 17px; }

.footer__legal {
  margin: 30px 0 0;
  font-size: 10.5px;
  color: #8a8a8a;
}

/* ─────────────────────────  RESPONSIVE  ───────────────────────── */

@media (max-width: 1240px) {
  :root { --rail: 310px; --head-w: 290px; }
  .meta { grid-template-columns: repeat(4, 1fr); column-gap: 20px; }
  .decision { margin-top: 100px; }
  .decision:first-child { margin-top: 112px; }
}

@media (max-width: 1000px) {
  .sec__grid { grid-template-columns: 1fr; gap: 24px; }
  .sec__head { width: auto; line-height: 1.3; }

  .impact { grid-template-columns: repeat(2, 1fr); }
  .icard { min-height: 300px; }
}

@media (max-width: 860px) {
  .nav { padding: 0 16px; }
  .nav__links { gap: 20px; font-size: 12.5px; }
  .nav__cta { padding: 8px 13px; font-size: 12px; }

  .hero { padding-top: calc(var(--nav-h) + 42px); }
  .meta { grid-template-columns: repeat(2, 1fr); gap: 26px 20px; margin-top: 44px; }
  .hero__shot { margin-top: 48px; }

  .sec { padding: 56px 0 62px; }
  .sec--first { padding-top: 52px; }
  .sec__head { font-size: 24px; }

  .sec__body > p, .bullets--rose p, .bullets--indigo p { font-size: 17px; line-height: 27px; }

  .matrix-scroll { margin-top: 36px; }
  .shot--tint { margin-top: 36px; }

  .decision { margin-top: 76px; }
  .decision:first-child { margin-top: 84px; }
  .decision h3 { font-size: 24px; line-height: 32px; margin-bottom: 22px; }
  .decision > p { font-size: 17px; line-height: 26px; }
  .decision .shot { margin-top: 30px; }

  .impact, .lessons { margin-top: 40px; }
  .lessons { grid-template-columns: 1fr; }
  .lcard { min-height: 0; padding: 28px 26px 30px; }
}

@media (max-width: 620px) {
  :root { --nav-h: 56px; }

  .nav__brand span { display: none; }
  .nav__links { gap: 15px; font-size: 12px; }
  .nav__cta { padding: 7px 11px; font-size: 11.5px; }

  .hero__title { font-size: 30px; line-height: 1.14; }
  .btn-primary { padding: 14px 24px; font-size: 14.5px; }
  .meta { grid-template-columns: 1fr; gap: 20px; }
  .meta dt { font-size: 13px; margin-bottom: 6px; }
  .meta dd { font-size: 16px; }

  .sec__head { font-size: 22px; }
  .sec__body > p, .bullets--rose p, .bullets--indigo p { font-size: 16px; line-height: 26px; }
  .bullets--rose li { padding-left: 30px; }
  .bullets--rose li::before { width: 15px; height: 15px; top: 5px; }
  .bullets--rose h3 { font-size: 18px; line-height: 27px; }

  .matrix__row > div,
  .matrix__row > div:last-child { padding: 42px 20px 16px; font-size: 15px; line-height: 24px; }
  .matrix__row > div::before { top: 16px; left: 20px; }
  .matrix .ic { line-height: 24px; }

  .impact { grid-template-columns: 1fr; }
  .icard { min-height: 0; gap: 22px; padding: 26px 24px 28px; }
  .icard h3 { max-width: none; font-size: 22px; line-height: 31px; }
  .icard p { font-size: 16px; }

  .decision h3 { font-size: 21px; line-height: 29px; }
  .decision > p { font-size: 16px; line-height: 25px; }

  .footer { padding: 38px 20px 22px; }
  .footer__copy { font-size: 12px; line-height: 1.7; }
}

/* ── small phones ────────────────────────────────────────────── */
@media (max-width: 420px) {
  .nav { padding: 0 12px; }
  .nav__links { gap: 11px; font-size: 11px; }
  .nav__cta { padding: 6px 9px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
