/* CZieler Works
   Final portfolio stylesheet
   ---------------------------------------- */

:root {
  --bg: #ffffff;
  --text: #071b4a;
  --primary: #071b4a;
  --secondary: #ff5a14;
  --accent: #ffb000;
  --soft: #f7f8fb;
  --border: rgba(7, 27, 74, 0.14);
  --shadow: 0 18px 50px rgba(7, 27, 74, 0.08);
  --radius: 18px;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

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

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

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

/* Shared layout */

.section-shell {
  width: min(1240px, calc(100% - 64px));
  margin-inline: auto;
}

.site-header {
  width: min(1240px, calc(100% - 64px));
  margin-inline: auto;
}

.site-footer {
  width: min(1440px, calc(100% - 40px));
  margin-inline: auto;
}

#apps,
#services,
#projects,
#about,
#contact {
  scroll-margin-top: 90px;
}

/* Header */

.site-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.site-nav {
  display: flex;
  gap: clamp(22px, 3vw, 46px);
  margin: 0;
  font-size: 0.94rem;
  font-weight: 700;
  padding-bottom: 7px;

  position: relative;
}

.site-nav::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: calc(100% + 90px);
  height: 1px;
  background: color-mix(in srgb, var(--primary) 42%, white);
}


.site-nav a:hover,
.site-nav a:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  color: var(--secondary);
}

.nav-toggle {
  display: none;
}

.header-cta {
  margin-left: auto;
}

/* Buttons and links */

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border: 2px solid var(--secondary);
  border-radius: 8px;
  font-weight: 800;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--secondary) 22%, transparent);
}

.button-primary {
  color: #fff;
  background: var(--secondary);
}

.button-outline {
  color: var(--primary);
  background: transparent;
}

.text-link {
  flex: 0 0 auto;
  color: var(--primary);
  font-weight: 850;
}

.text-link:hover {
  text-decoration: underline;
}

/* Hero */

.hero {
  height: calc(100vh - 205px);
  min-height: 500px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.9fr);
  align-items: center;
  gap: clamp(36px, 5vw, 76px);
  padding-block: 12px;
}

.hero-art {
  position: relative;
  height: 100%;
  min-height: 0;
  display: grid;
  place-items: center;
  justify-items: start;
  overflow: visible;
  z-index: 1;
}

.hero-art::before,
.hero-art::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  background: var(--accent);
  clip-path: polygon(
    50% 0,
    60% 40%,
    100% 50%,
    60% 60%,
    50% 100%,
    40% 60%,
    0 50%,
    40% 40%
  );
}

.hero-art::before {
  left: 5%;
  top: 12%;
}

.hero-art::after {
  right: 8%;
  top: 6%;
}

.hero-art img {
  width: min(109%, 650px);
  max-width: none;
  object-fit: contain;
  filter: drop-shadow(0 18px 22px rgba(7, 27, 74, 0.08));
  transform: translate(-4%, 2%) rotate(-20deg);
  transform-origin: center center;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--secondary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1,
.display-heading {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  font-size: clamp(2.35rem, min(3.8vw, 5.7vh), 4.25rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.hero h1 {
  max-width: 700px;
}

.secondary-text,
.display-heading span {
  color: var(--secondary);
}

.hero-description {
  max-width: 630px;
  margin: 16px 0;
  color: color-mix(in srgb, var(--text) 84%, white);
  font-size: 0.94rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.hero-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px 22px;
  margin-top: 16px;
  font-size: 0.84rem;
  font-weight: 650;
}

.hero-points span::first-letter {
  color: var(--secondary);
}

/* Value strip */

.value-strip {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}

.value-strip article {
  min-height: 98px;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 13px;
  align-items: center;
  padding: 14px 20px;
}

.value-strip article + article {
  border-left: 1px solid var(--border);
}

.value-icon {
  color: var(--primary);
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
}

.value-strip h2 {
  margin: 0 0 4px;
  color: var(--primary);
  font-size: 0.83rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.value-strip p {
  margin: 0;
  font-size: 0.82rem;
}

/* Story sections */

.story-section,
.contact-section {
  position: relative;
  padding: clamp(72px, 8vw, 118px) 0;
}

.story-section + .story-section {
  border-top: 1px solid rgba(10, 30, 65, 0.08);
}

.section-kicker {
  margin-bottom: 12px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.17em;
}

.section-heading-row {
  display: grid;
  grid-template-columns: 1.15fr 0.75fr;
  gap: clamp(35px, 6vw, 85px);
  align-items: end;
}

.section-lede {
  max-width: 660px;
  margin: 0;
  color: color-mix(in srgb, var(--text) 78%, white);
  font-size: 1.04rem;
  line-height: 1.75;
}

/* Featured app */

.feature-card {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  margin-top: 50px;
  overflow: hidden;
  border: 2px solid color-mix(in srgb, var(--primary) 20%, white);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 22px 52px rgba(20, 40, 75, 0.08);
}

.feature-copy {
  padding: clamp(34px, 5vw, 62px);
}

.pill {
  display: inline-flex;
  padding: 7px 10px;
  margin-bottom: 15px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 15%, white);
  color: var(--primary);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.feature-copy h3,
.service-grid h3,
.project-card h3,
.fun-line {
  margin: 0;
  color: var(--primary);
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.feature-copy h3 {
  font-size: clamp(2rem, 3vw, 3.1rem);
}

.feature-copy .tagline {
  margin: 15px 0 10px;
  color: var(--secondary);
  font-size: 1.14rem;
  font-weight: 800;
}

.feature-copy p:not(.tagline) {
  line-height: 1.7;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  margin-top: 27px;
}

.feature-art {
  position: relative;
  min-height: 350px;
  display: grid;
  place-items: center;
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--primary) 7%, white),
    color-mix(in srgb, var(--accent) 15%, white)
  );
}

.mini-tv {
  width: min(62%, 255px);
  aspect-ratio: 1.1;
  padding: 18px;
  border: 9px solid var(--primary);
  border-radius: 28px;
  background: #fff;
  box-shadow: 13px 13px 0 var(--secondary);
  transform: rotate(-7deg);
}

.mini-tv span {
  height: 100%;
  display: grid;
  place-items: center;
  border: 5px solid var(--secondary);
  border-radius: 15px;
  color: var(--primary);
  font-family: "Bungee", sans-serif;
  font-size: 6rem;
}

.spark {
  position: absolute;
  color: var(--accent);
  font-size: 3rem;
}

.s1 {
  top: 15%;
  right: 14%;
}

.s2 {
  bottom: 13%;
  left: 15%;
  font-size: 2rem;
}

/* Services */

.services-section {
  background: color-mix(in srgb, var(--primary) 3%, white);
}

.services-section .section-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.65fr);
  grid-template-rows: auto auto auto auto auto;
  column-gap: clamp(50px, 7vw, 110px);
  align-items: stretch;
}

.services-section .section-kicker {
  grid-column: 1;
  grid-row: 1;
  align-self: end;
  margin-top: 92px;
}

.services-section .display-heading {
  grid-column: 1;
  grid-row: 2;
  align-self: end;
}

.service-lede {
  grid-column: 1;
  grid-row: 3;
  align-self: end;
  max-width: 820px;
  margin-top: 22px;
}

.napkin-service-layout {
  grid-column: 2;
  grid-row: 1 / 4;
  align-self: end;
  pointer-events: none;
}

.napkin-copy-spacer {
  display: none;
}

.napkin-art-wrap {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.napkin-art {
  width: min(100%, 370px);
  height: auto;
  margin: 0;
  filter: drop-shadow(0 18px 24px rgba(20, 35, 65, 0.1));
  transform: rotate(3deg);
}

.service-grid {
  grid-column: 1 / -1;
  grid-row: 4;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 50px;
}

.service-grid article {
  min-height: 235px;
  padding: 30px;
  border: 1px solid color-mix(in srgb, var(--primary) 18%, white);
  border-radius: 22px;
  background: #fff;
}

.service-grid article:nth-child(2) {
  transform: translateY(16px);
}

.service-grid em {
  display: block;
  margin-bottom: 28px;
  color: var(--secondary);
  font-family: "Bungee", sans-serif;
  font-style: normal;
}

.service-grid h3 {
  font-size: 1.55rem;
}

.service-grid p {
  line-height: 1.65;
}

.services-section .section-button {
  grid-column: 1;
  grid-row: 5;
  margin-top: 34px;
}

/* Projects */

.project-intro {
  max-width: 880px;
  margin: 30px 0 0;
  padding-left: 23px;
  border-left: 5px solid var(--accent);
  font-size: clamp(1.12rem, 1.8vw, 1.45rem);
  line-height: 1.6;
}

.project-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.94fr 0.94fr;
  gap: 22px;
  margin-top: 46px;
}

.project-card {
  min-height: 305px;
  padding: 30px;
  border: 1px solid color-mix(in srgb, var(--primary) 18%, white);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(18, 36, 76, 0.05);
}

.project-card.highlight {
  border: 2px solid var(--secondary);
}

.project-card h3 {
  font-size: 1.35rem;
  line-height: 1.3;
}

.project-card p {
  line-height: 1.65;
}

.pill.lab {
  background: color-mix(in srgb, var(--secondary) 10%, white);
  color: var(--secondary);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 20px 0;
}

.tags span {
  padding: 5px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 7%, white);
  color: var(--primary);
  font-size: 0.71rem;
  font-weight: 800;
}

/* About */

.about-section {
  overflow: hidden;
  background: var(--primary);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: clamp(40px, 8vw, 110px);
}

.about-section .section-kicker {
  color: var(--accent);
}

.about-section .display-heading {
  color: #fff;
}

.about-section .display-heading span {
  color: var(--accent);
}

.about-copy {
  color: #fff;
  font-size: 1.06rem;
  line-height: 1.8;
}

.about-copy p {
  margin-top: 0;
}

.fun-line {
  margin-top: 28px !important;
  color: var(--accent);
  font-size: 1rem;
  line-height: 1.5;
}

/* Contact */

.contact-section {
  min-height: 360px;
  padding-block: 70px;
  border-bottom: 0;
}

.contact-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  padding: clamp(34px, 5vw, 58px);
  border: 2px solid var(--secondary);
  border-radius: 28px;
  background: linear-gradient(
    135deg,
    #fff,
    color-mix(in srgb, var(--accent) 8%, white)
  );
}

/* Footer */

.site-footer {
  min-height: 110px;
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 30px;
  align-items: center;
  border-top: 1px solid var(--border);
}

.site-footer img {
  width: 105px;
  max-height: 54px;
  object-fit: contain;
  object-position: left center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  font-size: 0.82rem;
  font-weight: 700;
}

.footer-links span:nth-child(even) {
  color: var(--secondary);
}

.social-links {
  display: flex;
  gap: 16px;
  font-size: 0.82rem;
  font-weight: 800;
}

/* Short desktop viewports */

@media (max-height: 720px) and (min-width: 1001px) {
  .hero {
    height: auto;
    min-height: 500px;
  }

  .hero-art img {
    width: min(100%, 480px);
  }

  .hero h1 {
    font-size: clamp(2.25rem, 5.4vh, 3.65rem);
  }
}

/* Tablet */

@media (max-width: 1000px) {
  .site-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }

  .site-nav {
    position: absolute;
    top: 74px;
    left: 20px;
    right: 20px;
    z-index: 20;
    display: none;
    flex-direction: column;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
    grid-column: 1;
    justify-self: start;
    border: 0;
    background: transparent;
    color: var(--primary);
    font-size: 1.6rem;
    cursor: pointer;
  }

  .header-cta {
    display: inline-flex;
    grid-column: 3;
    justify-self: end;
    margin-left: 0;
  }

  .hero {
    height: auto;
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    align-items: start;
    gap: 12px;
    padding-top: 18px;
    padding-bottom: 42px;
  }

  .hero-art {
    height: auto;
    min-height: 0;
    justify-items: center;
    padding: 10px 0 4px;
    overflow: hidden;
  }

  .hero-art img {
    width: min(92vw, 520px);
    max-width: 100%;
    height: auto;
    margin-inline: auto;
    transform: none;
  }

  .hero-copy {
    width: 100%;
    max-width: 760px;
    margin-inline: auto;
  }

  .value-strip {
    grid-template-columns: 1fr 1fr;
  }

  .value-strip article:nth-child(3) {
    border-left: 0;
  }

  .value-strip article:nth-child(n + 3) {
    border-top: 1px solid var(--border);
  }

  .site-footer {
    grid-template-columns: 1fr;
    padding-block: 24px;
  }

  .site-footer img {
    margin-inline: auto;
  }
}

/* Single-column content */

@media (max-width: 900px) {
  .section-shell {
    width: min(100% - 36px, 1240px);
  }

  .section-heading-row,
  .feature-card,
  .about-grid,
  .contact-box {
    grid-template-columns: 1fr;
  }

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

  .services-section .section-shell {
    display: block;
  }

  .napkin-service-layout {
    display: block;
    margin: 30px 0 36px;
  }

  .napkin-art {
    width: min(88vw, 430px);
    margin-inline: auto;
  }

  .service-grid {
    margin-top: 36px;
  }

  .service-grid article:nth-child(2) {
    transform: none;
  }

  .contact-box .button {
    justify-self: start;
  }
}

/* Mobile */

@media (max-width: 640px) {
  .section-shell,
  .site-header,
  .site-footer {
    width: calc(100% - 28px);
  }

  .site-header {
    min-height: 64px;
    gap: 12px;
  }

  .header-cta {
    min-height: 40px;
    padding-inline: 13px;
    font-size: 0.82rem;
  }

  .site-nav {
    top: 66px;
    left: 14px;
    right: 14px;
  }

  .hero {
    gap: 8px;
    padding-top: 8px;
    padding-bottom: 30px;
  }

  .hero-art {
    padding-top: 0;
  }

  .hero-art img {
    width: min(94vw, 390px);
  }

  .hero h1 {
    font-size: clamp(2.2rem, 11vw, 3.15rem);
    line-height: 0.98;
  }

  .hero-description {
    margin: 14px 0 18px;
    font-size: 0.95rem;
  }

  .hero-actions {
    gap: 10px;
  }

  .hero-actions .button {
    flex: 1 1 150px;
  }

  .hero-points {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 18px;
  }

  .value-strip {
    grid-template-columns: 1fr;
    margin-top: 0;
  }

  .value-strip article + article {
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .story-section,
  .contact-section {
    min-height: 0;
    padding-block: 64px;
  }

  .display-heading {
    font-size: clamp(2.15rem, 10vw, 3.1rem);
  }

  .feature-card {
    margin-top: 34px;
  }

  .feature-copy,
  .service-grid article,
  .project-card {
    padding: 24px;
  }

  .feature-art {
    min-height: 270px;
  }

  .contact-box {
    padding: 26px;
  }

  .site-footer {
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }
}

@media (max-width: 700px) {
  .hero-art {
    margin-bottom: 18px;
  }

  .site-nav::after {
    display: none;
  }
}
