:root {
    --black: #050505;
    --dark: #0d0d0d;
    --gray: #777;
    --silver: #bdbdbd;
    --white: #fff;
    --line: rgba(255,255,255,.14);
    --serif: Georgia, "Times New Roman", serif;
    --sans: Arial, Helvetica, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--black);
    color: white;
    font-family: var(--sans);
    overflow-x: hidden;
}

/* ================================
   NAVIGATION
================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 76px;

    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 6vw;

    background: rgba(5,5,5,.95);
    border-bottom: 1px solid var(--line);

    backdrop-filter: blur(15px);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-links a {
    color: white;
    text-decoration: none;

    font-size: 10px;
    letter-spacing: 2.5px;
    text-transform: uppercase;

    position: relative;
}

.nav-links a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -8px;

    width: 0;
    height: 1px;

    background: white;

    transition: .3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-phone {
    font-size: 10px;
    letter-spacing: 2px;
}

.menu-btn {
    display: none;

    border: none;
    background: none;

    color: white;

    font-size: 25px;

    cursor: pointer;
}

/* ================================
   LOGO
================================ */

.logo-section {
    height: 132px;

    margin-top: 76px;

    display: flex;
    justify-content: center;
    align-items: center;

    background: #050505;

    border-bottom: 1px solid var(--line);

    position: relative;

    z-index: 20;
}

.logo {
    text-align: center;
}

.logo-name {
    font-family: var(--serif);

    font-size: 36px;

    letter-spacing: 7px;
}

.logo-tagline {
    margin-top: 8px;

    color: #888;

    font-size: 9px;

    letter-spacing: 5px;

    text-transform: uppercase;
}

/* ================================
   SLIDER
================================ */

.slider {
    height: calc(100vh - 208px);

    min-height: 650px;

    position: relative;

    overflow: hidden;

    background: #080808;
}

.slides {
    height: 100%;
    width: 100%;

    position: relative;
}

.slide {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;

    opacity: 0;
    visibility: hidden;

    transform: translateY(100px) scale(.97);

    transition:
        transform 1s cubic-bezier(.77,0,.18,1),
        opacity .7s ease,
        visibility .7s;
}

.slide.active {
    opacity: 1;

    visibility: visible;

    transform: translateY(0) scale(1);
}

.slide.previous {
    transform: translateY(-100px) scale(.97);
}

/* Large background number */

.bg-number {
    position: absolute;

    right: 3vw;
    bottom: -100px;

    font-family: var(--serif);

    font-size: 40vw;

    line-height: .7;

    color: rgba(255,255,255,.025);

    user-select: none;
}

/* Architectural grid */

.grid-lines {
    position: absolute;

    inset: 0;

    pointer-events: none;
}

.grid-lines::before {
    content: "";

    position: absolute;

    top: 0;
    bottom: 0;

    left: 18%;

    width: 1px;

    background: rgba(255,255,255,.07);
}

.grid-lines::after {
    content: "";

    position: absolute;

    left: 18%;
    right: 0;

    top: 50%;

    height: 1px;

    background: rgba(255,255,255,.07);
}

/* Slide layout */

.slide-inner {
    width: 88%;

    max-width: 1400px;

    margin: auto;

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 8vw;

    position: relative;

    z-index: 5;
}

.slide-content {
    align-self: center;
}

.slide-label {
    display: flex;

    align-items: center;

    gap: 15px;

    margin-bottom: 28px;

    color: #999;

    font-size: 10px;

    letter-spacing: 4px;

    text-transform: uppercase;
}

.slide-label span {
    width: 45px;

    height: 1px;

    background: white;
}

.slide h1 {
    font-family: var(--serif);

    font-size: clamp(55px, 7vw, 105px);

    font-weight: 400;

    line-height: .94;

    letter-spacing: -3px;
}

.slide h1 em {
    font-style: italic;

    color: #999;
}

.slide-text {
    max-width: 540px;

    margin-top: 35px;

    color: #999;

    font-size: 15px;

    line-height: 1.9;
}

.slide-button {
    display: inline-flex;

    margin-top: 38px;

    padding: 16px 30px;

    border: 1px solid rgba(255,255,255,.45);

    color: white;

    text-decoration: none;

    font-size: 9px;

    letter-spacing: 3px;

    text-transform: uppercase;

    transition: .3s;
}

.slide-button:hover {
    background: white;

    color: black;
}

/* ================================
   VISUAL AREA
================================ */

.visual {
    min-height: 440px;

    display: flex;

    align-items: center;

    justify-content: center;

    position: relative;
}

/* General image placeholder */

.image-box {
    width: 72%;
    height: 76%;

    position: relative;

    border: 1px solid rgba(255,255,255,.25);

    background:
        linear-gradient(
            135deg,
            #171717,
            #050505
        );

    transform: rotate(-4deg);

    transition: 1s ease;
}

.slide.active .image-box {
    transform: rotate(0);
}

.image-box::before {
    content: "";

    position: absolute;

    inset: 30px;

    border: 1px solid rgba(255,255,255,.12);
}

.image-label {
    position: absolute;

    inset: 0;

    display: flex;

    justify-content: center;

    align-items: center;

    color: #555;

    font-size: 9px;

    letter-spacing: 4px;

    text-transform: uppercase;
}

/* ================================
   LEGAL SYMBOL
================================ */

.legal-symbol {
    width: 280px;
    height: 320px;

    position: relative;
}

.legal-symbol .pole {
    position: absolute;

    width: 4px;
    height: 230px;

    background: white;

    left: 50%;
    top: 25px;
}

.legal-symbol .bar {
    position: absolute;

    width: 200px;
    height: 3px;

    background: white;

    left: 50%;
    top: 70px;

    transform: translateX(-50%);
}

.legal-symbol .base {
    position: absolute;

    width: 120px;
    height: 5px;

    background: white;

    left: 50%;
    bottom: 25px;

    transform: translateX(-50%);
}

.scale-pan {
    position: absolute;

    width: 70px;
    height: 22px;

    border: 2px solid white;

    border-top: none;

    border-radius: 0 0 50% 50%;
}

.scale-pan.left {
    left: 5px;
    top: 95px;
}

.scale-pan.right {
    right: 5px;
    top: 95px;
}

.rope {
    position: absolute;

    width: 1px;
    height: 30px;

    background: #999;

    top: 70px;
}

.rope.left {
    left: 40px;
}

.rope.right {
    right: 40px;
}

/* ================================
   DOCUMENT VISUAL
================================ */

.document {
    width: 290px;
    height: 360px;

    background: #eee;

    color: #111;

    padding: 35px;

    box-shadow: 0 30px 80px rgba(0,0,0,.5);

    transform: rotate(-4deg);

    transition: 1s ease;
}

.slide.active .document {
    transform: rotate(0);
}

.document-title {
    font-family: var(--serif);

    font-size: 22px;

    margin-bottom: 35px;
}

.document-line {
    height: 3px;

    background: #999;

    margin: 17px 0;
}

/* ================================
   COURT VISUAL
================================ */

.court {
    width: 350px;
    height: 300px;

    position: relative;
}

.court-roof {
    position: absolute;

    top: 20px;

    left: 20px;

    width: 310px;

    height: 35px;

    background: #eee;

    clip-path: polygon(
        50% 0,
        100% 100%,
        0 100%
    );
}

.columns {
    position: absolute;

    top: 55px;

    left: 35px;

    width: 280px;

    height: 190px;

    display: flex;

    justify-content: space-between;
}

.column {
    width: 24px;

    height: 190px;

    background: #ddd;
}

.court-base {
    position: absolute;

    bottom: 25px;

    left: 10px;

    width: 330px;

    height: 25px;

    background: #eee;
}

/* ================================
   CONTROLS
================================ */

.slider-controls {
    position: absolute;

    right: 5vw;
    bottom: 40px;

    display: flex;

    align-items: center;

    gap: 22px;

    z-index: 50;
}

.arrow {
    width: 45px;
    height: 45px;

    border: 1px solid rgba(255,255,255,.35);

    display: flex;

    align-items: center;

    justify-content: center;

    cursor: pointer;

    transition: .3s;
}

.arrow:hover {
    background: white;

    color: black;
}

.counter {
    font-family: var(--serif);

    font-size: 14px;
}

.scroll-hint {
    position: absolute;

    left: 5vw;
    bottom: 45px;

    z-index: 30;

    display: flex;

    align-items: center;

    gap: 15px;

    color: #666;

    font-size: 9px;

    letter-spacing: 3px;

    text-transform: uppercase;
}

.scroll-line {
    width: 55px;

    height: 1px;

    background: #555;
}

.progress {
    position: absolute;

    bottom: 0;
    left: 0;

    width: 25%;

    height: 2px;

    background: white;

    transition: width .8s ease;
}

/* ================================
   INTRO
================================ */

.introduction {
    padding: 50px 8vw;

    background: #f4f4f4;

    color: #080808;
}

.intro-grid {
    max-width: 1300px;

    margin: auto;

    display: grid;

    grid-template-columns: .8fr 1.2fr;

    gap: 10vw;
}

.section-label {
    font-size: 10px;

    letter-spacing: 4px;

    text-transform: uppercase;
}

.introduction h2 {
    font-family: var(--serif);

    font-weight: 400;

    font-size: clamp(45px, 5vw, 78px);

    line-height: 1;
}

.introduction p {
    margin-top: 28px;

    color: #555;

    font-size: 16px;

    line-height: 1.9;
}

/* ================================
   PRACTICE AREAS
================================ */

.practice {
    padding: 140px 8vw;

    background: #080808;
}

.practice-header {
    max-width: 1300px;

    margin: auto;

    margin-bottom: 70px;
}

.practice-header h2 {
    font-family: var(--serif);

    font-weight: 400;

    font-size: clamp(50px, 6vw, 90px);
}

.practice-list {
    max-width: 1300px;

    margin: auto;
}

.practice-item {
    padding: 30px 0;

    border-top: 1px solid #282828;

    display: grid;

    grid-template-columns: 90px 1fr 320px;

    align-items: center;

    transition: .3s;
}

.practice-item:last-child {
    border-bottom: 1px solid #282828;
}

.practice-item:hover {
    padding-left: 20px;
}

.practice-number {
    color: #555;

    font-family: var(--serif);
}

.practice-name {
    font-family: var(--serif);

    font-size: 35px;
}

.practice-description {
    color: #777;

    font-size: 15px;

    line-height: 1.7;
}

/* ================================
   ABOUT
================================ */

.about {
    padding: 140px 8vw;

    background: #111;
}

.about-grid {
    max-width: 1300px;

    margin: auto;

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 10vw;
}

.about h2 {
    font-family: var(--serif);

    font-size: clamp(45px, 5vw, 75px);

    font-weight: 400;

    line-height: 1;
}

.about p {
    color: #888;

    line-height: 1.9;

    margin-top: 25px;
}

/* ================================
   CONTACT
================================ */

.contact {
    padding: 140px 8vw;

    background: #f4f4f4;

    color: #080808;
}

.contact-grid {
    max-width: 1300px;

    margin: auto;

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 10vw;
}

.contact h2 {
    font-family: var(--serif);

    font-size: clamp(50px, 6vw, 90px);

    font-weight: 400;

    line-height: .95;
}

.contact-details {
    margin-top: 35px;

    color: #555;

    line-height: 2;
}

.form {
    display: grid;

    gap: 18px;
}

.form input,
.form textarea {
    width: 100%;

    padding: 18px;

    border: none;

    border-bottom: 1px solid #bbb;

    background: transparent;

    outline: none;

    font-family: inherit;
}

.form textarea {
    height: 150px;

    resize: none;
}

.form button {
    padding: 18px;

    border: none;

    background: #050505;

    color: white;

    font-size: 10px;

    letter-spacing: 3px;

    text-transform: uppercase;

    cursor: pointer;
}

/* ================================
   FOOTER
================================ */

footer {
    padding: 30px 8vw;

    background: #050505;

    border-top: 1px solid #222;
}

.footer-grid {
    max-width: 1200px;
    
    margin: auto;

    display: flex;

    justify-content: space-between;

    gap: 30px;
}

.footer-logo {
    font-family: var(--serif);
    font-size: 20px;
    letter-spacing: 5px;
}

.footer-copy {
    margin-top: 14px;
    color: #666;

    font-size: 15px;
}

/* ================================
   MOBILE
================================ */

@media(max-width: 800px) {

    .navbar {
        height: 70px;

        padding: 0 25px;
    }

    .nav-links {
        display: none;

        position: absolute;

        top: 70px;
        left: 0;

        width: 100%;

        background: #050505;

        flex-direction: column;

        padding: 30px;
    }

    .nav-links.open {
        display: flex;
    }

    .menu-btn {
        display: block;
    }

    .nav-phone {
        display: none;
    }

    .logo-section {
        height: 110px;

        margin-top: 70px;
    }

    .logo-name {
        font-size: 25px;

        letter-spacing: 5px;
    }

    .slider {
        height: calc(100vh - 180px);

        min-height: 680px;
    }

    .slide-inner {
        grid-template-columns: 1fr;

        width: 82%;

        gap: 10px;
    }

    .slide h1 {
        font-size: 52px;
    }

    .slide-text {
        font-size: 13px;
    }

    .visual {
        min-height: 240px;
    }

    .image-box {
        width: 220px;
        height: 190px;
    }

    .legal-symbol {
        transform: scale(.65);
    }

    .document {
        transform: scale(.65);
    }

    .court {
        transform: scale(.65);
    }

    .scroll-hint {
        display: none;
    }

    .slider-controls {
        right: 25px;

        bottom: 25px;
    }

    .intro-grid,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .practice-item {
        grid-template-columns: 50px 1fr;
    }

    .practice-description {
        display: none;
    }

    .footer-grid {
        flex-direction: column;
    }
}

/* ================================
   MOBILE REFINEMENTS
================================ */

.slider { touch-action: pan-y; }
.nav-phone a { color: inherit; text-decoration: none; }

@media (max-width: 800px) {

    [id] { scroll-margin-top: 70px; }

    /* Navigation */
    .nav-phone {
        display: block;
        font-size: 12px;
        letter-spacing: 1px;
    }
    .nav-phone a { display: inline-block; padding: 14px 0; }
    .menu-btn { min-width: 44px; min-height: 44px; }
    .nav-links { gap: 4px; padding: 16px 25px 24px; border-bottom: 1px solid var(--line); }
    .nav-links a { display: block; padding: 14px 0; font-size: 12px; }

    /* Logo */
    .logo-section { padding: 0 12px; }
    .logo-tagline { letter-spacing: 2px; line-height: 1.5; }

    /* Slider */
    .slider {
        height: calc(100vh - 180px);
        height: calc(100dvh - 180px);
        min-height: 740px;
    }
    .slide-inner { padding-bottom: 70px; }
    .slide h1 { font-size: 40px; letter-spacing: -1.5px; }
    .slide-label { margin-bottom: 18px; }
    .slide-text { margin-top: 20px; }
    .slide-button { margin-top: 24px; padding: 16px 24px; }
    .visual { min-height: 230px; }
    .image-box { width: min(78vw, 300px); height: 200px; overflow: hidden; }
    .image-label { overflow: hidden; }
    .image-label img,
    .image-label video {
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        object-fit: cover;
        border-radius: 0 !important;
    }
    .slider-controls { gap: 14px; }
    .arrow { width: 44px; height: 44px; }

    /* Content sections */
    .introduction { padding: 40px 6vw; }
    .practice, .about, .contact { padding: 70px 6vw; }
    .intro-grid, .about-grid, .contact-grid { gap: 36px; }
    .introduction img, .about img { max-width: 100%; height: auto; }
    .introduction h1, .about h1 { font-size: 28px; line-height: 1.2; }
    .introduction h2 { font-size: 36px; }
    .introduction p { margin-top: 18px; font-size: 15px; }
    .about p { font-size: 15px; }

    .practice-header { margin-bottom: 40px; }
    .practice-header h2 { font-size: 40px; }
    .practice-name { font-size: 24px; }
    .practice-description { display: block; grid-column: 2; margin-top: 8px; font-size: 14px; }
    .practice-item:hover { padding-left: 0; }

    .contact h2 { font-size: 40px; }
    .form input, .form textarea { font-size: 16px; } /* prevents iOS zoom on focus */
    .form button { min-height: 52px; }

    .footer-grid { align-items: center; text-align: center; gap: 0; }
}

@media (max-width: 380px) {
    .slide h1 { font-size: 34px; }
    .logo-name { font-size: 22px; letter-spacing: 3px; }
}

/* Contact form status message */
#formStatus {
    min-height: 1.5em;
    font-size: 14px;
    line-height: 1.5;
    color: #555;
}

#formStatus.success { color: #1a7f37; }
#formStatus.error { color: #b3261e; }

.form button:disabled {
    opacity: .6;
    cursor: wait;
}

/* Banner images at the top of the practice pages: scale down to fit the screen */
.page-banner {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

@media (max-width: 600px) {
  .page-banner {
    max-height: 220px;   /* keeps the banner from eating the whole screen on phones */
    object-fit: cover;   /* crops gracefully instead of squashing */
  }
}