:root { --cream: #fff7e6; --ink: #111; --cheese: #ffc93c; --mute: #6e6250; }
* { box-sizing: border-box; margin: 0; }
html { background: var(--cream); color: var(--ink); }
body { font: 500 18px/1.45 Switzer, system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }

.bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px clamp(16px, 3vw, 40px); font-size: 15px; }
.bar a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.home { white-space: nowrap; display: flex; align-items: center; gap: 10px; font-weight: 700; }
.home:hover { text-decoration: none !important; }

.hero { position: relative; min-height: calc(100svh - 68px); display: flex; flex-direction: column; justify-content: flex-end; padding: 0 clamp(16px, 3vw, 40px); }
.word { font-weight: 800; letter-spacing: -0.055em; line-height: 0.8; white-space: nowrap; width: max-content; padding-bottom: 0.2em; position: relative; z-index: 1; }

.noodle {
  --rx: 0deg; --ry: 0deg;
  position: absolute; z-index: 2; left: 50%; top: 46%;
  width: min(62vh, 78vw); aspect-ratio: 1; translate: -50% -50%;
  border: 0; padding: 0; background: none; cursor: pointer;
  perspective: 900px; -webkit-tap-highlight-color: transparent;
}
.noodle img {
  width: 100%; height: 100%; display: block;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1);
  animation: bob 6s ease-in-out infinite;
  filter: drop-shadow(0 22px 18px rgb(120 70 0 / 0.16));
}
.noodle.spin img { animation: spin 0.9s cubic-bezier(.3,1.4,.5,1), bob 6s ease-in-out 0.9s infinite; }
@keyframes bob { 0%, 100% { translate: 0 0; rotate: -4deg; } 50% { translate: 0 -2.5%; rotate: 4deg; } }
@keyframes spin { from { rotate: 0deg; scale: 0.9; } to { rotate: 360deg; scale: 1; } }

.cos { padding: clamp(80px, 14vh, 160px) clamp(16px, 3vw, 40px); }
.lede { font-size: clamp(22px, 2.6vw, 32px); color: var(--mute); margin-bottom: 40px; }
.co {
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 8px 24px;
  padding: clamp(20px, 3vw, 36px) clamp(12px, 1.5vw, 20px);
  border-top: 2px solid var(--ink);
  transition: background 0.25s, color 0.25s;
}
.co:last-child { border-bottom: 2px solid var(--ink); }
.name { font-weight: 800; font-size: clamp(48px, 10vw, 150px); letter-spacing: -0.05em; line-height: 0.9; }
.what { grid-column: 1; color: var(--mute); transition: color 0.25s; }
.go { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-size: clamp(40px, 7vw, 110px); line-height: 1; transition: translate 0.3s; }
.co:hover { background: var(--ink); color: var(--cheese); }
.co:hover .what { color: var(--cream); }
.co:hover .go { translate: 12px 0; }

@media (prefers-reduced-motion: reduce) {
  .noodle img, .noodle.spin img { animation: none; transition: none; }
}

@media (max-width: 520px) { .bar:first-child > a:last-child { display: none; } }

/* 404 */
body > main:only-of-type > h1:not(.word) { font-weight: 800; font-size: clamp(56px, 12vw, 160px); letter-spacing: -0.05em; padding: 20vh clamp(16px, 3vw, 40px) 24px; }
body > main:only-of-type > p { padding: 0 clamp(16px, 3vw, 40px); font-size: 22px; text-decoration: underline; }

.contact { background: var(--ink); color: var(--cream); padding: clamp(80px, 14vh, 160px) clamp(16px, 3vw, 40px); }
body > footer.bar { background: var(--ink); color: var(--cream); }
footer.bar nav { display: flex; gap: 24px; }
.contact h2 { font-weight: 800; font-size: clamp(48px, 10vw, 150px); letter-spacing: -0.05em; line-height: 0.9; margin-bottom: clamp(32px, 5vw, 56px); }
.form { display: grid; gap: 28px; max-width: 900px; }
.form label { display: grid; gap: 8px; font-size: 15px; color: var(--cream); opacity: 0.7; }
.form label:focus-within { opacity: 1; }
.form input, .form textarea { font: 500 clamp(22px, 2.4vw, 34px)/1.2 Switzer, system-ui, sans-serif; letter-spacing: -0.03em; color: var(--cream); background: transparent; border: 0; border-bottom: 2px solid var(--cream); padding: 6px 0 10px; border-radius: 0; outline: none; width: 100%; resize: vertical; }
.form input:focus, .form textarea:focus { border-color: var(--cheese); }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form button { justify-self: start; font: 700 clamp(22px, 2.4vw, 34px) Switzer, system-ui, sans-serif; letter-spacing: -0.03em; background: var(--cream); color: var(--ink); border: 0; padding: 14px 32px; border-radius: 999px; cursor: pointer; transition: translate 0.2s; }
.form button:hover { translate: 0 -2px; }
.sent { font-weight: 800; font-size: clamp(30px, 4.6vw, 84px); letter-spacing: -0.045em; line-height: 1; }
.failed { font-size: 20px; color: #ff8a7a; margin-top: 16px; }
[hidden] { display: none !important; }
