/* Safarov Solutions - palette and typography supplied by the designer. */
:root {
  --brand-paper: #f0eff4;
  --brand-navy: #000022;
  --brand-blue: #0b73ad;
  --brand-electric: #0098ff;
  --brand-green: #4a7c59;
  --ink: var(--brand-navy);
  --ink2: var(--brand-navy);
  --paper: var(--brand-paper);
  --muted: var(--brand-navy);
  --lime: var(--brand-electric);
  --line: var(--brand-blue);
}
@property --glass-light-x { syntax: "<percentage>"; inherits: true; initial-value: 17%; }
@property --glass-light-y { syntax: "<percentage>"; inherits: true; initial-value: 0%; }

body, button, input, textarea, select, nav, p, small, figcaption, table {
  font-family: Roboto, sans-serif;
  letter-spacing: 0;
}
body { background: var(--brand-paper); color: var(--brand-navy); }
h1, h2, h3, h4,
.hero h1, .case-hero h1, .case-split h2,
.section-heading h2, .about h2, .contact h2,
.project-card h3, .project-subtitle, .case-features h3 {
  font-family: Helvetica, sans-serif;
  font-style: normal;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -.025em;
}
.hero h1 em, .case-hero h1 em, .case-section h2 em,
.contact h2 em, .case-closing h2 em {
  font: inherit;
  color: var(--brand-electric);
  text-transform: inherit;
  letter-spacing: inherit;
}
.section-heading h2 span, .about h2 span { color: var(--brand-blue); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--brand-electric); outline-offset: 4px; }

/* The supplied vector wordmark replaces the previous text emblem. */
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand-logo { display: block; width: 186px; height: auto; }
.footer-brand { display: inline-flex; align-items: center; }
.site-footer .brand-logo { width: 171px; }
.site-header, .site-footer { background: var(--brand-navy); color: var(--brand-paper); border-color: var(--brand-blue); }
.site-header nav { color: var(--brand-paper); }
.site-header nav a:hover, .header-link:hover, .site-footer a:last-child:hover { color: var(--brand-electric); }
.header-link { border-color: var(--brand-blue); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.site-header .language-switch { display: inline-flex; align-items: center; flex: 0 0 auto; width: max-content; padding: 3px; border: 1px solid var(--brand-blue); border-radius: 999px; gap: 2px; }
.language-switch a { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; min-height: 28px; padding: 0 6px; border-radius: 999px; color: var(--brand-paper); font: 700 11px Roboto, sans-serif; text-decoration: none; transition: background-color .2s, color .2s; }
.language-switch a[aria-current="page"] { background: var(--brand-electric); color: var(--brand-navy); }
.language-switch a:not([aria-current="page"]):hover { background: rgba(240, 239, 244, .12); color: var(--brand-paper); }

/* Main page. */
.hero-inner { display: block; padding-top: 240px; padding-bottom: 50px; }
.hero-copy { max-width: 1100px; }
.hero h1 { max-width: 1050px; }
.hero-lead { max-width: 760px; }
.hero, .case-hero { background: var(--brand-navy); color: var(--brand-paper); }
.hero { background: #000 url("assets/logistics-hero-port-poster.jpg") center / cover no-repeat; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; filter: saturate(.72); z-index: 0; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(ellipse 35% 23% at 52% 52%, rgba(0, 0, 0, .8), transparent 100%), linear-gradient(90deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .18)); }
.hero-inner, .hero-foot { position: relative; z-index: 2; }
.hero .eyebrow, .hero h1, .hero-lead { text-shadow: 0 2px 16px rgba(0, 0, 0, .75); }
.eyebrow, .hero-foot, .visual-top, .visual-bottom { color: var(--brand-paper); }
.pulse, .live i { background: var(--brand-electric); }
.hero h1 { font-size: clamp(50px, 5.8vw, 82px); line-height: 1.02; }
.hero h1.hero-title-glass { position: relative; isolation: isolate; width: fit-content; max-width: 100%; margin-bottom: 75px; text-align: left; transform: translateY(22px); transition: --glass-light-x .24s ease-out, --glass-light-y .24s ease-out; }
.hero h1.hero-title-glass::before,
.hero h1.hero-title-glass::after {
  content: "";
  position: absolute;
  inset: -38px -24px;
  z-index: -1;
  pointer-events: none;
  border-radius: 32px;
}
/* Clear glass: nearly transparent surface with light concentrated at the rim. */
.hero h1.hero-title-glass::before {
  border: 1px solid rgba(240, 239, 244, .24);
  background: linear-gradient(155deg, rgba(240, 239, 244, .025), transparent 45%);
  box-shadow: inset 0 1px 1px rgba(240, 239, 244, .42), inset 0 -1px 1px rgba(240, 239, 244, .18), 0 8px 24px rgba(0, 0, 0, .08);
  -webkit-backdrop-filter: blur(1.5px) saturate(1.05);
  backdrop-filter: blur(1.5px) saturate(1.05);
}
.hero h1.hero-title-glass::after {
  padding: 1px;
  background:
    radial-gradient(ellipse 37% 55% at var(--glass-light-x, 17%) var(--glass-light-y, 0%), rgba(240, 239, 244, .75), transparent 82%),
    conic-gradient(from 165deg, transparent, rgba(240, 239, 244, .22), transparent, rgba(240, 239, 244, .4), transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}
.hero-lead, .case-lead { color: var(--brand-paper); }
.hero-visual { background: var(--brand-navy); border-color: var(--brand-blue); }
.hero-visual:before { background-image: radial-gradient(var(--brand-blue) 1px, transparent 1px); }
.hero-visual svg circle, .hero-visual svg .secondary-node { fill: var(--brand-electric); stroke: var(--brand-navy); }
.visual-label rect { fill: var(--brand-navy); stroke: var(--brand-blue); }
.visual-label text { fill: var(--brand-paper); }
.main-route { stroke: var(--brand-electric); }
.dashed-route { stroke: var(--brand-green); }
.thin-route { stroke: var(--brand-blue); }
.button { font-family: Roboto, sans-serif; letter-spacing: 0; }
.button.primary { background: var(--brand-paper); color: var(--brand-navy); }
.button.primary:hover { background: var(--brand-electric); color: var(--brand-navy); }
.button.text-button { border-color: var(--brand-blue); color: var(--brand-paper); }
.button.text-button:hover { border-color: var(--brand-electric); }
.button.text-button span { color: var(--brand-electric); }

.approach, .projects, .about, .case-section { background: var(--brand-paper); color: var(--brand-navy); border-color: var(--brand-blue); }
.section-index, .project-meta, .step { color: var(--brand-blue); }
.section-heading p, .approach-grid p, .about-layout > div:first-child > p,
.project-content > p:not(.project-subtitle), .case-split p,
.case-section .case-split > div > p, .case-features p,
.workflow-grid p, .workflow-note, .results-note, .verification-note {
  color: var(--brand-navy);
}
.approach-grid, .approach-grid article + article, .project-list,
.project-card, .experience, .experience-row { border-color: var(--brand-blue); }
.approach-grid article { min-height: 0; }
.project-card, .project-card.featured { border-bottom: 1px solid var(--brand-blue); }
.icon, .experience-row > span:last-child { color: var(--brand-green); }
.project-card h3 { font-size: clamp(40px, 3.6vw, 54px); }
.projects .project-card h3 { margin-top: 0; }
.project-subtitle { font-size: 17px; }
.project-meta .status, .accent { color: var(--brand-blue); }
.project-link, .source-link { color: var(--brand-navy); border-color: var(--brand-electric); }
.project-link:hover, .source-link:hover, .project-link span { color: var(--brand-blue); }
.project-links .secondary { color: var(--brand-navy); border-color: var(--brand-blue); }
.chips span { background: var(--brand-paper); color: var(--brand-navy); border-color: var(--brand-blue); }
.project-art, .radar-art, .incoterms-art { background: var(--brand-navy); border-color: var(--brand-blue); }
.development-art {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-navy);
  border: 1px solid var(--brand-blue);
}
.development-art span {
  max-width: 90%;
  color: var(--brand-paper);
  font: 700 clamp(28px, 3.6vw, 58px)/1.05 Helvetica, Arial, sans-serif;
  text-align: center;
  text-transform: uppercase;
}
.autodisp-preview, .gatp-preview { background: var(--brand-paper); border-color: var(--brand-blue); }
.route-art, .schedule-art { background: var(--brand-navy); }
.route-line, .radar, .radar i, .terms-orbit, .terms-orbit i { border-color: var(--brand-blue); }
.route-line.two { border-color: var(--brand-green); }
.node, .radar i:nth-child(3), .blip, .terms-orbit i:nth-child(3), .schedule div b:nth-of-type(2) { background: var(--brand-electric); color: var(--brand-navy); }
.schedule b { background: var(--brand-blue); }
.schedule div:nth-child(even) b { background: var(--brand-green); }
.radar-sweep { background: conic-gradient(from 0deg, transparent 0deg, transparent 270deg, var(--brand-electric) 360deg); opacity: .35; }
.terms-line span { background: var(--brand-navy); border-color: var(--brand-blue); }
.art-top, .art-bottom, .schedule span { color: var(--brand-paper); }
.art-top span, .art-bottom b { color: var(--brand-electric); }
.about-lead, .experience-row > span, .experience-row small, .trademark-note { color: var(--brand-navy) !important; }
.experience-row { grid-template-columns: 60px minmax(0, 1fr); }

/* Project pages. */
.case-split { display: block; }
.case-split > div { max-width: 980px; }
.case-hero h1 { font-size: clamp(58px, 6.2vw, 90px); line-height: 1.03; }
.case-hero h1 .accent { color: var(--brand-electric); }
.back-link { color: var(--brand-paper); border-color: var(--brand-blue); }
.back-link:hover { color: var(--brand-electric); }
.case-brief { background: var(--brand-navy); border-color: var(--brand-blue); }
.case-brief-top, .case-brief p, .brief-tags span { color: var(--brand-paper); }
.case-brief-top span { color: var(--brand-electric); }
.brief-number { color: var(--brand-paper); }
.brief-number span { font: 400 24px Roboto, sans-serif; color: var(--brand-paper); letter-spacing: 0; }
.brief-tags span, .dispatch-flow span { border-color: var(--brand-blue); }
.case-split h2 { font-size: clamp(43px, 4.7vw, 66px); }
.case-split h2 em { color: var(--brand-blue); }
.case-panel, .case-gallery-section { background: var(--brand-paper); }
.case-gallery figure { background: var(--brand-paper); border-color: var(--brand-blue); box-shadow: none; }
.case-gallery figcaption span { color: var(--brand-blue); }
.workflow-grid, .workflow-grid article + article, .case-features,
.results-table th, .results-table td, .incident-strip { border-color: var(--brand-blue); }
.workflow-grid article > span, .results-table caption, .results-table thead th,
.incident-strip span { color: var(--brand-blue); }
.results-table td strong, .incident-strip > b, .dispatch-flow i { color: var(--brand-blue); }
.dispatch-flow span { background: var(--brand-navy); color: var(--brand-paper); }
.case-closing .section-index, .case-closing p { color: var(--brand-paper); }

/* Contact block uses the green swatch from the guide. */
.contact { background: var(--brand-green); color: var(--brand-paper); }
.contact:after { border-color: var(--brand-navy); box-shadow: none; }
.contact .section-index, .contact-inner > p:not(.contact-note),
.contact-details, .contact-note { color: var(--brand-paper); }
.contact h2 em, .case-closing h2 em { color: var(--brand-navy); }
.contact-email { color: var(--brand-paper); border-color: var(--brand-paper); }
.contact-email:hover { border-color: var(--brand-navy); color: var(--brand-navy); }
.contact-details { border-color: var(--brand-paper); }
.contact-details a:hover { color: var(--brand-navy); }

@media (max-width: 760px) {
  .hero-inner { padding-top: 190px; padding-bottom: 50px; }
  .hero-video.warehouse-crop { object-position: 10% center; }
  .hero h1.hero-title-glass { transform: translateY(20px); }
  .hero h1.hero-title-glass::before,
  .hero h1.hero-title-glass::after { inset: -30px -12px; border-radius: 24px; }
  .hero::before { background: radial-gradient(ellipse 95% 18% at 50% 49%, rgba(0, 0, 0, .78), transparent 100%), rgba(0, 0, 0, .48); }
  .site-header { gap: 10px; }
  .header-actions { gap: 8px; }
  .site-header .language-switch { display: inline-flex; padding: 2px; }
  .language-switch a { min-width: 29px; min-height: 26px; padding: 0 4px; font-size: 10px; }
  .brand-logo { width: 162px; }
  .site-footer .brand-logo { width: 148px; }
  .hero h1 { font-size: clamp(42px, 9vw, 58px); }
  .case-hero h1 { font-size: clamp(44px, 9.8vw, 66px); }
  .section-heading h2, .about h2, .case-split h2 { font-size: clamp(36px, 8vw, 52px); }
  .project-card h3 { font-size: 42px; }
  .project-card.featured .project-art.interface-art { aspect-ratio: 8 / 5; height: auto; min-height: 0; }
  .project-card.featured .project-art.interface-art img { object-fit: contain; }
  .case-closing h2, .contact h2 { font-size: clamp(42px, 9vw, 62px); }
}
@media (max-width: 430px) {
  .incident-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-logo { width: 145px; }
  .hero h1 { font-size: 40px; }
  .case-hero h1 { font-size: 44px; }
  .project-card h3 { font-size: 39px; }
}
@media (max-width: 360px) {
  .site-header { padding-inline: 12px; gap: 6px; }
  .header-actions { gap: 5px; }
  .brand-logo { width: 120px; }
  .site-header .header-link { padding: 6px 7px; font-size: 10px; }
  .site-header .language-switch a { min-width: 27px; }
  .section-heading h2, .about h2, .contact h2, .case-closing h2 { font-size: clamp(28px, 9vw, 32px); }
  .about-layout > div { min-width: 0; }
  .case-hero-layout > div { min-width: 0; }
  .case-hero h1, .case-split h2 { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
}
