/* Homepage styles stay scoped so the project archive keeps its existing layout. */
.addi-home {
  --home-ink: #182c3e;
  --home-muted: #526373;
  --home-blue: #00629b;
  --home-line: #dce5eb;
  --home-pale: #f2f6f8;
  clear: both;
  width: 100%;
  color: var(--home-ink);
  background: #fff;
  font-size: 17px;
  line-height: 1.65;
}

.addi-home *,
.addi-home *::before,
.addi-home *::after {
  box-sizing: border-box;
}

.addi-home .home-container {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 0 36px;
}

.addi-home h1,
.addi-home h2,
.addi-home h3 {
  color: var(--home-ink);
  font-family: inherit;
  font-weight: 700;
  text-transform: none;
}

.addi-home h2 {
  margin: 0 0 20px;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.14;
  letter-spacing: -0.035em;
}

.addi-home h3 {
  font-size: 22px;
  line-height: 1.3;
}

.addi-home p {
  margin: 0 0 20px;
  font-size: 1em;
  line-height: inherit;
}

.addi-home li {
  font-size: inherit;
  line-height: inherit;
}

.addi-home a {
  color: var(--home-blue);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.addi-home a:hover {
  color: #003e63;
}

.addi-home a:focus-visible,
.addi-home summary:focus-visible {
  outline: 3px solid var(--home-blue);
  outline-offset: 5px;
}

.addi-home img,
.addi-home iframe {
  display: block;
  max-width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
}

.addi-home .home-eyebrow {
  margin-bottom: 14px;
  color: var(--home-blue);
  font-size: 12px;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.addi-home .home-hero {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 64px;
  align-items: center;
  padding: 52px 0 60px;
}

.addi-home .home-hero-copy {
  max-width: 500px;
}

.addi-home .home-hero h1 {
  margin: 0 0 24px;
  font-size: clamp(62px, 6.8vw, 90px);
  line-height: 0.99;
  letter-spacing: -0.055em;
}

.addi-home .home-hero h1 span {
  color: var(--home-blue);
}

.addi-home .home-lead {
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: 600;
}

.addi-home .home-hero-copy > p:not(.home-eyebrow):not(.home-lead) {
  color: var(--home-muted);
}

.addi-home .home-hero-image {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: var(--home-ink);
  border-radius: 4px;
}

.addi-home .home-hero-image img {
  width: 100%;
  height: 465px;
  object-fit: cover;
  object-position: 58% center;
}

.addi-home .home-hero-image figcaption {
  padding: 20px 24px;
  color: #e2eaf0;
  font-size: 13px;
  line-height: 1.6;
  text-align: left;
}

.addi-home .home-image-label {
  display: block;
  margin-bottom: 2px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.addi-home .home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.addi-home .home-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 12px 20px;
  border: 1px solid var(--home-blue);
  border-radius: 3px;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease;
}

.addi-home .home-button-primary {
  color: #fff;
  background: var(--home-blue);
}

.addi-home .home-button-primary:hover {
  color: #fff;
  background: #004c78;
}

.addi-home .home-button-secondary {
  color: var(--home-blue);
  background: #fff;
}

.addi-home .home-button-secondary:hover {
  background: #eaf2f7;
}

.addi-home .home-achievements {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 28px 0;
  border-top: 1px solid var(--home-line);
  border-bottom: 1px solid var(--home-line);
}

.addi-home .home-achievements > a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 32px;
  color: var(--home-muted);
  font-size: 14px;
  text-decoration: none;
}

.addi-home .home-achievements > a:first-child {
  padding-left: 0;
}

.addi-home .home-achievements > a + a {
  border-left: 1px solid var(--home-line);
}

.addi-home .home-achievements strong {
  color: var(--home-ink);
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.3;
}

.addi-home .home-inline-link,
.addi-home .home-text-link {
  color: var(--home-blue);
  font-size: 14px;
  font-weight: 700;
}

.addi-home .home-achievements .home-inline-link {
  margin-top: 12px;
}

.addi-home .home-achievements a:hover .home-inline-link,
.addi-home .home-project:hover .home-inline-link {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.addi-home .home-section {
  padding: 76px 0;
  scroll-margin-top: 24px;
}

.addi-home .home-join {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  margin: 64px 0 0;
  padding: 44px;
  border: 1px solid var(--home-line);
  border-top: 4px solid var(--home-blue);
  border-radius: 4px;
  background: var(--home-pale);
}

.addi-home .home-join-facts {
  display: grid;
  gap: 8px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  font-weight: 600;
}

.addi-home .home-join-facts li {
  margin: 0;
  padding: 0 0 0 24px;
  position: relative;
}

.addi-home .home-join-facts li::before {
  position: absolute;
  left: 0;
  color: var(--home-blue);
  content: "\2713";
}

.addi-home .home-small {
  margin: 14px 0 0;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.addi-home .home-join-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: join-step;
}

.addi-home .home-join-steps li {
  position: relative;
  margin: 0;
  padding: 0 0 24px 52px;
  counter-increment: join-step;
}

.addi-home .home-join-steps li + li {
  padding-top: 24px;
  border-top: 1px solid var(--home-line);
}

.addi-home .home-join-steps li::before {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--home-blue);
  background: #e1ecf3;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  content: counter(join-step, decimal-leading-zero);
}

.addi-home .home-join-steps li + li::before {
  top: 24px;
}

.addi-home .home-join-steps h3 {
  margin: 3px 0 10px;
  font-size: 19px;
}

.addi-home .home-join-steps p {
  margin: 0;
  color: var(--home-muted);
  font-size: 15px;
}

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

.addi-home .home-section-heading h2 {
  margin-bottom: 0;
}

.addi-home .home-section-heading > a {
  flex-shrink: 0;
}

.addi-home .home-project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.addi-home .home-project {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--home-line);
  border-radius: 4px;
  color: var(--home-ink);
  background: #fff;
  text-decoration: none;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.addi-home .home-project:hover {
  color: var(--home-ink);
  border-color: var(--home-blue);
  background: #f8fbfd;
}

.addi-home .home-project-number {
  margin-bottom: 32px;
  color: #667e90;
  font-size: 14px;
  letter-spacing: 0.08em;
}

.addi-home .home-project h3 {
  margin: 0 0 16px;
  font-size: 25px;
  letter-spacing: -0.02em;
}

.addi-home .home-project > p:not(.home-eyebrow) {
  color: var(--home-muted);
  font-size: 15px;
}

.addi-home .home-project-tags {
  margin: auto 0 22px;
  padding-top: 8px;
  color: var(--home-muted);
  font-size: 12px;
}

.addi-home .home-community {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 52px;
  align-items: center;
  padding-top: 12px;
}

.addi-home .home-community > img {
  width: 100%;
  height: 390px;
  object-fit: cover;
  object-position: 45% center;
  border-radius: 4px;
}

.addi-home .home-community p:not(.home-eyebrow) {
  color: var(--home-muted);
  font-size: 16px;
}

.addi-home .home-partners {
  border-top: 1px solid var(--home-line);
  text-align: center;
}

.addi-home .home-partners > p:not(.home-eyebrow) {
  color: var(--home-muted);
}

.addi-home .home-partner-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: center;
  gap: 16px;
  margin: 36px 0;
  padding: 0;
  list-style: none;
}

.addi-home .home-partner-grid li {
  display: flex;
  min-width: 0;
  height: 90px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 16px;
  border: 1px solid #e9eef2;
  border-radius: 3px;
}

.addi-home .home-partner-grid img {
  width: 100%;
  max-height: 58px;
  object-fit: contain;
}

.addi-home .home-techaachen {
  display: flex;
  max-width: 780px;
  align-items: center;
  gap: 32px;
  margin: 40px auto 0;
  padding-top: 32px;
  border-top: 1px solid var(--home-line);
  text-align: left;
}

.addi-home .home-techaachen img {
  width: 140px;
  height: auto;
  flex-shrink: 0;
}

.addi-home .home-techaachen p {
  margin: 0;
  color: var(--home-muted);
  font-size: 14px;
}

.addi-home .home-visit {
  border-top: 1px solid var(--home-line);
}

.addi-home .home-visit-details {
  display: grid;
  grid-template-columns: 0.8fr 1.4fr 1fr;
  gap: 40px;
  color: var(--home-muted);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.addi-home .home-visit-details strong {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--home-ink);
}

.addi-home .home-calendar {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--home-line);
}

.addi-home .home-calendar summary {
  padding: 10px 0;
  color: var(--home-blue);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.addi-home .home-calendar iframe {
  width: 100%;
  height: 600px;
  margin-top: 20px;
}

@media (max-width: 1000px) {
  .addi-home .home-hero {
    gap: 32px;
  }

  .addi-home .home-hero-image img {
    height: 420px;
  }

  .addi-home .home-join {
    gap: 32px;
    padding: 32px;
  }

  .addi-home .home-project {
    padding: 22px;
  }

  .addi-home .home-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .addi-home .home-community {
    gap: 32px;
  }
}

@media (max-width: 760px) {
  .addi-home .home-container {
    padding: 0 24px;
  }

  .addi-home .home-hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 36px 0;
  }

  .addi-home .home-hero-copy {
    max-width: 580px;
  }

  .addi-home .home-hero h1 {
    font-size: clamp(64px, 12vw, 84px);
  }

  .addi-home .home-hero-image img {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .addi-home .home-achievements {
    grid-template-columns: 1fr;
    padding: 8px 0;
  }

  .addi-home .home-achievements > a {
    padding: 20px 0;
  }

  .addi-home .home-achievements > a + a {
    border-left: 0;
    border-top: 1px solid var(--home-line);
  }

  .addi-home .home-achievements strong {
    font-size: 26px;
  }

  .addi-home .home-achievements .home-inline-link {
    margin-top: 6px;
  }

  .addi-home .home-section {
    padding: 48px 0;
  }

  .addi-home .home-join {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 40px;
    padding: 28px 24px 8px;
  }

  .addi-home .home-project-grid,
  .addi-home .home-community {
    grid-template-columns: 1fr;
  }

  .addi-home .home-project {
    padding: 28px;
  }

  .addi-home .home-project-number {
    margin-bottom: 24px;
  }

  .addi-home .home-community {
    padding-top: 0;
  }

  .addi-home .home-community > img {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .addi-home .home-partner-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .addi-home .home-partner-grid li {
    height: 80px;
    padding: 12px;
  }

  .addi-home .home-techaachen {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }

  .addi-home .home-visit-details {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .addi-home .home-calendar iframe {
    height: 500px;
  }
}

@media (max-width: 380px) {
  .addi-home .home-container {
    padding: 0 18px;
  }

  .addi-home .home-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .addi-home .home-join {
    padding-right: 18px;
    padding-left: 18px;
  }

  .addi-home .home-partner-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .addi-home *,
  .addi-home *::before,
  .addi-home *::after {
    transition: none;
  }
}
