/* ——— Contact page ——— */

.ct-hero {
  background: #131313;
  width: 100%;
  min-height: 1279px;
  position: relative;
  overflow: hidden;
}

.ct-hero-inner {
  width: 1490px;
  max-width: calc(100% - 430px);
  margin: 0 auto;
  padding: 100px 0 0;
  position: relative;
}

.ct-hero-copy {
  width: 1162px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 65px;
}

.ct-eyebrow {
  font-family: "Fustat", sans-serif;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #909090;
}

.ct-title {
  font-family: "Fustat", sans-serif;
  font-weight: 500;
  font-size: 48px;
  line-height: 1.2;
  letter-spacing: -1px;
  text-transform: capitalize;
  color: #fff;
}

.ct-hero-body {
  position: relative;
  min-height: 800px;
}

.ct-form-wrap {
  position: relative;
  width: 937px;
  max-width: 100%;
}

.ct-form-glow {
  position: absolute;
  left: 0;
  top: 0;
  width: 471.5px;
  height: 531.5px;
  background: linear-gradient(90deg, rgba(255, 131, 43, 0.2), rgba(246, 129, 33, 0.2));
  filter: blur(100px);
  pointer-events: none;
}

.ct-form {
  position: relative;
  z-index: 1;
  width: 845px;
  max-width: 100%;
  min-height: 725px;
  background: rgba(19, 19, 19, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 33px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ct-form-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ct-form-title {
  font-family: "Fustat", sans-serif;
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.56px;
  color: #fff;
}

.ct-form-sub {
  font-family: "Fustat", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: rgba(255, 255, 255, 0.6);
  max-width: 420px;
}

.ct-form-sub a {
  color: #fff;
  text-decoration: underline;
}

.ct-fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 779px;
}

.ct-field {
  display: block;
  width: 100%;
}

.ct-field input,
.ct-field textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  /* 0.1 was barely separable from the 0.06 fill on #131313 */
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  padding: 12px 16px;
  font-family: "Fustat", sans-serif;
  font-size: 18px;
  color: #fff;
  outline: none;
}

.ct-field input {
  height: 74px;
}

.ct-field textarea {
  height: 180px;
  min-height: 180px;
  resize: vertical;
  line-height: 24px;
  display: block;
}

.ct-field input::placeholder,
.ct-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.ct-field input:hover,
.ct-field textarea:hover {
  border-color: rgba(255, 255, 255, 0.24);
}

.ct-field input:focus-visible,
.ct-field textarea:focus-visible,
.ct-field input:focus,
.ct-field textarea:focus {
  border-color: #f68121;
  box-shadow: 0 0 0 3px rgba(246, 129, 33, 0.28);
  background: rgba(255, 255, 255, 0.09);
}

.ct-field input:user-invalid,
.ct-field textarea:user-invalid {
  border-color: #e2574c;
}

.ct-form .btn-primary:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.ct-form .btn-primary {
  align-self: flex-start;
  margin-top: 29px;
}

.ct-side {
  position: absolute;
  left: 909.84px;
  top: 0;
  width: 302px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ct-side-kicker {
  margin: 0;
  font-family: "Fustat", sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #f68121;
}

.ct-side-item {
  display: flex;
  gap: 27px;
  align-items: center;
}

.ct-side-icon {
  position: relative;
  width: 52.3px;
  height: 52px;
  flex-shrink: 0;
}

.ct-side-ring {
  width: 52.3px;
  height: 52px;
}

.ct-side-glyph {
  position: absolute;
  left: 18px;
  top: 18px;
  width: 16px;
  height: 15px;
}

.ct-side-glyph.email {
  width: 20px;
  height: 18px;
  left: 16px;
  top: 17px;
}

.ct-side-wa {
  width: 52.3px;
  height: 52px;
  flex-shrink: 0;
}

.ct-side-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ct-side-label {
  font-family: "Fustat", sans-serif;
  font-size: 22px;
  line-height: 26px;
  color: #fff;
}

.ct-side-value {
  font-family: "Fustat", sans-serif;
  font-size: 18px;
  line-height: 29px;
  color: #99a1af;
}

.ct-building {
  position: absolute;
  right: -60px;
  bottom: 22px;
  width: 776px;
  height: auto;
  pointer-events: none;
  opacity: 0.95;
}

/* Offices — the offices block, address rows and map were removed from
   contact.html (form-only page). Their rules, and the three responsive
   blocks that sized them, are gone with them. */

/* CTA + partners — styled entirely by css/components.css. The copy removed
   from here ran .cta-wrap at 120px top padding (shared is 110px), pinned
   .cta-title to a 56px leading and .cta-sub to a 35px bottom margin.
   .partners:not(.partners--band) and .partners-full were dead: every page
   ships <div class="partners partners--band">. */


/* ============ LIGHT MODE ============
   The hero is a flat #131313 slab (no photography), so it flips to the light
   page ground. The office panels below already ship as a light photo panel
   with #121212 copy and stay identical in both themes. */

html[data-theme="light"] .ct-hero {
  background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg-page) 42%);
}

html[data-theme="light"] .ct-eyebrow {
  color: var(--text-grey);
}

html[data-theme="light"] .ct-title {
  color: var(--text);
}

html[data-theme="light"] .ct-form-glow {
  opacity: 0.6;
}

html[data-theme="light"] .ct-form {
  background: var(--bg-elevated);
  border-color: var(--border);
  box-shadow: 0 18px 48px rgba(18, 18, 18, 0.08);
}

html[data-theme="light"] .ct-form-title {
  color: var(--text);
}

html[data-theme="light"] .ct-form-sub {
  color: var(--text-secondary);
}

html[data-theme="light"] .ct-form-sub a {
  color: var(--text);
}

html[data-theme="light"] .ct-field input,
html[data-theme="light"] .ct-field textarea {
  background: #ffffff;
  border-color: var(--border-strong);
  color: var(--text);
}

html[data-theme="light"] .ct-field input::placeholder,
html[data-theme="light"] .ct-field textarea::placeholder {
  color: var(--text-grey);
}

html[data-theme="light"] .ct-field input:hover,
html[data-theme="light"] .ct-field textarea:hover {
  border-color: #9c9c9c;
}

html[data-theme="light"] .ct-field input:focus-visible,
html[data-theme="light"] .ct-field textarea:focus-visible,
html[data-theme="light"] .ct-field input:focus,
html[data-theme="light"] .ct-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(246, 129, 33, 0.3);
  background: #ffffff;
}

html[data-theme="light"] .ct-form .btn-primary:focus-visible {
  outline-color: var(--text);
}

html[data-theme="light"] .ct-side-label {
  color: var(--text);
}

html[data-theme="light"] .ct-side-value {
  color: var(--text-secondary);
}

/* Ring is a #B7B7B7 stroke and the glyphs are fill="white" — inverting the
   whole icon keeps the ring/glyph relationship and makes both legible. */
html[data-theme="light"] .ct-side-icon img,
html[data-theme="light"] .ct-side-wa {
  filter: invert(1);
}

/* building.svg is a #444 line drawing: near-invisible on #131313, far too
   heavy on white. */
html[data-theme="light"] .ct-building {
  opacity: 0.14;
}


/* ============ RESPONSIVE ============ */

@media (max-width: 1600px) {
  .ct-hero-inner {
    max-width: calc(100% - 160px);
  }
}

/* The side column is absolutely positioned at left:909.84px inside an
   overflow:hidden hero, so it is clipped as soon as the hero narrows.
   Below 1300px it drops out of the absolute layer and stacks. */
@media (max-width: 1300px) {
  .ct-hero {
    min-height: 0;
    padding-bottom: 96px;
  }

  .ct-hero-inner {
    max-width: calc(100% - 96px);
    padding-bottom: 0;
  }

  .ct-hero-body {
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 44px;
  }

  .ct-form-wrap,
  .ct-form {
    width: 100%;
    max-width: 100%;
  }

  .ct-form {
    min-height: 0;
  }

  .ct-fields {
    max-width: 100%;
  }

  .ct-side {
    position: static;
    left: auto;
    top: auto;
    width: 100%;
    max-width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 32px 40px;
  }

  .ct-side-item {
    flex: 1 1 300px;
    min-width: 0;
  }

  .ct-side-text {
    min-width: 0;
  }

  .ct-side-value {
    overflow-wrap: anywhere;
  }

  .ct-building {
    position: static;
    right: auto;
    bottom: auto;
    display: block;
    width: 100%;
    max-width: 620px;
    margin: 40px auto 0;
  }
}

@media (max-width: 768px) {
  .ct-hero {
    padding: 100px 16px 48px !important;
    min-height: 0;
    overflow-x: clip;
  }

  .ct-hero-inner,
  .ct-hero-body {
    flex-direction: column !important;
    display: flex;
    gap: 28px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    min-height: 0;
    position: relative;
  }

  .ct-hero-copy {
    width: 100%;
    max-width: 100%;
    margin-bottom: 0;
  }

  .ct-eyebrow {
    letter-spacing: 0.16em !important;
    font-size: 14px !important;
    white-space: normal;
    line-height: 1.4;
  }

  .ct-title {
    font-size: clamp(26px, 7.2vw, 34px) !important;
    line-height: 1.15 !important;
    letter-spacing: -0.03em !important;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .ct-form-wrap,
  .ct-form {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    box-sizing: border-box;
  }

  .ct-form {
    min-height: 0;
    padding: 24px 20px;
  }

  /* inline mailto in a sentence — grow the hit box, not the line box */
  .ct-form-sub a {
    display: inline-block;
    padding: 11px 2px;
    margin: -11px -2px;
  }

  .ct-form-glow {
    width: 100%;
    max-width: 100%;
    height: 320px;
    filter: blur(70px);
  }

  .ct-fields {
    max-width: 100%;
  }

  .ct-field input {
    height: 56px;
    font-size: 16px;
  }

  .ct-field textarea {
    height: 140px;
    min-height: 140px;
    font-size: 16px;
  }

  .ct-side {
    position: static !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 20px;
    order: 2;
  }

  /* the >=768 rule gives items flex-basis:300px, which becomes a 300px HEIGHT
     once the column stacks */
  .ct-side-item {
    flex: 0 0 auto;
    gap: 16px;
  }

  .ct-side-label {
    font-size: 17px;
    line-height: 1.3;
  }

  .ct-side-value {
    font-size: 15px;
    line-height: 1.45;
    word-break: break-word;
  }

  .ct-building {
    position: static !important;
    right: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto;
    opacity: 0.7;
    order: 3;
  }

  /* CTA mobile sizing is shared (css/responsive.css @768). */
}

@media (max-width: 390px) {
  .ct-hero {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}
