/* ============================================
   SkroWeb — Design Tokens & Global Styles
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,500;12..96,600;12..96,700&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  /* Color */
  --blue-50:  oklch(0.97 0.02 245);
  --blue-100: oklch(0.93 0.04 245);
  --blue-200: oklch(0.86 0.07 245);
  --blue-400: oklch(0.74 0.12 245);
  --blue-500: oklch(0.65 0.14 245);   /* primary */
  --blue-600: oklch(0.58 0.14 248);
  --blue-700: oklch(0.48 0.12 250);
  --blue-900: oklch(0.28 0.08 250);

  --cream:    oklch(0.985 0.006 85);  /* page background */
  --cream-2:  oklch(0.965 0.010 85);  /* alt section */
  --paper:    oklch(0.995 0.003 85);

  --ink:      oklch(0.22 0.02 250);
  --ink-2:    oklch(0.36 0.02 250);
  --ink-3:    oklch(0.52 0.02 250);
  --line:     oklch(0.90 0.01 250);
  --line-2:   oklch(0.85 0.015 250);

  /* Type */
  --font-display: "Bricolage Grotesque", ui-serif, Georgia, serif;
  --font-body: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;

  /* Radii */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Shadows */
  --sh-1: 0 1px 2px oklch(0.22 0.02 250 / 0.04), 0 4px 12px oklch(0.22 0.02 250 / 0.04);
  --sh-2: 0 2px 4px oklch(0.22 0.02 250 / 0.05), 0 10px 28px oklch(0.22 0.02 250 / 0.07);
  --sh-3: 0 8px 24px oklch(0.45 0.14 248 / 0.18), 0 2px 6px oklch(0.45 0.14 248 / 0.08);
  --sh-focus: 0 0 0 4px oklch(0.65 0.14 245 / 0.22);

  /* Spacing helpers */
  --section-y: clamp(80px, 10vw, 140px);
  --gutter: clamp(20px, 4vw, 56px);
  --max-w: 1240px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--blue-200); color: var(--blue-900); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

/* Reusable containers ============================================ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.sw-section {
  padding-block: var(--section-y);
  position: relative;
}

.sw-eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-600);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.sw-eyebrow::before {
  content: "";
  width: 24px;
  height: 1.5px;
  background: var(--blue-500);
  border-radius: 2px;
}

.sw-section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 640px;
  margin-bottom: 56px;
}

.sw-section-head h2 {
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.05;
}

.sw-section-head p {
  font-size: 18px;
  color: var(--ink-2);
  max-width: 56ch;
}

/* Buttons ============================================ */
.sw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  transition: transform 220ms cubic-bezier(.2,.7,.2,1),
              box-shadow 220ms ease,
              background 220ms ease,
              color 220ms ease,
              border-color 220ms ease;
  white-space: nowrap;
}

.sw-btn-primary {
  background: var(--blue-500);
  color: white;
  box-shadow: var(--sh-3);
}
.sw-btn-primary:hover {
  background: var(--blue-600);
  transform: translateY(-1px);
  box-shadow: 0 12px 32px oklch(0.45 0.14 248 / 0.28);
}
.sw-btn-primary:active { transform: translateY(0); }

.sw-btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.sw-btn-ghost:hover {
  border-color: var(--ink);
  background: var(--paper);
}

.sw-btn-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue-600);
  font-weight: 600;
  font-size: 14px;
}
.sw-btn-arrow svg { transition: transform 220ms ease; }
.sw-btn-arrow:hover svg { transform: translateX(4px); }

/* Animations utilities ============================================ */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms cubic-bezier(.2,.7,.2,1),
              transform 700ms cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--delay, 0ms);
  will-change: opacity, transform;
}
.fade-up.in {
  opacity: 1;
  transform: none;
}

.fade-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 700ms cubic-bezier(.2,.7,.2,1),
              transform 700ms cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--delay, 0ms);
}
.fade-left.in { opacity: 1; transform: none; }

.fade-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 700ms cubic-bezier(.2,.7,.2,1),
              transform 700ms cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--delay, 0ms);
}
.fade-right.in { opacity: 1; transform: none; }

.fade-in {
  opacity: 0;
  transition: opacity 800ms ease;
  transition-delay: var(--delay, 0ms);
}
.fade-in.in { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .fade-up, .fade-left, .fade-right, .fade-in {
    opacity: 1 !important;
    transform: none !important;
  }
  html { scroll-behavior: auto; }
}

/* ============================================
   Navbar
   ============================================ */
.sw-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 18px 0;
  transition: background 300ms ease, box-shadow 300ms ease, padding 300ms ease;
}
.sw-nav.sw-scrolled {
  background: oklch(0.985 0.006 85 / 0.78);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 1px 0 var(--line);
  padding: 12px 0;
}

.sw-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.sw-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.03em;
  display: inline-flex;
  align-items: center;
  gap: 0;
  color: var(--ink);
}
.sw-logo-skro { color: var(--blue-500); }
.sw-logo-web  { color: var(--ink-3); }

.sw-logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue-400), var(--blue-600));
  position: relative;
  display: grid;
  place-items: center;
  box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.3),
              0 4px 12px oklch(0.45 0.14 248 / 0.3);
}
.sw-logo-mark::after {
  content: "";
  width: 10px;
  height: 10px;
  border: 2px solid white;
  border-radius: 50%;
  border-top-color: transparent;
  border-right-color: transparent;
  transform: rotate(-45deg);
}

.sw-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.sw-nav-links a {
  position: relative;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  transition: color 200ms ease, background 200ms ease;
}
.sw-nav-links a:hover { color: var(--ink); }
.sw-nav-links a.active {
  color: var(--blue-700);
  background: var(--blue-50);
}

.sw-nav-cta { display: inline-flex; align-items: center; gap: 12px; }

.sw-nav-burger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  background: var(--paper);
  align-items: center;
  justify-content: center;
}

@media (max-width: 880px) {
  .sw-nav-links, .sw-nav-cta .sw-btn { display: none; }
  .sw-nav-burger { display: inline-flex; }
}

/* Mobile menu */
.sw-mobile-menu {
  position: fixed;
  inset: 0;
  background: oklch(0.985 0.006 85 / 0.98);
  backdrop-filter: blur(20px);
  z-index: 60;
  display: flex;
  flex-direction: column;
  padding: 28px var(--gutter);
  transform: translateY(-100%);
  transition: transform 360ms cubic-bezier(.2,.7,.2,1);
}
.sw-mobile-menu.open { transform: translateY(0); }
.sw-mobile-menu .sw-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.sw-mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 60px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sw-mobile-menu a {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 500;
  padding: 12px 0;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

/* ============================================
   Hero — editorial studio direction
   ============================================ */
.sw-hero {
  padding-top: clamp(40px, 6vw, 80px);
  padding-bottom: clamp(64px, 8vw, 120px);
  position: relative;
}

/* Top meta bar */
.hero-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-bottom: 28px;
  margin-bottom: clamp(60px, 9vw, 120px);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-3);
  letter-spacing: 0.005em;
}
.hero-topbar__l,
.hero-topbar__r {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.hero-topbar .idx {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.hero-topbar .div {
  width: 24px;
  height: 1px;
  background: var(--line-2);
}
.hero-topbar .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: oklch(0.78 0.16 145);
  box-shadow: 0 0 0 4px oklch(0.78 0.16 145 / 0.18);
}

/* Main split: claim + image */
.sw-hero-main {
  display: grid;
  grid-template-columns: 0.95fr 1.3fr;
  gap: clamp(24px, 3vw, 48px);
  align-items: center;
  margin-bottom: 24px;
}

.sw-hero-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  padding-block: 8px;
}

/* Statement */
.sw-hero h1 {
  font-size: clamp(52px, 7.2vw, 108px);
  line-height: 0.94;
  letter-spacing: -0.04em;
  font-weight: 500;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}
.sw-hero h1 .sw-line {
  display: block;
}
.sw-hero h1 .serif {
  font-style: italic;
  font-weight: 400;
  color: var(--blue-600);
  letter-spacing: -0.02em;
}

.sw-hero-sub {
  margin: 28px 0 0;
  max-width: 44ch;
  font-size: 18px;
  color: var(--ink-2);
  line-height: 1.6;
}

.sw-hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.sw-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-2);
  font-weight: 600;
  font-size: 14.5px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line-2);
  transition: color 200ms ease, border-color 200ms ease, gap 220ms ease;
}
.sw-hero-cta svg { transition: transform 220ms ease; }
.sw-hero-cta:hover {
  color: var(--ink);
  border-color: var(--ink);
  gap: 12px;
}

/* Facts row */
.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero-facts > div { display: flex; flex-direction: column; gap: 8px; }
.hero-facts dt {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-3);
}
.hero-facts dd {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.5;
}
.hero-facts dd a {
  border-bottom: 1px solid var(--line-2);
  transition: color 200ms ease, border-color 200ms ease;
}
.hero-facts dd a:hover {
  color: var(--blue-600);
  border-color: var(--blue-600);
}

/* Right: illustration */
.sw-hero-right {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 640px;
}
.sw-hero-illustration {
  position: relative;
  width: 100%;
  max-width: none;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Allow illustration to bleed beyond the column + page gutter */
  margin-right: calc(var(--gutter) * -1);
  transform: scale(1.08);
  transform-origin: center;
}
.sw-hero-illustration::before {
  content: "";
  position: absolute;
  inset: 8%;
  background: radial-gradient(circle at 50% 50%, var(--blue-100) 0%, transparent 65%);
  filter: blur(10px);
  z-index: 0;
  border-radius: 50%;
}
.sw-hero-illustration img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: heroFloat 7s ease-in-out infinite;
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
  .sw-hero-illustration img { animation: none; }
}

@media (max-width: 980px) {
  .sw-hero-main {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .sw-hero-right { min-height: auto; }
  .sw-hero-illustration {
    max-width: 620px;
    margin: 0 auto;
    transform: none;
  }
}
@media (max-width: 560px) {
  .hero-facts { grid-template-columns: 1fr; gap: 18px; }
  .sw-hero-illustration { max-width: 100%; }
  .sw-hero-actions { gap: 16px; }
}

/* Hero visual ============================================ */
.hero-visual {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--r-xl);
  background:
    radial-gradient(120% 80% at 10% 0%, oklch(0.92 0.07 245) 0%, transparent 60%),
    radial-gradient(120% 80% at 100% 100%, oklch(0.88 0.10 250) 0%, transparent 60%),
    var(--blue-100);
  overflow: hidden;
  box-shadow: var(--sh-2);
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, oklch(0.22 0.02 250 / 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(0.22 0.02 250 / 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(70% 60% at 50% 40%, black, transparent);
}

.mock-window {
  position: absolute;
  border-radius: var(--r-md);
  background: var(--paper);
  box-shadow: 0 20px 50px oklch(0.22 0.02 250 / 0.15),
              0 1px 0 oklch(1 0 0 / 0.8) inset;
  overflow: hidden;
}
.mock-window .bar {
  height: 28px;
  background: oklch(0.96 0.005 250);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 6px;
}
.mock-window .bar span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: oklch(0.85 0.01 250);
}
.mock-window .body { padding: 14px; }

.mock-1 {
  top: 8%;
  left: 6%;
  width: 62%;
  animation: float1 8s ease-in-out infinite;
}
.mock-2 {
  bottom: 8%;
  right: 6%;
  width: 56%;
  animation: float2 9s ease-in-out infinite;
}
@keyframes float1 {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
@keyframes float2 {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(8px); }
}

.mock-line {
  height: 8px;
  background: var(--blue-100);
  border-radius: 4px;
  margin-bottom: 8px;
}
.mock-line.w-60 { width: 60%; }
.mock-line.w-80 { width: 80%; }
.mock-line.w-40 { width: 40%; }
.mock-card {
  background: linear-gradient(135deg, var(--blue-400), var(--blue-600));
  border-radius: 10px;
  height: 70px;
  margin-top: 10px;
  position: relative;
  overflow: hidden;
}
.mock-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 80% at 80% 20%, oklch(1 0 0 / 0.35), transparent 70%);
}

.mock-2 .body { padding: 12px; }
.mock-2 .stat {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}
.mock-2 .stat:last-child { border-bottom: none; }
.mock-2 .stat .k {
  font-size: 11px;
  color: var(--ink-3);
}
.mock-2 .stat .v {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.hero-blob {
  position: absolute;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: var(--blue-500);
  filter: blur(70px);
  opacity: 0.35;
  z-index: 0;
}
.hero-blob.a { top: -40px; right: -40px; }
.hero-blob.b { bottom: -60px; left: -40px; background: oklch(0.78 0.10 260); }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { aspect-ratio: 1/1; max-height: 480px; }
}

/* ============================================
   Services
   ============================================ */
.sw-services { background: var(--cream-2); }
.sw-services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.sw-service-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  overflow: hidden;
  transition: transform 280ms cubic-bezier(.2,.7,.2,1),
              box-shadow 280ms ease,
              border-color 280ms ease;
}
.sw-service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-2);
  border-color: var(--blue-200);
}
.sw-service-card::before {
  content: "";
  position: absolute;
  inset: auto -40% -60% auto;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--blue-100) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 400ms ease;
  pointer-events: none;
}
.sw-service-card:hover::before { opacity: 1; }

.sw-service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--blue-50);
  display: grid;
  place-items: center;
  color: var(--blue-600);
  flex-shrink: 0;
}
.sw-service-card h3 {
  font-size: 21px;
  line-height: 1.2;
  font-weight: 600;
}
.sw-service-card p {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.55;
  flex: 1;
}
.sw-service-card .price {
  font-size: 13px;
  color: var(--ink-3);
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.sw-service-card .price strong {
  color: var(--ink);
  font-weight: 600;
}

@media (max-width: 1024px) {
  .sw-services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .sw-services-grid { grid-template-columns: 1fr; }
}

/* ============================================
   Portfolio
   ============================================ */
.sw-portfolio-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 56px;
  gap: 40px;
  flex-wrap: wrap;
}

.sw-portfolio-filters {
  display: flex;
  gap: 6px;
  padding: 4px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
}
.sw-portfolio-filters button {
  border: none;
  background: transparent;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  transition: background 200ms ease, color 200ms ease;
}
.sw-portfolio-filters button.active {
  background: var(--ink);
  color: white;
}

.sw-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 22px;
}
.sw-project-card {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: transform 350ms cubic-bezier(.2,.7,.2,1),
              box-shadow 350ms ease;
}
.sw-project-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--sh-2);
}
.sw-project-card .img {
  aspect-ratio: 4/3;
  background: var(--blue-50);
  position: relative;
  overflow: hidden;
}
.sw-project-card .img::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, oklch(0.22 0.02 250 / 0.25));
  opacity: 0;
  transition: opacity 300ms ease;
  z-index: 1;
}
.sw-project-card:hover .img::before { opacity: 1; }
.sw-project-card .img > div {
  width: 100%; height: 100%;
  transition: transform 700ms cubic-bezier(.2,.7,.2,1);
}
.sw-project-card:hover .img > div { transform: scale(1.06); }

.sw-project-card .body { padding: 24px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.sw-project-card h3 { font-size: 22px; font-weight: 600; line-height: 1.15; }
.sw-project-card .desc { color: var(--ink-2); font-size: 14.5px; line-height: 1.55; flex: 1; }

.sw-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.sw-tag {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--blue-50);
  color: var(--blue-700);
  letter-spacing: 0.01em;
}

.sw-project-card .foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.sw-project-card .year { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* Spans: featured = 3 cols, regular = 2 cols */
.sw-project-card.feat { grid-column: span 3; }
.sw-project-card.reg  { grid-column: span 2; }
.sw-project-card.reg .img { aspect-ratio: 4/3; }
.sw-project-card.feat .img { aspect-ratio: 16/10; }

@media (max-width: 1024px) {
  .sw-portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .sw-project-card.feat, .sw-project-card.reg { grid-column: span 1; }
}
@media (max-width: 640px) {
  .sw-portfolio-grid { grid-template-columns: 1fr; }
}

/* Generated project thumbs (placeholder art) */
.thumb {
  width: 100%; height: 100%;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  color: white;
  font-family: var(--font-display);
  font-weight: 500;
}
.thumb .label {
  position: absolute;
  bottom: 14px;
  left: 14px;
  z-index: 2;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: oklch(1 0 0 / 0.16);
  backdrop-filter: blur(8px);
  border: 1px solid oklch(1 0 0 / 0.3);
  padding: 4px 10px;
  border-radius: 999px;
  color: white;
  font-family: var(--font-body);
  font-weight: 500;
}
.thumb svg { max-width: 70%; max-height: 70%; }

.thumb.bg-1 { background: linear-gradient(135deg, oklch(0.65 0.14 245), oklch(0.48 0.12 250)); }
.thumb.bg-2 { background: linear-gradient(135deg, oklch(0.74 0.12 245), oklch(0.58 0.14 248)); }
.thumb.bg-3 { background: linear-gradient(135deg, oklch(0.78 0.10 200), oklch(0.55 0.14 240)); }
.thumb.bg-4 { background: linear-gradient(135deg, oklch(0.82 0.08 60), oklch(0.65 0.14 30)); }
.thumb.bg-5 { background: linear-gradient(135deg, oklch(0.72 0.13 160), oklch(0.55 0.13 200)); }
.thumb.bg-6 { background: linear-gradient(135deg, oklch(0.75 0.10 290), oklch(0.5 0.14 260)); }

/* ============================================
   Partners
   ============================================ */
.sw-partners { background: var(--cream-2); padding-block: 80px; }
.sw-partners-rail {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  align-items: center;
  margin-top: 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: 12px;
}
.sw-partner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  color: var(--ink-3);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
  filter: grayscale(1);
  opacity: 0.65;
  transition: opacity 240ms ease, filter 240ms ease, color 240ms ease;
  gap: 8px;
}
.sw-partner:hover {
  opacity: 1;
  filter: grayscale(0);
  color: var(--ink);
}
.sw-partner .dot { width: 10px; height: 10px; background: currentColor; border-radius: 50%; }
.sw-partner .sq { width: 12px; height: 12px; background: currentColor; transform: rotate(45deg); }
.sw-partner .tri { width: 0; height: 0; border-left: 7px solid transparent; border-right: 7px solid transparent; border-bottom: 12px solid currentColor; }
.sw-partner .bar { width: 14px; height: 4px; background: currentColor; border-radius: 2px; }
.sw-partner .ring { width: 12px; height: 12px; border: 2px solid currentColor; border-radius: 50%; }
.sw-partner .slash { width: 14px; height: 3px; background: currentColor; transform: rotate(-30deg); border-radius: 2px; }

.sw-partners-cap {
  display: flex;
  justify-content: space-between;
  margin-top: 28px;
  flex-wrap: wrap;
  gap: 20px;
}
.sw-partners-cap p { color: var(--ink-3); font-size: 14px; }
.sw-partners-cap strong { color: var(--ink); font-weight: 600; }

@media (max-width: 880px) {
  .sw-partners-rail { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================
   Contact
   ============================================ */
.sw-contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 48px;
  align-items: start;
}

.sw-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 36px;
  box-shadow: var(--sh-1);
}
.sw-form .sw-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.sw-form .sw-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.sw-form label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: 0.005em;
}
.sw-form input,
.sw-form textarea {
  font-family: var(--font-body);
  font-size: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: var(--paper);
  color: var(--ink);
  width: 100%;
  resize: none;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.sw-form input:focus,
.sw-form textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: var(--sh-focus);
}
.sw-form textarea { min-height: 140px; }

.sw-form-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  gap: 16px;
  flex-wrap: wrap;
}
.sw-form-foot .note { font-size: 13px; color: var(--ink-3); }

.sw-form-success {
  text-align: center;
  padding: 40px 20px;
}
.sw-form-success .sw-check {
  width: 64px; height: 64px;
  background: oklch(0.78 0.16 145 / 0.18);
  color: oklch(0.55 0.18 145);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
}
.sw-form-success h4 {
  font-family: var(--font-display);
  font-size: 24px;
  margin-bottom: 8px;
}
.sw-form-success p { color: var(--ink-2); }

/* Contact info side */
.sw-info { display: flex; flex-direction: column; gap: 14px; }
.sw-info-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
  transition: border-color 200ms ease, transform 200ms ease;
}
.sw-info-card:hover {
  border-color: var(--blue-200);
  transform: translateY(-2px);
}
.sw-info-card .ico {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--blue-50);
  color: var(--blue-600);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.sw-info-card .k { font-size: 13px; color: var(--ink-3); margin-bottom: 4px; }
.sw-info-card .v { font-size: 16px; font-weight: 500; color: var(--ink); }
.sw-info-card .v.small { font-size: 14px; font-weight: 400; }

.sw-info-note {
  padding: 24px;
  background: var(--ink);
  color: oklch(0.96 0.01 250);
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
}
.sw-info-note::before {
  content: "";
  position: absolute;
  width: 160px; height: 160px;
  background: var(--blue-500);
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  right: -40px; top: -40px;
}
.sw-info-note h4 {
  color: white;
  font-size: 19px;
  margin-bottom: 8px;
  position: relative;
}
.sw-info-note p {
  font-size: 14.5px;
  line-height: 1.55;
  color: oklch(0.88 0.01 250);
  position: relative;
}

@media (max-width: 880px) {
  .sw-contact-grid { grid-template-columns: 1fr; }
  .sw-form .sw-row { grid-template-columns: 1fr; }
  .sw-form { padding: 24px; }
}

/* ============================================
   Footer
   ============================================ */
.sw-footer {
  background: var(--ink);
  color: oklch(0.85 0.01 250);
  padding: 80px 0 32px;
  position: relative;
  overflow: hidden;
}
.sw-footer::before {
  content: "";
  position: absolute;
  width: 600px; height: 600px;
  background: var(--blue-500);
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.18;
  left: -200px;
  top: -300px;
}
.sw-footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  position: relative;
}
.sw-footer .sw-logo-skro { color: var(--blue-400); }
.sw-footer .sw-logo-web  { color: oklch(0.78 0.01 250); }
.sw-footer-top .sw-blurb {
  max-width: 38ch;
  color: oklch(0.72 0.02 250);
  font-size: 14.5px;
  line-height: 1.55;
  margin-top: 16px;
}
.sw-footer-col h5 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: oklch(0.62 0.02 250);
  margin-bottom: 18px;
}
.sw-footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.sw-footer-col a { font-size: 14.5px; color: oklch(0.85 0.01 250); transition: color 200ms ease; }
.sw-footer-col a:hover { color: white; }

.sw-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid oklch(1 0 0 / 0.08);
  font-size: 13.5px;
  color: oklch(0.62 0.02 250);
  position: relative;
}
.sw-footer-socials { display: flex; gap: 8px; }
.sw-footer-socials a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid oklch(1 0 0 / 0.12);
  display: grid;
  place-items: center;
  color: oklch(0.85 0.01 250);
  transition: background 200ms ease, color 200ms ease, transform 200ms ease;
}
.sw-footer-socials a:hover {
  background: var(--blue-500);
  color: white;
  transform: translateY(-2px);
  border-color: var(--blue-500);
}

@media (max-width: 880px) {
  .sw-footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .sw-footer-top { grid-template-columns: 1fr; gap: 32px; }
}

/* ============================================
   Tooltips for noise / decorations
   ============================================ */
.sw-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.025;
  z-index: 100;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
