/* Careers landing page (/careers/internships/) — design from Framer project "Habi",
   rebuilt on the site design system tokens defined in styles.css. */

.careers-page {
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px 48px 80px;
  font-family: "Rubik", "Rubik Placeholder", sans-serif;
  font-size: 20px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--text-body);
  -webkit-font-smoothing: antialiased;
}
.careers-page:focus { outline: none; }

/* :where() keeps these scoped without outranking component classes below */
:where(.careers-page) p { margin: 0; }
:where(.careers-page) a { color: inherit; }

/* ---------- Shared bits ---------- */

.c-btn {
  display: inline-block;
  background: var(--bg-solid);
  color: var(--surface-dark);
  padding: 14px 32px;
  border-radius: 40px;
  font-family: "Inter", "Inter Placeholder", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: opacity 0.2s;
}
.c-btn:hover { opacity: 0.85; }
.c-btn:focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-ring-offset); }

:where(.careers-page) h2 {
  font-family: "Inter Display", "Inter Display Placeholder", sans-serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0;
}

/* Two-column section: heading left, body right */
.c-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 48px 120px;
  max-width: 1160px;
  margin: 160px auto 0;
}
.c-split-body > p + p { margin-top: 28px; }
.c-split-body > * + h3 { margin-top: 40px; }

/* ---------- Hero ---------- */

.c-hero {
  text-align: center;
  padding: 96px 0 72px;
}
.c-eyebrow {
  font-size: 20px;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.c-hero h1 {
  font-family: "Rubik", "Rubik Placeholder", sans-serif;
  font-size: clamp(56px, 9vw, 120px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.06em;
  color: var(--text-primary);
  margin: 0 auto 28px;
  max-width: 12ch;
}
.c-hero-sub {
  max-width: 640px;
  margin: 0 auto 40px;
}

.c-hero-art { margin: 0; }
.c-hero-art img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 42px;
}

/* ---------- WWDC ---------- */

.c-wwdc {
  text-align: center;
  margin-top: 180px;
}
.c-wwdc img {
  display: block;
  width: 190px;
  height: 190px;
  margin: 0 auto 8px;
}
.c-wwdc-title {
  font-family: "Inter Display", "Inter Display Placeholder", sans-serif;
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.c-wwdc-caption { color: var(--text-secondary); }

/* ---------- Feature rows (image + text) ---------- */

.c-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 48px 96px;
  align-items: center;
  max-width: 1300px;
  margin: 180px auto 0;
}
.c-feature h2 { margin-bottom: 20px; }
.c-feature figure { margin: 0; }
.c-feature img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 42px;
}
.c-feature-flip { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }

/* ---------- Founders quote ---------- */

.c-quote {
  text-align: center;
  max-width: 980px;
  margin: 200px auto 0;
}
.c-quote-avatar {
  display: inline-block;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 40px;
}
.c-quote blockquote {
  margin: 0 0 20px;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.c-quote-attr { color: var(--text-muted); }

/* ---------- Shared values ---------- */

.c-values { margin-top: 200px; }
.c-values h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
  margin: 0 0 10px;
}
.c-value + .c-value { margin-top: 44px; }

/* ---------- Open positions ---------- */

.c-jobs { margin-top: 220px; }
.c-giant {
  font-family: "Rubik", "Rubik Placeholder", sans-serif;
  font-size: clamp(56px, 11vw, 160px);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.06em;
  color: var(--text-primary);
  text-align: center;
  margin: 0 0 96px;
}
.c-job-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.c-job-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  background: var(--bg-card);
  border: none;
  border-radius: 42px;
  padding: 28px;
  text-decoration: none;
  transition: background 0.2s, border-radius 0.3s ease;
}
.c-job-card:hover {
  background: var(--bg-subtle);
  border-radius: 100px;
}
.c-job-card:focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-ring-offset); }
.c-job-title {
  display: block;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.c-job-dept {
  display: block;
  margin-top: 6px;
  color: var(--text-primary);
}
.c-job-meta { color: var(--text-body); }

.c-jobs-cta { margin-top: 140px; max-width: 1160px; margin-left: auto; margin-right: auto; }
.c-jobs-cta h2 { margin-bottom: 16px; }
.c-jobs-cta p { max-width: 480px; }
.c-jobs-cta .c-btn { margin-top: 36px; }

/* ---------- Gallery ---------- */

/* Collage geometry measured from the Framer reference at a 1440 container:
   4 columns of square 342px tiles, 24px gaps, column top offsets 160/0/240/80.
   Every tile is a subtle card; the sofa photo sits inset within its card. */
.c-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
  margin-top: 160px;
}
.c-gal-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.c-gal-col:nth-child(1) { margin-top: 160px; }
.c-gal-col:nth-child(3) { margin-top: 240px; }
.c-gal-col:nth-child(4) { margin-top: 80px; }
.c-gallery img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 24px;
  background: var(--bg-subtle);
}

/* ---------- How we hire / FAQ ---------- */

.c-faq { margin-top: 180px; }
.c-faq-title {
  font-family: "Inter Display", "Inter Display Placeholder", sans-serif;
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  text-align: center;
  margin: 0 0 20px;
}
.c-faq-sub {
  text-align: center;
  color: var(--text-secondary);
  max-width: 420px;
  margin: 0 auto 64px;
}
.c-faq-list {
  max-width: 720px;
  margin: 0 auto;
}
.c-faq-list details {
  background: var(--bg-subtle);
  border: none;
  border-radius: 24px;
}
.c-faq-list details + details { margin-top: 2px; }
.c-faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  list-style: none;
  cursor: pointer;
  padding: 18px 22px 18px 24px;
  font-size: 20px;
  font-weight: 300;
  color: var(--text-secondary);
}
.c-faq-list summary::-webkit-details-marker { display: none; }
.c-faq-list summary:focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-ring-offset); border-radius: 24px; }
.c-faq-icon {
  flex: none;
  position: relative;
  width: 20px;
  height: 20px;
}
.c-faq-icon::before,
.c-faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 1px;
  background: var(--text-primary);
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease;
}
.c-faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.c-faq-list details[open] .c-faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.c-faq-list details > p {
  padding: 0 56px 24px 24px;
  font-size: 17px;
  color: var(--text-secondary);
}
.c-faq-more {
  text-align: center;
  margin-top: 72px;
  color: var(--text-body);
}
.c-faq-more a {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.c-faq-more a:hover { color: var(--color-link); }

/* ---------- Appear animations ----------
   Framer reference behavior: hero rises + fades on load (small text also
   sharpens from 6px blur); WWDC section blur-fades from 16px on scroll;
   gallery photos fade in sequentially. The .fx class is added by the inline
   script at the end of the page, so without JS everything stays visible. */

.fx [data-fx] {
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.fx [data-fx].fx-in { opacity: 1; transform: none; }
.fx [data-fx="rise"] { transform: translateY(24px); }

.fx .c-hero .c-eyebrow,
.fx .c-hero .c-hero-sub {
  filter: blur(6px);
  transition: filter 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.fx .c-hero.fx-in .c-eyebrow,
.fx .c-hero.fx-in .c-hero-sub { filter: none; }

.fx .c-wwdc > * {
  opacity: 0;
  filter: blur(16px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), filter 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.fx .c-wwdc.fx-in > * { opacity: 1; filter: none; }
.fx .c-wwdc.fx-in > *:nth-child(2) { transition-delay: 0.12s; }
.fx .c-wwdc.fx-in > *:nth-child(3) { transition-delay: 0.24s; }

.fx .c-gallery img {
  opacity: 0;
  transition: opacity 0.8s ease-out;
}
.fx .c-gallery img.fx-in { opacity: 1; }

/* Gentle breathing pulse on the Apple logo */
@keyframes c-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.045); }
}
.fx .c-wwdc.fx-in img { animation: c-breathe 6s ease-in-out 1.2s infinite; }

@media (prefers-reduced-motion: reduce) {
  .fx [data-fx],
  .fx .c-wwdc > *,
  .fx .c-gallery img { opacity: 1; transform: none; filter: none; transition: none; }
  .fx .c-wwdc.fx-in img { animation: none; }
}

/* ---------- Tablet (1024–1299) ---------- */

@media (max-width: 1299.98px) {
  .careers-page { padding: 24px 40px 80px; }
  .c-split { gap: 40px 72px; margin-top: 120px; }
  .c-feature { gap: 40px 56px; margin-top: 130px; }
  .c-quote, .c-values { margin-top: 150px; }
  .c-jobs { margin-top: 160px; }
  .c-giant { margin-bottom: 72px; }
  .c-jobs-cta { margin-top: 110px; }
  .c-gallery { gap: 20px; margin-top: 130px; }
  .c-wwdc { margin-top: 140px; }
}

/* ---------- Phone (<=1023) ---------- */

@media (max-width: 1023.98px) {
  .careers-page { padding: 16px 24px 64px; font-size: 18px; }
  .c-hero { padding: 64px 0 48px; }
  .c-hero-art img, .c-feature img { border-radius: 24px; }

  .c-split,
  .c-feature,
  .c-feature-flip { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 96px; }
  /* keep image above text on phone for the flipped row */
  .c-feature-flip figure { order: -1; }

  .c-wwdc { margin-top: 110px; }
  .c-wwdc img { width: 140px; height: 140px; }

  .c-quote { margin-top: 110px; }
  .c-quote blockquote { font-size: 22px; }

  .c-values { margin-top: 110px; }
  .c-value + .c-value { margin-top: 32px; }

  .c-jobs { margin-top: 120px; }
  .c-giant { margin-bottom: 56px; }
  .c-job-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .c-job-card { gap: 36px; }
  .c-jobs-cta { margin-top: 80px; }

  .c-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 96px; }
  .c-gal-col { gap: 16px; }
  .c-gal-col:nth-child(1), .c-gal-col:nth-child(3), .c-gal-col:nth-child(4) { margin-top: 0; }
  .c-gal-col:nth-child(3) { margin-top: 16px; }
  .c-gallery img { border-radius: 20px; }

  .c-faq { margin-top: 110px; }
  .c-faq-sub { margin-bottom: 44px; }
  .c-faq-list details > p { padding: 0 24px 20px 24px; }
  .c-faq-more { margin-top: 56px; }
}
