/* ==========================================================================
   Menu Studio – main stylesheet
   ========================================================================== */
:root {
	--white: #fff;
	--warm: #FAF8F5;
	--gray: #F3F1EE;
	--line: #E7E3DD;
	--text: #222;
	--muted: #666;
	--orange: #E87532;
	--orange-dark: #D4621F;
	--coral: #E85D8E;
	--grad: linear-gradient(90deg, #F47A32, #E85D8E);
	--ticker-speed: 25s;
	--container: 1280px;
	--gutter: clamp(20px, 4vw, 48px);
	--font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	--header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.12; letter-spacing: -.02em; font-weight: 800; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(820px + var(--gutter) * 2); }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 999; background: var(--text); color: #fff; padding: 10px 16px; }
.skip-link:focus { left: 8px; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

/* Buttons & links ------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; gap: .6em; padding: 15px 28px; border: 2px solid transparent; border-radius: 4px; font: 700 15px/1 var(--font); letter-spacing: .01em; cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.btn--primary { background: var(--orange); color: #fff; }
.btn--primary:hover { background: var(--orange-dark); }
.btn--light { background: #fff; color: var(--text); }
.btn--light:hover { background: var(--warm); }
.btn--block { display: flex; justify-content: center; width: 100%; margin-top: 20px; }
.arrow { display: inline-block; transition: transform .25s; }
.btn:hover .arrow, .text-link:hover .arrow, a:hover > .arrow, .service:hover .arrow { transform: translateX(5px); }
.text-link { display: inline-flex; align-items: center; gap: .5em; font-weight: 700; color: var(--text); }
.text-link .arrow { color: var(--orange); }
.text-link:hover { color: var(--orange); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--orange); }

/* Header ---------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--white); border-bottom: 1px solid var(--line); transition: box-shadow .3s, border-color .3s; }
.site-header.is-scrolled { box-shadow: 0 2px 18px rgba(0, 0, 0, .07); }
.header-inner { display: flex; align-items: center; gap: 32px; min-height: var(--header-h); }
.brand { flex: 0 0 auto; }
.brand img { max-height: 48px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 800; font-size: 18px; letter-spacing: .02em; text-transform: uppercase; }
.brand-tag { font-weight: 500; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.primary-nav { margin-left: auto; }
.primary-nav .menu { display: flex; gap: 6px; }
.primary-nav a { display: block; padding: 10px 14px; font-weight: 600; font-size: 15px; position: relative; }
.primary-nav a::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.primary-nav a:hover, .primary-nav .current-menu-item > a, .primary-nav .current_page_item > a { color: var(--orange); }
.primary-nav a:hover::after, .primary-nav .current-menu-item > a::after, .primary-nav .current_page_item > a::after { transform: scaleX(1); }
.header-cta { padding: 13px 22px; }
.menu-toggle { display: none; margin-left: auto; width: 46px; height: 46px; padding: 0; background: none; border: 1px solid var(--line); border-radius: 4px; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.menu-toggle__bar { width: 22px; height: 2px; background: var(--text); transition: transform .25s, opacity .2s; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-panel { display: none; }
@media (max-width: 900px) {
	.primary-nav, .header-cta { display: none; }
	.menu-toggle { display: flex; }
	.header-inner { min-height: 64px; }
	.mobile-panel.is-open { display: block; background: var(--white); border-top: 1px solid var(--line); padding: 12px 0 24px; max-height: calc(100vh - 64px); overflow-y: auto; }
	.mobile-panel .menu a { display: block; padding: 16px 0; font-size: 22px; font-weight: 800; border-bottom: 1px solid var(--line); }
	.mobile-panel .current-menu-item > a, .mobile-panel .menu a:hover { color: var(--orange); }
}

/* Hero ------------------------------------------------------------------ */
.hero { background: var(--warm); padding-top: clamp(32px, 5vw, 72px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: clamp(32px, 4vw, 64px); align-items: center; padding-bottom: clamp(48px, 6vw, 88px); }
.hero-copy { position: relative; }
.hero-dot { position: absolute; top: -8px; right: 4%; width: clamp(44px, 5vw, 76px); aspect-ratio: 1; border-radius: 50%; background: var(--grad); opacity: .95; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--orange); margin-bottom: 20px; }
.hero-title { font-size: clamp(2.5rem, 3.9vw, 4.2rem); line-height: 1.02; letter-spacing: -.035em; font-weight: 800; margin-bottom: 24px; }
.hero-lead { font-size: clamp(1.05rem, 1.3vw, 1.2rem); color: var(--muted); max-width: 30em; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; }

.hero-collage { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(10px, 1.4vw, 18px); }
.collage-col { display: flex; flex-direction: column; gap: clamp(10px, 1.4vw, 18px); }
.collage-col--1 { margin-top: clamp(24px, 4vw, 56px); }
.collage-note { grid-column: 1 / -1; font-size: 13px; color: var(--muted); margin: 0; }

/* 16:9 portfolio frames — used everywhere a project thumbnail appears */
.portfolio-image { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--gray); }
.portfolio-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.portfolio-placeholder { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--gray), var(--line)); }
.tile--ph { background: linear-gradient(135deg, #F3F1EE, #EAE5DE); }
.tile:hover img, .tile:focus-visible img, .work-card__link:hover .portfolio-image img { transform: scale(1.03); }
.tile__overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 14px 16px; color: #fff; background: linear-gradient(to top, rgba(20, 12, 6, .62), rgba(20, 12, 6, 0) 65%); opacity: 0; transition: opacity .35s; }
.tile:hover .tile__overlay, .tile:focus-visible .tile__overlay { opacity: 1; }
.tile__title { font-weight: 700; font-size: 15px; line-height: 1.25; }
.tile__cat { font-size: 12px; opacity: .9; }
@media (hover: none) { .tile__overlay { opacity: 1; } }

/* Ticker ---------------------------------------------------------------- */
.ticker { background: linear-gradient(90deg, #E87532, #EE6A4A); color: #fff; overflow: hidden; height: 60px; display: flex; align-items: center; }
.ticker-track { display: flex; width: max-content; will-change: transform; animation: ticker var(--ticker-speed) linear infinite; }
.ticker-group { display: flex; align-items: center; flex-shrink: 0; }
.ticker-item, .ticker-dot { white-space: nowrap; font-weight: 700; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; }
.ticker-item { padding: 0 1.5rem; }
.ticker-dot { opacity: .85; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 640px) { .ticker { height: 48px; } .ticker-item, .ticker-dot { font-size: 12.5px; } .ticker-item { padding: 0 1rem; } }

/* Sections -------------------------------------------------------------- */
.section { padding-block: clamp(56px, 8vw, 112px); }
.section--tight { padding-block: clamp(24px, 4vw, 48px) clamp(56px, 8vw, 100px); }
.section--warm { background: var(--warm); }
.section-title { font-size: clamp(1.9rem, 3.4vw, 3rem); margin-bottom: .45em; }
.section-lead { font-size: 1.15rem; color: var(--muted); max-width: 40em; }
.section-head { margin-bottom: clamp(28px, 4vw, 48px); }
.section-more { margin: clamp(32px, 4vw, 56px) 0 0; }
.empty-note { color: var(--muted); padding: 32px; background: var(--white); border: 1px dashed var(--line); }

/* Services -------------------------------------------------------------- */
.services-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 6vw, 96px); margin-top: clamp(28px, 4vw, 48px); }
.service { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 8px 20px; align-items: start; padding: 30px 0; border-top: 1px solid var(--line); transition: border-color .3s; }
.service:hover { border-top-color: var(--orange); }
.service__num { font-weight: 800; font-size: 14px; color: var(--orange); padding-top: 6px; }
.service__title { font-size: 1.35rem; margin-bottom: .35em; transition: color .25s; }
.service:hover .service__title { color: var(--orange); }
.service__body p { margin: 0; color: var(--muted); font-size: .98rem; }
.service__arrow { font-size: 1.4rem; color: var(--line); transition: color .25s, transform .25s; }
.service:hover .service__arrow { color: var(--orange); }
@media (max-width: 800px) { .services-list { grid-template-columns: 1fr; } .service { grid-template-columns: 40px minmax(0, 1fr) auto; } }

/* Work grid & cards ----------------------------------------------------- */
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) clamp(18px, 2vw, 28px); }
@media (max-width: 1023px) { .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 699px) { .work-grid { grid-template-columns: 1fr; } }
.work-card[hidden] { display: none; }
.work-card__link { display: block; }
.work-card__meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-top: 16px; border-bottom: 2px solid transparent; }
.work-card__title { font-size: 1.15rem; margin: 0 0 2px; transition: color .25s; }
.work-card__cat { margin: 0; font-size: .88rem; color: var(--muted); }
.work-card__meta .arrow { color: var(--orange); font-size: 1.3rem; opacity: 0; transform: translateX(-8px); transition: opacity .25s, transform .25s; }
.work-card__link:hover .work-card__title { color: var(--orange); }
.work-card__link:hover .arrow, .work-card__link:focus-visible .arrow { opacity: 1; transform: translateX(0); }
@media (hover: none) { .work-card__meta .arrow { opacity: 1; transform: none; } }

/* Page heads ------------------------------------------------------------ */
.page-head { padding: clamp(40px, 6vw, 88px) 0 clamp(20px, 3vw, 36px); }
.page-title { font-size: clamp(2.2rem, 4.6vw, 4rem); letter-spacing: -.03em; margin-bottom: .35em; }
.page-title--xl { font-size: clamp(2.2rem, 5vw, 4.4rem); max-width: 16em; }
.back-link { margin-bottom: 24px; font-weight: 600; font-size: .95rem; color: var(--muted); }
.back-link a:hover { color: var(--orange); }

/* Filter ---------------------------------------------------------------- */
.filter { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-bottom: clamp(28px, 4vw, 44px); }
.filter__btn { padding: 10px 18px; font-weight: 600; font-size: .92rem; border: 1px solid var(--line); border-radius: 4px; background: #fff; transition: all .2s; }
.filter__btn:hover { border-color: var(--orange); color: var(--orange); }
.filter__btn.is-active { background: var(--text); border-color: var(--text); color: #fff; }

/* Single project -------------------------------------------------------- */
.project-hero { margin: 0 0 clamp(32px, 5vw, 64px); background: var(--gray); }
.project-hero img { width: 100%; height: auto; }
.project-body { display: grid; grid-template-columns: minmax(200px, 1fr) minmax(0, 2.4fr); gap: clamp(32px, 6vw, 96px); padding-bottom: clamp(40px, 6vw, 80px); }
.project-meta { margin: 0; align-self: start; }
.project-meta div { padding: 14px 0; border-top: 1px solid var(--line); }
.project-meta dt { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.project-meta dd { margin: 4px 0 0; font-weight: 600; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); }
.gallery-item { margin: 0; background: var(--gray); }
.gallery-item:nth-child(3n + 1) { grid-column: 1 / -1; }
.gallery-item img { width: 100%; height: auto; }
.project-nav { display: flex; justify-content: space-between; gap: 24px; padding-block: clamp(40px, 6vw, 80px); font-weight: 700; }
.project-nav a:hover { color: var(--orange); }
@media (max-width: 800px) { .project-body { grid-template-columns: 1fr; gap: 32px; } .gallery-grid { grid-template-columns: 1fr; } }

/* About ----------------------------------------------------------------- */
.about-intro { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.about-intro:has(.about-photo) { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: start; }
.about-photo { margin: 0; background: var(--gray); }
.about-photo img { width: 100%; height: auto; }
.about-text .lead { font-size: 1.4rem; line-height: 1.45; font-weight: 600; max-width: 28em; }
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 clamp(24px, 4vw, 56px); margin-top: 40px; }
.principles li { padding: 24px 0; border-top: 2px solid var(--text); }
.principles h3 { font-size: 1.2rem; }
.principles p { color: var(--muted); margin: 0; font-size: .97rem; }
.about-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.plain-list li { padding: 12px 0; border-top: 1px solid var(--line); font-weight: 600; }
.cta-band .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band .section-title { margin: 0; }
@media (max-width: 800px) { .about-intro:has(.about-photo), .about-cols { grid-template-columns: 1fr; } }

/* Contact --------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 7vw, 112px); padding-block: clamp(40px, 6vw, 96px); align-items: start; }
.contact-details { margin-top: 32px; }
.contact-details li { padding: 12px 0; border-top: 1px solid var(--line); font-weight: 600; }
.contact-details a:hover { color: var(--orange); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.field { margin: 0 0 22px; }
.field label { display: block; font-weight: 700; font-size: .88rem; margin-bottom: 8px; }
.field input, .field select, .field textarea { width: 100%; padding: 14px 16px; font: 500 16px var(--font); color: var(--text); background: #fff; border: 1px solid #D5D0C8; border-radius: 3px; transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(232, 117, 50, .18); }
.hp { position: absolute; left: -9999px; }
.form-notice { padding: 16px 18px; border-left: 4px solid; margin-bottom: 28px; font-weight: 600; }
.form-notice--ok { background: #F0F8F1; border-color: #2E7D32; }
.form-notice--err { background: #FDF1EE; border-color: #C0392B; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } .field-row { grid-template-columns: 1fr; } }

/* Generic content ------------------------------------------------------- */
.entry-content > * + * { margin-top: 1.2em; }
.entry-content h2 { font-size: 1.8rem; margin-top: 1.6em; }
.entry-content h3 { font-size: 1.35rem; margin-top: 1.4em; }
.entry-content a { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
.entry-content ul { list-style: disc; padding-left: 1.3em; }
.entry-content ol { list-style: decimal; padding-left: 1.3em; }
.entry-content img { height: auto; }
.entry-content blockquote { margin-inline: 0; padding-left: 1.2em; border-left: 3px solid var(--orange); font-size: 1.15em; }
.post-row { padding: 28px 0; border-top: 1px solid var(--line); }
.post-row__title { font-size: 1.6rem; } .post-row__title a:hover { color: var(--orange); }
.pagination { margin-top: 32px; } .pagination .page-numbers { padding: 8px 12px; } .pagination .current { font-weight: 800; color: var(--orange); }

/* Footer ---------------------------------------------------------------- */
.site-footer { background: #222; color: #D9D5CF; }
.site-footer a:hover { color: var(--orange); }
.footer-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-block: clamp(40px, 6vw, 72px); border-bottom: 1px solid rgba(255, 255, 255, .14); }
.footer-cta__title { margin: 0; font-size: clamp(1.7rem, 3.4vw, 3rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 40px; padding-block: 48px; }
.footer-name { color: #fff; font-weight: 800; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .03em; margin-bottom: .5em; }
.footer-brand p:last-child { max-width: 24em; margin: 0; }
.footer-nav .menu li a { display: inline-block; padding: 4px 0; font-weight: 600; }
.footer-contact p { margin-bottom: .4em; }
.social-list { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 12px; }
.social-list a { font-weight: 700; color: #fff; }
.footer-bottom { padding-block: 22px 32px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .88rem; color: #A9A49D; }
.footer-bottom p { margin: 0; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* Motion ---------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero-copy > *:not(.hero-dot) { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.hero-copy .hero-title { animation-delay: .08s; } .hero-copy .hero-lead { animation-delay: .16s; } .hero-copy .hero-actions { animation-delay: .24s; }
.hero-collage .collage-col { animation: rise .8s .2s cubic-bezier(.2, .7, .2, 1) both; }
.hero-collage .collage-col--1 { animation-delay: .34s; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
	.ticker-track { animation: none !important; }
	.ticker { overflow-x: auto; }
	.js .reveal { opacity: 1; transform: none; }
}

/* Responsive hero ------------------------------------------------------- */
@media (max-width: 960px) {
	.hero-grid { grid-template-columns: 1fr; padding-bottom: 48px; }
	.hero-title { font-size: clamp(2.6rem, 9vw, 4.2rem); }
	.hero-dot { right: 0; }
	.collage-col--1 { margin-top: 28px; }
}
@media (max-width: 560px) {
	body { font-size: 16px; }
	.hero { padding-top: 28px; }
	.hero-actions .btn { width: 100%; justify-content: center; }
	.hero-collage .is-extra { display: none; }
	.collage-col--1 { margin-top: 20px; }
	.footer-cta .btn { width: 100%; justify-content: center; }
}
