/* Calmic Projects page — editorial case-study portfolio */
.projects-page .primary-nav a[aria-current="page"] { color: var(--forest); }
.projects-hero { position: relative; overflow: hidden; color: var(--white); background: var(--forest-deep); isolation: isolate; }
.projects-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .24; background: radial-gradient(ellipse at 80% 18%, rgba(167,205,81,.23), transparent 36%), linear-gradient(142deg, transparent 58%, rgba(255,255,255,.1) 58.1%, transparent 58.3%), linear-gradient(42deg, transparent 77%, rgba(255,255,255,.1) 77.1%, transparent 77.3%); }
.projects-hero-inner { min-height: 600px; padding-block: 88px 78px; display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(60px, 10vw, 145px); align-items: center; position: relative; }
.projects-hero-copy { max-width: 680px; padding-bottom: 38px; }
.projects-hero h1 { margin: 0; color: var(--white); font-size: clamp(58px, 8vw, 102px); line-height: .98; letter-spacing: -.06em; font-weight: 500; }
.projects-hero h1 em { color: var(--lime); font-family: var(--serif); font-weight: 400; letter-spacing: -.045em; }
.projects-hero-lead { max-width: 480px; margin: 24px 0 0; color: rgba(255,255,255,.73); font-size: 15px; line-height: 1.75; }
.projects-hero-panel { width: min(100%, 325px); min-height: 340px; justify-self: end; align-self: center; padding: 29px; position: relative; overflow: hidden; color: var(--forest-deep); background: var(--lime); }
.projects-panel-label { display: block; font-size: 9px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.projects-hero-panel > strong { display: block; position: relative; z-index: 1; margin-top: 40px; font-size: clamp(100px, 12vw, 146px); line-height: .76; letter-spacing: -.1em; font-weight: 600; }
.projects-panel-title { display: block; margin: 20px 0 0 5px; font-size: 12px; font-weight: 700; letter-spacing: .08em; line-height: 1.45; text-transform: uppercase; }
.projects-panel-rule { display: block; width: 100%; height: 1px; margin-top: 21px; background: rgba(16,47,39,.3); }
.projects-hero-panel small { display: block; margin-top: 14px; font-size: 9px; font-weight: 700; letter-spacing: .12em; }
.projects-panel-lines { position: absolute; right: -22px; bottom: -11px; width: 148px; height: 120px; opacity: .12; transform: skewY(-27deg); }
.projects-panel-lines i { display: block; height: 12px; margin-top: 7px; border: 1px solid var(--forest-deep); border-right: 0; }
.projects-hero-foot { position: absolute; left: 0; right: 0; bottom: 25px; display: flex; align-items: center; gap: 14px; color: rgba(255,255,255,.65); font-size: 9px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.projects-intro { padding-block: 104px 63px; }
.projects-intro-grid { margin-top: 29px; display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(40px, 8vw, 110px); align-items: end; }
.projects-intro-grid h2, .project-list-heading h2, .client-section-heading h2, .metrics-heading h2 { margin: 0; font-size: clamp(42px, 5.2vw, 66px); line-height: 1.03; letter-spacing: -.05em; font-weight: 500; }
.projects-intro-grid h2 em, .project-list-heading h2 em, .client-section-heading h2 em, .metrics-heading h2 em { color: #778b6d; font-family: var(--serif); font-weight: 400; letter-spacing: -.035em; }
.projects-intro-grid > p { max-width: 520px; margin: 0 0 5px; color: #68736a; font-size: 13px; line-height: 1.85; }
.project-feature { padding-bottom: 105px; }
.project-feature-card { min-height: 540px; display: grid; grid-template-columns: 1.2fr .8fr; color: var(--white); background: var(--forest); }
.project-feature-main { padding: clamp(30px, 5vw, 62px); }
.project-card-kicker { display: flex; align-items: center; gap: 13px; color: rgba(255,255,255,.68); font-size: 9px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.project-number { width: 30px; height: 30px; display: inline-flex; justify-content: center; align-items: center; flex: 0 0 auto; color: var(--forest-deep); background: var(--lime); border-radius: 50%; font-size: 9px; letter-spacing: 0; }
.project-year { margin-left: auto; color: var(--lime); }
.project-feature-main h2 { margin: 36px 0 20px; font-size: clamp(42px, 5vw, 64px); line-height: 1; letter-spacing: -.05em; font-weight: 500; }
.project-feature-main h2 em { color: var(--lime); font-family: var(--serif); font-weight: 400; }
.project-client-line { margin: 0; color: var(--white); font-size: 11px; font-weight: 600; }
.project-client-line span { margin-right: 9px; color: var(--lime); font-size: 8px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.project-feature-description { max-width: 540px; margin: 19px 0 0; color: rgba(255,255,255,.72); font-size: 12px; line-height: 1.85; }
.project-tags { margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; list-style: none; }
.project-tags li { padding: 8px 10px; color: rgba(255,255,255,.82); border: 1px solid rgba(255,255,255,.25); font-size: 9px; line-height: 1.3; }
.project-meta-row { margin-top: 28px; padding-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 15px; border-top: 1px solid rgba(255,255,255,.2); }
.project-meta-row div > span { display: block; color: rgba(255,255,255,.58); font-size: 8px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.project-meta-row strong { display: block; margin-top: 7px; color: var(--white); font-size: 11px; line-height: 1.5; font-weight: 600; }
.project-feature-stat { min-height: 100%; padding: 40px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; color: var(--forest-deep); background: var(--lime); }
.feature-stat-label { position: relative; z-index: 1; font-size: 9px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.project-feature-stat > strong { position: relative; z-index: 1; margin-top: 28px; font-size: clamp(104px, 12vw, 150px); line-height: .78; letter-spacing: -.1em; font-weight: 600; }
.project-feature-stat > strong span { font-size: .53em; vertical-align: top; letter-spacing: -.08em; }
.feature-stat-unit { position: relative; z-index: 1; margin: 17px 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.feature-stat-caption { position: relative; z-index: 1; margin: 23px 0 0 6px; font-size: 9px; font-weight: 700; line-height: 1.7; letter-spacing: .07em; text-transform: uppercase; }
.feature-stat-diagram { width: 200px; height: 160px; position: absolute; right: -15px; bottom: -15px; opacity: .16; }
.feature-stat-diagram i { width: 12px; height: 12px; position: absolute; z-index: 1; border-radius: 50%; background: var(--forest-deep); }
.feature-stat-diagram i:nth-child(1) { top: 10px; left: 20px; }.feature-stat-diagram i:nth-child(2) { top: 40px; left: 85px; }.feature-stat-diagram i:nth-child(3) { top: 7px; left: 157px; }.feature-stat-diagram i:nth-child(4) { top: 104px; left: 28px; }.feature-stat-diagram i:nth-child(5) { top: 130px; left: 108px; }.feature-stat-diagram i:nth-child(6) { top: 89px; left: 178px; }
.feature-stat-diagram b { height: 1px; position: absolute; transform-origin: left; background: var(--forest-deep); }.feature-stat-diagram b:nth-of-type(1) { top: 18px; left: 30px; width: 73px; transform: rotate(25deg); }.feature-stat-diagram b:nth-of-type(2) { top: 50px; left: 94px; width: 80px; transform: rotate(-24deg); }.feature-stat-diagram b:nth-of-type(3) { top: 50px; left: 90px; width: 77px; transform: rotate(63deg); }.feature-stat-diagram b:nth-of-type(4) { top: 112px; left: 38px; width: 81px; transform: rotate(13deg); }.feature-stat-diagram b:nth-of-type(5) { top: 137px; left: 120px; width: 63px; transform: rotate(-39deg); }
.project-list-section { padding-block: 92px 105px; color: var(--white); background: var(--forest-deep); }
.project-list-heading { margin-top: 30px; display: flex; justify-content: space-between; align-items: end; gap: 35px; }
.project-list-heading h2 em, .metrics-heading h2 em { color: var(--lime); }
.project-list-heading > p { max-width: 340px; margin: 0 0 7px; color: rgba(255,255,255,.65); font-size: 11px; line-height: 1.8; }
.project-grid { margin-top: 45px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid rgba(255,255,255,.19); border-left: 1px solid rgba(255,255,255,.19); }
.project-card { min-height: 390px; padding: 27px; display: flex; flex-direction: column; border-right: 1px solid rgba(255,255,255,.19); border-bottom: 1px solid rgba(255,255,255,.19); }
.project-card .project-card-kicker { justify-content: flex-start; }
.project-card h3 { max-width: 490px; margin: 28px 0 14px; font-size: clamp(22px, 2.5vw, 29px); line-height: 1.15; letter-spacing: -.04em; font-weight: 600; }
.project-card .project-client-line { margin-top: 0; }
.project-card > p:not(.project-client-line) { max-width: 500px; margin: 14px 0 0; color: rgba(255,255,255,.69); font-size: 11px; line-height: 1.8; }
.project-card .project-tags { margin-top: 18px; }
.project-card .project-meta-row { margin-top: auto; padding-top: 18px; }
.project-card .project-meta-row strong { font-size: 10px; }
.project-card-wide { grid-column: 1 / -1; min-height: 300px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 36px; align-items: start; }
.project-card-wide .project-card-kicker, .project-card-wide h3, .project-card-wide .project-client-line { grid-column: 1; }
.project-card-wide > p:not(.project-client-line), .project-card-wide .project-tags, .project-card-wide .project-meta-row { grid-column: 2; }
.project-card-wide h3 { margin-top: 21px; }
.project-card-wide > p:not(.project-client-line) { margin-top: 52px; }
.project-card-wide .project-tags { margin-top: 14px; }
.project-card-wide .project-meta-row { width: 100%; margin-top: auto; align-self: end; }
.client-section { padding-block: 104px 112px; }
.client-section-heading { margin-top: 29px; display: flex; justify-content: space-between; align-items: end; gap: 40px; }
.client-section-heading > p { max-width: 330px; margin: 0 5px 7px 0; color: #68736a; font-size: 11px; line-height: 1.8; }
.client-grid { margin-top: 42px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.client-grid article { min-height: 215px; padding: 23px 21px; background: rgba(255,254,250,.46); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.client-index { color: #74886b; font-size: 9px; font-weight: 700; letter-spacing: .12em; }
.client-grid h3 { margin: 25px 0 9px; font-size: 18px; letter-spacing: -.03em; }
.client-grid p { margin: 0; color: #68736a; font-size: 10px; line-height: 1.8; }
.project-metrics { padding-block: 87px 98px; color: var(--white); background: var(--forest); }
.metrics-heading { margin-top: 29px; display: flex; justify-content: space-between; align-items: end; gap: 36px; }
.metrics-heading > p { max-width: 330px; margin: 0 5px 7px 0; color: rgba(255,255,255,.63); font-size: 10px; line-height: 1.8; }
.metrics-grid { margin-top: 43px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid rgba(255,255,255,.2); border-left: 1px solid rgba(255,255,255,.2); }
.metrics-grid article { min-height: 205px; padding: 21px; border-right: 1px solid rgba(255,255,255,.2); border-bottom: 1px solid rgba(255,255,255,.2); }
.metrics-grid article > strong { color: var(--lime); font-size: clamp(37px, 4.6vw, 58px); line-height: 1; letter-spacing: -.07em; font-weight: 600; }
.metrics-grid article > strong span { font-size: .55em; letter-spacing: -.03em; }
.metrics-grid h3 { margin: 22px 0 7px; font-size: 13px; font-weight: 600; }
.metrics-grid p { margin: 0; color: rgba(255,255,255,.59); font-size: 9px; line-height: 1.7; }
.projects-page .closing-cta { padding-top: 95px; }

@media (max-width: 900px) {
  .projects-hero-inner { min-height: 570px; grid-template-columns: 1.1fr .9fr; gap: 36px; }
  .projects-hero-panel { min-height: 300px; padding: 24px; }
  .project-feature-card { grid-template-columns: 1.1fr .9fr; }
  .project-feature-main { padding: 34px; }
  .project-feature-stat { padding: 28px; }
  .project-card { padding: 22px; }
  .client-grid article, .metrics-grid article { padding: 18px; }
}
@media (max-width: 640px) {
  .projects-hero-inner { min-height: unset; padding-block: 75px 66px; grid-template-columns: 1fr; gap: 29px; }
  .projects-hero-copy { padding-bottom: 0; }
  .projects-hero h1 { font-size: clamp(54px, 13vw, 76px); }
  .projects-hero-lead { margin-top: 20px; font-size: 13px; }
  .projects-hero-panel { width: 100%; min-height: 212px; padding: 20px; justify-self: stretch; }
  .projects-hero-panel > strong { margin-top: 23px; font-size: 94px; }
  .projects-panel-title { position: absolute; right: 20px; bottom: 47px; }
  .projects-panel-rule { width: 60%; margin-top: 14px; }
  .projects-hero-panel small { margin-top: 10px; }
  .projects-hero-foot { position: static; flex-wrap: wrap; gap: 8px; font-size: 8px; }
  .projects-intro { padding-block: 70px 42px; }
  .projects-intro-grid { margin-top: 23px; grid-template-columns: 1fr; gap: 18px; }
  .projects-intro-grid h2, .project-list-heading h2, .client-section-heading h2, .metrics-heading h2 { font-size: 43px; }
  .projects-intro-grid > p { font-size: 12px; }
  .project-feature { padding-bottom: 68px; }
  .project-feature-card { grid-template-columns: 1fr; }
  .project-feature-main { padding: 23px 19px; }
  .project-card-kicker { gap: 8px; font-size: 8px; letter-spacing: .09em; }
  .project-number { width: 27px; height: 27px; font-size: 8px; }
  .project-feature-main h2 { margin-top: 26px; font-size: 44px; }
  .project-feature-description { font-size: 11px; }
  .project-tags li { padding: 7px 8px; font-size: 8px; }
  .project-meta-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .project-feature-stat { min-height: 240px; padding: 23px; }
  .project-feature-stat > strong { margin-top: 20px; font-size: 98px; }
  .feature-stat-caption { margin-top: 15px; }
  .project-list-section { padding-block: 68px; }
  .project-list-heading { margin-top: 22px; display: block; }
  .project-list-heading > p { margin-top: 14px; font-size: 11px; }
  .project-grid { margin-top: 29px; grid-template-columns: 1fr; }
  .project-card { min-height: unset; padding: 20px 18px; }
  .project-card h3 { margin-top: 21px; font-size: 22px; }
  .project-card .project-meta-row { margin-top: 24px; }
  .project-card-wide { grid-column: auto; display: flex; flex-direction: column; }
  .project-card-wide > p:not(.project-client-line) { margin-top: 14px; }
  .project-card-wide .project-meta-row { margin-top: 24px; }
  .client-section { padding-block: 70px; }
  .client-section-heading, .metrics-heading { margin-top: 22px; display: block; }
  .client-section-heading > p, .metrics-heading > p { margin: 14px 0 0; font-size: 11px; }
  .client-grid { margin-top: 29px; grid-template-columns: 1fr 1fr; }
  .client-grid article { min-height: 165px; padding: 15px; }
  .client-grid h3 { margin-top: 18px; }
  .project-metrics { padding-block: 68px; }
  .metrics-grid { margin-top: 29px; grid-template-columns: 1fr 1fr; }
  .metrics-grid article { min-height: 170px; padding: 15px; }
  .metrics-grid article > strong { font-size: 42px; }
  .metrics-grid h3 { margin-top: 17px; font-size: 11px; }
  .projects-page .closing-cta { padding-top: 66px; }
}
