@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/Manrope-Regular.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/Manrope-SemiBold.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 600;
}

:root {
  color-scheme: light dark;
  --page: #f3f5f5;
  --surface: #e7ebea;
  --text: #1e2121;
  --muted: #55615f;
  --accent: #229993;
  --accent-hover: #38aaa4;
  --accent-link: #146b67;
  --accent-ink: #0e2221;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #1e2121;
    --surface: #252929;
    --text: #f3f5f5;
    --muted: #b1bcba;
    --accent-link: #66c8c3;
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: "Manrope", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

* {
  scrollbar-color: var(--accent) var(--page);
  scrollbar-width: thin;
}

*::-webkit-scrollbar {
  width: 8px;
}

*::-webkit-scrollbar-track {
  background: var(--page);
}

*::-webkit-scrollbar-thumb {
  background: var(--accent);
}

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

a {
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--accent-link);
  outline-offset: 5px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 20;
  padding: 10px 14px;
  background: var(--text);
  color: var(--page);
  transform: translateY(-160%);
  transition: transform 160ms var(--ease-out);
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(100% - 48px, 1200px);
  margin-inline: auto;
}

.hero {
  padding-block: clamp(40px, 5vw, 68px) clamp(84px, 10vw, 132px);
}

.hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(340px, 0.94fr);
  align-items: center;
  gap: clamp(48px, 7vw, 96px);
}

.hero__copy {
  min-width: 0;
  max-width: 660px;
}

.hero__brand {
  display: block;
  width: clamp(170px, 17vw, 226px);
  margin-bottom: clamp(40px, 5vw, 64px);
}

.hero__brand img {
  width: 100%;
  height: auto;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  text-wrap: balance;
}

h1 {
  max-width: 100%;
  margin-bottom: 26px;
  font-size: clamp(3rem, 5vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

h1 span {
  display: block;
}

.hero__lead {
  max-width: 36rem;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}

.hero__contact {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: 25px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: background 160ms ease;
}

.hero__contact:hover {
  background: var(--accent-hover);
}

.hero__email {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--text);
  font-weight: 600;
  text-decoration-line: underline;
  text-decoration-color: var(--accent-link);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.hero__email:hover {
  text-decoration-thickness: 2px;
}

.hero__portrait {
  margin: 0;
}

.hero__portrait-frame {
  height: min(68svh, 700px);
  min-height: 520px;
  overflow: hidden;
  background: #dce4e2;
}

.hero__portrait-frame picture,
.hero__portrait img {
  width: 100%;
  height: 100%;
}

.hero__portrait img {
  object-fit: cover;
  object-position: center 28%;
}

.hero__identity {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 16px;
  font-size: 0.94rem;
  line-height: 1.45;
}

.hero__identity strong {
  font-weight: 600;
}

.hero__identity span {
  color: var(--muted);
}

.section {
  padding-block: clamp(84px, 10vw, 128px);
}

.capabilities {
  background: var(--surface);
}

.capabilities__layout {
  display: block;
}

.section-copy {
  max-width: 760px;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(2.25rem, 3.2vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.section-copy > p,
.contact__copy > p {
  max-width: 68ch;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.2vw, 1.15rem);
}

.capability-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(40px, 7vw, 88px);
  margin-top: clamp(42px, 5vw, 64px);
}

.capability h3 {
  margin-bottom: 16px;
  font-size: clamp(1.25rem, 1.7vw, 1.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.capability p {
  max-width: 32ch;
  margin-bottom: 0;
  color: var(--muted);
}

.contact {
  background: var(--accent);
  color: var(--accent-ink);
}

.contact__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  align-items: end;
  gap: clamp(48px, 7vw, 96px);
}

.contact__copy {
  max-width: 650px;
}

.contact__copy h2 {
  max-width: 10ch;
}

.contact__copy > p {
  color: var(--accent-ink);
}

.contact__details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin: 0;
  font-style: normal;
}

.contact__details strong {
  margin-bottom: 6px;
  font-size: 1.16rem;
  font-weight: 600;
}

.contact__details a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: clamp(1.08rem, 1.45vw, 1.35rem);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.contact__details a:hover {
  text-decoration-thickness: 2px;
}

.contact :focus-visible {
  outline-color: var(--accent-ink);
}

.site-footer {
  padding-block: 28px;
  color: var(--muted);
  font-size: 0.82rem;
}

@media (prefers-reduced-motion: no-preference) {
  .hero__portrait-frame {
    animation: portrait-reveal 800ms var(--ease-out) both;
  }
}

@keyframes portrait-reveal {
  from {
    clip-path: inset(0 0 10% 0);
    opacity: 0.76;
  }

  to {
    clip-path: inset(0);
    opacity: 1;
  }
}

@media (max-width: 899px) {
  .hero {
    padding-block: 30px 84px;
  }

  .hero__layout,
  .contact__layout {
    grid-template-columns: 1fr;
  }

  .hero__layout {
    gap: 44px;
  }

  .hero__copy {
    max-width: 680px;
  }

  .hero__portrait {
    width: min(100%, 680px);
  }

  .hero__portrait-frame {
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 5;
  }

  .contact__layout {
    align-items: start;
    gap: 44px;
  }
}

@media (max-width: 699px) {
  .capability-list {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 599px) {
  .shell {
    width: min(100% - 28px, 1200px);
  }

  .hero {
    padding-block: 32px 64px;
  }

  .hero__layout {
    gap: 36px;
  }

  .hero__brand {
    width: 150px;
    margin-bottom: 34px;
  }

  h1 {
    margin-bottom: 20px;
    font-size: clamp(1.8rem, 9vw, 2.35rem);
  }

  .hero__lead {
    margin-bottom: 24px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .hero__contact {
    width: 100%;
  }

  .hero__email {
    justify-content: center;
  }

  .section {
    padding-block: 64px;
  }

  h2 {
    margin-bottom: 18px;
    font-size: clamp(1.65rem, 6.8vw, 2.1rem);
  }

  .capability-list {
    margin-top: 36px;
  }

  .contact__layout {
    gap: 36px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
