/* ==========================================================================
   Kohan Group — theme stylesheet
   Hand-ported from the original React/Tailwind build. White paper background,
   near-black ink, burgundy ("clay") accent, Vazirmatn throughout.
   ========================================================================== */

:root {
	--kg-bg: #ffffff;
	--kg-bg-rgb: 255, 255, 255;
	--kg-raised: #fcfaf8;
	--kg-raised-rgb: 252, 250, 248;
	--kg-ink: 34, 31, 28;               /* hsl(24 10% 12%) */
	--kg-chalk: rgb(var(--kg-ink));
	--kg-clay: #6f202d;                  /* hsl(350 55% 28%) */
	--kg-clay-rgb: 111, 32, 45;
	--kg-clay-fg: #fafafa;
	--kg-clay-dark: #5e1a26;
	--kg-border: #e3e0dd;
	--kg-maxw: 90rem;
	--kg-pad: 1.25rem;
	--kg-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--kg-font: 'Vazirmatn', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
	--kg-header-h: 6rem;
}
@media (min-width: 640px) { :root { --kg-pad: 2rem; } }
@media (min-width: 768px) { :root { --kg-header-h: 8.25rem; } }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--kg-header-h) + 0.5rem); }
body.kg-theme {
	font-family: var(--kg-font);
	font-size: 1rem;
	line-height: 1.6;
	background: var(--kg-bg);
	color: var(--kg-chalk);
}
:where(.kg-theme) :where(h1, h2, h3, h4, p, figure) { margin: 0; }
:where(.kg-theme) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.kg-theme a { transition: color .25s, background-color .25s, border-color .25s; }
.kg-icon { width: 1rem; height: 1rem; flex-shrink: 0; display: inline-block; vertical-align: middle; }

/* Paper grain ----------------------------------------------------------- */
.kg-grain {
	position: fixed; inset: 0; z-index: 80; pointer-events: none; opacity: .04;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	background-size: 240px 240px;
}

/* Layout ---------------------------------------------------------------- */
.kg-container { width: 100%; max-width: var(--kg-maxw); margin-inline: auto; padding-inline: var(--kg-pad); }
.kg-container--narrow { max-width: calc(48rem + 2 * var(--kg-pad)); }
.kg-grid { display: grid; gap: 3rem; }
@media (min-width: 1024px) {
	.kg-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
	.kg-col-4 { grid-column: span 4; }
	.kg-col-5 { grid-column: span 5; }
	.kg-col-6 { grid-column: span 6; }
	.kg-col-7 { grid-column: span 7; }
	.kg-col-8 { grid-column: span 8; }
	.kg-col-start-7.kg-col-6 { grid-column: 7 / span 6; }
	.kg-col-start-9.kg-col-4 { grid-column: 9 / span 4; }
}
.kg-col-end { display: flex; flex-direction: column; justify-content: flex-end; }
.kg-block { display: block; }
.kg-maxw-xl { max-width: 36rem; }
.kg-maxw-2xl { max-width: 42rem; }
.kg-maxw-3xl { max-width: 48rem; }
.kg-tabular { font-variant-numeric: tabular-nums; }

/* Type ------------------------------------------------------------------ */
.kg-eyebrow { display: flex; align-items: center; gap: 1rem; font-size: 12px; letter-spacing: .18em; color: var(--kg-clay); }
.kg-eyebrow__rule, .kg-rule { display: inline-block; height: 1px; width: 2.5rem; background: var(--kg-clay); flex-shrink: 0; }
.kg-h1 { margin-top: 1.5rem !important; font-size: 3rem; font-weight: 700; line-height: 1.1; letter-spacing: -.025em; }
.kg-h2 { margin-top: 1.5rem !important; font-size: 2.25rem; font-weight: 700; line-height: 1.15; letter-spacing: -.025em; }
.kg-h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.35; }
@media (min-width: 640px) {
	.kg-h1 { font-size: 3.75rem; }
	.kg-h1--post { font-size: 3rem; }
	.kg-h2 { font-size: 3rem; }
}
.kg-em { color: var(--kg-clay); font-style: normal; }
@media (min-width: 640px) { .kg-em { font-style: italic; } }
.kg-body { font-size: 1rem; line-height: 2; color: rgba(var(--kg-ink), .7); }
.kg-prose-flow > * + * { margin-top: 1.25rem; }
.kg-text-sm { font-size: .875rem; line-height: 2; color: rgba(var(--kg-ink), .65); margin-top: .75rem !important; }
.kg-small { font-size: 12px; letter-spacing: .1em; }
.kg-caps { letter-spacing: .18em; }
.kg-muted { color: rgba(var(--kg-ink), .45); }
.kg-faint { color: rgba(var(--kg-ink), .45); }
.kg-quote { font-size: 1.5rem; font-style: italic; line-height: 1.5; color: rgba(var(--kg-ink), .85); }
.kg-quote + .kg-small { margin-top: 1rem; }

/* Buttons --------------------------------------------------------------- */
.kg-btn {
	display: inline-flex; align-items: center; gap: .75rem; min-height: 44px;
	padding: .75rem 1.5rem; font-size: 13px; letter-spacing: .1em; line-height: 1.3;
	text-decoration: none; border: 1px solid transparent; transition: background-color .25s, color .25s, border-color .25s, transform .15s;
}
.kg-btn:active { transform: scale(.98); }
.kg-btn--primary { background: var(--kg-clay); color: var(--kg-clay-fg); }
.kg-btn--primary:hover { color: var(--kg-clay-fg); background: var(--kg-clay-dark); }
.kg-btn--ghost { border-color: rgba(var(--kg-ink), .2); color: rgba(var(--kg-ink), .8); }
.kg-btn--ghost:hover { border-color: rgba(var(--kg-ink), .5); color: var(--kg-chalk); }
.kg-btn--outline { border-color: rgba(var(--kg-clay-rgb), .7); color: var(--kg-clay); }
.kg-btn--outline:hover { background: var(--kg-clay); color: var(--kg-clay-fg); }
.kg-btn--sm { min-height: 0; padding: .5rem 1rem; font-size: 12px; }
.kg-btn--lg { padding: 1rem 1.75rem; }
.kg-btn__arrow { transition: transform .3s; }
.kg-btn:hover .kg-btn__arrow { transform: translateX(.25rem); }
[dir="rtl"] .kg-btn:hover .kg-btn__arrow { transform: translateX(-.25rem); }

/* Header ---------------------------------------------------------------- */
.kg-header {
	z-index: 50; inset-inline: 0; top: 0;
	background: rgba(var(--kg-bg-rgb), .82);
	-webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
	border-bottom: 1px solid rgba(var(--kg-ink), .1);
}
.kg-header--front { position: fixed; }
.kg-header--inner { position: sticky; }
.admin-bar .kg-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .kg-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .kg-header--front { top: 0; position: absolute; } }
.kg-header__inner {
	max-width: var(--kg-maxw); margin-inline: auto; padding-inline: var(--kg-pad);
	height: var(--kg-header-h); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.kg-header--inner .kg-header__inner { height: 5rem; }
.kg-header__brand { display: flex; align-items: center; max-width: min(60vw, 18rem); }
.kg-brand { display: inline-flex; align-items: center; }
.kg-brand__img { height: 4.25rem; width: auto; max-width: 100%; object-fit: contain; mix-blend-mode: multiply; }
@media (min-width: 768px) { .kg-header--front .kg-brand__img { height: 5.5rem; } .kg-header__brand { max-width: none; } }
.kg-header--inner .kg-brand__img { height: 3.5rem; }
.kg-header__nav { display: none; align-items: center; gap: 2rem; }
.kg-header__nav > a:not(.kg-btn) { font-size: 14px; letter-spacing: .05em; color: rgba(var(--kg-ink), .55); text-decoration: none; white-space: nowrap; }
.kg-header__nav > a:not(.kg-btn):hover { color: var(--kg-chalk); }
.kg-header__mobile { display: flex; align-items: center; gap: .25rem; }
.kg-menu-btn { width: 2.75rem; height: 2.75rem; display: flex; align-items: center; justify-content: center; color: var(--kg-chalk); }
.kg-menu-btn .kg-icon { width: 1.25rem; height: 1.25rem; }
@media (min-width: 1100px) {
	.kg-header__nav { display: flex; }
	.kg-header__mobile { display: none; }
}

/* Language switcher ----------------------------------------------------- */
.kg-lang { position: relative; }
.kg-lang__toggle { display: flex; align-items: center; gap: .375rem; padding: .25rem .5rem; font-size: 12px; letter-spacing: .08em; color: rgba(var(--kg-ink), .7) !important; }
.kg-lang__toggle:hover { color: var(--kg-chalk) !important; }
.kg-lang__code { text-transform: uppercase; }
.kg-lang__label { display: none; }
@media (min-width: 640px) { .kg-lang__label { display: inline; } .kg-lang__code { display: none; } }
.kg-lang__chev { width: .75rem; height: .75rem; transition: transform .2s; }
.kg-lang.is-open .kg-lang__chev { transform: rotate(180deg); }
.kg-lang__menu {
	position: absolute; inset-inline-end: 0; top: 100%; margin: .5rem 0 0; padding: .25rem; list-style: none;
	min-width: 160px; z-index: 60; background: var(--kg-bg); border: 1px solid rgba(var(--kg-ink), .15);
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, .1), 0 8px 10px -6px rgba(0, 0, 0, .1);
}
.kg-lang__menu a { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .5rem .75rem; font-size: 13px; color: rgba(var(--kg-ink), .7); text-decoration: none; }
.kg-lang__menu a:hover { background: rgba(var(--kg-clay-rgb), .06); color: var(--kg-chalk); }
.kg-lang__menu a.is-active { color: var(--kg-clay); }
.kg-lang__menu .kg-icon { width: .875rem; height: .875rem; }

/* Mobile drawer --------------------------------------------------------- */
.kg-drawer { position: fixed; inset: 0; z-index: 90; }
.kg-drawer[hidden] { display: none; }
.kg-drawer__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .8); animation: kg-fade .3s ease; }
.kg-drawer__panel {
	position: absolute; top: 0; bottom: 0; left: 0; width: 75%; max-width: 24rem; padding: 1.5rem;
	background: var(--kg-raised); border-right: 1px solid rgba(var(--kg-ink), .1); overflow-y: auto;
	animation: kg-slide-in .35s var(--kg-ease);
}
.kg-drawer__close { position: absolute; top: 1rem; right: 1rem; width: 2rem; height: 2rem; display: flex; align-items: center; justify-content: center; opacity: .7; }
.kg-drawer__close:hover { opacity: 1; }
.kg-drawer__nav { margin-top: 2.5rem; display: flex; flex-direction: column; gap: .5rem; }
.kg-drawer__nav a { display: flex; align-items: baseline; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid rgba(var(--kg-ink), .1); text-decoration: none; }
.kg-drawer__num { font-size: 11px; letter-spacing: .2em; color: var(--kg-clay); }
.kg-drawer__label { font-size: 1.875rem; color: var(--kg-chalk); line-height: 1.2; }
@keyframes kg-fade { from { opacity: 0; } }
@keyframes kg-slide-in { from { transform: translateX(-100%); } }
body.kg-drawer-open { overflow: hidden; }

/* Side anchor ----------------------------------------------------------- */
.kg-anchor { position: fixed; right: 1.5rem; top: 50%; transform: translateY(-50%); z-index: 40; display: none; flex-direction: column; gap: 1.25rem; }
@media (min-width: 1024px) { .kg-anchor { display: flex; } }
[dir="rtl"] .kg-anchor { right: auto; left: 1.5rem; }
.kg-anchor a { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.kg-anchor__label { font-size: 11px; font-weight: 600; letter-spacing: .18em; color: rgba(var(--kg-ink), .35); transition: color .3s; }
.kg-anchor__line { height: 1px; width: 1.25rem; background: rgba(var(--kg-ink), .25); transition: all .3s; }
.kg-anchor a:hover .kg-anchor__label { color: rgba(var(--kg-ink), .7); }
.kg-anchor a:hover .kg-anchor__line { width: 2rem; background: rgba(var(--kg-ink), .5); }
.kg-anchor a.is-active .kg-anchor__label { color: var(--kg-chalk); }
.kg-anchor a.is-active .kg-anchor__line { width: 2.5rem; background: var(--kg-clay); }

/* Cropped brand word ----------------------------------------------------- */
.kg-crop { position: absolute; inset-inline: 0; overflow: hidden; pointer-events: none; user-select: none; }
.kg-crop--bottom { bottom: 0; }
.kg-crop--top { top: 0; transform: translateY(-38%); }
.kg-crop span {
	display: block; transform: translateY(30%); white-space: nowrap;
	font-size: 26vw; font-weight: 600; line-height: .78; letter-spacing: -.025em;
	color: rgba(var(--kg-clay-rgb), .06);
}

/* Hero ------------------------------------------------------------------ */
.kg-hero { position: relative; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding-top: 9rem; }
@media (min-width: 768px) { .kg-hero { padding-top: 12rem; } }
.kg-hero__inner { position: relative; z-index: 1; }
.kg-hero__since { display: flex; align-items: center; gap: 1rem; }
.kg-hero__since .kg-rule { width: 3rem; }
.kg-hero__since p { font-size: 12px; letter-spacing: .18em; color: rgba(var(--kg-ink), .55); }
.kg-hero__title { margin-top: 2rem !important; max-width: 64rem; font-size: 10vw; font-weight: 700; line-height: 1.1; letter-spacing: -.025em; }
@media (min-width: 640px) { .kg-hero__title { font-size: 3.75rem; } }
@media (min-width: 1024px) { .kg-hero__title { font-size: 4.5rem; } }
.kg-hero__cta { margin-top: 2.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }

/* Slider */
.kg-slider { position: relative; z-index: 10; margin-top: 3.5rem; margin-bottom: 2rem; border: 1px solid rgba(var(--kg-ink), .15); padding: .5rem; }
@media (min-width: 640px) { .kg-slider { padding: .75rem; } }
.kg-slider__stage { position: relative; aspect-ratio: 16 / 9; width: 100%; overflow: hidden; background: var(--kg-raised); display: flex; align-items: center; justify-content: center; }
@media (min-width: 640px) { .kg-slider__stage { aspect-ratio: 21 / 9; } }
.kg-slider__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s ease; }
.kg-slider__img.is-active { opacity: 1; }
.kg-slider__shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(255, 255, 255, .8), rgba(255, 255, 255, .1) 50%, transparent); }
.kg-slider__bignum { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.kg-slider__bignum span { font-size: 18vw; font-weight: 700; line-height: 1; letter-spacing: -.025em; color: rgba(var(--kg-clay-rgb), .16); mix-blend-mode: multiply; }
@media (min-width: 640px) { .kg-slider__bignum span { font-size: 12rem; } }
.kg-slider__caption { position: relative; max-width: 36rem; padding-inline: 1.5rem; text-align: center; font-size: clamp(1.25rem, 4vw, 36px); line-height: 1.5; color: #d8d2cf; text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }
.kg-slider__nav {
	position: absolute; top: 50%; transform: translateY(-50%); width: 2.5rem; height: 2.5rem; display: flex; align-items: center; justify-content: center;
	border: 1px solid rgba(var(--kg-ink), .2); background: rgba(255, 255, 255, .4); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
	color: rgba(var(--kg-ink), .7) !important; transition: all .25s;
}
.kg-slider__nav:hover { border-color: var(--kg-clay); background: var(--kg-clay); color: var(--kg-clay-fg) !important; }
.kg-slider__nav:active { transform: translateY(-50%) scale(.95); }
.kg-slider__nav--prev { left: .75rem; }
.kg-slider__nav--next { right: .75rem; }
[dir="rtl"] .kg-slider__nav--prev { left: auto; right: .75rem; }
[dir="rtl"] .kg-slider__nav--next { right: auto; left: .75rem; }
.kg-slider__dots { position: absolute; bottom: .75rem; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: .5rem; }
.kg-slider__dot { height: .375rem; width: .375rem; background: rgba(var(--kg-ink), .4) !important; transition: all .3s; }
.kg-slider__dot:hover { background: rgba(var(--kg-ink), .7) !important; }
.kg-slider__dot.is-active { width: 1.5rem; background: var(--kg-clay) !important; }
.kg-slider__meta { display: flex; align-items: center; justify-content: space-between; padding: .75rem .25rem .25rem; font-size: 11px; letter-spacing: .1em; color: rgba(var(--kg-ink), .45); }

/* Motion ---------------------------------------------------------------- */
@keyframes kg-rise { from { opacity: 0; transform: translateY(42px); } to { opacity: 1; transform: none; } }
@keyframes kg-unveil { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.kg-js .kg-rise { opacity: 0; animation: kg-rise .75s var(--kg-ease) var(--kg-delay, 0s) forwards; }
.kg-js .kg-unveil { clip-path: inset(0 0 100% 0); animation: kg-unveil 1.1s var(--kg-ease) .75s forwards; }
.kg-js .kg-reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--kg-ease) var(--kg-delay, 0s), transform .6s var(--kg-ease) var(--kg-delay, 0s); }
.kg-js .kg-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.kg-js .kg-rise, .kg-js .kg-unveil { animation: none; opacity: 1; clip-path: none; }
	.kg-js .kg-reveal { opacity: 1; transform: none; transition: none; }
	.kg-slider__img { transition: none; }
}

/* Stats ----------------------------------------------------------------- */
.kg-stats { border-block: 1px solid rgba(var(--kg-ink), .1); background: rgba(var(--kg-raised-rgb), .6); }
.kg-stats__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1024px) { .kg-stats__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kg-stats__item { padding: 2.5rem 1rem; }
.kg-stats__item + .kg-stats__item { border-inline-start: 1px solid rgba(var(--kg-ink), .1); }
@media (max-width: 1023px) { .kg-stats__item:nth-child(odd) { border-inline-start: 0; } .kg-stats__item:nth-child(n+3) { border-top: 1px solid rgba(var(--kg-ink), .1); } }
@media (min-width: 640px) { .kg-stats__item { padding-inline: 2rem; } }
.kg-stats__num { font-size: 3rem; font-weight: 700; line-height: 1; color: var(--kg-clay); font-variant-numeric: tabular-nums; }
.kg-stats__label { margin-top: .5rem !important; font-size: 12px; letter-spacing: .1em; color: rgba(var(--kg-ink), .55); }

/* Sections -------------------------------------------------------------- */
.kg-section { position: relative; padding-block: 6rem; }
@media (min-width: 640px) { .kg-section { padding-block: 8rem; } }
.kg-section--crop { overflow: hidden; }
.kg-section--crop > .kg-container { position: relative; }
.kg-section--raised { background: rgba(var(--kg-raised-rgb), .4); }
.kg-section--bt { border-top: 1px solid rgba(var(--kg-ink), .1); }
.kg-section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem; }
.kg-section-head__intro { max-width: 24rem; font-size: .875rem; line-height: 2; color: rgba(var(--kg-ink), .6); }
.kg-section-head__intro p + p { margin-top: .75rem; }
.kg-more { margin-top: 3.5rem !important; }

/* Studio */
.kg-studio-figure { margin-top: 4rem !important; gap: 1.5rem; }
@media (min-width: 1024px) { .kg-studio-figure { margin-top: 5rem !important; } }
.kg-frame { border: 1px solid rgba(var(--kg-ink), .15); padding: .5rem; transition: border-color .5s; }
@media (min-width: 640px) { .kg-frame { padding: .75rem; } }
.kg-frame img { display: block; width: 100%; object-fit: cover; }
.kg-frame__clip { overflow: hidden; }
.kg-card:hover .kg-frame--hover, .kg-showcase__item:hover .kg-frame--hover { border-color: rgba(var(--kg-clay-rgb), .4); }
.kg-zoom { transition: transform .7s ease; }
.kg-card:hover .kg-zoom, .kg-showcase__item:hover .kg-zoom { transform: scale(1.04); }
.kg-placeholder { background: var(--kg-raised); }

/* About / values */
.kg-values-wrap { margin-top: 4rem; }
@media (min-width: 1024px) { .kg-values-wrap { margin-top: 5rem; } }
.kg-values { margin-top: 2rem; display: grid; gap: 1px; background: rgba(var(--kg-ink), .1); border-block: 1px solid rgba(var(--kg-ink), .1); }
@media (min-width: 640px) { .kg-values { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.kg-values__item { background: var(--kg-bg); padding: 2rem; }
.kg-values__num { font-size: 1.875rem; font-weight: 300; color: var(--kg-clay); }
.kg-values__item .kg-h3 { margin-top: 1rem; }

/* Practice / services */
.kg-services { margin-top: 3.5rem; border-block: 1px solid rgba(var(--kg-ink), .1); }
.kg-service {
	display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "num title arrow" "desc desc desc";
	align-items: center; column-gap: 1.25rem; row-gap: .5rem; padding-block: 2rem; text-decoration: none; color: inherit; text-align: start;
	transition: background-color .25s;
}
.kg-service + .kg-service { border-top: 1px solid rgba(var(--kg-ink), .1); }
.kg-service:hover { background: rgba(var(--kg-clay-rgb), .04); }
.kg-service__num { grid-area: num; font-size: 13px; letter-spacing: .15em; color: var(--kg-clay); }
.kg-service__title { grid-area: title; font-size: 1.875rem; font-weight: 700; line-height: 1.25; color: var(--kg-chalk); transition: transform .3s; }
.kg-service__desc { grid-area: desc; font-size: .875rem; line-height: 2; color: rgba(var(--kg-ink), .6); max-width: 28rem; }
.kg-service__arrow { grid-area: arrow; width: 1.5rem; height: 1.5rem; color: rgba(var(--kg-ink), .3); transition: all .3s; }
.kg-service:hover .kg-service__title { transform: translateX(.5rem); }
[dir="rtl"] .kg-service:hover .kg-service__title { transform: translateX(-.5rem); }
.kg-service:hover .kg-service__arrow { color: var(--kg-clay); transform: translate(.25rem, -.25rem); }
[dir="rtl"] .kg-service:hover .kg-service__arrow { transform: translate(-.25rem, -.25rem); }
@media (min-width: 640px) {
	.kg-service { grid-template-columns: 4rem 1fr 1fr auto; grid-template-areas: "num title desc arrow"; column-gap: 2rem; padding-inline: 1rem; }
	.kg-service__title { font-size: 2.25rem; }
}

/* Works */
.kg-cards { margin-top: 4rem; display: grid; gap: 2.5rem; }
@media (min-width: 640px) { .kg-cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 768px) { .kg-cards { gap: 2rem; } }
@media (min-width: 1024px) { .kg-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.kg-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.kg-card__body { margin-top: 1.25rem; display: flex; flex-direction: column; gap: .5rem; }
.kg-card__date { font-size: 12px; letter-spacing: .1em; color: var(--kg-clay); }
.kg-card__title { font-size: 1.5rem; font-weight: 700; line-height: 1.3; color: var(--kg-chalk); }
.kg-card__excerpt { margin-top: 1rem; font-size: .875rem; line-height: 2; color: rgba(var(--kg-ink), .6); }
.kg-card__body .kg-card__excerpt { margin-top: 0; color: rgba(var(--kg-ink), .65); }
.kg-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.kg-figcap { margin-top: 1.25rem; display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.kg-figcap__title { font-size: 1.5rem; font-weight: 700; line-height: 1.3; }
.kg-figcap__meta { margin-top: .25rem !important; font-size: 12px; letter-spacing: .08em; color: rgba(var(--kg-ink), .5); }
.kg-figcap__year { flex-shrink: 0; font-size: 12px; letter-spacing: .1em; color: var(--kg-clay); }
.kg-thumbs { margin-top: .75rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.kg-thumbs img { height: 3.5rem; width: 5rem; object-fit: cover; border: 1px solid rgba(var(--kg-ink), .1); border-radius: 2px; }

.kg-showcase { margin-top: 4rem; display: grid; gap: 2.5rem; }
@media (min-width: 768px) {
	.kg-showcase { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2rem; }
	.kg-span-5 { grid-column: span 5; }
	.kg-span-7 { grid-column: span 7; }
	.kg-showcase__item.is-broken { margin-top: 5rem; }
}
.kg-broken { position: relative; transform: rotate(2deg); border-top: 1px solid rgba(var(--kg-ink), .25); border-right: 1px solid rgba(var(--kg-ink), .25); padding: .75rem .75rem 0 0; }
.kg-broken__dot { position: absolute; right: -.25rem; top: -.25rem; width: .75rem; height: .75rem; background: var(--kg-clay); }
.kg-broken__shift { transform: translate(-.5rem, .5rem); }
.kg-broken img { display: block; width: 100%; object-fit: cover; transform-origin: top right; transform: scale(1.05); box-shadow: 0 25px 50px -12px rgba(var(--kg-clay-rgb), .2); transition: transform .7s; }
.kg-showcase__item:hover .kg-broken img { transform: scale(1.08); }
.kg-showcase__item.is-broken .kg-figcap { margin-top: 2.75rem; }

/* Process */
.kg-steps { margin-top: 3.5rem; border-bottom: 1px solid rgba(var(--kg-ink), .1); }
.kg-step { display: grid; gap: .75rem; padding-block: 2rem; border-top: 1px solid rgba(var(--kg-ink), .1); }
@media (min-width: 640px) {
	.kg-step { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2rem; padding-block: 2.5rem; }
	.kg-step__num { grid-column: span 2; }
	.kg-step__title { grid-column: span 4; }
	.kg-step__desc { grid-column: span 4; }
	.kg-step__time { grid-column: span 2; }
}
.kg-step__num { font-size: 3rem; font-weight: 300; line-height: 1; color: rgba(var(--kg-ink), .25); }
.kg-step__title { font-size: 1.5rem; font-weight: 700; line-height: 1.3; }
@media (min-width: 640px) { .kg-step__title { font-size: 1.875rem; } }
.kg-step__desc { max-width: 36rem; font-size: .875rem; line-height: 2; color: rgba(var(--kg-ink), .65); }
.kg-step__time { font-size: 12px; letter-spacing: .1em; color: var(--kg-clay); text-align: start; }

/* Contact */
.kg-section--contact { padding-block: 6rem; }
@media (min-width: 640px) { .kg-section--contact { padding-block: 9rem; } }
.kg-section--contact .kg-h1 { margin-top: 2rem !important; max-width: 56rem; }
.kg-contact__body { margin-top: 2rem; color: rgba(var(--kg-ink), .65); }
.kg-contact__cta { margin-top: 3rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.kg-contact__grid { margin-top: 4rem; padding-top: 2.5rem; border-top: 1px solid rgba(var(--kg-ink), .1); display: grid; gap: 2rem; }
@media (min-width: 640px) { .kg-contact__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .kg-contact__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kg-contact__item { display: flex; align-items: flex-start; gap: .75rem; }
.kg-contact__icon { margin-top: .125rem; color: var(--kg-clay); }
.kg-contact__value { margin-top: .5rem !important; font-size: .875rem; line-height: 2; color: rgba(var(--kg-ink), .75); }
.kg-contact__value a { color: inherit; text-decoration: none; }
.kg-contact__value a:hover { color: var(--kg-clay); }
[dir="rtl"] .kg-contact__value[dir="ltr"] { text-align: right; }

/* Footer ---------------------------------------------------------------- */
.kg-footer { border-top: 1px solid rgba(var(--kg-ink), .1); background: rgba(var(--kg-raised-rgb), .6); }
.kg-footer__inner { padding-block: 2.5rem; }
.kg-footer__top { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 1.5rem; }
@media (min-width: 640px) { .kg-footer__top { flex-direction: row; align-items: center; } }
.kg-footer__brand { display: flex; flex-direction: column; gap: .5rem; }
.kg-footer__brand .kg-brand__img { height: 5rem; }
@media (min-width: 640px) { .kg-footer__brand .kg-brand__img { height: 5.5rem; } }
.kg-footer__nav { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.kg-footer__nav a { font-size: 12px; letter-spacing: .1em; color: rgba(var(--kg-ink), .45); text-decoration: none; }
.kg-footer__nav a:hover { color: var(--kg-chalk); }
.kg-footer__bottom { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(var(--kg-ink), .1); display: flex; flex-direction: column; gap: 1.5rem; }
@media (min-width: 640px) { .kg-footer__bottom { flex-direction: row; align-items: center; justify-content: space-between; } }
.kg-footer__social { display: flex; align-items: center; gap: 1rem; }
.kg-social { display: flex; align-items: center; gap: .75rem; }
.kg-social__btn { width: 2.25rem; height: 2.25rem; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(var(--kg-ink), .15); color: rgba(var(--kg-ink), .6); }
.kg-social__btn:hover { border-color: var(--kg-clay); color: var(--kg-clay); }
.kg-footer .kg-faint { color: rgba(var(--kg-ink), .35); }

/* Inner pages ----------------------------------------------------------- */
.kg-page { padding-block: 4rem 6rem; }
@media (min-width: 640px) { .kg-page { padding-block: 6rem 8rem; } }
.kg-page__head { margin-bottom: 2.5rem; }
.kg-page__head .kg-eyebrow { margin-top: 2.5rem; }
.kg-page__head .kg-h1 + .kg-small, .kg-page__head .kg-h1 + .kg-body, .kg-page__head .kg-h1 + div { margin-top: 1.25rem; }
.kg-page__cover { margin-bottom: 2.5rem; }
.kg-page__foot { margin-top: 4rem; padding-top: 2rem; border-top: 1px solid rgba(var(--kg-ink), .1); }
.kg-back { display: inline-flex; align-items: center; gap: .5rem; font-size: 13px; letter-spacing: .1em; color: rgba(var(--kg-ink), .7); text-decoration: none; }
.kg-back:hover { color: var(--kg-clay); }
.kg-meta-row { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .75rem 2rem; font-size: 13px; letter-spacing: .08em; color: rgba(var(--kg-ink), .6); }
.kg-meta-row span { display: inline-flex; align-items: center; gap: .5rem; }
.kg-meta-row .kg-icon { color: var(--kg-clay); }
.kg-gallery { margin-bottom: 3rem; }
.kg-gallery__thumbs { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.kg-gallery__thumbs button { border: 1px solid rgba(var(--kg-ink), .15); padding: .25rem; transition: border-color .25s; }
.kg-gallery__thumbs button:hover { border-color: rgba(var(--kg-ink), .4); }
.kg-gallery__thumbs button.is-active { border-color: var(--kg-clay); }
.kg-gallery__thumbs img { display: block; height: 3.5rem; width: 5rem; object-fit: cover; }
[data-gallery-main] { transition: opacity .3s; }

/* Prose (post / page content) */
.kg-prose { font-size: 1rem; line-height: 2; color: rgba(var(--kg-ink), .8); }
.kg-prose > * + * { margin-top: 1.25rem; }
.kg-prose a { color: var(--kg-clay); text-decoration: underline; text-underline-offset: 3px; }
.kg-prose h2 { margin-top: 2.5rem; font-size: 1.5rem; font-weight: 700; line-height: 1.35; color: var(--kg-chalk); }
.kg-prose h3 { margin-top: 2rem; font-size: 1.25rem; font-weight: 700; line-height: 1.4; color: var(--kg-chalk); }
.kg-prose h4 { margin-top: 1.75rem; font-size: 1.05rem; font-weight: 700; color: var(--kg-chalk); }
.kg-prose img { max-width: 100%; height: auto; }
.kg-prose figure { margin-block: 1.5rem .5rem; }
.kg-prose figcaption { font-size: 12px; letter-spacing: .05em; color: rgba(var(--kg-ink), .5); margin-top: .5rem; }
.kg-prose ul, .kg-prose ol { padding-inline-start: 1.5rem; }
.kg-prose ul { list-style: disc; }
.kg-prose li + li { margin-top: .35rem; }
.kg-prose blockquote { margin-inline: 0; padding-inline-start: 1.25rem; border-inline-start: 2px solid var(--kg-clay); font-size: 1.25rem; font-style: italic; color: rgba(var(--kg-ink), .85); }
.kg-prose table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.kg-prose th, .kg-prose td { border: 1px solid var(--kg-border); padding: .5rem .75rem; text-align: start; }
.kg-prose hr { border: 0; border-top: 1px solid rgba(var(--kg-ink), .1); margin-block: 2.5rem; }
.kg-prose pre { background: var(--kg-raised); padding: 1rem; overflow-x: auto; font-size: .85rem; line-height: 1.6; }
.kg-prose .alignwide { width: min(100vw - 2 * var(--kg-pad), 72rem); max-width: none; margin-inline: calc(50% - min(50vw - var(--kg-pad), 36rem)); }
.kg-prose .alignfull { width: 100vw; max-width: none; margin-inline: calc(50% - 50vw); }
.kg-prose .alignleft { float: left; margin: .5rem 1.5rem 1rem 0; }
.kg-prose .alignright { float: right; margin: .5rem 0 1rem 1.5rem; }
.kg-prose .aligncenter { margin-inline: auto; }
.kg-prose .wp-block-button__link { background: var(--kg-clay); color: var(--kg-clay-fg); text-decoration: none; border-radius: 0; font-size: 13px; letter-spacing: .1em; padding: .75rem 1.5rem; }
.kg-prose--wide { max-width: var(--kg-maxw); }
.kg-prose::after { content: ""; display: table; clear: both; }
.wp-caption-text, .gallery-caption { font-size: 12px; color: rgba(var(--kg-ink), .5); }
.sticky, .bypostauthor { }

.kg-tags { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.kg-tags a { font-size: 12px; letter-spacing: .08em; padding: .25rem .75rem; border: 1px solid rgba(var(--kg-ink), .15); color: rgba(var(--kg-ink), .7); text-decoration: none; }
.kg-tags a:hover { border-color: var(--kg-clay); color: var(--kg-clay); }
.kg-post-nav { margin-top: 3rem; display: flex; justify-content: space-between; gap: 1rem; font-size: 13px; letter-spacing: .05em; }
.kg-post-nav a { display: inline-flex; align-items: center; gap: .5rem; color: rgba(var(--kg-ink), .7); text-decoration: none; }
.kg-post-nav a:hover { color: var(--kg-clay); }
.kg-post-nav div:last-child { text-align: end; }

/* Pagination */
.navigation.pagination { margin-top: 4rem; }
.nav-links { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.page-numbers { min-width: 2.5rem; height: 2.5rem; padding-inline: .5rem; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(var(--kg-ink), .15); font-size: 13px; color: rgba(var(--kg-ink), .7); text-decoration: none; }
.page-numbers.current { background: var(--kg-clay); border-color: var(--kg-clay); color: var(--kg-clay-fg); }
a.page-numbers:hover { border-color: var(--kg-clay); color: var(--kg-clay); }
.page-numbers.dots { border: 0; }

/* Search */
.kg-search { display: flex; margin-top: 1.5rem; border: 1px solid rgba(var(--kg-ink), .2); }
.kg-search input { flex: 1; min-width: 0; border: 0; padding: .75rem 1rem; font: inherit; background: transparent; color: inherit; }
.kg-search input:focus { outline: none; }
.kg-search:focus-within { border-color: var(--kg-clay); }
.kg-search button { padding-inline: 1rem; color: var(--kg-clay); }

/* Comments */
.kg-comments { margin-top: 4rem; padding-top: 2.5rem; border-top: 1px solid rgba(var(--kg-ink), .1); }
.kg-comments__list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.kg-comments__list .comment { padding-block: 1.25rem; border-bottom: 1px solid rgba(var(--kg-ink), .08); }
.kg-comments__list .children { list-style: none; padding-inline-start: 1.5rem; }
.kg-comments .comment-author { display: flex; align-items: center; gap: .75rem; font-weight: 600; }
.kg-comments .avatar { border-radius: 50%; }
.kg-comments .comment-metadata { font-size: 12px; color: rgba(var(--kg-ink), .5); }
.kg-comments .comment-metadata a { color: inherit; text-decoration: none; }
.kg-comments .comment-content { margin-top: .75rem; line-height: 1.9; color: rgba(var(--kg-ink), .8); }
.comment-respond { margin-top: 2.5rem; }
.comment-form label { display: block; font-size: 12px; letter-spacing: .1em; color: rgba(var(--kg-ink), .6); margin-bottom: .35rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; border: 1px solid rgba(var(--kg-ink), .2); padding: .75rem; font: inherit; background: var(--kg-bg); color: inherit;
}
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--kg-clay); }
.comment-form p { margin-top: 1rem; }

/* Widgets */
.kg-widget + .kg-widget { margin-top: 2rem; }
.kg-widget__title { font-size: 12px; letter-spacing: .18em; color: var(--kg-clay); font-weight: 400; }

/* 404 */
.kg-404 { text-align: start; }
.kg-404__num { font-size: clamp(6rem, 20vw, 12rem); font-weight: 700; line-height: 1; color: rgba(var(--kg-clay-rgb), .12); }
.kg-404 .kg-body { margin-block: 1.25rem 2rem; }

/* Accessibility */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; border: 0; }
.skip-link:focus { clip: auto; width: auto; height: auto; top: 1rem; left: 1rem; z-index: 100; padding: .75rem 1rem; background: var(--kg-clay); color: var(--kg-clay-fg); }
.kg-theme a:focus-visible, .kg-theme button:focus-visible { outline: 2px solid var(--kg-clay); outline-offset: 2px; }
::selection { background: var(--kg-clay); color: var(--kg-clay-fg); }
