@font-face {
  font-family: Oswald;
  src: url("oswald-bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: #0a162a;
  --surface: #13243d;
  --white: #f5f8ff;
  --muted: #b6c7de;
  --blue: #a0cbff;
  --line: #789bc04a;
  --radius: 10px;
  --display: Oswald, "Arial Narrow", "Roboto Condensed", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(ellipse 70% 540px at 70% 220px, #172c49, transparent), var(--background);
  color: var(--white);
  font: 15px/1.55 system-ui, sans-serif;
}
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.wrap { width: min(1160px, calc(100% - 56px)); margin-inline: auto; }
.definitions { position: absolute; width: 0; height: 0; }
.icon {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.topbar { display: flex; align-items: center; gap: 26px; padding: 15px 0; }
.brand {
  margin-right: auto;
  font: 2.25rem/.9 Georgia, serif;
  letter-spacing: -.12em;
  white-space: nowrap;
}
.topbar nav { display: flex; flex-wrap: wrap; gap: clamp(12px, 2.6vw, 32px); }
.topbar nav a, .label, .button, .project-link {
  font-size: .69rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.topbar nav a { color: var(--muted); }
.topbar nav a:hover, .project-link:hover, .contact-list a:hover { color: var(--white); text-decoration: underline; }
.topbar nav a[aria-current="page"] { color: var(--white); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 17px;
  min-height: 40px;
  padding: 9px 14px;
  background: linear-gradient(115deg, #fff, #c6dcf8);
  color: #0d203d;
}
.button:hover { background: #fff; }
.button:focus-visible { outline-color: #fff; }
.topbar .button { border-radius: 100px; white-space: nowrap; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: end;
  isolation: isolate;
  position: relative;
  overflow: hidden;
  min-height: clamp(398px, 50vw, 555px);
  padding: clamp(38px, 5.3vw, 76px) 12px 35px;
}
.hero-copy { grid-area: 1 / 1; align-self: center; min-width: 0; }
.label { color: var(--blue); }
.hero h1 {
  position: relative;
  z-index: 1;
  margin: 12px 0 13px;
  font: 700 clamp(3.2rem, 9vw, 8.1rem)/.96 var(--display);
  letter-spacing: -.045em;
  text-transform: uppercase;
  text-shadow: 0 3px 18px #06112470;
}
.hero h1 span { display: block; white-space: nowrap; }
.hero h1 span:first-child { transform: scaleX(.8); transform-origin: left; }
.hero-summary { max-width: min(54%, 480px); }
.hero-line { margin: 0 0 3px; font-size: clamp(.94rem, 1.65vw, 1.19rem); font-weight: 740; }
.role { margin: 0 0 15px; color: var(--muted); font-size: .8rem; font-weight: 650; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.project-link { color: var(--muted); }
.portrait {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 auto;
  width: 58%;
  pointer-events: none;
  background: radial-gradient(ellipse at 52% 43%, #759ec04a, transparent 64%);
  mask-image: linear-gradient(#000 84%, transparent);
}
.portrait::before {
  content: "";
  position: absolute;
  top: 8%;
  right: 3%;
  width: 81%;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.portrait img {
  position: absolute;
  width: 89%;
  height: auto;
  right: 3%;
  top: 2%;
  clip-path: url("#portrait-shape");
  mask-image: linear-gradient(transparent, #000 7%, #000 86%, transparent);
}
.portrait-mark {
  position: absolute;
  z-index: 1;
  top: 52%;
  right: 7%;
  color: var(--blue);
  font-size: 1.6rem;
}
.socials { grid-area: 1 / 2; display: flex; gap: 7px; z-index: 1; }
.socials a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #0a162ada;
  color: var(--white);
  font-size: .72rem;
  font-weight: 750;
}
.socials a:hover { background: var(--white); color: var(--background); }
.socials .icon { width: 17px; height: 17px; }

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 28px;
  padding: 18px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(105deg, #213653, #14263f);
  text-align: center;
}
.metric { display: grid; justify-items: center; gap: 4px; padding: 0 6px; }
.metric + .metric { border-left: 1px solid var(--line); }
.metric .icon { width: 20px; height: 20px; color: var(--blue); }
.metric strong { font: 700 2.25rem/1.05 var(--display); }
.metric span { color: var(--muted); }

.section { margin: 0 0 28px; scroll-margin-top: 12px; }
.section-head { margin-bottom: 12px; }
.section-head h2, .about-note h2 {
  margin: 2px 0 4px;
  font-size: clamp(1.15rem, 2.1vw, 1.55rem);
  line-height: 1.2;
  letter-spacing: -.025em;
}
.section-head p { max-width: 80ch; margin: 0; color: var(--muted); font-size: .83rem; }
.section-head p + p { margin-top: 8px; }
.services-heading { display: flex; align-items: end; justify-content: space-between; gap: 14px; }
.services-heading > a { flex: none; margin-bottom: 4px; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 216px;
  padding: 100px 14px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, #233d61, #0e1d34 75%);
}
.card:nth-child(even) { background: linear-gradient(145deg, #1c3454, #0d192c 75%); }
.card::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(0deg, #091629e6 6%, transparent 82%);
}
.card-art {
  position: absolute;
  z-index: -1;
  top: -25px;
  right: -25px;
  width: 147px;
  height: 147px;
  padding: 24px;
  border: 1px solid #c0d8f13d;
  border-radius: 24px;
  background: linear-gradient(145deg, #b6d4ff25, #5d8fd31f);
  color: #c0ddff9c;
  transform: rotate(-12deg);
}
.card h3, .step h3 { margin: 0 0 6px; font-size: 1rem; line-height: 1.2; }
.card p, .step p { margin: 0; font-size: .79rem; color: var(--muted); }

.about-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; }
.about-preview {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: clamp(14px, 3vw, 26px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.about-preview .section-head { flex: 1 1 38ch; margin-bottom: 0; }
.about-note {
  align-self: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.about-note ul { display: grid; gap: 8px; margin: 11px 0 0; padding: 0; list-style: none; font-size: .83rem; color: var(--muted); }
.about-note li { display: grid; grid-template-columns: auto 1fr; gap: 8px; }
.about-note li span { color: var(--blue); }
.hero-tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 10px 0 0; }
.tag { border: 1px solid var(--line); border-radius: 4px; padding: 3px 7px; color: var(--blue); font-size: .69rem; }

.profile-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(18px, 5vw, 60px);
  padding-block: clamp(24px, 5vw, 58px);
  border-bottom: 1px solid var(--line);
}
.profile-intro h1 {
  margin: 8px 0 14px;
  font: 700 clamp(2.75rem, 7vw, 6.4rem)/1 var(--display);
  letter-spacing: -.045em;
  text-transform: uppercase;
}
.profile-intro p { max-width: 64ch; margin: 0 0 18px; color: var(--muted); }
.profile-photo {
  display: block;
  width: 100%;
  height: auto;
  max-height: 350px;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center 28%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(120deg, #1a2d48, var(--surface));
}
.step { padding: 14px; }
.step + .step { border-left: 1px solid var(--line); }
.step-num { display: block; margin-bottom: 6px; }
.step .icon { width: 22px; height: 22px; margin-top: 12px; color: var(--blue); }

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr .94fr;
  align-items: center;
  gap: 19px;
  padding: clamp(15px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(118deg, transparent 20%, #b1d5ff1c 28%, transparent 38%),
    linear-gradient(120deg, #284363, #142641 60%, #0e1d33);
}
.contact h2 {
  margin: 4px 0 0;
  font: 700 clamp(1.65rem, 3.7vw, 3.4rem)/1.06 var(--display);
  text-transform: uppercase;
}
.contact p { margin: 0 0 10px; color: var(--muted); font-size: .82rem; }
.contact-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 14px;
  border-left: 1px solid var(--line);
  font-size: .77rem;
}
.contact-list dt { color: var(--muted); }
.contact-list dd { margin: 0; }
.contact-list a { color: var(--blue); }
.footer { display: flex; justify-content: space-between; gap: 15px; padding: 0 0 15px; color: var(--muted); font-size: .72rem; }

@media (max-width: 900px) {
  .hero-summary { max-width: min(55%, 440px); }
  .hero h1 { font-size: clamp(3.1rem, 9.4vw, 5.3rem); }
  .portrait { width: 63%; }
  .contact { grid-template-columns: .85fr 1.15fr; }
  .contact-list { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); border-left: 0; border-top: 1px solid var(--line); padding: 10px 0 0; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 30px); }
  .topbar { flex-wrap: wrap; gap: 11px; padding-bottom: 8px; }
  .topbar nav { order: 1; width: 100%; gap: 6px 16px; }
  .hero { padding: 26px 0 17px; min-height: 0; grid-template-columns: minmax(0, 1fr); }
  .hero-copy { display: contents; }
  .hero-copy > .label { grid-row: 1; }
  .hero h1 { grid-row: 2; font-size: clamp(2.6rem, 11vw, 4.6rem); margin: 9px 0 0; }
  .hero h1 span:first-child { transform: none; }
  .portrait { grid-row: 3; position: relative; width: 100%; height: clamp(200px, 67vw, 340px); overflow: hidden; margin-top: -12px; }
  .portrait img { width: min(83%, 360px); right: 8%; }
  .portrait::before { width: min(74%, 320px); right: 4%; }
  .socials { grid-area: 3 / 1; justify-self: end; margin: 0 4px 8px 0; }
  .hero-summary { grid-row: 4; max-width: 100%; margin-top: 10px; }
  .hero-actions { gap: 8px 12px; }
  .metrics { padding: 12px 0; margin-bottom: 20px; }
  .metric .label { font-size: .61rem; }
  .metric strong { font-size: 1.75rem; }
  .section { margin-bottom: 21px; }
  .services-heading { display: block; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .card { min-height: 184px; padding: 67px 10px 10px; }
  .card-art { width: 106px; height: 106px; padding: 17px; top: -18px; right: -15px; }
  .about-grid, .process-grid, .contact, .contact-list { grid-template-columns: minmax(0, 1fr); }
  .about-grid { gap: 8px; }
  .profile-intro { grid-template-columns: minmax(0, 1fr); }
  .profile-photo { max-width: 420px; max-height: 300px; }
  .step + .step { border-left: 0; border-top: 1px solid var(--line); }
  .footer { display: grid; gap: 3px; }
}
@media (max-width: 345px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
  .card { min-height: 145px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
