@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/PlusJakartaSans-Regular.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400 800;
}

:root {
  color-scheme: light;
  --ink: #0f2238;
  --muted: #637184;
  --line: #dfe6ec;
  --blue: #1764f5;
  --blue-dark: #0e4dcc;
  --teal: #35d0c1;
  --night: #102238;
  --paper: #f6f9fb;
  --white: #fff;
  --shadow: 0 24px 70px rgba(11, 31, 54, 0.12);
  font-family: "Plus Jakarta Sans", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); }
body.dialog-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
img { display: block; max-width: 100%; }

.portfolio-shell { width: min(1240px, calc(100% - 48px)); margin: 0 auto; }
.site-header { position: sticky; z-index: 50; top: 0; border-bottom: 1px solid rgba(15, 34, 56, 0.1); background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(16px); }
.site-header__inner { display: flex; width: min(1280px, calc(100% - 40px)); height: 72px; margin: 0 auto; align-items: center; justify-content: space-between; gap: 28px; }
.brand { flex: 0 0 auto; width: 172px; }
.brand img { width: 100%; height: auto; }
.desktop-nav { display: flex; align-items: center; gap: 6px; }
.desktop-nav a { padding: 10px 13px; border-radius: 8px; color: #536275; font-size: 14px; font-weight: 650; }
.desktop-nav a:hover, .desktop-nav a.is-active { color: var(--blue); background: #eef5ff; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.phone-link { color: var(--blue); font-size: 14px; font-weight: 700; white-space: nowrap; }
.menu-toggle { display: none; width: 42px; height: 42px; padding: 10px; border: 0; border-radius: 8px; background: #eef5ff; }
.menu-toggle span { display: block; height: 2px; margin: 4px 0; background: var(--ink); }
.mobile-nav { padding: 8px 24px 20px; border-top: 1px solid var(--line); }
.mobile-nav a { display: block; padding: 12px 0; border-bottom: 1px solid #edf1f4; font-weight: 700; }

.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: 10px; padding: 13px 22px; border: 1px solid transparent; border-radius: 9px; font-size: 14px; font-weight: 750; transition: 180ms ease; cursor: pointer; }
.button:hover { transform: translateY(-2px); }
.button--small { min-height: 42px; padding: 10px 17px; }
.button--primary { color: #fff; background: var(--blue); box-shadow: 0 10px 24px rgba(23, 100, 245, 0.22); }
.button--primary:hover { background: var(--blue-dark); }
.button--ghost { border-color: rgba(255, 255, 255, 0.34); color: #fff; background: rgba(255, 255, 255, 0.06); }
.button--dark { color: #fff; background: var(--night); }

.portfolio-hero { position: relative; min-height: 680px; padding: 112px 0; color: #fff; background: radial-gradient(circle at 80% 18%, rgba(53, 208, 193, 0.2), transparent 32%), linear-gradient(120deg, #102b3a, #102238 62%, #091a2c); overflow: hidden; }
.portfolio-hero::after { position: absolute; inset: 0; opacity: 0.28; background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px); background-size: 58px 58px; content: ""; mask-image: linear-gradient(90deg, transparent, #000 55%); }
.portfolio-hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 80px; align-items: end; }
.eyebrow { margin: 0 0 22px; color: var(--teal); font-size: 12px; font-weight: 850; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow--dark { color: #168f87; }
.portfolio-hero h1 { max-width: 850px; margin: 0; font-size: clamp(48px, 6vw, 78px); line-height: .99; letter-spacing: -.055em; }
.hero-copy { max-width: 710px; margin: 28px 0 0; color: rgba(255,255,255,.72); font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-proof { display: grid; border: 1px solid rgba(168, 207, 221, 0.22); border-radius: 18px; background: rgba(16, 45, 64, .72); box-shadow: 0 30px 70px rgba(0,0,0,.18); overflow: hidden; }
.hero-proof div { display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 20px; padding: 24px; border-bottom: 1px solid rgba(168, 207, 221, 0.16); }
.hero-proof div:last-child { border: 0; }
.hero-proof strong { color: #fff; font-size: 22px; }
.hero-proof span { color: rgba(255,255,255,.62); font-size: 13px; }

.portfolio-section { padding: 104px 0 118px; background: var(--paper); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 48px; }
.section-heading h2, .contact-section h2 { max-width: 760px; margin: 0; color: var(--ink); font-size: clamp(38px, 4vw, 58px); line-height: 1.06; letter-spacing: -.045em; }
.section-heading > p { max-width: 460px; margin: 0 0 8px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.portfolio-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 46px; }
.portfolio-filter { padding: 10px 15px; border: 1px solid #d8e1e9; border-radius: 999px; color: #5f6d7d; background: #fff; font-size: 13px; font-weight: 720; cursor: pointer; }
.portfolio-filter:hover, .portfolio-filter.is-active { border-color: var(--blue); color: #fff; background: var(--blue); }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 34px; }
.project-card { display: flex; min-width: 0; min-height: 510px; flex-direction: column; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 14px 40px rgba(13, 36, 61, .07); overflow: hidden; transition: 220ms cubic-bezier(.22,1,.36,1); }
.project-card:hover { border-color: #c5d7e6; box-shadow: var(--shadow); transform: translateY(-5px); }
.project-card__media { position: relative; display: grid; height: 228px; flex: 0 0 228px; place-items: center; padding: 20px; background: linear-gradient(145deg, #eaf3f7, #f8fbfc); overflow: hidden; }
.project-card__media::after { position: absolute; inset: auto -30px -70px auto; width: 170px; height: 170px; border: 1px solid rgba(28, 159, 151, .18); border-radius: 50%; content: ""; }
.project-card__media img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; transition: transform 300ms cubic-bezier(.22,1,.36,1); }
.project-card:hover .project-card__media img { transform: scale(1.035); }
.project-card__number { position: absolute; z-index: 2; top: 14px; left: 14px; display: grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; color: #fff; background: rgba(16,34,56,.9); font-size: 11px; font-weight: 800; }
.project-card__body { display: flex; min-height: 0; flex: 1; flex-direction: column; padding: 24px; }
.project-card__category { margin: 0 0 9px; color: #168f87; font-size: 11px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.project-card h3 { margin: 0; font-size: 24px; line-height: 1.18; letter-spacing: -.025em; }
.project-card__description { display: -webkit-box; margin: 12px 0 18px; color: var(--muted); font-size: 14px; line-height: 1.55; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.project-card__tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 20px; }
.project-card__tags span { padding: 6px 9px; border-radius: 6px; color: #536275; background: #f1f5f8; font-size: 11px; font-weight: 680; }
.project-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 17px; border-top: 1px solid #edf1f4; }
.project-card__footer button { padding: 0; border: 0; color: var(--blue); background: transparent; font-size: 13px; font-weight: 780; cursor: pointer; }
.project-card__footer a { color: #778394; font-size: 12px; font-weight: 700; }
.empty-state { padding: 60px 0; color: var(--muted); text-align: center; }

.delivery-section { padding: 104px 0 112px; color: #fff; background: var(--night); }
.section-heading--light h2 { color: #fff; }
.section-heading--light > p { color: rgba(255,255,255,.62); }
.delivery-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; margin-top: 54px; }
.delivery-grid article { min-height: 250px; padding: 25px; border: 1px solid rgba(150,198,214,.18); border-radius: 16px; background: linear-gradient(145deg, rgba(30,59,80,.9), rgba(14,34,54,.95)); }
.delivery-grid span { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid rgba(53,208,193,.5); border-radius: 50%; color: var(--teal); font-size: 12px; font-weight: 800; }
.delivery-grid h3 { margin: 46px 0 12px; color: #fff; font-size: 24px; }
.delivery-grid p { margin: 0; color: rgba(255,255,255,.62); font-size: 14px; line-height: 1.6; }

.contact-section { padding: 108px 0; background: #fff; }
.contact-grid { display: grid; grid-template-columns: minmax(0,.85fr) minmax(520px,1.15fr); gap: 80px; }
.contact-copy { max-width: 540px; margin: 24px 0 0; color: var(--muted); line-height: 1.65; }
.contact-links { display: grid; gap: 14px; margin-top: 38px; }
.contact-links a { display: grid; grid-template-columns: 88px 1fr; color: var(--ink); font-weight: 750; }
.contact-links span { color: #8994a2; font-size: 12px; font-weight: 750; text-transform: uppercase; }
.contact-form { padding: 32px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); box-shadow: 0 20px 60px rgba(15,34,56,.08); }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
.contact-form label { display: grid; gap: 8px; margin-bottom: 22px; color: #556477; font-size: 12px; font-weight: 760; text-transform: uppercase; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; border: 0; border-bottom: 1px solid #cfd8e0; border-radius: 0; outline: 0; color: var(--ink); background: transparent; font-size: 15px; text-transform: none; }
.contact-form input, .contact-form select { height: 45px; }
.contact-form textarea { padding: 12px 0; resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--blue); }
.form-footer { display: flex; align-items: center; gap: 20px; }
.form-status { margin: 0; color: #168f87; font-size: 13px; font-weight: 700; }
.form-status.is-error { color: #c2413b; }

.site-footer { padding: 58px 0 26px; color: #fff; background: #0a1828; }
.site-footer__top { display: grid; grid-template-columns: 210px 1fr auto; align-items: center; gap: 36px; padding-bottom: 44px; }
.brand--footer { padding: 10px; border-radius: 8px; background: #fff; }
.site-footer__top p { max-width: 520px; margin: 0; color: rgba(255,255,255,.6); line-height: 1.55; }
.footer-socials { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; font-weight: 700; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 30px; padding-top: 25px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.48); font-size: 12px; }
.site-footer__bottom p { margin: 0; }
.site-footer__bottom div { display: flex; gap: 20px; }

.case-dialog { width: min(1080px, calc(100% - 36px)); max-height: calc(100vh - 36px); padding: 0; border: 0; border-radius: 20px; background: transparent; box-shadow: 0 34px 100px rgba(0,0,0,.36); overflow: hidden; }
.case-dialog::backdrop { background: rgba(4,14,26,.74); backdrop-filter: blur(6px); }
.case-dialog__surface { position: relative; max-height: calc(100vh - 36px); background: #fff; overflow: auto; }
.case-dialog__close { position: sticky; z-index: 5; top: 18px; float: right; width: 44px; height: 44px; margin: 18px 18px -62px 0; border: 0; border-radius: 50%; color: #fff; background: rgba(10,24,40,.88); font-size: 27px; cursor: pointer; }
.case-hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 420px; color: #fff; background: var(--night); }
.case-hero__copy { padding: 60px; }
.case-hero__copy .eyebrow { margin-bottom: 16px; }
.case-hero h2 { margin: 0; color: #fff; font-size: clamp(35px,5vw,54px); line-height: 1.04; letter-spacing: -.045em; }
.case-hero p { color: rgba(255,255,255,.68); line-height: 1.6; }
.case-hero__media { display: grid; min-width: 0; place-items: center; padding: 34px; background: linear-gradient(145deg,#e9f4f7,#f8fbfc); }
.case-hero__media img { width: 100%; height: 100%; max-height: 340px; object-fit: contain; }
.case-body { padding: 58px 60px 64px; }
.case-meta { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-bottom: 46px; }
.case-meta div { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.case-meta span { display: block; margin-bottom: 7px; color: #8994a2; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.case-meta strong { font-size: 14px; }
.case-story { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.case-story article { padding-top: 20px; border-top: 2px solid var(--teal); }
.case-story h3 { margin: 0 0 12px; font-size: 21px; }
.case-story p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.case-deliverables { margin-top: 46px; padding: 28px; border-radius: 14px; background: var(--paper); }
.case-deliverables h3 { margin: 0 0 18px; }
.case-deliverables ul { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px 28px; margin: 0; padding: 0; list-style: none; }
.case-deliverables li { position: relative; padding-left: 22px; color: #536275; font-size: 14px; }
.case-deliverables li::before { position: absolute; top: 7px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); content: ""; }
.case-gallery { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin-top: 42px; }
.case-gallery figure { display: grid; min-height: 260px; margin: 0; place-items: center; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: #eef4f7; overflow: hidden; }
.case-gallery img { width: 100%; height: 100%; max-height: 480px; object-fit: contain; }

@media (max-width: 1020px) {
  .desktop-nav, .phone-link { display: none; }
  .menu-toggle { display: block; }
  .portfolio-hero__grid, .contact-grid { grid-template-columns: 1fr; }
  .portfolio-hero { min-height: 0; }
  .portfolio-hero__grid { gap: 50px; }
  .hero-proof { grid-template-columns: repeat(3,1fr); }
  .hero-proof div { grid-template-columns: 1fr; gap: 8px; }
  .portfolio-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .delivery-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .contact-grid { gap: 48px; }
  .case-hero { grid-template-columns: 1fr; }
  .case-hero__media { min-height: 330px; }
}

@media (max-width: 680px) {
  .portfolio-shell { width: min(100% - 30px, 1240px); }
  .site-header__inner { width: calc(100% - 28px); height: 66px; }
  .brand { width: 145px; }
  .header-actions .button { display: none; }
  .portfolio-hero { padding: 80px 0; }
  .portfolio-hero h1 { font-size: clamp(42px,13vw,62px); }
  .hero-proof { grid-template-columns: 1fr; }
  .hero-proof div { grid-template-columns: 110px 1fr; }
  .section-heading { display: grid; gap: 22px; }
  .portfolio-section, .delivery-section, .contact-section { padding: 78px 0; }
  .portfolio-grid, .delivery-grid, .form-grid, .case-story, .case-deliverables ul, .case-gallery { grid-template-columns: 1fr; }
  .project-card { min-height: 500px; }
  .contact-form { padding: 24px 20px; }
  .form-footer { align-items: flex-start; flex-direction: column; }
  .site-footer__top { grid-template-columns: 1fr; }
  .site-footer__bottom { align-items: flex-start; flex-direction: column; }
  .case-dialog { width: calc(100% - 18px); max-height: calc(100vh - 18px); }
  .case-dialog__surface { max-height: calc(100vh - 18px); }
  .case-hero__copy, .case-body { padding: 40px 24px; }
  .case-meta { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
