:root {
  --bg: #ffffff;
  --panel: #f5f5f5;
  --panel-strong: #eeeeee;
  --ink: #111111;
  --muted: #6e6e73;
  --line: #dedede;
  --blue: #263cff;
  --blue-soft: #eef1ff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Manrope", Arial, sans-serif;
  letter-spacing: 0;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 12px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
}

.brand {
  font-weight: 700;
}

.topbar nav {
  display: flex;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.topbar nav a {
  padding: 10px 12px;
  border-radius: 999px;
}

.topbar nav a:hover {
  background: var(--panel);
  color: var(--ink);
}

main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-shell {
  position: relative;
  min-height: calc(100svh - 72px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  padding: clamp(36px, 5vw, 72px) clamp(18px, 6vw, 84px) clamp(28px, 5vw, 60px);
  border: 1px solid rgba(17, 17, 17, 0.06);
  border-radius: 0;
  background: #f1f1f1;
}

.soft-shape {
  display: none;
}

.shape-one {
  width: 102px;
  height: 70px;
  left: 4%;
  top: 6%;
}

.shape-two {
  width: 214px;
  height: 138px;
  left: 16%;
  top: 0;
}

.shape-three {
  width: 172px;
  height: 120px;
  right: 18%;
  top: 2%;
}

.shape-four {
  width: 164px;
  height: 78px;
  right: 4%;
  top: 8%;
}

.avatar {
  position: relative;
  order: 4;
  z-index: 1;
  width: min(460px, 58vw);
  height: clamp(220px, 30vw, 340px);
  margin-top: clamp(40px, 6vw, 74px);
  object-fit: cover;
  object-position: center 32%;
  border-radius: 26px 26px 0 0;
  box-shadow: none;
}

.eyebrow {
  position: relative;
  order: 1;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin: 0 0 clamp(68px, 11vw, 130px);
  color: #111;
  font-size: 13px;
  line-height: 1.1;
  font-weight: 800;
  text-transform: uppercase;
  text-align: center;
}

.eyebrow span {
  margin-left: 0;
  color: var(--blue);
  font-weight: 700;
}

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

h1 {
  position: relative;
  order: 2;
  z-index: 1;
  max-width: 980px;
  font-size: clamp(58px, 11.4vw, 148px);
  line-height: 0.86;
  font-weight: 800;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 0;
}

.copyright-mark {
  color: var(--blue);
}

.summary-block {
  position: relative;
  order: 3;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(16px, 5vw, 74px);
  width: min(620px, 100%);
  margin-top: 18px;
  color: #111;
  font-family: "Inter Tight", "Manrope", Arial, sans-serif;
  text-align: left;
  font-size: clamp(13px, 1.1vw, 15px);
  line-height: 1.18;
  font-weight: 700;
  text-transform: uppercase;
}

.summary-block p + p {
  margin-top: 0;
}

.summary-block strong {
  color: var(--blue);
  font-weight: 800;
}

.word-reveal {
  display: inline-block;
  opacity: 0;
  filter: blur(10px);
  transform: translateY(14px);
  animation: ai-word-in 540ms cubic-bezier(0.19, 1, 0.22, 1) forwards;
  animation-delay: var(--word-delay);
  will-change: opacity, filter, transform;
}

@keyframes ai-word-in {
  0% {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(14px);
  }

  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

.section-kicker {
  color: #cfcfcf;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
}

.summary-block .section-kicker {
  grid-column: 1 / -1;
  justify-self: center;
  color: var(--blue);
  font-size: 12px;
}

.section-kicker::before {
  content: "+";
  margin-right: 8px;
}

.contact-strip {
  position: relative;
  order: 5;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  width: 100%;
  margin-top: clamp(28px, 4vw, 52px);
  color: #8a8a8a;
  font-size: 13px;
  font-weight: 500;
}

.contact-strip a:hover {
  color: var(--blue);
}

.contact-page {
  position: relative;
  min-height: calc(100svh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.7fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  overflow: hidden;
  padding: clamp(32px, 6vw, 70px);
  border-radius: 40px;
  background: var(--panel);
}

.contact-hero-copy,
.contact-card-grid {
  position: relative;
  z-index: 1;
}

.contact-hero-copy h1 {
  margin-top: 16px;
  max-width: 760px;
  font-size: clamp(52px, 7vw, 96px);
  line-height: 0.96;
  text-align: left;
}

.contact-hero-copy > p:last-child {
  max-width: 620px;
  margin-top: 28px;
  color: #3a3a3c;
  font-family: "Inter Tight", "Manrope", Arial, sans-serif;
  font-size: clamp(22px, 2.7vw, 34px);
  line-height: 1.16;
}

.contact-card-grid {
  display: grid;
  gap: 10px;
}

.contact-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 8px 14px;
  align-items: center;
  min-height: 112px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.contact-card:hover {
  transform: translateY(-2px);
  border-color: #c8c8c8;
  box-shadow: var(--shadow);
}

.contact-icon {
  grid-row: span 2;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 15px;
  font-weight: 850;
}

.contact-label {
  align-self: end;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.contact-card strong {
  align-self: start;
  overflow-wrap: anywhere;
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.05;
  font-weight: 550;
}

.intro-grid,
.cases-section,
.experience-section,
.cta-section {
  padding: 88px 0 0;
}

.cases-section {
  width: min(1192px, calc(100vw - 32px));
  margin-left: 50%;
  transform: translateX(-50%);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: 40px;
  align-items: start;
}

.intro-grid h2,
.section-heading h2 {
  margin-top: 12px;
  font-size: clamp(38px, 5vw, 72px);
  line-height: 1;
  font-weight: 500;
}

.focus-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 36px;
}

.focus-list span,
.case-card li,
.case-category,
.case-filters button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.focus-list span {
  padding: 12px 16px;
  color: #3c3c3f;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.case-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.case-filters button {
  min-height: 38px;
  padding: 0 14px;
  color: var(--muted);
  cursor: pointer;
}

.case-filters button.active,
.case-filters button:hover {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.case-card {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.case-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 8px;
  object-fit: cover;
  background: #fff;
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
}

.case-image-empty {
  border: 1px dashed #d3d7ff;
  background: var(--blue-soft);
}

.case-card:hover {
  transform: translateY(-3px);
  border-color: #c8c8c8;
  box-shadow: var(--shadow);
}

.case-category {
  display: inline-flex;
  width: max-content;
  padding: 8px 12px;
  color: var(--blue);
  background: var(--blue-soft);
  border-color: #dbe0ff;
  font-size: 13px;
  font-weight: 700;
}

.case-card h3 {
  margin-top: 24px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1;
  font-weight: 500;
}

.case-card p {
  margin-top: 18px;
  color: #4a4a4d;
  font-size: 17px;
  line-height: 1.45;
}

.case-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.case-card li {
  padding: 7px 10px;
  color: var(--muted);
  font-size: 13px;
}

.case-link {
  width: max-content;
  margin-top: 26px;
  color: var(--blue);
  font-weight: 650;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.timeline article {
  padding: 24px;
  border-radius: 8px;
  background: #111;
  color: #fff;
}

.timeline span {
  color: #a8a8ad;
  font-size: 14px;
}

.timeline h3 {
  margin-top: 20px;
  font-size: 25px;
  line-height: 1.08;
  font-weight: 550;
}

.timeline p {
  margin-top: 14px;
  color: #c9c9ce;
  line-height: 1.48;
}

.timeline p:first-of-type {
  color: #fff;
  font-weight: 650;
}

.cta-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 88px;
}

.cta-section p {
  max-width: 740px;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 1;
  font-weight: 500;
}

.cta-section a,
.editor-toggle,
.editor-actions button,
.secondary-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.editor-toggle {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 25;
  box-shadow: 0 16px 40px rgba(38, 60, 255, 0.3);
}

.editor-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 40;
  width: min(440px, 100%);
  height: 100dvh;
  overflow: auto;
  padding: 24px;
  background: #fff;
  box-shadow: -30px 0 80px rgba(0, 0, 0, 0.14);
  transform: translateX(105%);
  transition: transform 220ms ease;
}

.editor-panel.open {
  transform: translateX(0);
}

.editor-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.editor-header h2 {
  margin-top: 6px;
  font-size: 36px;
  line-height: 1;
  font-weight: 500;
}

.icon-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: #111;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.case-form {
  display: grid;
  gap: 14px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.case-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.case-form input,
.case-form textarea,
.case-form select,
.export-block textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fafafa;
  color: #111;
  resize: vertical;
}

.editor-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.secondary-button {
  border: 1px solid var(--line);
  background: #fff;
  color: #111;
}

.case-manager {
  display: grid;
  gap: 12px;
  padding: 24px 0;
}

.manager-item {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.manager-item strong {
  font-size: 18px;
}

.manager-item p {
  color: var(--muted);
  line-height: 1.4;
}

.manager-actions {
  display: flex;
  gap: 8px;
}

.manager-actions button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  background: #fff;
  cursor: pointer;
}

.manager-actions button:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.export-block {
  display: grid;
  gap: 12px;
}

.scrim {
  position: fixed;
  inset: 0;
  z-index: 35;
  display: none;
  background: rgba(17, 17, 17, 0.28);
}

.scrim.open {
  display: block;
}

.admin-body {
  background: #f7f7f7;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px clamp(16px, 4vw, 48px);
  background: rgba(247, 247, 247, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.admin-topbar h1 {
  margin-top: 6px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 0.95;
  text-align: left;
}

.admin-topbar nav,
.admin-topbar nav a,
.admin-topbar nav button,
.admin-section-heading-row > button,
.admin-form button,
.save-toast {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.admin-topbar nav {
  gap: 10px;
}

.admin-topbar nav a,
.admin-topbar nav button,
.admin-section-heading-row > button,
.admin-form button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px;
  background: #fff;
  color: #111;
  font-weight: 750;
  cursor: pointer;
}

.admin-form button[type="submit"],
.admin-section-heading-row > button,
.admin-form > button,
#exportContent {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.admin-layout {
  width: min(1180px, calc(100% - 32px));
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 24px 0 70px;
}

.admin-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.admin-card-wide {
  grid-column: 1 / -1;
}

.admin-section-heading {
  margin-bottom: 22px;
}

.admin-section-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-section-heading h2 {
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1;
  font-weight: 550;
}

.admin-section-heading p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.45;
}

.admin-form {
  display: grid;
  gap: 14px;
}

.contact-admin-grid {
  display: grid;
  gap: 12px;
}

.contact-admin-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.contact-admin-row legend {
  padding: 0 8px;
  color: var(--blue);
  font-weight: 800;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-form label,
.image-field label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fafafa;
  color: #111;
  resize: vertical;
}

.image-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 16px;
  align-items: end;
}

.project-modal {
  width: min(720px, calc(100% - 28px));
  max-height: min(820px, calc(100dvh - 28px));
  overflow: auto;
  border: 0;
  border-radius: 12px;
  padding: 0;
  background: #fff;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.24);
}

.project-modal::backdrop {
  background: rgba(17, 17, 17, 0.36);
  backdrop-filter: blur(5px);
}

.modal-header,
.modal-actions {
  position: sticky;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #fff;
}

.modal-header {
  top: 0;
  padding: 22px 22px 16px;
  border-bottom: 1px solid var(--line);
}

.modal-header h2 {
  margin-top: 6px;
  font-size: 40px;
  line-height: 1;
  font-weight: 550;
}

.modal-body {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.modal-actions {
  bottom: 0;
  justify-content: flex-end;
  padding: 16px 22px 22px;
  border-top: 1px solid var(--line);
}

.image-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.image-actions span {
  color: var(--muted);
  font-size: 13px;
}

#imagePreview {
  display: none;
  width: 220px;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  object-fit: cover;
  background: var(--panel);
}

#imagePreview.visible {
  display: block;
}

.admin-projects {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.project-row {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.project-row img,
.project-thumb-empty {
  width: 148px;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  object-fit: cover;
}

.project-thumb-empty {
  display: grid;
  place-items: center;
  border: 1px dashed #d3d7ff;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 800;
}

.project-row span {
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.project-row strong {
  display: block;
  margin-top: 4px;
  font-size: 24px;
  line-height: 1;
}

.project-row p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.45;
}

.save-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-weight: 800;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  pointer-events: none;
}

.save-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.cases-grid {
  grid-template-columns: 1fr;
  gap: 28px;
}

.case-showcase {
  padding: 28px;
  border-radius: 8px;
  background: var(--panel);
}

.case-showcase-header {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  margin-bottom: 28px;
}

.case-logo {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: #111;
  color: #fff;
  font-size: 28px;
  font-weight: 850;
}

.case-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-copy h3 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 0.96;
  font-weight: 650;
}

.case-copy p {
  max-width: 760px;
  margin-top: 12px;
  color: #657080;
  font-family: "Inter Tight", "Manrope", Arial, sans-serif;
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.18;
}

.case-showcase-header ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.case-showcase-header li {
  padding: 7px 10px;
  border-radius: 999px;
  background: #e8e9eb;
  color: #5d6672;
  font-size: 14px;
}

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

.gallery-item,
.site-media {
  margin: 0;
}

.gallery-item img,
.gallery-item-empty div {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  object-fit: cover;
  background: #fff;
}

.gallery-item-empty div,
.site-media-empty {
  display: grid;
  place-items: center;
  border: 1px dashed #d3d7ff;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 800;
}

.gallery-item figcaption,
.site-media figcaption {
  margin-top: 14px;
  color: #878787;
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.15;
}

.site-media {
  padding: clamp(26px, 4vw, 44px);
  border-radius: 8px;
  background: #fff;
}

.site-media img {
  width: 100%;
  max-height: 760px;
  border-radius: 8px;
  object-fit: contain;
}

.site-media-empty {
  min-height: 420px;
}

.case-showcase .case-link {
  display: inline-flex;
}

.cases-grid {
  display: block;
}

.case-group + .case-group {
  margin-top: 72px;
}

.case-group > h3 {
  margin-bottom: 52px;
  text-align: center;
  font-size: 28px;
  line-height: 1;
  font-weight: 700;
}

.web-project-grid > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 52px 24px;
}

.saas-project-stack > div {
  display: grid;
  gap: 56px;
}

.case-showcase {
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.is-product .case-showcase-header {
  margin-bottom: 28px;
}

.is-site .case-showcase-header {
  position: relative;
  grid-template-columns: 64px minmax(0, 1fr);
  min-height: 64px;
  padding-right: 128px;
  margin-bottom: 28px;
}

.case-showcase-header {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) minmax(96px, max-content);
  gap: 20px;
  align-items: center;
}

.case-logo {
  width: 64px;
  height: 64px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  font-size: 20px;
}

.case-copy h3 {
  font-size: 28px;
  line-height: 1.05;
  font-weight: 700;
}

.case-copy p {
  max-width: 760px;
  margin-top: 8px;
  color: #657080;
  font-family: "Manrope", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 500;
}

.case-showcase-header ul {
  justify-self: end;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: 220px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.is-site .case-showcase-header ul {
  position: absolute;
  top: 0;
  right: 0;
  max-width: 112px;
}

.case-showcase-header li {
  padding: 5px 8px;
  border-radius: 999px;
  background: #eceef0;
  color: #66707d;
  font-size: 12px;
  line-height: 1;
  font-weight: 500;
  white-space: nowrap;
}

.saas-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 360px));
  justify-content: center;
  gap: 28px;
  width: 100%;
  padding: 28px;
  border-radius: 20px;
  background: #f4f4f4;
}

.gallery-item,
.site-media {
  margin: 0;
}

.gallery-item img,
.gallery-item-empty div {
  width: 100%;
  aspect-ratio: 360 / 200;
  border-radius: 8px;
  object-fit: cover;
  background: #fff;
}

.gallery-item figcaption {
  margin-top: 12px;
  color: #7d7d7d;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 500;
}

.site-media {
  display: grid;
  place-items: center;
  width: 100%;
  padding: 24px;
  border-radius: 20px;
  background: #f4f4f4;
}

.site-media img,
.site-media-empty {
  width: min(100%, 500px);
  aspect-ratio: 500 / 480;
  border-radius: 8px;
  object-fit: cover;
  background: #fff;
}

.site-media-empty,
.gallery-item-empty div {
  display: grid;
  place-items: center;
  border: 1px dashed #d3d7ff;
  background: #eef1ff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.admin-layout {
  display: block;
}

.admin-tabs {
  position: sticky;
  top: 116px;
  z-index: 9;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 16px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
}

.admin-tabs button {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 16px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}

.admin-tabs button.active {
  background: var(--blue);
  color: #fff;
}

.admin-panel {
  display: none;
}

.admin-panel.active {
  display: block;
}

.admin-section-heading.compact {
  margin-bottom: 12px;
}

.admin-section-heading.compact h3 {
  font-size: 24px;
  line-height: 1;
}

.media-admin-section {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafafa;
}

#logoPreview,
.gallery-preview {
  display: none;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  object-fit: cover;
  background: var(--panel);
}

#logoPreview.visible,
.gallery-preview.visible {
  display: block;
}

#logoPreview {
  width: 140px;
  aspect-ratio: 1;
}

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

.gallery-admin-item {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.gallery-admin-item legend {
  padding: 0 8px;
  color: var(--blue);
  font-weight: 800;
}

.gallery-preview-empty {
  display: grid;
  place-items: center;
  border: 1px dashed #d3d7ff;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 800;
}

.admin-body {
  --admin-bg: #f6f6f6;
  --admin-card: #ffffff;
  --admin-soft: #f4f4f4;
  --admin-soft-blue: #f2f4ff;
  --admin-line: rgba(17, 17, 17, 0.1);
  --admin-muted: #757575;
  --admin-quiet: #9a9a9a;
  background: var(--admin-bg);
}

.admin-body .section-kicker {
  color: var(--admin-quiet);
  font-size: 13px;
  font-weight: 500;
}

.admin-topbar {
  padding: 24px clamp(16px, 4vw, 48px);
  border-bottom-color: var(--admin-line);
  background: rgba(246, 246, 246, 0.84);
}

.admin-topbar h1 {
  margin-top: 4px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1;
  font-weight: 500;
}

.admin-topbar nav a,
.admin-topbar nav button,
.admin-section-heading-row > button,
.admin-form button {
  min-height: 40px;
  border-color: var(--admin-line);
  border-radius: 999px;
  background: #fff;
  color: #242424;
  font-size: 14px;
  font-weight: 500;
  box-shadow: none;
  outline: none;
}

.admin-topbar nav a:hover,
.admin-topbar nav button:hover,
.admin-section-heading-row > button:hover,
.admin-form button:hover,
.admin-tabs button:hover {
  border-color: rgba(38, 60, 255, 0.28);
  background: var(--admin-soft-blue);
  color: var(--blue);
}

.admin-form button[type="submit"],
.admin-section-heading-row > button,
.admin-form > button,
#exportContent {
  border-color: transparent;
  background: #111;
  color: #fff;
  font-weight: 500;
}

.admin-form button[type="submit"]:hover,
.admin-section-heading-row > button:hover,
.admin-form > button:hover,
#exportContent:hover {
  background: var(--blue);
  color: #fff;
}

.admin-layout {
  width: min(1080px, calc(100% - 32px));
  padding-top: 26px;
}

.admin-tabs {
  top: 108px;
  gap: 4px;
  padding: 6px;
  border-color: var(--admin-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 40px rgba(17, 17, 17, 0.04);
}

.admin-tabs button {
  min-height: 38px;
  border-radius: 12px;
  padding: 0 14px;
  color: var(--admin-muted);
  font-size: 14px;
  font-weight: 500;
  outline: none;
}

.admin-tabs button.active {
  border-color: rgba(38, 60, 255, 0.14);
  background: var(--admin-soft-blue);
  color: var(--blue);
}

.admin-topbar nav a:focus-visible,
.admin-topbar nav button:focus-visible,
.admin-section-heading-row > button:focus-visible,
.admin-form button:focus-visible,
.admin-tabs button:focus-visible {
  box-shadow: 0 0 0 4px rgba(38, 60, 255, 0.1);
}

.admin-card {
  padding: clamp(20px, 3vw, 32px);
  border-color: var(--admin-line);
  border-radius: 20px;
  background: var(--admin-card);
  box-shadow: 0 18px 50px rgba(17, 17, 17, 0.04);
}

.admin-section-heading {
  margin-bottom: 24px;
}

.admin-section-heading h2,
.modal-header h2 {
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.05;
  font-weight: 500;
}

.admin-section-heading p {
  color: var(--admin-muted);
  font-size: 15px;
}

.admin-section-heading.compact h3 {
  font-size: 20px;
  font-weight: 500;
}

.admin-form {
  gap: 16px;
}

.admin-form label,
.image-field label {
  gap: 7px;
  color: var(--admin-muted);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 500;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
  min-height: 44px;
  border-color: var(--admin-line);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
  color: #181818;
  font-size: 14px;
  font-weight: 400;
  outline: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.admin-form textarea {
  line-height: 1.45;
}

.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus {
  border-color: rgba(38, 60, 255, 0.42);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(38, 60, 255, 0.08);
}

.contact-admin-row,
.media-admin-section,
.gallery-admin-item {
  border-color: var(--admin-line);
  border-radius: 16px;
  background: var(--admin-soft);
}

.contact-admin-row legend,
.gallery-admin-item legend {
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 500;
}

.project-modal {
  border-radius: 20px;
  box-shadow: 0 32px 110px rgba(17, 17, 17, 0.22);
}

.modal-header,
.modal-actions {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.modal-header,
.modal-actions {
  border-color: var(--admin-line);
}

.admin-projects {
  gap: 10px;
}

.project-row {
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 18px;
  padding: 12px;
  border-color: var(--admin-line);
  border-radius: 16px;
  background: #fff;
}

.project-row img,
.project-thumb-empty {
  width: 120px;
  border-radius: 12px;
}

.project-thumb-empty {
  border-color: rgba(38, 60, 255, 0.16);
  background: var(--admin-soft-blue);
  color: var(--blue);
  font-weight: 500;
}

.project-row span {
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 500;
}

.project-row strong {
  margin-top: 5px;
  font-size: 22px;
  font-weight: 500;
}

.project-row p {
  color: var(--admin-muted);
  font-size: 14px;
}

.save-toast {
  background: #111;
  font-size: 14px;
  font-weight: 500;
}

@media (max-width: 900px) {
  .hero-shell {
    min-height: auto;
    padding: 38px 22px 28px;
    border-radius: 28px;
  }

  .soft-shape {
    display: none;
  }

  .summary-block {
    font-size: 20px;
  }

  .intro-grid,
  .contact-page,
  .cases-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .intro-grid {
    gap: 18px;
  }

  .focus-list {
    padding-top: 0;
  }

  .section-heading,
  .cta-section,
  .admin-section-heading-row {
    align-items: start;
    flex-direction: column;
  }

  .contact-page {
    min-height: auto;
    padding: 34px 22px;
    border-radius: 28px;
  }

  .admin-layout,
  .two-columns,
  .contact-admin-row,
  .image-field,
  .gallery-admin-grid,
  .saas-gallery,
  .project-row {
    grid-template-columns: 1fr;
  }

  .web-project-grid > div {
    grid-template-columns: minmax(0, 1fr);
  }

  .case-showcase,
  .case-showcase-header,
  .case-copy,
  .site-media {
    min-width: 0;
    max-width: 100%;
  }

  .site-media {
    grid-template-columns: minmax(0, 1fr);
  }

  .case-showcase-header,
  .is-site .case-showcase-header {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .is-site .case-showcase-header {
    padding-right: 0;
  }

  .admin-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-row img,
  .project-thumb-empty,
  #logoPreview,
  #imagePreview {
    width: 100%;
  }

  .case-showcase-header ul {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .is-site .case-showcase-header ul {
    position: static;
    max-width: none;
  }
}

@media (max-width: 620px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .topbar nav {
    width: 100%;
    justify-content: space-between;
  }

  main {
    width: min(100% - 20px, 1120px);
  }

  .hero-shell {
    padding: 42px 16px 28px;
  }

  .eyebrow span {
    margin: 0;
  }

  .eyebrow {
    align-items: center;
    gap: 8px 12px;
    margin-bottom: 78px;
    font-size: 12px;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(46px, 15.3vw, 60px);
    line-height: 0.88;
  }

  .copyright-mark {
    font-size: 0.72em;
  }

  .summary-block {
    grid-template-columns: 1fr;
    gap: 14px;
    width: min(100%, 310px);
    margin-top: 24px;
    text-align: center;
    font-size: 14px;
    line-height: 1.24;
    font-weight: 600;
    text-transform: none;
  }

  .avatar {
    width: min(260px, 70vw);
    height: 250px;
    margin-top: 38px;
    border-radius: 24px 24px 0 0;
  }

  .site-media img,
  .site-media-empty {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  .contact-strip {
    align-items: center;
    flex-direction: column;
    font-size: 13px;
  }

  .intro-grid,
  .cases-section,
  .experience-section,
  .cta-section {
    padding-top: 58px;
  }

  .case-card {
    min-height: 280px;
    padding: 20px;
  }

  .editor-panel {
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .word-reveal {
    opacity: 1;
    filter: none;
    transform: none;
    animation: none;
  }
}
