:root {
  --bg: #0e1311;
  --text: #eceeea;
  --muted: #a8b0a8;
  --dim: #7e8983;
  --accent: #4cc492;
  --accent-hi: #6fd3a8;
  --on-accent: #0b1410;
  --card: #141b17;
  --line: #253029;
  --field-line: #2d3831;
  --col: 720px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hi); text-decoration: underline; }

h1, h2, h3 { margin: 0; }
p { margin: 0; }
img { max-width: 100%; }

::selection { background: #23483a; }

input:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

input::placeholder,
textarea::placeholder { color: #6c7770; }

.shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

.wrap {
  width: 100%;
  max-width: var(--col);
  margin: 0 auto;
  padding-inline: 24px;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(14, 19, 17, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(76, 196, 146, 0.1);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 20px;
}

.wordmark {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.header__link {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
}

.hero__inner {
  position: relative;
  z-index: 1;
  padding-block: 110px 120px;
}

.hero h1 {
  margin-bottom: 28px;
  font-size: clamp(38px, 5.5vw, 54px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}

.hero__sub {
  margin-bottom: 40px;
  max-width: 620px;
  font-size: 19px;
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  background: var(--accent);
  color: var(--on-accent);
  border: none;
  border-radius: 4px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover {
  background: var(--accent-hi);
  color: var(--on-accent);
  text-decoration: none;
  box-shadow: 0 0 28px rgba(76, 196, 146, 0.45);
}

.btn:disabled { opacity: 0.55; cursor: default; box-shadow: none; }

/* ---------- hero motif ---------- */

.motif {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.motif__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(76, 196, 146, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(76, 196, 146, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 90% 85% at 35% 15%, black, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 85% at 35% 15%, black, transparent 78%);
  animation: gridDrift 24s linear infinite;
}

.motif__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 65% 55% at 28% 22%, rgba(76, 196, 146, 0.14), transparent 65%);
  animation: glowPulse 7s ease-in-out infinite;
}

.motif__bits {
  position: absolute;
  left: 0;
  white-space: nowrap;
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: 0.08em;
  color: var(--accent);
  animation: binDrift linear infinite;
}

.motif__bits--a { top: 16%; font-size: 13px; opacity: 0.12; animation-duration: 90s; }
.motif__bits--b { top: 56%; font-size: 12px; opacity: 0.07; animation-duration: 130s; }
.motif__bits--c { top: 85%; font-size: 11px; opacity: 0.09; animation-duration: 110s; }

@keyframes gridDrift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 48px 48px, 48px 48px; }
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.65; }
  50% { opacity: 1; }
}

@keyframes binDrift {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- sections ---------- */

.section h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.body {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}

.section--what { padding-bottom: 110px; }
.section--what h2 { margin-bottom: 20px; }

.section--how { padding-bottom: 110px; }
.section--how h2 { margin-bottom: 16px; }
.how__intro { margin-bottom: 48px; }

.cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.card {
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.card__num {
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--dim);
}

.card h3 {
  margin-bottom: 10px;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.card__tag {
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--accent);
}

.card__body {
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}

.card__get {
  margin-top: auto;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

.card__get strong { color: var(--text); }

/* ---------- about ---------- */

.section--about { padding-bottom: 110px; }
.section--about h2 { margin-bottom: 36px; }

.about__head {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.about__photo {
  width: 128px;
  height: 128px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
}

.about__id { align-self: center; }
.about__name { font-size: 20px; font-weight: 700; }
.about__role { font-size: 16px; color: var(--dim); }

.section--about .body { margin-bottom: 20px; }
.section--about .body:last-of-type { margin-bottom: 24px; }

.linkedin { font-size: 16px; font-weight: 600; }

/* ---------- contact ---------- */

.section--contact { padding-bottom: 100px; }
.section--contact h2 { margin-bottom: 12px; }
.contact__sub { margin-bottom: 36px; }

.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 520px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-size: 14px;
  font-weight: 600;
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--card);
  border: 1px solid var(--field-line);
  border-radius: 4px;
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
}

.field textarea { resize: vertical; }

.decoy { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form__actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.form__status {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

.form__status:empty { display: none; }
.form__status[data-state="error"] { color: #e2a99b; }
.form__status[data-state="ok"] { color: var(--accent); }

/* ---------- footer ---------- */

.site-footer { border-top: 1px solid var(--line); }

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-block: 32px 40px;
  font-size: 14px;
  color: var(--dim);
}

/* ---------- reveal ---------- */

.is-hidden {
  opacity: 0;
  transform: translateY(28px);
}

[data-reveal] {
  transition: opacity 0.7s ease, transform 0.7s ease;
}

/* ---------- small screens ---------- */

@media (max-width: 560px) {
  .hero__inner { padding-block: 72px 84px; }
  .section--what,
  .section--about { padding-bottom: 80px; }
  .section--full { padding-block: 24px 80px; }
  .section--contact { padding-bottom: 72px; }
  .card { padding: 26px 22px; }
  .btn { width: 100%; text-align: center; }
  .form__actions { align-items: stretch; }
}

/* ---------- large screens ----------
   Below 1100px the layout stays exactly as designed: one 720px column.
   Above it the column widens and sections split, so the width carries
   content instead of margin. */

@media (min-width: 1100px) {
  :root { --col: 1060px; }

  .wrap { padding-inline: 40px; }

  /* No cap: the headline runs the full column, so its right edge lines up
     with the section content below it. */
  .hero h1 { font-size: clamp(54px, 4.4vw, 68px); max-width: none; }
  .hero__sub { font-size: 20px; max-width: 72ch; }
  .hero__inner { padding-block: 130px 140px; }

  .wordmark { font-size: 25px; }
  .header__link { font-size: 16px; }
  .section h2 { font-size: 32px; }
  .body { font-size: 19px; }

  .split {
    display: grid;
    grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
    column-gap: 64px;
    align-items: start;
  }

  .section--what h2 { margin-bottom: 0; }
  .section--what .body { max-width: 62ch; }

  .cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
  }

  .card { padding: 30px 26px; }
  .card h3 { font-size: 20px; }

  /* The other sections put a heading in the left column; this one puts a
     128px photo there, so it sizes to its content instead of to that width. */
  .section--about .split {
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 44px;
  }

  .section--about .about__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 0;
  }

  .section--about .body { max-width: 70ch; }

  .section--about .about__id { align-self: flex-start; }

  .contact__sub { margin-bottom: 0; }
  .form { margin-top: 0; }
}

@media (min-width: 1500px) {
  :root { --col: 1200px; }
  .hero__inner { padding-block: 150px 160px; }
}

@media (min-width: 1800px) {
  :root { --col: 1360px; }
  .wrap { padding-inline: 56px; }
  .split { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); column-gap: 80px; }
  .cards { gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .motif__grid,
  .motif__glow,
  .motif__bits { animation: none; }
  [data-reveal] { transition: none; }
  .is-hidden { opacity: 1; transform: none; }
}
