/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-dark: #000000;
    --color-light: #ffffff;
    --color-grey-light: #f5f5f5;
    --color-grey-medium: #e0e0e0;
    --color-grey-dark: #666666;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--color-dark);
    background-color: var(--color-light);
    overflow-x: hidden;
}

/* Header */
.header {
    background-color: var(--color-light);
    padding: 1.5rem 2rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.header-logo {
    display: flex;
    align-items: center;
}

.header-logo svg {
    color: var(--color-dark);
    width: 32px;
    height: 32px;
}

.logo {
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--color-dark);
    font-size: 0.95rem;
    font-weight: 400;
    transition: opacity 0.2s;
}

.nav-link:hover {
    opacity: 0.7;
}

.nav-link .sup {
    font-size: 0.7em;
    vertical-align: super;
    margin-left: 0.2em;
}

/* Hero Section */
.hero {
    background-color: var(--color-dark);
    color: var(--color-light);
    min-height: 90vh;
    position: relative;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 24px;
    z-index: 10;
    margin-bottom: -24px;
    margin-top: 80px;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    padding-top: 4rem;
    flex: 1;
}

.hero-main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-logo {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 300;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1rem;
}

/* Initial state for GSAP hero entrance; .reduced-motion restores visibility without animation */
.hero-logo .hero-logo-line,
.hero-logo .hero-labs {
    opacity: 0;
    transform: translateY(50px);
}

.hero-mission p,
.hero-mission .cta-button {
    opacity: 0;
    transform: translateY(40px);
}

body.reduced-motion .hero-logo .hero-logo-line,
body.reduced-motion .hero-logo .hero-labs,
body.reduced-motion .hero-mission p,
body.reduced-motion .hero-mission .cta-button {
    opacity: 1;
    transform: none;
}

.hero-labs {
    display: block;
}

.hero-subtitle {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 300;
    opacity: 0.9;
    letter-spacing: -0.02em;
}

.hero-services {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
}

.services-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.services-list li {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    font-weight: 300;
    opacity: 0.95;
}

.hero-footer {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    margin-top: 4rem;
}

.hero-mission {
    max-width: 500px;
}

.hero-mission p {
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    line-height: 1.7;
    opacity: 0.85;
    font-weight: 300;
    margin-bottom: 1.5rem;
}

.cta-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid var(--color-light);
    color: var(--color-light);
    background: transparent;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
    font-family: inherit;
}

button.cta-button {
    appearance: none;
}

.cta-button:hover {
    background: var(--color-light);
    color: var(--color-dark);
}

.hero-sidebar {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1.5rem;
}

.contact-card {
    background-color: var(--color-light);
    color: var(--color-dark);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    min-width: 280px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.contact-card-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.contact-card-text {
    flex: 1;
}

.contact-card-title {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-bottom: 0.3rem;
}

.contact-card-name {
    font-size: 1.1rem;
    font-weight: 500;
}

.contact-button {
    background-color: var(--color-dark);
    color: var(--color-light);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
    flex-shrink: 0;
}

.contact-button:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.button-circle {
    width: 8px;
    height: 8px;
    background-color: var(--color-light);
    border-radius: 50%;
    position: absolute;
}

.button-arrow {
    font-size: 1.2rem;
    font-weight: 300;
}

.hero-copyright {
    font-size: 0.85rem;
    opacity: 0.6;
}

.hero-decorations {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    max-width: 1400px;
    margin: 0 auto;
    opacity: 0.3;
    pointer-events: none;
    overflow: hidden;
}

.decoration {
    position: absolute;
    font-size: 1.5rem;
    font-weight: 300;
}

/* Evenly spaced grid pattern covering entire black section - 8 columns x 8 rows = 64 decorations */
.decoration:nth-child(1) { top: 5%; left: 5%; }
.decoration:nth-child(2) { top: 5%; left: 15%; }
.decoration:nth-child(3) { top: 5%; left: 25%; }
.decoration:nth-child(4) { top: 5%; left: 35%; }
.decoration:nth-child(5) { top: 5%; left: 45%; }
.decoration:nth-child(6) { top: 5%; left: 55%; }
.decoration:nth-child(7) { top: 5%; left: 65%; }
.decoration:nth-child(8) { top: 5%; left: 75%; }
.decoration:nth-child(9) { top: 5%; left: 85%; }
.decoration:nth-child(10) { top: 5%; left: 95%; }
.decoration:nth-child(11) { top: 15%; left: 5%; }
.decoration:nth-child(12) { top: 15%; left: 15%; }
.decoration:nth-child(13) { top: 15%; left: 25%; }
.decoration:nth-child(14) { top: 15%; left: 35%; }
.decoration:nth-child(15) { top: 15%; left: 45%; }
.decoration:nth-child(16) { top: 15%; left: 55%; }
.decoration:nth-child(17) { top: 15%; left: 65%; }
.decoration:nth-child(18) { top: 15%; left: 75%; }
.decoration:nth-child(19) { top: 15%; left: 85%; }
.decoration:nth-child(20) { top: 15%; left: 95%; }
.decoration:nth-child(21) { top: 25%; left: 5%; }
.decoration:nth-child(22) { top: 25%; left: 15%; }
.decoration:nth-child(23) { top: 25%; left: 25%; }
.decoration:nth-child(24) { top: 25%; left: 35%; }
.decoration:nth-child(25) { top: 25%; left: 45%; }
.decoration:nth-child(26) { top: 25%; left: 55%; }
.decoration:nth-child(27) { top: 25%; left: 65%; }
.decoration:nth-child(28) { top: 25%; left: 75%; }
.decoration:nth-child(29) { top: 25%; left: 85%; }
.decoration:nth-child(30) { top: 25%; left: 95%; }
.decoration:nth-child(31) { top: 35%; left: 5%; }
.decoration:nth-child(32) { top: 35%; left: 15%; }
.decoration:nth-child(33) { top: 35%; left: 25%; }
.decoration:nth-child(34) { top: 35%; left: 35%; }
.decoration:nth-child(35) { top: 35%; left: 45%; }
.decoration:nth-child(36) { top: 35%; left: 55%; }
.decoration:nth-child(37) { top: 35%; left: 65%; }
.decoration:nth-child(38) { top: 35%; left: 75%; }
.decoration:nth-child(39) { top: 35%; left: 85%; }
.decoration:nth-child(40) { top: 35%; left: 95%; }
.decoration:nth-child(41) { top: 45%; left: 5%; }
.decoration:nth-child(42) { top: 45%; left: 15%; }
.decoration:nth-child(43) { top: 45%; left: 25%; }
.decoration:nth-child(44) { top: 45%; left: 35%; }
.decoration:nth-child(45) { top: 45%; left: 45%; }
.decoration:nth-child(46) { top: 45%; left: 55%; }
.decoration:nth-child(47) { top: 45%; left: 65%; }
.decoration:nth-child(48) { top: 45%; left: 75%; }
.decoration:nth-child(49) { top: 45%; left: 85%; }
.decoration:nth-child(50) { top: 45%; left: 95%; }
.decoration:nth-child(51) { top: 55%; left: 5%; }
.decoration:nth-child(52) { top: 55%; left: 15%; }
.decoration:nth-child(53) { top: 55%; left: 25%; }
.decoration:nth-child(54) { top: 55%; left: 35%; }
.decoration:nth-child(55) { top: 55%; left: 45%; }
.decoration:nth-child(56) { top: 55%; left: 55%; }
.decoration:nth-child(57) { top: 55%; left: 65%; }
.decoration:nth-child(58) { top: 55%; left: 75%; }
.decoration:nth-child(59) { top: 55%; left: 85%; }
.decoration:nth-child(60) { top: 55%; left: 95%; }
.decoration:nth-child(61) { top: 65%; left: 5%; }
.decoration:nth-child(62) { top: 65%; left: 15%; }
.decoration:nth-child(63) { top: 65%; left: 25%; }
.decoration:nth-child(64) { top: 65%; left: 35%; }
.decoration:nth-child(65) { top: 65%; left: 45%; }
.decoration:nth-child(66) { top: 65%; left: 55%; }
.decoration:nth-child(67) { top: 65%; left: 65%; }
.decoration:nth-child(68) { top: 65%; left: 75%; }
.decoration:nth-child(69) { top: 65%; left: 85%; }
.decoration:nth-child(70) { top: 65%; left: 95%; }
.decoration:nth-child(71) { top: 75%; left: 5%; }
.decoration:nth-child(72) { top: 75%; left: 15%; }
.decoration:nth-child(73) { top: 75%; left: 25%; }
.decoration:nth-child(74) { top: 75%; left: 35%; }
.decoration:nth-child(75) { top: 75%; left: 45%; }
.decoration:nth-child(76) { top: 75%; left: 55%; }
.decoration:nth-child(77) { top: 75%; left: 65%; }
.decoration:nth-child(78) { top: 75%; left: 75%; }
.decoration:nth-child(79) { top: 75%; left: 85%; }
.decoration:nth-child(80) { top: 75%; left: 95%; }
.decoration:nth-child(81) { top: 85%; left: 5%; }
.decoration:nth-child(82) { top: 85%; left: 15%; }
.decoration:nth-child(83) { top: 85%; left: 25%; }
.decoration:nth-child(84) { top: 85%; left: 35%; }
.decoration:nth-child(85) { top: 85%; left: 45%; }
.decoration:nth-child(86) { top: 85%; left: 55%; }
.decoration:nth-child(87) { top: 85%; left: 65%; }
.decoration:nth-child(88) { top: 85%; left: 75%; }
.decoration:nth-child(89) { top: 85%; left: 85%; }
.decoration:nth-child(90) { top: 85%; left: 95%; }
.decoration:nth-child(91) { top: 95%; left: 5%; }
.decoration:nth-child(92) { top: 95%; left: 15%; }
.decoration:nth-child(93) { top: 95%; left: 25%; }
.decoration:nth-child(94) { top: 95%; left: 35%; }
.decoration:nth-child(95) { top: 95%; left: 45%; }
.decoration:nth-child(96) { top: 95%; left: 55%; }
.decoration:nth-child(97) { top: 95%; left: 65%; }
.decoration:nth-child(98) { top: 95%; left: 75%; }
.decoration:nth-child(99) { top: 95%; left: 85%; }
.decoration:nth-child(100) { top: 95%; left: 95%; }

/* Clients Section */
.clients-section {
    background-color: var(--color-light);
    padding: 6rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    padding-top: calc(6rem + 24px);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.section-icon {
    width: 12px;
    height: 12px;
    background-color: var(--color-dark);
    border-radius: 50%;
}

.section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 400;
    letter-spacing: -0.02em;
}

.section-meta {
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    opacity: 0.6;
    margin-left: auto;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.client-card {
    background-color: var(--color-light);
    border: 1px solid var(--color-grey-medium);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.client-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.client-logo {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--color-dark);
    opacity: 0.7;
}

/* Projects Section */
.projects-section {
    background-color: var(--color-light);
    padding: 6rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.projects-content {
    display: flex;
    flex-direction: column;
}

.projects-left {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.projects-number {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    opacity: 0.6;
}

.projects-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 300;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.projects-copyright {
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    opacity: 0.6;
}

.projects-right {
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.projects-intro {
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    opacity: 0.6;
    font-weight: 400;
}

.project-item {
    max-width: 560px;
}

.project-item-title {
    font-size: clamp(1.1rem, 1.5vw, 1.25rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.projects-description {
    font-size: clamp(1rem, 1.3vw, 1.2rem);
    line-height: 1.8;
    opacity: 0.7;
    font-weight: 300;
    max-width: 500px;
}

/* Footer */
.site-footer {
    padding: 3rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.site-footer-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.site-footer-logo svg {
    color: var(--color-dark);
    width: 32px;
    height: 32px;
    opacity: 0.85;
}

.cta-button-primary {
    background: var(--color-dark);
    color: var(--color-light);
    border-color: var(--color-dark);
}

.cta-button-primary:hover {
    background: var(--color-dark);
    color: var(--color-light);
    opacity: 0.9;
}

/* Booking modal (Cal.com embed) */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    pointer-events: none;
}

.modal-overlay.is-open {
    display: flex;
    pointer-events: auto;
}

/* GSAP will animate these; avoid conflicting CSS transitions */
.modal-overlay.is-open .modal-backdrop,
.modal-overlay.is-open .modal-box {
    transition: none;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.modal-box {
    position: relative;
    background: var(--color-light);
    color: var(--color-dark);
    border-radius: 16px;
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
    padding: 2rem;
}

.modal-box--full-cal {
    max-width: 900px;
    width: calc(100% - 2rem);
    padding: 0;
    overflow: hidden;
}

.modal-box--full-cal .modal-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1.25rem;
}

.modal-box button,
.modal-box input,
.modal-box textarea {
    font-family: inherit;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--color-dark);
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
}

.modal-close:hover {
    background: var(--color-grey-light);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    margin-bottom: 0.35rem;
}

.modal-subtitle {
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--color-dark);
    opacity: 0.7;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.booking-embed {
    width: 100%;
    min-height: 500px;
    margin-bottom: 1rem;
}

.modal-box--full-cal .booking-embed {
    min-height: 650px;
    margin-bottom: 0;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.modal-box--full-cal .booking-embed iframe {
    min-height: 650px;
    height: 80vh;
    border-radius: 8px;
}

.booking-embed-iframe {
    width: 100%;
    min-height: 500px;
    height: 70vh;
    border: 0;
    border-radius: 8px;
}

.modal-footer-note {
    font-size: 0.85rem;
    color: var(--color-dark);
    opacity: 0.7;
}

.modal-footer-note a {
    color: var(--color-dark);
    text-decoration: underline;
}

/* Booking form (legacy – kept for reference or custom UI later) */
.booking-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.booking-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    margin-bottom: 0.4rem;
    color: var(--color-dark);
}

/* Calendar widget – matches form and site typography */
.calendar-widget {
    border: 1px solid var(--color-grey-medium);
    border-radius: 8px;
    padding: 1.25rem 1rem;
    background: var(--color-light);
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.calendar-month-label {
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    min-width: 140px;
    text-align: center;
}

.calendar-nav {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--color-dark);
    background: transparent;
    border: 1px solid var(--color-grey-medium);
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.2s, border-color 0.2s;
}

.calendar-nav:hover:not(:disabled) {
    opacity: 0.8;
    border-color: var(--color-dark);
}

.calendar-nav:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
    margin-bottom: 0.5rem;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--color-dark);
    opacity: 0.5;
    text-align: center;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.4rem;
}

.calendar-day {
    padding: 0.5rem 0.35rem;
    min-height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 400;
    border: 1px solid var(--color-grey-medium);
    border-radius: 8px;
    background: var(--color-light);
    color: var(--color-dark);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.calendar-day:hover:not(.calendar-day--disabled):not(.calendar-day--other-month) {
    border-color: var(--color-dark);
}

.calendar-day--selected {
    background: var(--color-dark);
    color: var(--color-light);
    border-color: var(--color-dark);
}

.calendar-day--selected:hover {
    background: var(--color-dark);
    color: var(--color-light);
    border-color: var(--color-dark);
    opacity: 0.9;
}

.calendar-day--other-month {
    color: var(--color-grey-medium);
    cursor: default;
}

.calendar-day--disabled {
    color: var(--color-grey-medium);
    cursor: not-allowed;
    opacity: 0.5;
}

.time-slots-hint {
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--color-dark);
    opacity: 0.6;
}

.booking-input {
    width: 100%;
    padding: 0.65rem 0.85rem;
    font-size: 1rem;
    border: 1px solid var(--color-grey-medium);
    border-radius: 8px;
    background: var(--color-light);
    color: var(--color-dark);
    transition: border-color 0.2s;
}

.booking-input:focus {
    outline: none;
    border-color: var(--color-dark);
}

.booking-input::placeholder {
    color: var(--color-grey-dark);
    opacity: 0.8;
}

.booking-textarea {
    resize: vertical;
    min-height: 80px;
}

.time-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.time-slot {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 400;
    border: 1px solid var(--color-grey-medium);
    border-radius: 8px;
    background: var(--color-light);
    color: var(--color-dark);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.time-slot:hover {
    border-color: var(--color-dark);
}

.time-slot.is-selected {
    background: var(--color-dark);
    color: var(--color-light);
    border-color: var(--color-dark);
}

.time-slots-message {
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--color-dark);
    opacity: 0.6;
    margin: 0;
}

.booking-actions {
    margin-top: 0.5rem;
}

.booking-submit {
    width: 100%;
    padding: 0.85rem 1.25rem;
    font-size: 1rem;
    cursor: pointer;
    border: none;
}

.modal-footer-note {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--color-dark);
    opacity: 0.6;
    text-align: center;
}

.modal-mail-link {
    color: var(--color-dark);
    font-weight: 500;
    text-decoration: underline;
}

.modal-mail-link:hover {
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 968px) {
    .nav-link--hide-mobile,
    .nav-link--hide-contact-mobile {
        display: none;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-services {
        justify-content: flex-start;
    }

    .hero-footer {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-sidebar {
        align-items: flex-start;
    }

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

    .clients-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 640px) {
    .header {
        padding: 1rem 1.5rem;
    }

    .hero {
        padding: 2rem 1.5rem;
        min-height: auto;
    }

    .clients-section,
    .projects-section {
        padding: 4rem 1.5rem;
    }

    .contact-card {
        min-width: 100%;
    }

    /* Booking modal: full-bleed on mobile so Cal.com embed has maximum space */
    .modal-overlay {
        padding: 0;
        align-items: stretch;
    }

    .modal-box--full-cal {
        width: 100%;
        max-width: none;
        max-height: 100vh;
        max-height: 100dvh;
        border-radius: 0;
    }

    .modal-box--full-cal .modal-close {
        top: 0.75rem;
        right: 0.75rem;
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.35rem;
    }

    .modal-box--full-cal .booking-embed {
        min-height: 100%;
        border-radius: 0;
        border: none;
    }

    .modal-box--full-cal .booking-embed iframe {
        min-height: 100vh;
        min-height: 100dvh;
        height: 100%;
        border-radius: 0;
    }
}

