/* ============================================
   Danial Sabunchi — Portfolio
   Clean hand-written rebuild (no build step)
   ============================================ */

@font-face {
  font-family: "Inter";
  src: url("../static/fonts/Inter/static/Inter-Regular.ttf");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "Inter";
  src: url("../static/fonts/Inter/static/Inter-Medium.ttf");
  font-weight: 600;
  font-style: normal;
}
@font-face {
  font-family: "Inter";
  src: url("../static/fonts/Inter/static/Inter-Bold.ttf");
  font-weight: 700;
  font-style: normal;
}

:root {
  --color-text: #444444;
  --color-muted: #666666;
  --color-faint: #888888;
  --color-bg: #fbfafa;
  --color-white: #ffffff;
  --color-border: #ededed;
  --color-panel: #f6f6f6;
  --color-accent: #fd3d22;
  --color-accent-hover: #eb4e34;

  --content-width: 1008px;
  --work-width: 1176px;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

* {
  box-sizing: border-box;
}

html,
body {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  font-size: 16px;
  letter-spacing: -0.1px;
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

/* Keyboard focus only — pointer users never see this ring. */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Motion here is decorative (slide transforms, hover zooms, smooth anchor
   scrolling). Under reduced-motion every state change still happens and stays
   legible — it just arrives instantly instead of animating. */
@media (prefers-reduced-motion: reduce) {
  html,
  body {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

h1,
h2,
h3,
h4,
h5,
p {
  margin: 0;
}

h1 {
  font-size: 67px;
  line-height: 67px;
  font-weight: 700;
  margin: 0 0 21px;
}
h2 {
  font-size: 36px;
  line-height: 42px;
  font-weight: 700;
  margin: 0 0 10px;
}

/* ---------- layout ---------- */

.container {
  width: var(--content-width);
  max-width: 100%;
  margin: 0 auto;
  min-height: 100vh;
  padding: 0;
}
@media screen and (max-width: 1047px) {
  .container {
    padding: 0 24px 16px;
  }
}

.container--work {
  width: var(--work-width);
}

.section-title {
  max-width: 416px;
  font-size: 36px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 8px;
}
@media screen and (max-width: 1047px) {
  .section-title {
    font-size: 24px;
  }
}

/* ---------- top identity block ---------- */

.identity {
  padding: 40px 0;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
}
@media screen and (max-width: 1047px) {
  .identity {
    font-size: 18px;
    padding: 32px 0;
  }
}
.identity__divider {
  width: 24px;
  height: 2px;
  background-color: var(--color-text);
  display: inline-block;
  margin-left: 8px;
  vertical-align: middle;
}
.identity__highlight {
  color: var(--color-accent);
}

/* ---------- hero / intro ---------- */

.intro {
  padding: 44px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
@media screen and (max-width: 1047px) {
  .intro {
    padding: 8px 0 56px;
    flex-direction: column-reverse;
    border-bottom: 1px solid var(--color-border);
  }
}
.intro__text p {
  max-width: 384px;
  font-weight: 400;
  line-height: 1.5;
  font-size: 20px;
  margin: 0 0 24px;
}
@media screen and (max-width: 1047px) {
  .intro__text p {
    font-size: 16px;
    line-height: 2;
  }
}

.link-arrow {
  color: var(--color-text);
  transition: color 0.2s ease-in-out;
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.2;
  padding: 8px 0;
  display: inline-block;
}
.link-arrow:hover {
  color: var(--color-accent);
}
.link-arrow__bar {
  display: inline-block;
  width: 33px;
  height: 2px;
  background-color: currentColor;
  vertical-align: middle;
  margin-right: 8px;
  position: relative;
  transition: width 0.2s ease-in-out;
}
.link-arrow__bar::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  right: 0;
  top: 0;
  transform: translateY(-30%) rotate(45deg);
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}
.link-arrow:hover .link-arrow__bar {
  width: 41px;
}
.link-arrow:hover .link-arrow__bar::after {
  opacity: 1;
}

.intro__avatar {
  width: 487px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  mask-image: radial-gradient(white, black);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  display: block;
}
@media screen and (max-width: 1047px) {
  .intro__avatar {
    padding-bottom: 40px;
  }
}

/* ---------- projects ---------- */

.works {
  padding: 44px 0 16px;
}
@media screen and (max-width: 1047px) {
  .works {
    padding: 56px 0;
    border-bottom: 1px solid var(--color-border);
  }
}
.works__note {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-muted);
}
@media screen and (max-width: 1047px) {
  .works__note {
    font-size: 16px;
  }
}

.project-grid {
  padding: 40px 0 0;
  overflow: auto;
}
@media screen and (max-width: 1047px) {
  .project-grid {
    padding: 0;
    display: flex;
    flex-direction: column;
  }
}

.project-card {
  display: inline-block;
  cursor: pointer;
  float: left;
  color: currentColor;
  text-decoration: none;
  width: 488px;
  max-width: 100%;
}
.project-card:nth-child(odd) {
  margin-top: 44px;
  margin-right: 32px;
  margin-bottom: 28px;
}
@media screen and (max-width: 1047px) {
  .project-card,
  .project-card:nth-child(odd) {
    max-width: 100%;
    margin-bottom: 40px;
    margin-right: 0;
  }
  .project-card:not(:first-child) {
    margin-top: 0;
  }
}

.project-card__thumb {
  background-color: #eee;
  border-radius: var(--radius-lg);
  width: 488px;
  max-width: 100%;
  aspect-ratio: 488 / 512;
  position: relative;
  overflow: hidden;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100%;
  transition: background-size 0.2s ease-in-out;
}
@media (hover: hover) and (pointer: fine) {
  .project-card:hover .project-card__thumb {
    background-size: 110%;
  }
}
@media (hover: none), (pointer: coarse) {
  .project-card:active .project-card__thumb {
    background-size: 110%;
  }
}

.project-card__logo {
  width: 56px;
  height: 56px;
  position: absolute;
  padding: 12px;
  top: 24px;
  right: 24px;
  border-radius: var(--radius-md);
  background-color: var(--color-white);
  filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.05));
}

.project-card__tags {
  padding: 24px;
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  display: flex;
}
@media screen and (max-width: 1047px) {
  .project-card__tags {
    padding: 16px;
  }
}
.project-card__tag {
  padding: 8px 16px;
  background-color: var(--color-white);
  border-radius: 32px;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 500;
  color: var(--color-muted);
}
.project-card__tag:not(:first-child) {
  margin-left: 8px;
}
@media screen and (max-width: 1047px) {
  .project-card__tag {
    padding: 8px 12px;
    font-size: 12px;
  }
}

.project-card__view {
  width: 98px;
  height: 98px;
  line-height: 98px;
  text-align: center;
  opacity: 0;
  background-color: var(--view-color, rgba(34, 34, 173, 0.6));
  border-radius: 50%;
  color: #ffffff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: opacity 0.2s ease-in-out;
  backdrop-filter: blur(2px);
  font-weight: 700;
}
@media (hover: hover) and (pointer: fine) {
  .project-card:hover .project-card__view {
    opacity: 1;
  }
}
@media screen and (max-width: 1047px) {
  .project-card__view {
    display: none;
  }
}

.project-card__title {
  padding: 0 0 0 24px;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
  margin: 16px 0 0;
}
@media screen and (max-width: 1047px) {
  .project-card__title {
    font-size: 18px;
  }
}
.project-card__subtitle {
  padding: 0 0 0 24px;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.2;
  color: var(--color-muted);
  display: block;
}

/* ---------- articles / thoughts ---------- */

.thoughts {
  padding: 44px 0;
}
@media screen and (max-width: 1047px) {
  .thoughts {
    padding: 56px 0;
    border-bottom: 1px solid var(--color-border);
  }
}

.article-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.article-card {
  color: currentColor;
  text-decoration: none;
  display: inline-block;
  width: calc(50% - 19px);
  margin: 32px 0;
  position: relative;
}
@media screen and (max-width: 1047px) {
  .article-card {
    width: 100%;
    margin: 24px 0;
  }
}
.article-card::before {
  content: "";
  position: absolute;
  left: -16px;
  top: -16px;
  right: -16px;
  bottom: -16px;
  border-radius: 16px;
  background-color: var(--color-panel);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.2s ease-in-out;
}
.article-card:hover::before {
  opacity: 1;
}
.article-card:nth-child(1)::after,
.article-card:nth-child(2)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -32px;
  width: 100%;
  height: 1px;
  background-color: var(--color-border);
}
@media screen and (max-width: 1047px) {
  .article-card:nth-child(1)::after,
  .article-card:nth-child(2)::after {
    bottom: -24px;
  }
  .article-card:nth-child(3)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -24px;
    width: 100%;
    height: 1px;
    background-color: var(--color-border);
  }
}

.article-card__meta {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 21px;
  color: var(--color-faint);
}
.article-card__meta strong {
  font-weight: 700;
  color: var(--color-text);
}
.article-card__meta span:first-child {
  margin-right: 20px;
  position: relative;
  color: var(--color-text);
}
.article-card__meta span:first-child::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--color-faint);
  top: 50%;
  right: -14px;
  transform: translate(-50%, -50%);
}

.article-card__body {
  display: flex;
}
.article-card__title {
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.article-card__excerpt {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.article-card__thumb {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  margin-left: 36px;
  object-fit: cover;
  flex-shrink: 0;
}
@media screen and (max-width: 1047px) {
  .article-card__thumb {
    margin-left: 32px;
  }
}

.medium-link {
  color: currentColor;
  text-decoration: none;
  margin-top: 24px;
  display: inline-block;
}
.medium-link__top {
  display: flex;
  align-items: center;
}
.medium-link__top span {
  font-size: 28px;
  line-height: 1.2;
  font-weight: 600;
  transition: color 0.2s ease-in-out;
  margin-right: 8px;
}
@media screen and (max-width: 1047px) {
  .medium-link__top span {
    font-size: 20px;
  }
  .medium-link__top svg {
    width: 14px;
    vertical-align: middle;
  }
}
.medium-link path {
  transition: stroke 0.2s ease-in-out;
}
.medium-link p {
  margin: 8px 0 0;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-muted);
}
@media screen and (max-width: 1047px) {
  .medium-link p {
    font-size: 16px;
  }
}
.medium-link:hover span {
  color: var(--color-accent);
}
.medium-link:hover path {
  stroke: var(--color-accent);
}

/* ---------- contact / footer ---------- */

.contact {
  padding: 44px 0 0;
  position: relative;
}
.contact p {
  padding: 0;
  margin: 0;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.2;
}
.contact p a {
  display: inline-block;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
  position: relative;
}
.contact p a::after {
  content: "";
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  height: 2px;
  background-color: currentColor;
  transition: transform 0.2s ease-in-out;
}
@media (hover: hover) and (pointer: fine) {
  .contact p a:hover {
    color: var(--color-accent-hover);
  }
  .contact p a:hover::after {
    transform: scaleX(0);
  }
}
@media (hover: none), (pointer: coarse) {
  .contact p a:active {
    color: var(--color-accent-hover);
  }
  .contact p a:active::after {
    transform: scaleX(0);
  }
}
@media screen and (max-width: 1047px) {
  .contact p {
    font-size: 16px;
    line-height: 2;
  }
}

.contact-footer {
  padding: 116px 0;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.3;
}
.contact-footer a {
  display: inline-block;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
  position: relative;
}
.contact-footer a::after {
  content: "";
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  height: 2px;
  background-color: currentColor;
  transition: transform 0.2s ease-in-out;
}
@media (hover: hover) and (pointer: fine) {
  .contact-footer a:hover {
    color: var(--color-accent-hover);
  }
  .contact-footer a:hover::after {
    transform: scaleX(0);
  }
}
@media (hover: none), (pointer: coarse) {
  .contact-footer a:active {
    color: var(--color-accent-hover);
  }
  .contact-footer a:active::after {
    transform: scaleX(0);
  }
}
.contact-footer span:first-child {
  margin-right: 20px;
  position: relative;
}
.contact-footer span:first-child::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--color-text);
  top: 50%;
  right: -14px;
  transform: translate(-50%, -50%);
}
.contact-footer span:last-child {
  font-size: 24px;
}
@media screen and (max-width: 1047px) {
  .contact-footer {
    padding: 80px 0;
  }
}

.contact-footer__actions {
  position: absolute;
  top: 44px;
  right: 0;
}
@media screen and (max-width: 1047px) {
  .contact-footer__actions {
    position: static;
    margin-top: 24px;
    display: flex;
    flex-direction: row;
    gap: 12px;
  }
}

.btn-ghost {
  border: none;
  background-color: #f3f3f3;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
  cursor: pointer;
  color: var(--color-muted);
  padding: 14px 24px;
  display: block;
  text-decoration: none;
  font-size: 16px;
}
.btn-ghost svg {
  width: 16px;
  margin-right: 12px;
  float: left;
}
.btn-ghost:first-child {
  margin-bottom: 28px;
}
@media screen and (max-width: 1047px) {
  .btn-ghost:first-child {
    margin-bottom: 0;
  }
}
.btn-ghost:hover {
  background-color: #ededed;
  color: var(--color-text);
}

/* ============================================
   About Me
   ============================================ */

.about-hero {
  padding: 72px 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "photo heading"
    "photo main";
  column-gap: 40px;
}
@media screen and (max-width: 1047px) {
  .about-hero {
    padding: 32px 0 56px;
    grid-template-columns: 1fr;
    grid-template-areas:
      "name"
      "heading"
      "photo"
      "main";
    border-bottom: 1px solid var(--color-border);
  }
}
.about-hero__name {
  display: none;
}
@media screen and (max-width: 1047px) {
  .about-hero__name {
    grid-area: name;
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-muted);
    margin: 0 0 8px;
  }
}
.about-hero__photo {
  grid-area: photo;
}
.about-hero__photo img {
  width: 384px;
  height: 842px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-lg);
}
@media screen and (max-width: 1047px) {
  .about-hero__photo img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-position: 50% 20%;
  }
}
.about-hero__caption {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  margin: 16px 0 0;
  text-align: center;
}

.about-hero__main {
  grid-area: main;
  width: 488px;
  max-width: 100%;
}
@media screen and (max-width: 1047px) {
  .about-hero__main {
    width: 100%;
  }
}
.about-hero__heading {
  grid-area: heading;
  font-size: 36px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 44px;
}
@media screen and (max-width: 1047px) {
  .about-hero__heading {
    font-size: 24px;
    margin: 0 0 32px;
  }
}
.about-hero__main > p {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  margin: 0 0 40px;
}
@media screen and (max-width: 1047px) {
  .about-hero__main > p {
    margin: 32px 0 40px;
  }
}

.btn-download {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 40px;
  color: #ffffff;
  background-color: var(--color-text);
  border-radius: 32px;
  padding: 12px 56px 12px 24px;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
  border: none;
  position: relative;
  text-decoration: none;
  display: inline-block;
}
@media screen and (max-width: 1047px) {
  .btn-download {
    margin: 0 0 56px;
  }
}
.btn-download:hover {
  background-color: var(--color-accent);
}
.btn-download:hover path {
  stroke: var(--color-accent);
}
.btn-download__icon {
  width: 24px;
  height: 24px;
  background-color: #ffffff;
  border-radius: 50%;
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.skills {
  border-top: 1px solid var(--color-border);
  padding: 40px 0 0;
}
@media screen and (max-width: 1047px) {
  .skills {
    padding: 56px 0 0;
  }
}
.skills__label {
  color: var(--color-faint);
  margin-bottom: 4px;
}
.skills__text {
  line-height: 1.75;
  margin: 0 0 36px;
}
.skills__text:last-child {
  margin: 0;
}

.philosophy {
  padding: 104px 0 68px;
}
@media screen and (max-width: 1047px) {
  .philosophy {
    padding: 56px 0 35px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--color-border);
  }
}

.philosophy-grid {
  padding: 56px 0 64px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 24px;
}
@media screen and (max-width: 1047px) {
  .philosophy-grid {
    flex-direction: column;
    padding: 40px 0 56px;
  }
}
.philosophy-card {
  text-align: center;
  width: 280px;
}
@media screen and (max-width: 1047px) {
  .philosophy-card:not(:last-child) {
    margin-bottom: 40px;
  }
}
.philosophy-card img {
  margin-bottom: 48px;
}
@media screen and (max-width: 1047px) {
  .philosophy-card img {
    margin-bottom: 32px;
  }
}
.philosophy-card__title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  margin-bottom: 16px;
}
.philosophy-card__text {
  font-size: 14px;
  line-height: 1.75;
  text-align: center;
  margin: 0;
}

.side-experience {
  display: flex;
  justify-content: space-between;
  padding-top: 104px;
  gap: 40px;
}
@media screen and (max-width: 1047px) {
  .side-experience {
    flex-direction: column;
    padding-top: 56px;
  }
}
.side-experience h3 {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
}
@media screen and (max-width: 1047px) {
  .side-experience h3 {
    font-size: 24px;
  }
}

.side-experience__about {
  width: 384px;
  max-width: 100%;
  line-height: 1.75;
  font-size: 16px;
}
.side-experience__about p {
  margin-top: 16px;
}
@media screen and (max-width: 1047px) {
  .side-experience__about {
    width: 100%;
  }
}

.side-experience__timeline {
  width: 520px;
  max-width: 100%;
}
@media screen and (max-width: 1047px) {
  .side-experience__timeline {
    width: 100%;
    padding-top: 40px;
  }
}
.timeline-group {
  margin-top: 16px;
}
.timeline-group__label {
  color: var(--color-faint);
  margin-top: 16px;
}
.timeline-group__label strong {
  font-weight: 600;
  color: var(--color-accent);
}

.timeline-row {
  width: 100%;
  padding: 21px 8px;
  display: flex;
  align-items: center;
}
.timeline-row:first-of-type {
  padding-top: 0;
}
.timeline-row:not(:last-child) {
  border-bottom: 1px solid var(--color-border);
}
.timeline-row__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.timeline-row__brand-text {
  display: flex;
  flex-direction: column;
}
.timeline-row__company {
  font-weight: 600;
  color: var(--color-text);
}
.timeline-row__logo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.05));
  padding: 8px;
  background-color: #ffffff;
  flex-shrink: 0;
}
.timeline-row__date {
  color: var(--color-faint);
}
.timeline-row__position {
  flex-shrink: 0;
  text-align: right;
  max-width: 200px;
}
@media screen and (max-width: 1047px) {
  .timeline-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .timeline-row__position {
    text-align: left;
  }
}

/* ============================================
   Work / case study pages
   ============================================ */

.work-layout {
  padding: 90px 0;
  display: flex;
  justify-content: space-between;
  gap: 72px;
}
@media screen and (max-width: 1175px) {
  .work-layout {
    padding: 32px 0;
    gap: 0;
  }
}

.work-sidebar {
  width: 200px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
@media screen and (max-width: 1175px) {
  .work-sidebar {
    display: none;
  }
}
.work-sidebar__back {
  display: inline-block;
  position: sticky;
  top: 90px;
}

.work-nav {
  width: 100%;
  padding: 24px;
  background-color: #ffffff;
  border-radius: var(--radius-md);
  position: sticky;
  top: 185px;
  margin-top: 825px;
  filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.05));
}
.work-nav a {
  padding: 16px;
  display: flex;
  color: var(--color-muted);
  font-weight: 400;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out;
  align-items: center;
  cursor: pointer;
}
.work-nav a:hover,
.work-nav a.is-active {
  font-weight: 600;
  color: var(--color-text);
  background-color: var(--color-panel);
}
.work-nav a path {
  stroke: currentColor;
}
.work-nav a svg {
  margin-right: 12px;
  width: 16px;
  flex-shrink: 0;
}

.work-main {
  width: 904px;
  max-width: 100%;
}

.work-section {
  padding: 0 0 104px;
}
.work-section:last-child {
  padding: 0;
}
@media screen and (max-width: 1175px) {
  .work-section {
    padding: 56px 0;
    border-bottom: 1px solid var(--color-border);
  }
  .work-section:first-child {
    padding-top: 0;
  }
  .work-section:last-child {
    padding-bottom: 0;
    border: none;
  }
}

.work-banner {
  width: 100%;
  border-radius: var(--radius-lg);
  display: block;
}

.work-title {
  font-size: 55px;
  font-weight: 700;
  margin: 24px 0;
  line-height: 68px;
}
@media screen and (max-width: 1175px) {
  .work-title {
    font-size: 24px;
    line-height: 32px;
  }
}
.work-subtitle {
  font-size: 23px;
  font-weight: 400;
  margin: 24px 0;
  line-height: 32px;
}
@media screen and (max-width: 1175px) {
  .work-subtitle {
    font-size: 18px;
    line-height: 28px;
  }
}

.work-meta {
  font-size: 16px;
  margin: 0 0 16px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.work-meta__item {
  display: flex;
  align-items: center;
}
.work-meta__item img {
  width: 24px;
  margin: 0 8px 0 0;
}
.work-meta__item span {
  margin-right: 8px;
  color: var(--color-muted);
}
.work-meta__item b {
  font-weight: 600;
  color: var(--color-muted);
  display: inline-block;
}
.work-meta__item strong {
  font-weight: 600;
  color: var(--color-text);
  font-size: 23px;
}
@media screen and (max-width: 1175px) {
  .work-meta__item {
    display: inline-flex;
    margin: 16px 0;
    justify-content: flex-start;
    min-width: 38%;
  }
  .work-meta__item:nth-child(even) {
    justify-content: flex-end;
  }
  .work-meta__item:nth-child(2) {
    border-left: 1px solid var(--color-border);
    min-width: 53%;
  }
  .work-meta__item:nth-child(3) {
    border-right: 1px solid var(--color-border);
    padding-right: 16px;
  }
}

.work-team {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.work-team span {
  margin-right: 8px;
  color: var(--color-muted);
}
.work-team strong {
  font-weight: 600;
  color: var(--color-text);
  position: relative;
  display: inline-block;
}
.work-team strong::before {
  content: "";
  position: absolute;
  top: calc(100% + 2px);
  left: 50%;
  width: 4px;
  height: 4px;
  background-color: var(--color-text);
  border-radius: 50%;
  transform: translateX(-50%);
}
@media screen and (max-width: 1175px) {
  .work-team strong::before {
    display: none;
  }
}
.work-team b {
  font-weight: 600;
  color: var(--color-muted);
}
.work-team b:not(:last-child)::after,
.work-team strong:not(:last-child)::after {
  content: ", ";
  white-space: pre;
}

.work-eyebrow {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1.2;
}
.work-heading {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 16px;
  line-height: 1.3;
}
@media screen and (max-width: 1175px) {
  .work-heading {
    font-size: 24px;
  }
}
.work-heading--more {
  padding-top: 0;
}
@media screen and (max-width: 1175px) {
  .work-heading--more {
    padding-top: 56px;
  }
}

.work-body {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}
.work-body p {
  margin: 32px 0 0;
}
.work-body ol,
.work-body ul {
  padding-left: 20px;
  margin: 1.5em 0 0;
}
.work-body ol li:not(:last-child),
.work-body ul li:not(:last-child) {
  margin-bottom: 1.5em;
}
@media screen and (max-width: 1175px) {
  .work-body {
    font-size: 14px;
  }
  .work-body p {
    margin: 0;
  }
}

.work-toolkit {
  padding-top: 40px;
}
@media screen and (max-width: 1175px) {
  .work-toolkit {
    display: none;
  }
}
.work-toolkit__title {
  font-size: 24px;
  margin-bottom: 16px;
  font-weight: 700;
}
.work-toolkit__row {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding-top: 16px;
  flex-wrap: wrap;
  gap: 16px;
}
.work-toolkit__row > div {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.work-toolkit img {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  margin-bottom: 24px;
}

.work-subblock {
  padding-top: 40px;
}
.work-subblock__title {
  font-size: 24px;
  margin-bottom: 16px;
  font-weight: 700;
}
@media screen and (max-width: 1175px) {
  .work-subblock__title {
    font-size: 20px;
    line-height: 24px;
  }
}
.work-subblock p {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  margin: 0;
}
.work-subblock ol,
.work-subblock ul {
  padding-left: 20px;
  margin: 1.5em 0;
}
.work-subblock ol li,
.work-subblock ul li {
  margin-bottom: 1.5em;
}
.work-subblock img.method-diagram {
  display: block;
  margin: 0 auto 24px;
}

/* stats */

.stat-row {
  display: flex;
  justify-content: space-around;
  padding: 56px 0;
  position: relative;
}
.stat-row::before {
  content: "";
  background-color: #ffffff;
  width: 200vw;
  margin-left: -50vw;
  position: absolute;
  left: 0;
  height: 100%;
  z-index: -1;
  top: 0;
}
@media screen and (max-width: 1175px) {
  .stat-row {
    flex-direction: column;
    padding: 0 64px;
  }
  .stat-row::before {
    width: calc(100% + 48px);
    margin-left: -24px;
  }
}
.stat {
  padding: 0 35px;
  display: flex;
  justify-content: flex-start;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}
.stat:not(:last-child) {
  border-right: 1px solid var(--color-border);
}
.stat:last-child {
  padding-right: 0;
}
.stat:first-child {
  padding-left: 0;
}
@media screen and (max-width: 1175px) {
  .stat {
    padding: 40px 0;
  }
  .stat:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }
}
.stat__number {
  font-size: 34px;
  line-height: 24px;
  font-weight: 700;
}
.stat__number span {
  color: var(--color-faint);
  font-weight: 400;
}
.stat__label {
  font-size: 18px;
  line-height: 24px;
  font-weight: 700;
  margin: 16px 0;
}
@media screen and (max-width: 1175px) {
  .stat__label {
    margin-bottom: 0;
  }
}
.stat__desc {
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  margin: 0;
  color: var(--color-muted);
}
@media screen and (max-width: 1175px) {
  .stat__desc {
    display: none;
  }
}
.stat-note {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  margin: 32px 0 0;
}
@media screen and (max-width: 1175px) {
  .stat-note {
    font-size: 14px;
    margin: 24px 0 0;
  }
}

.process-diagram {
  width: 100%;
  padding: 16px 0 0;
  /* width/height attrs reserve space against layout shift; content-box keeps
     that intrinsic ratio off the padding so the diagram keeps its true height. */
  box-sizing: content-box;
}
@media screen and (max-width: 1175px) {
  .process-diagram {
    display: none;
  }
}

/* personas */

.persona {
  display: flex;
  padding: 24px;
  margin: 0 0 16px;
  background-color: #ffffff;
  border-radius: var(--radius-md);
}
.persona:last-child {
  margin-bottom: 0;
}
.persona img {
  width: 190px;
  height: 143px;
  padding: 0 70px 0 24px;
  box-sizing: border-box;
  flex-shrink: 0;
}
.persona__title {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 16px;
}
.persona__text {
  font-size: 16px;
  line-height: 24px;
  margin: 0;
  color: var(--color-text);
}
@media screen and (max-width: 1175px) {
  .persona {
    padding: 16px;
    flex-direction: column;
  }
  .persona img {
    width: 96px;
    height: 72px;
    padding: 0;
    margin-bottom: 16px;
  }
}

/* carousel */

.carousel {
  overflow: hidden;
  border-radius: var(--radius-lg);
  position: relative;
  margin: 32px 0 0;
  background: #eee;
}
@media screen and (max-width: 1175px) {
  .carousel {
    margin: 32px 0;
  }
}
.carousel__track {
  white-space: nowrap;
  transition: transform 0.2s ease-in-out;
  font-size: 0;
}
.carousel__track img {
  display: inline-block;
  width: 100%;
  vertical-align: top;
}
.carousel__btn {
  background-color: #ffffff;
  border-radius: var(--radius-md);
  width: 48px;
  height: 48px;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.15);
  position: absolute;
  top: calc(50% - 24px);
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease-in-out;
}
.carousel__btn:hover:not(:disabled) {
  color: var(--color-accent);
}
.carousel__btn:disabled {
  opacity: 0.3;
  cursor: default;
}
.carousel__btn::after {
  content: "";
  width: 8px;
  height: 8px;
  border-top: 2px solid;
  border-right: 2px solid;
}
.carousel__btn--prev {
  left: 16px;
}
.carousel__btn--prev::after {
  transform: rotate(-135deg) translate(-1px, 1px);
}
.carousel__btn--next {
  right: 16px;
}
.carousel__btn--next::after {
  transform: rotate(45deg) translate(-1px, 1px);
}
@media screen and (max-width: 1175px) {
  .carousel__btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    top: calc(50% - 16px);
  }
  .carousel__btn::after {
    width: 5px;
    height: 5px;
  }
}
.carousel__dots {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 22%;
  border-radius: 0 0 24px 24px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.carousel__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-text);
  transition: background 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  margin-right: 8px;
  margin-bottom: 16px;
}
.carousel__dot:last-child {
  margin-right: 0;
}
.carousel__dot.is-active {
  background: var(--color-accent);
  box-shadow: 0 4px 4px rgba(253, 61, 34, 0.4);
  transform: scale(1.3);
}

/* more projects */

.more-projects {
  padding-top: 16px;
}
.more-project-card {
  margin-bottom: 24px;
  background-color: var(--color-panel);
  border-radius: var(--radius-md);
  width: 100%;
  display: flex;
  padding: 24px;
  align-items: center;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
  gap: 24px;
}
@media screen and (max-width: 1175px) {
  .more-project-card {
    flex-direction: column;
  }
}
.more-project-card img.more-project-card__thumb {
  width: 352px;
  max-width: 100%;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}
@media screen and (max-width: 1175px) {
  .more-project-card img.more-project-card__thumb {
    width: 100%;
  }
}
.more-project-card__title {
  font-size: 18px;
  line-height: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}
@media screen and (max-width: 1175px) {
  .more-project-card__title {
    font-size: 16px;
    line-height: 22px;
    margin: 16px 0;
  }
}
.more-project-card__desc {
  font-size: 14px;
  line-height: 22px;
  margin-bottom: 8px;
}
@media screen and (max-width: 1175px) {
  .more-project-card__desc {
    display: none;
  }
}
.more-project-card__brand {
  display: flex;
  align-items: center;
}
.more-project-card__brand img {
  margin-right: 8px;
  width: 24px;
}
.more-project-card__brand span {
  font-weight: 600;
}

/* ---------- 404 ---------- */

.not-found {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}
.not-found h1 {
  font-size: 96px;
  margin: 0;
  color: var(--color-accent);
}
.not-found p {
  font-size: 18px;
  color: var(--color-muted);
  margin: 16px 0 32px;
}
