:root {
  --ink: #122028;
  --muted: #5c6c76;
  --line: #d7e0e6;
  --paper: #f3f6f8;
  --white: #ffffff;
  --accent: #1c6d86;
  --shadow: 0 18px 40px rgba(18, 32, 40, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Instrument Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

.page {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(20rem, 42%) 1fr;
}

.panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.5rem;
  padding: clamp(1.5rem, 4vw, 3.75rem);
  overflow: hidden;
}

.panel > :not(.chem) {
  position: relative;
  z-index: 1;
}

.chem {
  position: absolute;
  inset: 0;
  color: var(--accent);
  pointer-events: none;
}

.chem-piece {
  position: absolute;
  opacity: 0.22;
}

.chem-piece svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.chem-piece polygon,
.chem-piece circle,
.piece-flask path,
.piece-tube path,
.piece-molecule circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linejoin: round;
}

.piece-atom circle,
.piece-molecule circle,
.liquid {
  fill: currentColor;
  stroke: none;
}

.piece-molecule circle {
  opacity: 0.35;
}

.liquid {
  opacity: 0.28;
  animation: swell 5.5s ease-in-out infinite;
}

.orbit {
  transform-box: view-box;
  transform-origin: center;
  animation: spin 9s linear infinite;
}

.piece-atom {
  top: 6%;
  left: 4%;
  width: 7.5rem;
  animation: drift 16s ease-in-out infinite;
}

.piece-ring {
  top: 8%;
  right: -1.5rem;
  width: 9.5rem;
  opacity: 0.18;
  animation: drift 18s ease-in-out infinite reverse;
}

.piece-ring svg {
  animation: spin 36s linear infinite;
}

.piece-molecule {
  right: 6%;
  bottom: 18%;
  width: 11rem;
  opacity: 0.2;
  animation: drift 20s ease-in-out infinite;
}

.piece-flask {
  left: 8%;
  bottom: 7%;
  width: 4.2rem;
  animation: bob 7s ease-in-out infinite;
}

.piece-tube {
  right: 9%;
  top: 54%;
  width: 2.1rem;
  opacity: 0.2;
  animation: bob 8.5s ease-in-out infinite reverse;
}

.bubble {
  position: absolute;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  opacity: 0;
  animation: rise 9s ease-in infinite;
}

.bubble::after {
  content: "";
  position: absolute;
  top: 18%;
  left: 22%;
  width: 28%;
  height: 28%;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.45;
}

.b1 {
  left: 22%;
  bottom: 12%;
  width: 1.1rem;
  height: 1.1rem;
  animation-duration: 8s;
}

.b2 {
  left: 68%;
  bottom: 20%;
  width: 0.7rem;
  height: 0.7rem;
  animation-duration: 11s;
  animation-delay: -3s;
}

.b3 {
  left: 46%;
  bottom: 8%;
  width: 0.55rem;
  height: 0.55rem;
  animation-duration: 7.5s;
  animation-delay: -5s;
}

.b4 {
  left: 82%;
  bottom: 30%;
  width: 0.9rem;
  height: 0.9rem;
  animation-duration: 12s;
  animation-delay: -7s;
}

.vapor {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.vapor span {
  position: absolute;
  bottom: 6%;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.55), transparent 62%);
  opacity: 0;
  animation: rise 13s ease-in infinite;
}

.vapor span:nth-child(1) { left: 14%; animation-duration: 12s; }
.vapor span:nth-child(2) { left: 28%; width: 0.55rem; height: 0.55rem; animation-duration: 9s; animation-delay: -4s; }
.vapor span:nth-child(3) { left: 47%; width: 1.15rem; height: 1.15rem; animation-duration: 15s; animation-delay: -2s; }
.vapor span:nth-child(4) { left: 63%; width: 0.65rem; height: 0.65rem; animation-duration: 11s; animation-delay: -7s; }
.vapor span:nth-child(5) { left: 78%; animation-duration: 14s; animation-delay: -5s; }
.vapor span:nth-child(6) { left: 88%; width: 0.5rem; height: 0.5rem; animation-duration: 10s; animation-delay: -9s; }

@keyframes drift {
  0%,
  100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(10px, -16px, 0); }
}

@keyframes bob {
  0%,
  100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes rise {
  0% { transform: translateY(0) scale(0.75); opacity: 0; }
  14% { opacity: 0.55; }
  100% { transform: translateY(-42vh) scale(1.05); opacity: 0; }
}

@keyframes swell {
  0%,
  100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
}

.mark {
  width: 2.4rem;
  height: 2.4rem;
  flex: none;
}

.mark circle,
.mark path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
}

.copy {
  max-width: 34rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(4.4rem, 7.4vw, 7.6rem);
  font-weight: 400;
  line-height: 0.86;
  letter-spacing: -0.035em;
}

h1 em {
  font-style: italic;
  color: var(--accent);
}

.lead {
  margin: 1.5rem 0 0;
  max-width: 28rem;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.contact {
  display: grid;
  gap: 0.75rem;
}

.mail {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.9rem;
  width: min(100%, 28rem);
  padding: 0.7rem 0.7rem 0.7rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.mail:hover,
.mail:focus-visible {
  border-color: var(--accent);
  transform: translateY(-1px);
  outline: none;
}

.mail:focus-visible {
  box-shadow: 0 0 0 3px rgba(28, 109, 134, 0.25);
}

.mail-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mail-address {
  font-weight: 600;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.mail-icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
}

.mail-icon svg {
  width: 1.1rem;
  height: 1.1rem;
}

.mail-icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero {
  margin: 0;
  min-height: 100dvh;
  position: relative;
  overflow: hidden;
  background: #c5d0d6;
}

.hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 900px) {
  .page {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 46vh;
    max-height: 34rem;
    order: -1;
  }

  .panel {
    gap: 1.75rem;
    padding-bottom: 2rem;
  }

  h1 {
    font-size: clamp(3.6rem, 18vw, 5.4rem);
  }

  .piece-atom {
    top: -0.4rem;
    left: auto;
    right: -0.6rem;
    width: 5.2rem;
    opacity: 0.16;
  }

  .piece-ring {
    top: auto;
    right: -2.2rem;
    bottom: -1.2rem;
    width: 7rem;
    opacity: 0.14;
  }

  .piece-molecule {
    top: auto;
    right: auto;
    left: -2.4rem;
    bottom: 1.5rem;
    width: 8rem;
    opacity: 0.15;
  }

  .piece-flask {
    left: auto;
    right: 1.2rem;
    bottom: 0.4rem;
    width: 3rem;
    opacity: 0.16;
  }

  .piece-tube {
    top: 4.8rem;
    right: 0.35rem;
    left: auto;
    width: 1.35rem;
    opacity: 0.14;
  }
}

@media (max-width: 520px) {
  .mail {
    grid-template-columns: 1fr auto;
    border-radius: 1.4rem;
  }

  .mail-label {
    grid-column: 1;
  }

  .mail-address {
    grid-column: 1;
    font-size: 0.95rem;
  }

  .mail-icon {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mail {
    transition: none;
  }

  .chem-piece,
  .chem-piece svg,
  .orbit,
  .liquid,
  .bubble,
  .vapor span {
    animation: none;
  }

  .bubble,
  .vapor span {
    opacity: 0.35;
  }
}
