* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

/* Dark Theme Typography & Body Customizations */
body {
    background-color: #0B0F0C; /* Deep Charcoal Midnight */
    overflow-x: hidden;
    font-family: "Playfair Display", "Times New Roman", serif;
    color: #E3D7C5; /* Soft Muted Gold/Cream for low-strain high contrast */
}

/* Preloader Dark Configuration */
.container {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: #0B0F0C;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.container.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loader {
    width: 80px;
    height: 80px;
    border: 2px solid #A93226; /* Vibrant Velvet Crimson Accent */
    border-radius: 50%;
    opacity: 0;
    animation: ripple 1.8s cubic-bezier(0.1, 0.8, 0.3, 1) infinite;
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

/* Scroll Fade Animations */
.observe {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.observe.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Sticky Header Navigation Box */
nav {
    height: 80px;
    display: grid;
    grid-template-columns: repeat(3, auto);
    padding: 1rem;
    justify-content: center;
    align-items: center;
    background-color: #0B0F0C;
    position: sticky;
    top: 0;
    outline: #0E1911 solid 1px;
    z-index: 999;
    gap: clamp(1rem, 5vw, 5rem);
}

nav a {
    font-size: 1.2em;
    color: #E3D7C5;
    text-decoration: none;
    text-transform: lowercase;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #A93226;
}

/* Marquee Text Running Strip */
#text {
    overflow: hidden;
    white-space: nowrap;
    font-weight: bold;
    background-color: #0E1911; /* Deep Forest/Olive Green strip background */
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    color: #E3D7C5;
    padding: 12px 0;
    border-bottom: 1px solid rgba(227, 215, 197, 0.1);
}

#text p {
    animation-name: text;
    animation-duration: 14s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes text {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* NEW: Restructured Horizontal Hero Section Layout */
header {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;   
    z-index: 1;
    margin-top: 40px;
    min-height: 90vh;
    height: auto;
    padding: 4rem 2rem;
    gap: 4rem;
    align-items: center;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.hero-left {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.head-img-container {
    width: 100%;
}

/* Force image into a modern cinematic wide landscape aspect ratio */
.head-img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9; 
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid rgba(227, 215, 197, 0.15);
}

/* Typography rules formatting the newly positioned Quote block */
header blockquote {
    font-size: clamp(1.15rem, 2vw, 1.6rem);
    line-height: 1.6;
    font-style: italic;
    color: #C4B9A6;
    padding-left: 1.5rem;
    border-left: 3px solid #A93226;
    max-width: 90%;
}

.h1 {
    width: 100%;
    max-width: 550px;
    height: auto;
    justify-self: center;
    filter: invert(1) sepia(0.2) brightness(0.9); /* Makes custom title logos sit nicely in high-contrast dark modes */
}

/* About Layout Rules */
#about {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    align-items: center;
    padding: clamp(60px, 10vw, 160px) 2rem;
    gap: 4rem;
    background-color: #0E1911; /* Atmospheric dark green section drop */
    border-top: 1px solid rgba(227, 215, 197, 0.05);
    border-bottom: 1px solid rgba(227, 215, 197, 0.05);
}

#about img {
    height: auto;
    justify-self: center;
    width: clamp(200px, 80vw, 500px);
    filter: drop-shadow(0px 10px 20px rgba(0,0,0,0.5));
}

#about h3 {
    color: #E3D7C5;
    font-weight: normal;
    font-size: clamp(35px, 6vw, 65px);
}

.what-are-they {
    padding: 10px;
}

.what-are-they hr {
    background-color: #A93226;
    height: 1.5px;
    width: 120px;
    border: none;
    margin-top: 12px;
}

.what-are-they p {
    padding: 24px 0;
    line-height: 1.7;
    color: #C4B9A6;
}

/* Carousel Slider Section Container Base */
#tattoos {
    position: relative;
    padding: 80px 0;
}

#tattoos .subtitle h3 {
    color: #E3D7C5;
    font-weight: normal;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    text-align: center;
}

#tattoos .subtitle hr {
    background-color: #A93226;
    height: 1.5px;
    width: 100px;
    margin: 12px auto 0 auto;
    border: none;
}

.subtitle {
    padding-bottom: 20px;
}

/* Carousel Control Arrow Customizations */
button {
    display: grid;
    place-items: center;
    background-color: #0E1911;
    border: 1px solid rgba(227, 215, 197, 0.2);
    cursor: pointer;
    position: absolute;
    border-radius: 50%;
    color: #E3D7C5;
    width: 50px;
    height: 50px;
    font-size: 1.8rem;
    z-index: 10;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

button:hover,
button:focus {
    background-color: #A93226;
    border-color: #A93226;
}

.left {
    left: 25px;
    top: 55%;
    transform: translateY(-50%);
}

.right {
    right: 25px;
    top: 55%;
    transform: translateY(-50%);
}

.information {
    display: flex;
    flex-wrap: nowrap;
    scroll-snap-type: x mandatory;
    overflow-x: auto;
    gap: 28px;
    padding: 40px clamp(50px, 8vw, 100px);
    scroll-padding: 20px;
}

/* Image Cards Setup */
.information figure {
    flex: 0 0 85%;
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
    position: relative;
}

@media screen and (min-width: 700px){
    .information figure { flex: 0 0 45%; }
}
@media screen and (min-width: 1200px){
    .information figure { flex: 0 0 31%; }
}

.img-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid rgba(227, 215, 197, 0.1);
}

.information img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.img-wrapper:hover img {
    transform: scale(1.05);
}

/* Hover Overlay Styles matching Dark Obsidian Theme backgrounds */
.hover-desc {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 15, 12, 0.92); /* Rich dark smoky backdrop */
    color: #E3D7C5;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2.5rem;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.img-wrapper:hover .hover-desc {
    opacity: 1;
}

.information figcaption {
    color: #E3D7C5;
    font-size: 1.35rem;
    padding-top: 16px;
    text-align: center;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* Dialog Box Dark Layout Customizations */
dialog {
    position: relative;
    width: clamp(320px, 90vw, 550px);
    max-width: 90vw;
    margin: auto;
    border: 1px solid rgba(227, 215, 197, 0.15);
    background-color: #0B0F0C;
    border-radius: 12px;
    padding: 0;
    overflow: hidden; 
    font-family: "Playfair Display", "Times New Roman", serif;
}

dialog::backdrop {
    background-color: rgba(11, 15, 12, 0.85);
}

dialog button {
    position: static;
    font-size: 1.1rem;
    background-color: #A93226;
    color: #E3D7C5;
    border: none;
    cursor: pointer;
    width: auto;
    height: auto;
    padding: 8px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    transition: background-color 0.2s ease;
}

dialog button:hover {
    background-color: #0E1911;
}

dialog figcaption {
    padding: 1.8rem;
    background-color: #0B0F0C;
}

dialog h2 {
    margin: 0 0 12px 0;
    font-size: 26px;
    color: #E3D7C5;
    font-weight: normal;
}

dialog p {
    color: #C4B9A6;
    margin: 0;
    line-height: 1.6;
}

/* Static Bottom Grid Highlight Area */
#common {
    padding: clamp(60px, 10vw, 120px) 2rem;
    border-top: 1px solid rgba(227, 215, 197, 0.05);
}

#common h3 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: #E3D7C5;
    font-weight: normal;
    text-align: center;
}

#common hr {
    margin: 12px auto 0 auto;
    height: 1.5px;
    width: 140px;
    background-color: #A93226;
    border: none;
}

.gallery {
    padding: 50px 0 0 0;
    display: grid;
    max-width: 1200px;
    margin: 40px auto 0 auto;
    justify-content: center;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.gallery img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid rgba(227, 215, 197, 0.1);
}

.gallery figcaption {
    color: #E3D7C5;
    font-size: 1.4rem;
    text-align: center;
    padding-top: 14px;
}

/* Footer Element Area Customizations */
footer {
    background-color: #050705;
    width: 100%;
    padding: 40px 2rem;
    font-size: 15px;
    color: #C4B9A6;
    border-top: 1px solid rgba(227, 215, 197, 0.05);
}

footer .credit {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

footer p {
    max-width: 100%;
    padding: 5px 0;
}

footer img {
    width: 45px;
    height: auto;
    justify-self: end;
    filter: invert(0.9) sepia(0.1);
}

.home {
    max-width: 1200px;
    margin: 15px auto 0 auto;
}

.home a {
    color: #C4B9A6;
    text-decoration: none;
    font-size: .95rem;
    transition: color 0.2s ease;
}

.home a:hover {
    text-decoration: line-through;
    color: #A93226;
}

/* Responsive Media Breakdown Intersections */
@media screen and (max-width: 1130px) {
    header {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
        padding-top: 20px;
    }
    header blockquote {
        margin: 0 auto;
        text-align: center;
        border-left: none;
        border-top: 2px solid #A93226;
        padding-left: 0;
        padding-top: 1.5rem;
    }
    .h1 {
        max-width: 450px;
        order: -1; /* Puts logo typography layer on top for clean stacked layouts */
    }
}