/* East Data Systems - eastdata.tech
   Fonts are self-hosted (Barlow Condensed, IBM Plex Sans; SIL Open Font License). */

@font-face { font-family: "Barlow Condensed"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/barlow-condensed-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }

:root {
  --navy: #004c68;
  --navy-deep: #003a50;
  --sky: #74bacf;
  --sky-soft: #cfe8f0;
  --ink: #12303d;
  --muted: #476676;
  --mist: #f1f7fa;
  --line: #d6e5eb;
  --paper: #ffffff;

  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  --body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
h1, h2, h3, p, ul { margin: 0; }

.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--navy); color: #fff; padding: .6rem 1rem; border-radius: var(--radius);
}
.skip:focus { top: 1rem; }

:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--navy); color: #fff;
  font: 600 1rem/1 var(--body);
  padding: .95rem 1.4rem;
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--navy-deep); border-color: var(--navy-deep); }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--mist); color: var(--navy-deep); border-color: var(--navy-deep); }
.btn-small { padding: .6rem 1rem; font-size: .95rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: .9rem; }
.brand img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .98rem; }
.nav a:not(.btn):hover { color: var(--navy); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; text-decoration-color: var(--sky); }

/* Hero */
.hero { padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(2.5rem, 6vw, 4.5rem); }
.hero h1 {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(2.75rem, 8.3vw, 6.4rem);
  line-height: .93;
  letter-spacing: -.005em;
  color: var(--navy);
}
.hero h1 span { display: block; }

.trend { display: block; width: 100%; height: auto; margin-block: clamp(1.25rem, 3vw, 2.25rem); overflow: visible; }
.trend path {
  fill: none; stroke: var(--sky); stroke-width: 9;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 0;
  animation: draw 1.7s cubic-bezier(.3, .6, .2, 1) .25s both;
}
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

.hero-foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.75rem 3rem; }
.lead { max-width: 36rem; font-size: clamp(1.15rem, 2vw, 1.35rem); line-height: 1.5; color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Pillars */
.pillars { background: var(--mist); border-block: 1px solid var(--line); }
.pillar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.pillar { padding: 1.6rem 1.5rem 1.7rem; border-left: 3px solid var(--sky); margin-block: 1.75rem; }
.pillar + .pillar { margin-left: 0; }
.pillar h2 { font: 600 1.7rem/1.05 var(--display); color: var(--navy); }
.pillar p { margin-top: .4rem; color: var(--muted); font-size: .98rem; line-height: 1.45; }

/* Sections */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-head { max-width: 40rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
h2 { font-family: var(--display); font-weight: 600; font-size: clamp(2.1rem, 4.8vw, 3.4rem); line-height: 1.02; color: var(--navy); }
.section-head p { margin-top: .9rem; color: var(--muted); font-size: 1.15rem; }

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 2.5rem; }
.service { padding-block: 1.5rem 2.1rem; border-top: 1px solid var(--line); }
.service h3 { font: 600 1.75rem/1.1 var(--display); color: var(--ink); }
.service p { margin-top: .55rem; color: var(--muted); max-width: 30ch; }

/* Ways to work */
.ways { background: var(--navy); color: #fff; padding-block: clamp(3.25rem, 7vw, 5.25rem); }
.ways h2 { color: #fff; }
.ways-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; margin-top: clamp(2rem, 4vw, 3rem); }
.way { border-top: 3px solid var(--sky); padding-top: 1.25rem; }
.way h3 { font: 600 1.85rem/1.1 var(--display); color: #fff; }
.way p { margin-top: .6rem; color: var(--sky-soft); max-width: 34ch; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.about-copy p { max-width: 38rem; }
.about-copy p + p { margin-top: 1rem; }
.about-copy h3 { margin-top: 2rem; font: 600 1.5rem/1.1 var(--display); color: var(--ink); }
.tools { list-style: none; padding: 0; margin-top: .9rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.tools li { background: var(--mist); border: 1px solid var(--line); border-radius: 999px; padding: .3rem .85rem; font-size: .95rem; }

/* Contact */
.contact { background: var(--mist); border-top: 1px solid var(--line); padding-block: clamp(3.5rem, 8vw, 6rem); }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact-grid > div > p { margin-top: 1rem; max-width: 28rem; color: var(--muted); font-size: 1.1rem; }
.contact-grid .direct { color: var(--ink); font-size: 1rem; }
.contact-grid .direct a { font-weight: 600; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.25rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field.wide, .form-foot.wide { grid-column: 1 / -1; }
label { font-weight: 600; font-size: .95rem; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: var(--paper); border: 1.5px solid #b7cdd6; border-radius: var(--radius);
  padding: .7rem .8rem;
}
textarea { resize: vertical; min-height: 8rem; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--sky); outline-offset: 1px; border-color: var(--navy); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #b3261e; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.status { font-size: .95rem; color: var(--muted); max-width: 32rem; }
.status.error { color: #b3261e; }

/* Footer */
.site-footer { padding-block: 1.75rem; font-size: .95rem; color: var(--muted); border-top: 1px solid var(--line); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }
.site-footer strong { color: var(--ink); }

/* Responsive */
@media (max-width: 960px) {
  .pillar-grid { grid-template-columns: 1fr 1fr; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .ways-grid { grid-template-columns: 1fr; gap: 2rem; }
  .way p { max-width: 46ch; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .nav a:not(.btn) { display: none; }
  .brand img { height: 40px; }
}
@media (max-width: 600px) {
  .pillar-grid { grid-template-columns: 1fr; }
  .pillar { margin-block: .6rem; padding-block: .9rem; }
  .service-grid { grid-template-columns: 1fr; }
  .service p { max-width: none; }
  .form { grid-template-columns: 1fr; }
  .actions .btn { flex: 1 1 auto; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .trend path { animation: none; }
  .btn { transition: none; }
}
