:root {
  --ink: #27221f;
  --paper: #f7f4ed;
  --blue: #3f75b6;
  --green: #5fa686;
  --yellow: #ffd23f;
  --red: #f45b5b;
  --pale-blue: #afd2e6;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.site-shell {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 100svh;
  max-width: 1600px;
  margin: 0 auto;
  padding: 32px clamp(24px, 5vw, 80px) 24px;
  flex-direction: column;
  overflow: hidden;
}

.ambient {
  position: absolute;
  z-index: -2;
  border-radius: 999px;
  filter: blur(2px);
  opacity: 0.6;
  pointer-events: none;
}

.ambient-one {
  width: 360px;
  height: 360px;
  top: -200px;
  right: 5%;
  background: rgba(255, 210, 63, 0.24);
}

.ambient-two {
  width: 300px;
  height: 300px;
  bottom: -200px;
  left: -110px;
  background: rgba(63, 117, 182, 0.13);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-logo {
  width: clamp(180px, 20vw, 280px);
  height: auto;
  object-fit: contain;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 36px);
}

.language-switch {
  display: inline-flex;
  padding: 3px;
  align-items: center;
  gap: 2px;
  border: 1px solid rgba(39, 34, 31, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
}

.language-link {
  display: grid;
  min-width: 37px;
  height: 30px;
  padding: 0 8px;
  place-items: center;
  border-radius: 999px;
  color: #77716a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  transition: color 180ms ease, background 180ms ease;
}

a.language-link:hover,
a.language-link:focus-visible {
  color: var(--blue);
}

.language-link.active {
  color: white;
  background: var(--ink);
}

.header-contact {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 0 9px;
  border: 0;
  border-bottom: 2px solid var(--ink);
  color: inherit;
  background: none;
  font-family: inherit;
  cursor: pointer;
  font-size: 14px;
  font-weight: 750;
  transition: color 180ms ease, border-color 180ms ease;
}

.header-contact:hover,
.header-contact:focus-visible { color: var(--blue); border-color: var(--blue); }

.hero {
  display: grid;
  width: 100%;
  margin: auto 0;
  padding: clamp(64px, 9vh, 110px) 0 clamp(56px, 7vh, 90px);
  grid-template-columns: minmax(0, 1.03fr) minmax(400px, 0.97fr);
  gap: clamp(50px, 8vw, 130px);
  align-items: center;
}

.hero-copy { max-width: 690px; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  color: #5e5a55;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(95, 166, 134, 0.14);
}

h1 {
  margin: 0;
  font-size: clamp(52px, 6.5vw, 96px);
  font-weight: 850;
  line-height: 0.97;
  letter-spacing: -0.062em;
}

.highlight { color: var(--blue); }

.lead {
  max-width: 610px;
  margin: 30px 0 0;
  color: #5e5a55;
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  margin-top: 38px;
  align-items: center;
  gap: 24px;
}

.primary-button {
  display: inline-flex;
  min-height: 56px;
  padding: 0 22px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border-radius: 4px;
  border: 0;
  color: white;
  background: var(--ink);
  font-family: inherit;
  cursor: pointer;
  font-size: 14px;
  font-weight: 750;
  box-shadow: 5px 5px 0 var(--yellow);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.primary-button:hover,
.primary-button:focus-visible {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 var(--yellow);
}

.hero-actions p {
  max-width: 190px;
  margin: 0;
  color: #77716a;
  font-size: 12px;
  line-height: 1.5;
}

.visual {
  position: relative;
  display: grid;
  width: min(100%, 550px);
  aspect-ratio: 1;
  justify-self: end;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  transform: rotate(2deg);
}

.visual::before {
  content: "";
  position: absolute;
  inset: 8% -5% -5% 7%;
  z-index: -1;
  border: 2px solid rgba(39, 34, 31, 0.11);
  transform: rotate(-5deg);
}

.tile {
  position: relative;
  overflow: hidden;
  border-radius: 7px;
  box-shadow: 0 15px 35px rgba(39, 34, 31, 0.1);
}

.tile-blue { grid-row: span 2; background: var(--blue); }
.tile-green { background: var(--green); }
.tile-yellow { background: var(--yellow); }

.tile-label {
  position: absolute;
  z-index: 2;
  top: 20px;
  left: 20px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  color: white;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tile-label.dark { color: var(--ink); border-color: rgba(39, 34, 31, 0.38); }

.shape-circle {
  position: absolute;
  width: 58%;
  aspect-ratio: 1;
  right: -16%;
  bottom: 7%;
  border-radius: 50%;
  background: var(--pale-blue);
}

.shape-line {
  position: absolute;
  width: 145%;
  height: 2px;
  left: -22%;
  bottom: 37%;
  background: var(--yellow);
  transform: rotate(-32deg);
}

.shape-arch {
  position: absolute;
  width: 64%;
  height: 64%;
  right: -12%;
  bottom: -18%;
  border: 25px solid var(--red);
  border-radius: 50% 50% 0 0;
}

.shape-loop {
  position: absolute;
  width: 82%;
  height: 34%;
  right: -20%;
  bottom: 18%;
  border: 3px solid var(--blue);
  border-radius: 50%;
  transform: rotate(6deg);
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(39, 34, 31, 0.15);
  color: #77716a;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

footer p { margin: 0; }

@media (max-width: 980px) {
  .hero { padding-top: 70px; grid-template-columns: 1fr; gap: 65px; }
  .hero-copy { max-width: 760px; }
  .visual { width: min(88vw, 540px); justify-self: center; }
}

@media (max-width: 620px) {
  .site-shell { padding: 22px 20px 20px; }
  .header-contact { font-size: 0; }
  .header-contact span { font-size: 17px; }
  .hero { padding: 58px 0 52px; gap: 52px; }
  h1 { font-size: clamp(40px, 11.5vw, 52px); }
  .lead { margin-top: 24px; font-size: 16px; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .primary-button { width: 100%; }
  .hero-actions p { max-width: none; }
  .visual { width: 93%; gap: 5px; }
  .tile-label { top: 13px; left: 13px; font-size: 9px; }
  footer { align-items: flex-start; flex-direction: column; line-height: 1.5; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
