/* NC Digy — brand tokens recovered from the original ncdigy.com (logo orange, hero navy, cyan band, Lato). */

@font-face { font-family: "Lato"; font-style: normal; font-weight: 300; font-display: swap; src: url("assets/fonts/lato-300.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: italic; font-weight: 300; font-display: swap; src: url("assets/fonts/lato-300-italic.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/lato-400.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/lato-700.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 900; font-display: swap; src: url("assets/fonts/lato-900.woff2") format("woff2"); }

:root {
  --navy: #032d60;        /* dark sections, taken from the original hero */
  --ink: #041c44;         /* headings and body emphasis */
  --orange: #e95526;      /* logo orange: buttons, rings, graphics */
  --orange-ink: #b8400f;  /* orange that passes AA as small text on light backgrounds */
  --cyan: #00ccff;        /* original "Services" band */
  --slate: #455d7a;       /* supporting copy */
  --mist: #eef4f9;        /* quiet panels */
  --rule: #d5e0ea;
  --rule-strong: #a9bdd0;
  --white: #ffffff;
  --gutter: max(6%, calc((100% - 1240px) / 2));
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Lato", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--slate);
  background: var(--white);
  overflow-wrap: break-word;
}

img, svg { max-width: 100%; display: block; }

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

h1, h2, h3 { color: var(--ink); font-weight: 900; }

h1 {
  font-size: clamp(44px, 5vw, 72px); /* sized so each sentence holds one line in the hero column */
  line-height: 1.04;
  letter-spacing: -0.03em;
}
h1 span { display: block; }

h2 {
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

h2, .case-hero h1 { text-wrap: balance; }

h3 { font-size: 24px; line-height: 1.25; letter-spacing: -0.01em; }

a { color: inherit; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
.dark :focus-visible, .site-footer :focus-visible { outline-color: var(--cyan); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 20;
  padding: 10px 16px; background: var(--ink); color: var(--white); border-radius: 6px;
}
.skip-link:focus { top: 12px; }

section[id], main[id] { scroll-margin-top: 95px; }

.section { padding: 90px var(--gutter); }

.eyebrow {
  font-size: 12px; font-weight: 700; line-height: 1.5;
  text-transform: uppercase; letter-spacing: 2px;
  color: var(--orange-ink);
  margin-bottom: 18px;
}

.lead { font-size: 18px; line-height: 1.7; }

/* The original site's light-italic voice, kept for statements */
.statement {
  font-weight: 300; font-style: italic;
  font-size: clamp(24px, 2.6vw, 34px); line-height: 1.3;
  color: var(--ink);
}

.arrow { font-family: Arial, Helvetica, sans-serif; display: inline-block; margin-left: 6px; }

.btn {
  display: inline-block;
  padding: 16px 25px; border-radius: 40px;
  font-size: 14px; font-weight: 700; line-height: 1.2;
  text-decoration: none;
  border: 2px solid transparent;
}
.btn-primary { background: var(--orange); color: var(--ink); }
.btn-primary:hover { background: var(--ink); color: var(--white); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--white); color: var(--ink); }
.dark .btn-primary:hover { background: var(--white); color: var(--ink); }

.text-link {
  font-size: 14px; font-weight: 700; color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--orange);
  text-decoration-thickness: 2px; text-underline-offset: 6px;
}
.text-link:hover { color: var(--orange-ink); }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px 32px;
  padding: 14px var(--gutter);
  background: var(--white);
  border-bottom: 1px solid var(--rule);
}
.brand { flex: none; display: block; border-radius: 50%; }
.brand img { width: 60px; height: 60px; }

.site-nav ul { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 26px; }
.site-nav a {
  font-size: 14px; font-weight: 700; color: var(--ink); text-decoration: none;
  display: inline-block; padding: 8px 0;
}
.site-nav a:hover { color: var(--orange-ink); }
.site-nav a.nav-cta {
  padding: 11px 20px; border-radius: 40px; background: var(--orange); color: var(--ink);
}
.site-nav a.nav-cta:hover { background: var(--ink); color: var(--white); }

/* ---------- Hero ---------- */

.hero {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 5%; align-items: center;
  min-height: 690px;
  padding: 70px var(--gutter);
}
.hero-copy .lead { max-width: 34em; margin-top: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero-art {
  position: relative; height: 490px; border-radius: 8px; overflow: hidden;
  background: var(--navy) url("assets/hero-network.jpg") 88% center / cover no-repeat;
  display: flex; align-items: flex-end;
}
.hero-art::after { /* the logo's open ring */
  content: ""; position: absolute; right: -70px; top: -70px;
  width: 220px; height: 220px; border-radius: 50%;
  border: 14px solid var(--orange);
}
.hero-art-text {
  position: relative; width: 100%;
  padding: 90px 32px 30px;
  background: linear-gradient(to top, rgba(4, 28, 68, 0.92), rgba(4, 28, 68, 0));
  color: var(--white);
}
.hero-art-text .eyebrow { color: var(--cyan); margin-bottom: 8px; }
.hero-art-text .statement { color: var(--white); }

/* ---------- Credibility strip ---------- */

.cred {
  display: grid; grid-template-columns: repeat(3, 1fr);
  padding: 0 var(--gutter);
  background: var(--navy); color: var(--white);
}
.cred li {
  padding: 30px 30px 30px 0;
  font-size: 18px; font-weight: 700; line-height: 1.4;
}
.cred li + li { padding-left: 30px; border-left: 1px solid rgba(255, 255, 255, 0.22); }

/* ---------- Section heading (two columns) ---------- */

.section-head {
  display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: end;
  margin-bottom: 60px;
}

/* ---------- Expertise ---------- */

.disciplines { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.disciplines li { padding-top: 26px; border-top: 3px solid var(--ink); }
.disciplines li:nth-child(2) { border-top-color: var(--orange); }
.disciplines li:nth-child(3) { border-top-color: var(--cyan); }
.disciplines h3 { font-size: 28px; margin-bottom: 14px; }
.disciplines p:not(.eyebrow) { margin-bottom: 22px; }

/* ---------- Dark sections ---------- */

.dark { background: var(--navy); color: #c9d8ea; }
.dark h2, .dark h3 { color: var(--white); }
.dark .eyebrow { color: var(--cyan); }
.dark .statement { color: var(--white); }

/* ---------- Commerce ---------- */

.commerce { display: grid; grid-template-columns: 1.15fr 1fr; gap: 70px; align-items: start; }
.commerce h2 { margin-bottom: 26px; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0; }
.tags li {
  padding: 7px 16px; border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 40px;
  font-size: 14px; font-weight: 700; color: var(--white);
}
.steps { margin: 36px 0 40px; }
.steps li { padding: 20px 0; border-top: 1px solid rgba(255, 255, 255, 0.22); }
.steps h3 { font-size: 20px; margin-bottom: 4px; }

.chat-figure { justify-self: end; align-self: center; width: 100%; max-width: 440px; }
.chat {
  padding: 30px; border-radius: 20px;
  background: var(--white); color: var(--ink);
}
.chat-id { display: flex; align-items: center; gap: 12px; padding-bottom: 18px; margin-bottom: 20px; border-bottom: 1px solid var(--rule); }
.chat-id::before {
  content: ""; flex: none; width: 34px; height: 34px; border-radius: 50%;
  border: 5px solid var(--orange);
}
.chat-id strong { display: block; font-size: 15px; line-height: 1.3; }
.chat-id span { display: block; font-size: 13px; line-height: 1.3; color: var(--slate); }
.bubbles { display: grid; gap: 12px; }
.bubbles li { max-width: 88%; padding: 12px 16px; font-size: 15px; line-height: 1.5; border-radius: 16px; }
.bubbles .from-shopper { justify-self: end; background: var(--ink); color: var(--white); border-bottom-right-radius: 4px; }
.bubbles .from-concierge { justify-self: start; background: var(--mist); border-bottom-left-radius: 4px; }
.chat-figure figcaption { margin-top: 16px; font-size: 13px; line-height: 1.55; color: #c9d8ea; }

/* ---------- Destinations ---------- */

.destinations { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.destinations h2 { margin-bottom: 14px; }
.destinations .statement { margin-bottom: 26px; }
.destinations p + p { margin-top: 18px; }
.destinations .btn { margin-top: 34px; }

.skyline { border-radius: 8px; overflow: hidden; background: var(--navy); }
.skyline svg { width: 100%; height: 400px; }
.pillars { margin-top: 26px; }
.pillars div { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 14px 0; border-top: 1px solid var(--rule); }
.pillars dt { font-weight: 900; color: var(--ink); }
.pillars dd { font-size: 15px; line-height: 1.6; }

/* ---------- About ---------- */

.panel { background: var(--mist); }
.about { display: grid; grid-template-columns: 1fr 1.25fr; gap: 70px; align-items: start; }
.since {
  font-size: clamp(72px, 10vw, 150px); font-weight: 900; line-height: 0.95; letter-spacing: -0.04em;
  color: var(--orange); margin-top: 30px; white-space: nowrap;
}
.since .arrow { font-family: Arial, Helvetica, sans-serif; font-weight: 400; margin-left: 0; color: var(--ink); }
.about-statement { font-size: 20px; font-weight: 700; line-height: 1.45; color: var(--ink); margin-top: 20px; }
.about-body h2 { margin-bottom: 26px; }
.about-body p + p { margin-top: 18px; }
.founders { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--rule-strong); font-weight: 700; color: var(--ink); }

/* ---------- Clients ---------- */

.client-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.client-cols > div { padding-top: 26px; border-top: 1px solid var(--rule-strong); }
.client-cols h3 { margin-bottom: 16px; }
.client-cols li { padding: 11px 0; border-top: 1px solid var(--rule); color: var(--ink); line-height: 1.45; }

.logo-wall { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px 24px; align-items: center; margin-top: 60px; padding-top: 40px; border-top: 1px solid var(--rule-strong); }
.logo-wall img { width: 100%; max-width: 120px; height: auto; margin: 0 auto; }

.cases { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 70px; }
.cases article { padding: 36px; border-radius: 8px; background: var(--mist); }
.cases h3 { font-size: 28px; margin-bottom: 12px; }
.cases p:not(.eyebrow) { margin-bottom: 22px; }
.fine-print { margin-top: 26px; font-size: 14px; }

/* ---------- Team ---------- */

.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 46px 30px; }
.team li { display: grid; grid-template-columns: 84px 1fr; gap: 20px; align-items: start; }
.portrait { display: block; width: 84px; height: 84px; padding: 3px; border-radius: 50%; border: 3px solid var(--orange); }
.team img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; filter: grayscale(1); }
.team h3 { font-size: 20px; }
.team .role { font-size: 14px; font-weight: 700; line-height: 1.45; color: var(--orange-ink); margin: 4px 0 8px; }
.team .focus { font-size: 15px; line-height: 1.6; }

/* ---------- Contact ---------- */

.contact {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 34px 60px;
  background: var(--cyan); color: var(--ink);
}
.contact .eyebrow { color: var(--ink); }
.contact h2 { max-width: 14em; margin-bottom: 14px; }
.contact > div { flex: 1 1 480px; }

.contact > .contact-action { flex: 0 1 440px; display: grid; justify-items: end; transition: flex-basis 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
.contact-action > * { grid-area: 1 / 1; }
.contact-trigger { align-self: center; transition: opacity 0.25s ease, transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1); }
.contact-form {
  width: 100%; display: grid; grid-template-rows: 0fr;
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: grid-template-rows 0.55s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.35s ease 0.15s, transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s 0.55s;
}
.contact-form-inner { overflow: hidden; min-height: 0; padding: 0 4px; }
.is-open .contact-trigger { opacity: 0; transform: scale(0.9); pointer-events: none; }
.is-open .contact-form { grid-template-rows: 1fr; opacity: 1; visibility: visible; transform: none; transition-delay: 0s, 0.15s, 0s, 0s; }

.field { display: block; margin-bottom: 22px; }
.field span { display: block; font-size: 13px; font-weight: 700; color: var(--ink); }
.field input, .field textarea {
  display: block; width: 100%; padding: 6px 0 10px;
  font: inherit; font-size: 18px; line-height: 1.5; color: var(--ink);
  background: transparent; border: 0; border-bottom: 2px solid rgba(4, 28, 68, 0.45); border-radius: 0;
  transition: border-color 0.2s ease;
}
.field textarea { resize: vertical; min-height: 88px; }
.field input:hover, .field textarea:hover { border-bottom-color: var(--ink); }
.field input:focus-visible, .field textarea:focus-visible { outline: 0; border-bottom-color: var(--ink); box-shadow: 0 2px 0 var(--ink); }
.field-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 6px 0 4px; }
.contact-form-foot .btn { cursor: pointer; font-family: inherit; }
.contact-form-foot .btn:disabled { opacity: 0.6; cursor: default; }
.contact-status { flex: 1 1 200px; font-size: 14px; line-height: 1.5; color: var(--ink); }
.contact-done {
  align-self: center; justify-self: stretch;
  font-weight: 300; font-style: italic; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.3; color: var(--ink);
  animation: contact-done-in 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.contact-done:focus { outline: 0; }
.is-sent .contact-form { opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0s 0.25s; }
@keyframes contact-done-in { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Footer ---------- */

.site-footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px;
  padding: 40px var(--gutter);
  background: var(--ink); color: #c9d8ea; font-size: 15px;
}
.footer-brand { display: flex; align-items: center; gap: 18px; }
.footer-brand img { width: 56px; height: 56px; flex: none; padding: 4px; background: var(--white); border-radius: 50%; }
.footer-brand strong { display: block; color: var(--white); font-size: 20px; font-weight: 900; line-height: 1.3; }
.site-footer a { color: var(--white); font-weight: 700; }

/* ---------- Case-study pages ---------- */

.case-hero { padding: 80px var(--gutter) 70px; }
.case-hero h1 { font-size: clamp(38px, 4.6vw, 64px); letter-spacing: -0.025em; max-width: 16em; }
.case-body { display: grid; gap: 0; padding-top: 30px; }
.case-body section {
  display: grid; grid-template-columns: 220px minmax(0, 46em); gap: 20px 50px;
  padding: 34px 0; border-top: 1px solid var(--rule);
}
.case-body h2 { font-size: 24px; letter-spacing: -0.01em; }
.case-body p + p { margin-top: 16px; }
.case-body section.result { border-top: 3px solid var(--orange); }
.case-body section.result p { color: var(--ink); font-size: 19px; }
.case-more { padding-top: 70px; padding-bottom: 70px; }
.case-more h2 { font-size: 28px; margin-bottom: 20px; letter-spacing: -0.01em; }
.case-more ul { display: flex; flex-wrap: wrap; gap: 14px 34px; }

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .logo-wall { grid-template-columns: repeat(6, 1fr); }
  .team { grid-template-columns: repeat(2, 1fr); }
  .site-nav ul { gap: 4px 20px; }
}

@media (max-width: 800px) {
  body { font-size: 16px; }
  .section { padding: 60px 5%; }
  /* Seven wrapped links make a tall bar, so the header scrolls away on small screens */
  .site-header { position: static; flex-wrap: wrap; padding: 14px 5%; }
  .site-nav ul { justify-content: flex-start; gap: 2px 18px; }
  section[id], main[id] { scroll-margin-top: 16px; }

  h1 { font-size: clamp(34px, 9.6vw, 60px); }
  .hero { grid-template-columns: 1fr; gap: 40px; min-height: 0; padding: 50px 5% 60px; }
  .hero-art { height: 350px; }
  .cred { grid-template-columns: 1fr; padding: 10px 5%; }
  .cred li, .cred li + li { padding: 16px 0; border-left: 0; }
  .cred li + li { border-top: 1px solid rgba(255, 255, 255, 0.22); }

  .section-head { grid-template-columns: 1fr; gap: 22px; margin-bottom: 44px; }
  .disciplines, .client-cols, .commerce, .destinations, .about, .cases { grid-template-columns: 1fr; }
  .commerce, .destinations, .about { gap: 44px; }
  .chat-figure { justify-self: start; }
  .skyline svg { height: 320px; }
  .logo-wall { grid-template-columns: repeat(4, 1fr); gap: 6px 16px; margin-top: 44px; padding-top: 30px; }
  .contact > .contact-action { flex-basis: 100%; justify-items: start; }
  .cases { margin-top: 50px; }
  .cases article { padding: 28px; }
  .site-footer { padding: 36px 5%; }

  .case-hero { padding: 50px 5% 40px; }
  .case-body section { grid-template-columns: 1fr; gap: 10px; padding: 26px 0; }
}

@media (max-width: 600px) {
  .team { grid-template-columns: 1fr; }
  .pillars div { grid-template-columns: 1fr; gap: 2px; }
  .chat { padding: 22px; }
  .btn { padding: 15px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .contact-action, .contact-trigger, .contact-form, .contact-done { transition: none; animation: none; }
}
