/* Landing page sections. Loaded after styles.css. */

/* Hero */
.hero {
  position: relative;
  padding: clamp(32px, 5vw, 64px) var(--gutter) 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas:
    "title  title"
    "stage  stage"
    "actions actions";
  gap: 24px;
  border-bottom: 1px solid var(--line);
}
.hero-title { grid-area: title; font-size: clamp(26px, 4.2vw, 60px); }
.hero-stage {
  grid-area: stage;
  position: relative;
  min-height: clamp(380px, 46vw, 600px);
  display: grid; place-items: center;
}
.hero-mark {
  position: relative;
  width: clamp(220px, 32vw, 420px); aspect-ratio: 1;
  background: var(--lime);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 7% 7% 6%;
  transform: rotate(-3deg);
  animation: bob 6s ease-in-out infinite;
}
.hero-mark > img { width: 58%; margin: 2% 0 0 4%; }
.mark-text { padding-top: 10px; }
.mark-text p { margin: 0 0 6px; }
.mark-text i { font-style: normal; color: var(--blue); }
.mark-arrow { color: var(--blue); font-weight: 500; margin: 0 !important; }
.corner { position: absolute; width: 14px; height: 14px; border: 1.5px solid var(--ink); background: var(--paper); }
.corner.tl { left: -7px; top: -7px; } .corner.tr { right: -7px; top: -7px; }
.corner.bl { left: -7px; bottom: -7px; } .corner.br { right: -7px; bottom: -7px; }
@keyframes bob { 50% { transform: rotate(-1deg) translateY(-10px); } }

.leaders { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.leaders polyline { fill: none; stroke: var(--ink); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.node {
  position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px;
  border: 1.5px solid var(--ink); background: var(--white);
}
.node::after { content: ""; position: absolute; inset: 2.5px; background: var(--ink); }

.callouts { list-style: none; margin: 0; padding: 0; }
.callouts li { position: absolute; width: min(220px, 24%); }
.callouts b { display: block; font-weight: 500; color: var(--blue); margin-bottom: 4px; }
.callouts .c1 { left: 0; top: calc(12% + 10px); }
.callouts .c2 { right: 0; top: calc(20% + 10px); text-align: right; }
.callouts .c3 { left: 0; bottom: calc(14% + 10px); }
.callouts .c4 { right: 0; bottom: calc(12% + 10px); text-align: right; }

.hero-actions { grid-area: actions; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* Statement */
.statement { padding: clamp(64px, 10vw, 140px) var(--gutter) 72px; max-width: 1280px; margin: 0 auto; }
.big {
  font-size: clamp(32px, 5.4vw, 80px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 0 0 0.45em;
  max-width: 16ch;
  margin-left: auto;
}
.boxed { border: 2px solid var(--ink); border-radius: 0.22em; padding: 0 0.12em; white-space: nowrap; }
.hl { background: var(--lime); padding: 0 0.1em; white-space: nowrap; }
.chip {
  display: inline-grid; place-items: center;
  width: 1.15em; height: 0.85em;
  border-radius: 0.18em;
  vertical-align: -0.05em;
  border: 2px solid var(--ink);
}
.chip img { width: 72%; }
.chip svg { width: 62%; height: 62%; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.chip-lime { background: var(--lime); transform: rotate(-6deg); }
.chip-white { background: var(--white); color: var(--ink); transform: rotate(5deg); }
.chip-blue { background: var(--blue); color: var(--white); transform: rotate(-4deg); }

.notes {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px; margin-top: 72px; padding-top: 20px;
  border-top: 1px solid var(--line);
}
.notes p { margin: 0; max-width: 34ch; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); border: 1.5px solid var(--ink); margin-right: 8px; vertical-align: -1px; }

/* Word board */
.board-wrap { background: var(--blue); padding: clamp(40px, 7vw, 96px) var(--gutter); }
.board {
  container-type: inline-size;
  position: relative;
  max-width: 1100px; margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: var(--paper);
  overflow: hidden;
  user-select: none;
}
.board-nav {
  display: flex; justify-content: space-between;
  padding: 2.2cqw 3cqw;
  font: 600 3.1cqw/1 var(--sans); text-transform: uppercase; letter-spacing: 0.01em;
}
.board-nav a { color: var(--blue); text-decoration: none; }
.board-nav a:hover { color: var(--ink); }
.words span {
  position: absolute;
  font: 600 3.3cqw/1 var(--sans);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transform: translate(var(--dx, 0px), var(--dy, 0px)) rotate(var(--r, 0deg));
  transform-origin: left top;
  transition: transform .45s cubic-bezier(.2, .8, .2, 1), color .15s;
}
.words span:hover { color: var(--blue); }
.words .b { color: var(--blue); }
.words .l { background: var(--lime); padding: 0 0.15em; }
.board-mark {
  position: absolute; left: 60%; top: 34%;
  width: 13cqw; aspect-ratio: 1;
  display: grid; place-items: center;
  background: var(--lime);
  border: 2px solid var(--ink);
  transform: rotate(-4deg);
}
.board-mark img { width: 72%; }
.board-caption { color: var(--lime); text-align: center; margin: 20px 0 0; font-weight: 500; }

/* Services */
.services { padding: clamp(64px, 9vw, 120px) var(--gutter); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 48px; }
.section-head .display { font-size: clamp(24px, 3.4vw, 46px); }
.cells {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1.5px solid var(--ink); border-left: 1.5px solid var(--ink);
}
.cell {
  position: relative;
  padding: 20px 20px 24px;
  border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink);
  background: var(--paper);
  display: flex; flex-direction: column;
  min-height: 300px;
  transition: background .2s;
}
.cell:hover { background: var(--lime); }
.cell:nth-child(2):hover { background: var(--blue); color: var(--white); }
.cell:nth-child(2):hover .idx { color: var(--lime); }
.cell:nth-child(2):hover .tags li { border-color: var(--white); }
.cell:nth-child(3):hover { background: var(--white); }
.idx { color: var(--blue); font-weight: 500; }
.cell h3 { font: 600 clamp(20px, 1.8vw, 24px)/1.15 var(--sans); letter-spacing: -0.02em; margin: 56px 0 10px; }
.cell p { margin: 0 0 20px; font-size: 15px; }
.tags { list-style: none; padding: 0; margin: auto 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { border: 1px solid var(--ink); border-radius: 999px; padding: 3px 8px; }

/* Apps */
.apps {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 6vw, 96px); align-items: center;
  padding: clamp(64px, 9vw, 120px) var(--gutter);
  max-width: 1280px; margin: 0 auto;
}
.app-title { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.app-title img { width: clamp(48px, 5vw, 64px); height: auto; border-radius: 14px; }
.app-title .display { font-size: clamp(26px, 4vw, 54px); }
.apps-shot { position: relative; margin: 0; background: var(--blue); padding: clamp(28px, 4vw, 56px) 0; display: grid; place-items: center; }
.phone { width: min(260px, 62%); height: auto; border-radius: 28px; border: 2px solid var(--ink); box-shadow: 10px 10px 0 var(--ink); transform: rotate(2deg); }
.tag-note {
  position: absolute; background: var(--white); border: 1.5px solid var(--ink);
  padding: 6px 9px; font-weight: 500;
}
.tag-note.n1 { left: -16px; top: 18%; transform: rotate(-3deg); }
.tag-note.n2 { right: -16px; bottom: 16%; background: var(--lime); transform: rotate(3deg); }

/* Contact */
.contact { background: var(--lime); padding: clamp(72px, 10vw, 140px) var(--gutter); border-top: 1.5px solid var(--ink); }
.contact .display { font-size: clamp(30px, 6vw, 88px); margin-bottom: 24px; }
.mail {
  display: inline-block;
  font: 500 clamp(22px, 4.4vw, 60px)/1.1 var(--sans);
  letter-spacing: -0.03em;
  text-decoration: none;
  border-bottom: 3px solid var(--ink);
  overflow-wrap: anywhere;
}
.mail:hover { color: var(--blue); border-color: var(--blue); }
.cursor { color: var(--blue); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Responsive */
@media (max-width: 960px) {
  .cells { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .notes { grid-template-columns: 1fr; gap: 16px; margin-top: 48px; }
}

@media (max-width: 760px) {

  .hero { grid-template-columns: 1fr; grid-template-areas: "title" "stage" "actions"; }
  .hero-stage { min-height: 0; display: flex; flex-direction: column; gap: 32px; padding-top: 16px; }
  .hero-mark { width: min(300px, 88%); }
  .leaders, .node { display: none; }
  .callouts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; width: 100%; }
  .callouts li { position: static; width: auto; text-align: left !important; border-top: 1.5px solid var(--ink); padding-top: 8px; }
  .hero-actions { justify-content: flex-start; }

  .big { margin-left: 0; }
  .board { aspect-ratio: 4 / 3; }
  .board-nav { font-size: 3.6cqw; padding: 3cqw; }
  .words span { font-size: 3.8cqw; }

  .cells { grid-template-columns: 1fr; }
  .cell { min-height: 0; }
  .cell h3 { margin-top: 24px; }

  .apps { grid-template-columns: 1fr; }
  .tag-note.n1 { left: 8px; }
  .tag-note.n2 { right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-mark, .cursor { animation: none; }
}
