:root {
  /* Figma tokens (MacBook frame) */
  --figma-green: #2eb392;
  --figma-gray-end: #656565;
  --card-surface-figma: #fef7ff;
  --card-border-figma: #cac4d0;
  --card-text-figma: #1d1b20;

  /* Desktop: pull portrait + social up; mobile overrides in media queries */
  --hero-shift: 275px;

  --gray-dark: #4a4a4a;
  --teal: #008075;
  --teal-light: #00a896;
  --navy: #1a2744;
  --white: #ffffff;
  --charcoal: #2d2d2d;
  --gray-text: #2a3332;
  --gray-muted: #5c6b69;
  --border: rgba(0, 128, 117, 0.22);
  --focus: #7fd4ca;
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
}

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

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

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

  .btn:hover:not(:disabled),
  .social-link:hover,
  .card:hover {
    transform: none;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  color: var(--gray-text);
  background: var(--charcoal);
  overflow-x: hidden;
}

/* Full-page gradient — Figma: teal #2eb392 → gray #656565 */
.page-shell {
  min-height: 100vh;
  min-height: 100dvh;
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
  padding-bottom: env(safe-area-inset-bottom, 0);
  background: linear-gradient(
    118deg,
    var(--figma-green) 0%,
    #4a8f7a 22%,
    #5a6a66 52%,
    var(--figma-gray-end) 100%
  );
  background-attachment: fixed;
}

.layout-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  max-width: min(94.5rem, 100%);
  margin: 0 auto;
  min-height: min(100vh, auto);
  align-items: stretch;
  gap: 0;
}

/* ——— Left column ——— */
.col-left {
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1rem, 3vw, 2.5rem) 3rem;
  color: rgba(255, 255, 255, 0.95);
}

.intro {
  margin-top: 1.75rem;
  margin-bottom: 2.25rem;
}

.intro-title {
  margin: 0 0 1.1rem;
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-size: clamp(1.75rem, 4.2vw, 2.65rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: #fff;
}

.intro-name {
  font-weight: 800;
}

.intro .tagline {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-size: clamp(0.88rem, 1.65vw, 0.98rem);
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  max-width: 34rem;
}

.tagline-line {
  display: block;
}

.tagline-line + .tagline-line {
  margin-top: 0.35rem;
}

.section-block {
  margin-top: 2.1rem;
}

.section-block:first-of-type {
  margin-top: 0;
}

.section-block h2 {
  margin: 0 0 0.85rem;
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

/* Figma: two columns × 360px cards, ~54px column gap */
.card-grid {
  display: grid;
  gap: 3.4375rem 3.375rem;
  grid-template-columns: repeat(2, minmax(0, 22.5rem));
  justify-content: start;
}

@media (max-width: 50rem) {
  .card-grid {
    grid-template-columns: minmax(0, 22.5rem);
    gap: 1rem;
  }
}

@media (max-width: 520px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

.card {
  border-radius: 12px;
  padding: 0;
  background: var(--card-surface-figma);
  border: 1px solid var(--card-border-figma);
  box-shadow: none;
  transition:
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

@media (hover: hover) and (pointer: fine) {
  .card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
  }
}

/* Figma-style card: 40px avatar | text */
.card--figma {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  min-height: 5rem;
  max-width: 22.5rem;
  width: 100%;
  padding: 0 1rem 0 1rem;
  overflow: hidden;
}

.card__left {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 0;
}

.card__body a {
  display: block;
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--card-text-figma);
  text-decoration: none;
}

.card__body a:hover {
  color: var(--figma-green);
}

.card__desc {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-size: 0.875rem;
  line-height: 1.43;
  color: var(--card-text-figma);
  opacity: 0.92;
}

/* 40px avatars — Figma */
.card__avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Figma Material avatar: lavender circle + purple initial */
.card__avatar--initial {
  background: #eae0ff;
}

.card__initial {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1;
  color: #4f377a;
}

.card__avatar--img {
  overflow: hidden;
  padding: 0;
}

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

/* Nations and Balls logo (square asset on white — contain inside circle) */
.card__avatar--logo {
  background: #fff;
}

.card__avatar--logo img {
  object-fit: contain;
  object-position: center;
}

.card__avatar--empty {
  background: #e8e8e8;
}

/* Contact block */
.section-block--contact .form-hint {
  color: rgba(255, 255, 255, 0.8);
}

.section-block--contact .form-hint a {
  color: #b8fff4;
}

.section-block--contact .form-hint a:hover {
  color: #fff;
}

.contact-form {
  margin-top: 0.75rem;
  border-radius: 12px;
  padding: 1.35rem 1.25rem;
  background: var(--card-surface-figma);
  border: 1px solid var(--card-border-figma);
  box-shadow: none;
}

.form-row {
  margin-bottom: 1rem;
}

.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: var(--card-text-figma);
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 6px;
  font: inherit;
  background: var(--white);
}

.form-row input:focus-visible,
.form-row textarea:focus-visible {
  outline: 2px solid var(--figma-green);
  outline-offset: 1px;
  border-color: var(--figma-green);
}

.form-row textarea {
  min-height: 7rem;
  resize: vertical;
}

.captcha-wrap {
  margin: 1rem 0;
  min-height: 4.5rem;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.35rem;
  font: inherit;
  font-weight: 600;
  color: var(--white);
  background: linear-gradient(165deg, #3dd4b8 0%, var(--figma-green) 48%, #228f76 100%);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition:
    box-shadow 0.15s ease,
    transform 0.15s ease;
  box-shadow: 0 4px 16px rgba(30, 120, 100, 0.35);
}

.btn:hover:not(:disabled) {
  box-shadow: 0 6px 22px rgba(0, 60, 54, 0.45);
  transform: translateY(-1px);
}

.btn:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.form-status {
  font-size: 0.95rem;
  margin: 0;
  color: var(--card-text-figma);
}

.form-status.error {
  color: #a32020;
}

.form-status.success {
  color: var(--figma-green);
}

.form-hint {
  font-size: 0.85rem;
  margin: 0 0 1rem;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88em;
  background: rgba(46, 179, 146, 0.12);
  color: var(--card-text-figma);
  padding: 0.12em 0.4em;
  border-radius: 4px;
}

/* ——— Right column: portrait + social (no box around icons) ——— */
.col-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 5vw, 3rem) clamp(1rem, 3vw, 1.75rem) 2rem;
  position: relative;
}

/* Figma: 410×430 portrait, 1px teal stroke, square corners (PNG may be transparent) */
.portrait-frame {
  width: min(100%, 25.625rem);
  aspect-ratio: 410 / 430;
  border-radius: 0;
  overflow: hidden;
  flex-shrink: 0;
  background: transparent;
  border: 1px solid var(--figma-green);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
  position: relative;
  z-index: 1;
  transform: translateY(calc(-1 * var(--hero-shift)));
}

.portrait-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Social: light grey circles (screenshot palette) on gradient */
.social-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem 1rem;
  margin: 0;
  padding: 1.35rem 0 0;
  width: 100%;
  max-width: 20rem;
  background: none;
  border: none;
  box-shadow: none;
  position: relative;
  z-index: 1;
  transform: translateY(calc(-1 * var(--hero-shift)));
}

.social-row--on-dark .social-link {
  width: 2.55rem;
  height: 2.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
  background: #f2f2f2;
  border: 1px solid #dcdcdc;
  color: #545d5e;
  text-decoration: none;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
  box-shadow: none;
}

.social-row--on-dark .social-link:hover {
  background: #e8e8e8;
  border-color: #d0d0d0;
  color: #454d4e;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.social-link svg {
  display: block;
  height: 1.2rem;
  width: auto;
  max-width: 1.35rem;
}

/* Footer */
.site-footer {
  padding: 1.5rem 1.25rem 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.75);
}

.site-footer a:hover {
  color: #fff;
}

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

@media (max-width: 900px) {
  :root {
    --hero-shift: 0px;
  }

  .page-shell {
    /* fixed backgrounds cost paint on mobile; scroll is smoother */
    background-attachment: scroll;
  }

  .layout-split {
    grid-template-columns: 1fr;
  }

  .col-right {
    order: -1;
    padding-top: max(1.25rem, env(safe-area-inset-top, 0));
    padding-bottom: max(1rem, env(safe-area-inset-bottom, 0));
  }

  .col-left {
    padding-top: 0.5rem;
  }

  .portrait-frame {
    width: min(20rem, 88vw);
  }

  .social-row--on-dark {
    padding-top: 1.25rem;
  }

  .social-row--on-dark .social-link {
    width: 2.75rem;
    height: 2.75rem;
    min-width: 44px;
    min-height: 44px;
  }

  .form-row input,
  .form-row textarea {
    font-size: 1rem;
  }

  .btn {
    min-height: 44px;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

@media (max-width: 480px) {
  .intro {
    margin-top: 1.25rem;
  }

  .intro-title {
    font-size: clamp(1.35rem, 6.5vw, 1.65rem);
  }

  .section-block {
    margin-top: 1.75rem;
  }

  .site-footer {
    padding-left: max(1rem, env(safe-area-inset-left, 0));
    padding-right: max(1rem, env(safe-area-inset-right, 0));
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom, 0));
  }
}
