:root {
  --blue: #123df4;
  --ink: #1e1e21;
  --muted: #525257;
  --line: #e7e7e7;
  --soft: #f7f7f7;
  --white: #ffffff;
  --shadow: 0 18px 40px rgba(20, 20, 20, 0.08);
  --font-heading: "Montserrat", "Aptos Display", "Segoe UI", Arial, sans-serif;
  --font-body: "Montserrat", "Aptos", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--soft);
  color: var(--ink);
  font-family: var(--font-body);
  letter-spacing: 0;
  overflow-x: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.section-shell {
  width: min(1080px, calc(100% - 56px));
  margin: 0 auto;
}

.floating-nav {
  position: fixed;
  z-index: 20;
  top: 42px;
  left: 50%;
  display: flex;
  gap: 28px;
  align-items: center;
  padding: 16px 36px;
  border: 1px solid #ededed;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
  color: #263ec4;
  font-size: 15px;
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
}

.floating-nav a {
  position: relative;
}

.floating-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 1px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 180ms ease, transform 180ms ease;
}

.floating-nav a:hover::after,
.floating-nav a:focus-visible::after {
  opacity: 0.55;
  transform: scaleX(1);
}

.site-header {
  background: var(--white);
}

.hero {
  height: 800px;
  min-height: 800px;
  display: grid;
  grid-template-columns: minmax(440px, 540px) minmax(0, 760px);
  align-items: center;
  gap: 24px;
  padding: 126px 0;
  width: 100%;
  padding-left: max(28px, calc((100vw - 1180px) / 2));
}

.hero-copy {
  grid-column: 2;
  align-self: center;
  min-width: 0;
  padding-bottom: 0;
}

.hero h1,
.approach-intro h2,
.contact-form h2 {
  max-width: 820px;
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(44px, 6vw, 72px);
  line-height: 1.1;
  font-weight: 800;
  overflow-wrap: break-word;
}

em {
  color: var(--blue);
  font-style: italic;
}

.hero h1 span {
  white-space: nowrap;
}

.hero p,
.approach-intro p {
  max-width: 640px;
  margin: 22px 0 0;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 26px;
  line-height: 1.35;
}

.hero-portrait {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  justify-self: start;
  width: min(536px, 37vw);
}

.hero-portrait img {
  width: 100%;
  height: auto;
  filter: grayscale(100%);
}

.mobile-hero {
  display: none;
}

.blue-rule {
  height: 16px;
  background: var(--blue);
}

.work,
.approach,
.contact {
  padding: 86px 0 110px;
}

.section-title {
  margin-bottom: 86px;
}

.section-title span {
  display: block;
  width: 32px;
  height: 3px;
  margin-bottom: 10px;
  background: var(--blue);
}

.section-title h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(42px, 5vw, 54px);
  line-height: 1;
  font-weight: 800;
}

.project-card {
  overflow: hidden;
  margin-bottom: 100px;
  padding: 0 0 48px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: border-color 420ms ease, box-shadow 420ms ease, transform 420ms ease;
}

.project-card:hover,
.approach-card:hover,
.note-card:hover {
  border-color: rgba(18, 61, 244, 0.22);
  box-shadow: 0 20px 42px rgba(20, 20, 20, 0.075);
  transform: translateY(-2px);
}

.project-image {
  width: 100%;
  height: 440px;
  object-fit: cover;
  object-position: top center;
}

.project-card:nth-of-type(3) .project-image {
  object-position: center center;
}

.project-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 52px;
  align-items: end;
  padding: 46px 40px 0;
}

.project-content h3 {
  margin: 0 0 8px;
  font-family: var(--font-heading);
  font-size: 27px;
  line-height: 1.2;
}

.tags {
  margin: 0 0 30px;
  color: #5270ff;
  font-size: 13px;
}

.project-content p:not(.tags) {
  max-width: 700px;
  margin: 0;
  color: #505057;
  font-size: 17px;
  line-height: 1.35;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  border: 0;
  border-radius: 14px;
  background: var(--blue);
  color: var(--white);
  font-weight: 800;
  cursor: pointer;
  transition: background-color 180ms ease, transform 180ms ease;
}

.button:hover,
.button:focus-visible {
  background: #1523a0;
}

.button:focus-visible {
  outline: 2px solid rgba(21, 35, 160, 0.28);
  outline-offset: 3px;
}

.approach {
  width: 100%;
  background: var(--white);
}

.approach.section-shell {
  width: 100%;
}

.approach > * {
  width: min(1080px, calc(100% - 56px));
  margin-left: auto;
  margin-right: auto;
}

.approach .section-title {
  margin-bottom: 64px;
}

.approach-intro {
  margin-bottom: 80px;
}

.approach-intro h2 {
  max-width: 1100px;
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.approach-card,
.note-card {
  min-height: 214px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  transition: border-color 420ms ease, box-shadow 420ms ease, transform 420ms ease;
}

.approach-card strong {
  display: block;
  margin-bottom: 14px;
  color: var(--blue);
  font-size: 24px;
  font-weight: 600;
}

.approach-card h3 {
  margin: 0 0 16px;
  font-family: var(--font-heading);
  font-size: 24px;
  line-height: 1.15;
  font-weight: 600;
}

.approach-card p {
  min-height: 45px;
  margin: 0 0 28px;
  color: #66666b;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.35;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.chips a {
  min-width: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #0f9be8;
  text-align: left;
  font-size: 14px;
  line-height: 1.25;
  transition: color 160ms ease;
}

.chips a:hover,
.chips a:focus-visible {
  color: #1523a0;
}

.chips a:focus-visible {
  outline: 2px solid rgba(21, 35, 160, 0.28);
  outline-offset: 3px;
}

.chips a + a::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin: 0 12px 2px 0;
  border-radius: 50%;
  background: #0f9be8;
  vertical-align: middle;
}

.note-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-color: var(--blue);
  color: var(--blue);
}

.note-card p {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
}

.note-card p + p {
  margin-top: 28px;
}

.tool-row {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 72px;
}

.tool-row img {
  width: 21px;
  height: 21px;
  object-fit: contain;
  filter: grayscale(100%);
}

.contact {
  min-height: 980px;
  background: var(--white);
}

.contact.section-shell {
  width: 100%;
}

.contact > * {
  width: min(1080px, calc(100% - 56px));
  margin-left: auto;
  margin-right: auto;
}

.contact .section-title {
  margin-bottom: 92px;
}

.contact-form {
  width: min(540px, 100%);
  margin: 0 auto;
}

.contact-form h2 {
  margin-bottom: 52px;
  font-size: clamp(44px, 5vw, 64px);
}

.contact-form label {
  display: block;
  margin-bottom: 14px;
  color: #4d4d52;
  font-size: 23px;
}

.contact-form span {
  display: block;
  margin-bottom: 8px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: 0;
  color: var(--ink);
  font-size: 23px;
  background: var(--white);
  box-shadow: 0 8px 22px rgba(20, 20, 20, 0.035);
  transition: border-color 220ms ease, box-shadow 220ms ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(18, 61, 244, 0.5);
  box-shadow: 0 12px 28px rgba(18, 61, 244, 0.1);
}

.contact-form input {
  height: 70px;
  padding: 0 18px;
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
  padding: 24px 18px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #b7b7b7;
}

.submit-button {
  width: 100%;
  min-height: 70px;
  margin-top: 8px;
  font-size: 24px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 34px;
}

.social-links a {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  transition: opacity 180ms ease, transform 180ms ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  opacity: 0.78;
  transform: translateY(-1px);
}

.social-links a:focus-visible {
  outline: 2px solid rgba(21, 35, 160, 0.28);
  outline-offset: 4px;
}

.social-links img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.case-page {
  background: var(--white);
}

.case-header {
  background: var(--white);
}

.case-hero {
  display: grid;
  height: 800px;
  min-height: 800px;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 42px;
  align-items: center;
  padding-top: 126px;
  padding-bottom: 126px;
}

.case-hero-copy {
  min-width: 0;
}

.case-kicker {
  margin: 0 0 18px;
  color: var(--blue);
  font-size: 15px;
  font-weight: 700;
}

.case-hero h1 {
  max-width: 740px;
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(44px, 5.6vw, 72px);
  line-height: 1.04;
  font-weight: 800;
}

.case-hero-copy > p:last-child {
  max-width: 620px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 22px;
  line-height: 1.28;
}

.case-hero-visual {
  align-self: center;
}

.case-hero-visual img {
  width: min(530px, 100%);
  margin-left: auto;
}

.ivan-case .case-hero-visual img {
  transform: scale(1.125);
  transform-origin: center;
}

.beseder-case .case-hero {
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
}

.beseder-hero-visual {
  min-width: 0;
  overflow: visible;
}

.beseder-hero-visual img {
  width: min(650px, 112%);
  max-width: none;
  margin-right: -34px;
}

.case-content {
  padding: 78px 0 52px;
}

.case-section {
  max-width: 1080px;
  margin: 0 auto 76px;
}

.case-title {
  margin-bottom: 28px;
}

.case-title h2,
.case-heading {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(34px, 4.4vw, 46px);
  line-height: 1.08;
  font-weight: 800;
}

.case-heading {
  margin-bottom: 16px;
}

.case-copy,
.case-lead {
  max-width: 980px;
  color: #5d5d63;
  font-size: 18px;
  line-height: 1.34;
}

.case-copy p,
.case-lead {
  margin: 0;
}

.case-copy p + p {
  margin-top: 24px;
}

.case-copy ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.case-image-frame {
  margin: 54px 0 0;
  background: #ececec;
}

.ivan-challenge-frame {
  width: min(820px, 100%);
  overflow: hidden;
  background: #f3f3f3;
}

.ivan-challenge-frame img {
  width: 100%;
  height: auto;
}

.beseder-challenge-frame {
  width: min(900px, 100%);
  overflow: hidden;
  background: #ecebed;
}

.beseder-challenge-frame img {
  width: 100%;
  height: auto;
}

.macbook-frame {
  width: min(710px, 100%);
  aspect-ratio: 710 / 455;
  overflow: hidden;
}

.macbook-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.strategy-list {
  display: grid;
  gap: 26px;
  margin-top: 44px;
}

.strategy-list article {
  padding: 28px 34px;
  border: 1px solid #ededed;
  border-radius: 6px;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(20, 20, 20, 0.035);
  transition: border-color 420ms ease, box-shadow 420ms ease, transform 420ms ease;
}

.strategy-list article:hover {
  border-color: rgba(18, 61, 244, 0.22);
  box-shadow: 0 20px 42px rgba(20, 20, 20, 0.075);
  transform: translateY(-2px);
}

.strategy-list h3 {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 18px;
  line-height: 1.2;
}

.strategy-list p {
  margin: 0;
  color: #68686d;
  font-size: 16px;
  line-height: 1.34;
}

.case-showcase {
  padding: 58px 0 82px;
  background: linear-gradient(180deg, var(--white) 0 36%, #f1f1f1 36% 100%);
}

.case-showcase img {
  width: min(1050px, 100%);
  margin: 0 auto;
  filter: drop-shadow(0 18px 34px rgba(25, 25, 25, 0.08));
}

.beseder-web-showcase {
  overflow: hidden;
}

.beseder-web-showcase img {
  width: min(1160px, 108%);
  max-width: none;
  transform: translateX(-2%);
}

.visual-direction {
  max-width: 960px;
}

.stationery-showcase {
  margin: 0;
  background: #d9d5cf;
}

.stationery-showcase img {
  width: 100%;
  max-height: 780px;
  object-fit: cover;
  object-position: center;
}

.ivan-outcome-showcase {
  background: #f2f2f2;
}

.ivan-outcome-showcase img {
  max-height: none;
  object-fit: cover;
  object-position: center;
}

.beseder-print-showcase {
  overflow: hidden;
  padding: 82px 0 94px;
  background: #e7e6e8;
}

.beseder-print-slider {
  width: 100%;
  overflow: hidden;
}

.beseder-print-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: besederPrintSlide 18s infinite ease-in-out;
}

.beseder-print-track img {
  flex: 0 0 70vw;
  width: 70vw;
  height: auto;
  object-fit: contain;
  box-shadow: 0 18px 34px rgba(25, 25, 25, 0.08);
}

.beseder-print-track:hover {
  animation-play-state: paused;
}

@keyframes besederPrintSlide {
  0%,
  22% {
    transform: translateX(0);
  }

  33%,
  55% {
    transform: translateX(-70vw);
  }

  66%,
  88% {
    transform: translateX(-140vw);
  }

  100% {
    transform: translateX(-210vw);
  }
}

@media (max-width: 900px) {
  .section-shell {
    width: min(100% - 36px, 720px);
  }

  .floating-nav {
    top: 43px;
    width: min(324px, calc(100% - 32px));
    justify-content: center;
    gap: clamp(20px, 4vw, 32px);
    padding: 14px 8px;
  }

  .hero {
    display: none;
  }

  .mobile-hero {
    display: block;
    height: 732px;
    padding-top: 96px;
    background: var(--white);
    overflow: hidden;
  }

  .mobile-hero-visual {
    position: relative;
    height: 510px;
    margin: 0;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #eef2ff 22%, #cfd8ff 56%, #ffffff 100%);
  }

  .mobile-hero-visual::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 55%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), #ffffff 72%);
  }

  .mobile-hero-visual img {
    position: absolute;
    left: 50%;
    bottom: 50px;
    width: min(380px, 86vw);
    transform: translateX(-50%);
    filter: grayscale(100%);
  }

  .mobile-hero-copy {
    position: relative;
    z-index: 1;
    width: min(100% - 36px, 720px);
    margin: -130px auto 0;
    padding-bottom: 28px;
  }

  .mobile-hero-copy h1 {
    max-width: 340px;
    margin: 0;
    font-family: var(--font-heading);
    font-size: 32px;
    line-height: 1.06;
    font-weight: 800;
  }

  .mobile-hero-copy p,
  .approach-intro p {
    font-size: 22px;
  }

  .mobile-hero-copy p {
    max-width: 340px;
    margin: 20px 0 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.25;
  }

  .project-image {
    height: 330px;
  }

  .project-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .button {
    width: 100%;
  }

  .approach-grid {
    grid-template-columns: 1fr;
  }

  .case-hero {
    min-height: 720px;
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 118px;
  }

  .case-hero-copy {
    position: relative;
    z-index: 2;
    order: 2;
    align-self: start;
    margin-top: -54px;
  }

  .case-hero h1 {
    max-width: 640px;
    font-size: 42px;
  }

  .case-hero-copy > p:last-child {
    max-width: 500px;
    font-size: 18px;
  }

  .case-hero-visual {
    order: 1;
    margin-top: 0;
  }

  .case-hero-visual img {
    width: min(430px, 100%);
    margin: 0 auto;
  }

  .ivan-case .case-hero-visual {
    overflow: visible;
  }

  .ivan-case .case-hero-visual img {
    width: min(620px, 100%);
    transform: none;
  }

  .beseder-case .case-hero {
    grid-template-columns: 1fr;
  }

  .beseder-hero-visual {
    overflow: visible;
  }

  .beseder-hero-visual img {
    width: min(560px, 108%);
    margin: 0 auto;
    transform: none;
  }

  .case-content {
    padding-top: 58px;
  }

  .case-copy,
  .case-lead {
    font-size: 16px;
  }
}

@media (max-width: 560px) {
  .floating-nav {
    gap: 12px;
    padding-inline: 14px;
    font-size: 13px;
  }

  h1,
  h2,
  h3,
  .section-title h2,
  .mobile-hero-copy h1,
  .approach-intro h2,
  .contact-form h2,
  .project-content h3,
  .approach-card h3 {
    font-size: 26px;
    line-height: 1.15;
  }

  .mobile-hero-copy h1 {
    font-size: 32px;
    line-height: 1.06;
  }

  .mobile-hero-copy p,
  .approach-intro p {
    font-size: 14px;
  }

  .mobile-hero-copy p {
    max-width: 320px;
  }

  p,
  .project-content p:not(.tags),
  .approach-card p,
  .note-card p,
  .tags {
    font-size: 14px;
  }

  .button {
    font-size: 14px;
  }

  .blue-rule {
    height: 10px;
  }

  .work,
  .approach,
  .contact {
    padding: 58px 0 78px;
  }

  .section-title {
    margin-bottom: 48px;
  }

  .project-card {
    margin-bottom: 58px;
    border-radius: 16px;
  }

  .project-image {
    height: 240px;
  }

  .project-content {
    padding: 30px 22px 0;
  }

  .approach-card,
  .note-card {
    padding: 26px 22px;
  }

  .approach-card strong,
  .approach-card h3 {
    font-size: 21px;
    font-weight: 600;
  }

  .approach-card p {
    font-size: 14px;
    font-weight: 300;
  }

  .chips a {
    min-width: 0;
    flex: 0 1 auto;
  }

  .tool-row {
    flex-wrap: wrap;
  }

  .contact-form label,
  .contact-form input,
  .contact-form textarea {
    font-size: 14px;
  }

  .contact > * {
    width: min(100% - 36px, 720px);
  }

  .contact .section-title {
    margin-bottom: 48px;
  }

  .contact-form h2 {
    margin-bottom: 34px;
  }

  .contact-form input {
    height: 58px;
  }

  .contact-form textarea {
    min-height: 130px;
  }

  .submit-button {
    min-height: 58px;
  }

  .case-hero {
    height: 750px;
    min-height: 750px;
    padding-top: 112px;
  }

  .case-kicker {
    margin-bottom: 12px;
    font-size: 13px;
  }

  .case-hero h1 {
    max-width: 360px;
    font-size: 34px;
  }

  .case-hero-copy > p:last-child {
    max-width: 330px;
    font-size: 14px;
  }

  .case-hero-copy {
    margin-top: 16px;
  }

  .case-hero-visual {
    overflow: hidden;
  }

  .case-hero-visual img {
    width: min(310px, 100%);
  }

  .beseder-case .case-hero {
    height: 760px;
    min-height: 760px;
  }

  .beseder-case .case-hero-copy {
    margin-top: 54px;
  }

  .beseder-case .case-hero-visual {
    overflow: visible;
  }

  .beseder-case .case-hero-visual img {
    width: min(388px, 125%);
    max-width: none;
    margin-left: 50%;
    transform: translateX(-50%);
  }

  .case-content {
    padding: 46px 0 32px;
  }

  .case-section {
    margin-bottom: 56px;
  }

  .case-title {
    margin-bottom: 22px;
  }

  .case-title h2,
  .case-heading {
    font-size: 28px;
  }

  .case-copy,
  .case-lead,
  .strategy-list p {
    font-size: 14px;
  }

  .case-image-frame {
    margin-top: 32px;
  }

  .strategy-list {
    gap: 16px;
    margin-top: 30px;
  }

  .strategy-list article {
    padding: 22px 20px;
  }

  .strategy-list h3 {
    font-size: 15px;
  }

  .case-showcase {
    padding: 34px 0 52px;
  }

  .stationery-showcase img {
    min-height: 360px;
  }

  .beseder-hero-visual img {
    width: min(350px, 100%);
  }

  .beseder-web-showcase img {
    width: min(560px, 126%);
    transform: translateX(-9%);
  }

  .beseder-print-showcase {
    padding: 46px 0 58px;
  }
}
