/* Home page styles */

/* — Hero — centered title block + full-width image — */
  .hero {
    min-height: 100vh;
    padding: calc(var(--nav-height) + 56px) 0 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
  }

  .hero-title-block {
    padding: 0 var(--gutter) 40px;
    text-align: center;
    width: 100%;
    max-width: 1200px;
  }

  .hero-eyebrow {
    margin-bottom: 30px;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    justify-content: center;
  }
  .hero-eyebrow .line {
    width: 36px;
    height: 1px;
    background: var(--ink-mute);
  }

  .hero-logo {
    display: block;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
  }
  .hero-logo svg {
    display: block;
    width: 100%;
    height: auto;
  }

  .hero-intro {
    max-width: 640px;
    margin: 30px auto 0;
    font-family: var(--body);
    font-weight: 400;
    font-size: clamp(14px, 1.15vw, 16px);
    line-height: 1.75;
    color: var(--ink-mute);
    letter-spacing: 0.005em;
  }

  /* Full-width image frame with slider */
  .hero-image-frame {
    width: 100%;
    position: relative;
    height: 60vh;
    min-height: 420px;
    overflow: hidden;
    background: var(--bone-deep);
  }

  .hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    z-index: 0;
    transition: opacity 1.2s var(--easing);
    pointer-events: none;
  }
  .hero-slide.active {
    opacity: 1;
    z-index: 1;
    pointer-events: auto;
  }

  .hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(0.92) contrast(1.02);
    transform: scale(1.02);
    transition: transform 6s var(--easing);
  }
  .hero-slide.active img {
    transform: scale(1);
  }

  .hero-image-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 70%, rgba(31, 27, 22, 0.28));
    pointer-events: none;
    z-index: 2;
  }

  .hero-slide-caption {
    position: absolute;
    bottom: 24px;
    left: 36px;
    color: var(--bone);
    font-family: var(--display);
    font-style: italic;
    font-weight: 300;
    font-size: 14px;
    letter-spacing: 0.01em;
    display: flex;
    align-items: baseline;
    gap: 12px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 1s var(--easing) 0.25s, transform 1s var(--easing) 0.25s;
  }
  .hero-slide-caption::before {
    content: '';
    display: inline-block;
    width: 22px;
    height: 1px;
    background: var(--bone);
    opacity: 0.7;
  }
  .hero-slide.active .hero-slide-caption {
    opacity: 1;
    transform: translateY(0);
  }

  .hero-slide-meta {
    position: absolute;
    bottom: 24px;
    right: 36px;
    color: var(--bone);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 1s var(--easing) 0.35s, transform 1s var(--easing) 0.35s;
  }
  .hero-slide.active .hero-slide-meta {
    opacity: 0.85;
    transform: translateY(0);
  }

  /* Slide indicators */
  .hero-indicators {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 8px;
  }
  .hero-indicator {
    width: 28px;
    height: 2px;
    background: rgba(237, 231, 221, 0.35);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.5s var(--easing), width 0.5s var(--easing);
    position: relative;
    overflow: hidden;
  }
  .hero-indicator:hover { background: rgba(237, 231, 221, 0.6); }
  .hero-indicator.active {
    background: rgba(237, 231, 221, 0.25);
    width: 48px;
  }
  .hero-indicator.active::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--bone);
    transform-origin: left;
    animation: indicatorFill 2.5s linear forwards;
  }
  @keyframes indicatorFill {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
  }

  /* Scroll indicator */
  .scroll-cue {
    position: absolute;
    top: 60vh;
    right: 36px;
    transform: translateY(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--ink-mute);
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    pointer-events: none;
  }
  .scroll-cue .line {
    width: 1px;
    height: 36px;
    background: var(--ink-mute);
    position: relative;
    overflow: hidden;
  }
  .scroll-cue .line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 50%;
    background: var(--ink);
    animation: trickle 2.4s var(--easing) infinite;
  }
  @keyframes trickle {
    0% { transform: translateY(0); }
    100% { transform: translateY(400%); }
  }



/* — Services — Hover-reveal preview — */
  .services-intro {
    max-width: 640px;
    font-family: var(--display);
    font-weight: 300;
    font-size: clamp(20px, 1.9vw, 26px);
    line-height: 1.45;
    color: var(--ink-soft);
    margin-bottom: clamp(40px, 4.5vw, 56px);
    letter-spacing: -0.005em;
  }

  .services-hover {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: clamp(32px, 4vw, 48px);
    align-items: start;
  }

  /* Left — list */
  .sh-list {
    border-top: 1px solid var(--hairline);
  }
  .sh-row {
    display: grid;
    grid-template-columns: 36px 1fr 30px;
    gap: 28px;
    padding: 32px 0;
    border-bottom: 1px solid var(--hairline);
    cursor: pointer;
    align-items: center;
    transition: padding 0.5s var(--easing);
    position: relative;
  }
  .sh-row::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 2px;
    background: var(--clay);
    transform: scaleY(0);
    transition: transform 0.5s var(--easing);
  }
  .sh-row:hover { padding-left: 14px; }
  .sh-row:hover::before { transform: scaleY(1); }

  .sh-num {
    font-family: var(--display);
    font-style: italic;
    color: var(--clay);
    font-size: 14px;
  }
  .sh-name {
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(24px, 2.4vw, 34px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--ink);
    transition: color 0.4s var(--easing);
  }
  .sh-row:hover .sh-name { color: var(--clay); }

  .sh-arrow {
    color: var(--ink-mute);
    font-family: var(--display);
    font-size: 22px;
    transition: transform 0.5s var(--easing), color 0.5s var(--easing);
    text-align: right;
  }
  .sh-row:hover .sh-arrow {
    transform: translateX(8px);
    color: var(--clay);
  }

  /* Hidden description that expands on hover (replaces previous service-desc) */
  .sh-desc {
    grid-column: 2 / 3;
    font-size: 14px;
    line-height: 1.65;
    color: var(--ink-mute);
    max-width: 520px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-top: 0;
    transition: max-height 0.6s var(--easing), opacity 0.5s var(--easing), margin-top 0.5s var(--easing);
  }
  .sh-row:hover .sh-desc,
  .sh-row.active .sh-desc {
    max-height: 200px;
    opacity: 1;
    margin-top: 12px;
  }

  /* Right — sticky preview image */
  .sh-preview {
    position: sticky;
    top: 110px;
    height: 560px;
    background: var(--bone-deep);
    border-radius: 2px;
    overflow: hidden;
  }
  .sh-preview-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.9s var(--easing), transform 6s var(--easing);
    filter: saturate(0.92) contrast(1.02);
    transform: scale(1.03);
  }
  .sh-preview-img.active {
    opacity: 1;
    transform: scale(1);
  }
  .sh-preview::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(31, 27, 22, 0.36));
    pointer-events: none;
    z-index: 1;
  }
  .sh-preview-caption {
    position: absolute;
    bottom: 22px;
    left: 26px;
    right: 26px;
    z-index: 2;
    color: var(--bone);
    display: flex;
    justify-content: space-between;
    align-items: end;
    pointer-events: none;
  }
  .sh-preview-caption .ctitle {
    font-family: var(--display);
    font-style: italic;
    font-weight: 300;
    font-size: 17px;
    letter-spacing: 0.005em;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.6s var(--easing) 0.15s, transform 0.6s var(--easing) 0.15s;
  }
  .sh-preview-caption.show .ctitle { opacity: 1; transform: translateY(0); }
  .sh-preview-caption .cmeta {
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-weight: 500;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.6s var(--easing) 0.28s, transform 0.6s var(--easing) 0.28s;
  }
  .sh-preview-caption.show .cmeta { opacity: 0.85; transform: translateY(0); }
  .sh-preview-hint {
    position: absolute;
    top: 22px;
    left: 26px;
    z-index: 2;
    color: var(--bone);
    font-family: var(--display);
    font-style: italic;
    font-weight: 300;
    font-size: 12px;
    opacity: 0.65;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .sh-preview-hint::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 1px;
    background: var(--bone);
    opacity: 0.7;
  }

/* — Why Choose — */
  .why-choose {
    background: var(--bone-soft);
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
  }
  .why-mission {
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(27px, 3.4vw, 50px);
    line-height: 1.24;
    letter-spacing: -0.02em;
    color: var(--ink);
  }
  .why-text {
    font-size: 17px;
    line-height: 1.8;
    color: var(--ink-soft);
    max-width: 680px;
  }

  /* — Services — Hover-reveal preview — */
  .services-intro {
    max-width: 640px;
    font-family: var(--display);
    font-weight: 300;
    font-size: clamp(20px, 1.9vw, 26px);
    line-height: 1.45;
    color: var(--ink-soft);
    margin-bottom: clamp(40px, 4.5vw, 56px);
    letter-spacing: -0.005em;
  }

  .services-hover {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: clamp(32px, 4vw, 48px);
    align-items: start;
  }

  /* Left — list */
  .sh-list {
    border-top: 1px solid var(--hairline);
  }
  .sh-row {
    display: grid;
    grid-template-columns: 36px 1fr 30px;
    gap: 28px;
    padding: 32px 0;
    border-bottom: 1px solid var(--hairline);
    cursor: pointer;
    align-items: center;
    transition: padding 0.5s var(--easing);
    position: relative;
  }
  .sh-row::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 2px;
    background: var(--clay);
    transform: scaleY(0);
    transition: transform 0.5s var(--easing);
  }
  .sh-row:hover { padding-left: 14px; }
  .sh-row:hover::before { transform: scaleY(1); }

  .sh-num {
    font-family: var(--display);
    font-style: italic;
    color: var(--clay);
    font-size: 14px;
  }
  .sh-name {
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(24px, 2.4vw, 34px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--ink);
    transition: color 0.4s var(--easing);
  }
  .sh-row:hover .sh-name { color: var(--clay); }

  .sh-arrow {
    color: var(--ink-mute);
    font-family: var(--display);
    font-size: 22px;
    transition: transform 0.5s var(--easing), color 0.5s var(--easing);
    text-align: right;
  }
  .sh-row:hover .sh-arrow {
    transform: translateX(8px);
    color: var(--clay);
  }

  /* Hidden description that expands on hover (replaces previous service-desc) */
  .sh-desc {
    grid-column: 2 / 3;
    font-size: 14px;
    line-height: 1.65;
    color: var(--ink-mute);
    max-width: 520px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-top: 0;
    transition: max-height 0.6s var(--easing), opacity 0.5s var(--easing), margin-top 0.5s var(--easing);
  }
  .sh-row:hover .sh-desc,
  .sh-row.active .sh-desc {
    max-height: 200px;
    opacity: 1;
    margin-top: 12px;
  }

  /* Right — sticky preview image */
  .sh-preview {
    position: sticky;
    top: 110px;
    height: 560px;
    background: var(--bone-deep);
    border-radius: 2px;
    overflow: hidden;
  }
  .sh-preview-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.9s var(--easing), transform 6s var(--easing);
    filter: saturate(0.92) contrast(1.02);
    transform: scale(1.03);
  }
  .sh-preview-img.active {
    opacity: 1;
    transform: scale(1);
  }
  .sh-preview::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(31, 27, 22, 0.36));
    pointer-events: none;
    z-index: 1;
  }
  .sh-preview-caption {
    position: absolute;
    bottom: 22px;
    left: 26px;
    right: 26px;
    z-index: 2;
    color: var(--bone);
    display: flex;
    justify-content: space-between;
    align-items: end;
    pointer-events: none;
  }
  .sh-preview-caption .ctitle {
    font-family: var(--display);
    font-style: italic;
    font-weight: 300;
    font-size: 17px;
    letter-spacing: 0.005em;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.6s var(--easing) 0.15s, transform 0.6s var(--easing) 0.15s;
  }
  .sh-preview-caption.show .ctitle { opacity: 1; transform: translateY(0); }
  .sh-preview-caption .cmeta {
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-weight: 500;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.6s var(--easing) 0.28s, transform 0.6s var(--easing) 0.28s;
  }
  .sh-preview-caption.show .cmeta { opacity: 0.85; transform: translateY(0); }
  .sh-preview-hint {
    position: absolute;
    top: 22px;
    left: 26px;
    z-index: 2;
    color: var(--bone);
    font-family: var(--display);
    font-style: italic;
    font-weight: 300;
    font-size: 12px;
    opacity: 0.65;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .sh-preview-hint::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 1px;
    background: var(--bone);
    opacity: 0.7;
  }

  /* — Projects — */
  .projects {
    background: var(--bone-soft);
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
  }

  .projects-note {
    font-family: var(--display);
    font-style: italic;
    font-size: 15px;
    color: var(--ink-mute);
    margin-bottom: clamp(36px, 4vw, 48px);
    max-width: 540px;
    line-height: 1.6;
  }

  .project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .projects-cta {
    display: flex;
    justify-content: center;
    margin-top: 56px;
  }

  .project-card {
    position: relative;
    height: 380px;
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
    background: var(--bone-deep);
    transition: transform 0.7s var(--easing);
  }
  .project-card:hover { transform: translateY(-6px); }

  .project-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(0.9) contrast(1.02);
    transition: transform 1.4s var(--easing), filter 0.7s var(--easing);
    z-index: 0;
  }
  .project-card:hover img { transform: scale(1.06); filter: saturate(1) contrast(1.03); }

  /* Gradient scrim — deepens on hover so the revealed text stays legible */
  .project-card::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, transparent 35%, rgba(31,27,22,0.35) 70%, rgba(31,27,22,0.82) 100%);
    transition: background 0.6s var(--easing);
  }
  .project-card:hover::after {
    background: linear-gradient(180deg, rgba(31,27,22,0.15) 0%, rgba(31,27,22,0.55) 55%, rgba(31,27,22,0.9) 100%);
  }

  .project-body {
    position: absolute;
    left: 30px;
    right: 30px;
    bottom: 28px;
    z-index: 2;
    color: var(--bone);
  }
  .project-index {
    font-family: var(--display);
    font-style: italic;
    font-size: 13px;
    color: rgba(237,231,221,0.75);
    display: block;
    margin-bottom: 10px;
  }
  .project-name {
    font-family: var(--display);
    font-weight: 400;
    font-size: 27px;
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin: 0;
  }

  /* — Project Modal — */
  .project-modal {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--easing), visibility 0.4s var(--easing);
  }
  .project-modal.open {
    opacity: 1;
    visibility: visible;
  }
  .project-modal-scrim {
    position: absolute;
    inset: 0;
    background: rgba(31, 27, 22, 0.72);
    backdrop-filter: blur(3px);
  }
  .project-modal-panel {
    position: relative;
    z-index: 1;
    background: var(--bone-soft);
    border-radius: 3px;
    width: min(880px, 90vw);
    max-height: 86vh;
    overflow-y: auto;
    padding: 48px 48px 44px;
    transform: translateY(24px) scale(0.98);
    transition: transform 0.5s var(--easing);
  }
  .project-modal.open .project-modal-panel {
    transform: translateY(0) scale(1);
  }
  .project-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border: 1px solid var(--hairline);
    border-radius: 50%;
    background: transparent;
    font-size: 20px;
    line-height: 1;
    color: var(--ink-soft);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--easing);
  }
  .project-modal-close:hover {
    background: var(--ink);
    color: var(--bone);
    border-color: var(--ink);
  }
  .project-modal-header {
    margin-bottom: 28px;
  }
  .project-modal-header .eyebrow {
    display: block;
    margin-bottom: 10px;
  }
  .project-modal-header h3 {
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(28px, 3.4vw, 42px);
    letter-spacing: -0.01em;
    color: var(--ink);
  }
  .project-modal-photos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 36px;
  }
  .modal-photo-placeholder {
    aspect-ratio: 4 / 3;
    border: 1px dashed var(--hairline);
    border-radius: 2px;
    background: var(--bone-deep);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .modal-photo-placeholder span {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-mute);
  }
  .modal-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 13px 26px;
    border: 1px solid var(--ink);
    border-radius: 999px;
    transition: all 0.4s var(--easing);
  }
  .modal-cta:hover { background: var(--ink); color: var(--bone); }
  .modal-cta .arrow {
    display: inline-block;
    transition: transform 0.4s var(--easing);
  }
  .modal-cta:hover .arrow { transform: translateX(4px); }

  /* — Process — */
  .process-intro {
    max-width: 620px;
    font-family: var(--display);
    font-weight: 300;
    font-size: clamp(20px, 1.9vw, 26px);
    line-height: 1.45;
    color: var(--ink-soft);
    margin-bottom: clamp(40px, 4.5vw, 56px);
    letter-spacing: -0.005em;
  }

  .process-stages {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    border-top: 1px solid var(--hairline);
  }

  .stage {
    display: grid;
    grid-template-columns: 148px minmax(260px, 30%) minmax(0, 1fr);
    column-gap: clamp(40px, 6vw, 96px);
    row-gap: 0;
    padding: clamp(48px, 5vw, 60px) 0;
    border-bottom: 1px solid var(--hairline);
    align-items: center;
    transition: background 0.6s var(--easing);
  }
  .stage:hover { background: rgba(139, 106, 79, 0.04); }

  .stage-num {
    font-family: var(--display);
    font-weight: 300;
    font-size: 56px;
    line-height: 1;
    color: var(--clay);
    letter-spacing: -0.04em;
  }
  .stage-num .slash {
    font-style: italic;
    color: var(--ink-mute);
    font-size: 0.5em;
    margin-left: 6px;
    vertical-align: middle;
  }

  .stage-name {
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(26px, 2.6vw, 38px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--ink);
    white-space: nowrap;
  }

  .stage-desc {
    font-size: 15.5px;
    line-height: 1.5;
    color: var(--ink-soft);
    max-width: none;
    justify-self: start;
    align-self: center;
  }
