/* Fweem — site styles.
   Layout: a single centred column (max 1120px) with a sticky header, full-bleed
   bands for the client strip and the contact call-to-action, and a dark footer.
   The logo's 12° lean is the recurring detail: slanted buttons, speed-line
   markers on eyebrows and list bullets, and the large mark in the home hero. */

@font-face {
	font-family: "Comfortaa";
	src: url("/fonts/Comfortaa-Variable.woff2") format("woff2");
	font-weight: 300 700;
	font-display: swap;
}

@font-face {
	font-family: "Figtree";
	src: url("/fonts/Figtree-Variable.woff2") format("woff2");
	font-weight: 300 900;
	font-display: swap;
}

:root {
	--green: #426B02;
	--green-deep: #2F4D01;
	--lime: #89B80D;
	--ink: #151A12;
	--text: #2A3226;
	--muted: #5D6858;
	--paper: #FFFFFF;
	--mist: #F2F5EC;
	--line: #DDE4D3;
	--footer-text: #C3CCBC;

	--f-display: "Comfortaa", ui-rounded, "Avenir Next", system-ui, sans-serif;
	--f-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--wrap: 1120px;
	--gutter: clamp(16px, 4vw, 40px);
	--radius: 16px;
	--section: clamp(56px, 8vw, 104px);

	color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }

body {
	margin: 0;
	background: var(--paper);
	color: var(--text);
	font-family: var(--f-body);
	font-size: 1.0625rem;
	line-height: 1.6;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: var(--green); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { color: var(--green-deep); }

:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
	position: absolute; left: 12px; top: -60px; z-index: 100;
	background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 12px; }

/* ---------- Type ---------- */

h1, h2, h3 { color: var(--ink); margin: 0; text-wrap: balance; }

h1 {
	font-family: var(--f-display);
	font-weight: 700;
	font-size: clamp(2.4rem, 5.6vw, 4.4rem);
	line-height: 1.06;
	letter-spacing: -.02em;
}

h2 {
	font-family: var(--f-display);
	font-weight: 700;
	font-size: clamp(1.75rem, 3.2vw, 2.5rem);
	line-height: 1.15;
	letter-spacing: -.01em;
}

h3 {
	font-family: var(--f-display);
	font-weight: 700;
	font-size: 1.3rem;
	line-height: 1.25;
}

p { margin: 0; }

.lede { font-size: clamp(1.125rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 60ch; line-height: 1.55; }

.eyebrow {
	display: inline-flex; align-items: center; gap: 10px;
	font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
	color: var(--green);
}
.eyebrow::before {
	content: ""; width: 22px; height: 14px; flex: none;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 14'%3E%3Cg stroke='%2389B80D' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M4 2h16M8 7h11M12 12h6'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain;
	transform: skewX(-12deg);
}

.stack { display: grid; gap: 20px; }
.stack-sm { display: grid; gap: 10px; }

/* ---------- Buttons ---------- */

.actions { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; }

.btn {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 14px 26px;
	border: 2px solid transparent; border-radius: 12px;
	font: 700 1rem/1.2 var(--f-body);
	text-decoration: none;
	transform: skewX(-12deg);
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
	cursor: pointer;
}
.btn > span { display: inline-block; transform: skewX(12deg); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-deep); color: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--green-deep); }
.btn-light:hover { background: var(--mist); color: var(--green-deep); }

.text-link { font-weight: 700; text-decoration: none; }
.text-link::after { content: " →"; }
.text-link:hover { text-decoration: underline; }

/* ---------- Header ---------- */

.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 255, 255, .94);
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
	backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid var(--line);
}
.site-header .wrap {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	min-height: 72px; flex-wrap: wrap;
}
.brand { display: block; flex: none; }
.brand img { height: 40px; width: auto; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.site-nav a {
	position: relative; display: block;
	padding: 8px 14px;
	font-weight: 600; font-size: 1rem; color: var(--ink); text-decoration: none;
	border-radius: 8px;
}
.site-nav a:hover { background: var(--mist); color: var(--ink); }
.site-nav a[aria-current] { color: var(--green); }
.site-nav a[aria-current]::after {
	content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 3px;
	background: var(--lime); border-radius: 2px; transform: skewX(-12deg);
}

@media (max-width: 480px) {
	.brand img { height: 30px; }
	.site-nav ul { gap: 0; }
	.site-nav a { padding: 8px 7px; font-size: .9375rem; }
	.site-nav a[aria-current]::after { left: 7px; right: 7px; }
}
@media (max-width: 400px) {
	.site-header .wrap { gap: 8px; }
	.brand img { height: 26px; }
	.site-nav a { padding: 8px 6px; font-size: .875rem; }
	.site-nav a[aria-current]::after { left: 6px; right: 6px; }
}
@media (max-width: 340px) {
	.site-header .wrap { justify-content: center; padding-block: 8px; }
}

/* ---------- Sections ---------- */

.section { padding-block: var(--section); }
.section-mist { background: var(--mist); }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(28px, 4vw, 44px); max-width: 720px; }
.section-head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 32px; max-width: none; }
.section-head-row > div { display: grid; gap: 14px; max-width: 720px; }

/* ---------- Home hero ---------- */

.hero { padding-block: clamp(48px, 8vw, 112px) clamp(48px, 7vw, 96px); overflow: hidden; }
.hero .wrap {
	display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
	gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hero-copy { display: grid; gap: 24px; }
.hero-copy .actions { margin-top: 8px; }
.hero-mark { position: relative; justify-self: end; width: min(100%, 400px); }
.hero-mark svg { width: 100%; overflow: visible; }

@media (max-width: 820px) {
	.hero .wrap { grid-template-columns: 1fr; }
	.hero-mark { order: -1; justify-self: start; width: min(46vw, 200px); }
}

/* ---------- Client strip ---------- */

.clients { border-block: 1px solid var(--line); padding-block: 36px; }
.clients .wrap { display: grid; gap: 20px; }
.clients-label { font-size: .875rem; font-weight: 600; color: var(--muted); text-align: center; }
.client-logos {
	list-style: none; margin: 0; padding: 0;
	display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
}
.client-logos li { flex: 0 1 170px; min-width: 0; }
@media (min-width: 760px) {
	.client-logos { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.client-logos a {
	display: flex; align-items: center; justify-content: center;
	height: 96px; padding: 14px; border-radius: 12px;
	transition: background-color .15s ease;
}
.client-logos a:hover { background: var(--mist); }
.client-logos img { width: auto; height: auto; max-width: 100%; max-height: 46px; }
/* Optical sizing: a 3.9:1 wordmark and a 1.1:1 badge need different caps to carry equal weight. */
.client-logos .logo-weatherx { height: 28px; max-height: 28px; }
.client-logos .logo-aem      { max-height: 40px; }
.client-logos .logo-imsa     { max-height: 50px; }
.client-logos .logo-atlgac   { max-height: 56px; }
.client-logos .logo-brsr     { max-height: 64px; }

/* ---------- Services ---------- */

.services { display: grid; grid-template-columns: 1fr; gap: 32px 40px; }
@media (min-width: 760px) { .services { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.service { display: grid; gap: 12px; align-content: start; }
.service::before {
	content: ""; width: 40px; height: 4px; border-radius: 2px;
	background: var(--lime); transform: skewX(-12deg); margin-bottom: 6px;
}
.service p { color: var(--muted); }
.service .tech { font-size: .875rem; font-weight: 600; color: var(--green-deep); }

/* ---------- Work cards ---------- */

/* Home shows three cards in a row when there is room. Below that, and always on
   the Work page, cards stack in one column with the image beside the text. */
.work-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 960px) { .work-grid.featured { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card {
	display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr;
	background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
	overflow: hidden; color: inherit; text-decoration: none;
	transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.card:hover { border-color: var(--green); color: inherit; transform: translateY(-3px); box-shadow: 0 10px 28px -14px rgba(21, 26, 18, .35); }
.card-media {
	aspect-ratio: 4 / 3; background: var(--mist);
	display: grid; place-items: center; padding: 22px; border-bottom: 1px solid var(--line);
}
.card-media img {
	width: auto; max-width: 100%; max-height: 100%;
	border-radius: 6px; box-shadow: 0 8px 24px -12px rgba(21, 26, 18, .45);
}
.card-body { display: grid; gap: 10px; align-content: start; padding: 20px 22px 24px; }
@media (min-width: 620px) {
	.work-list .card, .work-grid.featured .card { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); grid-template-rows: none; }
	.work-list .card-media, .work-grid.featured .card-media { border-bottom: 0; border-right: 1px solid var(--line); aspect-ratio: auto; min-height: 280px; }
	.work-list .card-body, .work-grid.featured .card-body { align-content: center; padding: 28px 32px; }
}
@media (min-width: 960px) {
	.work-grid.featured .card { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
	.work-grid.featured .card-media { border-right: 0; border-bottom: 1px solid var(--line); aspect-ratio: 4 / 3; min-height: 0; }
	.work-grid.featured .card-body { align-content: start; padding: 20px 22px 24px; }
	.work-list .card-media { min-height: 340px; }
	.work-list h2 { font-size: 1.9rem; }
}
.card-body h2 { font-size: 1.5rem; }
.card-kicker { font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.card-body p { color: var(--muted); }
.card-more { margin-top: 6px; font-weight: 700; color: var(--green); }
.card-more::after { content: " →"; }

.tags { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li {
	font-size: .78rem; font-weight: 600; line-height: 1.3;
	color: var(--green-deep); background: var(--mist);
	padding: 4px 9px; border-radius: 6px;
}
.card .tags li { background: var(--mist); }

/* ---------- Apps ---------- */

.status {
	display: inline-flex; align-items: center; gap: 8px; justify-self: start;
	font-size: .875rem; font-weight: 700; color: var(--green-deep);
}
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); flex: none; }
.app-card .card-media img { max-height: 300px; border-radius: 14px; }

.app-title { display: flex; align-items: center; gap: 20px; }
.app-title img { width: clamp(64px, 9vw, 88px); height: auto; border-radius: 22%; box-shadow: 0 8px 22px -12px rgba(21, 26, 18, .5); flex: none; }

.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 3vw, 32px); max-width: 900px; }
.shots img { width: 100%; border-radius: clamp(10px, 2vw, 22px); box-shadow: 0 18px 40px -24px rgba(21, 26, 18, .6); }

/* ---------- Call to action band ---------- */

.cta-band { background: var(--green); color: #fff; padding-block: clamp(56px, 7vw, 88px); position: relative; overflow: hidden; }
.cta-band .wrap { display: grid; gap: 18px; justify-items: start; position: relative; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .86); max-width: 52ch; font-size: 1.125rem; }
.cta-band .email {
	font-family: var(--f-display); font-weight: 700;
	font-size: clamp(1.5rem, 4.2vw, 2.6rem); line-height: 1.2;
	color: #fff; text-decoration: none; overflow-wrap: anywhere;
	border-bottom: 4px solid var(--lime); padding-bottom: 2px;
}
.cta-band .email:hover { color: #fff; border-color: #fff; }
.cta-band::after {
	/* Oversized speed lines trailing off the right edge. */
	content: ""; position: absolute; right: -60px; top: 50%; width: 520px; height: 260px; translate: 0 -50%;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 520 260'%3E%3Cg stroke='%23ffffff' stroke-opacity='.08' stroke-width='34' stroke-linecap='round'%3E%3Cpath d='M60 50h440M150 130h350M240 210h260'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain;
	transform: skewX(-12deg); pointer-events: none;
}
@media (max-width: 640px) { .cta-band::after { display: none; } }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: var(--footer-text); padding-block: 56px 40px; font-size: .9375rem; }
.site-footer a { color: #fff; }
/* Equal outer columns keep the middle "Site" column centred in the footer. */
.footer-top { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 32px; padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.footer-brand { display: grid; gap: 14px; align-content: start; }
.footer-brand img { height: 36px; width: auto; }
.footer-brand p { max-width: 38ch; }
.footer-col h2 { font-family: var(--f-body); font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--lime); margin-bottom: 12px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
/* "Get in touch" sits flush with the footer's right edge, the same edge the skyline
   ends on. Its heading, links and the exali seal share a stack as wide as the longest
   link; the seal hangs at the stack's bottom-right corner. */
.footer-touch { display: flex; flex-direction: column; align-items: flex-end; }
.touch-stack { flex: 1; display: flex; flex-direction: column; }
.exali-seal { display: block; margin-top: auto; padding-top: 6px; align-self: flex-end; }
.exali-seal img { width: 56px; height: 56px; border-radius: 6px; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { text-decoration: underline; color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; padding-top: 24px; }
.footer-bottom .legal { padding-top: 0; flex: 1 1 360px; min-width: 0; }
.skyline { flex: 0 1 260px; width: 260px; max-width: 100%; height: auto; fill: var(--footer-text); opacity: .3; }
@media (max-width: 560px) { .skyline { flex-basis: 100%; width: 100%; } }
.legal { padding-top: 24px; display: grid; gap: 4px; font-size: .8125rem; color: rgba(195, 204, 188, .8); }
.legal strong { color: var(--footer-text); }
@media (max-width: 720px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Page header (interior pages) ---------- */

.page-head { padding-block: clamp(44px, 6vw, 80px) clamp(28px, 4vw, 48px); }
.page-head .wrap { display: grid; gap: 18px; }

.crumbs { font-size: .9375rem; font-weight: 600; }
.crumbs a { text-decoration: none; }
.crumbs a::before { content: "← "; }

/* ---------- Case study ---------- */

.case-media { background: var(--mist); border-block: 1px solid var(--line); padding-block: clamp(28px, 5vw, 56px); }
.case-media img { margin-inline: auto; border-radius: 10px; box-shadow: 0 18px 44px -22px rgba(21, 26, 18, .55); }

.case-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 5vw, 72px); align-items: start; padding-block: clamp(40px, 6vw, 72px); }
@media (max-width: 860px) { .case-body { grid-template-columns: 1fr; } .case-facts { order: -1; } }

.prose { display: grid; gap: 18px; max-width: 68ch; min-width: 0; }
.prose h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); margin-top: 18px; }
.prose h3 { font-size: 1.15rem; margin-top: 10px; }
.prose ul { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 10px; }
.prose ul li { position: relative; padding-left: 30px; }
.prose ul li::before {
	content: ""; position: absolute; left: 0; top: .45em; width: 18px; height: 12px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 12'%3E%3Cg stroke='%23426B02' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M3 2h13M7 6h9M11 10h5'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain;
	transform: skewX(-12deg);
}
.prose .credit { color: var(--muted); }
.prose figure { margin: 8px 0; display: grid; gap: 10px; }
.prose figure img { border-radius: 12px; }
.prose figcaption { font-size: .9rem; color: var(--muted); }
.prose .figure-pair { display: grid; grid-template-columns: 1.5fr 1fr; gap: 14px; align-items: start; }
@media (max-width: 560px) { .prose .figure-pair { grid-template-columns: 1fr; } }

.case-facts {
	position: sticky; top: 96px;
	border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px;
	display: grid; gap: 18px; background: var(--paper);
}
@media (max-width: 860px) { .case-facts { position: static; } }
.case-facts dl { margin: 0; display: grid; gap: 16px; }
.case-facts dt { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.case-facts dd { margin: 0; color: var(--ink); font-weight: 600; }
.case-facts .links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.case-facts .links a { font-weight: 700; }

.next-case { border-top: 1px solid var(--line); padding-block: 36px 72px; }
.next-case a { display: inline-grid; gap: 4px; text-decoration: none; }
.next-case span { font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.next-case strong { font-family: var(--f-display); font-size: clamp(1.4rem, 3vw, 2rem); color: var(--ink); }
.next-case a:hover strong { color: var(--green); }
.next-case strong::after { content: " →"; color: var(--green); }

/* ---------- About ---------- */

.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px 36px; }
.principle { display: grid; gap: 10px; align-content: start; }
.principle p { color: var(--muted); }
.principle .seen { font-size: .875rem; }


.company-card {
	border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px;
	display: grid; gap: 4px; max-width: 520px; background: var(--paper);
}
.company-card strong { color: var(--ink); }

/* ---------- Contact ---------- */

.contact-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 5vw, 72px); align-items: start; padding-bottom: var(--section); }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.email-block { display: grid; gap: 16px; justify-items: start; }
.email-big {
	font-family: var(--f-display); font-weight: 700;
	font-size: clamp(1.75rem, 5vw, 3.2rem); line-height: 1.15;
	color: var(--green); text-decoration: none; overflow-wrap: anywhere;
	border-bottom: 4px solid var(--lime);
}
.copy-status { font-size: .9375rem; color: var(--muted); min-height: 1.5em; }
.checklist { display: grid; gap: 14px; }
.checklist h2 { font-size: 1.3rem; }

/* ---------- Legal prose (privacy) ---------- */

.legal-page .prose { max-width: 72ch; }
.legal-page .updated { color: var(--muted); font-size: .9375rem; }
.legal-page .prose h2 { padding-top: 10px; }
.legal-page .prose ul li::before { top: .5em; }
.table-wrap { overflow-x: auto; }
.legal-page table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.legal-page th, .legal-page td { text-align: left; vertical-align: top; padding: 10px 16px 10px 0; border-bottom: 1px solid var(--line); }
.legal-page thead th { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.legal-page tbody th { color: var(--ink); }
.contact-lines { display: grid; gap: 0; }

/* ---------- 404 ---------- */

.not-found { padding-block: clamp(64px, 10vw, 140px); }
.not-found .wrap { display: grid; gap: 22px; justify-items: start; }
.not-found .code { font-family: var(--f-display); font-weight: 700; font-size: clamp(4rem, 14vw, 9rem); line-height: 1; color: var(--mist); -webkit-text-stroke: 2px var(--line); }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
	.card:hover { transform: none; }
}
