@import url("fonts.css");

:root {
  --bg: #ffffff;
  --ink: #0a0a0a;
  --hey: #6b6b6b;
  --muted: #8a8a8a;
  --soft: #9a9a9a;
  --chip: #f2f2f2;
  --line: #ececec;
  --footer: #111111;
  --wordmark: #1c1c1c;
  --gutter: clamp(20px, 9.58vw, 184px);
  --bleed: clamp(16px, 1.67vw, 32px);
  --gap: clamp(14px, 1.04vw, 20px);
  --radius: 12px;
  --font: "Myriad", "Myriad Arabic", "Myriad Pro", "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button,
input,
textarea,
select {
  font-family: inherit;
}

.page {
  min-height: 100vh;
  overflow-x: hidden;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid #ececec;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 60px;
  padding: 10px var(--gutter);
}

.logo {
  display: inline-flex;
  align-items: flex-start;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  flex-shrink: 0;
}

.logo .reg {
  font-size: 0.62em;
  margin-left: 2px;
  line-height: 1;
  position: relative;
  top: -0.08em;
}

.status-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: auto;
  background: transparent;
  overflow: visible;
  min-width: 0;
  margin-right: auto;
}

.ticker {
  width: min(300px, 32vw);
  height: 38px;
  overflow: hidden;
  display: flex;
  align-items: center;
  font-size: 16px;
  color: #5a5a5a;
  letter-spacing: -0.01em;
  background: var(--chip);
  border-radius: 999px;
  -webkit-mask-image: none;
  mask-image: none;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: marquee 14s linear infinite;
}

.ticker-track span {
  padding: 0 12px;
  white-space: nowrap;
}

.time-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  font-size: 16px;
  color: #5a5a5a;
  white-space: nowrap;
  flex-shrink: 0;
  background: var(--chip);
  border-radius: 999px;
}

.time-pill svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav a {
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.nav a.is-active {
  opacity: 0.45;
}

.nav-contact {
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--chip);
  display: inline-flex;
  align-items: center;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 1.8px;
  background: var(--ink);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: clamp(32px, 8vw, 160px);
  align-items: start;
  padding: 80px var(--gutter) 168px;
}

.hero-title {
  font-size: clamp(32px, 3.45vw, 66px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
  max-width: none;
}

.hero-title .hero-line {
  display: block;
  white-space: nowrap;
}

.hero-title .hey {
  color: var(--hey);
}

.hero-copy {
  padding-top: 2px;
  font-size: 17px;
  line-height: 1.45;
  color: #a0a0a0;
  max-width: 34ch;
  justify-self: end;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 6px 0 16px;
  border: 0;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-light {
  background: #fff;
  color: #111;
}

.btn-light:hover {
  background: #f4f4f4;
}

.btn-arrow {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  color: #111;
  display: grid;
  place-items: center;
  transition: transform 0.25s ease;
}

.btn-light .btn-arrow {
  background: #111;
  color: #fff;
}

.btn:hover .btn-arrow {
  transform: translateX(2px);
}

.hero-cta {
  margin-top: 22px;
}

/* Works */
.works {
  padding: 0 var(--bleed) clamp(48px, 5vw, 80px);
}

.work-featured,
.work-grid {
  display: grid;
  gap: var(--gap);
}

.work-grid {
  grid-template-columns: 1fr 1fr;
  margin-top: clamp(36px, 3vw, 52px);
}

.work-card {
  display: block;
  min-width: 0;
}

.work-meta {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 8px 16px;
  margin-bottom: 14px;
}

.work-title {
  font-size: clamp(16px, 1.15vw, 22px);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.work-year,
.work-tag {
  font-size: clamp(15px, 0.95vw, 17px);
  color: var(--muted);
  font-weight: 400;
}

.work-year {
  padding-top: 4px;
}

.work-tag {
  grid-column: 1;
}

.work-meta-featured {
  display: grid;
  grid-template-columns: 1fr;
  position: relative;
}

.work-meta-featured .work-tag {
  display: block;
  margin-top: 2px;
}

.work-meta-featured .work-year {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  padding-top: 2px;
}

.work-visual {
  overflow: hidden;
  border-radius: var(--radius);
  background: #f3f3f3;
}

.work-featured .work-visual {
  aspect-ratio: 1880 / 922;
}

.work-grid .work-visual {
  aspect-ratio: 925 / 576;
}

.work-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.work-card:hover .work-visual img {
  transform: scale(1.03);
}

/* Services */
.services {
  display: grid;
  grid-template-columns: minmax(140px, 0.42fr) minmax(0, 1fr);
  gap: 40px;
  padding: clamp(72px, 7vw, 120px) var(--gutter) clamp(72px, 7vw, 110px);
}

.section-label {
  font-size: 17px;
  color: #4a4a4a;
  letter-spacing: -0.02em;
}

.services-heading {
  font-size: clamp(22px, 1.88vw, 36px);
  font-weight: 400;
  line-height: 1.28;
  letter-spacing: -0.03em;
  color: #6d6d6d;
  max-width: 21.5em;
  margin-bottom: clamp(36px, 4vw, 56px);
}

.services-heading strong {
  display: block;
  color: var(--ink);
  font-weight: 700;
}

.service-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 24px;
  padding: 22px 0 26px;
  border-top: 1px solid var(--line);
}

.service-row:last-child {
  border-bottom: 1px solid var(--line);
}

.service-name {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(20px, 1.3vw, 24px);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.service-name svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: #6a6a6a;
}

.service-list {
  list-style: none;
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
  min-width: 128px;
}

/* Footer / CTA */
.site-footer {
  background: var(--footer);
  color: #fff;
  border-radius: 48px 48px 0 0;
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 5.2vw, 88px) var(--gutter) 0;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../assets/noise.png");
  opacity: 0.18;
  pointer-events: none;
}

.footer-inner {
  position: relative;
  z-index: 1;
}

.footer-title {
  font-size: clamp(28px, 2.7vw, 52px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.12;
  max-width: 16ch;
}

.footer-cta {
  margin: 28px 0 56px;
}

.footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 22px 0 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 17px;
  color: #c8c8c8;
}

.footer-follow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.icon-link {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: #d0d0d0;
}

.icon-link svg {
  width: 15px;
  height: 15px;
}

.footer-meta {
  display: flex;
  gap: 28px;
  white-space: nowrap;
}

.wordmark {
  display: block;
  font-size: clamp(72px, 17.4vw, 334px);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.78;
  color: var(--wordmark);
  white-space: nowrap;
  overflow: hidden;
  height: 0.62em;
  margin-top: 18px;
  user-select: none;
}

/* Inner pages */
.page-hero {
  padding: clamp(48px, 6vw, 96px) var(--gutter) 36px;
}

.page-hero h1 {
  font-size: clamp(40px, 5vw, 88px);
  letter-spacing: -0.05em;
  line-height: 0.95;
}

.page-hero p {
  margin-top: 16px;
  max-width: 42ch;
  color: #555;
  font-size: 17px;
  line-height: 1.55;
}

.page-works {
  padding-bottom: 80px;
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  padding: clamp(48px, 6vw, 96px) var(--gutter) 100px;
}

.contact-aside h1 {
  font-size: clamp(40px, 5vw, 88px);
  letter-spacing: -0.05em;
  line-height: 0.95;
  margin-bottom: 18px;
}

.contact-aside p {
  color: #555;
  font-size: 17px;
  line-height: 1.6;
  max-width: 38ch;
}

.contact-aside p + p {
  margin-top: 14px;
}

.contact-mail {
  display: inline-block;
  margin-top: 22px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.form {
  display: grid;
  gap: 14px;
}

.form label {
  display: grid;
  gap: 8px;
  font-size: 15px;
  color: #666;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  border: 1px solid #e6e6e6;
  background: #fafafa;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 15px;
  outline: none;
}

.form input:focus,
.form textarea:focus,
.form select:focus {
  border-color: #111;
  background: #fff;
}

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

.form .btn {
  justify-self: start;
  margin-top: 6px;
}

.work-card,
.work-featured {
  scroll-margin-top: 96px;
}

.form-status {
  min-height: 20px;
  font-size: 14px;
  color: #3a3a3a;
}

.mobile-nav {
  display: none;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .hero-copy {
    justify-self: start;
    max-width: 46ch;
  }

  .services {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .ticker {
    display: none;
  }
}

@media (max-width: 860px) {
  .header {
    border-bottom-color: var(--line);
  }

  .header-inner {
    display: flex;
    justify-content: space-between;
    position: relative;
    min-height: 58px;
    padding: 10px 20px;
    gap: 8px;
  }

  .logo {
    font-size: 28px;
    z-index: 1;
  }

  .status-bar {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin-right: 0;
    background: transparent;
    overflow: visible;
    height: auto;
  }

  .time-pill {
    height: 32px;
    padding: 0 12px;
    background: var(--chip);
    border-radius: 999px;
  }

  .nav {
    display: none;
  }

  .menu-toggle {
    display: flex !important;
    z-index: 2;
    background: transparent;
  }

  .hero {
    padding: 28px 20px 36px;
    gap: 18px;
  }

  .hero-title {
    font-size: 32px;
    line-height: 1.12;
    letter-spacing: -0.04em;
    max-width: none;
  }

  .hero-title .hero-line {
    white-space: normal;
  }

  .hero-cta {
    margin-top: 18px;
  }

  .hero-copy {
    font-size: 15px;
    line-height: 1.5;
    max-width: none;
    padding-top: 4px;
  }

  .works {
    padding: 8px 16px 48px;
  }

  .work-grid {
    grid-template-columns: 1fr;
    margin-top: 28px;
    gap: 28px;
  }

  .work-featured + .work-grid,
  .work-grid {
    gap: 28px;
  }

  .work-meta {
    margin-bottom: 12px;
  }

  .work-meta-featured {
    grid-template-columns: 1fr auto;
  }

  .work-meta-featured .work-year {
    position: static;
    transform: none;
    left: auto;
    justify-self: end;
  }

  .services {
    padding: 48px 20px 56px;
    gap: 16px;
  }

  .services-heading {
    max-width: none;
    font-size: 26px;
    margin-bottom: 32px;
  }

  .service-row {
    grid-template-columns: 1fr auto;
    align-items: start;
    padding: 20px 0 22px;
  }

  .service-name {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    font-size: 22px;
  }

  .site-footer {
    border-radius: 24px 24px 0 0;
    padding: 36px 20px 0;
    background-color: #111;
    background-image: radial-gradient(rgba(255, 255, 255, 0.14) 0.7px, transparent 0.7px);
    background-size: 11px 11px;
  }

  .footer-title {
    font-size: 30px;
    max-width: 14ch;
  }

  .footer-cta {
    margin: 22px 0 36px;
  }

  .footer-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-top: 18px;
  }

  .footer-follow {
    font-size: 15px;
  }

  .footer-meta {
    flex-direction: column;
    gap: 4px;
    font-size: 15px;
    color: #7a7a7a;
  }

  .footer-meta [data-date] {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.01em;
  }

  .icon-link {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
  }

  .wordmark {
    height: 0.58em;
    font-size: 22vw;
    margin-top: 36px;
  }

  .page-hero,
  .contact-wrap {
    padding-left: 20px;
    padding-right: 20px;
  }

  .mobile-nav {
    display: none;
    position: fixed;
    inset: 62px 16px auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 12px;
    z-index: 50;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  }

  .mobile-nav.is-open {
    display: grid;
  }

  .mobile-nav a {
    padding: 14px 12px;
    border-radius: 12px;
    font-weight: 600;
  }

  .mobile-nav a:hover {
    background: var(--chip);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track,
  .work-visual img,
  .btn,
  .btn-arrow {
    animation: none;
    transition: none;
  }
}
