:root {
  --paper: #f4f3ef;
  --white: #fbfbf8;
  --ink: #172124;
  --subtle: #536165;
  --line: #d8dcda;
  --teal: #087f82;
  --dark: #182629;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; }

.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  background: white;
  padding: 12px;
  z-index: 100;
}
.skip-link:focus { top: 12px; }

/* HEADER */
.site-header {
  position: relative;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1500px;
  padding: 0 5%;
  margin: auto;
  min-height: 88px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.brand {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  line-height: 1;
}

.brand-main {
  font-size: 30px;
  font-weight: 750;
  letter-spacing: .13em;
}

.brand-main span { color: var(--teal); }
.brand-sub {
  font-size: 9px;
  letter-spacing: .37em;
  margin-top: 5px;
  font-weight: 700;
}

.header-note {
  font-size: 10px;
  color: var(--subtle);
  letter-spacing: .13em;
  margin-right: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 31px;
}

.nav a {
  text-decoration: none;
  font-size: 13px;
  font-weight: 550;
}

.nav a:hover { color: var(--teal); }

.nav .nav-cta {
  border: 1px solid var(--ink);
  padding: 11px 18px;
}

.menu-toggle { display: none; }

/* DISTINCTIVE OFFSET HERO */
.hero {
  max-width: 1500px;
  margin: auto;
  display: grid;
  grid-template-columns: 88px minmax(0,1fr);
}

.hero-rail {
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 52px 0;
  color: var(--subtle);
  font-size: 10px;
  letter-spacing: .12em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.hero-main {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  min-height: 650px;
}

.hero-copy {
  padding: clamp(65px,8vw,130px) 6% 85px 9%;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
}

.eyebrow, .section-label, .feature-top,
.feature-bottom, .intro-strip > span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
}

.eyebrow { color: var(--teal); }

.hero h1 {
  font-size: clamp(48px,5.7vw,86px);
  line-height: 1.05;
  letter-spacing: -.065em;
  font-weight: 650;
  margin: 30px 0;
}

.hero h1 em {
  color: var(--teal);
  font-style: normal;
}

.hero-intro {
  font-size: 17px;
  max-width: 480px;
  color: var(--subtle);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  align-items: center;
  margin-top: 28px;
}

.primary-link, .contact-button {
  text-decoration: none;
  background: var(--ink);
  color: white;
  padding: 14px 20px;
  font-size: 13px;
  font-weight: 600;
}

.primary-link span, .contact-button span {
  margin-left: 20px;
}

.primary-link:hover { background: var(--teal); }
.text-link { font-size: 13px; text-underline-offset: 5px; }

/* ABSTRACT INTERFACE PRESENTATION */
.hero-feature {
  background: var(--dark);
  min-width: 0;
  color: #eff5f4;
  padding: clamp(25px,4vw,56px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
}

.feature-top, .feature-bottom {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  color: #a7c2c1;
}

.product-preview {
  display: grid;
  grid-template-columns: 55px 1fr;
  background: #f3f5f3;
  color: #1a292b;
  min-height: 350px;
  box-shadow: 12px 18px 0 #0d191b;
  transform: rotate(-2deg);
  overflow: hidden;
}

.preview-sidebar {
  background: #152729;
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 18px 10px;
  gap: 24px;
}

.preview-sidebar strong { color: #7ed1cb; font-size: 22px; }
.preview-sidebar span {
  width: 18px;
  height: 5px;
  border-radius: 3px;
  background: #40585a;
}
.preview-sidebar .preview-active { background: #62c7c3; }

.preview-body {
  min-width: 0;
  padding: 23px;
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.preview-header > div:first-child { display: flex; flex-direction: column; }
.preview-header small, .preview-stats small {
  color: #7b8c8b;
  font-size: 9px;
  letter-spacing: .08em;
}
.preview-header strong { font-size: 16px; }

.preview-avatar {
  background: #d5e5e1;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
}

.preview-stats {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 8px;
  margin-top: 28px;
}
.preview-stats > div {
  background: white;
  border: 1px solid #e1e8e6;
  padding: 12px 9px;
  display: flex;
  flex-direction: column;
}
.preview-stats strong { font-size: 24px; }

.preview-panel {
  background: white;
  border: 1px solid #e1e8e6;
  margin-top: 12px;
  padding: 14px;
}
.preview-panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 10px;
}
.preview-panel-heading span { font-size: 8px; color: #8b9b99; }

.preview-bars {
  margin-top: 16px;
  height: 70px;
  display: flex;
  gap: 8px;
  align-items: end;
}
.preview-bars i { flex: 1; background: #a6d6d0; height: 48%; }
.preview-bars i:nth-child(2) { height: 73%; }
.preview-bars i:nth-child(3) { height: 41%; }
.preview-bars i:nth-child(4) { height: 90%; }
.preview-bars i:nth-child(5) { height: 65%; }
.preview-bars i:nth-child(6) { height: 82%; }
.preview-bars i:nth-child(7) { height: 58%; }
.preview-bars i:nth-child(8) { height: 100%; background: #2a9997; }

.preview-table {
  margin-top: 12px;
  font-size: 10px;
}
.preview-table > div {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #e1e8e6;
  padding: 7px 0;
  gap: 8px;
}
.preview-table b { color: var(--teal); font-size: 9px; }

/* INTRO */
.intro-strip {
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: center;
  gap: 40px;
  padding: 43px max(5%, calc((100% - 1300px)/2));
  background: #e5ebe8;
}
.intro-strip span { color: var(--teal); }
.intro-strip p { margin: 0; font-size: clamp(19px,2.5vw,29px); line-height: 1.4; }

/* EDITORIAL SECTIONS */
.section {
  max-width: 1500px;
  margin: auto;
  padding: 100px 5%;
  display: grid;
  grid-template-columns: 24% 1fr;
  gap: 30px;
}
.section-label {
  color: var(--teal);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.section-label span:last-child { color: #7c898a; font-size: 10px; }

.section h2 {
  font-size: clamp(36px,4.5vw,65px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.055em;
  margin: 0 0 24px;
}
.section-intro {
  color: var(--subtle);
  max-width: 650px;
  font-size: 17px;
  margin-bottom: 48px;
}

.service-list { border-top: 1px solid #b8c2c0; }
.service-row {
  border-bottom: 1px solid #b8c2c0;
  padding: 27px 0;
  display: grid;
  grid-template-columns: 1fr 35px;
  gap: 20px;
}

.service-row h3 { margin: 0 0 8px; font-size: 24px; font-weight: 600; }
.service-row p { color: var(--subtle); margin: 0; font-size: 15px; }
.service-arrow { font-size: 23px; color: var(--teal); }

/* WORK */
.work { background: var(--white); max-width: none; }
.work .section-body { max-width: 1030px; }
.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.work-art {
  min-height: 290px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.work-art > span { font-size: 10px; letter-spacing: .13em; }
.work-art > strong {
  font-size: clamp(30px,3.3vw,45px);
  line-height: 1.1;
  letter-spacing: -.04em;
}
.art-one { background: #173235; color: white; }
.art-two { background: #d9e5df; color: var(--ink); }
.art-lines { display: flex; gap: 8px; }
.art-lines i { background: #4d9d9b; height: 10px; flex: 1; }
.art-lines i:nth-child(2) { flex: 2; background: #8abfbb; }
.art-window { background: white; padding: 15px; display: flex; gap: 8px; }
.art-window div { height: 12px; background: #aacbc5; flex: 1; }
.art-window div:nth-child(2) { flex: 2; background: #386e6a; }
.work-caption h3 { margin: 19px 0 4px; font-size: 19px; }
.work-caption p { color: var(--subtle); margin-top: 0; font-size: 14px; }
.work-disclaimer { font-size: 12px; color: #687676; }

/* ABOUT */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}
.about-layout p { color: var(--subtle); font-size: 17px; margin-top: 0; }

/* CONTACT */
.contact {
  background: #152528;
  color: white;
  padding: 100px 5%;
}
.contact-inner { max-width: 1000px; margin: auto; }
.contact-inner > span { color: #76b9b5; font-size: 11px; letter-spacing: .13em; }
.contact h2 {
  font-size: clamp(50px,8vw,110px);
  line-height: 1;
  letter-spacing: -.065em;
  font-weight: 600;
  margin: 36px 0 20px;
}
.contact p { color: #afc3c0; font-size: 18px; }
.contact-button {
  display: inline-flex;
  margin-top: 25px;
  background: #d8e7e2;
  color: #152528;
}
.contact-button:hover { background: white; }
.phone-link {
  display: block;
  margin-top: 24px;
  color: #b5cfcb;
  width: fit-content;
}
.site-footer {
  background: #0f1c1e;
  color: #c5d5d2;
  padding: 32px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
}
.site-footer a { color: #c5d5d2; }

/* TABLET & MOBILE */
@media (max-width: 1050px) {
  .header-note { display: none; }
  .nav { margin-left: auto; }
  .hero { grid-template-columns: 42px 1fr; }
  .hero-main { grid-template-columns: 1fr; }
  .hero-copy { padding: 75px 7%; }
  .hero-feature { min-height: 520px; }
  .product-preview { width: min(100%,560px); margin: auto; }
  .section { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 760px) {
  .header-inner { min-height: 76px; }
  .menu-toggle {
    display: flex;
    margin-left: auto;
    width: 44px;
    height: 44px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 10px;
    border: 1px solid var(--line);
    background: transparent;
    cursor: pointer;
  }
  .menu-toggle span { height: 2px; width: 100%; background: var(--ink); }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 15px 5% 22px;
    gap: 0;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px; }
  .hero { grid-template-columns: 1fr; }
  .hero-rail { display: none; }
  .hero-copy { padding: 65px 6%; }
  .hero h1 { font-size: clamp(43px,10vw,67px); }
  .hero-intro { font-size: 16px; }
  .hero-feature { padding: 28px 6%; min-height: 490px; }
  .product-preview { transform: none; grid-template-columns: 40px 1fr; }
  .preview-body { padding: 12px; }
  .preview-stats { gap: 4px; }
  .preview-stats > div { padding: 8px 5px; }
  .preview-stats strong { font-size: 19px; }
  .intro-strip { grid-template-columns: 1fr; gap: 14px; padding: 35px 6%; }
  .section { padding: 70px 6%; }
  .service-row { grid-template-columns: 1fr 20px; gap: 10px; }
  .service-row h3 { font-size: 20px; }
  .work-grid, .about-layout { grid-template-columns: 1fr; }
  .contact { padding: 75px 6%; }
  .site-footer { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 360px) {
  .preview-header strong { font-size: 12px; }
  .preview-stats small { font-size: 7px; }
  .preview-bars { gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* MOV SECTION ALIGNMENT FIX */

/* Use consistent section alignment */
.section {
    width: 100%;
    max-width: 1500px;
    margin-left: auto;
    margin-right: auto;
}

/* Align the portfolio with the other sections */
.work {
    position: relative;
    max-width: 1500px;
    margin-inline: auto;
    background: transparent;
    isolation: isolate;
}

/* Preserve the full-width light background */
.work::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    background: var(--white);
}

/* Keep portfolio content within its layout */
.work .section-body {
    width: 100%;
    max-width: none;
    min-width: 0;
}

@media (max-width: 760px) {
    .section {
        width: 100%;
    }

    .work .section-body {
        width: 100%;
        min-width: 0;
    }
}