/* ==========================================================================
   Salomão Portfolio — page styles
   Built on assets/css/tokens.css. No raw hex values below: every colour,
   space and easing comes from a token so the Elementor global kit and this
   stylesheet can never drift apart.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Base
   -------------------------------------------------------------------------- */

html {
  scroll-behavior: smooth;
  /* Sticky nav is 63px tall; keep anchored sections clear of it. */
  scroll-padding-top: 80px;
}

body.sd-page {
  margin: 0;
  background: var(--surface-page);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: var(--text-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.sd-page ::selection {
  background: var(--surface-brand);
  color: var(--white);
}

.sd-page a {
  color: var(--text-muted);
}

.sd-page a:hover {
  color: var(--text-primary);
}

.sd-page img {
  max-width: 100%;
  height: auto;
}

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

/* Visible keyboard focus everywhere — the design never specified one. */
.sd-page :focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

.sd-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sd-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: var(--space-3) var(--space-5);
  background: var(--surface-brand);
  color: var(--white);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  text-decoration: none;
  border-radius: 0 0 var(--radius-sm) 0;
}

.sd-skip:focus {
  left: 0;
  color: var(--white);
}

/* --------------------------------------------------------------------------
   2. Layout primitives
   -------------------------------------------------------------------------- */

.sd-wrap {
  max-width: var(--content-max);
  margin: 0 auto;
  width: 100%;
}

.sd-section {
  border-top: 1px solid var(--border-hairline);
}

.sd-section__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--gutter-section) var(--gutter-inline);
  display: grid;
  gap: var(--space-7);
}

/* Two-column "label left / content right" sections. */
.sd-section__inner--split {
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: var(--space-8);
  align-items: start;
}

.sd-lede {
  display: grid;
  gap: 14px;
}

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */

.sd-display {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--weight-regular);
  letter-spacing: var(--tracking-display);
  color: var(--text-primary);
}

h1.sd-display {
  font-size: clamp(40px, 6.4vw, 92px);
  line-height: .96;
  text-wrap: balance;
  max-width: 16ch;
}

h1.sd-display--dry {
  font-size: clamp(48px, 8vw, 120px);
  line-height: .94;
  max-width: none;
}

h2.sd-display {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1;
}

h2.sd-display--xl {
  font-size: clamp(44px, 7vw, 104px);
  line-height: .9;
}

.sd-hl {
  transition: color var(--dur-slow) var(--ease-out);
}

.sd-hl:hover {
  color: var(--text-highlight);
}

.sd-sub {
  margin: 0;
  font-size: 19px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 52ch;
  text-wrap: pretty;
}

.sd-note {
  margin: 0;
  font-size: var(--text-base);
  color: var(--text-muted);
}

.sd-note--sm {
  font-size: var(--text-sm);
  line-height: 1.6;
  font-size: 15px;
}

.sd-fineprint {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  opacity: .85;
}

.sd-fineprint a {
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 1px solid var(--border-strong);
}

.sd-fineprint a:hover {
  color: var(--text-primary);
  border-bottom-color: var(--border-brand);
}

/* --------------------------------------------------------------------------
   4. Buttons and CTAs
   -------------------------------------------------------------------------- */

.sd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 15px;
  font-weight: var(--weight-semibold);
  line-height: 1;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  padding: 14px 30px;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}

.sd-btn--primary {
  color: var(--white);
  background: var(--action-primary);
  border-color: var(--action-primary);
}

.sd-btn--primary:hover {
  color: var(--white);
  background: var(--action-primary-hover);
  border-color: var(--action-primary-hover);
}

.sd-btn--primary:active {
  background: var(--action-primary-press);
  border-color: var(--action-primary-press);
  transform: scale(var(--press-scale));
}

.sd-btn--ghost {
  color: var(--text-secondary);
  background: transparent;
  border-color: var(--border-strong);
  padding: 13px 30px;
}

.sd-btn--ghost:hover {
  color: var(--text-primary);
  background: rgba(200, 228, 255, .08);
  border-color: var(--border-brand);
}

.sd-btn--sm {
  font-size: 13px;
  padding: 9px 20px;
}

.sd-btn[disabled],
.sd-btn[aria-disabled="true"] {
  opacity: .6;
  pointer-events: none;
}

/* Arrow that unfolds out of the button on hover. */
.sd-cta .sd-cta__arrow {
  display: inline-grid;
  place-items: center;
  width: 0;
  height: 22px;
  opacity: 0;
  margin-left: 0;
  overflow: hidden;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  flex: none;
  font-size: var(--text-xs);
  line-height: 1;
  transform: translateX(-6px);
  transition: width var(--dur-base) var(--ease-out),
    opacity var(--dur-base) var(--ease-out),
    margin var(--dur-base) var(--ease-out),
    transform var(--dur-base) var(--ease-out);
}

.sd-cta:hover .sd-cta__arrow,
.sd-cta:focus-visible .sd-cta__arrow {
  width: 22px;
  opacity: 1;
  margin-left: 10px;
  transform: translateX(0);
}

.sd-linkbtn {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  background: none;
  border: none;
  border-bottom: 1px solid var(--border-strong);
  padding: 0 0 var(--space-1);
  cursor: pointer;
  font-family: inherit;
}

.sd-linkbtn:hover {
  border-bottom-color: var(--border-brand);
}

/* --------------------------------------------------------------------------
   5. Navigation
   -------------------------------------------------------------------------- */

.sd-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(0, 14, 27, .72);
  -webkit-backdrop-filter: var(--blur-panel);
  backdrop-filter: var(--blur-panel);
  border-bottom: 1px solid var(--border-hairline);
}

/* WordPress admin bar must not hide the sticky nav. */
.admin-bar .sd-nav {
  top: 32px;
}

.sd-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding: var(--space-4) var(--gutter-inline);
}

.sd-nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex: none;
}

.sd-nav__logo img {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  display: block;
}

.sd-nav__menu {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.sd-nav__link {
  font-size: 13px;
  font-weight: var(--weight-medium);
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}

.sd-nav__link:hover,
.sd-nav__link[aria-current="true"] {
  color: var(--text-primary);
}

.sd-nav__menu[hidden] {
  display: none;
}

.sd-nav__toggle {
  display: none;
  position: relative;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: none;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
}

.sd-nav__toggle span,
.sd-nav__toggle span::before,
.sd-nav__toggle span::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--dur-base) var(--ease-out),
    opacity var(--dur-fast) var(--ease-out);
}

.sd-nav__toggle span::before,
.sd-nav__toggle span::after {
  content: "";
  position: absolute;
}

.sd-nav__toggle span::before {
  transform: translateY(-6px);
}

.sd-nav__toggle span::after {
  transform: translateY(6px);
}

.sd-nav__toggle[aria-expanded="true"] span {
  background: transparent;
}

.sd-nav__toggle[aria-expanded="true"] span::before {
  transform: rotate(45deg);
}

.sd-nav__toggle[aria-expanded="true"] span::after {
  transform: rotate(-45deg);
}

/* --------------------------------------------------------------------------
   5b. Social icon links
   -------------------------------------------------------------------------- */

.sd-social {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-hairline);
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    background-color var(--dur-fast) var(--ease-out);
}

.sd-social:hover {
  color: var(--text-primary);
  border-color: var(--border-brand);
  background: rgba(200, 228, 255, .08);
}

.sd-social svg {
  width: 16px;
  height: 16px;
  display: block;
}

/* A network with no mark of its own falls back to a plain text link. */
.sd-social--text {
  width: auto;
  height: auto;
  border: none;
  border-radius: 0;
  font-size: 13px;
  font-weight: var(--weight-medium);
}

.sd-social--text:hover {
  background: none;
}

.sd-footer__social .sd-social {
  width: 30px;
  height: 30px;
}

.sd-footer__social .sd-social svg {
  width: 15px;
  height: 15px;
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */

.sd-hero {
  position: relative;
  min-height: 72vh;
  display: grid;
  align-content: center;
  padding: 110px var(--gutter-inline) 72px;
  overflow: hidden;
}

.sd-hero__bg {
  position: absolute;
  inset: 0;
  opacity: .3;
}

.sd-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sd-hero__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg,
      rgba(0, 14, 27, .92) 0%,
      rgba(0, 14, 27, .72) 55%,
      rgba(0, 14, 27, .45) 100%);
}

.sd-hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--content-max);
  margin: 0 auto;
  width: 100%;
  display: grid;
  gap: var(--space-6);
}

.sd-hero__actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  justify-self: start;
  flex-wrap: wrap;
}

.sd-hero__proof {
  margin: var(--space-5) 0 0;
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--text-muted);
  opacity: .85;
}

/* --------------------------------------------------------------------------
   7. Work
   -------------------------------------------------------------------------- */

.sd-filters {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.sd-filter {
  font-family: inherit;
  font-size: 13px;
  font-weight: var(--weight-medium);
  color: var(--text-muted);
  background: none;
  border: 1px solid rgba(200, 228, 255, .20);
  border-radius: var(--radius-pill);
  padding: 9px 18px;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out);
}

.sd-filter:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.sd-filter[aria-pressed="true"] {
  color: var(--white);
  background: var(--action-primary);
  border-color: var(--action-primary);
}

.sd-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px var(--gutter-inline);
}

.sd-card {
  display: grid;
  gap: var(--space-4);
  min-width: 0;
  align-content: start;
  text-decoration: none;
  transition: opacity var(--dur-fast) var(--ease-out);
}

.sd-card:hover {
  opacity: .88;
}

.sd-card[hidden] {
  display: none;
}

.sd-card__media {
  position: relative;
  width: 100%;
  min-width: 0;
  height: 340px;
  border-radius: var(--radius-media);
  overflow: hidden;
  background: var(--surface-card);
}

.sd-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Covers are full-page screenshots — show the top of the page, not a band
     from the middle of it. Already-cropped covers are unaffected. */
  object-position: top center;
  display: block;
}

/* Shown when a project has no cover image yet. */
.sd-card__media--empty {
  display: grid;
  place-items: center;
  padding: var(--space-6);
  background:
    linear-gradient(135deg, var(--navy-700) 0%, var(--navy-600) 100%);
  border: 1px dashed var(--border-hairline);
}

.sd-card__media--empty span {
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--text-muted);
  text-align: center;
}

.sd-card__veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: var(--space-6);
  background: rgba(0, 30, 60, .94);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out);
}

.sd-card:hover .sd-card__veil,
.sd-card:focus-visible .sd-card__veil {
  opacity: 1;
}

.sd-card__veil p {
  margin: 0;
  max-width: 34ch;
  text-align: center;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-primary);
}

.sd-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
}

.sd-card__name {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--text-primary);
}

.sd-card__meta {
  font-size: var(--text-xs);
  letter-spacing: .08em;
  text-transform: lowercase;
  color: var(--text-muted);
  text-align: right;
  flex-shrink: 0;
}

.sd-card__desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
  text-wrap: pretty;
  max-width: 58ch;
}

.sd-card__result {
  font-size: 19px;
  font-weight: var(--weight-semibold);
  color: var(--text-highlight);
}

.sd-card__tags {
  font-size: var(--text-xs);
  letter-spacing: .08em;
  text-transform: lowercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-hairline);
  padding-bottom: var(--space-4);
}

.sd-work__empty {
  padding: var(--space-8) 0;
  display: grid;
  gap: var(--space-4);
  justify-items: start;
}

.sd-work__empty[hidden] {
  display: none;
}

/* --------------------------------------------------------------------------
   8. Services / Process
   -------------------------------------------------------------------------- */

.sd-rows {
  display: grid;
}

.sd-row {
  display: grid;
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  gap: var(--space-6);
  padding: 28px 0;
  border-top: 1px solid var(--border-hairline);
}

.sd-row:last-child {
  border-bottom: 1px solid var(--border-hairline);
}

.sd-row__title {
  font-size: 17px;
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
}

.sd-row__body {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
}

.sd-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-7);
}

.sd-step {
  display: grid;
  gap: 14px;
  border-top: 1px solid var(--border-hairline);
  padding-top: var(--space-5);
  align-content: start;
}

.sd-step__num {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--text-accent);
}

/* --------------------------------------------------------------------------
   9. About
   -------------------------------------------------------------------------- */

.sd-about__media {
  position: relative;
  width: 100%;
  min-width: 0;
  height: 380px;
  border-radius: var(--radius-media);
  overflow: hidden;
  background: var(--surface-card);
}

.sd-about__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sd-about__body {
  display: grid;
  gap: var(--space-5);
  max-width: 60ch;
}

.sd-about__body p {
  margin: 0;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-secondary);
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   10. Closing CTA
   -------------------------------------------------------------------------- */

.sd-closing__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--space-10) var(--gutter-inline);
  display: grid;
  gap: 28px;
  justify-items: start;
}

.sd-closing__inner p {
  margin: 0;
  max-width: 48ch;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   11. Contact form
   -------------------------------------------------------------------------- */

.sd-form {
  display: grid;
  gap: 22px;
  max-width: 560px;
}

.sd-field {
  display: grid;
  gap: var(--space-2);
}

.sd-field__label {
  font-size: 13px;
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
}

.sd-page .sd-input,
.sd-page .sd-select,
.sd-page .sd-textarea {
  font-family: inherit;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--surface-field);
  border: 1px solid var(--border-field);
  border-radius: var(--radius-md);
  padding: 13px var(--space-4);
  outline: none;
  width: 100%;
  transition: border-color var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
}

.sd-page .sd-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--blue-300) 50%),
    linear-gradient(135deg, var(--blue-300) 50%, transparent 50%);
  background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: var(--space-8);
}

.sd-page .sd-select option {
  color: var(--text-on-light);
  background: var(--white);
}

.sd-page .sd-textarea {
  resize: vertical;
  min-height: 132px;
}

.sd-page .sd-input:focus,
.sd-page .sd-select:focus,
.sd-page .sd-textarea:focus {
  border-color: var(--border-brand);
  box-shadow: 0 0 0 3px rgba(26, 136, 238, .24);
  outline: none;
}

.sd-page .sd-input::placeholder,
.sd-page .sd-textarea::placeholder {
  color: var(--text-muted);
  opacity: .7;
}

.sd-field--invalid .sd-input,
.sd-field--invalid .sd-select,
.sd-field--invalid .sd-textarea {
  border-color: var(--status-danger);
}

/* Honeypot — never visible, never announced. */
.sd-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.sd-form__actions {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  flex-wrap: wrap;
}

.sd-form__status {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.sd-form__status:empty {
  display: none;
}

.sd-form__status--error {
  color: var(--status-danger);
}

.sd-form__status--sent {
  color: var(--status-success);
}

.sd-form.is-sending {
  opacity: .75;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   12. Footer
   -------------------------------------------------------------------------- */

.sd-footer {
  border-top: 1px solid var(--border-hairline);
}

.sd-footer__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--space-7) var(--gutter-inline);
  display: grid;
  gap: 28px;
}

.sd-footer__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-5);
  flex-wrap: wrap;
}

.sd-footer__row--legal {
  border-top: 1px solid var(--border-hairline);
  padding-top: var(--space-5);
}

.sd-footer__brand {
  display: grid;
  gap: var(--space-1);
}

.sd-footer__name {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
}

.sd-footer__meta {
  font-size: 13px;
  color: var(--text-muted);
}

.sd-footer__meta a {
  color: var(--text-muted);
  text-decoration: none;
}

.sd-footer__meta a:hover {
  color: var(--text-primary);
}

.sd-footer__links {
  display: flex;
  gap: var(--space-5);
  font-size: 13px;
  font-weight: var(--weight-medium);
  flex-wrap: wrap;
}

.sd-footer__links a {
  color: var(--text-muted);
  text-decoration: none;
}

.sd-footer__links a:hover {
  color: var(--text-primary);
}

.sd-footer__copy {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   13. Motion — entrance animations (progressively enhanced by portfolio.js)
   -------------------------------------------------------------------------- */

.sd-page.js .sd-step {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 1.4s cubic-bezier(.2, .6, .3, 1),
    transform 1.4s cubic-bezier(.2, .6, .3, 1);
}

.sd-page.js .sd-step.is-in {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   14. Elementor Pro interop
   Skins the Pro Form widget and Nav Menu so blocks dropped into the page
   inherit the same design system instead of Elementor's defaults.
   -------------------------------------------------------------------------- */

.sd-page .elementor-field-group > label {
  font-size: 13px;
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

.sd-page .elementor-field-textual {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-primary);
  background: var(--surface-field);
  border: 1px solid var(--border-field);
  border-radius: var(--radius-md);
  padding: 13px var(--space-4);
  transition: border-color var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
}

.sd-page .elementor-field-textual:focus {
  border-color: var(--border-brand);
  box-shadow: 0 0 0 3px rgba(26, 136, 238, .24);
}

.sd-page .elementor-button,
.sd-page .elementor-field-type-submit button {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: var(--weight-semibold);
  color: var(--white);
  background: var(--action-primary);
  border: none;
  border-radius: var(--radius-pill);
  padding: 14px 30px;
  transition: background-color var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}

.sd-page .elementor-button:hover,
.sd-page .elementor-field-type-submit button:hover {
  background: var(--action-primary-hover);
}

.sd-page .elementor-button:active,
.sd-page .elementor-field-type-submit button:active {
  background: var(--action-primary-press);
  transform: scale(var(--press-scale));
}

.sd-page .elementor-message.elementor-message-success {
  color: var(--status-success);
}

.sd-page .elementor-message.elementor-message-danger {
  color: var(--status-danger);
}

.sd-page .elementor-heading-title {
  font-family: var(--font-display);
  font-weight: var(--weight-regular);
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   15. Responsive
   The source design is desktop-only; these breakpoints are additions.
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  :root {
    --gutter-inline: 28px;
    --gutter-section: 72px;
  }

  .sd-grid {
    gap: var(--space-7) var(--space-6);
  }

  .sd-card__media {
    height: 280px;
  }
}

@media (max-width: 900px) {
  .sd-section__inner--split {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-7);
  }

  .sd-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-8);
  }

  .sd-row {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-3);
  }

  .sd-about__media {
    height: 320px;
    max-width: 480px;
  }

  .sd-hero {
    min-height: 0;
    padding: 88px var(--gutter-inline) 64px;
  }

  /* Collapse the nav into a toggle-driven panel — but only once JavaScript is
     there to operate the toggle. Without it the links simply wrap. */
  .sd-page.js .sd-nav__toggle {
    display: inline-flex;
  }

  .sd-page.js .sd-nav__menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: var(--space-2) var(--gutter-inline) var(--space-5);
    /* Opaque, not translucent: the display headline behind it is high
       contrast and reads straight through a scrim. */
    background: var(--surface-page);
    border-bottom: 1px solid var(--border-hairline);
  }

  .sd-page.js .sd-nav__link {
    display: block;
    width: 100%;
    padding: var(--space-3) 0;
    font-size: var(--text-base);
    border-bottom: 1px solid var(--border-hairline);
  }

  .sd-page.js .sd-nav__menu .sd-btn {
    margin-top: var(--space-4);
  }

  /* In the drawer the icon sits on its own line, clear of the links. */
  .sd-page.js .sd-nav__menu .sd-social {
    margin-top: var(--space-4);
  }

  .sd-page.js .sd-nav__menu .sd-social + .sd-btn {
    margin-top: var(--space-3);
  }

  .sd-page:not(.js) .sd-nav__inner,
  .sd-page:not(.js) .sd-nav__menu {
    flex-wrap: wrap;
    gap: var(--space-4);
  }
}

@media (max-width: 560px) {
  :root {
    --gutter-inline: 20px;
    --gutter-section: 56px;
  }

  .sd-card__media {
    height: 220px;
  }

  /* Long project names would otherwise squeeze the industry label into a
     three-line column against the right edge. */
  .sd-card__head {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-1);
  }

  .sd-card__meta {
    text-align: left;
  }

  .sd-hero__actions .sd-btn {
    width: 100%;
  }

  .sd-closing__inner {
    padding: var(--space-9) var(--gutter-inline);
  }

  .sd-footer__row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .sd-page.js .sd-step {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .sd-page *,
  .sd-page *::before,
  .sd-page *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
