/*!
Theme Name: Portfolio Salma (Dev)
Theme URI: http://underscores.me/
Author: Salma Lopez Gil
Author URI: http://underscores.me/
Description: salma
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: portfolio-salma
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

portfolio-salma is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/*--------------------------------------------------------------
# Custom Fonts
--------------------------------------------------------------*/

/* Avara - Display font for hero text */
@font-face {
	font-family: 'Avara';
	src: url('fonts/Avara-Bold.woff') format('woff');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Avara';
	src: url('fonts/Avara-BoldItalic.woff') format('woff');
	font-weight: 700;
	font-style: italic;
	font-display: swap;
}

@font-face {
	font-family: 'Avara';
	src: url('fonts/Avara-Black.woff') format('woff');
	font-weight: 900;
	font-style: normal;
	font-display: swap;
}

/* Satoshi - Body font */
@font-face {
	font-family: 'Satoshi';
	src: url('fonts/Satoshi-Regular.woff') format('woff');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Satoshi';
	src: url('fonts/Satoshi-Italic.woff') format('woff');
	font-weight: 400;
	font-style: italic;
	font-display: swap;
}

@font-face {
	font-family: 'Satoshi';
	src: url('fonts/Satoshi-Medium.woff') format('woff');
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Satoshi';
	src: url('fonts/Satoshi-Bold.woff') format('woff');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Satoshi';
	src: url('fonts/Satoshi-Black.woff') format('woff');
	font-weight: 900;
	font-style: normal;
	font-display: swap;
}

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
	- Normalize
	- Box sizing
# Base
	- Typography
	- Elements
	- Links
	- Forms
## Layouts
# Components
	- Navigation
	- Posts and pages
	- Comments
	- Widgets
	- Media
	- Captions
	- Galleries
# plugins
	- Jetpack infinite scroll
# Utilities
	- Accessibility
	- Alignments

--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/

/* Normalize
--------------------------------------------- */

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
	 ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
html {
	line-height: 1.15;
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

/* Prevent selection and image dragging */
body {
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

img {
	-webkit-user-drag: none;
	pointer-events: auto;
}

/* Sections
	 ========================================================================== */

/**
 * Remove the margin in all browsers.
 */
body {
	margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */
main {
	display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
	font-size: 2em;
	margin: 0.67em 0;
}

/* Grouping content
	 ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
	box-sizing: content-box;
	height: 0;
	overflow: visible;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
	font-family: monospace, monospace;
	font-size: 1em;
}

/* Text-level semantics
	 ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */
a {
	background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
	border-bottom: none;
	text-decoration: underline;
	text-decoration: underline dotted;
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
	font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
	font-family: monospace, monospace;
	font-size: 1em;
}

/**
 * Add the correct font size in all browsers.
 */
small {
	font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sub {
	bottom: -0.25em;
}

sup {
	top: -0.5em;
}

/* Embedded content
	 ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */
img {
	border-style: none;
}

/* Forms
	 ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
	font-family: inherit;
	font-size: 100%;
	line-height: 1.15;
	margin: 0;
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input {
	overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select {
	text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type="button"],
[type="reset"],
[type="submit"] {
	-webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
	border-style: none;
	padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
	outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */
fieldset {
	padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *		`fieldset` elements in all browsers.
 */
legend {
	box-sizing: border-box;
	color: inherit;
	display: table;
	max-width: 100%;
	padding: 0;
	white-space: normal;
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
	vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
	overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type="checkbox"],
[type="radio"] {
	box-sizing: border-box;
	padding: 0;
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
	height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type="search"] {
	-webkit-appearance: textfield;
	outline-offset: -2px;
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type="search"]::-webkit-search-decoration {
	-webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
	-webkit-appearance: button;
	font: inherit;
}

/* Interactive
	 ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
	display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
	display: list-item;
}

/* Misc
	 ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */
template {
	display: none;
}

/**
 * Add the correct display in IE 10.
 */
[hidden] {
	display: none;
}

/* Box sizing
--------------------------------------------- */

/* Inherit box-sizing to more easily change it's value on a component level.
@link http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
*,
*::before,
*::after {
	box-sizing: inherit;
}

html {
	box-sizing: border-box;
}

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/

/* Typography
--------------------------------------------- */
body,
button,
input,
select,
optgroup,
textarea {
	color: #404040;
	font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	font-size: 1rem;
	line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	clear: both;
}

p {
	margin-bottom: 1.5em;
}

dfn,
cite,
em,
i {
	font-style: italic;
}

blockquote {
	margin: 0 1.5em;
}

address {
	margin: 0 0 1.5em;
}

pre {
	background: #eee;
	font-family: "Courier 10 Pitch", courier, monospace;
	line-height: 1.6;
	margin-bottom: 1.6em;
	max-width: 100%;
	overflow: auto;
	padding: 1.6em;
}

code,
kbd,
tt,
var {
	font-family: monaco, consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
}

abbr,
acronym {
	border-bottom: 1px dotted #666;
	cursor: help;
}

mark,
ins {
	background: #fff9c0;
	text-decoration: none;
}

big {
	font-size: 125%;
}

/* Elements
--------------------------------------------- */
body {
	background: #171412;
}

hr {
	background-color: #ccc;
	border: 0;
	height: 1px;
	margin-bottom: 1.5em;
}

ul,
ol {
	margin: 0 0 1.5em 3em;
}

ul {
	list-style: disc;
}

ol {
	list-style: decimal;
}

li>ul,
li>ol {
	margin-bottom: 0;
	margin-left: 1.5em;
}

dt {
	font-weight: 700;
}

dd {
	margin: 0 1.5em 1.5em;
}

/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
	max-width: 100%;
}

img {
	height: auto;
	max-width: 100%;
}

figure {
	margin: 1em 0;
}

table {
	margin: 0 0 1.5em;
	width: 100%;
}

/* Links
--------------------------------------------- */
a {
	color: inherit;
	text-decoration: none;
}

a:visited {
	color: inherit;
}

a:hover,
a:focus,
a:active {
	color: inherit;
}

a:focus {
	outline: none;
}

a:hover,
a:active {
	outline: none;
}

/* Forms
--------------------------------------------- */
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
	border: 1px solid;
	border-color: #ccc #ccc #bbb;
	border-radius: 3px;
	background: #e6e6e6;
	color: rgba(0, 0, 0, 0.8);
	line-height: 1;
	padding: 0.6em 1em 0.4em;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
	border-color: #ccc #bbb #aaa;
}

button:active,
button:focus,
input[type="button"]:active,
input[type="button"]:focus,
input[type="reset"]:active,
input[type="reset"]:focus,
input[type="submit"]:active,
input[type="submit"]:focus {
	border-color: #aaa #bbb #bbb;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {
	color: #666;
	border: 1px solid #ccc;
	border-radius: 3px;
	padding: 3px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus {
	color: #111;
}

select {
	border: 1px solid #ccc;
}

textarea {
	width: 100%;
}

/*--------------------------------------------------------------
# Layouts
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Components
--------------------------------------------------------------*/

/* Navigation
--------------------------------------------- */
.main-navigation {
	display: block;
	width: 100%;
}

.main-navigation ul {
	display: none;
	list-style: none;
	margin: 0;
	padding-left: 0;
}

.main-navigation ul ul {
	box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
	float: left;
	position: absolute;
	top: 100%;
	left: -999em;
	z-index: 99999;
}

.main-navigation ul ul ul {
	left: -999em;
	top: 0;
}

.main-navigation ul ul li:hover>ul,
.main-navigation ul ul li.focus>ul {
	display: block;
	left: auto;
}

.main-navigation ul ul a {
	width: 200px;
}

.main-navigation ul li:hover>ul,
.main-navigation ul li.focus>ul {
	left: auto;
}

.main-navigation li {
	position: relative;
}

.main-navigation a {
	display: block;
	text-decoration: none;
}

/* Small menu. */
.menu-toggle,
.main-navigation.toggled ul {
	display: block;
}

@media screen and (min-width: 37.5em) {

	.menu-toggle {
		display: none;
	}

	.main-navigation ul {
		display: flex;
	}
}

.site-main .comment-navigation,
.site-main .posts-navigation,
.site-main .post-navigation {
	margin: 0 0 1.5em;
}

.comment-navigation .nav-links,
.posts-navigation .nav-links,
.post-navigation .nav-links {
	display: flex;
}

.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
	flex: 1 0 50%;
}

.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
	text-align: end;
	flex: 1 0 50%;
}

/* Posts and pages
--------------------------------------------- */
.sticky {
	display: block;
}

.post,
.page {
	margin: 0 0 1.5em;
}

.updated:not(.published) {
	display: none;
}

.page-content,
.entry-content,
.entry-summary {
	margin: 1.5em 0 0;
}

.page-links {
	clear: both;
	margin: 0 0 1.5em;
}

/* Comments
--------------------------------------------- */
.comment-content a {
	word-wrap: break-word;
}

.bypostauthor {
	display: block;
}

/* Widgets
--------------------------------------------- */
.widget {
	margin: 0 0 1.5em;
}

.widget select {
	max-width: 100%;
}

/* Media
--------------------------------------------- */
.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
	border: none;
	margin-bottom: 0;
	margin-top: 0;
	padding: 0;
}

/* Make sure logo link wraps around logo image. */
.custom-logo-link {
	display: inline-block;
}

/* Captions
--------------------------------------------- */
.wp-caption {
	margin-bottom: 1.5em;
	max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption .wp-caption-text {
	margin: 0.8075em 0;
}

.wp-caption-text {
	text-align: center;
}

/* Galleries
--------------------------------------------- */
.gallery {
	margin-bottom: 1.5em;
	display: grid;
	grid-gap: 1.5em;
}

.gallery-item {
	display: inline-block;
	text-align: center;
	width: 100%;
}

.gallery-columns-2 {
	grid-template-columns: repeat(2, 1fr);
}

.gallery-columns-3 {
	grid-template-columns: repeat(3, 1fr);
}

.gallery-columns-4 {
	grid-template-columns: repeat(4, 1fr);
}

.gallery-columns-5 {
	grid-template-columns: repeat(5, 1fr);
}

.gallery-columns-6 {
	grid-template-columns: repeat(6, 1fr);
}

.gallery-columns-7 {
	grid-template-columns: repeat(7, 1fr);
}

.gallery-columns-8 {
	grid-template-columns: repeat(8, 1fr);
}

.gallery-columns-9 {
	grid-template-columns: repeat(9, 1fr);
}

.gallery-caption {
	display: block;
}

/*--------------------------------------------------------------
# Plugins
--------------------------------------------------------------*/

/* Jetpack infinite scroll
--------------------------------------------- */

/* Hide the Posts Navigation and the Footer when Infinite Scroll is in use. */
.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer {
	display: none;
}

/* Re-display the Theme Footer when Infinite Scroll has reached its end. */
.infinity-end.neverending .site-footer {
	display: block;
}

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

.site-footer {
	position: relative;
	background-color: #171412;
	padding: 2rem;
	min-height: 280px;
	display: flex;
	align-items: center;
}

/* Corner dots */
.footer-dot {
	position: absolute;
	width: 12px;
	height: 12px;
	background: #EAFF00;
	border-radius: 50%;
}

.footer-dot-tl {
	top: 1rem;
	left: 1rem;
}

.footer-dot-tr {
	top: 1rem;
	right: 1rem;
}

.footer-dot-bl {
	bottom: 1rem;
	left: 1rem;
}

.footer-dot-br {
	bottom: 1rem;
	right: 1rem;
}

.footer-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 2rem;
	width: 100%;
}

/* Links stacked vertically on the left */
.footer-links {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.footer-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: #F5F5F0;
	text-decoration: none;
	font-size: 1rem;
	font-family: 'Satoshi', sans-serif;
	font-weight: 500;
	transition: color 0.2s ease;
}

.footer-link:hover {
	color: #EAFF00;
}

.footer-link:visited {
	color: #F5F5F0;
}

.footer-link svg {
	flex-shrink: 0;
}

/* Copyright positioned at bottom right, left of the dot */
.footer-copyright {
	position: absolute;
	bottom: 1rem;
	right: 2.5rem;
	color: rgba(245, 245, 240, 0.6);
	font-size: 0.875rem;
	font-family: 'Satoshi', sans-serif;
	font-weight: 400;
}

@media (max-width: 600px) {
	.site-footer {
		padding: 4rem 1.5rem 2rem;
	}

	.footer-dot {
		width: 10px;
		height: 10px;
	}

	.footer-content {
		padding: 0 1rem;
	}

	.footer-link {
		font-size: 0.9rem;
	}

	.footer-copyright {
		right: 2rem;
	}
}

/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/

/* Accessibility
--------------------------------------------- */

/* Text meant only for screen readers. */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* Do not show the outline on the skip link target. */
#primary[tabindex="-1"]:focus {
	outline: 0;
}

/* Alignments
--------------------------------------------- */
.alignleft {

	/*rtl:ignore*/
	float: left;

	/*rtl:ignore*/
	margin-right: 1.5em;
	margin-bottom: 1.5em;
}

.alignright {

	/*rtl:ignore*/
	float: right;

	/*rtl:ignore*/
	margin-left: 1.5em;
	margin-bottom: 1.5em;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 1.5em;
}

/*--------------------------------------------------------------
# Hero Section & Interactive Mask
--------------------------------------------------------------*/

/* Navigation Bar
--------------------------------------------- */
.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	background: transparent;
}

/* Inverted nav (white text for dark backgrounds) - applied via JS */
.site-header.nav-inverted {
	background: transparent;
}

.site-header.nav-inverted .nav-menu a {
	color: #F5F5F0;
}

.site-header.nav-inverted .nav-menu a:visited {
	color: #F5F5F0;
}

.site-header.nav-inverted .nav-menu a:hover,
.site-header.nav-inverted .nav-menu a:focus {
	color: #EAFF00;
}

.site-header.nav-inverted .site-logo-link,
.site-header.nav-inverted .custom-logo-link {
	color: #F5F5F0;
}

.site-header.nav-inverted .site-logo-icon {
	filter: invert(1);
}

.site-header.nav-inverted .menu-toggle-icon,
.site-header.nav-inverted .menu-toggle-icon::before,
.site-header.nav-inverted .menu-toggle-icon::after {
	background: #F5F5F0;
}

/* Non-homepage: always white nav (dark backgrounds, no JS needed) */
body:not(.home) .nav-menu a,
body:not(.home) .nav-menu a:visited {
	color: #F5F5F0;
}

body:not(.home) .nav-menu a:hover,
body:not(.home) .nav-menu a:focus {
	color: #EAFF00;
}

body:not(.home) .site-logo-icon,
body:not(.home) .custom-logo {
	filter: invert(1);
}

body:not(.home) .menu-toggle-icon,
body:not(.home) .menu-toggle-icon::before,
body:not(.home) .menu-toggle-icon::after {
	background: #F5F5F0;
}

/* Hide page titles on front page */
.home .entry-header,
.home .entry-title,
.home .page-title {
	display: none;
}

.main-navigation {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0.75rem 2rem;
	max-width: 1400px;
	margin: 0 auto;
}

.nav-left,
.nav-right {
	flex: 0 0 auto;
}

.nav-left {
	display: flex;
}

.nav-right {
	display: flex;
}

.nav-logo {
	flex: 0 0 auto;
	padding: 0 1.5rem;
}

.nav-menu {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 1.5rem;
}

.nav-menu li {
	margin: 0;
}

.nav-menu a {
	display: block;
	padding: 0.5rem 0;
	color: #1a1a1a;
	text-decoration: none;
	font-family: 'Avara', serif;
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	transition: color 0.6s ease;
}

.nav-menu a:hover,
.nav-menu a:focus {
	color: #666;
}

.nav-menu a:visited {
	color: #1a1a1a;
}

/* Logo */
.site-logo-link,
.custom-logo-link {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #1a1a1a;
	transition: color 0.6s ease;
}

.site-logo-icon {
	height: 36px;
	width: auto;
	transition: filter 0.6s ease;
}

.custom-logo {
	max-height: 40px;
	width: auto;
	transition: filter 0.6s ease;
}

.site-header.nav-inverted .custom-logo {
	filter: invert(1);
}

/* Mobile menu toggle */
.menu-toggle {
	display: none;
	background: none;
	border: none;
	padding: 0.5rem;
	cursor: pointer;
}

.menu-toggle-icon {
	display: block;
	width: 24px;
	height: 2px;
	background: #1a1a1a;
	position: relative;
}

.menu-toggle-icon::before,
.menu-toggle-icon::after {
	content: '';
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	background: #1a1a1a;
}

.menu-toggle-icon::before {
	top: -7px;
}

.menu-toggle-icon::after {
	bottom: -7px;
}

/* Hero Section
--------------------------------------------- */
.hero-section {
	position: relative;
	width: 100%;
	height: 100vh;
	min-height: 500px;
	overflow: hidden;
	background-color: #D9D9D9;
	/* Account for fixed header */
	margin-top: 0;
}

/* Scroll indicator bounce */
.scroll-indicator {
	position: absolute;
	bottom: 2rem;
	left: 50%;
	transform: translateX(-50%);
	z-index: 10;
	color: #fff;
	opacity: 0.7;
	animation: scrollBounce 2s ease-in-out infinite;
	transition: opacity 0.5s ease;
}

@keyframes scrollBounce {
	0%, 100% {
		transform: translateX(-50%) translateY(0);
	}
	50% {
		transform: translateX(-50%) translateY(10px);
	}
}

/* BOTTOM LAYER: Text (revealed through the mask hole) */
.hero-text-layer {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1;
	padding: 2rem;
}

.hero-skills {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 0;
	max-width: 90vw;
	transform: translateY(50px);
	/* Shift down slightly */
}

/* Grey repeated copies - absolutely positioned so they don't affect centering */
.hero-skills-repeat {
	position: absolute;
	left: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0;
	opacity: 0.15;
	pointer-events: none;
}

.hero-skills-repeat-top {
	bottom: 100%;
}

.hero-skills-repeat-bottom {
	top: 100%;
}

.hero-skill {
	font-family: 'Avara', 'Times New Roman', Times, Georgia, serif;
	font-size: clamp(3rem, 9vw, 7rem);
	font-weight: 700;
	line-height: 1.05;
	color: #171412;
	text-transform: uppercase;
	letter-spacing: -0.02em;
	white-space: nowrap;
	/* Animation support */
	will-change: transform, opacity;
	transform-style: preserve-3d;
	backface-visibility: hidden;
}

/* TOP LAYER: Image with SVG mask (has hole revealing text) */
.hero-image-layer {
	position: absolute;
	inset: 0;
	z-index: 2;
}

.hero-svg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: block;
}

/* Control points - always visible */
.control-points {
	pointer-events: all;
}

.control-point {
	cursor: grab;
	touch-action: none;
}

/* Page content section */
.page-content-section {
	padding: 4rem 2rem;
	max-width: 1200px;
	margin: 0 auto;
}

/* Responsive
--------------------------------------------- */
@media screen and (max-width: 768px) {
	.main-navigation {
		flex-wrap: wrap;
		justify-content: flex-start;
		padding: 0.75rem 1rem;
	}

	.menu-toggle {
		display: none;
	}

	.nav-logo {
		order: 1;
		flex: 0 0 auto;
		text-align: left;
		padding: 0;
		cursor: pointer;
	}

	.nav-left,
	.nav-right {
		display: none;
		width: 100%;
		order: 3;
	}

	/* When menu is open */
	.main-navigation.toggled {
		background: #D9D9D9;
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 1001;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		padding: 2rem;
	}

	.main-navigation.toggled .nav-logo {
		position: absolute;
		top: 0.75rem;
		left: 1rem;
	}

	/* Reset inverted styles when menu is open */
	.main-navigation.toggled .site-logo-icon,
	.main-navigation.toggled .custom-logo {
		filter: none !important;
	}

	.main-navigation.toggled .nav-left,
	.main-navigation.toggled .nav-right {
		display: block;
		width: auto;
		text-align: center;
	}

	.main-navigation.toggled .nav-menu {
		flex-direction: column;
		align-items: center;
		gap: 0.25rem;
		padding: 0;
	}

	.main-navigation.toggled .nav-menu li {
		text-align: center;
	}

	.main-navigation.toggled .nav-menu a,
	.main-navigation.toggled .nav-menu a:visited {
		display: inline-block;
		color: #171412;
		font-family: 'Avara', serif;
		font-size: 2rem;
		font-weight: 700;
		padding: 0.5rem 0;
		position: relative;
	}

	.main-navigation.toggled .nav-menu a:hover,
	.main-navigation.toggled .nav-menu a:focus {
		color: #EAFF00;
	}

	/* Yellow dots on active page link */
	.main-navigation.toggled .nav-menu a.is-active {
		display: inline-flex;
		align-items: center;
		gap: 0.6rem;
	}

	.main-navigation.toggled .nav-menu a.is-active::before,
	.main-navigation.toggled .nav-menu a.is-active::after {
		content: '';
		width: 10px;
		height: 10px;
		border-radius: 50%;
		background: #EAFF00;
		flex-shrink: 0;
	}

	.nav-menu {
		flex-direction: column;
		gap: 0;
		padding: 1rem 0;
	}

	.nav-menu a {
		padding: 0.75rem 0;
	}

	.hero-skill {
		font-size: clamp(1.75rem, 7vw, 3.5rem);
	}

	.hero-text-layer {
		padding: 1rem;
	}
}

@media screen and (max-width: 480px) {
	.hero-skill {
		font-size: clamp(1.5rem, 9vw, 2.5rem);
	}

	.hero-text-layer {
		padding: 0.5rem;
	}
}

/* Graceful degradation - if JS fails, show content normally */
.no-js .hero-section {
	background-size: cover;
	background-position: center;
}

.no-js .hero-image-layer {
	opacity: 0.7;
}

.no-js .control-points {
	display: none;
}

/* About Section - Two Column Layout with Circle Reveal
--------------------------------------------- */
.about-section {
	position: relative;
	background-color: #171412;
	color: #F5F5F0;
	min-height: 100vh;
	display: flex;
	align-items: center;
	overflow: hidden;
	transition: background-color 0.6s ease, color 0.6s ease;
}

/* Color shifted state - light mode */
.about-section.color-shifted {
	background-color: #D9D9D9;
	color: #1a1a1a;
}

/* Yellow overlay for circle reveal animation */
.about-reveal-overlay {
	position: absolute;
	z-index: 10;
	pointer-events: none;
	/* Styles set by JS for circle hole animation */
}

.about-container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	max-width: 1200px;
	width: 100%;
	margin: 0 auto;
	padding: 6rem 4rem;
	align-items: center;
}

.about-left {
	display: flex;
	justify-content: center;
	align-items: center;
}

.about-image {
	max-width: 100%;
	width: 100%;
}

.about-image img {
	width: 100%;
	height: auto;
	display: block;
}

.about-right {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.about-heading {
	font-family: 'Avara', 'Times New Roman', Times, Georgia, serif;
	font-size: clamp(3rem, 8vw, 5rem);
	font-weight: 700;
	line-height: 1;
	color: #F5F5F0;
	margin: 0 0 2rem 0;
	transition: color 0.6s ease;
}

.about-section.color-shifted .about-heading {
	color: #1a1a1a;
}

.about-text {
	font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: 1.05rem;
	line-height: 1.8;
	color: #E0E0DC;
	text-align: justify;
	transition: color 0.6s ease;
}

.about-section.color-shifted .about-text {
	color: #333;
}

.about-text p {
	margin: 0 0 1.5rem 0;
}

.about-text p:last-child {
	margin-bottom: 0;
}

/* Responsive - About Section */
@media screen and (max-width: 968px) {
	.about-container {
		grid-template-columns: 1fr;
		gap: 3rem;
		padding: 5rem 3rem;
		text-align: center;
	}

	.about-left {
		order: 1;
	}

	.about-right {
		order: 2;
		align-items: center;
	}

	.about-image {
		max-width: 400px;
	}

	.about-text {
		text-align: left;
		max-width: 600px;
	}
}

@media screen and (max-width: 768px) {
	.about-container {
		padding: 4rem 2rem;
		gap: 2.5rem;
	}

	.about-heading {
		font-size: clamp(2.5rem, 10vw, 4rem);
		margin-bottom: 1.5rem;
	}

	.about-image {
		max-width: 320px;
	}

	.about-text {
		font-size: 1rem;
	}
}

@media screen and (max-width: 480px) {
	.about-container {
		padding: 3rem 1.5rem;
		gap: 2rem;
	}

	.about-heading {
		margin-bottom: 1.25rem;
	}

	.about-image {
		max-width: 260px;
	}

	.about-text {
		font-size: 0.95rem;
		line-height: 1.7;
	}
}

/* ==========================================================================
   PROJECTS DOT GRID SECTION - Hover to Reveal Thumbnails
   ========================================================================== */

.projects-section {
	background-color: #171412;
	min-height: 100vh;
	padding: 4rem 3rem 16rem;
	transition: background-color 0.6s ease;
}

/* Color shifted state - light mode */
.projects-section.color-shifted {
	background-color: #D9D9D9;
}

.projects-container {
	max-width: 1200px;
	margin: 0 auto;
}

/* Tag Filter Buttons */
.projects-filter {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
	margin-bottom: 4rem;
}

.filter-tag {
	font-family: 'Avara', 'Times New Roman', Times, Georgia, serif;
	font-size: 0.9rem;
	font-weight: 700;
	padding: 0.5rem 1.25rem;
	border: 2px solid rgba(255, 255, 255, 0.4);
	border-radius: 50px;
	background: transparent;
	color: rgba(255, 255, 255, 0.7);
	cursor: pointer;
	transition: all 0.3s ease;
	-webkit-tap-highlight-color: transparent;
}

.filter-tag:hover {
	border-color: rgba(255, 255, 255, 0.8);
	color: #fff;
}

.filter-tag.is-active {
	background: #EAFF00;
	border-color: #EAFF00;
	color: #171412;
}

/* Light mode filter buttons */
.projects-section.color-shifted .filter-tag {
	border-color: rgba(0, 0, 0, 0.3);
	color: rgba(0, 0, 0, 0.6);
}

.projects-section.color-shifted .filter-tag:hover {
	border-color: rgba(0, 0, 0, 0.6);
	color: #171412;
}

.projects-section.color-shifted .filter-tag.is-active {
	background: #EAFF00;
	border-color: #EAFF00;
	color: #171412;
}

/* Dot Grid Layout */
.projects-dot-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12rem;
	/* Equal row and column gap for visual grid */
	justify-items: center;
	/* Center each dot in its cell */
}

/* Single Dot Item */
.project-dot-item {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	text-decoration: none;
	cursor: pointer;
	background: none;
	border: none;
	padding: 0;
	text-align: left;
	/* Remove tap highlight on mobile */
	-webkit-tap-highlight-color: transparent;
	-webkit-touch-callout: none;
	outline: none;
	transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Hidden state for filtered projects */
.project-dot-item.is-hidden {
	opacity: 0;
	transform: scale(0.8);
	pointer-events: none;
	position: absolute;
	visibility: hidden;
}

/* Number */
.project-dot-number {
	font-family: 'Avara', 'Times New Roman', Times, Georgia, serif;
	font-size: 0.9rem;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.6);
	line-height: 1;
	transition: color 0.6s ease;
}

.projects-section.color-shifted .project-dot-number {
	color: rgba(0, 0, 0, 0.6);
}

/* Yellow Dot */
.project-dot {
	width: 10px;
	height: 10px;
	background-color: #EAFF00;
	border-radius: 50%;
	margin-top: 2px;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-dot-item:hover .project-dot,
.project-dot-item.preview-active .project-dot {
	transform: scale(1.2);
	box-shadow: 0 0 12px rgba(234, 255, 0, 0.6);
}

/* Preview Card (hidden by default) */
.project-dot-preview {
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%) translateY(-10px);
	margin-top: 0.75rem;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
	z-index: 10;
	pointer-events: none;
}

.project-dot-item:hover .project-dot-preview,
.project-dot-item.preview-active .project-dot-preview {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(0);
}

/* Make preview clickable on mobile when active */
.project-dot-item.preview-active .project-dot-preview {
	pointer-events: auto;
	cursor: pointer;
}

.project-dot-preview img {
	width: 140px !important;
	height: 140px !important;
	min-width: 140px;
	min-height: 140px;
	max-width: 140px;
	max-height: 140px;
	flex-shrink: 0;
	display: block;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
	object-fit: cover;
	/* Crop to square */
}

.project-dot-placeholder {
	width: 100%;
	aspect-ratio: 4 / 3;
	background: rgba(255, 255, 255, 0.1);
	transition: background 0.6s ease;
}

.projects-section.color-shifted .project-dot-placeholder {
	background: rgba(0, 0, 0, 0.1);
}

/* No Projects Message */
.no-projects {
	font-family: 'Satoshi', sans-serif;
	font-size: 1rem;
	color: rgba(255, 255, 255, 0.5);
	text-align: center;
	padding: 4rem;
	grid-column: 1 / -1;
	transition: color 0.6s ease;
}

.projects-section.color-shifted .no-projects {
	color: rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   RESPONSIVE - Projects Dot Grid
   ========================================================================== */

@media screen and (max-width: 1024px) {
	.projects-dot-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 10rem;
		/* Equal gap for visual grid */
	}

	.project-dot-preview img {
		width: 120px !important;
		height: 120px !important;
		min-width: 120px;
		min-height: 120px;
		max-width: 120px;
		max-height: 120px;
	}
}

@media screen and (max-width: 768px) {
	.projects-section {
		padding: 3rem 1.5rem;
	}

	.projects-dot-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 8rem;
		/* Equal gap for visual grid */
	}

	.project-dot-number {
		font-size: 0.75rem;
	}

	.project-dot {
		width: 8px;
		height: 8px;
	}

	.project-dot-preview img {
		width: 100px !important;
		height: 100px !important;
		min-width: 100px;
		min-height: 100px;
		max-width: 100px;
		max-height: 100px;
	}
}

@media screen and (max-width: 480px) {
	.projects-section {
		padding: 2rem 1rem;
	}

	.projects-filter {
		gap: 0.5rem;
		margin-bottom: 3rem;
	}

	.filter-tag {
		font-size: 0.75rem;
		padding: 0.4rem 1rem;
	}

	.projects-dot-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 8rem 3rem;
		/* Row gap for previews, smaller column gap to bring dots closer */
	}

	.project-dot-number {
		font-size: 0.7rem;
	}

	.project-dot {
		width: 7px;
		height: 7px;
	}

	.project-dot-preview img {
		width: 90px !important;
		height: 90px !important;
		min-width: 90px;
		min-height: 90px;
		max-width: 90px;
		max-height: 90px;
	}
}

/* ==========================================================================
   PROJECT SLIDE-IN PANEL - New Design
   ========================================================================== */

.project-panel {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2000;
	pointer-events: none;
	visibility: hidden;
}

.project-panel.is-open {
	pointer-events: auto;
	visibility: visible;
}

/* Left side acts as close overlay */
.project-panel-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 50%;
	height: 100%;
	background: transparent;
	cursor: pointer;
}

/* Panel content - right 50% of screen, dark background */
.project-panel-content {
	position: absolute;
	top: 0;
	right: 0;
	width: 50%;
	height: 100%;
	background: #171412;
	transform: translateX(100%);
	transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	overflow-y: auto;
	overflow-x: hidden;
	display: flex;
	flex-direction: column;
	padding-bottom: 1rem;
}

.project-panel.is-open .project-panel-content {
	transform: translateX(0);
}

/* Close button - yellow/lime X in top right */
.project-panel-close {
	position: absolute;
	top: 1.5rem;
	right: 1.5rem;
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: none;
	cursor: pointer;
	color: #EAFF00;
	transition: transform 0.2s ease, opacity 0.2s ease;
	z-index: 10;
	-webkit-tap-highlight-color: transparent;
}

.project-panel-close svg {
	width: 32px;
	height: 32px;
}

.project-panel-close:hover {
	transform: scale(1.1);
	opacity: 0.8;
}

/* Header - Title and Meta */
.project-panel-header {
	padding: 2rem 2rem 1rem;
	padding-right: 4rem;
	/* Space for close button */
}

.project-panel-title {
	font-family: 'Avara', 'Times New Roman', Times, Georgia, serif;
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 700;
	color: #F5F5F0;
	margin: 0 0 0.75rem 0;
	line-height: 1.2;
}

.project-panel-meta {
	display: flex;
	align-items: center;
	gap: 1rem;
	font-family: 'Satoshi', sans-serif;
	font-size: 0.85rem;
	color: rgba(245, 245, 240, 0.6);
}

.panel-meta-year {
	color: #EAFF00;
	font-weight: 500;
}

.panel-meta-category {
	position: relative;
	padding-left: 1rem;
}

.panel-meta-category::before {
	content: '•';
	position: absolute;
	left: 0;
	color: rgba(245, 245, 240, 0.4);
}

/* Main content area - centered */
.project-panel-main {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 100%;
	padding: 1rem 2rem;
}

/* Media container for image/video */
.project-panel-media {
	position: relative;
	max-width: 90%;
	max-height: 55vh;
	display: flex;
	align-items: center;
	justify-content: center;
}

.project-panel-media img,
.project-panel-media video {
	max-width: 100%;
	max-height: 55vh;
	width: auto;
	height: auto;
	display: block;
	object-fit: contain;
}

.project-panel-media video {
	background: #000;
}

/* Custom video play button - yellow oval with Avara bold */
.panel-video-play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: #EAFF00;
	color: #171412;
	font-family: 'Avara', 'Times New Roman', Times, Georgia, serif;
	font-size: 1rem;
	font-weight: 700;
	padding: 0.6rem 1.75rem;
	border: none;
	border-radius: 50px;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	-webkit-tap-highlight-color: transparent;
	display: none;
	/* Hidden by default, shown via JS for videos */
	z-index: 5;
}

.panel-video-play:hover {
	transform: translate(-50%, -50%) scale(1.05);
	box-shadow: 0 4px 20px rgba(234, 255, 0, 0.3);
}

/* Hide play button when video is playing */
.panel-video-play.is-hidden {
	display: none !important;
}

/* Navigation arrows and counter */
.project-panel-nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.5rem;
	margin-top: 2rem;
}

.panel-nav-prev,
.panel-nav-next {
	background: none;
	border: none;
	color: #F5F5F0;
	font-family: 'Satoshi', sans-serif;
	font-size: 1.25rem;
	cursor: pointer;
	padding: 0.5rem;
	transition: color 0.2s ease, transform 0.2s ease;
	-webkit-tap-highlight-color: transparent;
}

.panel-nav-prev:hover,
.panel-nav-next:hover {
	color: #EAFF00;
	transform: scale(1.1);
}

.panel-nav-prev:disabled,
.panel-nav-next:disabled {
	opacity: 0.3;
	cursor: default;
	transform: none;
}

.panel-nav-counter {
	font-family: 'Satoshi', sans-serif;
	font-size: 1rem;
	color: #F5F5F0;
	min-width: 3rem;
	text-align: center;
}

/* Footer - Description and Tools */
.project-panel-footer {
	padding: 1.5rem 2rem 2rem;
	flex-shrink: 0;
}

.project-panel-excerpt {
	font-family: 'Satoshi', sans-serif;
	font-size: 0.9rem;
	line-height: 1.6;
	color: rgba(245, 245, 240, 0.85);
	margin: 0 0 1.25rem 0;
	/* Allow long text to display fully */
	white-space: normal;
	overflow: visible;
}

.project-panel-tools {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.project-panel-tools .tool-tag {
	font-family: 'Satoshi', sans-serif;
	font-size: 0.75rem;
	font-weight: 500;
	color: #171412;
	background: #EAFF00;
	padding: 0.35rem 0.75rem;
	border-radius: 20px;
}

/* Project Links (Website, YouTube) */
.project-panel-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.25rem;
}

.project-panel-links .project-link {
	font-family: 'Avara', 'Times New Roman', Times, Georgia, serif;
	font-size: 0.85rem;
	font-weight: 700;
	color: #EAFF00;
	text-decoration: none;
	padding: 0.5rem 1rem;
	border: 2px solid #EAFF00;
	border-radius: 25px;
	transition: all 0.3s ease;
}

.project-panel-links .project-link:hover {
	background: #EAFF00;
	color: #171412;
}

/* Body scroll lock when panel is open */
body.panel-open {
	overflow: hidden;
}

/* ==========================================================================
   RESPONSIVE - Project Panel
   ========================================================================== */

@media screen and (max-width: 968px) {
	.project-panel-overlay {
		width: 30%;
	}

	.project-panel-content {
		width: 70%;
	}
}

@media screen and (max-width: 768px) {
	.project-panel-overlay {
		width: 15%;
	}

	.project-panel-content {
		width: 85%;
	}

	.project-panel-header {
		padding: 1.5rem 1.5rem 0.75rem;
		padding-right: 3.5rem;
	}

	.project-panel-main {
		padding: 1rem 1.5rem;
	}

	.project-panel-media {
		max-width: 95%;
	}

	.project-panel-close {
		top: 1rem;
		right: 1rem;
	}

	.project-panel-footer {
		padding: 1rem 1.5rem 1.5rem;
	}

	.project-panel-excerpt {
		font-size: 0.85rem;
	}
}

@media screen and (max-width: 480px) {
	.project-panel-overlay {
		width: 0;
	}

	.project-panel-content {
		width: 100%;
	}

	.project-panel-header {
		padding: 1.25rem 1rem 0.5rem;
		padding-right: 3rem;
	}

	.project-panel-title {
		font-size: 1.25rem;
	}

	.project-panel-meta {
		font-size: 0.75rem;
	}

	.project-panel-main {
		padding: 0.75rem 1rem;
	}

	.project-panel-media {
		max-width: 100%;
		max-height: 45vh;
	}

	.project-panel-media img,
	.project-panel-media video {
		max-height: 45vh;
	}

	.project-panel-nav {
		margin-top: 1rem;
	}

	.project-panel-footer {
		padding: 1rem;
		text-align: center;
		padding: 1rem;
		margin-top: auto;
	}
}

/* ==========================================================================
   WORK PAGE - Horizontal Scroll Carousel
   ========================================================================== */

.work-page {
	background-color: #171412;
	min-height: 100vh;
}

/* Carousel Section */
.work-carousel-section {
	position: relative;
	height: 100vh;
	width: 100%;
	overflow: hidden;
	background-color: #171412;
}

/* Meta Display - Above Center Project */
.carousel-meta {
	position: absolute;
	top: 12%;
	left: 50%;
	transform: translateX(-50%);
	z-index: 10;
	text-align: center;
	font-family: 'Satoshi', sans-serif;
	font-size: 0.9rem;
	color: rgba(245, 245, 240, 0.7);
	display: flex;
	align-items: center;
	gap: 0.5rem;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.carousel-meta.is-visible {
	opacity: 1;
}

.carousel-meta-year {
	color: #EAFF00;
	font-weight: 500;
}

.carousel-meta-separator {
	color: rgba(245, 245, 240, 0.4);
}

.carousel-meta-category {
	text-transform: capitalize;
	letter-spacing: 0.05em;
}

/* Carousel Wrapper */
.carousel-wrapper {
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	transform: translateY(-50%);
	height: 65vh;
	overflow: visible;
}

/* Carousel Track */
.carousel-track {
	display: flex;
	align-items: center;
	height: 100%;
	will-change: transform;
	gap: 3vw;
	padding-left: calc(50vw - 17.5vw);
}

/* Carousel Item */
.carousel-item {
	flex-shrink: 0;
	width: 35vw;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	transform-origin: center center;
	transition: opacity 0.3s ease;
	will-change: transform, opacity;
}

.carousel-item.is-hidden {
	display: none !important;
}

.carousel-item.is-active {
	z-index: 5;
}

/* Carousel Item Link & Image */
.carousel-item-link {
	display: block;
	width: 100%;
	position: relative;
}

.carousel-item-image {
	width: 100%;
	height: auto;
	max-height: 65vh;
	object-fit: contain;
	display: block;
	transition: transform 0.4s ease;
}

.carousel-item-link:hover .carousel-item-image {
	transform: scale(1.02);
}

/* Yellow Dot with Curved Title (SVG) */
.carousel-item-dot {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	pointer-events: none;
	z-index: 10;
	width: 100px;
	height: 100px;
}

.dot-svg {
	width: 100%;
	height: 100%;
	display: block;
}

.dot-title-text {
	font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
	font-size: 11px;
	font-weight: 700;
	fill: #171412;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

/* Filter Buttons */
.carousel-filters {
	position: absolute;
	bottom: 5%;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
	z-index: 10;
	padding: 0 1rem;
}

.filter-btn {
	font-family: 'Avara', 'Times New Roman', Times, Georgia, serif;
	font-size: 0.85rem;
	font-weight: 700;
	padding: 0.5rem 1.25rem;
	border: 2px solid #fff;
	border-radius: 8px;
	background: transparent;
	color: #fff;
	cursor: pointer;
	transition: all 0.3s ease;
	-webkit-tap-highlight-color: transparent;
}

.filter-btn:hover {
	border-color: #EAFF00;
	color: #EAFF00;
}

.filter-btn.is-active {
	background: #EAFF00;
	border-color: #EAFF00;
	color: #171412;
}

/* ==========================================================================
   SINGLE PROJECT PAGE
   ========================================================================== */

/* Dark body background for project pages (prevents gap above main) */
body.single-project {
	background-color: #171412;
}

/* Sticky header on project pages */
body.single-project .site-header {
	position: sticky;
}

.single-project {
	background-color: #171412;
	min-height: 100vh;
}

.single-project article {
	width: 90%;
	max-width: 1000px;
	margin: 0 auto;
}

/* Project Hero */
.project-hero {
	padding: 0;
	text-align: center;
}

.project-title {
	font-family: 'Avara', 'Times New Roman', Times, Georgia, serif;
	font-size: clamp(2.5rem, 8vw, 5rem);
	font-weight: 700;
	color: #F5F5F0;
	margin: 0 0 1.5rem;
	line-height: 1.1;
}

.project-meta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	font-family: 'Satoshi', sans-serif;
	font-size: 1rem;
	color: rgba(245, 245, 240, 0.7);
	margin-bottom: 1.5rem;
}

.project-year {
	color: #EAFF00;
	font-weight: 500;
}

.project-category {
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

.project-tags {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
}

.project-tag {
	font-family: 'Satoshi', sans-serif;
	font-size: 0.75rem;
	padding: 0.35rem 0.75rem;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 50px;
	color: rgba(245, 245, 240, 0.8);
}

/* Project Featured Image */
.project-featured-image {
	margin-bottom: 35vh;
	overflow: hidden;
}

.project-featured-image img {
	width: 100%;
	height: auto;
	max-height: 85vh;
	object-fit: contain;
	display: block;
}

/* Project Content Wrapper */
.project-content-wrapper {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 4rem;
	margin-bottom: 4rem;
}

.project-content {
	color: #F5F5F0;
	font-family: 'Satoshi', sans-serif;
	font-size: 1.1rem;
	line-height: 1.8;
}

.project-content p {
	margin-bottom: 1.5rem;
}

.project-content h2,
.project-content h3,
.project-content h4 {
	font-family: 'Avara', 'Times New Roman', Times, Georgia, serif;
	color: #F5F5F0;
	margin: 2rem 0 1rem;
}

/* Project Sidebar */
.project-sidebar {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.project-sidebar h3 {
	font-family: 'Avara', 'Times New Roman', Times, Georgia, serif;
	font-size: 0.9rem;
	font-weight: 700;
	color: rgba(245, 245, 240, 0.5);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	margin: 0 0 0.75rem;
}

.tools-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.tool-tag {
	font-family: 'Satoshi', sans-serif;
	font-size: 0.8rem;
	padding: 0.4rem 0.75rem;
	background: rgba(234, 255, 0, 0.1);
	border: 1px solid rgba(234, 255, 0, 0.3);
	border-radius: 4px;
	color: #EAFF00;
}

.project-links {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.project-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: 'Satoshi', sans-serif;
	font-size: 0.9rem;
	color: #F5F5F0;
	text-decoration: none;
	transition: color 0.3s ease;
}

.project-link:hover {
	color: #EAFF00;
}

.project-link svg {
	transition: transform 0.3s ease;
}

.project-link:hover svg {
	transform: translate(2px, -2px);
}

/* Project Gallery */
.project-gallery {
	margin-bottom: 35vh;
}

.gallery-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.5rem;
	width: 100%;
}

.gallery-item {
	overflow: hidden;
}

.gallery-item img,
.gallery-item video {
	width: 100%;
	height: auto;
	max-height: 85vh;
	object-fit: contain;
	display: block;
}

.gallery-item:first-child {
	grid-column: span 2;
}

/* Compact Gallery for All Projects */
.project-gallery-compact .gallery-grid {
	grid-template-columns: repeat(2, 1fr);
	gap: 1rem;
	max-width: 1200px;
	margin: 0 auto;
}

.project-gallery-compact .gallery-item {
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

.project-gallery-compact .gallery-item img,
.project-gallery-compact .gallery-item video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	cursor: pointer;
	transition: transform 0.3s ease;
}

.project-gallery-compact .gallery-item:hover img {
	transform: scale(1.05);
}

/* ==========================================================================
   Video Project Layout - New Sections
   ========================================================================== */

/* 1. Film Extracts */
.project-extracts {
	margin-bottom: 35vh;
}

.extracts-grid {
	display: grid;
	gap: 1rem;
	width: 100%;
}

.extracts-grid-1 {
	grid-template-columns: 1fr;
}

.extracts-grid-2 {
	grid-template-columns: repeat(2, 1fr);
}

.extracts-grid-3 {
	grid-template-columns: repeat(3, 1fr);
}

.extracts-grid-4 {
	grid-template-columns: repeat(2, 1fr);
}

.extract-item {
	position: relative;
	cursor: none;
}

.extract-item video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.extracts-grid-4 .extract-item video {
	aspect-ratio: 16 / 9;
}

.extract-hover-button {
	position: absolute;
	background: #EAFF00;
	color: #171412;
	border-radius: 50%;
	width: 90px;
	height: 90px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: 'Satoshi', sans-serif;
	font-weight: 500;
	font-size: 0.85rem;
	text-transform: lowercase;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.3s ease;
	z-index: 10;
	transform: translate(-50%, -50%);
}

.extract-item:hover .extract-hover-button {
	opacity: 1;
}

/* 2. Title & Description Section — Two-column layout */
.project-title-section {
	margin-bottom: 35vh;
}

.project-title-section .project-title-content {
	display: flex;
	gap: 4rem;
	width: 90%;
	max-width: 1000px;
	margin: 0 auto;
	align-items: flex-start;
}

.project-title-left {
	flex: 0 0 200px;
}

.project-title-right {
	flex: 1;
	min-width: 0;
}

.project-detail-block {
	margin-bottom: 1.5rem;
}

.project-detail-label {
	display: block;
	font-family: 'Avara', 'Times New Roman', Times, Georgia, serif;
	font-weight: 700;
	font-size: 1rem;
	color: #F5F5F0;
	margin-bottom: 0.3rem;
}

.project-detail-value {
	display: block;
	font-family: 'Satoshi', sans-serif;
	font-size: 0.95rem;
	color: rgba(245, 245, 240, 0.7);
	line-height: 1.5;
}

.project-title-section .project-title {
	font-size: clamp(1.8rem, 5vw, 3rem);
	margin-bottom: 2rem;
}

.project-description {
	font-family: 'Satoshi', sans-serif;
	font-size: 1.05rem;
	line-height: 1.8;
	color: rgba(245, 245, 240, 0.85);
	text-align: left;
	margin-bottom: 2.5rem;
}

.project-description p {
	margin-bottom: 1rem;
}

.project-links-inline {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

/* 4. Location Scouting */
.project-scouting {
	margin-bottom: 35vh;
}

.scouting-layout {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 2rem;
	min-height: 400px;
	width: 100%;
}

.scouting-item {
	position: relative;
	width: 280px;
}

.scouting-item:nth-child(even) {
	margin-top: 3rem;
}

.scouting-item:nth-child(3n) {
	margin-top: -1rem;
}

.scouting-item img {
	width: 100%;
	height: auto;
	display: block;
}

.scouting-pin {
	position: absolute;
	top: -12px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 2;
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

/* 5. Final Video / Video Slideshow */
.project-final-video {
	margin-bottom: 35vh;
}

.project-videos-slideshow {
	padding: 4rem 2rem;
	max-width: 1000px;
	margin: 0 auto 35vh;
	position: relative;
}

.video-cover-wrapper {
	position: relative;
	cursor: none;
	width: 100%;
}

.video-cover-wrapper video {
	width: 100%;
	height: auto;
	max-height: 85vh;
	object-fit: contain;
	display: block;
}

.video-play-button {
	position: absolute;
	width: 90px;
	height: 90px;
	background: #EAFF00;
	color: #171412;
	border: none;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: 'Satoshi', sans-serif;
	font-weight: 500;
	font-size: 0.85rem;
	text-transform: lowercase;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.3s ease;
	z-index: 10;
	transform: translate(-50%, -50%);
}

.video-cover-wrapper:hover .video-play-button {
	opacity: 1;
}

.project-final-video.is-playing .video-play-button,
.gallery-item.is-playing .video-play-button,
.project-carousel-slide.is-playing .video-play-button {
	opacity: 0 !important;
}

/* Gallery video covers */
.gallery-item[data-component="video-cover"] .video-cover-wrapper {
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #171412;
}

/* Touch devices: center play button, always visible */
@media (hover: none) {
	.video-cover-wrapper .video-play-button {
		opacity: 1;
		left: 50% !important;
		top: 50% !important;
	}

	.video-cover-wrapper {
		cursor: pointer;
	}
}

/* Cinema Overlay */
.cinema-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.95);
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.4s ease, visibility 0.4s ease;
}

.cinema-overlay.is-active {
	opacity: 1;
	visibility: visible;
}

.cinema-inner {
	width: 90vw;
	max-width: 1400px;
	max-height: 90vh;
}

.cinema-inner video {
	width: 100%;
	height: auto;
	max-height: 90vh;
	display: block;
}

.cinema-close {
	position: absolute;
	top: 1.5rem;
	right: 1.5rem;
	background: none;
	border: none;
	color: #F5F5F0;
	cursor: pointer;
	opacity: 0.6;
	transition: opacity 0.3s ease;
	padding: 0.5rem;
	z-index: 10001;
}

.cinema-close:hover {
	opacity: 1;
}

/* ==========================================================================
   Photography Project Layout
   ========================================================================== */

/* 1. Cover Frame */
.photo-cover-frame {
	margin-bottom: 35vh;
}

.photo-cover-frame img {
	width: 100%;
	height: auto;
	max-height: 85vh;
	object-fit: contain;
	display: block;
}

/* 2. Title body — description + material image side by side */
.photo-title-body {
	display: flex;
	gap: 3rem;
	align-items: flex-start;
	text-align: left;
	margin-bottom: 2.5rem;
}

.photo-title-body .project-description {
	flex: 1;
}

.material-image {
	flex: 0 0 280px;
}

.material-image img {
	width: 100%;
	height: auto;
	display: block;
}

/* 3. Lab Sketches — Block Editor approach
   Usage: Add an Image block, set CSS class "lab-sketch" in Advanced panel.
   Use the image caption for the lab name. Pin icon is added via CSS. */
.lab-sketch {
	max-width: 450px;
}

.lab-sketch figure,
figure.lab-sketch {
	display: flex;
	flex-direction: column;
}

.lab-sketch img,
figure.lab-sketch img {
	order: 2;
}

.lab-sketch figcaption,
figure.lab-sketch figcaption {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-family: 'Satoshi', sans-serif;
	font-size: 0.85rem;
	color: rgba(245, 245, 240, 0.7);
	letter-spacing: 0.05em;
	text-align: left;
	order: 1;
	margin-bottom: 0.75rem;
	background: none !important;
	position: static;
}

.lab-sketch figcaption::before,
figure.lab-sketch figcaption::before {
	content: '';
	display: inline-block;
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='%23EAFF00'%3E%3Cpath d='M12 0C7.58 0 4 3.58 4 8c0 5.25 8 13 8 13s8-7.75 8-13c0-4.42-3.58-8-8-8zm0 11c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3z'/%3E%3C/svg%3E") no-repeat center;
	background-size: contain;
}

/* Old meta-based lab sketches (kept for reference) */
/*
.photo-lab-sketches { margin-bottom: 35vh; }
.lab-sketches-layout { display: flex; flex-wrap: wrap; justify-content: center; gap: 3rem; }
.lab-sketch-item { position: relative; width: 450px; }
.lab-sketch-item img { width: 100%; height: auto; display: block; }
.lab-sketch-pin { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; }
.lab-sketch-name { font-family: 'Satoshi', sans-serif; font-size: 0.85rem; color: rgba(245, 245, 240, 0.7); letter-spacing: 0.05em; }
*/

/* ==========================================================================
   Illustration Project Layout
   ========================================================================== */

/* 1. Hero */
.illus-hero {
	margin-bottom: 35vh;
}

.illus-hero img {
	width: 100%;
	height: auto;
	max-height: 85vh;
	object-fit: contain;
	display: block;
}

/* 3. Layer Viewer */
.illus-layer-viewer {
	display: flex;
	gap: 2rem;
	align-items: flex-start;
	justify-content: center;
	margin-bottom: 35vh;
	padding: 0 2rem;
	max-width: 800px;
	margin-left: auto;
	margin-right: auto;
}

.layer-stack {
	position: relative;
	flex: 1;
	min-width: 0;
	max-width: 525px;
}

.layer-base {
	position: relative;
	width: 100%;
	height: auto;
	display: block;
	transition: opacity 0.35s ease, visibility 0.35s ease;
}

.layer-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: auto;
	display: block;
	transition: opacity 0.35s ease, visibility 0.35s ease;
}

.layer-controls {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	flex-shrink: 0;
	padding-top: 0.5rem;
}

.layer-toggle {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	background: transparent;
	border: 2px solid #fff;
	border-radius: 8px;
	padding: 0.5rem 1.25rem;
	cursor: pointer;
	font-family: 'Avara', 'Times New Roman', Times, Georgia, serif;
	font-size: 0.85rem;
	font-weight: 700;
	color: #fff;
	transition: all 0.3s ease;
	white-space: nowrap;
	-webkit-tap-highlight-color: transparent;
}

.layer-toggle:hover {
	border-color: #EAFF00;
	color: #EAFF00;
}

.layer-toggle.is-active {
	background: #EAFF00;
	border-color: #EAFF00;
	color: #171412;
}

.layer-toggle .eye-open {
	display: none;
}

.layer-toggle .eye-closed {
	display: block;
	stroke: currentColor;
}

.layer-toggle.is-active .eye-open {
	display: block;
	stroke: #171412;
}

.layer-toggle.is-active .eye-closed {
	display: none;
}

.layer-toggle:not(.is-active) .layer-name {
	opacity: 0.6;
}

/* Illustration responsive */
@media screen and (max-width: 768px) {
	.illus-layer-viewer {
		flex-direction: column;
		padding: 0 1rem;
		gap: 1.5rem;
	}

	.layer-controls {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 0.4rem;
	}

	.layer-toggle {
		font-size: 0.8rem;
		padding: 0.5rem 0.8rem;
	}

	.illus-hero {
		margin-bottom: 4rem;
	}

	.illus-layer-viewer {
		margin-bottom: 4rem;
	}
}

/* 4. Photo Mosaic */
.photo-mosaic {
	margin-bottom: 35vh;
}

.mosaic-grid {
	columns: 3;
	column-gap: 1.5rem;
}

.mosaic-item {
	break-inside: avoid;
	margin-bottom: 1.5rem;
	cursor: pointer;
}

.mosaic-item img {
	width: 100%;
	height: auto;
	display: block;
	transition: opacity 0.3s ease;
}

.mosaic-item:hover img {
	opacity: 0.85;
}

/* Comparison Slider */
.project-comparison-slider {
	margin: 0 auto 20vh;
	max-width: 1400px;
}

.comparison-container {
	position: relative;
	width: 100%;
	overflow: hidden;
	cursor: ew-resize;
	user-select: none;
}

.comparison-image-after {
	position: relative;
	width: 100%;
	height: auto;
	display: block;
	pointer-events: none;
	z-index: 1;
}

.comparison-image-before {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: block;
	pointer-events: none;
	object-fit: cover;
	z-index: 2;
	clip-path: inset(0 50% 0 0);
}

.comparison-slider-handle {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 4px;
	height: 100%;
	z-index: 3;
	pointer-events: none;
}

.comparison-slider-line {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 2px;
	height: 100%;
	background: #EAFF00;
}

.comparison-slider-button {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 36px;
	height: 36px;
	background: #EAFF00;
	border-radius: 50%;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.comparison-labels {
	display: flex;
	justify-content: space-between;
	margin-top: 1rem;
	font-family: 'Satoshi', sans-serif;
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #999;
}

/* BTS Carousel */
.project-bts-carousel {
	position: relative;
	margin: 4rem auto;
	max-width: 1400px;
	overflow: hidden;
}

.bts-carousel-track {
	display: flex;
	gap: 1rem;
	transition: transform 0.4s ease;
}

.bts-carousel-item {
	flex: 0 0 calc(33.333% - 0.667rem);
	overflow: hidden;
}

.bts-carousel-item img {
	width: 100%;
	height: auto;
	display: block;
}

.bts-carousel-prev,
.bts-carousel-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(234, 255, 0, 0.9);
	border: none;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 0.3s ease;
	z-index: 10;
}

.bts-carousel-prev {
	left: 10px;
}

.bts-carousel-next {
	right: 10px;
}

.bts-carousel-prev:hover,
.bts-carousel-next:hover {
	background: #EAFF00;
}

.bts-carousel-prev svg,
.bts-carousel-next svg {
	stroke: #171412;
}

/* ==========================================================================
   Project Carousel/Slideshow
   ========================================================================== */

.project-slideshow {
	padding: 4rem 2rem;
	max-width: 1000px;
	margin: 0 auto;
	position: relative;
}

.project-carousel-slides {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #171412;
}

.project-carousel-slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	transition: opacity 0.5s ease;
	pointer-events: none;
}

.project-carousel-slide.active {
	opacity: 1;
	z-index: 2;
	pointer-events: auto;
}

.project-carousel-slide[data-type="image"] img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.project-carousel-slide[data-type="video"] .video-cover-wrapper {
	width: 100%;
	height: 100%;
}

.project-carousel-slide[data-type="video"] .video-cover-wrapper video {
	width: 100%;
	height: 100%;
	object-fit: contain;
	max-height: none;
}

/* Nav zones */
.carousel-nav-zone {
	position: absolute;
	top: 0;
	width: 50%;
	height: 100%;
	z-index: 5;
	cursor: none;
}

.carousel-zone-prev {
	left: 0;
}

.carousel-zone-next {
	right: 0;
}

.carousel-nav-arrow {
	position: absolute;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.3s ease;
	transform: translate(-50%, -50%);
	z-index: 6;
	color: #EAFF00;
}

.carousel-nav-zone:hover .carousel-nav-arrow {
	opacity: 1;
}

/* Video slideshow: narrower nav zones so center area triggers video play */
.project-videos-slideshow .carousel-nav-zone {
	width: 25%;
}

/* Page indicator */
.project-carousel-indicator {
	text-align: center;
	margin-top: 1.5rem;
	font-family: 'Satoshi', sans-serif;
	font-size: 0.9rem;
	color: #999;
}

/* ==========================================================================
   Sketchbook Section
   ========================================================================== */

.sketchbook-section {
	padding: 6rem 2rem;
	max-width: 1200px;
	margin: 0 auto;
	position: relative;
	background-color: #171412;
}

/* Closed state - Cover with hover button */
.sketchbook-cover {
	position: relative;
	cursor: none;
	max-width: 350px;
	margin: 0 auto;
	transition: transform 0.3s ease;
}

.sketchbook-cover:hover {
	transform: scale(1.02);
}

.sketchbook-cover-image {
	width: 100%;
	height: auto;
	display: block;
}

/* Mouse-following open button */
.sketchbook-open-button {
	position: absolute;
	background: #EAFF00;
	color: #171412;
	border-radius: 50%;
	width: 80px;
	height: 80px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: 'Satoshi', sans-serif;
	font-weight: 500;
	font-size: 0.9rem;
	text-transform: lowercase;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.3s ease;
	z-index: 10;
	transform: translate(-50%, -50%);
}

.sketchbook-cover:hover .sketchbook-open-button {
	opacity: 1;
}

/* Open state - Pages viewer */
.sketchbook-viewer {
	display: none;
	position: relative;
	max-width: 700px;
	margin: 0 auto;
	opacity: 0;
	transform: scale(0.95);
	transition: opacity 0.5s ease, transform 0.5s ease;
}

.sketchbook-section.is-open .sketchbook-cover {
	display: none;
}

.sketchbook-section.is-open .sketchbook-viewer {
	display: block;
	animation: sketchbookOpen 0.6s ease forwards;
}

@keyframes sketchbookOpen {
	0% {
		opacity: 0;
		transform: scale(0.95);
	}

	100% {
		opacity: 1;
		transform: scale(1);
	}
}

/* Pages container */
.sketchbook-pages {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

.sketchbook-page {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	pointer-events: none;
}

.sketchbook-page.active {
	opacity: 1;
	z-index: 2;
	pointer-events: auto;
}

.sketchbook-page img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

/* Navigation zones (invisible left/right halves) */
.sketchbook-nav-zone {
	position: absolute;
	top: 0;
	width: 50%;
	height: 100%;
	z-index: 5;
	cursor: none;
}

.sketchbook-zone-prev {
	left: 0;
}

.sketchbook-zone-next {
	right: 0;
}

/* Mouse-following arrow on nav zones */
.sketchbook-nav-arrow {
	position: absolute;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.3s ease;
	transform: translate(-50%, -50%);
	z-index: 6;
}

.sketchbook-nav-zone:hover .sketchbook-nav-arrow {
	opacity: 1;
}

/* Mobile open CTA (static centered button) */
.sketchbook-open-cta {
	display: none;
}

/* Page indicator */
.sketchbook-indicator {
	position: absolute;
	bottom: -50px;
	left: 50%;
	transform: translateX(-50%);
	font-family: 'Satoshi', sans-serif;
	font-size: 0.9rem;
	color: #999;
}

/* Mobile adjustments */
@media screen and (max-width: 768px) {
	.sketchbook-section {
		padding: 4rem 1rem;
	}

	.sketchbook-cover {
		max-width: 220px;
	}

	.sketchbook-open-button {
		display: none;
	}

	.sketchbook-open-cta {
		display: flex;
		align-items: center;
		justify-content: center;
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
		background: #EAFF00;
		color: #171412;
		font-family: 'Satoshi', sans-serif;
		font-weight: 500;
		font-size: 0.9rem;
		text-transform: lowercase;
		width: 70px;
		height: 70px;
		border-radius: 50%;
		z-index: 10;
	}

	.sketchbook-nav-arrow {
		display: none;
	}

	.sketchbook-nav-zone {
		cursor: pointer;
	}

	.sketchbook-indicator {
		bottom: -40px;
		font-size: 0.85rem;
	}
}

/* Lightbox */
.lightbox {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.95);
	z-index: 9999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 2rem;
}

.lightbox.active {
	display: flex;
}

.lightbox-content {
	max-width: 90vw;
	max-height: 90vh;
	position: relative;
}

.lightbox-content img {
	max-width: 100%;
	max-height: 90vh;
	width: auto;
	height: auto;
	display: block;
}

.lightbox-close {
	position: fixed;
	top: 1.5rem;
	right: 1.5rem;
	background: none;
	border: none;
	color: #F5F5F0;
	font-size: 2rem;
	cursor: pointer;
	padding: 0;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.3s ease;
	z-index: 10003;
}

.lightbox-close:hover {
	color: #EAFF00;
}

/* Lightbox nav zones — wide side strips, gap in the middle to click-close */
.lightbox-zone {
	position: fixed;
	top: 0;
	width: 38%;
	height: 100%;
	cursor: none;
	z-index: 10001;
}

.lightbox-zone-prev {
	left: 0;
}

.lightbox-zone-next {
	right: 0;
}

/* Mouse-following arrow inside zones */
.lightbox-arrow {
	position: absolute;
	pointer-events: none;
	transform: translate(-50%, -50%);
	opacity: 0;
	transition: opacity 0.3s ease;
	z-index: 10002;
}

.lightbox-zone:hover .lightbox-arrow {
	opacity: 1;
}

.lightbox-arrow svg {
	display: block;
}

/* ==========================================================================
   About Page
   ========================================================================== */

.page-about {
	background: #171412;
	color: #F5F5F0;
}

.page-about-hero {
	display: grid;
	grid-template-columns: 1fr 1fr;
	min-height: 100vh;
	align-items: center;
	padding: 6rem 4rem;
	gap: 4rem;
}

.page-about-image img {
	width: 100%;
	height: auto;
	display: block;
}

.page-about-title {
	font-family: 'Avara', serif;
	font-size: 3.5rem;
	font-weight: 900;
	margin-bottom: 2rem;
	color: #F5F5F0;
}

.page-about-text {
	font-family: 'Satoshi', sans-serif;
	font-size: 1.05rem;
	line-height: 1.8;
	color: rgba(245, 245, 240, 0.8);
	text-align: justify;
}

.page-about-text p {
	margin-bottom: 1.5rem;
}

/* ==========================================================================
   Contact Page
   ========================================================================== */

.page-contact {
	background: #171412;
	color: #F5F5F0;
}

.page-contact-section {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	padding: 6rem 2rem;
}

.page-contact-title {
	font-family: 'Avara', serif;
	font-size: 3.5rem;
	font-weight: 900;
	margin-bottom: 2rem;
	color: #F5F5F0;
}

.page-contact-text {
	font-family: 'Satoshi', sans-serif;
	font-size: 1.05rem;
	line-height: 1.8;
	color: rgba(245, 245, 240, 0.8);
	text-align: center;
	max-width: 600px;
	margin-bottom: 3rem;
}

.page-contact-text p {
	margin-bottom: 1rem;
}

.page-contact-links {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	align-items: center;
}

.contact-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: #F5F5F0;
	text-decoration: none;
	font-family: 'Satoshi', sans-serif;
	font-weight: 500;
	font-size: 1.2rem;
	transition: color 0.3s ease;
}

.contact-link:hover {
	color: #EAFF00;
}

.contact-link svg {
	transition: stroke 0.3s ease;
}

/* Project Navigation */
.project-navigation {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 3rem 0;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	margin-top: 4rem;
}

.project-navigation a {
	text-decoration: none;
	color: #F5F5F0;
	transition: color 0.3s ease;
}

.project-navigation a:hover {
	color: #EAFF00;
}

.nav-prev,
.nav-next {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	max-width: 200px;
}

.nav-next {
	text-align: right;
}

.nav-label {
	font-family: 'Satoshi', sans-serif;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: rgba(245, 245, 240, 0.5);
}

.nav-title {
	font-family: 'Avara', 'Times New Roman', Times, Georgia, serif;
	font-size: 1rem;
	font-weight: 700;
}

.nav-back {
	font-family: 'Avara', 'Times New Roman', Times, Georgia, serif;
	font-size: 0.9rem;
	font-weight: 700;
	padding: 0.5rem 1.25rem;
	border: 2px solid rgba(255, 255, 255, 0.4);
	border-radius: 50px;
}

.nav-back:hover {
	border-color: #EAFF00;
	background: #EAFF00;
	color: #171412;
}

/* ==========================================================================
   RESPONSIVE - Work Page Carousel
   ========================================================================== */

@media screen and (max-width: 968px) {
	.carousel-item {
		width: 45vw;
	}

	.carousel-track {
		padding-left: calc(50vw - 22.5vw);
	}

	.carousel-meta {
		top: 10%;
		font-size: 0.85rem;
	}

	.carousel-item-dot {
		width: 90px;
		height: 90px;
	}

	.dot-title-text {
		font-size: 10px;
	}

	.project-content-wrapper {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.project-sidebar {
		flex-direction: row;
		flex-wrap: wrap;
	}

	.project-sidebar>div {
		flex: 1;
		min-width: 200px;
	}
}

@media screen and (max-width: 768px) {
	/* Mobile carousel: sliding track with side peeks */
	.mobile-carousel {
		height: auto;
		min-height: 100vh;
		min-height: 100dvh;
		display: flex;
		flex-direction: column;
		justify-content: center;
		overflow: hidden;
	}

	.mobile-carousel .carousel-wrapper {
		position: relative;
		top: auto;
		transform: none;
		height: auto;
		overflow: visible;
		padding: 0;
	}

	.mobile-carousel .carousel-track {
		display: flex;
		align-items: center;
		padding-left: 15vw;
		gap: 3vw;
		height: auto;
		width: max-content;
	}

	.mobile-carousel .carousel-item {
		width: 70vw;
		flex-shrink: 0;
		opacity: 0.4;
		transition: opacity 0.3s ease;
	}

	.mobile-carousel .carousel-item.is-active {
		opacity: 1;
	}

	.mobile-carousel .carousel-item-image {
		width: 100%;
		height: auto;
		max-height: 55vh;
		object-fit: contain;
	}

	.mobile-carousel .carousel-meta {
		position: relative;
		top: auto;
		left: auto;
		transform: none;
		justify-content: center;
		padding: 1.25rem 0 0.25rem;
	}

	.mobile-carousel .carousel-filters {
		position: relative;
		bottom: auto;
		left: auto;
		transform: none;
		padding: 0.5rem 1rem;
	}

	/* Project counter */
	.carousel-counter {
		text-align: center;
		font-family: 'Satoshi', sans-serif;
		font-size: 0.85rem;
		color: rgba(245, 245, 240, 0.5);
		padding: 0.5rem 0;
	}

	/* Hide footer on all mobile pages */
	.site-footer {
		display: none;
	}

	/* Filters: wrap instead of horizontal scroll */
	.mobile-carousel .carousel-filters {
		flex-wrap: wrap;
		justify-content: center;
	}

	.carousel-filters {
		gap: 0.5rem;
	}

	.filter-btn {
		font-size: 0.75rem;
		padding: 0.4rem 1rem;
	}

	.carousel-item-dot {
		width: 80px;
		height: 80px;
	}

	.dot-title-text {
		font-size: 9px;
		max-width: 55px;
	}

	.project-hero {
		padding: 2rem 0;
	}

	.gallery-grid {
		grid-template-columns: 1fr;
	}

	.gallery-item:first-child {
		grid-column: span 1;
	}

	.project-navigation {
		flex-direction: column;
		gap: 1.5rem;
	}

	.nav-prev,
	.nav-next {
		text-align: center;
		max-width: none;
	}

	/* Project carousel mobile */
	.project-slideshow,
	.project-videos-slideshow {
		padding: 3rem 1rem;
		margin-bottom: 3rem;
	}

	.carousel-nav-arrow {
		display: none;
	}

	.carousel-nav-zone {
		cursor: pointer;
	}

	.project-carousel-indicator {
		font-size: 0.85rem;
		margin-top: 1rem;
	}
}

@media screen and (max-width: 480px) {
	.mobile-carousel .carousel-track {
		padding-left: 12vw;
		gap: 3vw;
	}

	.mobile-carousel .carousel-item {
		width: 76vw;
	}

	.mobile-carousel .carousel-item-image {
		max-height: 50vh;
	}

	.carousel-meta {
		font-size: 0.75rem;
	}

	.carousel-item-dot {
		width: 70px;
		height: 70px;
	}

	.dot-title-text {
		font-size: 8px;
	}

	.carousel-filters {
		gap: 0.4rem;
		padding: 0 0.75rem;
	}

	.filter-btn {
		font-size: 0.7rem;
		padding: 0.35rem 0.85rem;
	}

	.project-featured-image {
		margin: 1.5rem 0 3rem;
		border-radius: 0;
	}

	/* Video Project Responsive */
	.extracts-grid-2,
	.extracts-grid-3,
	.extracts-grid-4 {
		grid-template-columns: 1fr;
	}

	.extract-hover-button {
		display: none;
	}

	.project-extracts {
		margin-bottom: 3rem;
	}

	.project-title-section {
		margin-bottom: 3rem;
	}

	.project-title-section .project-title-content {
		flex-direction: column;
		width: 100%;
		gap: 2rem;
	}

	.project-title-left {
		flex: none;
		display: flex;
		flex-wrap: wrap;
		gap: 1.5rem 3rem;
	}

	.project-detail-block {
		margin-bottom: 0;
	}

	.scouting-item {
		width: 180px;
	}

	.scouting-layout {
		gap: 1rem;
		min-height: auto;
	}

	.scouting-item:nth-child(even),
	.scouting-item:nth-child(3n) {
		margin-top: 0;
	}

	.project-scouting {
		margin-bottom: 3rem;
	}

	.video-play-button {
		width: 70px;
		height: 70px;
	}

	.video-play-button svg {
		width: 36px;
		height: 36px;
	}

	.project-comparison-slider {
		margin-top: 2rem;
		margin-bottom: 2rem;
	}

	.comparison-labels {
		padding: 0 1rem;
	}

	.project-gallery-compact .gallery-grid {
		grid-template-columns: 1fr;
		gap: 0.75rem;
	}

	.bts-carousel-item {
		flex: 0 0 100%;
	}

	.lightbox-zone {
		cursor: default;
		width: 50%;
	}

	.lightbox-arrow {
		display: none;
	}

	.lightbox-close {
		right: 10px;
		top: 10px;
	}
}

/* Tablet specific styles */
@media screen and (max-width: 768px) and (min-width: 481px) {

	.extracts-grid-3,
	.extracts-grid-4 {
		grid-template-columns: repeat(2, 1fr);
	}

	.scouting-item {
		width: 220px;
	}

	.project-gallery-compact .gallery-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.bts-carousel-item {
		flex: 0 0 calc(50% - 0.5rem);
	}
}

/* Photography responsive */
@media screen and (max-width: 768px) {
	.photo-title-body {
		flex-direction: column;
		gap: 2rem;
	}

	.material-image {
		flex: none;
		width: 100%;
		max-width: 300px;
	}

	.mosaic-grid {
		columns: 2;
		column-gap: 1rem;
	}

	.mosaic-item {
		margin-bottom: 1rem;
	}

	.lab-sketch {
		max-width: 380px;
	}

	.photo-cover-frame,
	.photo-mosaic {
		margin-bottom: 4rem;
	}

}

@media screen and (max-width: 480px) {
	.mosaic-grid {
		columns: 1;
	}

	.lab-sketch {
		max-width: 100%;
	}
}

/* About & Contact Pages — Responsive */
@media screen and (max-width: 768px) {
	.page-about-hero {
		grid-template-columns: 1fr;
		padding: 6rem 2rem 3rem;
		min-height: auto;
		gap: 2rem;
	}

	.page-about-image {
		max-width: 300px;
		margin: 0 auto;
	}

	.page-about-title {
		font-size: 2.5rem;
	}

	.page-contact-title {
		font-size: 2.5rem;
	}

	.contact-link {
		font-size: 1rem;
	}
}

@media screen and (max-width: 480px) {
	.page-about-hero {
		padding: 5rem 1.5rem 2rem;
	}

	.page-about-title {
		font-size: 2rem;
	}

	.page-about-text {
		font-size: 0.95rem;
	}

	.page-contact-title {
		font-size: 2rem;
	}
}