:root {
  --bg: #f5f3ee;
  --surface: #ffffff;
  --ink: #211f1b;
  --muted: #534e47;
  --line: #ded9d0;
  --brand-deep: #22211e;
  --brand-warm: rgb(255, 128, 0);
  --brand-ink: #983e00;
  --shadow: 0 14px 32px rgba(35, 30, 24, 0.06);
  --motion-fast: 180ms ease;
  --motion-base: 340ms cubic-bezier(0.22, 1, 0.36, 1);
  --container: min(1248px, 100% - clamp(2rem, 8vw, 7rem));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 60;
  top: 0.75rem;
  left: 1rem;
  padding: 0.6rem 1rem;
  background: var(--brand-warm);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Manrope", "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
iframe {
  display: block;
  max-width: 100%;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.site-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  transition: background var(--motion-fast), box-shadow var(--motion-fast);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
}

.header-row,
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header-row {
  min-height: 5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-logo-frame {
  position: relative;
  display: inline-flex;
  width: 10rem;
  height: 4rem;
}

.brand-logo-image,
.brand-logo-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 10rem;
  height: 4rem;
}

.brand-logo-image {
  object-fit: contain;
  background: #ffffff;
}

.brand-logo-placeholder {
  position: absolute;
  inset: 0;
  border: 2px solid var(--ink);
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(255, 128, 0, 0.14), rgba(255, 128, 0, 0.02)),
    #ffffff;
  color: var(--brand-deep);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  display: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.7rem, 1.45vw, 1.4rem);
  font-size: 0.9rem;
}

.site-nav a {
  position: relative;
  color: #363636;
  font-weight: 600;
}

.site-nav .teamviewer-link {
  border-left: 1px solid var(--line);
  padding: 0.35rem 0 0.35rem 1rem;
  font-weight: 700;
}

.site-nav .teamviewer-link::after {
  left: 1rem;
  width: calc(100% - 1rem);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--brand-warm);
  transition: transform var(--motion-fast);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 3rem;
  height: 3rem;
  padding: 0.7rem;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 100%;
  height: 2px;
  margin: 0.26rem 0;
  background: var(--ink);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero {
  margin-top: clamp(0.85rem, 2.6vw, 2.3rem);
  color: #fff;
  background: var(--brand-deep);
}

.hero-grid,
.story-grid,
.access-grid,
.contact-grid {
  display: grid;
}

.hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
  background: linear-gradient(135deg, #2d2823, var(--brand-deep) 68%);
}

.hero-copy {
  align-self: center;
  padding: clamp(2rem, 4.4vw, 4rem);
  animation: hero-in 450ms ease-out both;
}

@keyframes hero-in {
  from { opacity: 0.65; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero .eyebrow,
.section-dark .eyebrow {
  color: #ffab62;
}

.hero :focus-visible {
  outline-color: #ffab62;
}

.hero h1 {
  max-width: none;
  font-size: clamp(3rem, 5.7vw, 5.15rem);
  letter-spacing: -0.07em;
  line-height: 0.99;
}

.hero h1 span {
  display: block;
  color: var(--brand-warm);
}

.hero-image {
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: 1.24;
  object-fit: cover;
  background: #ddd4c7;
}

.hero-contact {
  display: grid;
  grid-template-columns: 0.8fr 1fr 1.3fr;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #4b4640;
}

.hero-contact li {
  display: grid;
  gap: 0.2rem;
  padding: 0.95rem clamp(1rem, 3vw, 2.75rem);
}

.hero-contact li + li {
  border-left: 1px solid #4b4640;
}

.hero-contact span {
  color: #d6cec4;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hero-contact a {
  justify-self: start;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.hero-contact a:hover {
  color: #ffab62;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--brand-ink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-weight: 700;
}

h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.045em;
}

h2 {
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  letter-spacing: -0.045em;
}

h3 {
  font-size: clamp(1.14rem, 1.6vw, 1.45rem);
  letter-spacing: -0.03em;
}

.hero-text {
  max-width: 37ch;
  margin: 1.2rem 0 0;
  color: #e8dfd4;
  font-size: clamp(1rem, 1.25vw, 1.14rem);
}

.hero-actions,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-actions {
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.25rem;
  padding: 0 1.25rem;
  border: 0;
  border-radius: 0;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--motion-base), box-shadow var(--motion-base), background var(--motion-base);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--brand-warm);
  color: #21180e;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #ffab62;
}

.button-secondary {
  border: 1px solid #a19b91;
}

.button-secondary:hover {
  background: rgba(128, 122, 112, 0.13);
}

.section {
  padding: clamp(3rem, 6vw, 6rem) 0;
}

.section-heading {
  margin-bottom: 2rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.service-card {
  --service-accent: #983e00;
  --service-tint: #fff0e2;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(1.2rem, 2.25vw, 2rem);
  border-top: 4px solid var(--service-accent);
  box-shadow: var(--shadow);
  background: var(--surface);
}

.accent-digital {
  --service-accent: #344c63;
  --service-tint: #eaf0f6;
}

.accent-connect {
  --service-accent: #28554b;
  --service-tint: #e7f1ed;
}

.service-icon {
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.2rem;
  padding: 0.6rem;
  color: var(--service-accent);
  background: var(--service-tint);
}

.service-card p {
  margin: 1rem 0 0;
  color: var(--muted);
}

.service-card h3 {
  hyphens: auto;
  overflow-wrap: anywhere;
}

.service-card ul {
  margin: 1.1rem 0 1.5rem;
  padding-left: 1.1rem;
  font-size: 0.93rem;
}

.service-card li + li {
  margin-top: 0.35rem;
}

.service-card li::marker {
  color: var(--service-accent);
}

.service-partners {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.partner-logo-item {
  width: 4.45rem;
  height: 2.35rem;
  padding: 0.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.partner-logo-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.service-partners-empty {
  color: #7a7a7a;
  font-size: 0.78rem;
}

.section-dark {
  background: var(--brand-deep);
  color: #ffffff;
}

.story-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: clamp(1.5rem, 6vw, 6rem);
  align-items: center;
}

.story-copy p:not(.eyebrow) {
  max-width: 60ch;
  margin: 1.15rem 0 0;
  color: #e8dfd4;
}

.story-note {
  padding: 1.4rem 1.6rem;
  border-left: 3px solid var(--brand-warm);
  background: #302c27;
}

.story-names {
  margin: 0;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  line-height: 1.4;
}

.access-grid {
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 5rem);
}

.address-card address {
  margin: 1.15rem 0;
  color: var(--muted);
  font-style: normal;
}

.map-frame {
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.map-frame iframe {
  width: 100%;
  height: clamp(17rem, 31vw, 24rem);
  border: 0;
}

.contact-section {
  padding: clamp(1.5rem, 4vw, 3.5rem);
  background: var(--brand-warm);
}

.contact-section .eyebrow {
  color: inherit;
}

.contact-section p:last-child {
  margin-bottom: 0;
}

.contact-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
  gap: clamp(1.3rem, 5vw, 5rem);
  align-items: center;
}

.contact-panel {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-panel li {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  align-items: center;
  gap: 0.7rem;
  min-height: 3.2rem;
  border-bottom: 1px solid rgba(34, 33, 30, 0.29);
}

.contact-panel li:first-child {
  border-top: 1px solid rgba(34, 33, 30, 0.29);
}

.contact-panel span {
  font-size: 0.83rem;
  font-weight: 700;
}

.contact-panel a {
  justify-self: start;
  padding: 0.5rem 0;
  font-size: clamp(1rem, 1.7vw, 1.35rem);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.contact-panel a:hover {
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.site-footer {
  margin-top: clamp(3rem, 7vw, 6rem);
  padding: 1.6rem 0;
  background: var(--brand-deep);
}

.site-footer p,
.footer-links a {
  color: #f2f2f2;
}

.footer-links a {
  padding: 0.3rem 0;
  transition: color var(--motion-fast);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #ffab62;
}

.legal-main {
  padding: 4rem 0 5rem;
}

.legal-wrap {
  max-width: 58rem;
}

.legal-card {
  background: var(--surface);
  border-top: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 2rem;
}

.legal-card + .legal-card {
  margin-top: 1rem;
}

.legal-card h2 {
  max-width: none;
  font-size: 1.55rem;
}

.legal-card h3 {
  margin-top: 1.5rem;
  font-size: 1.18rem;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
}

.legal-card ul {
  padding-left: 1.1rem;
}

.legal-document {
  overflow-wrap: anywhere;
}

.legal-document h2 {
  margin-top: 2rem;
  line-height: 1.25;
}

.legal-document h3 {
  line-height: 1.35;
}

.legal-document .legal-subsections {
  list-style: none;
  padding-left: 0;
}

.legal-document a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.application-main {
  padding: 3.6rem 0 4.2rem;
}

.application-wrap {
  max-width: 58rem;
  background: var(--surface);
  padding: clamp(1.25rem, 3vw, 2.5rem);
  border-top: 4px solid var(--brand-warm);
  box-shadow: var(--shadow);
}

.application-intro {
  margin-top: 0.5rem;
  color: var(--muted);
}

.application-form {
  margin-top: 1.1rem;
}

.application-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field > span {
  font-size: 0.9rem;
  color: #313131;
}

.form-field strong {
  color: #c43737;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.2);
  background: #ffffff;
  min-height: 2.8rem;
  padding: 0.52rem 0.62rem;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 0.96rem;
}

.form-field textarea {
  min-height: 8.6rem;
  resize: vertical;
}

.form-field-full {
  grid-column: 1 / -1;
}

.form-consent {
  margin: 0.95rem 0 1.1rem;
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  color: #393939;
  font-size: 0.9rem;
}

.form-consent input {
  margin-top: 0.15rem;
}

.form-consent a {
  text-decoration: underline;
}

.application-status {
  margin-top: 0.85rem;
  padding: 0.7rem 0.85rem;
  font-size: 0.92rem;
}

.application-status-success {
  background: #eaf8eb;
  color: #185e2d;
}

.application-status-error {
  background: #ffe9e9;
  color: #8f2020;
}

@media (max-width: 1060px) {
  .header-row {
    flex-wrap: wrap;
  }

  .site-nav {
    flex-wrap: wrap;
    padding-bottom: 0.8rem;
  }

  .has-nav-toggle .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100dvh - 5rem);
    overflow: auto;
    flex-wrap: nowrap;
    padding: 0.5rem max(1rem, 4vw) 1rem;
    background: #ffffff;
    box-shadow: var(--shadow);
  }

  .has-nav-toggle .site-nav a {
    padding: 0.64rem 0.45rem;
  }

  .has-nav-toggle .site-nav a::after {
    content: none;
  }

  .has-nav-toggle .site-nav .teamviewer-link {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .has-nav-toggle .site-nav.is-open {
    display: flex;
  }

  .has-nav-toggle .nav-toggle {
    display: inline-block;
  }
}

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .hero-grid,
  .story-grid,
  .access-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-image {
    height: auto;
    aspect-ratio: 1.65;
  }

  .hero h1 {
    font-size: clamp(2.55rem, 9vw, 4rem);
  }
}

@media (max-width: 560px) {
  .hero-copy {
    padding: 1.5rem 1.2rem 1.65rem;
  }

  .hero-contact,
  .application-grid {
    grid-template-columns: 1fr;
  }

  .hero-contact li {
    grid-template-columns: 5rem minmax(0, 1fr);
    align-items: baseline;
    gap: 0.45rem;
    padding: 0.65rem 1.2rem;
  }

  .hero-contact li + li {
    border-top: 1px solid #4b4640;
    border-left: 0;
  }

  .hero-actions {
    gap: 0.55rem;
    margin-top: 1.5rem;
  }

  .hero-actions .button {
    min-height: 2.85rem;
    padding-inline: 0.8rem;
    font-size: 0.9rem;
  }

  .section,
  .legal-main {
    padding: 3.5rem 0;
  }

  .legal-card {
    padding: 1.25rem;
  }

  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
