:root {
  --bg: #ffffff;
  --text: #050505;
  --muted: #555555;
  --line: #050505;
  --soft-line: #d8d8d8;
  --accent: #e31b1b;
  --coral: #ff4a3d;
  --max: 1540px;
  --gutter: clamp(20px, 4vw, 64px);
  --hair: 1px solid var(--line);
  --font: "Inter", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 300;
  letter-spacing: 0;
  line-height: 1.35;
}

body.locked {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

::selection {
  background: var(--text);
  color: var(--bg);
}

.page {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.035) 1px, transparent 1px) 50% 0 / calc((100vw - (var(--gutter) * 2)) / 12) 100%,
    var(--bg);
}

.case-gateway-page {
  display: flex;
  flex-direction: column;
}

.case-gateway-page main {
  display: flex;
  flex: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 96px;
  padding: 22px var(--gutter);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: var(--hair);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: min(250px, 46vw);
  height: auto;
}

.site-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: clamp(22px, 3vw, 48px);
  font-size: 15px;
  font-weight: 350;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  content: "";
  background: var(--text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.site-nav a[aria-current="page"]::after {
  background: var(--accent);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border: var(--hair);
  border-radius: 0;
  background: var(--bg);
  color: var(--text);
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  display: block;
  width: 19px;
  height: 1px;
  background: var(--text);
  content: "";
}

.nav-toggle {
  flex-direction: column;
  gap: 6px;
}

.header-cta,
.button,
.outline-link,
.case-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 54px;
  padding: 0 28px;
  border: var(--hair);
  border-radius: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  font-weight: 350;
  text-align: center;
  white-space: nowrap;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.header-cta {
  min-width: 220px;
}

.button.primary,
.header-cta:hover,
.outline-link:hover,
.case-open:hover {
  background: var(--text);
  color: var(--bg);
}

.button.primary:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.button.secondary:hover {
  background: var(--text);
  color: var(--bg);
}

.button.light {
  background: var(--bg);
  color: var(--text);
  border-color: var(--bg);
}

.button.light:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

.button.light:hover .arrow {
  color: currentColor;
}

.arrow {
  color: var(--accent);
  font-size: 20px;
  line-height: 1;
}

.button.primary .arrow,
.header-cta:hover .arrow,
.outline-link:hover .arrow,
.case-open:hover .arrow {
  color: currentColor;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(72px, 9vw, 132px) var(--gutter);
  border-bottom: var(--hair);
}

.section:first-of-type {
  border-top: 0;
}

.home-directory {
  padding-top: clamp(34px, 4vw, 58px);
}

.home-directory .section-intro {
  padding-top: clamp(26px, 3vw, 42px);
}

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  align-items: center;
  min-height: calc(100vh - 96px - 132px);
  padding-top: 0;
  padding-bottom: 0;
}

.image-hero {
  background: url("assets/hero-madeira-ai.jpg") center / cover no-repeat;
}

.hero-copy {
  position: relative;
  z-index: 1;
  align-self: center;
  max-width: 780px;
  padding-top: clamp(62px, 7vw, 110px);
  padding-bottom: clamp(52px, 6vw, 86px);
}

.hero h1,
.page-title {
  max-width: 920px;
  margin: 0;
  font-size: clamp(70px, 8.7vw, 164px);
  font-weight: 200;
  line-height: 0.95;
}

.hero h1 span {
  display: block;
}

.hero-copy p {
  max-width: 660px;
  margin: clamp(28px, 4vw, 52px) 0 0;
  font-size: clamp(30px, 2.8vw, 50px);
  font-weight: 250;
  line-height: 1.16;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 46px;
}

.form-grid {
  display: grid;
  gap: 16px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field label {
  font-size: 14px;
  font-weight: 350;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border: 1px solid #3f3f3f;
  border-radius: 0;
  background: var(--bg);
  color: var(--text);
  outline: 0;
}

.form-field textarea {
  min-height: 118px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--accent);
}

.form-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.section-intro {
  display: grid;
  gap: 22px;
  margin-bottom: clamp(48px, 7vw, 86px);
  border-top: var(--hair);
  padding-top: 46px;
}

.kicker,
.section-intro .kicker {
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.section-intro h2 {
  margin: 0;
  font-size: clamp(58px, 6.8vw, 118px);
  font-weight: 200;
  line-height: 0.95;
}

.section-intro p {
  max-width: 830px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(20px, 1.6vw, 28px);
}

.listing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.62fr);
  align-items: end;
  gap: clamp(42px, 7vw, 104px);
}

.listing-hero .kicker {
  display: block;
  margin-bottom: 26px;
}

.listing-hero p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: clamp(22px, 2vw, 34px);
  line-height: 1.2;
}

.project-table,
.case-table,
.services-list {
  border-top: var(--hair);
}

.table-head,
.project-row,
.case-row,
.service-row,
.directory-row {
  display: grid;
  align-items: center;
  gap: 28px;
  border-bottom: var(--hair);
}

.directory-list {
  border-top: var(--hair);
}

.directory-row {
  grid-template-columns: 0.55fr 1.8fr 2.4fr auto;
  min-height: 132px;
  padding: 26px 0;
}

.directory-row h3 {
  margin: 0;
  font-size: clamp(34px, 3vw, 58px);
  font-weight: 200;
  line-height: 1;
}

.directory-row p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(18px, 1.4vw, 24px);
}

.directory-row:hover .outline-link {
  background: var(--text);
  color: var(--bg);
}

.ai-callout {
  max-width: none;
  padding: 0;
  background: var(--text);
  color: var(--bg);
}

.ai-callout-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(46px, 7vw, 92px) var(--gutter);
}

.ai-callout h2 {
  max-width: 1180px;
  margin: 0;
  font-size: clamp(38px, 5.2vw, 88px);
  font-weight: 200;
  line-height: 0.98;
}

.mini-contact .contact-grid {
  margin-top: 0;
}

.mini-contact .contact-panel {
  min-height: 360px;
}

.mini-contact .contact-panel:last-child {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.project-table .table-head {
  grid-template-columns: 0.55fr 2.1fr 2.4fr 1.2fr 1fr;
  min-height: 72px;
}

.project-row {
  grid-template-columns: 0.55fr 2.1fr 2.4fr 1.2fr 1fr;
  min-height: 118px;
  padding: 24px 0;
}

.table-head span {
  font-size: 12px;
  font-weight: 550;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.row-index {
  font-size: clamp(42px, 4.4vw, 72px);
  font-weight: 200;
  line-height: 1;
}

.project-row h3,
.case-path {
  margin: 0;
  font-size: clamp(34px, 3vw, 58px);
  font-weight: 200;
  line-height: 1;
}

.project-row p,
.case-row p,
.service-row p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(18px, 1.4vw, 24px);
}

.project-row .outline-link,
.project-cta .outline-link,
.case-cta .outline-link {
  min-width: 150px;
}

.project-cta .outline-link.coral-link {
  border-color: var(--coral);
  background: var(--coral);
  color: var(--bg);
}

.project-cta .outline-link.coral-link:hover {
  border-color: var(--text);
  background: var(--text);
}

.status-dot,
.case-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 34px;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 400;
  text-transform: lowercase;
}

.status-dot::before,
.case-status::before {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  content: "";
}

.project-cta,
.case-cta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(34px, 5vw, 66px) 0;
  border-bottom: var(--hair);
}

.case-demo-gateway {
  flex: 1;
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 0.78fr);
  align-items: end;
  width: 100%;
  padding: clamp(48px, 6vw, 88px) var(--gutter);
}

.case-demo-gateway .kicker {
  display: block;
  margin-bottom: 18px;
}

.case-demo-gateway .page-title {
  max-width: 760px;
  font-size: clamp(58px, 7vw, 104px);
  white-space: nowrap;
}

.case-demo-panel {
  display: grid;
  gap: 18px;
}

.case-preview {
  overflow: hidden;
  margin: 0;
  border: var(--hair);
  background: var(--bg);
}

.case-preview img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: left top;
}

.case-demo-gateway .idea-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0;
}

.case-demo-gateway .idea-actions .outline-link {
  min-width: 0;
}

.project-cta .red-arrow {
  color: var(--accent);
  font-size: clamp(48px, 5vw, 88px);
  font-weight: 200;
}

.project-cta h2,
.project-cta h3,
.case-cta h2,
.case-cta h3,
.contact-panel h2 {
  margin: 0;
  font-size: clamp(34px, 3.3vw, 56px);
  font-weight: 250;
  line-height: 1.07;
}

.project-cta p,
.case-cta p,
.contact-panel p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.35vw, 22px);
}

.case-table .table-head {
  grid-template-columns: 1.65fr 1.05fr 2fr 0.35fr;
  min-height: 72px;
}

.case-row {
  grid-template-columns: 1.65fr 1.05fr 2fr 0.35fr;
  min-height: 110px;
  padding: 24px 0;
}

.case-open {
  width: 62px;
  min-width: 62px;
  padding: 0;
  justify-self: end;
  font-size: 20px;
}

.services-contact {
  padding-bottom: 0;
}

.services-list {
  margin-bottom: clamp(54px, 8vw, 96px);
}

.service-row {
  grid-template-columns: 0.45fr 0.22fr 1.7fr 2.25fr 0.25fr;
  min-height: 90px;
  padding: 18px 0;
  color: inherit;
  text-decoration: none;
  transition: background 180ms ease, padding 180ms ease;
}

.service-row:hover {
  background: rgba(0, 0, 0, 0.025);
  padding-inline: 18px;
}

.service-row:hover .arrow {
  color: var(--accent);
  transform: translateX(5px);
}

.service-index {
  font-size: clamp(34px, 3.1vw, 56px);
  font-weight: 250;
}

.service-icon {
  position: relative;
  width: 34px;
  height: 34px;
}

.service-icon::before,
.service-icon::after {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 28px;
  height: 1px;
  background: var(--line);
  content: "";
  transform: translate(-50%, -50%);
}

.service-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.service-row h2,
.service-row h3 {
  margin: 0;
  font-size: clamp(22px, 2vw, 32px);
  font-weight: 300;
}

.service-detail-page main {
  overflow: hidden;
}

.back-link {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.service-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 0.72fr);
  align-items: end;
  gap: clamp(38px, 7vw, 112px);
  border-bottom: var(--hair);
}

.service-detail-hero .page-title {
  max-width: 980px;
  font-size: clamp(58px, 7.5vw, 132px);
}

.service-detail-hero p {
  max-width: 720px;
  margin: clamp(26px, 3.4vw, 46px) 0 0;
  color: var(--muted);
  font-size: clamp(24px, 2.4vw, 40px);
  line-height: 1.14;
}

.service-visual {
  overflow: hidden;
  margin: 0;
  border: var(--hair);
  background: var(--bg);
}

.service-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 1.18 / 1;
  object-fit: cover;
}

.service-thesis {
  padding-block: clamp(46px, 7vw, 92px);
  border-bottom: var(--hair);
}

.service-thesis p {
  max-width: 1180px;
  margin: 0;
  font-size: clamp(34px, 4.8vw, 82px);
  font-weight: 200;
  line-height: 1.04;
}

.service-narrative {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-top: 0;
  padding-bottom: 0;
  border-bottom: var(--hair);
}

.service-narrative article {
  min-height: 360px;
  padding: clamp(34px, 5vw, 64px);
  border-right: var(--hair);
}

.service-narrative article:last-child {
  border-right: 0;
}

.service-narrative h2,
.service-output h2 {
  margin: 0 0 28px;
  font-size: clamp(30px, 3vw, 52px);
  font-weight: 250;
  line-height: 1.05;
}

.service-narrative p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(18px, 1.5vw, 25px);
  line-height: 1.34;
}

.service-output {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 90px);
  align-items: start;
  border-bottom: var(--hair);
}

.service-output h2 {
  margin-bottom: 0;
}

.service-output div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: var(--hair);
}

.service-output span {
  min-height: 84px;
  padding: 24px;
  border-right: var(--hair);
  border-bottom: var(--hair);
  font-size: clamp(18px, 1.6vw, 26px);
  font-weight: 300;
}

.service-output span:nth-child(2n) {
  border-right: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  border-top: var(--hair);
  border-bottom: var(--hair);
}

.contact-panel {
  min-height: 470px;
  padding: clamp(34px, 5vw, 58px);
}

.contact-panel:first-child {
  border-right: var(--hair);
}

.contact-list {
  display: grid;
  gap: 18px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: clamp(17px, 1.25vw, 20px);
}

.contact-list a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.contact-small {
  max-width: 640px;
  color: #777777;
  font-size: clamp(13px, 1vw, 15px);
  line-height: 1.45;
}

.two-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 14px;
}

.checkbox input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--text);
}

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 34px var(--gutter);
  display: flex;
  justify-content: space-between;
  gap: 22px;
  font-size: 15px;
}

.footer-links {
  display: flex;
  gap: clamp(18px, 3vw, 42px);
  flex-wrap: wrap;
}

.footer-brand {
  transition: color 180ms ease;
}

.footer-brand:hover {
  color: var(--accent);
}

.footer-links a:hover {
  color: var(--accent);
}

.legal-page {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(72px, 9vw, 132px) var(--gutter);
}

.legal-page .page-title {
  font-size: clamp(64px, 8vw, 128px);
  margin-bottom: 28px;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.65fr) minmax(0, 1fr);
  gap: clamp(48px, 8vw, 120px);
  border-top: var(--hair);
  padding-top: 54px;
}

.legal-nav {
  position: sticky;
  top: 132px;
  align-self: start;
  display: grid;
  gap: 10px;
}

.legal-nav a {
  padding: 14px 0;
  border-bottom: 1px solid var(--soft-line);
  color: var(--muted);
}

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

.legal-content {
  display: grid;
  gap: 42px;
}

.legal-content section {
  border-bottom: var(--hair);
  padding-bottom: 42px;
}

.legal-content h2 {
  margin: 0 0 18px;
  font-size: clamp(34px, 3vw, 48px);
  font-weight: 250;
}

.legal-content h3 {
  margin: 0 0 12px;
  font-size: clamp(24px, 2vw, 32px);
  font-weight: 300;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
  font-size: 18px;
}

.legal-content .legal-small {
  margin-top: 12px;
  font-size: 14px;
}

.legal-content ul {
  margin: 0;
  padding-left: 20px;
}

.case-page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.6fr);
  gap: clamp(42px, 7vw, 96px);
  align-items: end;
}

.case-meta {
  border: var(--hair);
  padding: 28px;
}

.case-meta dl {
  display: grid;
  gap: 18px;
  margin: 0;
}

.case-meta dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 550;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.case-meta dd {
  margin: 6px 0 0;
  font-size: 20px;
}

.case-body {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: var(--hair);
  border-bottom: var(--hair);
}

.case-body article {
  min-height: 260px;
  padding: clamp(26px, 4vw, 42px);
  border-right: var(--hair);
}

.case-body article:last-child {
  border-right: 0;
}

.case-body h2 {
  margin: 0 0 18px;
  font-size: clamp(28px, 2.4vw, 40px);
  font-weight: 250;
}

.case-body p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.support-link-example {
  display: grid;
  gap: 14px;
  margin-bottom: 42px;
  padding: 28px;
  border: var(--hair);
  background: rgba(255, 255, 255, 0.72);
}

.support-link-example code {
  display: block;
  overflow-x: auto;
  color: var(--text);
  font-size: clamp(18px, 2vw, 30px);
  font-weight: 300;
  white-space: nowrap;
}

.support-grid .contact-panel:first-child {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.support-grid .outline-link {
  margin-top: auto;
}

.notice {
  margin: 0;
  padding: 18px;
  border: var(--hair);
  color: var(--text);
  background: var(--bg);
}

.notice[data-state="success"] {
  border-color: var(--text);
}

.notice[data-state="error"] {
  border-color: var(--accent);
}

.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;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(520px, 1fr);
  gap: clamp(56px, 7vw, 110px);
  align-items: start;
  padding-top: 42px;
  padding-bottom: 42px;
}

.contact-identity {
  padding-top: clamp(12px, 2vw, 28px);
}

.contact-lead {
  max-width: 640px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(21px, 1.7vw, 28px);
}

.contact-identity .page-title {
  font-size: clamp(64px, 7vw, 108px);
}

.company-details {
  margin-top: clamp(42px, 5vw, 68px);
}

.company-details h2,
.contact-form-panel h2 {
  margin: 0;
  font-size: clamp(36px, 3.2vw, 54px);
  font-weight: 250;
  line-height: 1.08;
}

.company-details address {
  display: grid;
  gap: 18px;
  margin-top: 26px;
  color: var(--muted);
  font-size: clamp(17px, 1.35vw, 22px);
  font-style: normal;
  line-height: 1.45;
}

.company-details address p {
  margin: 0;
}

.company-details address a,
.contact-form-panel .checkbox a,
.ticket-detail a:not(.outline-link) {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.contact-form-panel {
  padding: clamp(32px, 3vw, 42px);
  border: var(--hair);
}

.contact-form-panel h2 {
  margin-bottom: 20px;
}

.contact-form-panel .notice {
  margin-bottom: 20px;
}

.contact-form-panel .form-grid {
  gap: 14px;
}

.contact-form-panel .form-field input,
.contact-form-panel .form-field textarea {
  min-height: 50px;
  padding-block: 12px;
}

.contact-form-panel .form-field textarea {
  min-height: 110px;
}

.contact-form-panel .button {
  width: 100%;
}

.support-dashboard-hero {
  padding-top: 40px;
  padding-bottom: 24px;
}

.support-dashboard-hero .page-title {
  max-width: none;
  font-size: clamp(52px, 5vw, 78px);
}

.support-dashboard-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 1.4vw, 24px);
}

.support-dashboard {
  padding-top: 0;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: var(--hair);
}

.dashboard-stats div {
  display: grid;
  gap: 8px;
  min-height: 90px;
  padding: 16px 20px;
  border-right: var(--hair);
}

.dashboard-stats div:last-child {
  border-right: 0;
}

.dashboard-stats span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 350;
}

.dashboard-stats strong {
  font-size: clamp(30px, 3vw, 46px);
  font-weight: 250;
  line-height: 1;
}

.dashboard-filters {
  display: grid;
  grid-template-columns: minmax(240px, 1.35fr) minmax(190px, 0.8fr) minmax(190px, 0.8fr) auto;
  gap: 18px;
  align-items: center;
  margin: 18px 0;
}

.dashboard-filters label {
  display: block;
}

.dashboard-filters input,
.dashboard-filters select {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border: var(--hair);
  border-radius: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 300;
  outline: 0;
}

.dashboard-filters input:focus,
.dashboard-filters select:focus {
  border-color: var(--accent);
}

.dashboard-visible-count {
  min-width: 92px;
  color: var(--muted);
  font-size: 14px;
  text-align: right;
}

.dashboard-refresh {
  min-height: 50px;
  margin: 0;
  padding-inline: 26px;
}

.ticket-table {
  border: var(--hair);
}

.ticket-table-head,
.ticket-summary {
  display: grid;
  grid-template-columns: 1.22fr 1.15fr 1.15fr 1.1fr 0.65fr 0.92fr;
  gap: 18px;
  align-items: center;
}

.ticket-table-head {
  min-height: 52px;
  padding: 0 20px;
  border-bottom: var(--hair);
  font-size: 13px;
  font-weight: 400;
}

.dashboard-ticket {
  border-bottom: 1px solid var(--soft-line);
}

.dashboard-ticket:last-of-type {
  border-bottom: 0;
}

.dashboard-ticket[hidden] {
  display: none;
}

.ticket-summary {
  min-height: 58px;
  padding: 12px 20px;
  cursor: pointer;
  font-size: 14px;
  list-style: none;
  transition: color 160ms ease, background 160ms ease;
}

.ticket-summary::-webkit-details-marker {
  display: none;
}

.ticket-summary:hover,
.ticket-summary:focus-visible {
  background: rgba(0, 0, 0, 0.025);
  outline: 0;
}

.dashboard-ticket[open] > .ticket-summary {
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
}

.ticket-summary > span,
.ticket-summary time {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticket-priority[data-priority="alta"] {
  color: var(--accent);
  font-weight: 450;
}

.ticket-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 1fr);
  gap: clamp(34px, 5vw, 72px);
  padding: clamp(26px, 4vw, 44px) 20px;
  border-bottom: var(--hair);
}

.ticket-description h2 {
  margin: 0 0 20px;
  font-size: clamp(24px, 2.1vw, 36px);
  font-weight: 300;
}

.ticket-description p {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
  white-space: pre-line;
}

.ticket-detail dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  border-top: var(--hair);
}

.ticket-detail dl div {
  min-width: 0;
  padding: 16px;
  border-right: var(--hair);
  border-bottom: var(--hair);
}

.ticket-detail dl div:nth-child(2n) {
  border-right: 0;
}

.ticket-detail dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ticket-detail dd {
  margin: 7px 0 0;
  overflow-wrap: anywhere;
  font-size: 14px;
}

.dashboard-empty {
  margin: 20px;
}

.ai-builder {
  margin: clamp(54px, 8vw, 96px) 0;
}

.idea-workbench {
  position: relative;
  display: grid;
  grid-template-areas:
    "intro intro"
    "questions result"
    "toolbar toolbar";
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1fr);
  border-top: var(--hair);
  border-bottom: var(--hair);
}

.idea-loading-overlay {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  cursor: progress;
  text-align: center;
}

.idea-loading-overlay[hidden] {
  display: none;
}

.idea-loading-overlay p {
  max-width: 520px;
  margin: 0;
  color: var(--text);
  font-size: clamp(20px, 1.8vw, 30px);
  font-weight: 250;
}

.idea-spinner {
  width: 56px;
  height: 56px;
  border: 1px solid var(--soft-line);
  border-top-color: var(--text);
  border-radius: 999px;
  animation: spin 800ms linear infinite;
}

.idea-workbench[data-loading="true"] .idea-panel {
  pointer-events: none;
}

.idea-intro {
  grid-area: intro;
  padding: clamp(22px, 3vw, 38px) clamp(30px, 3.4vw, 46px);
  border-bottom: var(--hair);
}

.idea-intro .kicker {
  display: block;
  margin-bottom: 12px;
}

.idea-intro h2 {
  max-width: 1120px;
  margin: 0;
  font-size: clamp(42px, 4.4vw, 72px);
  font-weight: 200;
  line-height: 1;
}

.idea-intro p {
  max-width: 900px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 1.45vw, 24px);
}

.idea-panel {
  min-height: 0;
  padding: clamp(30px, 3.4vw, 46px);
}

.idea-questions {
  grid-area: questions;
  border-right: var(--hair);
}

.idea-result {
  grid-area: result;
}

.idea-panel .kicker {
  display: block;
  margin-bottom: 18px;
}

.idea-questions .form-field textarea {
  min-height: 104px;
}

.idea-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 4px;
}

.idea-actions .button,
.idea-actions .outline-link {
  width: auto;
}

.idea-result {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.idea-result-head {
  display: grid;
  gap: 0;
}

.idea-toolbar {
  grid-area: toolbar;
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1fr);
  gap: 0;
  align-items: start;
  padding: clamp(22px, 2.8vw, 38px) clamp(30px, 3.4vw, 46px);
  border-top: var(--hair);
}

.idea-toolbar-primary {
  padding-right: clamp(30px, 3.4vw, 46px);
}

.idea-toolbar .idea-result-actions {
  display: grid;
  grid-template-areas:
    "refine spacer email"
    "counter spacer email";
  grid-template-columns: max-content minmax(18px, 1fr) max-content;
  column-gap: clamp(18px, 3vw, 44px);
  row-gap: 8px;
  align-items: start;
}

.idea-result-actions .button,
.idea-result-actions .outline-link {
  max-width: 100%;
  white-space: normal;
}

.idea-result-actions [data-refine-brief] {
  grid-area: refine;
}

.idea-result-actions .button.primary {
  grid-area: email;
  justify-self: end;
  margin-left: 0;
}

.refine-counter {
  grid-area: counter;
  max-width: 280px;
  white-space: normal;
}

.ai-builder .two-fields {
  grid-template-columns: 1fr;
}

.ai-output-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ai-output {
  width: 100%;
  flex: 1;
  min-height: 260px;
  max-height: min(36vh, 430px);
  margin: 0;
  padding: 22px;
  overflow: auto;
  border: var(--hair);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.45;
  white-space: pre-wrap;
}

.idea-editor {
  resize: vertical;
}

.idea-refinement textarea {
  min-height: 62px;
}

.idea-result-actions {
  align-items: center;
}

.refine-counter {
  display: inline-flex;
  align-items: center;
  margin: 0;
}

.ai-output.compact {
  min-height: 150px;
}

.ai-output[data-state="empty"] {
  color: var(--muted);
}

.ai-output[data-state="loading"],
.notice[data-state="loading"] {
  color: var(--muted);
}

.ai-output[data-state="error"],
.notice[data-state="error"] {
  border-color: var(--accent);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.68;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.ticket-list {
  display: grid;
  gap: 0;
}

.ticket-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(28px, 5vw, 54px) 0;
  border-top: var(--hair);
}

.ticket-row h2 {
  margin: 10px 0 18px;
  font-size: clamp(30px, 3vw, 48px);
  font-weight: 250;
}

.ticket-row p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.ticket-row dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.ticket-row dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 550;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.ticket-row dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
}

@media (min-width: 1021px) and (max-height: 780px) {
  .site-header {
    min-height: 82px;
    padding-block: 14px;
  }

  .brand img {
    width: 226px;
  }

  .hero {
    min-height: calc(100vh - 82px - 92px);
  }

  .hero-copy {
    padding-top: 52px;
    padding-bottom: 46px;
  }

  .hero h1 {
    font-size: clamp(72px, 8vw, 118px);
  }

  .hero-copy p {
    margin-top: 28px;
    font-size: clamp(28px, 2.9vw, 42px);
  }

  .hero-actions {
    margin-top: 30px;
  }
}

@media (max-width: 1020px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .site-nav {
    position: fixed;
    top: 95px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 28px var(--gutter);
    background: var(--bg);
    border-bottom: var(--hair);
  }

  .site-nav[data-open] {
    display: flex;
  }

  .site-nav a {
    width: 100%;
    padding: 18px 0;
    border-bottom: 1px solid var(--soft-line);
  }

  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .hero,
  .contact-grid,
  .contact-layout,
  .legal-layout,
  .case-page-hero,
  .listing-hero,
  .service-detail-hero,
  .service-output,
  .ticket-row {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    gap: 52px;
  }

  .contact-form-panel {
    padding: clamp(28px, 5vw, 48px);
  }

  .dashboard-filters {
    grid-template-columns: 1fr 1fr;
  }

  .dashboard-visible-count {
    text-align: left;
  }

  .ticket-detail {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-bottom: 0;
  }

  .hero-copy {
    padding-bottom: 0;
  }

  .project-table .table-head,
  .case-table .table-head {
    display: none;
  }

  .project-row,
  .case-row,
  .service-row,
  .directory-row {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 16px;
  }

  .project-row .outline-link,
  .directory-row .outline-link,
  .case-open {
    justify-self: start;
  }

  .project-cta,
  .case-cta {
    grid-template-columns: 1fr;
  }

  .service-detail-hero {
    align-items: start;
  }

  .service-detail-hero .page-title {
    font-size: clamp(52px, 12vw, 96px);
  }

  .service-visual img {
    aspect-ratio: 16 / 9;
  }

  .service-narrative {
    grid-template-columns: 1fr;
  }

  .service-narrative article {
    min-height: auto;
    border-right: 0;
    border-bottom: var(--hair);
  }

  .service-narrative article:last-child {
    border-bottom: 0;
  }

  .contact-panel:first-child {
    border-right: 0;
    border-bottom: var(--hair);
  }

  .idea-workbench {
    grid-template-areas:
      "intro"
      "questions"
      "result"
      "toolbar";
    grid-template-columns: 1fr;
  }

  .idea-questions {
    border-right: 0;
    border-bottom: var(--hair);
  }

  .idea-toolbar {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .idea-toolbar-primary {
    padding-right: 0;
  }

  .idea-toolbar .idea-result-actions {
    grid-template-areas:
      "refine"
      "counter"
      "email";
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .idea-result-actions .button.primary {
    justify-self: start;
    margin-left: 0;
  }

  .ai-callout-inner {
    grid-template-columns: 1fr;
  }

  .case-body {
    grid-template-columns: 1fr;
  }

  .case-body article {
    border-right: 0;
    border-bottom: var(--hair);
  }

  .case-body article:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 700px) {
  :root {
    --gutter: 18px;
  }

  .page {
    background: var(--bg);
  }

  .site-header {
    min-height: 78px;
    padding-block: 16px;
  }

  .site-nav {
    top: 77px;
  }

  .brand img {
    width: 190px;
  }

  .hero h1,
  .page-title {
    font-size: clamp(48px, 14vw, 62px);
  }

  .contact-layout {
    gap: 38px;
  }

  .company-details {
    margin-top: 48px;
  }

  .contact-form-panel {
    padding: 24px 18px;
  }

  .dashboard-stats,
  .dashboard-filters {
    grid-template-columns: 1fr;
  }

  .dashboard-stats div {
    min-height: 92px;
    border-right: 0;
    border-bottom: var(--hair);
  }

  .dashboard-stats div:last-child {
    border-bottom: 0;
  }

  .ticket-table-head {
    display: none;
  }

  .ticket-summary {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-block: 18px;
  }

  .ticket-summary > span,
  .ticket-summary time {
    white-space: normal;
  }

  .ticket-summary > :nth-child(3),
  .ticket-summary > :nth-child(4) {
    display: none;
  }

  .ticket-detail dl {
    grid-template-columns: 1fr;
  }

  .ticket-detail dl div,
  .ticket-detail dl div:nth-child(2n) {
    border-right: 0;
  }

  .hero-copy p {
    font-size: clamp(24px, 6.8vw, 31px);
    max-width: 92%;
  }

  .hero {
    min-height: calc(100vh - 78px - 170px);
    background-position: 61% center;
  }

  .hero-copy {
    padding-top: 44px;
    padding-bottom: 38px;
  }

  .button,
  .outline-link {
    width: 100%;
  }

  .idea-actions .button,
  .idea-actions .outline-link,
  .ai-callout .button {
    width: 100%;
  }

  .case-demo-gateway {
    padding-block: 44px;
  }

  .case-demo-gateway .page-title {
    font-size: clamp(52px, 15vw, 64px);
    white-space: normal;
  }

  .case-demo-gateway .idea-actions {
    grid-template-columns: 1fr;
  }

  .two-fields {
    grid-template-columns: 1fr;
  }

  .section-intro h2 {
    font-size: clamp(48px, 15vw, 72px);
  }

  .project-row h3,
  .case-path {
    font-size: clamp(36px, 11vw, 54px);
    overflow-wrap: anywhere;
  }

  .service-row:hover {
    padding-inline: 0;
  }

  .back-link {
    margin-bottom: 20px;
  }

  .service-detail-hero p {
    font-size: clamp(22px, 7vw, 30px);
  }

  .service-thesis p {
    font-size: clamp(32px, 10vw, 48px);
  }

  .service-narrative article {
    padding-inline: 0;
  }

  .service-output div {
    grid-template-columns: 1fr;
  }

  .service-output span {
    border-right: 0;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 1100px) {
  .idea-toolbar .idea-result-actions {
    grid-template-areas:
      "refine"
      "counter"
      "email";
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .idea-result-actions .button.primary {
    justify-self: start;
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
