/* ============================================================================
   MILK — new website (draft): pieces the inner pages share — Intelligence,
   Integrations, About, Contact, Privacy, Terms, 404. Rides on new.css.
   ========================================================================== */

.section { padding: clamp(64px, 8vw, 112px) 0; }
.section + .section { padding-top: 0; }

/* ---- Two cards side by side (Intelligence: now / next) ------------------ */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: clamp(32px, 4vw, 52px); }
.card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  padding: clamp(26px, 3.4vw, 44px);
  background: #fff;
  border: 1.5px solid var(--rule);
  border-radius: var(--radius);
}
.card-ink { background: var(--ink); border-color: var(--ink); color: #fff; }
.card-title {
  margin: 0;
  font-family: var(--display-font); font-weight: var(--display-weight);
  font-size: clamp(30px, 3.2vw, 42px); line-height: 1;
  text-transform: uppercase; color: var(--ink);
}
.card-ink .card-title { color: #fff; }
.card p { margin: 0; max-width: 54ch; font-size: 16px; line-height: 1.6; color: var(--fg); }
.card-ink p { color: rgba(255, 255, 255, .8); }
.tag-ink { background: rgba(78, 176, 201, .2); color: var(--milk); }

/* ---- Tip cards (Intelligence: what it will sound like) ------------------- */
.tips { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: clamp(32px, 4vw, 52px); }
.tip {
  position: relative;
  padding: 22px 24px 22px 26px;
  background: #fff;
  border: 1.5px solid var(--rule);
  border-left: 4px solid var(--milk);
  border-radius: var(--radius);
}
.tip-k {
  display: block; margin-bottom: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--action);
}
.tip p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink); }
.shot-frame { margin: clamp(32px, 4vw, 52px) 0 0; }
.shot-frame img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 24px 50px -30px rgba(15, 27, 45, .45);
}

/* ---- Numbered grid (About: what we believe) ------------------------------ */
.numbered { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: clamp(32px, 4vw, 52px); border-top: 1.5px solid var(--ink); }
.numbered > div {
  padding: 28px 28px 32px 0;
  border-bottom: 1px solid var(--rule);
}
.numbered > div + div { padding-left: 28px; }
.numbered > div:nth-child(3n + 1) { padding-left: 0; }
.numbered > div:not(:nth-child(3n + 1)) { border-left: 1px solid var(--rule); }
.num-n {
  display: block;
  font-family: var(--display-font); font-weight: var(--display-weight);
  font-size: 44px; line-height: 1; color: var(--milk);
}
.num-t {
  margin: 12px 0 8px;
  font-family: var(--display-font); font-weight: var(--display-weight);
  font-size: 26px; line-height: 1.05; text-transform: uppercase; color: var(--ink);
}
.numbered p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--fg); }

/* ---- A narrow reading column (About: the origin) ------------------------- */
.story { display: grid; grid-template-columns: minmax(220px, .8fr) 2fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.story .h-caps { margin: 10px 0 0; text-align: left; }
.story-body p { margin: 0 0 16px; max-width: 62ch; font-size: 18px; line-height: 1.65; color: var(--fg); }
.story-body p:first-child { font-size: 21px; line-height: 1.55; color: var(--ink); font-weight: 500; }

/* ---- Contact ------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.form-card {
  padding: clamp(24px, 3.4vw, 44px);
  background: #fff;
  border: 1.5px solid var(--rule);
  border-radius: var(--radius);
}
.form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.field .req { color: var(--action); }
.field input, .field select, .field textarea {
  font: 500 16px/1.4 var(--font); color: var(--ink);
  padding: 13px 14px;
  background: #fff;
  border: 1.5px solid var(--rule);
  border-radius: var(--radius);
  transition: border-color .12s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--fg2); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(78, 176, 201, .3); }
.form .btn { align-self: flex-start; }
.fine { margin: 0; font-size: 13px; color: var(--fg2); }
.fine-error { color: #B42F2F; }
.fine-error a { color: inherit; text-decoration: underline; }
.success { display: flex; gap: 16px; align-items: flex-start; }
.success-ck {
  flex: none; width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--ink); color: #fff; border-radius: var(--radius);
}
.success-ck svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.success h2 { margin: 2px 0 6px; font-family: var(--display-font); font-weight: var(--display-weight); font-size: 32px; line-height: 1; text-transform: uppercase; color: var(--ink); }
.success p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--fg); }

.info-list { display: flex; flex-direction: column; border-top: 1.5px solid var(--ink); }
.info { padding: 22px 0; border-bottom: 1px solid var(--rule); }
.info h2 { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--action); }
.info p, .info a { margin: 0; font-size: 18px; line-height: 1.5; color: var(--ink); font-weight: 500; }
.info a:hover { color: var(--action); }
.info .sub { margin-top: 4px; font-size: 14px; color: var(--fg2); font-weight: 400; }

/* ---- Legal pages --------------------------------------------------------- */
.legal { max-width: 72ch; margin: 0 auto; }
.legal h2 {
  margin: 44px 0 12px;
  font-family: var(--display-font); font-weight: var(--display-weight);
  font-size: 30px; line-height: 1.05; text-transform: uppercase; color: var(--ink);
}
.legal h2:first-child { margin-top: 0; }
.legal h3 { margin: 26px 0 8px; font-size: 18px; font-weight: 700; color: var(--ink); }
.legal p, .legal li { font-size: 16px; line-height: 1.7; color: var(--fg); }
.legal p { margin: 0 0 14px; }
.legal ul, .legal ol { margin: 0 0 14px; padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--action); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: var(--action-hover); }
.legal strong { color: var(--ink); }
.legal .callout {
  margin: 20px 0;
  padding: 18px 20px;
  background: var(--mist);
  border-left: 4px solid var(--milk);
}
.legal .callout p:last-child { margin-bottom: 0; }
.legal-meta { margin: 14px 0 0; font-size: 15px; font-weight: 600; color: var(--ink); }

/* ---- 404 ----------------------------------------------------------------- */
.lost { min-height: calc(100vh - 69px); display: flex; align-items: center; }
.lost .page-title { font-size: calc(clamp(34px, 6vw, 76px) * var(--display-scale)); }
.lost .btn { margin-top: 32px; }
.lost-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-top: 30px; }
.lost-links a { font-weight: 600; color: var(--ink); border-bottom: 1.5px solid var(--ink); padding-bottom: 2px; }
.lost-links a:hover { color: #fff; border-color: #fff; }
.lost-k { display: block; margin-top: 40px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }

/* ---- Narrower screens ---------------------------------------------------- */
@media (max-width: 900px) {
  .numbered { grid-template-columns: 1fr 1fr; }
  .numbered > div:nth-child(n) { padding-left: 0; border-left: 0; padding-right: 0; }
  .numbered > div:nth-child(2n) { padding-left: 24px; border-left: 1px solid var(--rule); }
  .story, .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .pair, .tips { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .numbered { grid-template-columns: 1fr; }
  .numbered > div:nth-child(2n) { padding-left: 0; border-left: 0; }
}

/* An expandable row with nothing to put beside its list uses the full width. */
.row-inner:has(> :only-child) { grid-template-columns: 1fr; }
