/* Reidify & Co — site styles, per brand style guide v1.0 */

:root {
  --navy: #15202E;
  --delft: #1E4FA3;
  --mid-blue: #5D80C7;
  --light-blue: #9DB8EA;
  --pale-blue: #C9D7F2;
  --amber: #D98E2B;
  --light-amber: #E8B46A;
  --slate: #4A5563;
  --cloud: #F3F4F6;
  --divider: #C9CED6;
  --white: #FFFFFF;
  --error: #B42318;

  --display: "Space Grotesk", Arial, sans-serif;
  --text: "Inter", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font: 400 1.0625rem/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wrap {
  width: 100%;
  max-width: calc(1120px + 2 * 24px);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--delft); text-underline-offset: 0.2em; }
a:hover { color: var(--navy); }

:focus-visible {
  outline: 2px solid var(--delft);
  outline-offset: 2px;
}

/* ---------- Header and lockup ---------- */

.site-header { border-bottom: 1px solid var(--divider); }

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 88px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.lockup {
  display: inline-flex;
  align-items: flex-end;
  gap: 10px;
  text-decoration: none;
}

.lockup .symbol { width: 40px; height: 40px; flex: none; display: block; }

.wordmark {
  display: flex;
  align-items: baseline;
  margin-bottom: calc(0.015em - 0.156em);
  font-family: var(--display);
  font-weight: 600;
  font-size: 39px;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--navy);
}

.wordmark .i { position: relative; display: inline-block; }

.wordmark .dot {
  position: absolute;
  left: calc(50% - 0.0175em);
  top: 0.15em;
  width: 0.12em;
  height: 0.12em;
  transform: translateX(-50%);
  background: var(--amber);
}

.wordmark .amp { font-weight: 400; margin-left: 0.14em; }
.wordmark .co { margin-left: 0.08em; }

.header-link {
  display: none;
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--navy);
}

/* ---------- Hero ---------- */

main { flex: 1; }

.hero .wrap {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  padding-top: 64px;
  padding-bottom: 96px;
}

.intro {
  grid-column: 1 / span 6;
  align-self: center;
}

.hero-symbol {
  display: block;
  width: 120px;
  height: 120px;
  margin-bottom: 48px;
}

h1, h2 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--navy);
}

h1 {
  font-size: 56px;
  line-height: 1.08;
  margin: 0 0 24px;
  text-wrap: balance;
}

.lede {
  font-size: 1.1875rem;
  line-height: 1.55;
  margin: 0 0 16px;
  max-width: 34rem;
}

.note {
  color: var(--slate);
  margin: 0;
  max-width: 34rem;
}

/* ---------- Inquiry ---------- */

.inquiry {
  grid-column: 8 / span 5;
  background: var(--cloud);
  padding: 40px;
}

h2 {
  font-size: 28px;
  line-height: 1.2;
  margin: 0 0 8px;
}

.helper { color: var(--slate); margin: 0 0 32px; }

.field { margin: 0 0 20px; }

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 6px;
}

.optional { font-weight: 400; color: var(--slate); }

input, textarea {
  display: block;
  width: 100%;
  font: inherit;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--slate);
  border-radius: 2px;
  padding: 11px 12px;
  min-height: 48px;
}

textarea { min-height: 128px; resize: vertical; }

input:focus-visible, textarea:focus-visible { border-color: var(--delft); }

[aria-invalid="true"] { border-color: var(--error); }

.field-error {
  color: var(--error);
  font-size: 0.875rem;
  margin: 6px 0 0;
}

.field-error:empty { display: none; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 32px;
}

.button {
  font: 600 1rem/1 var(--text);
  color: var(--white);
  background: var(--delft);
  border: 0;
  border-radius: 2px;
  padding: 0 24px;
  min-height: 48px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.button:hover { background: var(--navy); color: var(--white); }
.button[disabled] { opacity: 0.7; cursor: progress; }

.privacy { font-size: 0.875rem; color: var(--slate); margin: 0; }

.form-status { color: var(--error); margin: 20px 0 0; }
.form-status:empty { display: none; }

.sent:focus { outline: none; }

/* ---------- Footer ---------- */

.site-footer { background: var(--navy); color: var(--light-blue); }

.site-footer .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 32px;
  padding-bottom: 32px;
}

.site-footer .symbol { width: 32px; height: 32px; flex: none; display: block; }

.site-footer p { margin: 0; font-size: 0.875rem; }

.site-footer :focus-visible { outline-color: var(--light-blue); }

/* ---------- Simple page (thanks) ---------- */

.simple .wrap { padding-top: 96px; padding-bottom: 96px; }
.simple p { margin: 0 0 32px; max-width: 34rem; }

/* ---------- Mobile ---------- */

@media (max-width: 959px) {
  .wrap { padding: 0 20px; }

  .site-header .wrap { min-height: 72px; padding-top: 16px; padding-bottom: 16px; }
  .lockup { gap: 7px; }
  .lockup .symbol { width: 30px; height: 30px; }
  .wordmark { font-size: 29px; }
  .header-link { display: inline; }

  .hero .wrap { display: block; padding-top: 48px; padding-bottom: 0; }
  .hero-symbol { width: 88px; height: 88px; margin-bottom: 32px; }
  h1 { font-size: 40px; }
  .lede { font-size: 1.0625rem; }
  body { font-size: 1rem; }

  .inquiry { margin: 48px -20px 0; padding: 48px 20px; }
  h2 { font-size: 24px; }

  .simple .wrap { padding-top: 48px; padding-bottom: 64px; }
}

@media (max-width: 599px) {
  .button { width: 100%; justify-content: center; }
}

/* ---------- The one moment: the symbol builds up in under 2 s ----------
   The squares fade in one by one, starting with the lower amber square
   (b2), then the upper amber (b1), then 2, 3 and 5. The outline closes
   last and finishes at 1.9 s. */

@media (prefers-reduced-motion: no-preference) {
  .hero-symbol .frame,
  .hero-symbol .block { animation: fade-in 400ms ease-out both; }

  .hero-symbol .b2 { animation-delay: 0ms; }
  .hero-symbol .b1 { animation-delay: 300ms; }
  .hero-symbol .b3 { animation-delay: 600ms; }
  .hero-symbol .b4 { animation-delay: 900ms; }
  .hero-symbol .b5 { animation-delay: 1200ms; }
  .hero-symbol .frame { animation-delay: 1500ms; }

  .sent { animation: arrive 360ms ease-out both; }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes arrive {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}
