/* Phase 2.2 — Premium Brand Presentation System. Header behavior remains owned by the frozen baseline. */
:root {
  --yjo-editorial-width: min(1440px, calc(100% - 80px));
  --yjo-wide-width: min(1520px, calc(100% - 48px));
  --yjo-stone: #eeeee8;
  --yjo-warm: #f8f7f2;
  --yjo-ink: #103b35;
}

.homepage { background: var(--yjo-warm); }
.homepage .section { padding-block: 132px; }
.homepage .container { width: var(--yjo-editorial-width); max-width: none; }
.homepage .eyebrow { color: #73837a; letter-spacing: .18em; }

/* Hero: wide image-led opening with an intentional editorial split. */
.homepage .hero { padding: 0; background: var(--yjo-warm); }
.homepage .hero-grid { width: var(--yjo-wide-width); max-width: none; margin: 0 auto; min-height: min(760px, calc(100vh - 70px)); grid-template-columns: minmax(480px, .96fr) minmax(0, 1.42fr); }
.homepage .hero-copy { padding: clamp(72px, 8vw, 132px) clamp(32px, 5vw, 96px) 72px 0; justify-content: center; }
.homepage .hero h1 { font-size: clamp(58px, 6.5vw, 108px); line-height: .9; max-width: 620px; letter-spacing: -.075em; }
.homepage .hero-lede { font-size: 19px; line-height: 1.45; max-width: 330px; margin-bottom: 34px; }
.homepage .hero-visual { min-height: min(760px, calc(100vh - 70px)); border-radius: 0 0 0 28px; }
.homepage .hero-caption { right: 36px; bottom: 42px; font-size: 20px; }
.hero-signature { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 70px; color: #718077; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.hero-signature span + span { color: #9b7560; text-transform: none; letter-spacing: 0; font-size: 12px; }
.hero-lock-tag { position: absolute; left: 28px; bottom: 28px; display: inline-flex; align-items: center; gap: 9px; padding: 10px 13px; background: rgba(248,247,242,.88); color: var(--yjo-ink); border-radius: 999px; font-size: 11px; letter-spacing: .03em; }
.hero-lock-dot { width: 8px; height: 8px; border-radius: 50%; background: #b58b55; box-shadow: 0 0 0 4px rgba(181,139,85,.15); }

/* Principles: perceptible, quiet, and no longer footer metadata. */
.homepage .trust-strip { background: var(--yjo-ink); border: 0; color: #fff; }
.homepage .trust-grid { width: var(--yjo-wide-width); max-width: none; padding: 27px 0; gap: 0; }
.homepage .trust-item { min-height: 62px; padding: 0 30px; border-color: rgba(255,255,255,.2); }
.homepage .trust-item:first-child { padding-left: 0; }
.homepage .trust-item:last-child { padding-right: 0; }
.homepage .trust-item strong { font-size: 14px; letter-spacing: -.01em; }
.homepage .trust-item small { color: #bbd0c6; font-size: 12px; }
.homepage .line-icon { border-color: #d2e2d8; color: #d2e2d8; }

/* Approach: replace the empty centered pause with material and a thought. */
.homepage .approach-editorial { background: var(--yjo-warm); }
.approach-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); gap: clamp(48px, 8vw, 150px); align-items: center; }
.approach-image { min-height: 420px; background: linear-gradient(90deg, rgba(18,63,56,.02), rgba(18,63,56,.16)), url('scene-kitchen-temporary.png') center/cover; border-radius: 0 0 0 28px; }
.approach-copy { max-width: 560px; }
.homepage .approach-copy h2 { font-size: clamp(44px, 5vw, 74px); }
.approach-copy > p:not(.eyebrow) { font-size: 18px; color: #596a62; max-width: 46ch; }
.approach-note { margin-top: 44px !important; padding-top: 22px; border-top: 1px solid #d1d8cf; color: var(--yjo-ink) !important; font-family: Georgia, serif; font-size: 24px !important; line-height: 1.15; }

/* Sense + Secure: product capability story, not SKU cards. */
.homepage .sense-secure { background: #e7ebe4; }
.homepage .sense-secure .section-heading { align-items: end; }
.homepage .sense-secure .section-heading h2 { font-size: clamp(44px, 5.2vw, 78px); }
.homepage .feature-grid { grid-template-columns: 1.08fr .92fr; gap: 22px; }
.homepage .feature-card { border-radius: 0; background: #fff; grid-template-rows: minmax(390px, 34vw) auto; }
.homepage .feature-card.access { margin-top: 88px; }
.homepage .feature-art { background: #c9d0c3; }
.homepage .sensing .feature-art { background: linear-gradient(145deg, rgba(18,63,56,.05), rgba(18,63,56,.12)), url('scene-apartment-temporary.png') center/cover; }
.homepage .access .feature-art { background: linear-gradient(145deg, rgba(18,63,56,.03), rgba(18,63,56,.2)), url('hero-temporary.png') center/cover; }
.homepage .feature-art .feature-photo { position: absolute; inset: 0; background: linear-gradient(90deg, transparent 55%, rgba(16,59,53,.15)); }
.homepage .feature-card .orb { left: auto; right: 14%; bottom: 10%; width: 132px; height: 132px; }
.homepage .feature-card .door-shape { right: 16%; top: 13%; transform: scale(1.05); }
.homepage .card-copy { padding: 30px 34px 36px; }
.homepage .card-copy h3 { font-size: clamp(26px, 2.6vw, 40px); margin-bottom: 10px; }
.feature-description { color: #68766f; font-size: 15px; margin: 0 0 22px; }

/* Lifestyle grid: image-led and intentionally uneven. */
.homepage .homes { background: var(--yjo-stone); }
.homepage .homes-heading { margin-bottom: 48px; }
.homepage .homes-heading h2 { font-size: clamp(48px, 5.4vw, 80px); }
.homepage .solution-grid { grid-template-columns: 1.35fr 1fr 1fr; grid-template-rows: 250px 250px; gap: 14px; margin-top: 0; }
.homepage .solution-card { border-radius: 0; box-shadow: none; min-height: 0; }
.homepage .solution-card.tall { grid-row: span 2; }
.homepage .solution-image, .homepage .solution-card.tall .solution-image { height: 100%; min-height: 0; }
.homepage .solution-card > div:not(.solution-image) { position: absolute; inset: auto 0 0; padding: 24px; color: #fff; background: linear-gradient(0deg, rgba(6,26,23,.8), transparent); }
.homepage .solution-card h3 { color: #fff; font-size: clamp(18px, 1.7vw, 27px); }
.homepage .solution-card p { color: #e0e9e1; font-size: 13px; }
.homepage .solution-card .eyebrow { color: #d9e7df; margin-bottom: 8px; }
.homepage .solution-card > span { color: #fff; z-index: 2; }
.homepage .scene-entry { background-position: 72% center; }
.homepage .scene-entry { background-image: linear-gradient(145deg, rgba(18,63,56,.05), rgba(18,63,56,.08)), url('hero-temporary.png'); background-size: cover; }
.homepage .scene-living { background-image: linear-gradient(145deg, rgba(18,63,56,.03), rgba(18,63,56,.12)), url('scene-apartment-temporary.png'); background-size: cover; }
.homepage .scene-family { background-image: linear-gradient(145deg, rgba(18,63,56,.03), rgba(18,63,56,.12)), url('scene-family-temporary.png'); background-size: cover; }
.homepage .scene-kitchen { background-image: linear-gradient(145deg, rgba(18,63,56,.03), rgba(18,63,56,.12)), url('scene-kitchen-temporary.png'); background-size: cover; }

/* Brand story: retain the strongest existing moment and make it a climax. */
.homepage .peace { min-height: 650px; background-position: center; }
.homepage .peace-inner { width: var(--yjo-editorial-width); max-width: none; }
.homepage .peace h2 { max-width: 720px; font-size: clamp(54px, 7vw, 112px); }
.homepage .peace .button { min-height: 50px; padding-inline: 24px; }

/* Products: two hero products with presence, no commerce UI. */
.homepage .products { background: #fff; }
.homepage .products .section-heading h2 { font-size: clamp(48px, 5.5vw, 82px); }
.homepage .products .section-heading > p { max-width: 330px; font-size: 16px; }
.homepage .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.homepage .product-card { border: 0; border-radius: 0; background: #f1f1eb; box-shadow: none; }
.homepage .product-visual { height: clamp(370px, 34vw, 520px); }
.homepage .lock-visual { background: linear-gradient(110deg, rgba(18,63,56,.05), rgba(18,63,56,.02)), url('hero-temporary.png') center/cover; justify-content: end; }
.homepage .sensor-visual { background: linear-gradient(110deg, rgba(18,63,56,.06), rgba(18,63,56,.02)), url('scene-apartment-temporary.png') center/cover; justify-content: end; }
.homepage .product-visual .mini-lock { margin-right: 15%; transform: scale(1.15); }
.homepage .product-visual .mini-orb { margin-right: 17%; transform: scale(1.1); }
.homepage .product-info { padding: 28px 30px 34px; }
.homepage .product-info h3 { font-size: clamp(25px, 2.3vw, 36px); }
.homepage .product-info p:not(.eyebrow) { font-size: 15px; max-width: 30ch; }

/* Proof points. */
.homepage .philosophy { background: var(--yjo-stone); }
.homepage .philosophy .center h2 { font-size: clamp(42px, 5vw, 72px); }
.homepage .principle-grid { margin-top: 68px; }
.homepage .principle-grid > div { padding: 35px 28px; }
.homepage .principle-grid h3 { font-size: 20px; }
.homepage .principle-grid p { font-size: 14px; }

/* Learn: editorial cards with enough image area to feel like a knowledge center. */
.homepage .learn { background: var(--yjo-warm); }
.homepage .learn .section-heading h2 { font-size: clamp(48px, 5.2vw, 78px); }
.homepage .learn .section-heading > p { max-width: 330px; font-size: 16px; }
.homepage .article-grid { grid-template-columns: 1.22fr 1fr 1fr; gap: 16px; }
.homepage .article-card { border-radius: 0; padding-bottom: 30px; box-shadow: none; }
.homepage .article-card:first-child { grid-row: span 2; }
.homepage .article-card > .article-art, .homepage .article-card > img { height: 300px; margin-bottom: 25px; }
.homepage .article-card:first-child > .article-art, .homepage .article-card:first-child > img { height: 520px; }
.homepage .article-card h3 { font-size: clamp(20px, 2vw, 29px); }
.homepage .article-lock { background-image: linear-gradient(145deg, rgba(18,63,56,.05), rgba(18,63,56,.08)), url('hero-temporary.png'); background-size: cover; background-position: 72% center; }
.homepage .article-sensor { background-image: linear-gradient(145deg, rgba(18,63,56,.03), rgba(18,63,56,.12)), url('scene-apartment-temporary.png'); background-size: cover; }
.homepage .article-basics { background-image: linear-gradient(145deg, rgba(18,63,56,.03), rgba(18,63,56,.12)), url('scene-family-temporary.png'); background-size: cover; }

/* Newsletter/footer remain structurally unchanged, only scale with the new system. */
.homepage .newsletter { padding-block: 105px; }
.homepage .newsletter h2 { font-size: clamp(42px, 5vw, 75px); }

@media (max-width: 900px) {
  .homepage .container, .homepage .peace-inner { width: calc(100% - 40px); }
  .homepage .hero-grid { width: 100%; grid-template-columns: 1fr; }
  .homepage .hero-copy { padding: 78px 40px 62px; }
  .homepage .hero-visual { min-height: 560px; border-radius: 0; }
  .homepage .trust-grid { width: calc(100% - 40px); }
  .approach-grid { gap: 50px; }
  .homepage .feature-grid { grid-template-columns: 1fr; }
  .homepage .feature-card.access { margin-top: 0; }
  .homepage .solution-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 300px 230px 230px; }
  .homepage .solution-card.tall { grid-row: span 1; grid-column: span 2; }
  .homepage .product-grid { grid-template-columns: 1fr 1fr; }
  .homepage .article-grid { grid-template-columns: 1fr 1fr; }
  .homepage .article-card:first-child { grid-row: span 1; }
  .homepage .article-card:first-child > .article-art, .homepage .article-card:first-child > img { height: 300px; }
}

@media (max-width: 520px) {
  .homepage .section { padding-block: 76px; }
  .homepage .container, .homepage .peace-inner, .homepage .trust-grid { width: calc(100% - 32px); }
  .homepage .hero-copy { padding: 62px 16px 48px; }
  .homepage .hero h1 { font-size: clamp(46px, 13vw, 60px); }
  .homepage .hero-lede { font-size: 16px; }
  .hero-signature { margin-top: 48px; }
  .homepage .hero-visual { min-height: 430px; }
  .homepage .hero-lock-tag { left: 16px; bottom: 16px; font-size: 10px; }
  .homepage .trust-grid { grid-template-columns: 1fr 1fr; }
  .homepage .trust-item, .homepage .trust-item:first-child, .homepage .trust-item:last-child { padding: 15px 8px 15px 0; }
  .approach-grid { grid-template-columns: 1fr; gap: 30px; }
  .approach-image { min-height: 280px; }
  .homepage .approach-copy h2 { font-size: 43px; }
  .approach-note { font-size: 21px !important; }
  .homepage .sense-secure .section-heading h2, .homepage .homes-heading h2, .homepage .products .section-heading h2, .homepage .learn .section-heading h2 { font-size: 45px; }
  .homepage .feature-card { grid-template-rows: 285px auto; }
  .homepage .feature-card .door-shape { transform: scale(.78); transform-origin: bottom right; }
  .homepage .card-copy { padding: 25px 22px 28px; }
  .homepage .solution-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 260px 190px 190px; gap: 8px; }
  .homepage .solution-card > div:not(.solution-image) { padding: 15px; }
  .homepage .solution-card h3 { font-size: 17px; }
  .homepage .solution-card p { font-size: 11px; }
  .homepage .peace { min-height: 490px; }
  .homepage .peace h2 { font-size: 53px; }
  .homepage .product-grid, .homepage .article-grid { grid-template-columns: 1fr; }
  .homepage .product-visual { height: 330px; }
  .homepage .article-card:first-child > .article-art, .homepage .article-card:first-child > img, .homepage .article-card > .article-art, .homepage .article-card > img { height: 250px; }
  .homepage .newsletter { padding-block: 78px; }
}

/* 2.2.2 correction: keep the reference's commercial clarity and density. */
@media (min-width: 901px) {
  .homepage .section { padding-block: 104px; }
  .homepage .approach-editorial { padding-block: 104px; }
  .homepage .approach-copy h2 { font-size: clamp(42px, 4.2vw, 62px); }
  .homepage .sense-secure .section-heading h2,
  .homepage .homes-heading h2,
  .homepage .products .section-heading h2,
  .homepage .learn .section-heading h2 { font-size: clamp(40px, 4.2vw, 62px); }
  .homepage .feature-card { grid-template-rows: minmax(340px, 29vw) auto; }
  .homepage .peace { min-height: 560px; }
  .homepage .peace h2 { font-size: clamp(52px, 5.8vw, 88px); }
  .homepage .product-visual { height: clamp(340px, 29vw, 440px); }
  .homepage .principle-grid { margin-top: 48px; }
  .homepage .learn .section-heading { margin-bottom: 30px; }
}

/* Phase 2.2.3 — Mobile is a first-class compact composition, not a stacked Desktop page. */
@media (max-width: 520px) {
  .homepage .section { padding-block: 42px; }
  .homepage .hero { padding: 0; }
  .homepage .hero-copy { padding: 34px 16px 28px; }
  .homepage .hero h1 { max-width: 330px; font-size: clamp(39px, 11.3vw, 47px); line-height: .94; letter-spacing: -.065em; margin-bottom: 16px; }
  .homepage .hero-lede { max-width: 290px; font-size: 14px; line-height: 1.35; margin-bottom: 20px; }
  .homepage .hero .button-row { display: flex; flex-wrap: nowrap; gap: 8px; }
  .homepage .hero .button-row .button { width: auto; min-height: 42px; padding-inline: 12px; font-size: 11px; }
  .hero-signature { margin-top: 24px; gap: 8px; font-size: 8px; }
  .hero-signature span + span { font-size: 10px; }
  .homepage .hero-visual { min-height: 270px; height: 270px; }
  .homepage .hero-visual img { object-position: 68% center; }
  .homepage .hero-caption { right: 15px; bottom: 42px; font-size: 13px; }
  .homepage .hero-lock-tag { left: 12px; bottom: 12px; padding: 8px 10px; font-size: 9px; }

  .homepage .trust-grid { padding-block: 4px; }
  .homepage .trust-item, .homepage .trust-item:first-child, .homepage .trust-item:last-child { min-height: 54px; padding: 10px 5px 10px 0; gap: 8px; }
  .homepage .trust-item .line-icon { width: 26px; height: 26px; flex-basis: 26px; font-size: 12px; }
  .homepage .trust-item strong { font-size: 10px; }
  .homepage .trust-item small { font-size: 9px; line-height: 1.15; margin-top: 1px; }

  .homepage .approach-editorial { padding-block: 42px; }
  .approach-grid { gap: 18px; }
  .approach-image { min-height: 190px; border-radius: 0 0 0 18px; background-position: center; }
  .homepage .approach-copy h2 { font-size: 31px; line-height: 1; margin-bottom: 12px; }
  .approach-copy > p:not(.eyebrow) { font-size: 13px; line-height: 1.4; }
  .approach-note { margin-top: 18px !important; padding-top: 12px; font-size: 17px !important; }

  .homepage .sense-secure { padding-block: 44px; }
  .homepage .sense-secure .section-heading { margin-bottom: 22px; }
  .homepage .sense-secure .section-heading h2 { font-size: 31px; line-height: 1; }
  .homepage .sense-secure .section-heading > p { font-size: 12px; margin-top: 9px; }
  .homepage .feature-grid { gap: 14px; }
  .homepage .feature-card { grid-template-rows: 220px auto; }
  .homepage .feature-card.access { margin-top: 0; }
  .homepage .feature-card .orb { width: 88px; height: 88px; right: 12%; bottom: 9%; }
  .homepage .feature-card .door-shape { right: 13%; top: 8%; transform: scale(.64); }
  .homepage .card-copy { padding: 17px 18px 20px; }
  .homepage .card-copy .eyebrow { font-size: 9px; margin-bottom: 8px; }
  .homepage .card-copy h3 { font-size: 22px; line-height: 1.05; margin-bottom: 7px; }
  .feature-description { font-size: 12px; margin-bottom: 12px; }
  .homepage .text-link { font-size: 11px; }

  .homepage .homes { padding-block: 45px; }
  .homepage .homes-heading { margin-bottom: 22px; }
  .homepage .homes-heading h2 { font-size: 32px; line-height: 1; }
  .homepage .homes-heading > p { font-size: 12px; margin-top: 8px; }
  .homepage .solution-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 188px 142px 142px; gap: 7px; }
  .homepage .solution-card.tall { grid-column: span 2; }
  .homepage .solution-card > div:not(.solution-image) { padding: 10px; }
  .homepage .solution-card .eyebrow { font-size: 7px; margin-bottom: 4px; }
  .homepage .solution-card h3 { font-size: 14px; line-height: 1; }
  .homepage .solution-card p { font-size: 9px; line-height: 1.15; margin-top: 3px; }
  .homepage .solution-card > span { right: 8px; bottom: 9px; font-size: 12px; }

  .homepage .peace { min-height: 360px; }
  .homepage .peace h2 { max-width: 290px; font-size: 42px; line-height: .94; margin-bottom: 18px; }
  .homepage .peace-inner { width: calc(100% - 32px); }
  .homepage .peace .button { min-height: 42px; padding-inline: 15px; font-size: 11px; }

  .homepage .products { padding-block: 46px; }
  .homepage .products .section-heading { margin-bottom: 22px; }
  .homepage .products .section-heading h2 { font-size: 32px; line-height: 1; }
  .homepage .products .section-heading > p { font-size: 12px; margin-top: 8px; }
  .homepage .product-grid { grid-template-columns: 1fr; gap: 12px; }
  .homepage .product-visual { height: 238px; }
  .homepage .product-visual .mini-lock { transform: scale(.82); margin-right: 15%; }
  .homepage .product-visual .mini-orb { transform: scale(.78); margin-right: 17%; }
  .homepage .product-info { padding: 16px 18px 19px; }
  .homepage .product-info .eyebrow { font-size: 9px; margin-bottom: 8px; }
  .homepage .product-info h3 { font-size: 23px; margin-bottom: 5px; }
  .homepage .product-info p:not(.eyebrow) { font-size: 12px; margin-bottom: 10px; }

  .homepage .philosophy { padding-block: 46px; }
  .homepage .philosophy .center h2 { font-size: 31px; line-height: 1; }
  .homepage .principle-grid { grid-template-columns: 1fr 1fr; margin-top: 24px; }
  .homepage .principle-grid > div, .homepage .principle-grid > div:nth-child(2), .homepage .principle-grid > div:nth-child(3) { padding: 14px 10px; }
  .homepage .principle-grid span { font-size: 18px; }
  .homepage .principle-grid h3 { font-size: 12px; margin: 7px 0 3px; }
  .homepage .principle-grid p { font-size: 10px; line-height: 1.15; }

  .homepage .learn { padding-block: 46px; }
  .homepage .learn .section-heading { margin-bottom: 22px; }
  .homepage .learn .section-heading h2 { font-size: 32px; line-height: 1; }
  .homepage .learn .section-heading > p { font-size: 12px; margin-top: 8px; }
  .homepage .article-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .homepage .article-card:first-child { grid-column: 1 / -1; }
  .homepage .article-card > .article-art, .homepage .article-card > img,
  .homepage .article-card:first-child > .article-art, .homepage .article-card:first-child > img { height: 174px; margin-bottom: 12px; }
  .homepage .article-card:not(:first-child) > .article-art, .homepage .article-card:not(:first-child) > img { height: 112px; }
  .homepage .article-card > p, .homepage .article-card > h3, .homepage .article-card > .text-link { margin-left: 12px; margin-right: 12px; }
  .homepage .article-card .eyebrow { font-size: 8px; margin-bottom: 6px; }
  .homepage .article-card h3 { font-size: 16px; line-height: 1.05; margin-bottom: 10px; }
  .homepage .article-card:not(:first-child) h3 { font-size: 13px; }
  .homepage .article-card .text-link { font-size: 10px; }

  .homepage .newsletter { padding-block: 48px; }
  .homepage .newsletter h2 { font-size: 34px; line-height: 1; }
  .homepage .newsletter p:not(.eyebrow) { font-size: 12px; }
  .homepage .signup { margin-top: 22px; }
}

@media (max-width: 330px) {
  .homepage .hero-copy { padding-inline: 12px; }
  .homepage .hero h1 { font-size: 37px; }
  .homepage .hero .button-row .button { padding-inline: 9px; font-size: 10px; }
  .homepage .hero-visual { min-height: 248px; height: 248px; }
  .homepage .solution-grid { grid-template-rows: 175px 132px 132px; }
  .homepage .article-card:not(:first-child) h3 { font-size: 12px; }
}

/* Phase 2.2.3.1 closure: make the last Real Homes card intentional and compress Footer only. */
@media (max-width: 520px) {
  .homepage .solution-card:last-child { grid-column: 1 / -1; }
  .homepage .solution-card:last-child .solution-image { min-height: 120px; }
  .site-footer { padding: 30px 0 14px; }
  .site-footer .footer-top { gap: 20px; padding-bottom: 22px; }
  .site-footer .footer-links { gap: 10px; }
  .site-footer .footer-links a { margin: 4px 0; font-size: 11px; }
  .site-footer .footer-bottom { padding-top: 13px; gap: 10px; font-size: 10px; }
}

@media (max-width: 330px) {
  .homepage .solution-card:last-child .solution-image { min-height: 108px; }
}
