/* ==========================================================================
   Maloffworld — v2 « bold & modern »
   ========================================================================== */

@font-face {
	font-family: "Inter Tight";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/inter-tight-latin-wght-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Inter Tight";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/inter-tight-latin-ext-wght-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Inter Tight";
	font-style: italic;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/inter-tight-latin-wght-italic.woff2") format("woff2");
}

:root {
	--bg: #efede8;
	--ink: #0e0e0e;
	--muted: #6b6a66;
	--line: rgba(14, 14, 14, .14);
	--accent: #febc5c;
	--accent-2: #ffd08a;
	--accent-ink: #0e0e0e;
	--white: #fff;

	--font: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--container: 1360px;
	--gutter: clamp(16px, 3.5vw, 48px);
	--section: clamp(88px, 12vw, 180px);
	--radius: clamp(14px, 1.6vw, 24px);
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* Reset ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; -webkit-text-size-adjust: 100%; }
body {
	margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.55;
	color: var(--ink); background: var(--bg);
	-webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.screen-reader-text, .hp {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 1000; background: var(--accent); padding: 10px 16px; border-radius: 99px; font-weight: 600; }
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* Buttons ---------------------------------------------------------------- */
.btn {
	display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px;
	border-radius: 999px; border: 0; cursor: pointer; font-weight: 600; font-size: 16px; white-space: nowrap;
	transition: transform .35s var(--ease), background-color .25s;
}
.btn .icon { width: 20px; height: 20px; transition: transform .35s var(--ease); }
.btn:hover .icon-arrow { transform: translateX(4px) rotate(-45deg); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { transform: scale(1.04); background: var(--accent-2); }
.btn-sm { padding: 10px 18px; font-size: 15px; }
.btn-lg { padding: 20px 30px; font-size: 18px; }

.round-btn {
	width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: transparent;
	display: grid; place-items: center; cursor: pointer; transition: background .25s, color .25s, border-color .25s;
}
.round-btn:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.round-btn .icon { width: 22px; height: 22px; }

/* Header ----------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 30px -22px rgba(14, 14, 14, .35); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
/* ≤600px WordPress makes the admin bar scroll away (position: absolute) → stick the header to the very top */
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.header-inner { height: 92px; }
.brand .custom-logo { max-height: 60px; width: auto; }
.brand-lockup { display: flex; align-items: center; gap: 14px; }
.brand-emblem { height: 60px; width: 60px; object-fit: contain; padding: 5px; background: var(--ink); border-radius: 50%; transition: transform .4s var(--ease); }
.brand-lockup:hover .brand-emblem { transform: rotate(-6deg) scale(1.05); }
.brand-name { font-weight: 800; font-size: 17px; letter-spacing: .26em; text-transform: uppercase; line-height: 1; }
@media (max-width: 600px) { .header-inner { height: 74px; } .brand-emblem { height: 50px; width: 50px; padding: 4px; } .brand-name { font-size: 14px; letter-spacing: .2em; } }

.primary-nav { display: flex; align-items: center; gap: 36px; }
.primary-nav .menu { display: flex; gap: 32px; }
.primary-nav .menu a { font-weight: 600; font-size: 16px; position: relative; }
.primary-nav .menu a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -3px; height: 2px; background: var(--accent); transition: right .35s var(--ease); }
.primary-nav .menu a:hover::after { right: 0; }
.primary-nav .sub-menu { display: none; }

.nav-toggle { display: none; background: var(--ink); color: var(--bg); border: 0; width: 46px; height: 46px; border-radius: 50%; cursor: pointer; place-items: center; }
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }

@media (max-width: 900px) {
	.nav-toggle { display: grid; position: relative; z-index: 60; }
	.primary-nav {
		position: fixed; inset: 0; z-index: 55; flex-direction: column; align-items: flex-start; justify-content: center; gap: 48px;
		background: var(--accent); padding: 100px var(--gutter) 48px;
		clip-path: circle(0 at calc(100% - 46px) 38px); transition: clip-path .6s var(--ease);
	}
	.primary-nav .menu { flex-direction: column; gap: 4px; }
	.primary-nav .menu a { font-size: clamp(44px, 13vw, 72px); font-weight: 800; letter-spacing: -.045em; line-height: 1.05; }
	.primary-nav .menu a::after { display: none; }
	.primary-nav .nav-cta { background: var(--ink); color: var(--bg); }
	.nav-open .primary-nav { clip-path: circle(150% at calc(100% - 46px) 38px); }
	.nav-open .nav-toggle .icon-menu { display: none; }
	.nav-open .nav-toggle .icon-close { display: block; }
	.nav-open { overflow: hidden; }
}

/* Hero ------------------------------------------------------------------- */
.hero { padding: clamp(48px, 8vw, 120px) 0 0; }
.kicker { font-size: 15px; font-weight: 500; color: var(--muted); margin-bottom: clamp(18px, 2.5vw, 32px); display: flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.hero-title {
	font-size: clamp(46px, 10.2vw, 168px); font-weight: 800; line-height: .9; letter-spacing: -.045em; word-spacing: .06em;
	text-transform: uppercase; max-width: 14ch;
}
.title-pill {
	display: inline-block; vertical-align: middle; width: 1.9em; height: .78em; margin: -.1em .04em 0;
	border-radius: 999px; background-size: cover; background-position: center;
}
.hero-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-top: clamp(32px, 4vw, 56px); }
.hero-text { font-size: clamp(17px, 1.5vw, 21px); max-width: 44ch; color: #3a3936; }
.hero-image { margin-top: clamp(48px, 6vw, 88px); border-radius: var(--radius); overflow: hidden; aspect-ratio: 21 / 9; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) {
	.hero-foot { flex-direction: column; align-items: flex-start; }
	.hero-image { aspect-ratio: 4 / 5; }
}

/* Sections --------------------------------------------------------------- */
.section { padding: var(--section) 0 0; }
.section-head { display: grid; grid-template-columns: 1fr 3fr; gap: 24px; margin-bottom: clamp(40px, 6vw, 80px); align-items: start; }
.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; }
.section-head-row > div:first-child { display: grid; grid-template-columns: auto; gap: 14px; }
.section-label { font-size: 15px; font-weight: 500; color: var(--muted); padding-top: .6em; }
.section-title { font-size: clamp(36px, 6.4vw, 104px); font-weight: 800; line-height: .92; letter-spacing: -.045em; word-spacing: .06em; text-transform: uppercase; }
@media (max-width: 800px) { .section-head { grid-template-columns: 1fr; gap: 12px; } }

/* Services --------------------------------------------------------------- */
.services { border-top: 1px solid var(--ink); }
.service {
	display: grid; grid-template-columns: 1fr 2fr 1.4fr; gap: 24px; align-items: center;
	padding: clamp(22px, 2.6vw, 36px) 0; border-bottom: 1px solid var(--line); position: relative;
	transition: padding .4s var(--ease), color .3s;
}
.service-num { font-size: 15px; font-weight: 500; color: var(--muted); }
.service-title { font-size: clamp(28px, 3.6vw, 56px); font-weight: 700; letter-spacing: -.04em; line-height: 1; transition: transform .4s var(--ease), color .3s; }
.service-text { color: var(--muted); max-width: 36ch; }
.service:hover .service-title { transform: translateX(16px); color: var(--accent); }
@media (max-width: 800px) {
	.service { grid-template-columns: auto 1fr; gap: 6px 16px; }
	.service-num { grid-row: span 2; align-self: start; padding-top: .5em; }
	.service:hover .service-title { transform: none; }
}

.service-preview {
	position: fixed; left: 0; top: 0; z-index: 30; width: 300px; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden;
	pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(.8) rotate(-4deg);
	transition: opacity .3s, transform .4s var(--ease);
}
.service-preview.is-active { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-4deg); }
.service-preview img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: none), (max-width: 900px) { .service-preview { display: none; } }

/* Gallery (horizontal scroll) ------------------------------------------- */
.gallery {
	display: flex; gap: clamp(12px, 1.4vw, 20px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
	padding: 0 var(--gutter); scroll-padding: 0 var(--gutter);
	padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2));
	scroll-padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2));
}
.gallery::-webkit-scrollbar { display: none; }
.gallery-item { flex: 0 0 auto; height: clamp(320px, 42vw, 600px); scroll-snap-align: start; border-radius: var(--radius); overflow: hidden; background: #dcd9d2; }
.gallery-item img { height: 100%; width: auto; max-width: none; object-fit: cover; transition: transform .8s var(--ease); }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-nav { display: flex; gap: 10px; }
@media (max-width: 600px) { .gallery-nav { display: none; } .gallery-item { height: 380px; } .gallery-item img { width: 80vw; } }

/* Lightbox --------------------------------------------------------------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(10, 10, 10, .96); display: grid; place-items: center; padding: 60px 80px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 86vh; max-width: 100%; width: auto; border-radius: 12px; }
.lightbox button { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--accent); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.lightbox .icon { width: 22px; height: 22px; }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lightbox { padding: 70px 12px; } .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; } }

/* Video + founder -------------------------------------------------------- */
.video-frame { position: relative; border-radius: var(--radius); overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.video-frame video { width: 100%; height: 100%; object-fit: cover; }
.video-play {
	position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
	width: clamp(110px, 12vw, 160px); height: clamp(110px, 12vw, 160px); border-radius: 50%; border: 0; cursor: pointer;
	background: var(--accent); color: var(--ink); display: grid; place-items: center; align-content: center; gap: 4px;
	font-weight: 700; font-size: 15px; text-transform: uppercase; letter-spacing: .04em;
	transition: transform .35s var(--ease);
}
.video-play:hover { transform: translate(-50%, -50%) scale(1.08); }
.video-play .icon { width: 30px; height: 30px; }
.video-frame.is-playing .video-play { display: none; }

.founder { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(32px, 6vw, 96px); align-items: end; margin-top: clamp(64px, 9vw, 140px); }
.founder-photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.founder-photo img { width: 100%; height: 100%; object-fit: cover; }
.founder-quote { font-size: clamp(26px, 3.2vw, 48px); font-weight: 600; line-height: 1.12; letter-spacing: -.035em; text-wrap: balance; }
.founder-sign { margin-top: 32px; display: flex; flex-direction: column; font-size: 16px; }
.founder-sign span { color: var(--muted); }
@media (max-width: 800px) { .founder { grid-template-columns: 1fr; } .founder-photo { max-width: 360px; } }

/* Contact ---------------------------------------------------------------- */
.contact { background: var(--ink); color: var(--bg); margin-top: var(--section); padding-bottom: var(--section); border-radius: clamp(24px, 3vw, 48px) clamp(24px, 3vw, 48px) 0 0; }
.contact .section-label { color: rgba(239, 237, 232, .55); }
.contact-title { font-size: clamp(36px, 10vw, 168px); font-weight: 800; line-height: .9; letter-spacing: -.045em; word-spacing: .06em; overflow-wrap: anywhere; text-transform: uppercase; margin: 16px 0 clamp(48px, 6vw, 96px); max-width: 12ch; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(40px, 7vw, 120px); }
.contact-info > p { color: rgba(239, 237, 232, .7); max-width: 38ch; }
.contact-links { margin: 36px 0; display: grid; gap: 6px; }
.contact-links a { font-size: clamp(22px, 2.4vw, 34px); font-weight: 600; letter-spacing: -.03em; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 2px no-repeat; transition: background-size .4s var(--ease); }
.contact-links a:hover { background-size: 100% 2px; }
.contact-socials { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-socials a { display: inline-block; padding: 10px 18px; border: 1px solid rgba(239, 237, 232, .25); border-radius: 999px; font-size: 15px; transition: background .25s, color .25s, border-color .25s; }
.contact-socials a:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }

.contact-form { display: grid; gap: 28px; }
.chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips legend { font-size: 15px; color: rgba(239, 237, 232, .55); margin-bottom: 14px; padding: 0; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 10px 18px; border-radius: 999px; border: 1px solid rgba(239, 237, 232, .25); cursor: pointer; font-size: 15px; transition: background .2s, color .2s, border-color .2s; }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--ink); font-weight: 600; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.field { display: grid; gap: 6px; }
.field span { font-size: 15px; color: rgba(239, 237, 232, .55); }
.field input, .field textarea {
	width: 100%; padding: 10px 0; border: 0; border-bottom: 1px solid rgba(239, 237, 232, .3); background: transparent;
	font-size: 20px; border-radius: 0; transition: border-color .25s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 90px; }
.field input[type="date"] { color-scheme: dark; }
.contact-form .btn { justify-self: start; margin-top: 8px; }
.form-status { padding: 14px 18px; border-radius: 14px; font-size: 16px; }
.form-status-ok { background: var(--accent); color: var(--ink); }
.form-status-err { background: rgba(200, 150, 62, .15); color: #f0d39a; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }

/* Footer ----------------------------------------------------------------- */
.site-footer { background: var(--ink); color: rgba(239, 237, 232, .6); font-size: 15px; padding: 0 0 28px; }
.footer-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px 32px; padding: 28px 0; border-top: 1px solid rgba(239, 237, 232, .14); }
.footer-menu, .site-footer .menu { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a:hover { color: var(--bg); }
.footer-legal { font-size: 13px; padding-bottom: 0; }
.footer-legal a { color: var(--accent); }

/* Inner pages ------------------------------------------------------------ */
.page-hero { padding: clamp(56px, 8vw, 120px) 0 clamp(32px, 4vw, 56px); }
.content-area { padding-bottom: var(--section); }
.entry-content { max-width: 760px; font-size: 19px; }
.entry-content > * + * { margin-top: 1em; }
.entry-content h2 { font-size: 40px; font-weight: 800; letter-spacing: -.04em; line-height: 1; margin-top: 1.4em; }
.entry-content h3 { font-size: 28px; font-weight: 700; letter-spacing: -.03em; margin-top: 1.3em; }
.entry-content a { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.entry-content img { border-radius: var(--radius); }
.entry-thumb { margin-bottom: 40px; border-radius: var(--radius); overflow: hidden; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 40px 28px; }
.post-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-radius: var(--radius); }
.post-card-body { padding-top: 18px; }
.post-card h2 { font-size: 28px; font-weight: 700; letter-spacing: -.03em; line-height: 1.05; margin-bottom: 10px; }
.post-date { font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.pagination { margin-top: 48px; }
.nav-links { display: flex; gap: 8px; }
.page-numbers { padding: 8px 14px; border: 1px solid var(--line); border-radius: 99px; }
.page-numbers.current { background: var(--ink); color: var(--bg); }

/* Reveal ----------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.js .reveal { opacity: 1; transform: none; }
}

/* Mobile menu: backdrop-filter would trap the fixed overlay inside the header */
@media (max-width: 900px) {
	.nav-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--accent); }
	.video-play { width: 84px; height: 84px; font-size: 12px; }
	.video-play .icon { width: 22px; height: 22px; }
}

/* Real-content additions ------------------------------------------------- */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.tags li { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 500; color: #3a3936; }
.mission-lines { margin-top: 22px; font-size: clamp(18px, 1.8vw, 24px); font-weight: 500; letter-spacing: -.02em; color: var(--muted); line-height: 1.35; }
.founder-solo { grid-template-columns: 1fr; }
.founder-solo .founder-copy { max-width: 1100px; }
.founder-solo .founder-quote { font-size: clamp(30px, 4.4vw, 68px); line-height: 1.05; letter-spacing: -.04em; }
.founder-solo .founder-quote::first-letter { color: var(--accent); }
.founder-sign strong { font-size: 18px; }

/* Footer brand with logo */
.footer-top { align-items: flex-end; border-top: 0; padding-top: 8px; padding-bottom: 40px; }
.footer-brand { display: flex; align-items: center; gap: 20px; }
.footer-brand .custom-logo { height: 132px; width: auto; }
.footer-brand p { max-width: 34ch; }
@media (max-width: 600px) { .footer-brand { flex-direction: column; align-items: flex-start; } }
.footer-contact { justify-content: flex-start; gap: 10px 28px; color: var(--bg); font-weight: 500; }
.footer-contact a:hover { color: var(--accent); }

/* Legal pages & notes */
.footer-legal .sep { margin: 0 6px; opacity: .5; }
.footer-legal a { color: inherit; }
.footer-legal a:hover { color: var(--accent); }
.form-note { font-size: 14px; color: rgba(239, 237, 232, .55); margin: 0; }
.form-note a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal-card { padding: 24px 28px; border: 1px solid var(--line); border-radius: var(--radius); line-height: 1.7; }
.legal-meta { color: var(--muted); font-size: 15px; }
.is-legal .entry-content h2 { font-size: clamp(24px, 2.6vw, 32px); }
.footer-legal p:last-child a { color: var(--accent); }
