/* OneJump Studio company site.
   Palette sampled from the logo: coral #FC6759, orange #FDA64E, lime #BFD152.
   White paper background, warm ink text, hand-drawn frames echoing the logo. */

:root {
  --coral: #fc6759;
  --orange: #fda64e;
  --lime: #bfd152;
  --lime-deep: #9db13a; /* lime darkened for text-on-white legibility */
  /* Teal pair sampled from the Word Sabotage banner. */
  --teal: #1a9e94;
  --teal-deep: #0f837b;
  /* Violet pair sampled from the Paper Wolves banner. */
  --violet: #904d98;
  --violet-deep: #713a78;
  --ink: #35332c;
  --muted: #6f6b5e;
  --paper: #ffffff;
  --paper-warm: #fdfcf8;
  --frame: 3px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Baloo 2", "Nunito", system-ui, sans-serif;
  line-height: 1.15;
  margin: 0;
}

.c-coral  { color: var(--coral); }
.c-orange { color: var(--orange); }
.c-lime   { color: var(--lime-deep); }

/* ── Hero ─────────────────────────────────────────────────────────────── */

.hero {
  max-width: 720px;
  margin: 0 auto;
  padding: 72px 24px 40px;
  text-align: center;
}

.hero-logo {
  width: min(280px, 62vw);
  height: auto;
  animation: one-jump 1s cubic-bezier(0.34, 1.2, 0.5, 1) both;
}

.hero-title {
  font-size: clamp(1.7rem, 4.6vw, 2.5rem);
  font-weight: 700;
  margin-top: 34px;
}

.hero-sub {
  color: var(--muted);
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  max-width: 34em;
  margin: 18px auto 0;
}

/* The studio's one jump: the logo drops in, lands with a soft squash, and
   settles. Runs once. */
@keyframes one-jump {
  0%   { opacity: 0; transform: translateY(-56px); }
  55%  { opacity: 1; transform: translateY(0) scale(1.04, 0.94); }
  72%  { transform: translateY(-12px) scale(0.99, 1.01); }
  86%  { transform: translateY(0) scale(1.01, 0.99); }
  100% { opacity: 1; transform: translateY(0) scale(1, 1); }
}

/* Hero text rises after the logo lands. */
.stagger {
  opacity: 0;
  animation: rise-in 0.7s ease-out forwards;
}
.hero-title.stagger { animation-delay: 0.55s; }
.hero-sub.stagger   { animation-delay: 0.75s; }

@keyframes rise-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Sections ─────────────────────────────────────────────────────────── */

.section {
  max-width: 880px;
  margin: 0 auto;
  padding: 56px 24px;
}

.section h2 {
  font-size: clamp(1.5rem, 3.6vw, 1.9rem);
  font-weight: 700;
  display: inline-block;
  position: relative;
  margin-bottom: 30px;
}

/* Brush-stroke underline lifted from the logo frame: one long lime pull, a
   small break, then the leftover nub. The stroke wipes in left to right when
   the section appears, and the nub lands just after. */
.brush {
  display: block;
  width: min(220px, 100%);
  height: 12px;
  margin-top: 4px;
  overflow: visible;
}
.brush path { fill: var(--lime); }
.brush .brush-main {
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.6s cubic-bezier(0.3, 0.8, 0.4, 1) 0.15s;
}
.brush .brush-nub {
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.25s ease-out 0.7s, transform 0.25s ease-out 0.7s;
}
.in-view .brush .brush-main { transform: scaleX(1); }
.in-view .brush .brush-nub { opacity: 1; transform: none; }

/* Scroll reveal: elements rise gently the first time they enter the view. */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease-out, transform 0.65s ease-out;
}
.reveal.in-view {
  opacity: 1;
  transform: none;
}
/* Stagger sibling tiles inside a revealed section. */
.tiles .tile:nth-child(2) { transition-delay: 0.12s; }
.tiles .tile:nth-child(3) { transition-delay: 0.24s; }

/* ── What we do: tiles ────────────────────────────────────────────────── */

.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 720px) {
  .tiles { grid-template-columns: 1fr; }
}

/* The wobbly radii echo the logo's hand-drawn frame. */
.tile {
  background: var(--paper-warm);
  border: var(--frame) solid;
  border-radius: 26px 30px 24px 30px / 30px 24px 30px 26px;
  padding: 26px 24px 22px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.tile:hover {
  transform: translateY(-4px) rotate(-0.4deg);
  box-shadow: 0 10px 24px -14px rgba(53, 51, 44, 0.35);
}
.tile h3 { font-size: 1.25rem; margin: 10px 0 6px; }
.tile p  { margin: 0; color: var(--muted); font-size: 0.97rem; }

.tile-coral  { border-color: var(--coral); }
.tile-orange { border-color: var(--orange); }
.tile-lime   { border-color: var(--lime); }
.tile-coral h3  { color: var(--coral); }
.tile-orange h3 { color: var(--orange); }
.tile-lime h3   { color: var(--lime-deep); }

.doodle {
  width: 44px;
  height: 44px;
}
.doodle path {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tile-coral .doodle  { color: var(--coral); }
.tile-orange .doodle { color: var(--orange); }
.tile-lime .doodle   { color: var(--lime-deep); }

/* ── Our work ─────────────────────────────────────────────────────────── */

.work-stack {
  display: grid;
  gap: 26px;
}

.work-card {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 26px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  background: var(--paper-warm);
  border: var(--frame) solid var(--lime);
  border-radius: 30px 26px 30px 24px / 26px 30px 24px 30px;
  padding: 26px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px -16px rgba(53, 51, 44, 0.35);
}
@media (max-width: 720px) {
  .work-card { grid-template-columns: 1fr; }
}

.work-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 2px solid rgba(53, 51, 44, 0.08);
}

.work-badge {
  display: inline-block;
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
}
.work-body h3 {
  font-size: 1.5rem;
  color: var(--coral);
  margin-bottom: 8px;
}
.work-body > p:not(.work-badge):not(.work-link) {
  color: var(--muted);
  font-size: 0.98rem;
  margin: 0;
}

.work-link {
  margin: 16px 0 0;
  font-weight: 700;
  color: var(--ink);
}
.work-link .arrow {
  display: inline-block;
  margin-left: 6px;
  transition: transform 0.2s ease;
}
.work-card:hover .arrow { transform: translateX(5px); }

/* Coming-soon variant: teal frame, no link affordance, image on the right on
   wide screens (text leads for an unreleased project). */
.work-card--teal {
  border-color: var(--teal);
  cursor: default;
}
.work-card--flip .work-shot { order: 2; }
.work-card--flip .work-body { order: 1; }
@media (max-width: 720px) {
  /* Stacked: keep the text first, image after. */
  .work-card--flip .work-shot { order: 2; }
}
.work-badge--teal { color: var(--teal); }
h3.t-teal { color: var(--teal-deep); }

/* Paper Wolves variant: violet frame, image leading. */
.work-card--violet {
  border-color: var(--violet);
  cursor: default;
}
.work-badge--violet { color: var(--violet); }
h3.t-violet { color: var(--violet-deep); }

/* ── Terms ────────────────────────────────────────────────────────────── */

.section-terms { padding-top: 40px; }

.terms {
  border-top: 2px dashed rgba(53, 51, 44, 0.15);
  padding-top: 10px;
}
.terms h3 {
  font-size: 1.02rem;
  margin: 22px 0 6px;
}
.terms p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ── Contact form ─────────────────────────────────────────────────────── */

.contact-form {
  background: var(--paper-warm);
  border: var(--frame) solid var(--orange);
  border-radius: 26px 30px 24px 30px / 30px 24px 30px 26px;
  padding: 26px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 720px) {
  .field-row { grid-template-columns: 1fr; }
}

.field {
  display: block;
  margin-bottom: 16px;
}
.field span {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 6px;
}
.field span em {
  font-style: normal;
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--muted);
  margin-left: 6px;
}
.field input,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid rgba(53, 51, 44, 0.18);
  border-radius: 12px;
  padding: 10px 12px;
  transition: border-color 0.15s ease;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--orange);
}
.field textarea { resize: vertical; min-height: 120px; }

/* Honeypot: parked off-screen, invisible to people, present for bots. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-foot {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  font-family: "Baloo 2", "Nunito", system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: var(--coral);
  border: none;
  border-radius: 14px 16px 13px 16px / 16px 13px 16px 14px;
  padding: 10px 26px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { background: #ef5a4c; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.6; cursor: default; transform: none; }

.form-status {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}
.form-status.is-ok { color: var(--lime-deep); font-weight: 700; }
.form-status.is-error { color: var(--coral); font-weight: 700; }

/* ── Subpages (terms) ─────────────────────────────────────────────────── */

.subpage-header {
  max-width: 720px;
  margin: 0 auto;
  padding: 34px 24px 0;
}
.subpage-home img {
  width: 88px;
  height: auto;
  transition: transform 0.2s ease;
}
.subpage-home:hover img { transform: translateY(-3px); }

.legal {
  max-width: 720px;
  padding-top: 24px;
}
.legal h1 {
  font-size: clamp(1.7rem, 4vw, 2.2rem);
  font-weight: 700;
}
/* No reveal machinery on legal pages: show the underline as drawn. */
.legal .brush .brush-main { transform: none; transition: none; }
.legal .brush .brush-nub { opacity: 1; transform: none; transition: none; }
.legal-date {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 10px 0 26px;
}
.legal h2 {
  font-size: 1.1rem;
  margin: 28px 0 8px;
}
.legal p, .legal ul {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.95rem;
}
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--teal-deep); font-weight: 700; }

/* ── Footer ───────────────────────────────────────────────────────────── */

.footer {
  margin-top: 40px;
  border-top: var(--frame) solid var(--lime);
  background: var(--paper-warm);
}
.footer-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 40px 24px 48px;
  text-align: center;
}
.footer-logo {
  width: 72px;
  height: auto;
  opacity: 0.9;
}
.footer address {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 14px;
}
.footer address p { margin: 2px 0; }
.footer-name {
  font-weight: 700;
  color: var(--ink);
  font-size: 0.95rem;
}
.footer-nav {
  margin-top: 14px;
  font-size: 0.85rem;
}
.footer-nav a {
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--lime);
  padding-bottom: 1px;
}
.footer-nav a:hover { color: var(--ink); }

.footer-copy {
  margin: 18px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ── Motion safety ────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-logo, .stagger { animation: none; opacity: 1; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .brush .brush-main { transform: none; transition: none; }
  .brush .brush-nub { opacity: 1; transform: none; transition: none; }
  .tile, .work-card, .work-link .arrow { transition: none; }
}
