@font-face {
  font-family: Bricolage;
  src: url("./assets/fonts/bricolage-grotesque-latin-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ground: #edefe5;
  --ink: #18392c;
  --field: #526b39;
  --accent: #dcccf1;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --duration-enter: 600ms;
  --duration-reveal: 700ms;
  --duration-feedback: 160ms;
  font-family: Bricolage, Arial, sans-serif;
  color: var(--ink);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(24px, 4vw, 64px);
}
.header { display: flex; align-items: center; }
.worm-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: inherit;
  text-decoration: none;
}
.worm-icon {
  display: block;
  width: 38px;
  height: auto;
  flex-shrink: 0;
  transition: transform var(--duration-feedback) var(--ease-out);
}
.brand-name {
  font-size: clamp(24px, 2vw, 28px);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1;
}
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; animation: none; }
main {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(240px, 0.65fr);
  align-items: end;
  align-content: center;
  gap: clamp(32px, 5vw, 80px);
  padding: 80px 0 104px;
}
h1 {
  font-size: clamp(5.5rem, 11.5vw, 11.5rem);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.96;
  margin: 0;
}
.headline-line { display: block; overflow: clip; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.headline-line > span { display: block; }
.intro {
  display: grid;
  justify-items: start;
  gap: 28px;
  padding-bottom: 8px;
}
.intro p {
  max-width: 30ch;
  font-size: clamp(1rem, 1.45vw, 1.25rem);
  line-height: 1.55;
  margin: 0;
  text-wrap: pretty;
}
.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  min-height: 60px;
  padding: 16px 24px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  transition: transform var(--duration-feedback) var(--ease-out);
}
.button-label { display: grid; overflow: clip; }
.button-label > span {
  grid-area: 1 / 1;
  transition: transform 250ms var(--ease-out), opacity var(--duration-feedback) ease;
}
.button-label-hover { display: none; transform: translateY(110%); opacity: 0; }
.contact-envelope { display: block; width: 28px; height: 28px; flex-shrink: 0; }
.envelope-flap { transform-origin: 16px 12px; transition: transform 250ms var(--ease-out); }
.envelope-letter {
  opacity: 0;
  transform: translateY(3px);
  transition: transform 250ms var(--ease-out), opacity var(--duration-feedback) ease;
}
@media (hover: hover) and (pointer: fine) {
  .worm-logo:hover .worm-icon { transform: translateY(-2px) rotate(-8deg); }
  .contact-button:hover { transform: translateY(-3px) rotate(-2deg); }
  .contact-button:hover .envelope-flap { transform: scaleY(-1); }
  .contact-button:hover .envelope-letter { transform: translateY(-6px); opacity: 1; transition-delay: 50ms; }
}
@media (min-width: 760px) and (hover: hover) and (pointer: fine) {
  .button-label-hover { display: block; }
  .contact-button:hover .button-label-default { transform: translateY(-110%); opacity: 0; }
  .contact-button:hover .button-label-hover { transform: translateY(0); opacity: 1; }
}
.contact-button:active { transform: scale(0.97); }

footer {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--field);
}
.company { display: grid; gap: 2px; text-align: right; }
.company-name { font-weight: 600; color: var(--ink); }
::selection { color: var(--ground); background: var(--ink); }
@media (max-width: 759px) {
  .worm-icon { width: 34px; }
  .brand-name { font-size: 18px; }
  main { grid-template-columns: 1fr; gap: 36px; padding: 64px 0 72px; }
  h1 { font-size: clamp(3.75rem, 17vw, 7rem); }
  .intro { gap: 24px; padding-bottom: 0; }
  .intro p { font-size: 1.125rem; max-width: 32ch; }
  .contact-button { min-height: 44px; padding: 10px 16px; gap: 10px; font-size: 1rem; }
  .contact-envelope { width: 22px; height: 22px; }
}
@media (max-width: 480px) {
  footer { flex-direction: column; align-items: start; gap: 20px; }
  .company { text-align: left; }
}
@media (max-height: 640px) and (min-width: 760px) {
  main { padding: 48px 0; }
  h1 { font-size: clamp(5rem, 9vw, 8rem); }
}
@media (prefers-reduced-motion: no-preference) {
  .worm-logo,
  .intro p,
  .contact-button,
  footer > span,
  .company > span {
    animation: soft-arrive var(--duration-enter) var(--ease-out) backwards;
  }
  .headline-line > span { animation: surface-reveal var(--duration-reveal) var(--ease-out) backwards; animation-delay: 70ms; }
  .headline-line:nth-child(2) > span { animation-delay: 140ms; }
  .intro p { animation-delay: 210ms; }
  .contact-button { animation-delay: 280ms; }
  footer > span { animation-delay: 350ms; }
  .company > .company-name { animation-delay: 420ms; }
  .company > span:last-child { animation-delay: 490ms; }
}
@keyframes surface-reveal {
  from { transform: translateY(110%); }
  to { transform: translateY(0); }
}
@keyframes soft-arrive {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes soft-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .worm-logo,
  .headline-line > span,
  .intro p,
  .contact-button,
  footer > span,
  .company > span {
    animation: soft-fade var(--duration-feedback) ease both;
  }
  .worm-icon,
  .envelope-flap,
  .envelope-letter { transition: none; }
  .button-label > span { transition: opacity var(--duration-feedback) ease; }
  .button-label-hover { transform: none; }
  .envelope-letter,
  .contact-button:hover .envelope-letter { transform: none; opacity: 0; }
  .worm-logo:hover .worm-icon,
  .contact-button:hover,
  .contact-button:active,
  .contact-button:hover .envelope-flap,
  .contact-button:hover .button-label > span { transform: none; }
}
