:root {
    --navy: #0f2d35;
    --teal: #123841;
    --teal-light: #194b5b;
    --accent: #f5a623;
    --accent-dark: #d1881c;
    --text: #ffffff;
    --muted: #d5d5d5;
    --border: rgba(245, 166, 35, .22);
    --shadow: 0 18px 45px rgba(0, 0, 0, .22);
    --radius: 18px;
    --header-height: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 16px); overflow-x: clip; }
body { margin: 0; min-width: 320px; overflow-x: clip; font-family: 'Poppins', sans-serif; color: var(--text); background: var(--navy); line-height: 1.65; }
body.modal-open { overflow: hidden; }
img, iframe, video { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid rgba(245,166,35,.55); outline-offset: 3px; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h2 { margin: 0 0 clamp(24px, 4vw, 44px); color: var(--accent); font-size: clamp(1.85rem, 4vw, 2.75rem); line-height: 1.15; text-align: center; letter-spacing: -.03em; }
p { margin: 0; color: var(--muted); font-size: clamp(.98rem, 1.4vw, 1.08rem); }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
section { width: 100%; max-width: 100%; overflow: clip; }
main > section { padding: clamp(64px, 8vw, 104px) max(20px, calc((100vw - 1200px) / 2)); background: var(--navy); }
main > section:nth-of-type(even) { background: var(--teal); }
#block-1 { padding: 0; }
#block-1 > h2 { display: none; }
::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 20px; border: 2px solid var(--navy); }

header { position: sticky; top: 0; z-index: 1000; min-height: var(--header-height); padding: 0 24px; background: rgba(18, 56, 65, .96); border-bottom: 1px solid rgba(255,255,255,.07); box-shadow: 0 8px 28px rgba(0,0,0,.2); backdrop-filter: blur(12px); }
header > p { display: none; }
.header-container { width: min(1240px, 100%); min-height: var(--header-height); margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.logo a { display: flex; align-items: center; }
.logo img { width: auto; max-width: 180px; max-height: 68px; object-fit: contain; }
nav { display: flex; align-items: center; }
.menu { display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); margin: 0; padding: 0; list-style: none; }
.menu li { margin: 0; }
.menu a { display: block; position: relative; padding: 12px 0; color: var(--text); font-size: .94rem; font-weight: 500; text-decoration: none; white-space: nowrap; transition: color .2s ease; }
.menu a::after { content: ''; position: absolute; right: 0; bottom: 6px; left: 0; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform .2s ease; }
.menu a:hover, .menu a.is-active { color: var(--accent); }
.menu a:hover::after, .menu a.is-active::after { transform: scaleX(1); }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 9px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; }
.menu-toggle span { display: block; width: 25px; height: 2px; margin: 5px auto; border-radius: 2px; background: #fff; transition: transform .25s ease, opacity .2s ease; }
.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

#hero { min-height: calc(100svh - var(--header-height)); height: auto !important; padding: clamp(64px, 9vw, 110px) 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; isolation: isolate; }
#hero h2 { max-width: 900px; margin: 0 0 20px; font-size: clamp(2.15rem, 6vw, 4.6rem); text-wrap: balance; }
#hero > p { max-width: 720px; margin: 0 0 34px; color: #fff; font-size: clamp(1.05rem, 2vw, 1.35rem); }
.cta-button, .site-preview { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 600; text-decoration: none; box-shadow: 0 10px 24px rgba(245,166,35,.2); transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease; }
.cta-button { padding: 14px 28px; }
.cta-button:hover, .site-preview:hover { transform: translateY(-2px); background: var(--accent-dark); color: var(--teal); box-shadow: 0 14px 30px rgba(0,0,0,.24); }
.toggles h1 { margin: 30px 0 12px !important; font-size: clamp(1.25rem, 2.5vw, 1.7rem); }
.tradeoff-block { position: relative; z-index: 2; margin-top: 12px; text-align: center; }
.tradeoff-switches { display: flex; justify-content: center; gap: 16px 32px; flex-wrap: wrap; margin-bottom: 14px; }
.switch-label { display: flex; align-items: center; gap: 10px; color: #fff; font-size: .98rem; font-weight: 500; cursor: pointer; }
.switch-label input { position: absolute; opacity: 0; pointer-events: none; }
.switch-slider { position: relative; width: 48px; height: 26px; border-radius: 30px; background: #79878b; transition: background-color .25s; }
.switch-slider::before { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.3); transition: transform .25s; }
.switch-label input:checked + .switch-slider { background: var(--accent); }
.switch-label input:checked + .switch-slider::before { transform: translateX(22px); }
.switch-label input:focus-visible + .switch-slider { outline: 3px solid rgba(245,166,35,.5); outline-offset: 3px; }
.trade-output { min-height: 26px; color: #eee; font-size: .92rem; font-style: italic; }

#about { padding: 0; }
.about-container { width: min(1100px, 100%); margin: auto; display: grid; grid-template-columns: minmax(260px, .75fr) minmax(0, 1.45fr); align-items: center; gap: clamp(38px, 7vw, 84px); }
.about-photo { width: 100%; aspect-ratio: 4/5; max-height: 600px; overflow: hidden; border: 1px solid var(--border); border-radius: 28px; box-shadow: var(--shadow); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-text { min-width: 0; text-align: left; }
.about-text p, .about-text ul { text-align: left; }
.about-text p { margin-bottom: 14px; line-height: 1.75; }
.about-text h3 { margin: 26px 0 10px; color: var(--accent); font-size: 1.18rem; }
.about-text ul { margin: 0; padding-left: 22px; color: var(--muted); }
.about-text li { margin: 6px 0; font-size: .95rem; }

#portfolio { padding: 0; background: transparent; }
.portfolio-filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.filter-btn { min-height: 42px; padding: 9px 18px; border: 1px solid var(--border); border-radius: 999px; background: rgba(18,56,65,.7); color: #fff; font-weight: 500; cursor: pointer; transition: transform .2s, background .2s, border-color .2s; }
.filter-btn:hover { transform: translateY(-2px); border-color: var(--accent); }
.filter-btn.is-active { border-color: var(--accent); background: var(--accent); color: var(--teal); }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 26px); align-items: start; }
.work-example { min-width: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); background: rgba(18,56,65,.72); box-shadow: 0 10px 28px rgba(0,0,0,.16); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.work-example:hover { transform: translateY(-5px); border-color: var(--border); box-shadow: var(--shadow); }
.work-example[hidden] { display: none; }
.media-trigger { position: relative; display: block; width: 100%; padding: 0; overflow: hidden; border: 0; background: #09242b; cursor: zoom-in; }
.media-trigger img { width: 100%; height: 100%; object-fit: cover; margin: 0; border-radius: 0; transition: transform .35s ease, opacity .25s; }
.media-trigger:hover img { transform: scale(1.035); opacity: .88; }
.format-1x1 .media-trigger { aspect-ratio: 1/1; }
.format-16x9 .media-trigger { aspect-ratio: 16/9; }
.format-9x16 .media-trigger { aspect-ratio: 9/16; }
.format-9x16 .media-trigger img { object-position: top center; }
.play-button { position: absolute; top: 50%; left: 50%; display: grid; width: 62px; height: 62px; place-items: center; border-radius: 50%; background: rgba(245,166,35,.94); color: #fff; transform: translate(-50%,-50%); box-shadow: 0 8px 25px rgba(0,0,0,.3); }
.work-example-body { padding: 16px 18px 18px; }
.work-example h3 { margin: 0; min-height: 3em; color: #fff; font-size: 1rem; line-height: 1.45; text-align: left; }
.work-example-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.site-preview { min-height: 38px; margin: 0; padding: 7px 14px; border-radius: 9px; font-size: .83rem; }
.like-btn { display: inline-flex; align-items: center; gap: 7px; min-width: 44px; min-height: 40px; justify-content: center; margin: 0 0 0 auto; border: 0; border-radius: 10px; background: rgba(255,255,255,.05); color: var(--accent); cursor: pointer; transition: background .2s, transform .2s; }
.like-btn:hover { background: rgba(245,166,35,.14); transform: translateY(-1px); }
.like-count { color: var(--muted); font-size: .85rem; }

.modal { position: fixed; inset: 0; z-index: 9999; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(3,15,19,.92); overscroll-behavior: contain; backdrop-filter: blur(8px); }
.modal.is-open { display: flex; }
.modal-content { position: relative; width: min(1100px, 100%); max-height: calc(100svh - 48px); overflow: auto; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; background: var(--teal); box-shadow: 0 30px 80px rgba(0,0,0,.55); scrollbar-width: thin; }
.modal-stage { position: relative; display: grid; width: 100%; height: min(72svh, 760px); place-items: center; overflow: hidden; background: #071e24; }
#modal-image, #modal-video { display: none; width: 100%; height: 100%; border: 0; object-fit: contain; }
#modal-image.is-visible, #modal-video.is-visible { display: block; }
.modal-close { position: fixed; top: max(20px, env(safe-area-inset-top)); right: max(20px, env(safe-area-inset-right)); z-index: 3; display: grid; width: 48px; height: 48px; padding: 0 0 5px; place-items: center; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; background: rgba(15,45,53,.9); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; }
.modal-close:hover { color: var(--accent); }
.nav-button { position: absolute; top: 50%; z-index: 2; width: 48px; height: 58px; border: 0; border-radius: 12px; background: rgba(245,166,35,.9); color: #fff; font-size: 1.35rem; cursor: pointer; transform: translateY(-50%); transition: background .2s, transform .2s; }
.nav-button:hover { background: var(--accent-dark); transform: translateY(-50%) scale(1.04); }
.nav-button[hidden] { display: none; }
.nav-prev { left: 16px; }
.nav-next { right: 16px; }
#modal-description { position: relative; padding: 18px 64px 20px 22px; text-align: left; }
#modal-title { margin: 0 0 5px; color: var(--accent); font-size: 1.2rem; }
#modal-text { text-align: left; font-size: .92rem; }
#modal-counter { position: absolute; top: 20px; right: 22px; color: var(--muted); font-size: .82rem; }

#pricing { padding: 0; background: transparent; }
.hourly-rates { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 0 auto 20px; }
.hourly-rates > div { display: flex; min-width: 0; min-height: 116px; padding: 17px; flex-direction: column; justify-content: space-between; gap: 12px; border: 1px solid var(--border); border-radius: 15px; background: var(--teal); }
.hourly-rates span { color: var(--muted); font-size: .84rem; line-height: 1.35; }
.hourly-rates strong { color: var(--accent); font-size: 1.05rem; white-space: nowrap; }
.pricing-note { max-width: 760px; margin: 0 auto 34px; text-align: center; font-size: .9rem; }
.pricing-table { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; }
.pricing-column { min-width: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); background: rgba(7,30,36,.54); box-shadow: 0 12px 30px rgba(0,0,0,.14); }
.pricing-column h3 { margin: 0; padding: 20px 22px; border-bottom: 1px solid var(--border); color: var(--accent); font-size: 1.35rem; }
.pricing-column ul { margin: 0; padding: 4px 20px 12px; list-style: none; }
.pricing-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 16px 2px; border-bottom: 1px solid rgba(255,255,255,.075); }
.pricing-item:last-child { border-bottom: 0; }
.pricing-item-name { display: block; color: #fff; font-size: .95rem; line-height: 1.4; }
.pricing-item-description { display: block; margin-top: 4px; color: #aebdc1; font-size: .77rem; line-height: 1.45; }
.pricing-item-price { display: inline-flex; max-width: 180px; padding: 7px 11px; border-radius: 9px; background: var(--teal); color: var(--accent); font-size: .86rem; font-weight: 600; line-height: 1.35; text-align: center; }

#reviews { padding: 0; background: transparent; }
.infinite-carousel { width: min(1000px, 100%); margin: auto; overflow: hidden; }
.review-track { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.review-card { min-width: 0; padding: 24px; border: 1px solid rgba(255,255,255,.08); border-radius: 15px; background: var(--navy); color: #f0f0f0; font-size: .96rem; font-style: italic; white-space: normal; box-shadow: 0 10px 25px rgba(0,0,0,.14); }

#contact { padding: 0; background: transparent; text-align: center; }
#contact .container { width: 100%; }
#contact > .container > p { margin-bottom: 30px; }
.contact-info ul { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin: 0; padding: 0; list-style: none; }
.contact-info li { display: inline-flex; align-items: center; min-height: 44px; padding: 9px 14px; border: 1px solid rgba(255,255,255,.1); border-radius: 10px; background: rgba(15,45,53,.45); color: var(--accent); font-size: .92rem; }
.contact-info a { margin-left: 6px; color: #fff; text-decoration: none; }
.contact-info a:hover { color: var(--accent); }
footer { padding: 28px 20px; border-top: 1px solid rgba(255,255,255,.07); background: #09242b; text-align: center; }
footer p { font-size: .85rem; }

@media (max-width: 1024px) {
    :root { --header-height: 74px; }
    header { padding-inline: 18px; }
    .menu { gap: 14px; }
    .menu a { font-size: .82rem; }
    .gallery { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .hourly-rates { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .review-track { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 768px) {
    .container { width: min(100% - 32px, 680px); }
    main > section { padding: 64px 16px; }
    .logo img { max-width: 150px; max-height: 58px; }
    .menu-toggle { display: block; }
    .menu { position: fixed; top: var(--header-height); right: 0; left: 0; display: flex; max-height: 0; padding: 0 20px; flex-direction: column; align-items: stretch; gap: 0; overflow: hidden; visibility: hidden; background: rgba(18,56,65,.99); box-shadow: 0 15px 30px rgba(0,0,0,.28); transition: max-height .3s ease, padding .3s ease, visibility .3s; }
    .menu.show { max-height: calc(100svh - var(--header-height)); padding: 12px 20px 22px; visibility: visible; overflow-y: auto; }
    .menu a { padding: 13px 5px; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 1rem; }
    .menu a::after { display: none; }
    #hero { min-height: calc(100svh - var(--header-height)); padding: 48px 18px; }
    .about-container { grid-template-columns: 1fr; gap: 34px; }
    .about-photo { width: min(100%, 430px); max-height: 510px; margin: auto; border-radius: 22px; }
    .pricing-table { grid-template-columns: 1fr; }
    .modal { padding: 0; }
    .modal-content { width: 100%; max-height: 100svh; min-height: 100svh; border: 0; border-radius: 0; }
    .modal-stage { height: calc(100svh - 116px); }
    .modal-close { top: 12px; right: 12px; }
    .nav-prev { left: 8px; }
    .nav-next { right: 8px; }
    #modal-description { min-height: 116px; padding: 14px 58px 16px 16px; }
    #modal-counter { top: 16px; right: 16px; }
}

@media (max-width: 540px) {
    h2 { margin-bottom: 26px; }
    .tradeoff-switches { gap: 13px 18px; }
    .switch-label { gap: 7px; font-size: .88rem; }
    .gallery { grid-template-columns: 1fr; gap: 18px; }
    .work-example h3 { min-height: 0; }
    .portfolio-filters { justify-content: flex-start; flex-wrap: nowrap; margin-inline: -16px; padding: 2px 16px 12px; overflow-x: auto; scrollbar-width: none; }
    .portfolio-filters::-webkit-scrollbar { display: none; }
    .filter-btn { flex: 0 0 auto; }
    .hourly-rates { grid-template-columns: 1fr 1fr; gap: 10px; }
    .hourly-rates > div { min-height: 102px; padding: 14px; }
    .hourly-rates strong { font-size: .94rem; }
    .pricing-item { grid-template-columns: 1fr; gap: 10px; }
    .pricing-item-price { max-width: 100%; justify-self: start; }
    .review-track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
    .review-card { flex: 0 0 calc(100% - 22px); scroll-snap-align: start; }
    .contact-info ul { flex-direction: column; align-items: stretch; }
    .contact-info li { justify-content: center; overflow-wrap: anywhere; }
}

@media (max-width: 360px) {
    header { padding-inline: 12px; }
    .logo img { max-width: 132px; }
    main > section { padding-inline: 14px; }
    .portfolio-filters { margin-inline: -14px; padding-inline: 14px; }
    .hourly-rates { grid-template-columns: 1fr; }
    .hourly-rates > div { min-height: 82px; }
    .nav-button { width: 42px; height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
