.landing { background: #f7faf9; }
.topbar { background: #fff; position: relative; z-index: 2; }
.landing .header { min-height: 76px; border: 0; }
.intro { isolation: isolate; position: relative; text-align: center; color: white; }
.intro-landscape { position: absolute; z-index: -1; inset: 0 0 -11rem; overflow: hidden; border-radius: 0 0 clamp(26px, 4vw, 60px) clamp(26px, 4vw, 60px); background: radial-gradient(ellipse at 50% 50%, #197f76 0%, #10675f 46%, #084c4a 100%); }
.intro-landscape::before { content: ""; position: absolute; bottom: -12%; inset-inline: 0; height: 102%; background: url('/project-model.webp') center 72% / cover no-repeat; filter: grayscale(1); mix-blend-mode: luminosity; opacity: .14; mask-image: linear-gradient(transparent, black 70%); }
.intro-copy { padding: clamp(2.5rem, 5.5vw, 5.4rem) 1.2rem 2.5rem; }
.app-tile { display: grid; place-items: center; width: clamp(64px, 7vw, 88px); height: clamp(64px, 7vw, 88px); grid-template: minmax(0, 1fr) / minmax(0, 1fr); margin: 0 auto 1.4rem; background: linear-gradient(145deg, #fff, #e4f4f0); border: 1px solid white; border-radius: 24%; box-shadow: 0 14px 32px #082f3655, inset 0 -3px 5px #324e4c12; }
.app-tile img { height: 67%; width: auto; }
.intro h1 { display: flex; justify-content: center; align-items: baseline; gap: .23em; font-size: clamp(2.8rem, 5.5vw, 5rem); font-weight: 700; }
.intro h1 img { width: 3.12em; height: auto; filter: brightness(0) invert(1); align-self: center; }
.intro-copy p { margin: 1.05rem auto 1.35rem; max-width: 40ch; font-size: clamp(1.05rem, 1.45vw, 1.34rem); line-height: 1.48; color: #f2fffb; }
.play-badge { display: inline-flex; align-items: center; gap: .62rem; background: #101515; color: white; border: 1px solid #ffffff70; border-radius: 10px; padding: .45rem 1rem; text-align: left; line-height: 1.08; }
.play-badge svg { width: 27px; height: 31px; }
.play-badge span { display: grid; gap: 1px; }
.play-badge small { font-size: .75rem; letter-spacing: .025em; }
.play-badge strong { font-size: 1.38rem; font-weight: 500; letter-spacing: -.035em; }
.tour { position: relative; padding-inline: 12px; scroll-margin-top: .75rem; }
.tour.is-ready { height: calc(100svh + 2 * 52svh); }
.tour-stage { position: sticky; top: max(1rem, calc((100svh - min(66svh, 590px) - 94px)/2)); display: grid; justify-items: center; align-content: start; }
.phone { position: relative; height: min(66svh, 590px); max-width: calc(100vw - 52px); aspect-ratio: 0.477; border: 2px solid #48575a; border-radius: 11.4% / 5.5%; padding: clamp(5px,.8vh,8px); background: linear-gradient(110deg,#121f22,#738684 22%,#152124 47%,#060d10 92%); box-shadow: inset 0 0 0 2px #181e20, 0 20px 40px -16px #0a393d5c, 0 3px 7px #00292940; }
.phone::after { content: ""; position: absolute; right: -4px; top: 27%; width: 2px; height: 10%; background: #3c4b4b; border-radius: 0 2px 2px 0; }
.glass { position: relative; width: 100%; height: 100%; border-radius: 9.6% / 4.5%; overflow: hidden; background: #eaeef2; box-shadow: 0 0 0 1px #0c1112; }
.glass img { width: 100%; height: 100%; display: block; object-fit: contain; }
.glass img[hidden], .tour-controls[hidden] { display: none; }
.tour-selector { display: grid; justify-items: center; }
.tour-controls { display: flex; gap: 3px; margin: 1.1rem auto 0; padding: 3px; border: 1px solid #c7ddda; background: #eaf3f0; border-radius: 30px; }
.tour-controls button { background: transparent; border: 0; border-radius: 30px; min-height: 44px; padding: .45rem 1.05rem; color: #284a48; cursor: pointer; font: inherit; font-size: .94rem; font-weight: 700; }
.tour-controls button[aria-pressed="true"] { background: #075f59; color: white; }
.screen-caption { margin: .45rem 0 0; font-size: .85rem; color: #526e6b; }
.fallback { display: flex; gap: 1rem; justify-content: center; padding: 1rem; }
.fallback img { max-width: 38%; height: auto; }
.contact-section { padding: 3rem 1rem; background: #edf5f2; border-block: 1px solid #d7e5e1; }
.contact-card { display: flex; align-items: flex-start; gap: 1.3rem; width: min(100%, 40rem); margin: auto; padding: clamp(1.35rem, 3vw, 2.35rem); border-radius: 23px; background: white; border: 1px solid #d0e1db; box-shadow: var(--raised); }
.contact-card h2 { font-size: clamp(1.65rem, 3vw, 2.1rem); }
.contact-card p { margin: .6rem 0; }
.contact-card a { font-weight: 500; overflow-wrap: anywhere; }
.webmail-links { display: flex; flex-wrap: wrap; column-gap: 1.25rem; margin-top: .25rem; }
.webmail-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: .9rem; }
.mail-icon { flex: none; display: grid; place-items: center; width: 45px; height: 45px; border-radius: 14px; background: #e5f4f0; color: var(--teal); }
.mail-icon svg { width: 24px; }
.landing .footer { padding-block: 1.6rem; }
@media(max-width:580px) {
  .landing .header { min-height: 62px; padding-block: .65rem; gap: .4rem; flex-wrap: nowrap; justify-content: space-between; }
  .landing .brand { gap: .38rem; }
  .landing .brand img:first-child { width: 20px; height: 30px; }
  .landing .brand .wordmark { width: 4.35rem; }
  .landing .brand small { display: none; }
  .landing .header nav { width: auto; gap: clamp(.55rem, 2.8vw, 1rem); }
  .landing nav a { font-size: .875rem; }
  .intro-copy { padding-bottom: 2rem; }
  .intro-landscape { bottom: -7.5rem; }
  .contact-card { gap: .85rem; }
}
@media (orientation: landscape) {
  .tour-stage {
    --phone-height: min(92svh, 56rem);
    top: calc((100svh - var(--phone-height)) / 2);
    grid-template-columns: minmax(0, 10rem) auto;
    justify-content: center;
    align-items: center;
    column-gap: clamp(1rem, 5vw, 5rem);
  }
  .phone { grid-area: 1 / 2; height: var(--phone-height); }
  .tour-selector { grid-area: 1 / 1; width: 100%; }
  .tour-controls {
    flex-direction: column;
    width: 100%;
    margin: 0;
    padding: .3rem;
    border-radius: 1.25rem;
  }
  .tour-controls button { border-radius: 1rem; }
  .screen-caption {
    padding: .15rem .55rem;
    border-radius: .6rem;
    background: #f7faf9;
    text-align: center;
  }
}
@media (orientation: landscape) and (max-height: 600px) {
  .tour { margin-block-end: 1.5rem; }
}
@media (orientation: landscape) and (min-width: 60rem) and (min-height: 601px) {
  .tour { margin-block-end: 3rem; }
}
