/*
 * ArtPlus v19 homepage
 * A calm editorial grid: visual thinking, hands-on execution.
 */

:root {
  --ap-v19-ink: #101313;
  --ap-v19-orange: #ff4b12;
  --ap-v19-paper: #f7f8f6;
  --ap-v19-soft: #e7eeee;
  --ap-v19-line: rgba(31, 61, 59, .18);
  --ap-v19-muted: #5f6d6b;
  --ap-v19-radius: 18px;
}

body.home .artplus-page-builder {
  position: relative;
  isolation: isolate;
}

body.home .artplus-page-builder > section {
  position: relative;
}

/* Hero: content is the focus. An image is optional, never a placeholder. */
body.home .apb-hero.home-hero {
  width: 100%;
  max-width: var(--max);
  min-height: min(900px, calc(100svh - 80px));
  margin: 0 auto;
  padding: clamp(90px, 11vw, 180px) var(--pad) clamp(88px, 10vw, 156px);
  display: grid;
  grid-template-columns: minmax(320px, .78fr) minmax(460px, 1.22fr);
  gap: clamp(48px, 7vw, 118px);
  align-items: center;
  border-bottom: 1px solid var(--ap-v19-line);
  overflow: visible;
}

body.home .apb-hero.home-hero.apb-hero--text {
  grid-template-columns: minmax(0, 1fr);
}

body.home .apb-hero--text .home-hero-copy {
  width: min(1180px, 100%);
  max-width: none;
}

body.home .apb-hero .home-hero-copy {
  position: relative;
  z-index: 2;
  margin: 0;
  max-width: 850px;
}

body.home .home-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 clamp(28px, 4vw, 54px);
  color: var(--ap-v19-orange);
}

body.home .home-kicker::before {
  content: "+";
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 7px;
  background: var(--ap-v19-orange);
  color: #fff;
  font: 800 20px/1 Inter, sans-serif;
}

body.home .apb-hero .home-hero-copy h1 {
  max-width: 1140px;
  margin: 0;
  font-size: clamp(72px, 8.35vw, 150px);
  line-height: .82;
  letter-spacing: -.078em;
  text-wrap: balance;
}

body.home .apb-hero .scribble-word {
  color: inherit;
}

body.home .apb-hero .scribble-word::after {
  height: .09em;
  bottom: -.03em;
  background: var(--ap-v19-orange);
  transform: rotate(-1.25deg);
}

body.home .apb-hero .home-hero-copy > p {
  max-width: 790px;
  margin: clamp(32px, 4vw, 58px) 0 0;
  font-size: clamp(19px, 1.7vw, 27px);
  line-height: 1.46;
  color: var(--ap-v19-muted);
}

body.home .apb-hero-media {
  aspect-ratio: 4 / 5;
  margin: 0;
  border: 1px solid var(--ap-v19-line);
  border-radius: var(--ap-v19-radius);
  background: var(--ap-v19-soft);
  box-shadow: none;
  overflow: hidden;
}

body.home .apb-hero-media--image {
  cursor: default;
}

body.home .apb-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Shared editorial section heading. */
body.home .apb-section {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(88px, 10vw, 156px) var(--pad);
}

body.home .simple-section-head {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) minmax(260px, 390px);
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
  margin: 0 0 clamp(48px, 6vw, 86px);
}

body.home .simple-section-head > .mono,
body.home .ap-showreel-heading > .mono,
body.home .apb-image-text-copy > .mono {
  color: var(--ap-v19-orange);
}

body.home .simple-section-head h2,
body.home .ap-showreel-heading h2,
body.home .apb-image-text-copy h2 {
  margin: 0;
  font-size: clamp(48px, 6.1vw, 96px);
  line-height: .9;
  letter-spacing: -.065em;
  text-wrap: balance;
}

body.home .simple-section-head .ap-section-intro,
body.home .ap-showreel-heading p {
  margin: 0;
  color: var(--ap-v19-muted);
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.55;
}

/* Demoreel: a dedicated cinematic pause after the introduction. */
body.home .ap-showreel {
  display: grid;
  grid-template-columns: minmax(270px, .42fr) minmax(520px, 1.58fr);
  gap: clamp(36px, 6vw, 92px);
  align-items: end;
  max-width: none;
  padding-left: max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad)));
  padding-right: max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad)));
  color: #fff;
  background: var(--ap-v19-ink);
}

body.home .ap-showreel-heading {
  display: grid;
  gap: 28px;
  align-self: start;
  padding-top: 6px;
}

body.home .ap-showreel-heading h2 {
  font-size: clamp(52px, 5.5vw, 92px);
}

body.home .ap-showreel-heading p {
  color: #aeb9b7;
}

body.home .ap-showreel-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--ap-v19-radius);
  color: #fff;
  background-color: #202827;
  background-image:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 42px 42px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 36px 90px rgba(0,0,0,.28);
}

body.home .ap-showreel-player > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.2,.75,.2,1);
}

body.home .ap-showreel-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(0,0,0,.58));
}

body.home .ap-showreel-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: clamp(88px, 9vw, 132px);
  height: clamp(88px, 9vw, 132px);
  padding-left: .08em;
  border-radius: 50%;
  background: var(--ap-v19-orange);
  font-size: clamp(31px, 3vw, 46px);
  transform: translate(-50%, -50%);
  box-shadow: 0 20px 55px rgba(255,75,18,.35);
  transition: transform .45s cubic-bezier(.2,.75,.2,1);
}

body.home .ap-showreel-label {
  position: absolute;
  left: 22px;
  bottom: 20px;
  z-index: 2;
  padding: 9px 12px;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 999px;
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(12px);
}

body.home .ap-showreel-player:hover > img {
  transform: scale(1.025);
}

body.home .ap-showreel-player:hover .ap-showreel-play {
  transform: translate(-50%, -50%) scale(1.08) rotate(3deg);
}

/* Services: each card has a real home for the user's own icon and illustration. */
body.home .home-skills {
  border-bottom: 1px solid var(--ap-v19-line);
}

body.home .ap-services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 34px);
}

body.home .ap-service-card {
  min-width: 0;
}

body.home .ap-service-card-link {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  border: 1px solid var(--ap-v19-line);
  border-radius: var(--ap-v19-radius);
  background: rgba(255,255,255,.56);
  overflow: hidden;
  transition: transform .4s cubic-bezier(.2,.75,.2,1), border-color .25s ease, box-shadow .4s ease;
}

body.home .ap-service-card-link:hover {
  border-color: var(--ap-v19-orange);
  transform: translateY(-7px);
  box-shadow: 0 24px 60px rgba(25,53,51,.12);
}

body.home .ap-service-visual {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  background-color: var(--ap-v19-soft);
  background-image:
    linear-gradient(rgba(31,61,59,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31,61,59,.07) 1px, transparent 1px);
  background-size: 36px 36px;
  overflow: hidden;
}

body.home .ap-service-visual > img:not(.ap-service-icon) {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.2,.75,.2,1);
}

body.home .ap-service-card-link:hover .ap-service-visual > img:not(.ap-service-icon) {
  transform: scale(1.035);
}

body.home .ap-service-number {
  position: absolute;
  left: 16px;
  top: 15px;
  z-index: 2;
  color: var(--ap-v19-orange);
}

body.home .ap-service-icon {
  position: absolute;
  right: clamp(16px, 3vw, 38px);
  bottom: clamp(16px, 3vw, 38px);
  z-index: 2;
  width: clamp(60px, 8vw, 118px);
  height: clamp(60px, 8vw, 118px);
  object-fit: contain;
}

body.home .ap-service-plus {
  color: var(--ap-v19-orange);
  font-size: clamp(96px, 12vw, 180px);
  font-weight: 800;
  line-height: 1;
  transform: rotate(-7deg);
  opacity: .82;
}

body.home .ap-service-copy {
  position: relative;
  min-height: 210px;
  padding: clamp(24px, 3.2vw, 44px) clamp(70px, 7vw, 104px) clamp(26px, 3.2vw, 46px) clamp(24px, 3.2vw, 44px);
}

body.home .ap-service-copy h3 {
  max-width: 540px;
  margin: 0;
  font-size: clamp(30px, 3vw, 50px);
  line-height: .98;
  letter-spacing: -.05em;
}

body.home .ap-service-copy p {
  max-width: 520px;
  margin: 20px 0 0;
  color: var(--ap-v19-muted);
  font-size: clamp(15px, 1.25vw, 19px);
  line-height: 1.48;
}

body.home .ap-service-arrow {
  position: absolute;
  right: clamp(22px, 3vw, 42px);
  top: clamp(23px, 3vw, 42px);
  color: var(--ap-v19-orange);
  font-size: 30px;
  transition: transform .3s ease;
}

body.home .ap-service-card-link:hover .ap-service-arrow {
  transform: translate(4px, -4px);
}

/* Portfolio and personal introduction share the same rhythm. */
body.home .home-work {
  border-bottom: 1px solid var(--ap-v19-line);
}

body.home .home-work .simple-section-head > a {
  justify-self: end;
  align-self: end;
  color: var(--ap-v19-orange);
}

body.home .apb-image-text {
  grid-template-columns: minmax(340px, .8fr) minmax(420px, 1.2fr);
  gap: clamp(44px, 8vw, 126px);
  align-items: center;
  border-bottom: 1px solid var(--ap-v19-line);
}

body.home .apb-layout-image-right .apb-image-text-copy {
  order: 1;
}

body.home .apb-layout-image-right .apb-image-text-media {
  order: 2;
}

body.home .apb-image-text-media {
  min-height: 520px;
  border: 1px solid var(--ap-v19-line);
  border-radius: var(--ap-v19-radius);
  background-color: var(--ap-v19-soft);
  background-image:
    linear-gradient(rgba(31,61,59,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31,61,59,.07) 1px, transparent 1px);
  background-size: 38px 38px;
  overflow: hidden;
}

body.home .apb-image-text-media:empty::before {
  content: "+";
  display: grid;
  place-items: center;
  min-height: 520px;
  color: var(--ap-v19-orange);
  font-size: clamp(120px, 16vw, 240px);
  font-weight: 800;
  transform: rotate(-8deg);
}

body.home .apb-image-text-media:empty::after {
  content: none;
}

body.home .apb-image-text-media img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

body.home .apb-image-text-copy {
  display: grid;
  gap: 30px;
}

body.home .apb-image-text-copy p {
  max-width: 680px;
  margin: 0 0 1.1em;
  color: var(--ap-v19-muted);
  font-size: clamp(18px, 1.55vw, 23px);
  line-height: 1.55;
}

body.home .apb-references {
  border-bottom: 1px solid var(--ap-v19-line);
}

@media (max-width: 1080px) {
  body.home .apb-hero.home-hero {
    grid-template-columns: minmax(260px, .7fr) minmax(390px, 1.3fr);
    gap: 48px;
  }
  body.home .simple-section-head {
    grid-template-columns: 120px minmax(0, 1fr);
  }
  body.home .simple-section-head .ap-section-intro,
  body.home .simple-section-head > a {
    grid-column: 2;
    justify-self: start;
  }
  body.home .ap-showreel {
    grid-template-columns: 1fr;
    align-items: start;
  }
  body.home .ap-showreel-heading {
    grid-template-columns: 120px minmax(0, 1fr);
  }
  body.home .ap-showreel-heading p {
    grid-column: 2;
    max-width: 680px;
  }
  body.home .apb-image-text {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
}

@media (max-width: 760px) {
  body.home .apb-hero.home-hero,
  body.home .apb-hero.home-hero.apb-hero--text {
    min-height: 0;
    padding: 72px 20px 88px;
    grid-template-columns: 1fr;
    gap: 34px;
  }
  body.home .apb-hero .home-hero-copy {
    order: 1;
    padding: 0;
  }
  body.home .apb-hero-media {
    order: 2;
    aspect-ratio: 4 / 3;
  }
  body.home .apb-hero .home-hero-copy h1 {
    font-size: clamp(58px, 16vw, 92px);
    line-height: .84;
  }
  body.home .apb-hero .home-hero-copy > p {
    margin-top: 30px;
    font-size: 17px;
  }
  body.home .apb-section,
  body.home .ap-showreel {
    padding: 82px 20px;
  }
  body.home .simple-section-head,
  body.home .ap-showreel-heading {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-bottom: 42px;
  }
  body.home .simple-section-head .ap-section-intro,
  body.home .simple-section-head > a,
  body.home .ap-showreel-heading p {
    grid-column: 1;
  }
  body.home .simple-section-head h2,
  body.home .ap-showreel-heading h2,
  body.home .apb-image-text-copy h2 {
    font-size: clamp(48px, 13vw, 70px);
  }
  body.home .ap-showreel {
    display: grid;
  }
  body.home .ap-showreel-play {
    width: 82px;
    height: 82px;
    font-size: 28px;
  }
  body.home .ap-services-grid {
    grid-template-columns: 1fr;
  }
  body.home .ap-service-copy {
    min-height: 0;
  }
  body.home .apb-image-text,
  body.home .apb-layout-image-right {
    grid-template-columns: 1fr;
    gap: 38px;
  }
  body.home .apb-layout-image-right .apb-image-text-copy,
  body.home .apb-layout-image-right .apb-image-text-media {
    order: initial;
  }
  body.home .apb-image-text-media,
  body.home .apb-image-text-media img,
  body.home .apb-image-text-media:empty::before {
    min-height: 390px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.home .ap-showreel-player > img,
  body.home .ap-showreel-play,
  body.home .ap-service-card-link,
  body.home .ap-service-visual > img,
  body.home .ap-service-arrow {
    transition: none;
  }
}
