/* Apple-inspired production layouts for the homepage and Work index. */
.home-apple,
.work-apple {
  --apple-purple: #7c3aed;
  --apple-purple-dark: #5b21b6;
  --apple-purple-light: #a78bfa;
  --apple-ink: #1d1d1f;
  --apple-muted: #6e6e73;
  --apple-dark: #111113;
  --apple-dark-soft: #242426;
  --apple-line: rgba(29, 29, 31, .12);
  --apple-ease: cubic-bezier(.23, 1, .32, 1);
  background: #fff;
  color: var(--apple-ink);
}

.home-apple .site-header,
.work-apple .site-header {
  min-height: 64px;
}

.home-apple .site-header:not(.is-solid):not(.is-scrolled) .nav-action {
  min-height: 36px;
  padding-inline: 16px;
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.28);
  color: #fff;
  backdrop-filter: blur(14px);
}

.home-apple .site-header.is-scrolled,
.work-apple .site-header.is-solid,
.work-apple .site-header.is-scrolled {
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(18px);
}

.home-apple .nav-links a,
.work-apple .nav-links a {
  font-size: 12px;
  opacity: .82;
}

.home-apple .nav-links a::after,
.work-apple .nav-links a::after {
  display: none;
}

.home-apple .nav-links a:hover,
.work-apple .nav-links a:hover {
  color: var(--apple-purple);
  opacity: 1;
}

.home-apple .brand-lockup,
.work-apple .brand-lockup {
  font-size: 12px;
  letter-spacing: .24em;
}

.home-apple .nav-action,
.work-apple .nav-action {
  font-size: 13px;
}

.apple-hero {
  position: relative;
  min-height: 760px;
  height: 100svh;
  overflow: hidden;
  background: #000;
  color: #fff;
}

.apple-hero-video,
.apple-hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.apple-hero-video {
  object-fit: cover;
  object-position: center;
}

.apple-hero-overlay {
  background:
    linear-gradient(180deg, rgba(0,0,0,.44), rgba(0,0,0,.18) 34%, rgba(0,0,0,.65)),
    radial-gradient(circle at 52% 58%, transparent 0 22%, rgba(0,0,0,.3) 70%);
}

.apple-hero-content {
  position: relative;
  z-index: 2;
  width: min(1040px, calc(100% - 48px));
  height: 100%;
  margin: 0 auto;
  padding: 130px 0 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.apple-hero h1 {
  max-width: 900px;
  margin: 0;
  font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  font-size: clamp(64px, 8vw, 118px);
  line-height: .93;
  letter-spacing: -.065em;
  font-weight: 650;
}

.apple-hero p {
  max-width: 640px;
  margin: 34px 0 0;
  color: rgba(255,255,255,.78);
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.45;
}

.apple-hero-actions {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.apple-button {
  min-height: 44px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 600;
  transition: transform 160ms var(--apple-ease), background 180ms var(--apple-ease);
}

.apple-button:hover { transform: translateY(-1px); }
.apple-button:active { transform: scale(.98); }
.apple-button-primary { background: var(--apple-purple); color: #fff; }
.apple-button-primary:hover { background: var(--apple-purple-dark); }
.apple-button-glass { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28); color: #fff; backdrop-filter: blur(16px); }

.apple-scroll {
  position: absolute;
  z-index: 2;
  bottom: 28px;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  color: rgba(255,255,255,.65);
  font-size: 11px;
  transform: translateX(-50%);
}

.apple-scroll span { width: 1px; height: 28px; background: linear-gradient(var(--apple-purple-light), transparent); }

.apple-intro,
.apple-services,
.apple-tools {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  background: #fff;
}

.apple-intro {
  padding: 150px 0 170px;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr);
  gap: 100px;
  align-items: end;
}

.apple-intro h2,
.apple-title-row h2,
.apple-services-intro h2,
.apple-about-copy h2,
.apple-contact h2,
.apple-work-hero h1 {
  margin: 0;
  font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  font-size: clamp(48px, 6vw, 82px);
  line-height: 1.02;
  letter-spacing: -.055em;
  font-weight: 650;
}

.apple-intro p,
.apple-services-intro p,
.apple-about-copy p,
.apple-contact p,
.apple-work-hero p {
  margin: 0;
  color: var(--apple-muted);
  font-size: 19px;
  line-height: 1.6;
}

.apple-projects {
  padding: 120px max(24px, calc((100vw - 1400px) / 2)) 140px;
  background: #fff;
  border-top: 1px solid var(--apple-line);
  border-bottom: 1px solid var(--apple-line);
}

.apple-projects-index { padding-top: 24px; }

.apple-title-row {
  margin-bottom: 56px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.apple-title-row a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 5px;
  color: var(--apple-purple);
  font-size: 16px;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 150px;
  gap: 12px;
}

.bento-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-radius: 18px;
  background: var(--apple-dark-soft);
  color: #fff;
  isolation: isolate;
  box-shadow: 0 1px 0 rgba(0,0,0,.05);
}

.bento-featured { grid-column: span 7; grid-row: span 4; }
.bento-tall { grid-column: span 5; grid-row: span 4; }
.bento-standard { grid-column: span 4; grid-row: span 3; }
.bento-wide { grid-column: span 8; grid-row: span 3; }

.bento-card img,
.bento-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.bento-card img {
  z-index: -2;
  max-width: none;
  object-fit: cover;
  object-position: top center;
  transition: transform 650ms var(--apple-ease), filter 350ms var(--apple-ease);
}

.bento-shade {
  z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,.03) 28%, rgba(0,0,0,.88) 100%);
}

.bento-purple .bento-shade { background: linear-gradient(145deg, rgba(91,33,182,.52), rgba(16,16,18,.08) 42%, rgba(16,16,18,.92)); }
.bento-card:hover img { transform: scale(1.025); filter: saturate(1.04); }

.bento-content {
  position: absolute;
  inset: auto 0 0;
  padding: clamp(24px, 3.6vw, 48px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.bento-content strong {
  max-width: 650px;
  font-size: clamp(28px, 3.1vw, 48px);
  line-height: 1.02;
  letter-spacing: -.045em;
  font-weight: 650;
}

.bento-content > span {
  max-width: 560px;
  margin-top: 14px;
  color: rgba(255,255,255,.78);
  font-size: 15px;
  line-height: 1.52;
}

.bento-content b {
  width: 100%;
  margin-top: 24px;
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(255,255,255,.28);
  font-size: 14px;
  font-weight: 600;
}

.bento-content i { font-style: normal; }
.bento-standard .bento-content strong,
.bento-tall .bento-content strong { font-size: clamp(26px, 2.6vw, 39px); }

.apple-services,
.apple-tools { padding: 150px 0 170px; }

.apple-services-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, .6fr);
  gap: 90px;
  align-items: end;
}

.apple-services-grid {
  margin-top: 76px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--apple-line);
}

.apple-services-grid article {
  min-height: 260px;
  padding: 44px 50px 48px 0;
  border-bottom: 1px solid var(--apple-line);
}

.apple-services-grid article:nth-child(odd) { padding-right: 64px; border-right: 1px solid var(--apple-line); }
.apple-services-grid article:nth-child(even) { padding-left: 64px; }

.apple-services-grid h3,
.apple-tools-grid h3 { margin: 0; font-size: 28px; letter-spacing: -.03em; font-weight: 650; }

.apple-services-grid p,
.apple-tools-grid p { max-width: 470px; margin: 20px 0 0; color: var(--apple-muted); font-size: 16px; line-height: 1.62; }

.apple-about {
  margin: 0 12px;
  padding: 130px max(24px, calc((100vw - 1180px) / 2));
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 100px;
  align-items: end;
  border-radius: 22px;
  background: var(--apple-dark);
  color: #fff;
}

.apple-about-copy p { max-width: 680px; margin-top: 28px; color: #ccc; }
.apple-about-facts { display: grid; gap: 1px; background: rgba(255,255,255,.16); }
.apple-about-facts div { min-height: 130px; padding: 26px; display: flex; flex-direction: column; justify-content: center; background: var(--apple-dark-soft); }
.apple-about-facts strong { color: var(--apple-purple-light); font-size: 38px; line-height: 1; letter-spacing: -.05em; }
.apple-about-facts span { margin-top: 9px; color: #ccc; font-size: 14px; }

.apple-tools { padding-bottom: 150px; }
.apple-tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--apple-line); border-left: 1px solid var(--apple-line); }
.apple-tools-grid a { min-height: 280px; padding: 34px; display: flex; flex-direction: column; border-right: 1px solid var(--apple-line); border-bottom: 1px solid var(--apple-line); background: #fff; transition: background 180ms var(--apple-ease), color 180ms var(--apple-ease); }
.apple-tools-grid a:hover { background: var(--apple-dark); color: #fff; }
.apple-tools-grid a:hover p { color: #ccc; }
.apple-tools-grid a > span { margin-top: auto; padding-top: 28px; color: var(--apple-purple); font-size: 14px; }
.apple-tools-grid a:hover > span { color: var(--apple-purple-light); }

.apple-contact {
  min-height: 640px;
  padding: 130px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
  text-align: center;
}

.apple-contact p { max-width: 620px; margin-top: 24px; }
.apple-contact > a { margin-top: 34px; display: inline-flex; align-items: center; gap: 9px; color: var(--apple-purple); font-size: clamp(24px, 3vw, 38px); font-weight: 650; letter-spacing: -.035em; }

.apple-work-hero {
  padding: 176px max(24px, calc((100vw - 1180px) / 2)) 104px;
  background: #fff;
  border-bottom: 1px solid var(--apple-line);
}

.apple-work-hero h1 { max-width: 980px; font-size: clamp(62px, 8vw, 116px); line-height: .92; }
.apple-work-hero p { max-width: 720px; margin-top: 34px; }

.apple-footer { background: #fff; }
.apple-footer-wordmark { display: inline-block; color: var(--apple-ink); font-size: 13px; font-weight: 650; letter-spacing: .24em; }

@media (max-width: 1080px) {
  .home-apple .mobile-nav a:not(.mobile-contact),
  .work-apple .mobile-nav a:not(.mobile-contact) {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--apple-line);
    font-size: 25px;
    letter-spacing: -.03em;
  }

  .home-apple .mobile-contact,
  .work-apple .mobile-contact { background: var(--apple-purple); border-radius: 11px; }

  .bento-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; }
  .bento-card,
  .bento-featured,
  .bento-tall,
  .bento-standard,
  .bento-wide { grid-column: span 1; grid-row: auto; min-height: 520px; }
  .bento-featured,
  .bento-purple { grid-column: span 2; min-height: 600px; }
  .apple-intro,
  .apple-services-intro,
  .apple-about { grid-template-columns: 1fr; gap: 54px; }
}

@media (max-width: 700px) {
  .home-apple .site-nav,
  .work-apple .site-nav { width: calc(100% - 32px); }

  .home-apple .header-mail,
  .work-apple .header-mail { width: 44px; height: 44px; padding: 0; border-radius: 9px; font-size: 0; }

  .apple-hero { min-height: 720px; }
  .apple-hero-video { object-position: 62% center; }
  .apple-hero-content { width: calc(100% - 40px); padding-top: 104px; }
  .apple-hero h1 { font-size: clamp(52px, 15.5vw, 72px); line-height: .96; }
  .apple-hero p { margin-top: 26px; font-size: 17px; }
  .apple-hero-actions { width: 100%; margin-top: 28px; justify-content: center; }
  .apple-button { min-height: 43px; padding-inline: 15px; }
  .apple-scroll { display: none; }

  .apple-intro,
  .apple-services,
  .apple-tools { width: calc(100% - 40px); padding: 92px 0 104px; }
  .apple-intro { gap: 30px; }

  .apple-intro h2,
  .apple-title-row h2,
  .apple-services-intro h2,
  .apple-about-copy h2,
  .apple-contact h2,
  .apple-work-hero h1 { font-size: clamp(43px, 12.5vw, 58px); }

  .apple-intro p,
  .apple-services-intro p,
  .apple-about-copy p,
  .apple-contact p,
  .apple-work-hero p { font-size: 17px; }

  .apple-projects { padding: 88px 12px 104px; }
  .apple-projects-index { padding-top: 12px; }
  .apple-title-row { margin-bottom: 34px; padding-inline: 8px; align-items: flex-start; flex-direction: column; gap: 18px; }
  .bento-grid { grid-template-columns: 1fr; gap: 10px; }
  .bento-card,
  .bento-featured,
  .bento-tall,
  .bento-standard,
  .bento-wide,
  .bento-purple { grid-column: 1; min-height: 500px; border-radius: 16px; }
  .bento-content { padding: 28px; }
  .bento-content strong,
  .bento-standard .bento-content strong,
  .bento-tall .bento-content strong { font-size: 34px; }

  .apple-services-intro { gap: 26px; }
  .apple-services-grid { margin-top: 50px; grid-template-columns: 1fr; }
  .apple-services-grid article,
  .apple-services-grid article:nth-child(odd),
  .apple-services-grid article:nth-child(even) { min-height: 0; padding: 34px 0; border-right: 0; }

  .apple-about { margin: 0; padding: 92px 20px; border-radius: 0; }
  .apple-about-facts div { min-height: 110px; }
  .apple-tools-grid { grid-template-columns: 1fr; }
  .apple-tools-grid a { min-height: 230px; }
  .apple-contact { min-height: 560px; padding: 100px 20px; }
  .apple-contact > a { font-size: clamp(21px, 6.2vw, 29px); }
  .apple-work-hero { padding: 132px 20px 74px; }
}

@media (prefers-reduced-motion: reduce) {
  .apple-hero-video { display: none; }
  .apple-hero { background: #000 url('/assets/hero-bg.jpg') center / cover no-repeat; }
}
