:root {
  --ink: #171717;
  --muted: #777777;
  --line: #d6d6d6;
  --paper: #ffffff;
  --gutter: clamp(1.35rem, 4.4vw, 4.5rem);
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; background: var(--paper); color: var(--ink); }

body {
  font-family: "Lato", Arial, sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

button, a { font: inherit; }
a { color: inherit; }

.page-shell {
  width: 100%;
  min-height: 100svh;
  padding: 2.5rem var(--gutter) 2rem;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
}

.header, .footer { position: relative; z-index: 10; display: flex; align-items: flex-start; justify-content: space-between; }
.header { justify-content: flex-end; }

.brand { display: none; }
.brand img { display: block; width: auto; height: 100%; }

.language-switcher { display: flex; gap: clamp(.9rem, 2.1vw, 2rem); }
.language-switcher button {
  position: relative;
  border: 0;
  padding: .15rem 0 .55rem;
  color: var(--ink);
  background: transparent;
  font-size: .76rem;
  letter-spacing: .08em;
  cursor: pointer;
}
.language-switcher button::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
.language-switcher button[aria-pressed="true"]::after,
.language-switcher button:hover::after,
.language-switcher button:focus-visible::after { transform: scaleX(1); }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(430px, 1.1fr);
  align-items: center;
  min-height: min(670px, 62svh);
  padding: clamp(1.5rem, 4svh, 3.5rem) 0 clamp(1.2rem, 3svh, 2.8rem);
}

.hero-copy { position: relative; z-index: 3; max-width: 680px; }
h1 {
  margin: 0;
  font-family: "Lato", Arial, sans-serif;
  font-size: clamp(2.8rem, min(7.25vw, 13svh), 8.1rem);
  font-weight: 900;
  line-height: .9;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.intro {
  max-width: 390px;
  margin: 2.7rem 0 0;
  color: #5f5f5f;
  font-size: clamp(1rem, 1.3vw, 1.3rem);
  line-height: 1.55;
}
.status { width: min(100%, 480px); margin-top: 2rem; font-size: .8rem; letter-spacing: .01em; }
.status-line { position: relative; height: 1px; margin-top: .9rem; background: var(--line); overflow: hidden; }
.status-line i { display: block; width: 13%; height: 100%; background: var(--ink); animation: scan 4.8s cubic-bezier(.65,0,.35,1) infinite; }

.email {
  display: inline-flex;
  align-items: center;
  gap: 1.1rem;
  margin-top: 4rem;
  font-size: .9rem;
  text-decoration: none;
}
.email svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s ease; }
.email span { border-bottom: 1px solid var(--ink); padding-bottom: .2rem; }
.email:hover svg { transform: translateX(6px); }

.hero-brand {
  display: flex;
  justify-self: end;
  align-items: center;
  justify-content: center;
  width: min(40vw, 560px);
  animation: brandFloat 9s ease-in-out infinite;
}
.hero-brand img {
  display: block;
  width: 100%;
  height: auto;
  opacity: .92;
}

.footer { padding-top: 1.5rem; border-top: 1px solid var(--line); align-items: flex-end; }
.brand-note { max-width: 390px; margin: 0; color: var(--muted); font-size: .7rem; line-height: 1.5; letter-spacing: .045em; text-transform: uppercase; }
.social-links { display: flex; gap: 2.6rem; }
.social-links a { position: relative; text-decoration: none; font-size: .78rem; }
.social-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.3rem; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s ease; }
.social-links a:hover::after, .social-links a:focus-visible::after { transform: scaleX(1); transform-origin: left; }

@keyframes scan { 0%,100% { transform: translateX(0); } 50% { transform: translateX(680%); } }
@keyframes brandFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

@media (max-width: 900px) {
  .page-shell { padding-top: 1.5rem; min-height: 100svh; }
  .header { justify-content: space-between; }
  .brand { display: block; height: 40px; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding: 3rem 0 2.7rem; align-content: center; }
  .hero-copy { max-width: none; }
  h1 { max-width: 720px; font-size: clamp(2.6rem, min(13vw, 12svh), 7rem); }
  .intro { margin-top: 2rem; }
  .email { margin-top: 3rem; }
  .hero-brand { display: none; }
  .footer { gap: 1.5rem; }
}

@media (max-width: 560px) {
  .page-shell { padding-bottom: 1.35rem; }
  .brand { height: 34px; }
  .language-switcher { gap: .78rem; }
  .language-switcher button { font-size: .67rem; }
  .hero { padding: 2.5rem 0 2.5rem; }
  h1 { font-size: clamp(2.6rem, min(18.2vw, 12svh), 5.5rem); line-height: .91; }
  .intro { max-width: 310px; font-size: .97rem; }
  .status { margin-top: 1.8rem; }
  .email { margin-top: 3rem; gap: .7rem; font-size: .74rem; }
  .footer { align-items: flex-start; flex-direction: column-reverse; }
  .brand-note { display: none; }
  .social-links { width: 100%; justify-content: space-between; gap: 1rem; }
}

@media (max-height: 480px) and (max-width: 900px) {
  .page-shell { padding-top: 1rem; }
  .hero { padding: 1.5rem 0; }
  .intro { margin-top: 1.2rem; }
  .status { margin-top: 1.2rem; }
  .email { margin-top: 1.5rem; }
}

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

:focus-visible { outline: 1px solid var(--ink); outline-offset: 5px; }
