:root {
  font-family: Arial, Helvetica, sans-serif;
  color-scheme: light;
  --background: #f6f7f7;
  --foreground: #172934;
  --muted: #4f6370;
  --surface: #ffffff;
  --border: #cdd9df;
  --accent: #2c7099;
  --button-background: #203f52;
  --button-text: #ffffff;
  --strip: #e8eff2;
  background: var(--background);
  color: var(--foreground);
  font-weight: 700;
}

:root[data-theme='dark'] {
  color-scheme: dark;
  --background: #131d26;
  --foreground: #edf3f6;
  --muted: #b7c6d1;
  --surface: #1a2833;
  --border: #344755;
  --accent: #9bcfe9;
  --button-background: #a4d3eb;
  --button-text: #132c3b;
  --strip: #1c2c38;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
  font: inherit;
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

p {
  color: var(--muted);
  line-height: 1.75;
}

.wrap {
  width: min(1200px, calc(100% - 96px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 24px;
  z-index: 30;
  padding: 16px;
  background: var(--surface);
}

.skip-link:focus {
  top: 12px;
}

.brand-header {
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  min-height: 96px;
  gap: 40px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 35px;
  font-weight: 800;
  letter-spacing: -1.8px;
}

.wordmark-dot {
  color: var(--accent);
}

nav {
  display: flex;
  gap: 32px;
  margin-left: auto;
  font-size: 14px;
}

nav a,
.footer-links a,
.back-link {
  padding-block: 12px;
}

nav a:hover,
.footer-links a:hover,
.back-link:hover,
.footer-bottom > a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.preferences {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: transparent;
}

.theme-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-button .sun,
:root[data-theme='dark'] .theme-button .moon {
  display: none;
}

:root[data-theme='dark'] .theme-button .sun {
  display: block;
}

.language-dropdown {
  position: relative;
}

.language-dropdown summary {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 9px;
  cursor: pointer;
  list-style: none;
}

.language-dropdown summary::-webkit-details-marker {
  display: none;
}

.language-options {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  z-index: 20;
  min-width: 174px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 12px 30px #0002;
}

.language-options button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  text-align: left;
  font-size: 14px;
}

.language-options button:hover,
.language-options button[aria-pressed='true'] {
  background: var(--strip);
}

.brand-hero {
  padding-top: 72px;
  padding-bottom: 64px;
}

.eyebrow {
  margin-bottom: 24px;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero-row {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  align-items: end;
  gap: 70px;
}

h1 {
  max-width: 770px;
  font-size: clamp(48px, 5.7vw, 80px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -3.8px;
  text-wrap: balance;
}

.hero-aside p {
  font-size: 16px;
  max-width: 360px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  margin-top: 25px;
  padding-block: 8px;
  border-bottom: 1px solid var(--accent);
  font-size: 14px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 22px;
  margin-bottom: 24px;
  border-top: 1px solid var(--border);
}

.section-heading h2 {
  font-size: 15px;
}

.section-heading > span {
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.service-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  transition: border-color 180ms ease, transform 180ms ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.service-art {
  height: 248px;
  position: relative;
  overflow: hidden;
  background: #ccdfeb;
  color: #355468;
}

.studio .service-art {
  background: #cdd3cc;
  color: #465348;
}

.service-number,
.art-brand {
  position: absolute;
  z-index: 2;
  top: 24px;
  font-size: 10px;
  letter-spacing: 2px;
}

.service-number {
  left: 28px;
}

.art-brand {
  right: 28px;
}

.cleaning-illustration {
  position: relative;
  width: 350px;
  height: 100%;
  margin: auto;
}

.cleaning-circle {
  position: absolute;
  width: 260px;
  height: 260px;
  border: 1px solid #84abc0;
  border-radius: 50%;
  top: 41px;
  left: 42px;
  background: #e3edf466;
}

.cleaning-bucket {
  position: absolute;
  width: 205px;
  height: 205px;
  bottom: 3px;
  left: 35px;
  transform: rotate(-8deg);
}

.cleaning-broom {
  position: absolute;
  width: 143px;
  height: 227px;
  bottom: 0;
  left: 172px;
  transform: rotate(12deg);
}

.cleaning-feather {
  position: absolute;
  top: 43px;
  left: 74px;
  transform: rotate(-14deg);
}

.service-copy {
  padding: 30px 32px 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-label {
  font-size: 11px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

.service-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 15px;
  margin-bottom: 15px;
}

.service-heading h3 {
  font-size: clamp(30px, 3.5vw, 46px);
  letter-spacing: -1.8px;
  overflow-wrap: anywhere;
}

.round-arrow {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 47px;
  height: 47px;
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 25px;
  transition: background 180ms ease, color 180ms ease;
}

.service-card:hover .round-arrow {
  background: var(--button-background);
  color: var(--button-text);
}

.service-description {
  max-width: 440px;
  margin-bottom: 25px;
  font-size: 15px;
}

.service-link {
  margin-top: auto;
  font-size: 13px;
  color: var(--accent);
}

.studio-illustration {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.browser-frame {
  width: 72%;
  max-width: 380px;
  border: 1px solid #576b65;
  border-radius: 9px;
  background: #f2f1e9;
  color: #203f39;
  box-shadow: 11px 13px 0 #667c6c30;
  transform: translateY(17px) rotate(-4deg);
  overflow: hidden;
}

.browser-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 26px;
  padding: 0 12px;
  border-bottom: 1px solid #a7b2a9;
  font-size: 9px;
}

.browser-dots,
.mock-menu {
  display: flex;
  gap: 4px;
}

.browser-dots i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #81948b;
}

.browser-page {
  padding: 12px 20px 17px;
}

.browser-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.mock-logo {
  font-size: 17px;
  letter-spacing: -1px;
}

.mock-menu i {
  width: 17px;
  height: 3px;
  background: #839189;
  margin-left: 4px;
}

.mock-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: center;
}

.mock-copy {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.mock-line {
  width: 95%;
  height: 10px;
  background: #304f43;
}

.mock-line.short {
  width: 38%;
  height: 3px;
  margin-bottom: 4px;
  background: #90a18d;
}

.mock-line.medium {
  width: 76%;
}

.mock-button {
  display: grid;
  place-items: center;
  width: 45px;
  height: 18px;
  background: #ccda8f;
  font-size: 13px;
}

.mock-art {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #dce3cb;
  height: 96px;
  overflow: hidden;
}

.mock-art div {
  width: 26%;
  height: 75%;
  margin-inline: -2px;
  border-radius: 50%;
  background: #7b9274;
  transform: rotate(30deg);
}

.mock-art div:nth-child(2) {
  background: #b5c577;
  height: 98%;
}

.mock-art div:nth-child(3) {
  background: #405f4c;
  height: 67%;
}

.mock-bottom {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.mock-bottom i {
  width: 33%;
  height: 15px;
  background: #e0e3d8;
}

.contact-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  margin-top: 64px;
  margin-bottom: 72px;
  padding: 40px;
  border-radius: 12px;
  background: var(--strip);
}

.contact-strip h2 {
  font-size: 28px;
  letter-spacing: -0.8px;
  margin-bottom: 12px;
}

.contact-strip p {
  max-width: 610px;
  font-size: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-shrink: 0;
  padding: 18px 23px;
  background: var(--button-background);
  color: var(--button-text);
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.4;
}

.button:hover {
  filter: brightness(1.1);
}

.brand-footer {
  border-top: 1px solid var(--border);
  padding-top: 32px;
  padding-bottom: 32px;
}

.footer-top,
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-wordmark {
  gap: 0;
  font-size: 40px;
}

.footer-top p {
  font-size: 13px;
}

.footer-bottom {
  margin-top: 32px;
  color: var(--muted);
  font-size: 12px;
}

.footer-bottom small {
  font-size: inherit;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.studio-hero {
  padding-top: 24px;
  padding-bottom: 70px;
}

.studio-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 70px;
  margin-top: 42px;
}

.studio-hero h1 {
  font-size: clamp(42px, 5vw, 70px);
  letter-spacing: -2.7px;
}

.studio-intro {
  font-size: 16px;
  margin-top: 24px;
  margin-bottom: 28px;
}

.studio-showcase {
  margin: 0;
  position: relative;
  border-radius: 16px;
  background: #cdd3cc;
  height: 350px;
  padding: 0 12px 32px;
}

.studio-showcase .browser-frame {
  width: 88%;
  transform: rotate(-4deg);
}

.studio-showcase figcaption {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  text-align: center;
  font-size: 11px;
  color: #3b5143;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding: 15px 0 50px;
}

.work-grid article {
  padding-right: 24px;
}

.item-number {
  display: block;
  margin-bottom: 24px;
  color: var(--accent);
  font-size: 13px;
}

.work-grid h3,
.process-list h3 {
  font-size: 23px;
  margin-bottom: 15px;
  letter-spacing: -0.5px;
}

.work-grid p,
.process-list p {
  font-size: 14px;
}

.process-section {
  display: grid;
  grid-template-columns: 0.85fr 1.3fr;
  gap: 80px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.process-section h2 {
  font-size: 40px;
  letter-spacing: -1.5px;
  max-width: 310px;
}

.process-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.process-list li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 26px;
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.process-list .item-number {
  margin-top: 5px;
}

.contact-actions {
  display: flex;
  align-items: center;
  flex-direction: column;
  flex-shrink: 0;
}

.contact-actions .text-link {
  margin-top: 12px;
}

@media (max-width: 1000px) {
  .hero-row {
    gap: 40px;
  }

  .studio-hero-grid {
    gap: 36px;
  }

  .header-inner {
    gap: 24px;
  }

  h1 {
    letter-spacing: -2.5px;
  }

  .service-copy {
    padding: 25px;
  }

  .contact-strip {
    padding: 30px;
    gap: 30px;
  }
}

@media (max-width: 760px) {
  .wrap {
    width: calc(100% - 40px);
  }

  .header-inner {
    min-height: 82px;
    flex-wrap: wrap;
    gap: 0;
    padding-top: 16px;
  }

  .wordmark {
    font-size: 30px;
  }

  .wordmark img {
    width: 30px;
    height: 30px;
  }

  .preferences {
    margin-left: auto;
  }

  nav {
    order: 3;
    width: 100%;
    margin-top: 8px;
    margin-bottom: 3px;
    font-size: 12px;
    gap: 24px;
  }

  .brand-hero {
    padding-top: 44px;
    padding-bottom: 38px;
  }

  .hero-row,
  .studio-hero-grid,
  .process-section {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  h1 {
    font-size: clamp(43px, 8vw, 65px);
    letter-spacing: -2.2px;
    max-width: 580px;
  }

  .hero-aside p {
    max-width: 550px;
    font-size: 15px;
  }

  .text-link {
    margin-top: 16px;
  }

  .service-grid,
  .work-grid {
    grid-template-columns: 1fr;
  }

  .service-art {
    height: 250px;
  }

  .service-heading h3 {
    font-size: 38px;
  }

  .contact-strip {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 24px;
    margin-top: 40px;
    margin-bottom: 44px;
    gap: 24px;
  }

  .contact-strip h2 {
    font-size: 26px;
  }

  .footer-top,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer-links {
    gap: 18px;
  }

  .studio-hero {
    padding-top: 16px;
    padding-bottom: 40px;
  }

  .studio-hero-grid {
    margin-top: 26px;
  }

  .studio-showcase {
    height: 310px;
  }

  .work-grid {
    gap: 24px;
    padding-bottom: 40px;
  }

  .work-grid article {
    padding: 0 0 24px;
    border-bottom: 1px solid var(--border);
  }

  .item-number {
    margin-bottom: 14px;
  }

  .process-section {
    padding-top: 10px;
    border-top: 0;
  }

  .process-section h2 {
    font-size: 34px;
    max-width: none;
  }
}

@media (max-width: 380px) {
  .wrap {
    width: calc(100% - 32px);
  }

  .wordmark {
    font-size: 26px;
    gap: 6px;
  }

  .preferences {
    gap: 3px;
  }

  .service-heading h3 {
    font-size: 31px;
  }

  .service-copy {
    padding: 22px;
  }

  .cleaning-illustration {
    left: 50%;
    margin-left: -175px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

.maintenance-banner:not([hidden]) { padding: 1rem max(1rem, calc((100vw - 1200px)/2)); color: #a41f1f; background: #fff0f0; border-bottom: 2px solid #c73333; font-weight: 800; line-height: 1.5; }
:root[data-theme='dark'] .maintenance-banner:not([hidden]) { color: #ffb0b0; background: #351c1c; border-color: #ff7777; }
.maintenance-active { color: #a41f1f; background: #fff0f0; border: 2px solid #c73333; padding: 1rem; border-radius: .75rem; font-weight: 800; }
:root[data-theme='dark'] .maintenance-active { color: #ffb0b0; background: #351c1c; border-color: #ff7777; }

.maintenance-banner a { color: inherit; text-decoration: none; display: block; }
.maintenance-banner a:hover { text-decoration: underline; text-underline-offset: .2em; }
.maintenance-banner a:focus-visible { outline: 3px solid currentColor; outline-offset: 5px; border-radius: 2px; }

.account-maintenance-warning {
  color: #a41f1f;
  background: #fff0f0;
  border: 2px solid #c73333;
  border-radius: 8px;
  padding: 16px;
  font-weight: 800;
}
.account-maintenance-warning a { color: inherit; text-decoration: underline; }
:root[data-theme='dark'] .account-maintenance-warning {
  color: #ffb0b0;
  background: #351c1c;
  border-color: #ff7777;
}

.staff-role-badges[data-company-color] { --company-bg:#eee8fa; --company-fg:#4c267a; }
.staff-role-badges[data-company-color='blue'] { --company-bg:#e2eeff; --company-fg:#174b91; }
.staff-role-badges[data-company-color='teal'] { --company-bg:#dcf3ef; --company-fg:#155b50; }
.staff-role-badges[data-company-color='amber'] { --company-bg:#fff0ce; --company-fg:#6e4b05; }
.staff-role-badges[data-company-color='rose'] { --company-bg:#fae3ed; --company-fg:#81244b; }
.staff-role-badges .company-role-badge,.company-name-badge {
  display:inline-block; background:var(--company-bg); color:var(--company-fg);
  border:1px solid var(--company-fg); padding:7px 12px; border-radius:8px; font-weight:800;
}
.company-name-badge { flex-basis:100%; background:transparent; border:0; padding:0; color:var(--foreground); }
.company-manager summary { cursor:pointer; font-weight:900; }
.company-manager form { margin-block:20px; }

/* Default reading rhythm; page-specific cards, calendar items and forms may refine it. */
main :where(p + p,h1 + p,h2 + p,h3 + p,h4 + p) { margin-block-start: .85rem; }
main :where(p + h2,p + h3,p + h4) { margin-block-start: 1.5rem; }
