@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("assets/fonts/manrope-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("assets/fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --background: #fbf7f0;
  --ink: #171d2b;
  --muted: #667081;
  --brand-accent: #d77037;
  --brand-accent-deep: #ce612d;
  --brand-name: #d77037;
  --font: "Manrope", "Segoe UI", Arial, sans-serif;
  --radius: 34px;
  --shadow: 0 25px 60px rgb(33 29 25 / 11%);
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  background:
    radial-gradient(circle at 50% -12%, #f5dcc2 0, transparent 39%),
    radial-gradient(circle at 95% 8%, #e3eff9 0, transparent 27%),
    var(--background);
}

body::after {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.18;
  background-image: radial-gradient(rgb(23 29 43 / 20%) 0.65px, transparent 0.65px);
  background-size: 5px 5px;
  mask-image: linear-gradient(to bottom, #000, transparent 60%);
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  width: min(1100px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(27px, 5vw, 48px) 0 30px;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: clamp(46px, 7vw, 72px);
}

.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 27px;
  padding: 6px 10px 6px 6px;
  transition:
    transform 240ms ease,
    filter 240ms ease;
}

.brand::after {
  position: absolute;
  right: 10px;
  bottom: 4px;
  left: 119px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, color-mix(in srgb, var(--brand-accent) 62%, #fff), transparent);
  opacity: 0.52;
}

.brand:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 15px 18px rgb(106 70 31 / 12%));
}

.brand:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand-accent) 74%, #fff);
  outline-offset: 4px;
}

.brand__mark {
  display: grid;
  width: 104px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 32px;
  color: #fff6e8;
  background:
    radial-gradient(circle at 33% 26%, rgb(255 255 255 / 25%), transparent 36%),
    linear-gradient(145deg, color-mix(in srgb, var(--brand-accent) 86%, #fff), var(--brand-accent-deep));
  box-shadow: 0 14px 28px color-mix(in srgb, var(--brand-accent-deep) 28%, transparent);
}

.brand__mark svg {
  width: 82px;
  fill: none;
  stroke: currentcolor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand__loaf {
  fill: rgb(255 230 191 / 16%);
}

.brand__copy {
  display: flex;
  flex-direction: column;
  min-width: 256px;
  line-height: 1;
}

.brand__wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.07em;
  text-transform: none;
}

.brand__name {
  background: linear-gradient(145deg, #f09a42, #ce612d);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand__suffix {
  color: var(--brand-accent);
  text-shadow: 0 10px 22px color-mix(in srgb, var(--brand-accent) 18%, transparent);
}

.brand__copy small {
  margin-top: 16px;
  color: color-mix(in srgb, var(--brand-accent) 34%, #5d6980);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero__content {
  width: min(820px, 100%);
  margin: clamp(42px, 5vw, 57px) auto 0;
  text-align: center;
}

h1 {
  margin: 0;
  font-size: clamp(44px, 7.6vw, 76px);
  font-weight: 800;
  line-height: 0.99;
  letter-spacing: -0.065em;
}

h1 span {
  color: #444f65;
}

.intro {
  max-width: 620px;
  margin: clamp(20px, 3vw, 28px) auto 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 19px);
  font-weight: 500;
  line-height: 1.65;
}

.projects {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.card {
  --mx: 50%;
  --my: 50%;
  --theme: #fff;
  --tag: rgb(255 255 255 / 66%);
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 214px minmax(0, 1fr);
  gap: 29px;
  width: min(680px, 100%);
  min-width: 0;
  min-height: 365px;
  overflow: hidden;
  padding: 30px 32px 30px 28px;
  color: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition:
    transform 260ms ease,
    box-shadow 260ms ease;
}

.card::before,
.card::after {
  position: absolute;
  z-index: -1;
  content: "";
}

.card::before {
  inset: 0;
  background: radial-gradient(330px circle at var(--mx) var(--my), rgb(255 255 255 / 18%), transparent 56%);
  opacity: 0;
  transition: opacity 260ms ease;
}

.card::after {
  inset: 1px;
  border: 1px solid rgb(255 255 255 / 15%);
  border-radius: calc(var(--radius) - 1px);
}

.card:hover {
  transform: translateY(-5px) scale(1.006);
  box-shadow: 0 32px 73px rgb(29 34 47 / 18%);
}

.card:hover::before {
  opacity: 1;
}

.card:focus-visible {
  outline: 4px solid var(--theme);
  outline-offset: 4px;
}

.card__visual {
  display: grid;
  align-self: stretch;
  width: 214px;
  min-height: 100%;
  place-items: start center;
  padding-top: 16px;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 24px;
  background: rgb(255 255 255 / 5%);
}

.card__art {
  display: block;
  width: 202px;
  fill: none;
  stroke: rgb(255 255 255 / 39%);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 300ms ease;
}

.card:hover .card__art {
  transform: scale(1.035);
}

.card__content {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
}

.card__tag {
  color: var(--tag);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.card h2 {
  margin: 29px 0 13px;
  font-size: clamp(26px, 2.7vw, 30px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.055em;
}

.card__description {
  color: rgb(255 255 255 / 81%);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.57;
}

.card__action {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.card__action svg {
  width: 19px;
  fill: none;
  stroke: currentcolor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 180ms ease;
}

.card:hover .card__action svg {
  transform: translateX(4px);
}

.card--web {
  --theme: #4acbff;
  background:
    radial-gradient(circle at 10% 6%, rgb(47 197 255 / 22%), transparent 33%),
    linear-gradient(130deg, #101930, #143f79);
}

.art-web__accent {
  stroke: #42d9ff;
}

.card--soul {
  --theme: #eadcff;
  background:
    radial-gradient(circle at 10% 6%, rgb(243 229 255 / 46%), transparent 36%),
    linear-gradient(135deg, #735996, #b687ce);
}

.art-soul__accent {
  fill: rgb(250 229 255 / 76%);
  stroke: #f5d5ff;
}

.card--tutor {
  --theme: #8be3cd;
  background:
    radial-gradient(circle at 10% 5%, rgb(139 227 205 / 25%), transparent 36%),
    linear-gradient(140deg, #073d47, #087566);
}

.art-tutor text {
  fill: rgb(255 255 255 / 62%);
  stroke: none;
  font: 700 20px var(--font);
}

.art-tutor__axis {
  stroke: rgb(255 255 255 / 42%);
  stroke-width: 2;
}

.art-tutor__accent {
  stroke: #86ebc9;
  stroke-width: 3.5;
}

.card--tech {
  --theme: #ffbf64;
  background:
    radial-gradient(circle at 10% 5%, rgb(255 193 97 / 29%), transparent 35%),
    linear-gradient(140deg, #391b58, #84334e);
}

.art-tech__accent {
  fill: rgb(255 191 100 / 28%);
  stroke: #ffc064;
}

.card--it {
  --theme: #62baff;
  background:
    radial-gradient(circle at 10% 5%, rgb(98 186 255 / 30%), transparent 35%),
    linear-gradient(140deg, #092d57, #126279);
}

.art-it__accent {
  fill: rgb(98 186 255 / 17%);
  stroke: #62d6ff;
}

.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  width: min(680px, 100%);
  gap: 11px;
  margin: 22px auto 0;
  padding: 18px 6px 0;
  color: #929284;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer a {
  color: inherit;
  transition: color 180ms ease;
}

.footer a:hover {
  color: #d77037;
}

.footer span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #277fbd;
}

.js .reveal {
  opacity: 0;
  transform: translateY(15px);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 460ms ease,
    transform 460ms ease,
    box-shadow 260ms ease;
}

.js .reveal.is-visible:hover {
  transform: translateY(-5px) scale(1.006);
}

@media (max-width: 720px) {
  .page {
    width: calc(100% - 32px);
  }

  .card {
    grid-template-columns: 164px minmax(0, 1fr);
    gap: 22px;
    min-height: 326px;
    padding: 24px;
  }

  .card__visual {
    width: 164px;
    min-height: 100%;
    padding-top: 10px;
    border-radius: 20px;
  }

  .card__art {
    width: 158px;
  }

  .card h2 {
    margin-top: 22px;
    font-size: 25px;
  }
}

@media (max-width: 540px) {
  :root {
    --radius: 27px;
  }

  .page {
    width: calc(100% - 26px);
    padding-top: 17px;
  }

  .brand {
    gap: 15px;
    padding: 3px;
  }

  .brand__mark {
    width: 64px;
    border-radius: 20px;
  }

  .brand__mark svg {
    width: 51px;
  }

  .brand__copy {
    min-width: 181px;
  }

  .brand__wordmark {
    font-size: 32px;
  }

  .brand__copy small {
    margin-top: 10px;
    font-size: 11px;
  }

  .hero__content {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-top: 40px;
    text-align: left;
  }

  h1 {
    font-size: clamp(35px, 10.4vw, 41px);
    letter-spacing: -0.06em;
  }

  .intro {
    width: 100%;
    max-width: 100%;
    line-height: 1.55;
  }

  .projects {
    align-self: stretch;
    width: 100%;
    min-width: 0;
    gap: 13px;
  }

  .card {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    gap: 21px;
    min-height: 0;
    padding: 22px;
  }

  .card__visual {
    align-self: flex-start;
    width: 148px;
    height: 119px;
    min-height: 0;
    padding-top: 0;
  }

  .card__art {
    width: 142px;
  }

  .card h2 {
    margin-top: 17px;
    font-size: 27px;
  }

  .card__action {
    margin-top: 22px;
  }

  .card__description {
    overflow-wrap: break-word;
  }

  .footer {
    width: 100%;
    gap: 9px;
    padding-top: 14px;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto;
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

.legal-page {
  width: min(850px, calc(100% - 48px));
}

.legal-hero {
  display: flex;
  justify-content: center;
  padding-bottom: clamp(34px, 6vw, 48px);
}

.legal-card {
  padding: clamp(30px, 6vw, 58px);
  border: 1px solid rgb(130 103 77 / 11%);
  border-radius: 38px;
  background: rgb(255 253 249 / 86%);
  box-shadow: 0 26px 62px rgb(33 29 25 / 9%);
}

.legal-tag {
  margin: 0 0 13px;
  color: #cf6832;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.legal-card h1 {
  margin-bottom: 20px;
  font-size: clamp(37px, 6vw, 55px);
}

.legal-lead {
  max-width: 640px;
  margin: 0 0 39px;
  color: var(--muted);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.65;
}

.legal-card section {
  padding: 22px 0;
  border-top: 1px solid #eee5da;
}

.legal-card h2 {
  margin: 0 0 11px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.legal-card section p {
  margin: 0;
  color: #556070;
  font-size: 15px;
  line-height: 1.67;
}

.legal-card section p + p {
  margin-top: 12px;
}


.legal-footer {
  margin-top: 22px;
}

@media (max-width: 540px) {
  .legal-page {
    width: calc(100% - 26px);
  }

  .legal-card {
    padding: 27px 23px;
    border-radius: 28px;
  }

  .legal-lead {
    margin-bottom: 27px;
    font-size: 15px;
  }
}


