/* ==========================================================
   Truthwave - Inner page styles (Home, About, Contact)
   These work alongside Divi's builder - Divi renders the
   content modules, these classes style the Truthwave-specific
   sections that live outside the Divi builder.
   ========================================================== */

/* ============  HOME  ============ */

/* Hero */
.tw-hero {
  padding: 80px 0 120px;
  position: relative;
  overflow: hidden;
}
.tw-hero h1 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(56px, 8vw, 128px);
  line-height: .95;
  letter-spacing: -.02em;
  margin: 0;
}
.tw-hero h1 em { font-style: italic; color: var(--muted); }
.tw-hero .tw-lede {
  margin-top: 36px;
  max-width: 620px;
  font-size: 17px;
  color: var(--ink-2);
  line-height: 1.6;
}
.tw-hero .tw-cta-row {
  margin-top: 40px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.tw-hero-wave {
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  width: 46%; height: 360px;
  pointer-events: none;
  color: #C9C5B8;
  display: flex;
  align-items: center;
}
.tw-hero-wave svg { width: 100%; height: 100%; }
@media (max-width: 960px) {
  .tw-hero-wave {
    position: relative;
    width: 100%; top: 0;
    transform: none;
    margin-top: 40px;
    height: 200px;
  }
}

/* Trust strip */
.tw-trust {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 28px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.tw-trust .tw-item { display: flex; flex-direction: column; gap: 6px; }
.tw-trust .tw-item .k {
  font-family: var(--f-display);
  font-size: 40px;
  letter-spacing: -.01em;
  line-height: 1;
}
.tw-trust .tw-item .v {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 780px) { .tw-trust { grid-template-columns: 1fr 1fr; } }

/* Services cards */
.tw-svc-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.tw-svc {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition: border-color .25s ease;
}
.tw-svc:hover { border-color: var(--accent); }
.tw-svc .tw-num {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--muted);
}
.tw-svc h3 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 40px;
  letter-spacing: -.01em;
  margin: 16px 0 12px;
  line-height: 1;
}
.tw-svc h3 em { font-style: italic; color: var(--muted); }
.tw-svc p { color: var(--ink-2); font-size: 15px; line-height: 1.6; margin: 0 0 20px; }
.tw-svc .tw-tech {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 1px dashed var(--rule-2);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
}
.tw-svc .tw-tech b { color: var(--ink); font-weight: 500; }
.tw-svc svg.tw-bg {
  position: absolute;
  inset: auto -10% -10% auto;
  width: 60%; height: 120px;
  color: var(--accent);
  opacity: .35;
}
@media (max-width: 780px) { .tw-svc-row { grid-template-columns: 1fr; } }

/* Solutions grid */
.tw-sol-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}
.tw-sol {
  padding: 36px;
  border-right: 1px solid var(--rule);
  transition: background .2s ease;
}
.tw-sol:last-child { border-right: none; }
.tw-sol:hover { background: var(--bg-alt); }
.tw-sol .tw-num { font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; color: var(--muted); }
.tw-sol h4 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 28px;
  letter-spacing: -.01em;
  margin: 14px 0 12px;
  line-height: 1.1;
}
.tw-sol p { color: var(--ink-2); font-size: 14.5px; line-height: 1.6; margin: 0; }
@media (max-width: 900px) {
  .tw-sol-grid { grid-template-columns: 1fr; }
  .tw-sol { border-right: none; border-bottom: 1px solid var(--rule); }
  .tw-sol:last-child { border-bottom: none; }
}

/* Quote block */
.tw-quote {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 80px var(--pad);
  position: relative;
  overflow: hidden;
}
.tw-quote blockquote {
  margin: 0;
  max-width: 900px;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.1;
  letter-spacing: -.01em;
}
.tw-quote blockquote em { font-style: italic; color: var(--muted); }
.tw-quote cite {
  display: block;
  margin-top: 32px;
  font-style: normal;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Process */
.tw-process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.tw-step { padding: 36px 28px; border-right: 1px solid var(--rule); }
.tw-step:last-child { border-right: none; }
.tw-step .tw-n {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--accent-ink);
}
.tw-step h5 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 26px;
  margin: 12px 0 8px;
  letter-spacing: -.01em;
}
.tw-step p { color: var(--ink-2); font-size: 14px; line-height: 1.55; margin: 0; }
@media (max-width: 900px) {
  .tw-process { grid-template-columns: 1fr 1fr; }
  .tw-step { border-right: none; border-bottom: 1px solid var(--rule); }
  .tw-step:nth-child(odd) { border-right: 1px solid var(--rule); }
}

/* End CTA */
.tw-end-cta {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 72px var(--pad);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.tw-end-cta h3 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -.01em;
  line-height: 1.02;
  margin: 0;
}
.tw-end-cta h3 em { font-style: italic; color: var(--muted); }
.tw-end-cta .tw-side { display: flex; flex-direction: column; gap: 16px; }
.tw-end-cta svg.tw-ribbon {
  position: absolute;
  left: 0; bottom: -40px;
  width: 100%; height: 120px;
  opacity: .18;
  color: #fff;
}
@media (max-width: 820px) { .tw-end-cta { grid-template-columns: 1fr; } }


/* ============  ABOUT  ============ */

.tw-about-hero {
  padding: 80px 0 96px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
}
.tw-about-hero .tw-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: end;
}
.tw-about-hero h1 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(52px, 7.2vw, 112px);
  line-height: .96;
  margin: 0;
  letter-spacing: -.02em;
}
.tw-about-hero h1 em { font-style: italic; color: var(--muted); }
.tw-about-hero .tw-meta {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.tw-about-hero .tw-meta .tw-row {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--rule);
  padding-top: 12px;
}
.tw-about-hero .tw-meta .tw-row b { color: var(--ink); font-weight: 500; }
@media (max-width: 820px) { .tw-about-hero .tw-grid { grid-template-columns: 1fr; } }

.tw-intro {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 48px;
  padding: 80px 0;
  border-bottom: 1px solid var(--rule);
}
.tw-intro .tw-kicker {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.tw-intro p {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.25;
  letter-spacing: -.005em;
  margin: 0;
  max-width: 900px;
}
.tw-intro p em { font-style: italic; color: var(--muted); }
@media (max-width: 820px) { .tw-intro { grid-template-columns: 1fr; gap: 16px; } }

/* Vision / Mission */
.tw-vm {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-bottom: 1px solid var(--rule);
}
.tw-vm > div { padding: 80px var(--pad) 80px 0; }
.tw-vm > div + div {
  padding-left: var(--pad);
  border-left: 1px solid var(--rule);
}
.tw-vm .tw-lbl {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 20px;
}
.tw-vm h3 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -.01em;
  line-height: 1.05;
  margin: 0 0 20px;
}
.tw-vm h3 em { font-style: italic; color: var(--muted); }
.tw-vm p { color: var(--ink-2); font-size: 16px; line-height: 1.6; margin: 0; max-width: 480px; }
@media (max-width: 820px) {
  .tw-vm { grid-template-columns: 1fr; }
  .tw-vm > div { padding: 48px 0; }
  .tw-vm > div + div { padding-left: 0; border-left: none; border-top: 1px solid var(--rule); }
}

/* Wave feature */
.tw-feature {
  padding: 120px var(--pad);
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.tw-feature .tw-bigwave {
  width: 100%; height: 240px;
  color: #C9C5B8;
  margin-bottom: 40px;
}
.tw-feature blockquote {
  margin: 0 auto;
  max-width: 900px;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(28px, 3.8vw, 48px);
  line-height: 1.1;
  letter-spacing: -.01em;
}
.tw-feature blockquote em { font-style: italic; color: var(--muted); }
.tw-feature cite {
  display: block;
  margin-top: 24px;
  font-style: normal;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Values */
.tw-val-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.tw-val {
  padding: 40px 32px 48px;
  border-right: 1px solid var(--rule);
}
.tw-val:last-child { border-right: none; }
.tw-val .tw-n {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--accent-ink);
}
.tw-val h4 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 30px;
  letter-spacing: -.01em;
  margin: 16px 0 10px;
  line-height: 1.05;
}
.tw-val p { color: var(--ink-2); font-size: 14.5px; line-height: 1.55; margin: 0; }
@media (max-width: 900px) {
  .tw-val-grid { grid-template-columns: 1fr; }
  .tw-val { border-right: none; border-bottom: 1px solid var(--rule); }
  .tw-val:last-child { border-bottom: none; }
}

/* Methods */
.tw-methods { padding: 96px 0; border-top: 1px solid var(--rule); }
.tw-method-row {
  display: grid;
  grid-template-columns: 180px 1fr 1fr;
  gap: 48px;
  padding: 40px 0;
  border-bottom: 1px dashed var(--rule-2);
}
.tw-method-row .tw-num {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--muted);
}
.tw-method-row h4 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 34px;
  letter-spacing: -.01em;
  margin: 0 0 8px;
  line-height: 1;
}
.tw-method-row h4 em { font-style: italic; color: var(--muted); }
.tw-method-row .tw-tech {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-top: 12px;
}
.tw-method-row p { color: var(--ink-2); font-size: 15px; line-height: 1.65; margin: 0; }
@media (max-width: 900px) { .tw-method-row { grid-template-columns: 1fr; gap: 12px; } }

/* About CTA strip */
.tw-contact-strip {
  background: var(--ink);
  color: var(--bg);
  padding: 72px var(--pad);
  border-radius: 10px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
}
.tw-contact-strip h3 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -.01em;
  margin: 0;
  line-height: 1.05;
}
.tw-contact-strip h3 em { font-style: italic; color: #A8ADB6; }
.tw-contact-strip .tw-eyebrow { color: #A8ADB6; margin-bottom: 12px; }
.tw-contact-strip .tw-side { display: flex; flex-direction: column; gap: 12px; }
.tw-contact-strip .btn { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.tw-contact-strip .btn:hover { background: #0e1628; border-color: #0e1628; color: var(--ink); }
.tw-contact-strip .btn.ghost { background: transparent; color: var(--bg); border-color: var(--bg); }
.tw-contact-strip .btn.ghost:hover { background: var(--bg); color: var(--ink); }
@media (max-width: 820px) { .tw-contact-strip { grid-template-columns: 1fr; } }


/* ============  CONTACT  ============ */

.tw-c-hero { padding: 80px var(--pad) 56px; border-bottom: 1px solid var(--rule); max-width: var(--maxw); margin: 0 auto; }
.tw-c-hero h1 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(52px, 7vw, 104px);
  line-height: .96;
  letter-spacing: -.02em;
  margin: 20px 0 0;
}
.tw-c-hero h1 em { font-style: italic; color: var(--muted); }
.tw-c-hero .tw-sub { max-width: 620px; color: var(--ink-2); font-size: 17px; line-height: 1.6; margin-top: 28px; }

.tw-c-main {
  padding: 80px var(--pad) 40px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  max-width: var(--maxw);
  margin: 0 auto;
  box-sizing: border-box;
}
.tw-c-main-inner { display: contents; }
@media (max-width: 900px) { .tw-c-main { grid-template-columns: 1fr; gap: 56px; } }

/* Info blocks */
.tw-info .tw-block { padding: 24px 0; border-bottom: 1px solid var(--rule); }
.tw-info .tw-block:first-child { border-top: 1px solid var(--rule); }
.tw-info .tw-lbl {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.tw-info .tw-val {
  font-family: var(--f-display);
  font-size: 28px;
  letter-spacing: -.01em;
  line-height: 1.2;
}
.tw-info .tw-val a { color: var(--ink); transition: color .2s ease; }
.tw-info .tw-val a:hover { color: var(--accent-ink); }
.tw-info .tw-row { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; }
.tw-info .tw-who {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Form */
.tw-form-wrap {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 40px;
  position: relative;
}
.tw-form-hd {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
}
.tw-form-hd h3 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 32px;
  margin: 0;
  letter-spacing: -.01em;
}
.tw-form-hd h3 em { font-style: italic; color: var(--muted); }
.tw-form-hd .tw-tag {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.tw-field { display: block; margin-bottom: 20px; }
.tw-field label {
  display: block;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.tw-field input,
.tw-field textarea,
.tw-field select {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--rule);
  background: transparent;
  padding: 10px 0 12px;
  font-family: var(--f-ui);
  font-size: 16px;
  color: var(--ink);
  border-radius: 0;
  outline: none;
  transition: border-color .2s ease;
}
.tw-field textarea { min-height: 120px; resize: vertical; }
.tw-field input:focus,
.tw-field textarea:focus,
.tw-field select:focus { border-color: var(--ink); }
.tw-field input::placeholder,
.tw-field textarea::placeholder { color: var(--muted); }
.tw-field.error input,
.tw-field.error textarea,
.tw-field.error select { border-color: oklch(0.55 0.18 25); }
.tw-field .tw-err {
  display: none;
  margin-top: 6px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: oklch(0.55 0.18 25);
}
.tw-field.error .tw-err { display: block; }
.tw-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 600px) { .tw-row2 { grid-template-columns: 1fr; } }
.tw-select-wrap { position: relative; }
.tw-select-wrap::after {
  content: "▾";
  position: absolute;
  right: 4px; top: 34px;
  color: var(--muted);
  pointer-events: none;
}
.tw-field select { appearance: none; -webkit-appearance: none; padding-right: 24px; }

/* Custom dropdown */
.tw-custom-select { position: relative; }
.tw-custom-select select { display: none; }
.tw-cs-trigger {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--rule);
  background: transparent;
  padding: 10px 24px 12px 0;
  font-family: var(--f-ui);
  font-size: 16px;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: border-color .2s ease;
}
.tw-cs-trigger.has-value { color: var(--ink); }
.tw-cs-trigger:focus { outline: none; border-color: var(--ink); }
.tw-cs-trigger .tw-cs-arrow {
  font-size: 12px;
  color: var(--muted);
  transition: transform .2s ease;
  flex-shrink: 0;
}
.tw-custom-select.open .tw-cs-arrow { transform: rotate(180deg); }
.tw-cs-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 6px;
  z-index: 200;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  max-height: 280px;
  overflow-y: auto;
}
.tw-custom-select.open .tw-cs-list {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.tw-cs-option {
  padding: 12px 16px;
  font-family: var(--f-ui);
  font-size: 15px;
  color: var(--ink-2);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.tw-cs-option:hover { background: var(--bg-alt); color: var(--ink); }
.tw-cs-option.selected { color: var(--accent-ink); }
.tw-cs-option.placeholder { color: var(--muted); font-size: 14px; }
.tw-field.error .tw-cs-trigger { border-color: oklch(0.55 0.18 25); }
.tw-submit-row {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.tw-submit-row .tw-note {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.tw-submit-row .tw-note::before { content: "●  "; color: var(--accent); }

/* Contact form success state */
.tw-sent { display: none; padding: 48px 0; text-align: center; }
.tw-sent.show { display: block; }
.tw-sent .tw-mark {
  width: 56px; height: 56px;
  margin: 0 auto 24px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-ink);
  font-size: 28px;
}
.tw-sent h3 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 36px;
  margin: 0 0 12px;
  letter-spacing: -.01em;
}
.tw-sent h3 em { font-style: italic; color: var(--muted); }
.tw-sent p { color: var(--ink-2); max-width: 440px; margin: 0 auto; font-size: 15px; line-height: 1.6; }

/* Decorative contact wave */
.tw-c-wave {
  position: absolute;
  right: -40px; top: -40px;
  width: 200px; height: 80px;
  color: var(--accent);
  opacity: .25;
  pointer-events: none;
}

/* "What to expect" section */
.tw-expect-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--surface);
}
.tw-expect-grid > div {
  padding: 36px;
  border-right: 1px solid var(--rule);
}
.tw-expect-grid > div:last-child { border-right: none; }
.tw-expect-grid .tw-k {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.tw-expect-grid h4 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 24px;
  margin: 0 0 8px;
  letter-spacing: -.01em;
}
.tw-expect-grid p { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.6; }
@media (max-width: 900px) {
  .tw-expect-grid { grid-template-columns: 1fr; }
  .tw-expect-grid > div { border-right: none; border-bottom: 1px solid var(--rule); }
  .tw-expect-grid > div:last-child { border-bottom: none; }
}
