@font-face {
  font-family: 'Instrument Sans';
  src: url('./fonts/instrument-sans.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: 'Playfair Display';
  src: url('./fonts/playfair-italic.woff2') format('woff2');
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
}

:root {
  color-scheme: dark;
  font-family: 'Instrument Sans', Arial, sans-serif;
  background: #000018;
  color: #f7f7ff;
  --page: #000018;
  --surface: #0d102d;
  --border: #2b2e55;
  --accent: #a0aaff;
  --muted: #bfc3df;
  --serif: 'Playfair Display', Georgia, serif;
  --gutter: clamp(16px, 4.7vw, 48px);
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, h4, dl, dd, ul, ol, blockquote, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
em { color: var(--accent); font-family: var(--serif); font-weight: 500; }
:focus-visible { outline: 2px solid #c6cdff; outline-offset: 4px; }
::selection { background: #adb8ff; color: var(--page); }
.icon { display: block; width: 20px; height: 20px; flex: 0 0 auto; }

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #f6f6ff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.045em;
  white-space: nowrap;
}
.brand-amp { color: var(--accent); }
.brand-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid #6d75bf91;
  border-radius: 15px;
  background: #222761;
  box-shadow: 0 10px 32px #3e40a455;
}
.brand-mark img { width: 40px; height: 40px; }

.cover {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: max(24px, env(safe-area-inset-top)) var(--gutter) max(30px, env(safe-area-inset-bottom));
  background:
    radial-gradient(ellipse at 85% 0%, #262260 0%, transparent 62%),
    radial-gradient(ellipse at 3% 82%, #151c54 0%, transparent 62%),
    var(--page);
}
.cover::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: '';
  background: url('./media/cover-texture.webp') center / cover no-repeat;
  opacity: .24;
  mask-image: radial-gradient(ellipse at 50% 8%, #000, transparent 79%);
  mix-blend-mode: screen;
  pointer-events: none;
}
.cover-content { width: min(100%, 660px); margin: auto; }
.cover-heading { text-align: center; padding-bottom: 20px; }
.cover-heading .wordmark { gap: 10px; flex-direction: column; font-size: 23px; }
.cover h1 {
  font-size: clamp(52px, 15vw, 84px);
  line-height: 1.04;
  letter-spacing: -.069em;
  font-weight: 500;
  margin-top: 9px;
  padding-inline-end: .08em;
}
.contents { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.contents + .contents { border-top: 1px solid #53588c80; margin-top: 13px; padding-top: 12px; }
.contents-link {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  min-height: 51px;
  border: 1px solid #53588c;
  border-radius: 12px;
  background: linear-gradient(115deg, #1b1f4a, #12142f);
  color: #fafaff;
  font-size: clamp(14px, 3.7vw, 19px);
  font-weight: 630;
  letter-spacing: -.025em;
  line-height: 1.15;
  transition: background .16s ease, border-color .16s ease;
}
.contents-link:hover, .contents-link:active { background: #262c60; border-color: #a0aaff; }
.menu-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #272c61;
  color: #c2c9ff;
}
.menu-arrow { display: grid; place-items: center; color: #aeb8ff; }
.contents-link .menu-icon { width: 28px; height: 28px; }
.contents-link .icon { width: 16px; height: 16px; }
.contents + .contents .contents-link { background: #121530; }
.contents + .contents .contents-link:hover { background: #242957; }

.section-bar {
  position: sticky;
  inset-block-start: 0;
  z-index: 5;
  background: #080924f5;
  border-bottom: 1px solid var(--border);
}
.section-bar-inner {
  width: min(100% - var(--gutter) * 2, 940px);
  min-height: 59px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.back-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 7px;
  color: #d5d9ff;
  font-size: 15px;
  font-weight: 650;
  padding-inline: 2px 5px;
}
.back-link:hover { color: white; }
.back-link .icon { width: 18px; height: 18px; }

.section-content {
  width: min(100% - var(--gutter) * 2, 940px);
  padding-block: clamp(24px, 5vw, 58px) max(48px, env(safe-area-inset-bottom));
  margin-inline: auto;
}
.section-content h1 {
  font-size: clamp(40px, 9.5vw, 78px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.058em;
  text-wrap: balance;
  margin-bottom: clamp(21px, 4vw, 35px);
}
.section-content h2 {
  font-size: clamp(21px, 5.8vw, 31px);
  font-weight: 620;
  line-height: 1.14;
  letter-spacing: -.031em;
}
.intro { margin-bottom: 20px; color: #dfdef0; font-size: clamp(17px, 3vw, 21px); line-height: 1.5; max-width: 66ch; }
.industry + .industry, .remarkable-group + .remarkable-group, .feedback-section, .about-details { margin-top: clamp(36px, 6vw, 58px); }
.industry > h2, .remarkable-group > h2, .feedback-section > h2 { margin-bottom: 12px; color: #bdc4ff; }
.project-list, .remarkable-list, .quote-list, .feedback-list { display: grid; gap: 12px; }

.project-card {
  min-width: 0;
  padding: clamp(15px, 3vw, 26px);
  scroll-margin-top: 76px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: linear-gradient(125deg, #15183a, var(--surface) 57%);
}
.project-heading { margin-bottom: 15px; }
.project-heading :is(h2, h3) { font-size: clamp(28px, 6.7vw, 45px); font-weight: 560; letter-spacing: -.047em; line-height: 1.04; overflow-wrap: anywhere; }
.project-heading p { margin-top: 6px; color: var(--accent); font-size: clamp(14px, 3.8vw, 16px); font-weight: 570; line-height: 1.36; }
.project-body { min-width: 0; }
.project-body > .artwork { margin-bottom: 16px; border-radius: 8px; }
.project-copy { min-width: 0; }
.project-copy > p, .dashboard-copy {
  color: #e1e1f1;
  font-size: 15px;
  line-height: 1.57;
  overflow-wrap: anywhere;
}
.project-copy h4 {
  color: #bcc4ff;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.3;
  margin-block: 15px 4px;
}
.project-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 11px 0;
  margin-top: 15px;
  border-block: 1px solid #3a3e6b;
}
.project-facts dt, .team-list span { color: var(--muted); font-size: 12px; line-height: 1.35; }
.project-facts dd { margin-top: 4px; font-size: 14px; color: #f5f5ff; font-weight: 620; line-height: 1.36; overflow-wrap: anywhere; }
.team-list, .stack-list { display: flex; flex-wrap: wrap; gap: 5px 6px; }
.team-list li, .stack-list li {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px 5px;
  padding: 4px 7px;
  border-radius: 6px;
  background: #1c2047;
  font-size: 12px;
  line-height: 1.35;
}
.team-list strong { font-weight: 650; }
.stack-list li { color: #dedfff; }
.external-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 5px;
  color: #c1c9ff;
  font-size: 14px;
  font-weight: 650;
}
.external-link:hover { color: white; text-decoration: underline; }
.external-link .icon { width: 16px; height: 16px; }
.project-copy .external-link { margin-bottom: -5px; }

.artwork {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 1.68;
  background: radial-gradient(ellipse at 50% 35%, #292d66, #111331 76%);
}
.artwork > img { width: 100%; height: 100%; object-fit: contain; }
.project-body .case-art { aspect-ratio: 1.24; max-height: 345px; }
.case-art figcaption {
  position: absolute;
  inset: auto 8px 8px auto;
  padding: 3px 6px;
  background: #141733ed;
  color: #f2f1ff;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}
.dryp-art { background: radial-gradient(ellipse at 45% 50%, #343db2, #111945 75%); }
.dryp-art > img { width: 100%; height: 92%; margin-top: 1.6%; }
.eikonice-art { background: radial-gradient(ellipse at 58% 20%, #ac8431, #302337 76%); }
.eikonice-device {
  position: absolute;
  height: 115%;
  top: 8%;
  left: 38%;
  aspect-ratio: 1765 / 3613;
  transform: rotate(-12deg);
  filter: drop-shadow(9px 9px 14px #170a1499);
}
.eikonice-phone { width: 100%; height: 100%; }
.eikonice-screen { position: absolute; width: 91%; height: 95%; inset: 2.6% 4.5%; object-fit: cover; border-radius: 10% / 5%; }

.team-photos { display: grid; grid-template-columns: 1fr; overflow: hidden; border-radius: 12px; }
.team-photos img { width: 100%; height: clamp(165px, 45vw, 245px); object-fit: cover; }
.team-photos img:first-child, .team-photos img:last-child { display: none; }
.company-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 12px;
  overflow: hidden;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.company-facts div { display: flex; flex-direction: column-reverse; justify-content: start; gap: 6px; padding: 12px; background: var(--surface); }
.company-facts dt { color: var(--muted); font-size: 13px; line-height: 1.35; }
.company-facts dd { color: var(--accent); font: italic 500 clamp(34px, 8vw, 52px)/1.05 var(--serif); letter-spacing: -.07em; }
.delivery-list { margin-top: 14px; }
.delivery-list li { display: flex; align-items: flex-start; gap: 11px; padding-block: 11px; }
.delivery-list li + li { border-top: 1px solid var(--border); }
.delivery-list h3 { font-size: 17px; margin-bottom: 4px; }
.delivery-list p { color: var(--muted); font-size: 15px; line-height: 1.45; }
.dashboard-copy { margin-top: 14px; max-width: 65ch; }

.remarkable-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.remarkable-card {
  background: var(--surface);
  border-radius: 11px;
  border: 1px solid var(--border);
  min-width: 0;
  overflow: hidden;
}
.remarkable-card .artwork { aspect-ratio: 1.32; }
.remarkable-list .artwork:not(.dryp-art) > img { object-fit: cover; }
.remarkable-caption { padding: 10px; }
.remarkable-title h3 { font-weight: 650; font-size: clamp(15px, 3.8vw, 20px); line-height: 1.15; overflow-wrap: anywhere; }
.remarkable-title p { margin-top: 4px; color: #bec7ff; font-size: clamp(13px, 3.6vw, 17px); font-weight: 620; }
.remarkable-description { margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.4; }
.partnership .remarkable-card { width: min(100%, 470px); }
.partnership .remarkable-caption { padding: 14px; }

.quote-card, .feedback-card { min-width: 0; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); padding: clamp(14px, 3.2vw, 24px); }
.quote-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.quote-heading h2 { color: #f1f0ff; }
.quote-heading img { width: 52px; height: 52px; flex: 0 0 52px; object-fit: cover; background: #272c68; border-radius: 8px; }
.quote-heading p { color: #aab5ff; font-size: 13px; margin-top: 3px; }
.quote-block + .quote-block { margin-top: 13px; }
.quote-block h3 { font-size: 13px; font-weight: 650; color: #bac1ff; margin-bottom: 3px; }
.quote-block blockquote { font: italic 400 clamp(16px, 4.5vw, 19px)/1.5 var(--serif); }
.feedback-card h3 { font-size: 17px; }
.feedback-card > p:last-child { margin-top: 7px; color: #dedff0; font-size: 14px; line-height: 1.45; }

@media (min-width: 600px) {
  .cover-heading { padding-bottom: 28px; }
  .contents-link { min-height: 56px; padding-inline: 12px; }
  .company-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .company-facts div { padding: 16px; }
  .team-photos { grid-template-columns: 1fr 2fr 1fr; gap: 6px; }
  .team-photos img:first-child, .team-photos img:last-child { display: block; }
  .team-photos img { height: clamp(190px, 27vw, 260px); }
  .remarkable-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .remarkable-caption { padding: 13px; }
  .quote-list, .feedback-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 760px) {
  .project-body {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr);
    gap: clamp(18px, 4vw, 36px);
    align-items: start;
  }
  .project-body > .artwork { grid-column: 2; grid-row: 1; margin-bottom: 0; }
  .project-copy { grid-column: 1; grid-row: 1; }
  .project-copy > p { max-width: 76ch; font-size: 16px; }
}

@media (max-width: 360px) {
  .contents-link { grid-template-columns: 25px minmax(0, 1fr); gap: 6px; padding-inline: 7px; }
  .contents-link .menu-icon { width: 25px; height: 25px; }
  .contents-link .menu-arrow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .contents-link { transition: none; }
}
