:root {
  --bg: #071720;
  --bg-2: #0a1d28;
  --panel: #102632;
  --panel-soft: rgba(255,255,255,.035);
  --line: rgba(196, 222, 236, .14);
  --text: #f4f8fa;
  --muted: #c2d0d8;
  --dim: #89a4b3;
  --blue: #4bb5ed;
  --blue-2: #2b8fc2;
  --green: #a4e2d2;
  --warm: #f2cfa7;
  --max: 1420px;
  --radius: 22px;
  --shadow: 0 28px 80px rgba(0,0,0,.20);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 78% 8%, rgba(46, 114, 145, .18), transparent 29rem),
    linear-gradient(120deg, #06151e 0%, #0a1d28 48%, #0a1b25 100%);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: 12px; z-index: 100; transform: translateY(-160%); background: white; color: #071720; padding: 10px 14px; border-radius: 999px; }
.skip-link:focus { transform: none; }

.shell { width: min(var(--max), calc(100% - 64px)); margin: 0 auto; }
.site-header { position: relative; z-index: 20; border-bottom: 1px solid transparent; }
.nav-shell { min-height: 92px; display: grid; grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr); align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 25px; letter-spacing: -.035em; white-space: nowrap; }
.brand img { width: 38px; height: 38px; }
.brand strong { font-weight: 800; }
.brand-small { font-size: 20px; }
.brand-small img { width: 31px; height: 31px; }
.nav { display: flex; align-items: center; justify-content: center; gap: 36px; font-size: 14px; color: #d5e0e6; }
.nav a { padding: 12px 0; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: var(--blue); transform: scaleX(0); transition: transform .2s ease; }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav-cta { justify-self: end; }
.menu-toggle { display: none; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 48px; padding: 0 24px; border-radius: 999px; background: linear-gradient(135deg, #52b9ef, #389dd0); color: #fff; font-weight: 800; font-size: 14px; box-shadow: 0 10px 30px rgba(60, 167, 220, .18); transition: transform .18s ease, filter .18s ease; }
.button:hover { transform: translateY(-1px); filter: brightness(1.05); }
.button-small { min-height: 42px; padding: 0 20px; font-size: 13px; }
.button-ghost { background: transparent; border: 1px solid rgba(210,231,241,.42); box-shadow: none; color: var(--text); }

.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-glow { position: absolute; width: 640px; height: 640px; border-radius: 50%; right: 8%; top: -210px; background: radial-gradient(circle, rgba(87, 175, 195, .18) 0, rgba(87,175,195,.07) 42%, transparent 70%); pointer-events: none; }
.hero-grid { position: relative; min-height: 500px; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(560px, .98fr); align-items: end; gap: clamp(40px, 6vw, 100px); }
.hero-copy { align-self: center; max-width: 680px; padding: 56px 0 72px; }
.eyebrow { margin: 0 0 15px; color: #76b8d4; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .18em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 22px; font-size: clamp(48px, 5vw, 78px); line-height: 1.04; letter-spacing: -.055em; font-weight: 800; }
h2 { margin-bottom: 24px; font-size: clamp(28px, 2.35vw, 40px); line-height: 1.18; letter-spacing: -.035em; }
h3 { margin-bottom: 8px; font-size: 18px; letter-spacing: -.025em; }
.lead { max-width: 650px; margin-bottom: 30px; color: #d5e0e6; font-size: clamp(16px, 1.2vw, 20px); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-portrait { position: relative; align-self: stretch; min-height: 500px; }
.portrait-frame { position: absolute; left: 0; right: 110px; bottom: 0; height: 100%; overflow: hidden; }
.portrait-frame::before { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(90deg, var(--bg) 0%, rgba(7,23,32,.36) 12%, transparent 34%), linear-gradient(0deg, var(--bg) 0%, transparent 14%), radial-gradient(circle at 49% 45%, transparent 0 36%, rgba(5,18,25,.10) 55%, rgba(5,18,25,.38) 100%); pointer-events: none; }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 52% 42%; filter: saturate(.86) contrast(1.03) brightness(.88); transform: scale(1.02); }
.portrait-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,23,32,.92) 0%, rgba(7,23,32,.32) 17%, transparent 44%); z-index: 1; pointer-events: none; }
.hand-note { position: absolute; right: 6px; top: 155px; z-index: 5; transform: rotate(-5deg); color: #76c8f4; font-family: "Source Serif 4", Georgia, serif; font-style: italic; font-size: 22px; line-height: 1.28; opacity: .95; text-shadow: 0 0 28px rgba(77,180,237,.24); }
.hand-note svg { width: 130px; margin-top: 5px; }
.hand-note path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.section { border-bottom: 1px solid var(--line); }
.services { padding: 44px 0 54px; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 18px; }
.service { display: grid; grid-template-columns: 70px 1fr; gap: 22px; min-height: 170px; padding: 10px 44px 8px 0; }
.service + .service { border-left: 1px solid var(--line); padding-left: 44px; }
.service p { margin-bottom: 16px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.service-icon { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; color: #0c2633; }
.service-icon svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.icon-blue { background: #8bd1f7; }
.icon-green { background: var(--green); }
.icon-warm { background: var(--warm); }
.text-link { display: inline-flex; gap: 10px; align-items: center; color: #57b9ec; font-size: 13px; font-weight: 700; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.about { padding: 50px 0 52px; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .78fr) minmax(250px, .55fr); gap: 0; align-items: stretch; }
.about-copy { padding-right: 48px; }
.about-copy p:not(.eyebrow) { color: var(--muted); max-width: 720px; margin-bottom: 13px; font-size: 14px; line-height: 1.65; }
.about-copy .button { margin-top: 8px; }
.facts { border-left: 1px solid var(--line); padding: 12px 42px; display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.fact { display: grid; grid-template-columns: 26px 1fr; gap: 14px; align-items: center; color: #d4dfe5; font-size: 13px; line-height: 1.45; }
.fact-icon { width: 24px; display: inline-flex; justify-content: center; color: #f4f9fb; font-size: 18px; }
blockquote { margin: 0; border-left: 1px solid var(--line); padding: 10px 0 8px 42px; display: flex; flex-direction: column; justify-content: center; }
blockquote .quote-mark { color: #7ba7bd; font-family: Georgia, serif; font-size: 66px; line-height: .7; margin: 7px 0 10px; }
blockquote p:not(.eyebrow) { margin: 0 0 14px; font-family: "Source Serif 4", Georgia, serif; font-size: 27px; font-style: italic; line-height: 1.23; color: #eef4f7; }
blockquote cite { color: var(--muted); font-size: 12px; font-style: normal; }

.cases { padding: 48px 0 58px; }
.section-heading-row { display: flex; justify-content: space-between; align-items: end; }
.case-grid { display: grid; grid-template-columns: 1fr 1fr .86fr; gap: 20px; }
.case-card { min-height: 178px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: rgba(255,255,255,.025); display: grid; grid-template-columns: 40% 1fr; box-shadow: var(--shadow); }
.case-visual { min-height: 178px; display: flex; align-items: end; padding: 20px; font-weight: 800; font-size: 28px; line-height: .9; letter-spacing: -.05em; }
.case-visual.yarn { color: #271811; background: radial-gradient(circle at 25% 35%, #d3af85 0 11%, transparent 12%), radial-gradient(circle at 52% 58%, #9f765f 0 15%, transparent 16%), radial-gradient(circle at 72% 28%, #b88677 0 14%, transparent 15%), linear-gradient(145deg, #e7d7bf, #84736a); }
.case-visual.bibbot { background: linear-gradient(145deg, #172c37, #244b5f); align-items: center; justify-content: center; gap: 8px; }
.mini-chart { width: 20px; height: 70px; border-radius: 5px 5px 0 0; background: #74c0e9; align-self: end; opacity: .95; }
.mini-chart.short { height: 40px; background: #9fd9cf; }
.mini-chart.mid { height: 56px; background: #d4ad80; }
.case-body { padding: 24px; align-self: center; }
.case-body h3 { font-size: 19px; margin: 7px 0 6px; }
.case-body p { color: var(--muted); font-size: 13px; margin-bottom: 0; }
.case-tag { color: #7cc6e9; font-size: 10px; text-transform: uppercase; letter-spacing: .14em; font-weight: 800; }
.case-invite { grid-template-columns: 1fr; background: linear-gradient(145deg, rgba(46,109,136,.16), rgba(255,255,255,.025)); }
.case-invite .case-body p { margin-bottom: 14px; }

.contact { padding: 30px 0; }
.contact-panel { display: grid; grid-template-columns: 1.05fr 1.15fr .65fr; align-items: center; gap: 40px; padding: 26px 34px; border: 1px solid rgba(187,219,233,.08); border-radius: var(--radius); background: linear-gradient(100deg, rgba(255,255,255,.035), rgba(76,164,205,.07)); }
.contact-panel h2 { margin: 0; font-size: 30px; }
.contact-panel p:not(.eyebrow) { color: var(--muted); margin: 0; font-size: 14px; }
.contact-action { text-align: center; }
.contact-action small { display: block; color: var(--dim); font-size: 10px; margin-top: 8px; }

.site-footer { padding: 28px 0 34px; background: rgba(2,12,17,.22); }
.footer-grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; }
.footer-links { display: flex; gap: 28px; font-size: 12px; color: #c3d0d7; }
.footer-grid > p { justify-self: end; margin: 0; color: #8ea4b0; font-size: 11px; }

@media (max-width: 1180px) {
  .shell { width: min(var(--max), calc(100% - 44px)); }
  .nav-shell { grid-template-columns: 1fr auto; }
  .nav { grid-row: 2; grid-column: 1 / -1; padding-bottom: 16px; }
  .nav-cta { grid-column: 2; grid-row: 1; }
  .hero-grid { grid-template-columns: minmax(0, .95fr) minmax(460px, 1.05fr); gap: 28px; }
  .portrait-frame { right: 80px; }
  .service { padding-right: 28px; }
  .service + .service { padding-left: 28px; }
  .about-copy { padding-right: 34px; }
  .facts { padding-left: 30px; padding-right: 30px; }
  blockquote { padding-left: 30px; }
}

@media (max-width: 820px) {
  .shell { width: min(100% - 30px, 720px); }
  .site-header { border-bottom-color: var(--line); }
  .nav-shell { min-height: 76px; display: grid; grid-template-columns: 1fr auto; }
  .brand { font-size: 21px; }
  .brand img { width: 33px; height: 33px; }
  .menu-toggle { display: inline-flex; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: transparent; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: white; }
  .menu-toggle span:not(.sr-only) { width: 17px; height: 1px; background: currentColor; }
  .nav-cta { display: none; }
  .nav { display: none; grid-column: 1 / -1; padding: 4px 0 18px; flex-direction: column; gap: 0; align-items: stretch; }
  .nav.open { display: flex; }
  .nav a { padding: 11px 0; border-top: 1px solid var(--line); }
  .nav a::after { display: none; }
  .hero-grid { min-height: auto; grid-template-columns: 1fr; gap: 0; }
  .hero-copy { padding: 58px 0 34px; }
  h1 { font-size: clamp(44px, 12vw, 64px); }
  .hero-portrait { min-height: 440px; }
  .portrait-frame { left: 0; right: 0; height: 100%; }
  .portrait-frame::before { background: linear-gradient(90deg, rgba(7,23,32,.88) 0, transparent 22%), linear-gradient(0deg, var(--bg) 0%, transparent 16%), linear-gradient(180deg, var(--bg) 0%, transparent 13%); }
  .portrait-frame img { object-position: center 38%; }
  .hand-note { top: 70px; right: 6%; font-size: 18px; }
  .service-grid { grid-template-columns: 1fr; }
  .service { padding: 22px 0; min-height: 0; }
  .service + .service { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .about-grid { grid-template-columns: 1fr; }
  .about-copy { padding: 0 0 28px; }
  .facts, blockquote { border-left: 0; border-top: 1px solid var(--line); padding: 28px 0; }
  blockquote p:not(.eyebrow) { font-size: 26px; max-width: 460px; }
  .case-grid { grid-template-columns: 1fr; }
  .case-card { grid-template-columns: 34% 1fr; }
  .case-invite { grid-template-columns: 1fr; }
  .contact-panel { grid-template-columns: 1fr; gap: 16px; text-align: left; }
  .contact-action { text-align: left; }
  .footer-grid { grid-template-columns: 1fr; justify-items: start; }
  .footer-grid > p { justify-self: start; }
}

@media (max-width: 520px) {
  .shell { width: min(100% - 24px, 480px); }
  h1 { font-size: 46px; }
  h2 { font-size: 30px; }
  .lead { font-size: 16px; }
  .hero-actions .button { width: 100%; }
  .hero-portrait { min-height: 360px; }
  .hand-note { display: none; }
  .service { grid-template-columns: 52px 1fr; gap: 17px; }
  .service-icon { width: 48px; height: 48px; }
  .case-card { grid-template-columns: 1fr; }
  .case-visual { min-height: 150px; }
  .footer-links { flex-wrap: wrap; gap: 14px 22px; }
}
