:root {
  --paper: #f3efe7;
  --ink: #232323;
  --accent: #b86f52;
  --gutter: clamp(0.65rem, 1.25vw, 1.25rem);
  --headline-stagger: clamp(0px, 4.86vw, 70px);
}

* { box-sizing: border-box; }

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Manrope", Arial, sans-serif;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
a:focus-visible,
button:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }

.page-shell {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 32rem;
  overflow: hidden;
  padding: clamp(1rem, 3.1vh, 2.35rem) var(--gutter) 0.8rem;
}

.slideshow,
.image-wash {
  position: absolute;
  z-index: -3;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.slide {
  position: absolute;
  inset: 0;
  background-color: var(--paper);
  background-position: center;
  background-size: cover;
  opacity: 0;
  transition: opacity 1600ms ease-in-out;
}
.slide.is-active { opacity: 1; }

.image-wash {
  z-index: -2;
  background: rgb(255 255 255 / 83%);
}

.site-header {
  position: relative;
  z-index: 2;
  min-height: clamp(7.1rem, 14vh, 9rem);
}

.brand {
  position: absolute;
  top: 0;
  left: 50%;
  display: flex;
  align-items: center;
  transform: translateX(-50%);
}
.brand-logo { display: block; width: clamp(13.125rem, 19.95vw, 19.95rem); height: auto; }

.technical-label,
.status-label,
.language-switch,
.technical-statement,
.analog-statement,
.service-number,
.site-footer {
  font-family: "Source Code Pro", monospace;
  font-weight: 300;
}

.technical-label {
  position: absolute;
  top: 0.28rem;
  right: 0;
  margin: 0;
  color: var(--accent);
  font-size: clamp(0.54rem, 0.68vw, 0.68rem);
  font-weight: 400;
  line-height: 1.5;
  white-space: nowrap;
}

.header-tools {
  position: absolute;
  top: 0.25rem;
  left: 0;
}

.status-label {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  margin: 0;
  color: var(--ink);
  font-size: clamp(0.72rem, 1vw, 0.88rem);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.045em;
  white-space: nowrap;
}
.status-label::before {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  flex: 0 0 auto;
  background: var(--accent);
}
.status-text {
  display: block;
  width: 12.5rem;
  overflow: hidden;
  white-space: nowrap;
  animation: type-reveal 2.7s steps(18, end) 320ms both;
}

@keyframes type-reveal {
  from { width: 0; }
  to { width: 12.5rem; }
}

.content {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.intro {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc(100% - (var(--gutter) * 2));
  max-width: 84rem;
  transform: translate(-50%, -50%);
  text-align: center;
}

.technical-statement {
  width: max-content;
  max-width: 100%;
  margin: 0 auto 0.38rem;
  padding: 0.22rem 0.45rem;
  background: var(--accent);
  color: #fff;
  font-size: clamp(0.68rem, 0.78vw, 0.82rem);
  font-weight: 500;
  line-height: 1.55;
  text-transform: uppercase;
  transform: translateX(var(--alignment-shift, 0px));
}

h1 {
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 0;
  font-size: clamp(3.3rem, 5.3vw, 6rem);
  font-weight: 500;
  line-height: 1.03;
  transform: translateX(calc(-1 * var(--headline-stagger)));
}
.headline-accent {
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 0;
  transform: translateX(var(--headline-stagger));
  color: var(--accent);
  font-size: clamp(3.3rem, 5.3vw, 6rem);
  font-weight: 300;
  line-height: 1.03;
}

.support-copy {
  width: max-content;
  max-width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  column-gap: 0.35em;
  margin: clamp(0.38rem, 0.8vh, 0.6rem) auto 0;
  font-size: clamp(0.94rem, 1.2vw, 1.18rem);
  font-weight: 400;
  line-height: 1.5;
  text-align: right;
  transform: translateX(var(--alignment-shift, 0px));
}
.support-copy p { margin: 0; }

.services {
  position: static;
  width: 100%;
  max-width: 100rem;
  pointer-events: auto;
  margin-block: 21px;
}

.service-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

@media (min-width: 1201px) {
  .service-row { align-items: stretch; }
}

.service-list {
  display: grid;
  grid-template-columns: repeat(5, max-content);
  align-items: center;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-list li {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  background: #fff;
  font-size: clamp(0.72rem, 0.88vw, 0.88rem);
  font-weight: 400;
  line-height: 1.4;
  white-space: nowrap;
}

.service-number { color: var(--accent); font-size: 0.65rem; font-weight: 500; }

.site-footer {
  position: absolute;
  z-index: 2;
  right: var(--gutter);
  bottom: 0.75rem;
  left: var(--gutter);
  font-size: clamp(0.58rem, 0.68vw, 0.7rem);
  line-height: 1.5;
}

.contact-area {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--accent);
}

.email-link,
.whatsapp-contact,
.contact-links,
.contact-social-link,
.footer-tools,
.social-links,
.footer-bottom,
.footer-signature,
.studio-credit {
  display: flex;
  align-items: center;
}

.contact-links { min-width: 0; gap: clamp(0.45rem, 1vw, 0.9rem); }
.email-link,
.whatsapp-contact,
.contact-social-link { gap: 0.28rem; white-space: nowrap; }
.email-link span,
.whatsapp-contact span,
.contact-social-link span,
.copyright,
.studio-credit { letter-spacing: 0; }
.contact-icon {
  display: block;
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
  fill: currentColor;
}
.email-link .contact-icon { color: var(--accent); }
.contact-social-link .contact-icon,
.whatsapp-contact .contact-icon { display: none; }
.contact-icon-image { display: block; width: 1.05rem; height: 1.05rem; flex: 0 0 auto; }
.email-link span,
.whatsapp-contact span,
.contact-social-link span { font-family: "Source Code Pro", monospace; font-weight: 500; }
.phone-list { display: flex; align-items: center; gap: clamp(0.45rem, 0.9vw, 0.8rem); }
.whatsapp-contact { font-family: "Source Code Pro", monospace; }
.contact-links a,
.studio-credit { transition: color 180ms ease, opacity 180ms ease; }
.contact-links a:hover,
.studio-credit:hover { color: var(--accent); }

.footer-tools { flex: 0 0 auto; gap: 0.55rem; }
.social-links { gap: 0.65rem; }
.icon-link {
  display: inline-grid;
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  place-items: center;
  transition: opacity 180ms ease;
}
.icon-link img { display: block; width: 100%; height: 100%; object-fit: contain; }
.icon-link:hover { opacity: 0.62; }
.linkedin-link { opacity: 0.72; }

.language-switch { display: flex; align-items: center; gap: 0.12rem; font-size: 0.65rem; }
.language-option {
  padding: 0.17rem 0.34rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  opacity: 1;
  cursor: pointer;
  transition: opacity 180ms ease, color 180ms ease, background-color 180ms ease;
}
.language-option:hover,
.language-option.is-active { background: var(--accent); color: #fff; opacity: 1; }

.footer-bottom {
  justify-content: space-between;
  gap: 0.8rem;
  padding-top: 0.42rem;
}
.footer-signature {
  gap: 0.38rem;
  white-space: nowrap;
  font-family: "Source Code Pro", monospace;
  font-weight: 500;
}
.copyright,
.analog-statement { margin: 0; }
.studio-credit { white-space: nowrap; }
.studio-credit:hover { color: var(--accent); }
.analog-statement {
  color: var(--ink);
  text-align: right;
  white-space: nowrap;
}

.reveal { opacity: 0; animation: fade-in 650ms ease-out forwards; }
.reveal-1 { animation-delay: 60ms; }
.reveal-2 { animation-delay: 150ms; }
.reveal-3 { animation-delay: 240ms; }
.reveal-4 { animation-delay: 320ms; }
@keyframes fade-in { to { opacity: 1; } }

@media (max-width: 1200px) {
  .service-row { flex-direction: column; gap: 0; }
  .service-list { grid-template-columns: repeat(2, max-content); }
  .service-list li { font-size: 0.78rem; }
}

@media (max-width: 900px) {
  .brand-logo { width: clamp(12.075rem, 24.15vw, 16.8rem); }
  .technical-label { max-width: 35%; white-space: normal; font-size: 0.52rem; }
  h1,
  .headline-accent { font-size: clamp(2.8rem, 6.2vw, 4.4rem); }
  .contact-area { align-items: flex-start; }
  .contact-links { flex-wrap: wrap; row-gap: 0.34rem; }
}

@media (max-width: 700px) {
  :root { --headline-stagger: clamp(0px, 3vw, 12px); }
  .page-shell { min-height: 35rem; padding-top: 1.1rem; }
  .image-wash { background: rgb(255 255 255 / 83%); }
  .site-header { min-height: 8.2rem; }
  .brand { top: 1.55rem; }
  .brand-logo { width: clamp(9.45rem, 45.15vw, 12.6rem); }
  .technical-label { top: 0; max-width: 43%; font-size: 0.48rem; text-align: right; }
  .header-tools { top: 0; left: 0; max-width: 43%; }
  .status-label { font-size: 0.65rem; }
  .status-text { width: 8.4rem; animation-name: type-reveal-mobile; }
  @keyframes type-reveal-mobile {
    from { width: 0; }
    to { width: 8.4rem; }
  }
  .intro { top: 50%; width: calc(100% - (var(--gutter) * 2)); transform: translate(-50%, -50%); }
  .technical-statement { width: max-content; max-width: 100%; margin: 0 auto 0.55rem; padding: 0.16rem 0.3rem; font-size: 0.6rem; transform: none; }
  h1,
  .headline-accent { font-size: clamp(1.8rem, 8.5vw, 3.35rem); line-height: 1.08; }
  .support-copy {
    width: max-content;
    flex-direction: column;
    align-items: flex-end;
    row-gap: 0.1em;
    column-gap: 0;
    margin-top: 0.55rem;
    font-size: clamp(0.82rem, 3.7vw, 0.98rem);
    line-height: 1.45;
  }
  .service-row { gap: 0; }
  .service-list { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; padding: 0; }
  .service-list li { min-width: 0; justify-content: flex-start; gap: 0.3rem; padding: 0.3rem 0.5rem; font-size: 0.68rem; white-space: normal; }
  .service-list li > span:last-child { min-width: 0; }
  .service-number { font-size: 0.56rem; }
  .site-footer { bottom: 0.45rem; font-size: 0.51rem; }
  .contact-area { align-items: center; gap: 0.4rem; padding-bottom: 0.4rem; }
  .contact-links { flex: 1 1 auto; gap: 0.35rem 0.55rem; }
  .email-link,
  .contact-social-link { gap: 0.22rem; font-size: 0.48rem; }
  .contact-icon,
  .contact-icon-image { width: 0.9rem; height: 0.9rem; }
  .phone-list { gap: 0.4rem; }
  .whatsapp-contact { gap: 0.22rem; font-size: 0.47rem; }
  .footer-tools { gap: 0.35rem; }
  .social-links { gap: 0.35rem; }
  .icon-link { width: 0.9rem; height: 0.9rem; }
  .language-switch { font-size: 0.58rem; }
  .language-option { padding: 0.14rem 0.24rem; }
  .footer-bottom { flex-wrap: wrap; justify-content: space-between; gap: 0.18rem 0.5rem; padding-top: 0.3rem; font-size: 0.47rem; }
  .footer-signature { gap: 0.25rem; }
  .analog-statement { width: 100%; text-align: right; white-space: normal; }
}

@media (max-width: 380px) {
  .technical-label { max-width: 40%; font-size: 0.44rem; }
  .status-label { font-size: 0.58rem; }
  .brand-logo { width: 9.2rem; }
  .intro { top: 50%; }
  h1,
  .headline-accent { font-size: clamp(1.55rem, 7.9vw, 1.85rem); }
  .service-list { gap: 11px; }
  .service-list li { font-size: 0.61rem; }
  .contact-links { gap: 0.3rem 0.38rem; }
  .email-link,
  .contact-social-link { font-size: 0.43rem; }
  .whatsapp-contact { font-size: 0.42rem; }
  .footer-tools { gap: 0.2rem; }
  .social-links { gap: 0.2rem; }
  .footer-bottom { font-size: 0.43rem; }
}

@media (max-height: 700px) and (max-width: 700px) {
  .page-shell { min-height: 0; }
  .site-header { min-height: 7.2rem; }
  .intro { top: 50%; }
  .service-list li { padding-block: 0.14rem; }
  .site-footer { bottom: 0.32rem; }
}

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