.aj-home,.aj-page,.aj-product{box-sizing:border-box}.aj-home *,.aj-page *{box-sizing:border-box}.aj-home{display:grid;grid-template-columns:1fr 1fr;background:#263b30;color:#fff;min-height:480px}.aj-copy{align-self:center;padding:60px 10%}.aj-copy h2,.aj-page h1,.aj-contact h2{font-family:Georgia,serif;font-weight:400;line-height:1.15}.aj-copy h2{font-size:clamp(32px,4vw,56px);color:inherit}.aj-copy p,.aj-lead{line-height:1.7}.aj-kicker{text-transform:uppercase;letter-spacing:.14em;font-size:12px}.aj-link{display:inline-block;padding:14px 20px;background:#fff;color:#263b30;text-decoration:none}.aj-slider{position:relative;min-height:420px;overflow:hidden}.aj-slide{width:100%;height:100%;position:absolute;inset:0;object-fit:cover;object-position:center}.aj-slide[hidden]{display:none}.aj-controls{position:absolute;right:16px;bottom:16px;display:flex;align-items:center;gap:3px;background:#fff;color:#263b30}.aj-controls button{border:0;background:#fff;color:#263b30;min-width:48px;min-height:48px;cursor:pointer}.aj-controls span{padding:0 8px}.aj-wrap{max-width:1280px;padding:60px 24px;margin:auto}.aj-page h1{font-size:clamp(38px,5vw,64px)}.aj-lead{max-width:680px}.aj-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin:36px 0 60px}.aj-grid figure{margin:0}.aj-grid img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;background:#eee}.aj-grid figcaption{padding:12px 0;border-bottom:1px solid #d9ded9}.aj-contact{padding:40px;background:#edf1eb}.aj-contact .aj-link{background:#263b30;color:#fff}.aj-product{padding:20px 0}.aj-product a{text-decoration:underline}.aj-home a:focus-visible,.aj-home button:focus-visible,.aj-page a:focus-visible,.aj-product a:focus-visible{outline:3px solid #bc9743;outline-offset:3px}@media(max-width:700px){.aj-home{grid-template-columns:1fr}.aj-copy{padding:45px 6%}.aj-slider{min-height:360px}.aj-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.aj-wrap{padding:45px 18px}}
.aj-controls[hidden]{display:none}

/* The project images belong inside the existing home hero. */
.hero [hidden] { display:none !important; }
.hero-project-slide { position:absolute; inset:0; background:#34342e; }
.hero-project-slide img { object-position:center 45%; }
.hero .hero-content { padding-bottom:70px; }
.hero .hero-project-link { display:none; }
.hero.showing-project .hero-project-link { display:inline-flex; }
.hero.showing-project .actions > a:not(.hero-project-link) { display:none; }
.hero-pagination { position:absolute; z-index:3; bottom:20px; left:max(24px, calc((100% - 1280px) / 2)); display:flex; align-items:center; }
.hero-pagination button { appearance:none; border:0; background:transparent; width:38px; height:44px; padding:0; cursor:pointer; display:grid; place-items:center; color:white; }
.hero-pagination button span { display:block; width:16px; height:3px; background:rgba(255,255,255,.5); border-radius:2px; transition:width .2s, background .2s; }
.hero-pagination button[aria-pressed="true"] span { width:25px; background:white; }
.hero-pagination .hero-pause { font-size:11px; opacity:.85; }
.hero-pagination button:focus-visible { outline:2px solid white; outline-offset:-3px; }
@media (max-width:767px) { .hero-pagination { left:12px; bottom:12px; } .hero-project-slide img { object-position:center; } .hero.showing-project::after { background:linear-gradient(180deg, rgba(18,27,22,.22), rgba(18,27,22,.75)); } }
@media (prefers-reduced-motion:reduce) { .hero-pagination button span { transition:none; } }

.hero .hero-image-link { position:absolute; inset:0; z-index:1; }
.hero .hero-content { position:relative; z-index:2; pointer-events:none; }
.hero .hero-content a { pointer-events:auto; }
.hero-pagination { z-index:3; }

/* Keep the banner, content slots, and navigation steady between slides. */
@media (max-width:767px) {
  .hero { height: 640px; min-height: 640px; max-height: 640px; align-items: end; }
  .hero .hero-content { display:grid; grid-template-rows: 40px 116px 104px 112px; align-content:end; padding: 0 20px 72px; }
  .hero .hero-content .eyebrow { margin:0; font-size:12px; line-height:1.35; letter-spacing:.1em; align-self:start; }
  .hero .hero-content h1 { margin:0; font-size:32px; line-height:1.1; max-width: 13ch; align-self:start; }
  .hero .hero-content > p:not(.eyebrow) { margin:0; font-size:15px; line-height:1.5; max-width:34ch; align-self:start; }
  .hero .hero-content .actions { margin:0; gap:10px; align-self:start; }
  .hero .hero-content .actions .button, .hero .hero-project-link { min-height:48px; width:100%; display:flex; align-items:center; justify-content:center; padding:12px 18px; background:#fff; color:#18211c; font-size:14px; text-decoration:none; }
  .hero .hero-content .actions .light-action:not(.hero-project-link) { font-size:14px; padding: 4px 0; }
  .hero .hero-project-link[style] { color:#18211c; }
  .hero-pagination { left:13px; bottom:12px; }
}
@media (min-width:768px) { .hero { height: min(720px, calc(100svh - 100px)); min-height: min(720px, calc(100svh - 100px)); } }
@media (prefers-reduced-motion:no-preference) { .hero-project-slide:not([hidden]), .hero > picture:not([hidden]) { animation:ausf-hero-enter .35s ease-out; } @keyframes ausf-hero-enter { from { opacity:.6; } to { opacity:1; } } }
@media (max-width:767px) {
  .hero:not(.showing-project) .hero-project-link { display:none; }
  .hero.showing-project .actions > a:not(.hero-project-link) { display:none; }
}

/* Content grows naturally: long mobile headings must never overlap copy. */
@media (max-width:767px) {
 .hero .hero-content { display:flex; flex-direction:column; align-items:stretch; gap:14px; padding: 32px 20px 76px; }
 .hero .hero-content .eyebrow, .hero .hero-content h1, .hero .hero-content > p:not(.eyebrow), .hero .hero-content .actions { align-self:auto; margin:0; }
 .hero .hero-content h1 { max-width: 13ch; }
}
.joinery-feature { padding-top:0; }
.joinery-feature-inner { display:grid; grid-template-columns: 1.2fr 1fr; background:#f4f2ed; align-items:stretch; }
.joinery-feature-image { display:block; min-height:320px; }
.joinery-feature-image img { display:block; width:100%; height:100%; min-height:320px; max-height:440px; object-fit:cover; object-position:center; }
.joinery-feature-copy { padding:clamp(28px,5vw,64px); align-self:center; }
.joinery-feature-copy h2 { margin:12px 0; }
.joinery-feature-copy p:not(.eyebrow) { max-width:42ch; line-height:1.6; margin-bottom:20px; }
.aj-back { display:inline-block; margin-bottom:24px; color:#355c48; text-decoration:none; }
.aj-grid img { object-fit:contain; background:#f4f2ed; }
.aj-grid figcaption { font-size:14px; color:#354139; }
@media(max-width:767px){ .joinery-feature-inner { grid-template-columns:1fr; } .joinery-feature-image,.joinery-feature-image img { min-height:0; height:240px; } .joinery-feature-copy { padding:24px; } .aj-wrap { padding:30px 18px; } .aj-grid { gap:14px; } .aj-grid figcaption { line-height:1.4; } }

/* Flexible height follows viewport and content, including large text. */
.hero { height:auto; max-height:none; min-height:min(720px, calc(100svh - 100px)); }
.hero > .hero-content { grid-area:1 / 1; }
.hero .hero-content-sizer { visibility:hidden; pointer-events:none; }
@media (max-width:767px) {
 .hero { height:auto; max-height:none; min-height:min(640px, 76svh); }
 .hero .hero-content { padding-top:clamp(48px, 16svh, 140px); }
}

/* Preserve the original slide's full content when calculating the shared height. */
.hero.showing-project .hero-content-sizer .actions > a:not(.hero-project-link) { display:flex; }
.hero .hero-content-sizer .hero-project-link { display:none !important; }

/* Keep the mobile copy and primary action aligned across the carousel. */
@media (max-width: 767px) {
  .home .hero > .hero-content {
    align-self: stretch;
    padding-top: clamp(40px, 12svh, 104px);
  }

  .home .hero .hero-content h1 {
    max-width: 19ch;
    font-size: clamp(28px, 7.8vw, 34px);
  }

  .home .hero .hero-content .actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 48px minmax(48px, auto);
    gap: 10px;
    margin-top: auto;
    padding-top: 4px;
  }

  .home .hero .hero-content .actions > .button,
  .home .hero .hero-content .actions > .hero-project-link {
    grid-row: 1;
    border-radius: var(--radius, 4px);
  }

  .home .hero .hero-content .actions > .light-action:not(.hero-project-link) {
    grid-row: 2;
  }
}
