@font-face {
  font-family: 'Boston Semi Bold';
  src: url('/assets/webfonts/Boston-Semi-Bold.woff2') format('woff2');
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: 'Boston Regular';
  src: url('/assets/webfonts/Boston-Regular.woff2') format('woff2');
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Boston Light';
  src: url('/assets/webfonts/Boston-Light.woff2') format('woff2');
  font-style: normal;
  font-display: swap;
}

:root {
  --clr-bg-light:    rgba(91, 184, 245, 1.0);
  --clr-bg-dark:     rgba(26, 111, 173, 1.0);
  --clr-tile-bg:     rgba(27, 45, 62, 1.0);
  --clr-tile-text:   rgba(255, 255, 255, 1.0);
  --clr-split-line:  rgba(255, 255, 255, 0.35);

  --tile-w:          clamp(40px, min(10.5vw, 13vh), 112px);
  --tile-h:          clamp(54px, min(14.2vw, 17.5vh), 152px);
  --tile-radius:     clamp(6px, min(1.3vw, 1.6vh), 14px);
  --tile-font:       clamp(40px, min(10.5vw, 13vh), 112px);
  --tile-gap:        clamp(3px, min(0.75vw, 0.9vh), 8px);
  --row-gap:         clamp(4px, min(0.9vw, 1.1vh), 10px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

.sft-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.sft-skip {
  position: absolute;
  top: -60px;
  left: 0;
  z-index: 100;
  padding: 12px 20px;
  background: rgba(0, 0, 0, 0.9);
  color: rgba(255, 255, 255, 1.0);
  font-family: 'Boston Regular', sans-serif;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 0 0 6px 0;
  transition: top 0.15s;
}

.sft-skip:focus {
  top: 0;
  outline: 2px solid rgba(255, 220, 100, 1.0);
  outline-offset: 2px;
}

#sft-main:focus {
  outline: none;
}

abbr[title] {
  text-decoration: none;
}

html {
  min-height: 100%;
  background-color: rgba(0, 0, 0, 1.0);
}

body {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background-color: rgba(0, 0, 0, 1.0);
  font-family: 'Boston Regular', sans-serif;
  overscroll-behavior: none;
}

#sft-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-color: rgba(0, 0, 0, 1.0);
}

#sft-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body {
  margin: 0;
  padding: 0;
}

#sft-hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: max(40px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(40px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
  gap: 8px;
}

#sft-rows {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--row-gap);
}

.sft-row {
  display: flex;
  gap: var(--tile-gap);
}

.sft-tile {
  position: relative;
  width: var(--tile-w);
  height: var(--tile-h);
  background: var(--clr-tile-bg);
  border-radius: var(--tile-radius);
  perspective: 400px;
}

.sft-panel {
  position: absolute;
  width: 100%;
  height: 50%;
  overflow: hidden;
  backface-visibility: hidden;
  background: var(--clr-tile-bg);
}

/* Only the fold panels animate — promote only those to their own layers. */
.sft-fold { will-change: transform; }

.sft-top { top: 0; transform-origin: bottom center; }
.sft-bot { bottom: 0; transform-origin: top center; }

.sft-char {
  font-family: 'Boston Semi Bold', sans-serif;
  font-size: var(--tile-font);
  line-height: 1;
  color: var(--clr-tile-text);
  position: absolute;
  width: 100%;
  height: var(--tile-h);
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.sft-top .sft-char { top: 0; }
.sft-bot .sft-char { bottom: 0; top: auto; }

.sft-split {
  position: absolute;
  top: 50%;
  width: 100%;
  height: 1.5px;
  background: var(--clr-split-line);
  transform: translateY(-50%);
  z-index: 20;
  pointer-events: none;
}

#sft-advance {
  margin-top: 82px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  padding: 14px 36px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.95);
  font-family: 'Boston Regular', sans-serif;
  font-size: 16px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s;
  opacity: 0;
  visibility: hidden;
}
#sft-advance:hover {
  background: rgba(0, 0, 0, 0.7);
}

.sft-advance-arrow {
  display: inline-block;
  font-size: 17px;
  line-height: 1;
  animation: sft-arrow-bob 2s ease-in-out infinite;
}

@keyframes sft-arrow-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(3px); }
}

.sft-copy {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5em;
  padding: 0 max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left));
  color: rgba(255, 255, 255, 1.0);
}

.sft-section {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 10px;
  padding: 2em max(32px, env(safe-area-inset-right)) 2em max(32px, env(safe-area-inset-left));
}

.sft-copy h1, .sft-copy h2, .sft-copy h3 {
  font-family: 'Boston Regular', sans-serif;
  font-weight: normal;
  line-height: 1.2;
  margin-bottom: calc(0.4em - 12px);
  text-align: center;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  position: relative;
  top: -12px;
}

.cta-band h2 {
  text-align: left;
  position: static;
  margin-bottom: 0.4em;
}

.sft-copy h1 { font-size: clamp(1.4rem, 3.4vw, 1.95rem); }
.sft-copy h2 { font-size: clamp(1.15rem, 2.7vw, 1.6rem); }
.sft-copy h3 { font-size: clamp(1.08rem, 2.5vw, 1.45rem); }

.sft-copy .sft-section > p {
  max-width: min(80%, 600px);
  margin-left: auto;
  margin-right: auto;
}

.sft-copy p, .sft-copy li {
  font-family: 'Boston Light', sans-serif;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  line-height: 1.5;
  letter-spacing: 0.5px;
  margin-bottom: 1em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.sft-copy em, .sft-copy i {
  font-family: 'Boston Light', sans-serif;
  font-style: italic;
}

.sft-copy a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.sft-copy a:hover {
  color: rgba(140, 220, 255, 1.0);
}

.sft-copy a:focus-visible {
  outline: 2px solid rgba(255, 220, 100, 1.0);
  outline-offset: 2px;
  border-radius: 2px;
}

.sft-copy .sft-tagline {
  font-family: 'Boston Regular', sans-serif;
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  line-height: 1.5;
  margin-bottom: 39px;
}

.sft-copy ul {
  list-style: none;
  padding: 0;
  margin-bottom: 2em;
}

.sft-copy li {
  padding-left: 0.4em;
  text-indent: -0.4em;
  margin-bottom: 0.65em;
}

.sft-copy li::before {
  content: "\2022";
  display: inline-block;
  width: 0.4em;
  color: rgba(255, 255, 255, 0.6);
}

.sft-copy h2 {
  margin-top: 0;
}

.sft-copy h3 {
  margin-top: 1em;
}

.sft-sub {
  font-family: 'Boston Semi Bold', sans-serif;
  font-size: clamp(1.12rem, 2.5vw, 1.4rem);
  font-weight: normal;
  margin-top: -0.4em;
  margin-bottom: 39px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.tab-bar {
  display: flex;
  gap: 2px;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 10px;
  padding: 4px;
  width: fit-content;
  margin: 0 auto 1.5rem;
}

.tab-btn {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 14px 20px;
  font-family: 'Boston Light', sans-serif;
  font-size: clamp(0.9rem, 2vw, 1rem);
  font-weight: normal;
  color: rgba(160, 215, 255, 1.0);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.tab-btn.active {
  background: rgba(30, 130, 210, 0.3);
  color: rgba(255, 255, 255, 1.0);
  font-family: 'Boston Regular', sans-serif;
  border: 1px solid rgba(30, 130, 210, 0.8);
}

.service-panel {
  display: none;
}

.service-panel.visible {
  display: block;
}

.sft-services {
  text-align: center;
}


.sft-services ul {
  text-align: left;
  max-width: min(80%, 600px);
  margin-left: auto;
  margin-right: auto;
}

.panel-note {
  font-family: 'Boston Semi Bold', sans-serif;
  font-size: clamp(1.12rem, 2.5vw, 1.4rem);
  font-weight: normal;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 1rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.sft-section > *:last-child {
  margin-bottom: 0;
}


#sft-contact {
  margin-top: calc(3.4em - 20px);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.8em;
}

#sft-contact label {
  display: block;
  font-family: 'Boston Light', sans-serif;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  margin-bottom: 0.15em;
  color: rgba(255, 255, 255, 0.9);
}

#sft-contact input,
#sft-contact textarea {
  display: block;
  width: 100%;
  padding: 0.65em 0.8em;
  font-family: 'Boston Light', sans-serif;
  font-size: clamp(1.1rem, 2.4vw, 1.3rem);
  color: rgba(255, 255, 255, 1.0);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
  outline: none;
  transition: border-color 0.2s;
}

#sft-contact input:focus,
#sft-contact textarea:focus {
  border-color: rgba(255, 255, 255, 0.6);
}

#sft-contact textarea::placeholder {
  color: rgba(255, 255, 255, 0.75);
}

#sft-contact input:focus-visible,
#sft-contact textarea:focus-visible {
  border-color: rgba(255, 220, 100, 1.0);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3), 0 0 0 2px rgba(255, 220, 100, 1.0);
}

#sft-advance:focus-visible,
#sft-send:focus-visible {
  outline: 2px solid rgba(255, 220, 100, 1.0);
  outline-offset: 2px;
}

#sft-contact textarea {
  resize: vertical;
}

#sft-send {
  display: block;
  width: 100%;
  padding: 0.7em;
  background: rgba(45, 45, 45, 1.0);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
  color: rgba(255, 255, 255, 1.0);
  font-family: 'Boston Regular', sans-serif;
  font-size: clamp(1.1rem, 2.4vw, 1.3rem);
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

#sft-send:hover {
  background: rgba(26, 26, 26, 1.0);
}

#sft-send:disabled {
  cursor: not-allowed;
}

#sft-send.is-ready {
  background: rgba(26, 111, 173, 0.55);
  border-color: rgba(26, 111, 173, 0.8);
  color: rgba(255, 255, 255, 1.0);
}

#sft-send.is-ready:hover {
  background: rgba(15, 85, 135, 0.75);
  border-color: rgba(15, 85, 135, 0.9);
}

#sft-send.is-sending {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 1.0);
}

#sft-send.is-success {
  background: rgba(40, 167, 69, 0.65);
  border-color: rgba(40, 167, 69, 0.9);
  color: rgba(255, 255, 255, 1.0);
}

#sft-send.is-warning {
  background: rgba(255, 135, 20, 0.75);
  border-color: rgba(255, 155, 40, 0.9);
  color: rgba(255, 255, 255, 1.0);
}

#sft-send.is-error {
  background: rgba(220, 53, 69, 0.35);
  border-color: rgba(220, 53, 69, 0.5);
  color: rgba(255, 255, 255, 1.0);
}

.is-invalid {
  border-color: rgba(255, 145, 55, 0.95) !important;
}

.form-group {
  margin-bottom: 1.2em;
}

.error-message {
  display: block;
  font-family: 'Boston Light', sans-serif;
  font-size: 1em;
  color: rgba(255, 255, 255, 1.0);
  min-height: 1.2em;
  margin-top: 0.25em;
  visibility: hidden;
}

.error-message.is-visible {
  visibility: visible;
}

.form-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5em;
  margin-top: 15px;
  margin-bottom: 39px;
  padding-top: 0.8em;
  padding-bottom: 0.8em;
  padding-left: calc(max(32px, env(safe-area-inset-left)) + 1.8em);
  padding-right: calc(max(32px, env(safe-area-inset-right)) + 1.8em);
}

.cta-buttons {
  display: flex;
  gap: calc(1.2em + 5px);
}

.cta-band a {
  text-decoration: none;
}

.cta-band a:hover {
  color: rgba(255, 255, 255, 1.0);
}

.cta-band h2 {
  font-size: clamp(1.18rem, 2.85vw, 1.45rem);
  margin: 0;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.5em 1.4em;
  font-family: 'Boston Regular', sans-serif;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: rgba(255, 255, 255, 1.0);
  background: rgba(30, 130, 210, 0.85);
  border: 1px solid rgba(30, 130, 210, 1.0);
  border-radius: 8px;
  white-space: nowrap;
  transition: background-color 0.2s, border-color 0.2s;
}

.cta-btn:hover {
  background: rgba(20, 110, 190, 0.95);
  border-color: rgba(20, 110, 190, 1.0);
}

.cta-btn:focus-visible {
  outline: 2px solid rgba(255, 220, 100, 1.0);
  outline-offset: 2px;
}

.sft-map-wrap {
  max-width: 640px;
  width: 100%;
  aspect-ratio: 640 / 580;
  margin: calc(1.5em - 20px) auto calc(2em + 5px);
  overflow: hidden;
}

.sft-map-wrap #sft-map {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cell-footer {
  position: relative;
  z-index: 2;
  background: rgba(0, 0, 0, 1.0);
  margin-top: auto;
  width: 100%;
  padding: 1.2em max(24px, env(safe-area-inset-right)) 1.2em max(24px, env(safe-area-inset-left));
  text-align: center;
}

.footer-copyright {
  font-family: 'Boston Light', sans-serif;
  font-size: 0.9em;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
  transform: translateY(-2px);
}

@media (max-width: 600px) and (orientation: portrait) {
  .sft-copy {
    padding-left: 0;
    padding-right: 0;
  }

  .sft-section {
    border-radius: 0;
    padding: 1.6em max(36px, env(safe-area-inset-left)) 1.6em max(36px, env(safe-area-inset-right));
  }

  .sft-copy .sft-section > p {
    max-width: 100%;
  }

  .sft-services ul {
    max-width: 100%;
  }

  .sft-copy p, .sft-copy li {
    font-size: clamp(1.05rem, 4.2vw, 1.25rem);
  }

  .sft-section.cta-band {
    display: grid;
    grid-template-columns: max-content;
    justify-content: center;
    text-align: center;
    padding-top: 1.4em;
    padding-bottom: 1.4em;
    padding-left: max(36px, env(safe-area-inset-left));
    padding-right: max(36px, env(safe-area-inset-right));
    gap: 0.8em;
    margin-top: 0;
  }

  .sft-section.cta-band h2 {
    font-size: 1.45rem;
    margin: 0;
    position: static;
    top: 0;
  }

  .cta-band {
    margin-top: 39px;
    margin-bottom: 39px;
  }

  .cta-buttons {
    width: auto;
    flex-direction: column;
    gap: 1.4em;
  }

  .cta-btn {
    justify-content: center;
    padding: 0.6em 0;
    font-size: 1.25rem;
    gap: 0.45em;
    border-radius: 8px;
    width: 100%;
  }

  .cta-btn svg {
    width: 19px;
    height: 19px;
  }

  .cta-btn[href^="sms"] svg {
    width: 16px;
    height: 16px;
  }

  .sft-map-wrap {
    border-radius: 0;
  }

  #sft-contact {
    padding: 1.4em max(24px, env(safe-area-inset-left));
  }

  .tab-btn {
    padding: 14px 16px;
    font-size: 0.95rem;
  }

  .cell-footer {
    margin-top: 1.5em;
    padding-left: max(36px, env(safe-area-inset-left));
    padding-right: max(36px, env(safe-area-inset-right));
  }
}

@media (max-width: 600px) and (orientation: landscape) {
  .sft-copy {
    padding-left: max(14px, env(safe-area-inset-left));
    padding-right: max(14px, env(safe-area-inset-right));
  }

  .sft-section {
    padding: 1.4em 18px;
  }

  .sft-copy .sft-section > p {
    max-width: 100%;
  }

  .sft-services ul {
    max-width: 100%;
  }

  .cta-band {
    flex-direction: column;
    text-align: center;
    margin-top: 39px;
    margin-bottom: 39px;
  }

  .cta-buttons {
    width: 100%;
  }

  .cta-btn {
    flex: 1;
    justify-content: center;
  }

  .cell-footer {
    margin-top: 1.5em;
    padding-left: max(14px, env(safe-area-inset-left));
    padding-right: max(14px, env(safe-area-inset-right));
  }
}

@media (max-width: 479px) {
  .sft-copy {
    gap: 1em;
  }

  .sft-copy p, .sft-copy li {
    line-height: 1.5;
    margin-bottom: 0.7em;
  }

  .sft-copy h2 {
    font-size: 1.3rem;
    line-height: 1.2;
    margin-bottom: 0.3em;
  }

  .sft-copy h3 {
    margin-top: 0.7em;
    margin-bottom: 0.25em;
  }

  .sft-copy ul {
    margin-bottom: 1.2em;
  }

  #sft-contact {
    margin-top: 1.2em;
    padding: 1.2em 1em;
  }

  .form-group {
    margin-bottom: 0.85em;
  }

  .cell-footer {
    margin-top: 1em;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  #sft-hero {
    min-height: 100dvh;
    padding-top: max(16px, env(safe-area-inset-top));
    padding-bottom: max(16px, env(safe-area-inset-bottom));
    gap: 4px;
  }

  #sft-rows {
    --tile-h: clamp(36px, 12vh, 80px);
    --tile-w: clamp(28px, 9vh, 80px);
    --tile-font: clamp(28px, 9vh, 80px);
    --tile-gap: clamp(2px, 0.5vh, 6px);
    --row-gap: clamp(3px, 0.7vh, 8px);
  }

  #sft-advance {
    margin-top: 20px;
    padding: 10px 28px;
    font-size: 15px;
  }

  .sft-copy {
    max-width: 675px;
    padding-left: max(14px, env(safe-area-inset-left));
    padding-right: max(14px, env(safe-area-inset-right));
  }

  .sft-section {
    padding: 1.2em 24px;
  }

  .sft-map-wrap {
    width: auto;
    max-width: 80%;
    height: 70vh;
    margin-bottom: calc(2em + 5px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  #sft-advance {
    opacity: 1;
    visibility: visible;
  }
}