/* ============================================================
   Md Yusuf Ahmed — portfolio styles
   One file for everything. Light theme only. No frameworks.
   ============================================================ */

/* ---------- Tokens ---------- */

:root {
  color-scheme: light;

  --blue: #3B4DE0;
  --yellow: #FFE16C;
  --orange: #F36B45;          /* dots, lines, contact background */
  --orange-text: #B4441F;     /* small orange text on cream (AA 4.5:1) */
  --orange-icon: #D2491F;     /* arrow icons on cream (3:1) */
  --orange-on-yellow: #C7431B;/* the "+" in the stats strip (large text, 3:1) */
  --orange-on-blue: #FFB49E;  /* arrow icons on blue (3:1) */
  --cream: #F6F1E6;
  --cream-light: #FCF9F2;
  --dark: #1B1D26;
  --ink: #1B1D26;
  --muted: #5B5D68;           /* quiet meta text: footer, certificate details */
  --text: #2E3039;            /* body text, small labels and side notes on light backgrounds */
  --blue-text: #2B3BC4;       /* small blue labels on cream (darker than --blue for small sizes) */
  --on-blue: #FFFFFF;
  --on-blue-muted: #DDE1FF;   /* small text on blue */
  --on-dark: #F6F1E6;
  --on-dark-muted: #C4C7D2;   /* small gray text on dark */
  --line: rgba(27, 29, 38, 0.16);
  --focus: var(--ink);

  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  --container: 1032px;
  --gutter: 24px;
}

/* ---------- Base ---------- */

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

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

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

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

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--cream);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Shared pieces ---------- */

.eyebrow {
  margin-bottom: 18px;
  color: var(--blue-text);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section {
  padding: 88px 0 84px;
}

.section-title {
  font-size: clamp(40px, 4vw + 14px, 64px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.045em;
}

.accent {
  color: var(--blue);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.side-note {
  flex-shrink: 0;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  min-height: 44px;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

.button-yellow {
  background: var(--yellow);
  color: var(--ink);
}

.button-yellow:hover {
  background: #FFD83F;
}

.button-dark {
  background: var(--ink);
  color: var(--cream);
}

.button-dark .arrow {
  color: var(--yellow);
}

.button-dark:hover {
  background: #2C2F3C;
}

.link-line {
  display: inline-flex;
  gap: 12px;
  padding: 4px 0 6px;
  border-bottom: 1px solid currentColor;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

.link-line:hover {
  border-bottom-width: 2px;
  padding-bottom: 5px;
}

/* ---------- Header ---------- */

.site-header {
  position: relative;
  z-index: 10;
  background: var(--cream);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--blue);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
}

.site-nav ul {
  display: flex;
  gap: 24px;
}

.site-nav a {
  display: inline-block;
  padding: 6px 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-nav .nav-resume {
  color: var(--blue);
}

.nav-resume .arrow {
  margin-left: 4px;
  color: var(--orange-icon);
}

.menu-toggle {
  display: none;
}

/* ---------- Hero ---------- */

.hero {
  --focus: var(--yellow);
  position: relative;
  overflow: hidden;
  padding-top: 60px;
  background: var(--blue);
  color: var(--on-blue);
}

.hero-ring {
  position: absolute;
  top: -330px;
  left: calc(50% - 80px);
  width: 640px;
  height: 640px;
  border: 54px solid rgba(255, 255, 255, 0.04);
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 456px);
  gap: 48px;
  align-items: center;
}

.eyebrow-hero {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--on-blue);
  font-size: 12px;
}

.eyebrow-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.hero-name {
  margin: 22px 0 26px;
  font-size: clamp(64px, 7.5vw + 40px, 96px);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.06em;
}

.hero-name-dot {
  color: var(--yellow);
}

.hero-tagline {
  font-size: clamp(21px, 1vw + 12px, 24px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.hero-summary {
  max-width: 520px;
  margin-top: 10px;
  color: var(--on-blue);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
}

.hero-now {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  margin-top: 18px;
  font-size: 12px;
}

.hero-now-label {
  color: var(--yellow);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
}

.hero-now-sep {
  color: var(--on-blue-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 26px;
}

.hero-actions .button {
  min-height: 44px;
  padding: 14px 15px;
}

.hero .arrow {
  color: var(--orange-on-blue);
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 26px;
  color: var(--on-blue);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
}

.hero-links a {
  text-decoration: none;
}

.hero-links a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.hero-bottom {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 44px;
  padding-bottom: 22px;
  color: var(--on-blue);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-bottom a {
  color: var(--yellow);
  text-decoration: none;
}

.hero-bottom a:hover {
  text-decoration: underline;
}

/* Field-note card */

.field-note-wrap {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 456px;
  margin-top: 14px;
}

.field-note {
  padding: 22px 28px 30px;
  background: var(--cream-light);
  color: var(--ink);
  box-shadow: 9px 9px 0 #2B3BC2;
  transform: rotate(2.2deg);
}

.field-note-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field-note-no {
  color: var(--orange-text);
}

.field-note-drawing {
  width: 100%;
  height: auto;
  margin: 18px 0 14px;
}

.drawing-label {
  fill: var(--ink);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.drawing-note {
  fill: var(--orange-text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  font-style: italic;
}

.field-note-foot {
  color: var(--text);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sticker {
  --focus: var(--ink);
  position: absolute;
  right: -22px;
  bottom: 30px;
  display: grid;
  place-content: center;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 3px 0 rgba(27, 29, 38, 0.12);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  transform: rotate(-14deg);
}

.sticker .arrow {
  color: var(--orange-on-yellow);
}

.sticker:hover {
  background: #FFD83F;
}

.sticker:focus-visible {
  outline-offset: 2px;
  border-radius: 50%;
}

/* ---------- Stats strip ---------- */

.stats {
  border-bottom: 1px solid rgba(27, 29, 38, 0.12);
  background: var(--yellow);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
}

.stat + .stat {
  padding-left: 24px;
  border-left: 1px solid rgba(27, 29, 38, 0.18);
}

.stat-number {
  flex-shrink: 0;
  font-size: 31px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

/* The digits in "100+" need a little more room than the heading style. */
.stat-number-wide {
  letter-spacing: 0.01em;
}

.stat-plus {
  margin-left: 1px;
  color: var(--orange-on-yellow);
}

.stat-label {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.4;
}

.stat-sub {
  margin-top: 2px;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

/* ---------- 01 How I think ---------- */

.section-about {
  padding-bottom: 68px;
  background: var(--cream-light);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
}

.about-lead {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.about-body {
  margin-top: 14px;
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
}

.about-based {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 26px;
  font-size: 14px;
  font-weight: 500;
}

.about-based-arrow {
  color: var(--orange-icon);
  font-size: 15px;
  line-height: 1;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 56px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 0;
  font-size: 14px;
  font-weight: 500;
}

.steps li + li::before {
  content: "";
  width: 1px;
  height: 13px;
  margin-right: 2px;
  background: var(--line);
}

.step-number {
  color: var(--orange-text);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
}

/* ---------- 02 Experience ---------- */

.section-experience {
  border-top: 1px solid var(--line);
  background: var(--cream);
}

.timeline {
  margin-top: 40px;
  border-top: 2px solid var(--ink);
}

.job {
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr);
  gap: 24px;
  padding: 28px 0 26px;
  border-bottom: 1px solid var(--line);
}

.job:last-child {
  border-bottom: 0;
}

.job-dates {
  display: flex;
  align-items: center;
  gap: 10px;
  align-self: start;
  padding-top: 1px;
  color: var(--blue-text);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.job-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
}

.job-company {
  color: var(--text);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.job-company-name {
  color: var(--blue-text);
}

.job-title {
  margin-top: 4px;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.job-title-note {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
}

.job-points {
  max-width: 790px;
  margin-top: 12px;
}

.job-points li {
  position: relative;
  padding-left: 20px;
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
}

.job-points li + li {
  margin-top: 6px;
}

.job-points li::before {
  content: "";
  position: absolute;
  top: 0.65em;
  left: 2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
}

.job-text {
  margin-top: 12px;
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
}

.tags {
  margin-top: 14px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- 03 Selected work ---------- */

.section-projects {
  --focus: var(--yellow);
  position: relative;
  overflow: hidden;
  background: var(--dark);
  color: var(--on-dark);
}

.projects-ring {
  position: absolute;
  top: -280px;
  left: calc(50% + 300px);
  width: 640px;
  height: 640px;
  border: 58px solid rgba(255, 255, 255, 0.035);
  border-radius: 50%;
  pointer-events: none;
}

.section-projects .container {
  position: relative;
}

.section-projects .eyebrow,
.section-projects .accent {
  color: var(--yellow);
}

.section-projects .side-note {
  color: var(--on-dark-muted);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 56px;
}

.project {
  --focus: var(--ink);
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 294px;
  padding: 26px 20px 16px;
  color: var(--ink);
}

.project-wide {
  grid-column: 1 / -1;
  min-height: 225px;
}

.project-apitrek {
  background: #E9EAFF;
}

.project-qagenius {
  background: #F4C7BC;
}

.project-playwright {
  background: #CFE7D3;
}

.project-number {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-icon {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
}

.project-icon text {
  fill: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
}

.project-art {
  position: absolute;
  height: auto;
}

.project-art text {
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.08em;
}

.project-art-apitrek {
  top: 52px;
  right: 34px;
  width: 80px;
}

.project-art-qagenius {
  top: 66px;
  right: 22px;
  width: 152px;
}

.project-art-playwright {
  top: 52px;
  right: 72px;
  width: 162px;
}

.project-title {
  margin-top: 30px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.project-text {
  max-width: 380px;
  margin-top: 8px;
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
}

.project-tags {
  margin-top: 12px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: auto;
  padding-top: 28px;
}

.project-links a {
  display: inline-flex;
  gap: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.project-links a:hover {
  border-bottom-width: 2px;
  padding-bottom: 3px;
}

.project-links .arrow {
  color: var(--orange-icon);
}

.more-work {
  margin-top: 24px;
}

.more-work-label {
  color: var(--on-dark-muted);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.more-work-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 10px;
}

.more-work-links a {
  display: inline-block;
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(246, 241, 230, 0.45);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.more-work-links a:hover {
  border-bottom-color: var(--on-dark);
}

/* ---------- 04 Toolkit ---------- */

.section-toolkit {
  background: var(--cream);
}

.toolkit-table {
  width: 100%;
  margin-top: 36px;
  border-collapse: collapse;
  text-align: left;
}

.toolkit-table th,
.toolkit-table td {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  vertical-align: top;
}

.toolkit-table tr:last-child th,
.toolkit-table tr:last-child td {
  border-bottom: 1px solid var(--line);
}

.toolkit-table th {
  width: 215px;
  padding-right: 24px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
}

.toolkit-table td {
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
}

.credentials {
  display: grid;
  grid-template-columns: 440px minmax(0, 1fr);
  gap: 24px 32px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.credentials-label {
  margin-bottom: 10px;
  color: var(--blue-text);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.credential-title {
  font-size: 12.5px;
  font-weight: 600;
}

.credential-meta {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.certificates li + li {
  margin-top: 4px;
}

.certificates a {
  text-decoration: none;
}

.certificates .credential-title {
  font-size: 12px;
  font-weight: 500;
}

.certificates .credential-meta {
  margin-left: 4px;
  font-size: 13px;
}

.certificates a:hover .credential-title {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- 05 Contact ---------- */

.section-contact {
  padding: 50px 0 28px;
  background: var(--orange);
  color: var(--ink);
}

.contact-grid {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  gap: 24px 21px;
  align-items: center;
}

.contact-globe {
  width: 130px;
  height: auto;
}

.contact-globe text {
  fill: var(--ink);
  font-family: var(--font);
  font-size: 62px;
  font-weight: 700;
}

.section-contact .eyebrow {
  color: var(--ink);
}

.contact-text {
  max-width: 460px;
  margin-top: 16px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
}

.contact-main .button {
  margin-top: 20px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
}

.contact-links a {
  text-decoration: none;
}

.contact-links a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-links .contact-email {
  display: inline-block;
  margin-bottom: 6px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 26px 0;
  background: var(--cream);
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
}

.footer-name {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.footer-top {
  color: var(--blue);
  text-decoration: none;
}

.footer-top:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- 404 page ---------- */

.not-found {
  padding: 120px 0 140px;
  border-top: 1px solid var(--line);
}

.not-found-title {
  font-size: clamp(52px, 6vw + 24px, 96px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.not-found-lead {
  max-width: 520px;
  margin-top: 22px;
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
}

.not-found .button {
  margin-top: 32px;
}

/* ---------- Responsive ---------- */

@media (max-width: 959px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .field-note-wrap {
    justify-self: start;
    margin-top: 44px;
  }

  .about-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .credentials {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

/* Two cards side by side get too narrow for a drawing beside the text. */
@media (max-width: 1023px) {
  .project:not(.project-wide) .project-art {
    position: static;
    align-self: flex-end;
    margin: 14px 4px 0 0;
  }

  .project:not(.project-wide) .project-title {
    margin-top: 18px;
  }
}

@media (max-width: 859px) {
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .contact-grid {
    grid-template-columns: 110px minmax(0, 1fr);
  }

  .contact-globe {
    width: 100px;
    align-self: start;
  }

  .contact-links {
    grid-column: 2;
  }
}

@media (max-width: 719px) {
  :root {
    --gutter: 22px;
  }

  /* Mobile menu */
  .menu-toggle {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(27, 29, 38, 0.35);
    border-radius: 50%;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
  }

  .menu-toggle:hover {
    background: rgba(27, 29, 38, 0.06);
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    padding: 4px var(--gutter) 18px;
    border-bottom: 1px solid var(--line);
    background: var(--cream);
    box-shadow: 0 12px 24px rgba(27, 29, 38, 0.08);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .site-nav a {
    display: block;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
  }

  .site-nav li:last-child a {
    border-bottom: 0;
  }

  /* Hero */
  .hero {
    padding-top: 44px;
  }

  .hero-ring {
    top: -70px;
    left: calc(50% - 90px);
    width: 340px;
    height: 340px;
    border-width: 34px;
  }

  .hero-name {
    margin: 18px 0 26px;
  }

  .hero-now {
    font-size: 12px;
  }

  .field-note {
    padding: 16px 18px 22px;
    transform: rotate(1.6deg);
  }

  .sticker {
    right: -8px;
    bottom: 16px;
    width: 66px;
    height: 66px;
    font-size: 11px;
  }

  .hero-bottom {
    margin-top: 48px;
  }

  /* Stats */
  .stats-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .stat {
    padding: 18px 0;
  }

  .stat + .stat {
    padding-left: 0;
    border-top: 1px solid rgba(27, 29, 38, 0.18);
    border-left: 0;
  }

  .stat-number {
    min-width: 72px;
  }

  /* Sections */
  .section {
    padding: 64px 0;
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 40px;
  }

  .steps li + li {
    border-top: 1px solid var(--line);
  }

  .steps li + li::before {
    display: none;
  }

  .job {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .project-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .project {
    min-height: 0;
  }

  .project-art {
    position: static;
    align-self: flex-end;
    margin: 18px 4px 0 0;
  }

  .project-title {
    margin-top: 20px;
  }

  .credentials {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-links {
    grid-column: auto;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .not-found {
    padding: 80px 0 100px;
  }
}

@media (max-width: 559px) {
  .toolkit-table,
  .toolkit-table tbody,
  .toolkit-table tr,
  .toolkit-table th,
  .toolkit-table td {
    display: block;
    width: 100%;
  }

  .toolkit-table tr {
    padding: 12px 0;
    border-top: 1px solid var(--line);
  }

  .toolkit-table tr:last-child {
    border-bottom: 1px solid var(--line);
  }

  .toolkit-table th,
  .toolkit-table td,
  .toolkit-table tr:last-child th,
  .toolkit-table tr:last-child td {
    padding: 0;
    border: 0;
  }

  .toolkit-table td {
    margin-top: 2px;
  }
}
