/* Cloudanica — site styles */

@font-face { font-family: "Familjen Grotesk"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/familjen-grotesk-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Familjen Grotesk"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/familjen-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Familjen Grotesk"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/familjen-grotesk-latin-600-normal.woff2") format("woff2"); }

:root {
  --cream: #E7E4D0;
  --card: #F3F1E6;
  --green: #8AC191;
  --teal: #509F92;
  --violet: #716DB6;
  --blue: #B6CDD8;
  --ink: #1D2B2E;
  --ink-soft: #3C4A4D;
  --link-hover: #4E4A93;
  --font: "Familjen Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --space-section: clamp(64px, 9vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--cream); font-size: 18px; line-height: 1.55; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: var(--ink); }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 4px; }
section[id] { scroll-margin-top: 16px; }

.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 8px; z-index: 10; }
.skip:focus { top: 16px; color: var(--cream); }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 64px); }

/* Type */
.h1 { text-wrap: balance; font-size: clamp(44px, 6.6vw, 88px); font-weight: 600; letter-spacing: -0.035em; line-height: 0.98; }
.h2 { text-wrap: balance; font-size: clamp(36px, 4.6vw, 60px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.04; }
.h3 { font-size: 26px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; max-width: 640px; }
.kicker { font-size: 19px; font-weight: 500; color: var(--ink-soft); }
.stack { display: flex; flex-direction: column; gap: 20px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: 999px; font-size: 18px; font-weight: 600; text-decoration: none; border: 2px solid var(--ink); transition: background-color .15s ease, color .15s ease; }
.btn-primary { background: var(--ink); color: var(--cream); }
.btn-primary:hover { background: #2E4246; color: var(--cream); border-color: #2E4246; }
.btn-secondary { background: transparent; color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--cream); }
.btn-small { min-height: 44px; padding: 0 22px; font-size: 16px; }
.btn-large { min-height: 60px; padding: 0 32px; font-size: 20px; }

/* Header */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 28px; padding-bottom: 28px; }
.logo img { height: 44px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 17px; font-weight: 500; }
.nav a:not(.btn) { text-decoration: none; }
.nav a:not(.btn):hover { text-decoration: underline; text-underline-offset: 4px; }

/* Hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 48px 64px; padding-top: clamp(32px, 7vw, 96px); padding-bottom: var(--space-section); }
.hero-text { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; padding-top: 8px; }
.hero-mark { flex: 1 1 280px; display: flex; flex-direction: column; gap: 24px; }
.hero-mark svg { width: min(300px, 70vw); height: auto; }
.legend { display: flex; flex-direction: column; gap: 10px; font-size: 18px; font-weight: 500; }
.legend li { display: flex; gap: 12px; align-items: center; }
.bar { display: inline-block; width: 22px; height: 8px; border-radius: 4px; flex-shrink: 0; }
.bar-violet { background: var(--violet); }
.bar-teal { background: var(--teal); }
.bar-green { background: var(--green); }

/* Sound familiar */
.familiar { display: flex; flex-wrap: wrap; gap: 32px 64px; padding-bottom: var(--space-section); }
.familiar .h2 { flex: 1 1 280px; }
.pains { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.pains li { display: flex; gap: 18px; align-items: baseline; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.3; letter-spacing: -0.01em; font-weight: 500; }
.dot { flex-shrink: 0; width: 14px; height: 14px; border-radius: 3px; transform: translateY(-2px); }
.dot-violet { background: var(--violet); }
.dot-teal { background: var(--teal); }
.dot-green { background: var(--green); }

/* Bands */
.band { padding: var(--space-section) 0; }
.band-blue { background: var(--blue); }
.band-ink { background: var(--ink); color: var(--cream); }
.band-ink a { color: var(--cream); }
.band-teal { background: var(--teal); }
.band-inner { display: flex; flex-direction: column; gap: 56px; }
.band-inner .h2 { max-width: 820px; }

/* Roles */
.roles { display: flex; flex-wrap: wrap; gap: 48px; }
.role { flex: 1 1 280px; display: flex; flex-direction: column; gap: 14px; }
.role svg { width: 64px; height: 64px; }
.role .h3 { font-size: 28px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px 48px; }
.stat { display: flex; flex-direction: column; gap: 8px; padding-top: 20px; border-top: 2px solid var(--teal); }
.stat-figure { font-size: clamp(40px, 4vw, 56px); font-weight: 600; letter-spacing: -0.02em; line-height: 1; color: var(--green); }
.stat-label { font-size: 17px; line-height: 1.45; }

/* Work */
.work { padding-top: var(--space-section); padding-bottom: var(--space-section); display: flex; flex-direction: column; gap: 40px; }
.cases { display: flex; flex-wrap: wrap; gap: 20px; }
.case { flex: 1 1 420px; display: flex; flex-direction: column; gap: 12px; padding: 32px; background: var(--card); border-radius: 20px; }
.case .h3 { font-size: 24px; }
.case-mark { width: 28px; height: 8px; border-radius: 4px; }

/* About */
.about { padding-bottom: var(--space-section); display: flex; flex-wrap: wrap; gap: 40px 64px; align-items: flex-start; }
.portrait { flex: 1 1 280px; max-width: 400px; background: var(--green); border-radius: 20px; overflow: hidden; padding-top: 40px; }
.portrait img { width: 100%; height: auto; }
.about-text { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }

/* Contact */
.contact { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.contact .h2 { max-width: 900px; }
.contact .btn { margin-top: 8px; }

/* Footer */
.site-footer { background: var(--ink); color: var(--cream); padding: 40px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-inner img { height: 36px; width: auto; }
.footer-inner p { font-size: 15px; }

/* Small screens: keep the header to the logo and the main action */
@media (max-width: 760px) {
  .nav a:not(.btn) { display: none; }
  .logo img { height: 36px; }
  .site-header { padding-top: 20px; padding-bottom: 20px; }
  .case { padding: 24px; }
  .hero-mark { flex-direction: row; align-items: center; gap: 28px; }
  .hero-mark svg { width: 140px; }
}
@media (max-width: 400px) {
  .nav .btn-small { padding: 0 16px; font-size: 15px; }
  .logo img { height: 30px; }
}
