/* Design homepage. The project photo provides the visual focus. */

.home-brand-intro {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  overflow: hidden;
  touch-action: none;
  background: #171d1a radial-gradient(ellipse at 50% 44%, #303d33 0%, #222b25 43%, #151a18 100%);
  animation: home-brand-intro-exit 380ms ease 1200ms forwards;
}
.home-brand-intro[hidden] { display: none; }
.home-brand-intro-lockup {
  display: flex;
  align-items: center;
  gap: clamp(18px, 4vw, 58px);
}
.home-brand-intro-lockup > svg {
  display: block;
  height: auto;
  filter: brightness(0) invert(1) sepia(.15) brightness(.96);
  animation: home-brand-intro-arrive 510ms var(--site-motion-ease, ease-out) both;
}
.home-brand-intro-lockup > .home-brand-intro-design {
  width: clamp(128px, 23vw, 272px);
  aspect-ratio: 2622 / 1048;
  animation-delay: 60ms;
}
.home-brand-intro-lockup > .home-brand-intro-rental {
  width: clamp(124px, 21vw, 240px);
  aspect-ratio: 2631 / 615;
  animation-delay: 180ms;
}
.home-brand-intro-divider {
  width: 1px;
  height: clamp(34px, 4vw, 58px);
  background: #cbb798;
  animation: home-brand-intro-rule 420ms ease-out 150ms both;
}
@media (max-width: 560px) {
  .home-brand-intro-lockup { flex-direction: column; gap: clamp(17px, 5.8vw, 28px); }
  .home-brand-intro-lockup > .home-brand-intro-design { width: clamp(132px, 54vw, 208px); }
  .home-brand-intro-lockup > .home-brand-intro-rental { width: clamp(124px, 51vw, 192px); }
  .home-brand-intro-divider { width: 38px; height: 1px; }
}
@keyframes home-brand-intro-arrive {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
@keyframes home-brand-intro-rule { from { opacity: 0; } to { opacity: .63; } }
@keyframes home-brand-intro-exit { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) {
  .home-brand-intro { display: none; animation: none; }
}

.home-kicker {
  color: var(--brand-accent);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .13em;
  margin: 0 0 14px;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, .83fr) minmax(0, 1.17fr);
  align-items: center;
  column-gap: clamp(24px, 4.4vw, 66px);
  padding-block: clamp(34px, 4.5vw, 72px) clamp(25px, 3.4vw, 48px);
}

.home-hero-copy { min-width: 0; color: var(--brand-ink); }
.home-hero-copy .home-kicker { display: flex; align-items: center; gap: 12px; }
.home-hero-copy .home-kicker::before { content: ''; inline-size: 26px; block-size: 1px; background: currentColor; }
.home-hero h1 {
  font-size: clamp(2.5rem, 5.25vw, 5.6rem);
  font-weight: 500;
  line-height: 1.17;
  letter-spacing: -.025em;
}
.home-hero h1 span { display: block; color: var(--brand-accent); }
.home-hero-description {
  max-width: 22rem;
  margin-top: 24px;
  color: var(--brand-muted);
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  line-height: 1.85;
  text-wrap: pretty;
}
.home-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 21px; margin-top: 27px; }
.home-primary, .home-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 49px;
  font-size: .9375rem;
  font-weight: 500;
  letter-spacing: .02em;
  line-height: 1.5;
}
.home-primary { background: var(--brand-accent); color: var(--brand-on-dark); padding: 9px 17px; gap: 15px; }
.home-primary:hover { background: var(--brand-accent-strong); }
.home-action-arrow { font-size: 1.1em; }
.home-secondary { color: var(--brand-accent-strong); text-decoration: underline; text-underline-offset: 5px; }
.home-secondary:hover { text-decoration-thickness: 2px; }
.home-hero-visual {
  min-width: 0;
  margin: 0;
  padding: clamp(9px, 1.3vw, 18px);
  border: 1px solid var(--brand-line);
  background: linear-gradient(130deg, var(--brand-panel), var(--brand-wash));
}
.home-hero-photo {
  display: block;
  aspect-ratio: 1.48;
  overflow: hidden;
  background: var(--brand-paper);
}
.home-hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.home-hero-visual figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 16px;
  padding-top: 10px;
  color: var(--brand-muted);
  font-size: .8125rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.home-hero-visual figcaption a { color: var(--brand-accent-strong); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
[data-home-gallery] { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; }
[data-home-gallery] .home-hero-photo { position: relative; isolation: isolate; touch-action: pan-y pinch-zoom; grid-column: 1 / -1; grid-row: 1; }
[data-home-gallery] .home-hero-photo img { position: absolute; inset: 0; }
@supports (mix-blend-mode: plus-lighter) {
  [data-home-gallery] .home-hero-photo[data-home-fading] { background-color: transparent; }
  [data-home-gallery] .home-hero-photo[data-home-fading] img { mix-blend-mode: plus-lighter; }
}
[data-home-gallery] figcaption { grid-column: 1; grid-row: 2; align-items: center; gap: 8px 16px; min-height: 56px; }
.home-hero-caption { display: flex; align-items: baseline; flex-wrap: wrap; flex: 1 1 12rem; gap: 4px 14px; min-width: 0; }
.home-hero-controls { display: flex; grid-column: 2; grid-row: 2; align-self: center; flex-shrink: 0; align-items: center; gap: 6px; padding-top: 10px; color: var(--brand-accent-strong); font-variant-numeric: tabular-nums; }
.home-hero-controls[hidden] { display: none; }
.home-hero-controls button {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--brand-line);
  background: var(--brand-paper);
  color: var(--brand-accent-strong);
}
.home-hero-controls button:hover { color: var(--brand-on-dark); background: var(--brand-accent); border-color: var(--brand-accent); }
.home-hero :is(a, button):focus-visible, .home-brand-path a:focus-visible { outline: 2px solid var(--brand-accent); outline-offset: 3px; }
.home-hero-controls button[data-home-step] > span { width: 8px; height: 8px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); }
.home-hero-controls button[data-home-step="-1"] span { transform: rotate(-135deg); }
.home-hero-controls [data-home-count] { min-width: 34px; text-align: center; }
.home-hero-controls [data-home-autoplay] { display: inline-flex; justify-content: center; gap: 7px; padding: 8px 10px; font-size: 13px; line-height: 1.4; white-space: nowrap; }
.home-autoplay-icon { width: 10px; height: 12px; background: linear-gradient(to right, currentColor 0 3px, transparent 3px 7px, currentColor 7px 10px); }
[data-home-autoplay][data-home-paused="true"] .home-autoplay-icon { background: currentColor; clip-path: polygon(15% 0, 100% 50%, 15% 100%); }

.home-brand-path {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.home-brand-path a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  min-width: 0;
  min-height: 94px;
  align-content: center;
  padding: 15px clamp(11px, 2.1vw, 28px);
  border: 1px solid #c6d3c7;
  background: #e8eee5;
  color: #264437;
  line-height: 1.55;
}
.home-brand-path a:first-child { color: var(--brand-accent-strong); border-color: var(--brand-line); background: var(--brand-panel); }
.home-brand-path a:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.home-brand-path span { grid-column: 1; font-size: .8125rem; overflow-wrap: anywhere; }
.home-brand-path strong { grid-column: 1; font-size: clamp(1rem, 1.65vw, 1.25rem); font-weight: 600; }
.home-brand-path a::after { content: ''; grid-area: 1 / 2 / span 2; align-self: end; width: 9px; height: 9px; margin: 0 2px 5px; border: solid currentColor; border-width: 1px 1px 0 0; }

.home-brand-path + .portfolio-section { padding-block: clamp(52px, 6vw, 88px); }
.portfolio-section .section-heading { align-items: flex-end; }
.portfolio-section .section-heading h2 { color: var(--brand-ink); font-size: clamp(2.1rem, 4.1vw, 3.8rem); line-height: 1.27; }
.portfolio-section .section-heading .text-link { color: var(--brand-accent-strong); width: fit-content; min-height: 45px; }
.portfolio-section .portfolio-toolbar { margin-top: clamp(20px, 3vw, 34px); }
.portfolio-section .filters { gap: 8px; flex-wrap: wrap; padding-block: 4px 12px; }
.portfolio-section .filter { min-height: 44px; padding: 7px 12px; border: 1px solid var(--brand-line); color: var(--brand-accent-strong); font-size: .875rem; }
.portfolio-section .filter.active { background: var(--brand-accent); border-color: var(--brand-accent); color: var(--brand-on-dark); }
.portfolio-section .filter.active span { color: inherit; }
.portfolio-section .filter.active::after { display: none; }
.portfolio-section .portfolio-note { color: var(--brand-muted); font-size: .8125rem; }
.portfolio-section .portfolio-grid { gap: clamp(24px, 4vw, 52px) clamp(20px, 3.2vw, 42px); }
.portfolio-section .project-card:nth-child(even) { margin-top: 0; }
.portfolio-section .project-image { aspect-ratio: 1.42; }
.portfolio-section .project-caption { gap: 12px; align-items: flex-start; padding: 14px 16px 16px; border: 1px solid var(--brand-line); border-top: 0; background: var(--brand-wash); }
.portfolio-section .project-caption h3 { overflow-wrap: anywhere; }
.portfolio-section .project-kind { font-size: .8125rem; color: var(--brand-muted); }
.portfolio-section .project-label { color: var(--brand-ink); background: var(--brand-paper); font-size: .75rem; }
.portfolio-section .project-number { display: none; }

@media (prefers-reduced-motion: no-preference) {
  @supports (translate: 0 1px) {
    [data-home-works-motion] .project-image[data-home-work-parallax] {
      --home-work-travel: clamp(13px, 1.55vw, 22px);
    }
    [data-home-works-motion] .project-image[data-home-work-parallax] img {
      /* The fixed frame crops an equal allowance on both ends. Translating the
         oversized image alone keeps its hover scale and the card layout intact. */
      position: absolute;
      inset-block-start: calc(0px - var(--home-work-travel));
      inset-inline-start: 0;
      width: 100%;
      height: calc(100% + var(--home-work-travel) + var(--home-work-travel));
      translate: 0 calc(var(--home-work-shift, 0) * var(--home-work-travel));
    }
    [data-home-works-motion] .project-card:focus-within .project-image[data-home-work-parallax] img {
      translate: none;
    }
    @media (max-width: 760px) {
      [data-home-works-motion] .project-image[data-home-work-parallax] { --home-work-travel: 8px; }
    }
  }

  [data-home-works-motion] .project-card:not(:focus-within) > .project-image[data-home-work-enter] {
    animation: home-work-photo-arrive 590ms var(--site-motion-ease) backwards;
  }
  [data-home-works-motion] .project-card:not(:focus-within) > .project-caption[data-home-work-enter] {
    animation: home-work-caption-arrive 390ms var(--site-motion-ease) 90ms backwards;
  }
}

@keyframes home-work-photo-arrive {
  from { opacity: .9; translate: 0 9px; }
  to { opacity: 1; translate: none; }
}

@keyframes home-work-caption-arrive {
  from { opacity: .93; translate: 0 8px; }
  to { opacity: 1; translate: none; }
}

@media (min-width: 761px) {
  .portfolio-section .portfolio-grid { grid-template-columns: minmax(0, 1.19fr) minmax(0, 1fr); }
  .portfolio-section .portfolio-grid:has(.project-card:only-child) { grid-template-columns: minmax(0, 1fr); }
  .portfolio-section .project-card:only-child {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
    align-items: end;
    gap: clamp(22px, 4vw, 58px);
  }
  .portfolio-section .project-card:only-child .project-caption { align-self: end; align-items: end; border: 1px solid var(--brand-line); padding: 22px; }
  .portfolio-section .project-card:only-child .project-caption h3 { font-size: clamp(1.625rem, 3.5vw, 3.3rem); }
}

.home-service { background: var(--brand-dark); color: var(--brand-on-dark); }
.home-service-inner {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(26px, 7vw, 100px);
  align-items: start;
  padding-block: clamp(44px, 6vw, 88px);
}
.home-service .home-kicker { color: #e5cbb0; }
.home-service h2 { font-size: clamp(2rem, 4vw, 3.75rem); font-weight: 500; line-height: 1.38; }
.home-service header > p:last-child { max-width: 21rem; margin-top: 16px; color: var(--brand-on-dark-muted); font-size: 1rem; line-height: 1.8; }
.home-service-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.home-service-options a {
  display: grid;
  align-content: center;
  gap: 7px;
  min-height: 106px;
  padding: 15px clamp(13px, 2vw, 23px);
  border: 1px solid #6b7063;
  line-height: 1.65;
}
.home-service-options a:first-child { grid-column: 1 / -1; background: #3d4637; }
.home-service-options a:hover { background: #4b5546; }
.home-service-options strong { font-family: var(--serif); font-size: clamp(1.125rem, 1.8vw, 1.4rem); font-weight: 500; }
.home-service-options span { color: var(--brand-on-dark-muted); font-size: .9375rem; }
.home-service a:focus-visible { outline-color: #f0d0b8; }
.process .section-heading h2 { color: var(--brand-ink); font-size: clamp(2rem, 3.6vw, 3.25rem); }

.home-faq {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
  align-items: start;
  gap: clamp(20px, 4.5vw, 64px);
  padding-block: clamp(42px, 5.5vw, 80px);
  border-top: 1px solid var(--brand-line);
}
.home-faq h2 { color: var(--brand-ink); font-size: clamp(2rem, 3.6vw, 3.25rem); line-height: 1.4; }
.home-faq-list { display: grid; gap: 8px; align-content: start; }
.home-faq-list details { border: 1px solid var(--brand-line); background: var(--brand-wash); }
.home-faq-list details[open] { background: var(--brand-panel); }
.home-faq-list summary { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; min-height: 53px; padding: 12px 16px; color: var(--brand-accent-strong); font-size: 1rem; font-weight: 600; line-height: 1.65; cursor: pointer; list-style: none; }
.home-faq-list summary::-webkit-details-marker { display: none; }
.home-faq-list summary::after { content: ''; width: 8px; height: 8px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.home-faq-list details[open] > summary::after { transform: rotate(225deg); }
.home-faq-list p { color: var(--brand-muted); font-size: 1rem; line-height: 1.85; padding: 0 16px 16px; }
.home-faq-list a { display: flex; align-items: center; min-height: 44px; margin-top: 5px; color: var(--brand-accent-strong); text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 760px) {
  .home-hero { grid-template-columns: minmax(0,1fr); gap: 22px; padding-block: 27px 20px; }
  .home-hero h1 { font-size: clamp(2.42rem, 8.3vw, 3.8rem); }
  .home-hero-description { margin-top: 14px; }
  .home-hero-actions { margin-top: 15px; }
  .home-hero-photo { aspect-ratio: 1.47; }
  .home-service-inner { grid-template-columns: minmax(0, 1fr); }
  .home-faq { grid-template-columns: minmax(0, 1fr); }
  .home-service header br { display: none; }
}

@media (max-width: 600px) {
  .home-hero .home-kicker { margin-bottom: 9px; }
  .home-brand-path { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .home-brand-path a:first-child { grid-column: 1 / -1; }
  .home-brand-path a { min-height: 65px; padding: 10px; }
  .home-brand-path span { font-size: .75rem; }
  .home-brand-path strong { font-size: .875rem; }
  .portfolio-section .section-heading .text-link { margin-top: 7px; }
  .portfolio-section .portfolio-toolbar { margin-bottom: 20px; }
  [data-home-gallery] { grid-template-columns: minmax(0, 1fr); }
  [data-home-gallery] figcaption { grid-column: 1; }
  .home-hero-caption { flex: 1 1 100%; flex-direction: row; justify-content: space-between; }
  .home-hero-controls { grid-column: 1; grid-row: 3; width: 100%; gap: 6px; padding-top: 0; }
  .home-hero-controls [data-home-autoplay] { margin-right: auto; }
}
