:root {
     --bg: #111111;
     --text: #ffffff;
     --text-muted: rgba(255, 255, 255, 0.85);
     --text-subtle: rgba(255, 255, 255, 0.6);
     --border-soft: rgba(255, 255, 255, 0.25);
     --border-strong: rgba(255, 255, 255, 0.4);
     --accent: #00ffff;
}

*,
*::before,
*::after {
     box-sizing: border-box;
}

html {
     scroll-behavior: smooth;
}

body {
     margin: 0;
     background: var(--bg);
     color: var(--text);
     font-family: 'Open Sans', Arial, sans-serif;
     line-height: 1.65;
}

.page-shell {
     position: relative;
     overflow: hidden;
}

.noise-layer {
     position: absolute;
     inset: 0;
     pointer-events: none;
     opacity: 0.04;
     mix-blend-mode: soft-light;
     background-image: url('data:image/svg+xml;utf8,<svg xmlns=%22http://www.w3.org/2000/svg%22 width=%22120%22 height=%22120%22 viewBox=%220 0 120 120%22><filter id=%22n%22><feTurbulence type=%22fractalNoise%22 baseFrequency=%220.9%22 numOctaves=%224%22 stitchTiles=%22stitch%22/></filter><rect width=%22120%22 height=%22120%22 filter=%22url(%23n)%22 opacity=%220.35%22/></svg>');
     background-size: 120px 120px;
}

.container {
     width: min(1280px, calc(100% - 3rem));
     margin: 0 auto;
}

.section {
     padding: 4rem 0;
}

.hero {
     padding: 1rem 0 4rem;
}

.hero-grid {
     display: grid;
     grid-template-columns: 1fr;
     gap: 2rem;
     align-items: start;
}

.hero-copy h1 {
     margin: 0;
     font-family: ui-monospace, Menlo, Consolas, monospace;
     font-weight: 800;
     line-height: 1;
     letter-spacing: 0;
     font-size: clamp(2.45rem, 7vw, 4rem);
}

.mobile-break {
     display: none;
}

.logo-mark {
     width: auto;
     height: 2.5rem;
     margin-bottom: 1.5rem;
}

.accent-bar {
     width: 6rem;
     height: 0.25rem;
     background: var(--accent);
     margin-top: 1rem;
}

.hero-copy p {
     margin: 1.5rem 0 0;
     max-width: 44rem;
     font-size: 1.05rem;
     color: var(--text);
}

.cta-row {
     display: flex;
     flex-wrap: wrap;
     gap: 1rem;
     margin-top: 2rem;
}

.btn {
     display: inline-flex;
     align-items: center;
     justify-content: center;
     border: 2px solid transparent;
     padding: 0.75rem 1.25rem;
     font-family: ui-monospace, Menlo, Consolas, monospace;
     font-size: 0.875rem;
     text-transform: uppercase;
     letter-spacing: 0.08em;
     text-decoration: none;
     transition: all 0.2s ease;
}

.btn-primary {
     border-color: var(--accent);
     color: var(--text);
}

.btn-primary:hover {
     background: var(--accent);
     color: #000;
}

.btn-secondary {
     border-color: var(--border-strong);
     color: var(--text);
}

.btn-secondary:hover {
     background: #fff;
     color: #000;
}

.hero-panel {
     border: 2px solid var(--border-strong);
     padding: 1.5rem;
}

.hero-panel h2 {
     margin: 0 0 1.5rem;
     font-family: ui-monospace, Menlo, Consolas, monospace;
     text-transform: uppercase;
     letter-spacing: 0.05em;
     text-align: left;
     color: var(--accent);
     font-size: 1rem;
}

.bullet-list {
     margin: 0;
     padding: 0;
     list-style: none;
     display: grid;
     gap: 1rem;
     font-size: 0.92rem;
}

.bullet-list li {
     display: flex;
     gap: 0.75rem;
     align-items: baseline;
}

.dot {
     width: 0.5rem;
     height: 0.5rem;
     background: var(--accent);
     flex: 0 0 auto;
}

.accent-rule {
     height: 2px;
     background: var(--accent);
     margin: 2rem 0;
}

.hero-panel p {
     margin: 0;
     color: var(--text-muted);
     font-size: 0.9rem;
}

.section-title {
     margin: 0 0 0.5rem;
     font-family: ui-monospace, Menlo, Consolas, monospace;
     font-size: clamp(1.85rem, 3vw, 2.35rem);
     line-height: 1.1;
}

.section-intro {
     margin: 0 0 2.5rem;
     color: var(--text-muted);
     max-width: 44rem;
}

.card-grid {
     display: grid;
     grid-template-columns: 1fr;
     gap: 1rem;
}

.card {
     border: 2px solid var(--border-soft);
     padding: 1.5rem;
     transition: border-color 0.2s ease;
}

.card:hover {
     border-color: var(--accent);
}

.card h3 {
     margin: 0 0 0.5rem;
     font-size: 1.25rem;
     line-height: 1.25;
}

.card p {
     margin: 0;
     color: var(--text-muted);
}

.portfolio-grid {
     display: grid;
     grid-template-columns: 1fr;
     gap: 1rem;
}

.portfolio-card {
     border: 2px solid var(--border-soft);
}

.portfolio-card img {
     width: 100%;
     aspect-ratio: 4 / 3;
     object-fit: cover;
     display: block;
}

.portfolio-content {
     padding: 1.5rem;
     border-top: 2px solid rgba(255, 255, 255, 0.2);
}

.portfolio-content h3 {
     margin: 0 0 0.5rem;
     font-size: 1.25rem;
}

.portfolio-content p {
     margin: 0;
     color: var(--text-muted);
}

.testimonials-wrap {
     position: relative;
     display: flex;
     align-items: center;
     gap: 0.6rem;
}

.testimonials-track {
     display: grid;
     grid-auto-flow: column;
     grid-auto-columns: calc(100% - 1px);
     gap: 1rem;
     overflow-x: auto;
     scroll-snap-type: x mandatory;
     scroll-behavior: smooth;
     scrollbar-width: none;
}

.testimonials-track::-webkit-scrollbar {
     display: none;
}

.testimonial-card {
     display: flex;
     flex-direction: column;
     justify-content: space-between;
     scroll-snap-align: start;
     border: 2px solid var(--border-soft);
     padding: 1.5rem;
     margin: 0;
     height: 100%;
}

.testimonial-card p {
     margin: 0 0 0.75rem;
}

.testimonial-card footer {
     font-family: ui-monospace, Menlo, Consolas, monospace;
     text-transform: uppercase;
     font-size: 0.75rem;
     color: rgba(255, 255, 255, 0.7);
}

.testimonials-nav {
     border: 2px solid var(--border-soft);
     background: transparent;
     color: var(--text);
     width: 2.5rem;
     height: 2.5rem;
     font-size: 1.3rem;
     line-height: 1;
     cursor: pointer;
}

.testimonials-nav:hover {
     border-color: var(--accent);
}

.testimonials-dots {
     margin-top: 1rem;
     display: flex;
     justify-content: center;
     gap: 0.45rem;
}

.testimonials-dots button {
     width: 0.6rem;
     height: 0.6rem;
     border-radius: 0;
     border: 0;
     background: rgba(255, 255, 255, 0.35);
     cursor: pointer;
     padding: 0;
}

.testimonials-dots button.is-active {
     background: var(--accent);
}

.contact-subtitle {
     margin: 0 0 2rem;
     font-family: ui-monospace, Menlo, Consolas, monospace;
     font-size: clamp(1.1rem, 2vw, 1.25rem);
     color: var(--text-muted);
}

.contact-panel {
     border: 2px solid var(--border-soft);
     padding: 1.5rem;
     max-width: 44rem;
}

.contact-panel > p {
     margin: 0 0 1rem;
     color: var(--text-muted);
}

.contact-panel .privacy-copy {
     margin-bottom: 2rem;
     color: var(--text-subtle);
     font-size: 0.9rem;
}

.contact-form {
     margin-top: 1rem;
}

.contact-form input,
.contact-form textarea {
     width: 100%;
     border: 1px solid rgba(255, 255, 255, 0.2);
     border-radius: 0;
     background: rgba(255, 255, 255, 0.05);
     color: var(--text);
     font-size: 1rem;
     padding: 0.75rem 0.9rem;
     margin-bottom: 0.75rem;
     font-family: inherit;
}

.contact-form input {
     min-height: 3rem;
}

.contact-form textarea {
     min-height: 12rem;
     resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
     color: rgba(255, 255, 255, 0.6);
}

.contact-form input:focus,
.contact-form textarea:focus {
     outline: none;
     border-color: var(--accent);
     box-shadow: 0 0 0 1px var(--accent);
}

.form-submit {
     width: 100%;
     border: 2px solid var(--accent);
     border-radius: 0;
     background: transparent;
     color: var(--text);
     min-height: 3rem;
     font-family: ui-monospace, Menlo, Consolas, monospace;
     text-transform: uppercase;
     letter-spacing: 0.08em;
     font-weight: 700;
     cursor: pointer;
     transition: all 0.2s ease;
}

.form-submit:hover {
     background: var(--accent);
     color: #000;
}

.form-submit:disabled,
.form-submit.is-loading {
     opacity: 0.7;
     cursor: not-allowed;
}

.form-feedback {
     margin: 0 0 0.75rem;
     padding: 0.8rem 0.9rem;
     border: 1px solid transparent;
     font-size: 0.95rem;
}

.form-feedback.is-error {
     border-color: rgba(255, 80, 80, 0.65);
     color: rgba(255, 180, 180, 1);
     background: rgba(120, 0, 0, 0.2);
}

.form-success-panel {
     margin-top: 1rem;
     border: 2px solid var(--accent);
     padding: 1.1rem 1rem;
     background: rgba(0, 255, 255, 0.08);
}

.form-success-panel p {
     margin: 0;
     color: var(--text);
}

.hidden-field {
     position: absolute;
     left: -9999px;
     margin: 0;
}

.sr-only {
     position: absolute;
     width: 1px;
     height: 1px;
     padding: 0;
     margin: -1px;
     overflow: hidden;
     clip: rect(0, 0, 0, 0);
     white-space: nowrap;
     border: 0;
}

.site-footer {
     text-align: center;
     color: rgba(255, 255, 255, 0.7);
     padding: 1rem 1rem 2.5rem;
     background: #111827;
     font-size: 0.9rem;
}

.site-footer p {
     margin: 0;
}

.fixed-cta {
     position: fixed;
     right: 0;
     bottom: 0.5rem;
     z-index: 50;
     display: inline-flex;
     align-items: center;
     border: 2px solid var(--accent);
     padding: 0.75rem 1.25rem;
     background: #000;
     color: #fff;
     text-decoration: none;
     text-transform: uppercase;
     font-family: ui-monospace, Menlo, Consolas, monospace;
     letter-spacing: 0.08em;
     font-size: 0.875rem;
     transform: scale(0.82);
     transform-origin: right bottom;
     transition: all 0.2s ease;
}

.fixed-cta:hover {
     background: var(--accent);
     color: #000;
}

.lazy-section {
     opacity: 0;
     transition: opacity 0.7s ease;
}

.lazy-section.is-visible {
     opacity: 1;
}

@media (min-width: 768px) {
     .hero {
          padding-top: 5rem;
     }

     .hero-grid {
          grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr);
          gap: 1.5rem;
     }

     .mobile-break {
          display: block;
     }

     .hero-panel {
          margin-top: -1.5rem;
          padding: 2rem;
     }

     .hero-panel h2 {
          text-align: center;
     }

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

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

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

     .section {
          padding: 5rem 0;
     }

     .testimonials-track {
          grid-auto-columns: calc((100% - 1rem) / 2);
     }

     .fixed-cta {
          right: 1.5rem;
          bottom: 1.5rem;
          transform: none;
     }
}

@media (min-width: 1024px) {
     .testimonials-track {
          grid-auto-columns: calc((100% - 2rem) / 3);
          gap: 1rem;
     }
}

@media (max-width: 767px) {
     .testimonials-nav {
          display: none;
     }

     .container {
          width: min(1280px, calc(100% - 2rem));
     }
}
