/* GoAI portfolio - design concept v1. Editorial RTL, warm paper + ink, per-project accents. */
:root {
  --paper: #F7F5F1;
  --ink: #16140F;
  --muted: #6E6A60;
  --hairline: #E3DED4;
  --card: #FFFFFF;
  --accent: #2F5AF5;
  --max: 1180px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Heebo", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.display { font-family: "Frank Ruhl Libre", "Heebo", serif; font-weight: 900; letter-spacing: -0.01em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 245, 241, 0.86); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-family: "Frank Ruhl Libre", serif; font-weight: 900; font-size: 22px; }
.logo em { font-style: normal; color: var(--accent); }
nav.main { display: flex; gap: 28px; font-size: 15px; font-weight: 500; }
nav.main a { color: var(--muted); transition: color 0.15s; }
nav.main a:hover, nav.main a[aria-current] { color: var(--ink); }
.lang-toggle {
  display: inline-flex; border: 1px solid var(--hairline); border-radius: 99px; overflow: hidden; font-size: 13px; font-weight: 600;
}
.lang-toggle a, .lang-toggle span { padding: 5px 12px; color: var(--muted); }
.lang-toggle .on { background: var(--ink); color: var(--paper) !important; }

/* hero */
.hero { padding: 96px 0 72px; }
.kicker { font-size: 15px; font-weight: 600; color: var(--accent); letter-spacing: 0.06em; margin-bottom: 18px; }
.hero h1 { font-size: clamp(44px, 7.2vw, 88px); line-height: 1.06; margin-bottom: 28px; max-width: 15ch; }
.hero h1 .stroke { color: transparent; -webkit-text-stroke: 2px var(--ink); }
.hero p.lede { font-size: 20px; color: var(--muted); max-width: 52ch; margin-bottom: 40px; }
.stats { display: flex; gap: 48px; flex-wrap: wrap; border-top: 1px solid var(--hairline); padding-top: 28px; }
.stat b { display: block; font-size: 34px; font-family: "Frank Ruhl Libre", serif; font-weight: 900; }
.stat span { font-size: 14px; color: var(--muted); }

/* section headings */
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 88px 0 12px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 44px); }
.section-head .count { font-size: 15px; color: var(--muted); }

/* featured project rows */
.project-row {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center;
  padding: 64px 0; border-top: 1px solid var(--hairline);
}
.project-row:nth-child(even) .p-media { order: -1; }
.p-num { font-family: "Frank Ruhl Libre", serif; font-weight: 900; font-size: 15px; color: var(--muted); margin-bottom: 10px; }
.p-num b { color: var(--proj, var(--accent)); font-size: 17px; }
.project-row h3 { font-size: clamp(30px, 3.4vw, 46px); font-family: "Frank Ruhl Libre", serif; font-weight: 900; line-height: 1.1; margin-bottom: 14px; }
.project-row h3 a:hover { color: var(--proj, var(--accent)); }
.p-pitch { font-size: 18px; color: var(--muted); max-width: 46ch; margin-bottom: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chip {
  font-size: 12.5px; font-weight: 600; padding: 5px 12px; border-radius: 99px;
  border: 1px solid var(--hairline); background: var(--card); color: var(--muted);
}
.p-links { display: flex; gap: 14px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px;
  padding: 11px 22px; border-radius: 12px; background: var(--ink); color: var(--paper);
  transition: transform 0.15s, background 0.2s;
}
.btn:hover { background: var(--proj, var(--accent)); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); transform: none; }
.p-media { position: relative; }
.p-media .frame {
  border-radius: 20px; overflow: hidden; background: var(--pbg, #ECE8E0);
  box-shadow: 0 24px 60px -28px rgba(22, 20, 15, 0.35);
  aspect-ratio: 16 / 10.5; display: flex; align-items: center; justify-content: center;
}
.p-media .frame img.cover { width: 100%; height: 100%; object-fit: cover; }
.p-media .frame img.shot { height: 88%; width: auto; border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,0.25); }
.p-media .frame .duo { display: flex; gap: 18px; align-items: center; height: 100%; padding: 24px 0; }
.p-media .frame .duo img { height: 100%; width: auto; border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,0.25); }
.p-media .frame .duo img:last-child { height: 86%; opacity: 0.94; }

/* compact grid for the rest */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 34px; }
.card {
  background: var(--card); border: 1px solid var(--hairline); border-radius: 18px; padding: 26px;
  display: flex; flex-direction: column; gap: 12px; transition: transform 0.18s, box-shadow 0.18s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 44px -24px rgba(22,20,15,0.28); }
.card .c-icon {
  width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-family: "Frank Ruhl Libre", serif; font-weight: 900; font-size: 22px; color: #fff; background: var(--proj, var(--accent));
  overflow: hidden;
}
.card .c-icon img { width: 100%; height: 100%; object-fit: cover; }
.card h4 { font-size: 20px; font-family: "Frank Ruhl Libre", serif; font-weight: 900; }
.card p { font-size: 14.5px; color: var(--muted); flex: 1; }
.card .status { font-size: 12px; font-weight: 600; color: var(--proj, var(--accent)); }

/* blog strip */
.blog-strip { margin-top: 30px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post {
  border-top: 3px solid var(--ink); padding-top: 18px; transition: border-color 0.2s;
}
.post:hover { border-color: var(--accent); }
.post time { font-size: 13px; color: var(--muted); }
.post h4 { font-size: 19px; line-height: 1.4; margin: 6px 0 8px; font-weight: 700; }
.post .cat { font-size: 12.5px; font-weight: 600; color: var(--accent); }

/* about */
.about { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 64px; padding: 72px 0; margin-top: 88px; border-top: 1px solid var(--hairline); }
.about p { font-size: 18px; color: var(--muted); max-width: 55ch; }
.about p + p { margin-top: 14px; }

/* footer */
footer { background: var(--ink); color: #CFC9BC; margin-top: 96px; }
footer .wrap { padding: 64px 28px 40px; }
.f-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.f-top .logo { color: var(--paper); font-size: 28px; }
.f-links { display: flex; gap: 40px; }
.f-links div { display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.f-links b { color: var(--paper); font-size: 13px; letter-spacing: 0.08em; margin-bottom: 4px; }
.f-links a:hover { color: #fff; }
.f-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; font-size: 13px; flex-wrap: wrap; gap: 10px; }

/* project page */
.p-hero { color: #fff; padding: 84px 0 70px; background: var(--proj, var(--accent)); position: relative; overflow: hidden; }
.p-hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(900px 420px at 12% -10%, rgba(255,255,255,0.22), transparent 60%);
}
.p-hero .wrap { position: relative; z-index: 1; }
.crumb { font-size: 14px; font-weight: 600; opacity: 0.85; margin-bottom: 26px; display: inline-flex; gap: 8px; }
.p-hero .app-row { display: flex; gap: 22px; align-items: center; margin-bottom: 22px; }
.p-hero .app-icon { width: 84px; height: 84px; border-radius: 22px; box-shadow: 0 14px 34px rgba(0,0,0,0.3); overflow: hidden; background: #fff; }
.p-hero h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.05; }
.p-hero .en-name { font-size: 17px; font-weight: 500; opacity: 0.85; direction: ltr; }
.p-hero p.lede { font-size: 20px; max-width: 54ch; opacity: 0.94; margin: 18px 0 34px; }
.p-hero .btn { background: #fff; color: var(--ink); }
.p-hero .btn:hover { transform: translateY(-1px); background: var(--paper); }
.p-hero .btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.p-hero .btn.ghost:hover { background: rgba(255,255,255,0.14); }
.facts { display: flex; gap: 44px; margin-top: 44px; flex-wrap: wrap; }
.fact b { display: block; font-size: 28px; font-family: "Frank Ruhl Libre", serif; font-weight: 900; }
.fact span { font-size: 13.5px; opacity: 0.85; }

.shots { display: flex; gap: 26px; justify-content: center; margin-top: -46px; position: relative; z-index: 2; padding: 0 28px; }
.phone {
  border-radius: 30px; border: 8px solid var(--ink); overflow: hidden; background: #000;
  box-shadow: 0 30px 70px -30px rgba(22,20,15,0.5); width: min(240px, 26vw);
}
.phone:nth-child(2) { transform: translateY(26px); }
.section { padding: 84px 0 0; }
.section h2 { font-size: clamp(26px, 3.2vw, 38px); font-family: "Frank Ruhl Libre", serif; font-weight: 900; margin-bottom: 18px; }
.section p.body { font-size: 17.5px; color: var(--muted); max-width: 68ch; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }
.step { background: var(--card); border: 1px solid var(--hairline); border-radius: 18px; padding: 26px; }
.step .n { font-family: "Frank Ruhl Libre", serif; font-weight: 900; font-size: 26px; color: var(--proj, var(--accent)); }
.step h4 { margin: 8px 0 6px; font-size: 18px; }
.step p { font-size: 14.5px; color: var(--muted); }
.next-proj { margin-top: 96px; border-top: 1px solid var(--hairline); padding: 44px 0 0; display: flex; justify-content: space-between; align-items: center; }
.next-proj .display { font-size: 30px; }

@media (max-width: 900px) {
  .project-row { grid-template-columns: 1fr; gap: 30px; padding: 48px 0; }
  .project-row:nth-child(even) .p-media { order: 0; }
  .grid, .blog-strip, .three { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; gap: 24px; }
  nav.main { display: none; }
  .shots { flex-wrap: wrap; }
  .phone { width: 44vw; }
}

/* blog list */
.blog-list { display: flex; flex-direction: column; gap: 26px; margin-top: 30px; }
.blog-item { display: grid; grid-template-columns: 220px 1fr; gap: 26px; align-items: start; padding-bottom: 26px; border-bottom: 1px solid var(--hairline); }
.blog-item .b-cover { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 14px; }
.blog-item .b-cover.ph { background: linear-gradient(135deg, #ECE8E0, #DDD6C8); }
.blog-item time { font-size: 13px; color: var(--muted); }
.blog-item h4 { font-size: 21px; line-height: 1.35; margin: 4px 0 8px; font-weight: 700; }
.blog-item:hover h4 { color: var(--accent); }
.blog-item p { font-size: 14.5px; color: var(--muted); margin-bottom: 8px; }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 40px; }

/* imported WP post content */
.entry-content { font-size: 17.5px; line-height: 1.8; }
.entry-content h2 { font-family: "Frank Ruhl Libre", serif; font-weight: 900; font-size: 28px; margin: 40px 0 12px; }
.entry-content h3 { font-size: 21px; font-weight: 700; margin: 30px 0 10px; }
.entry-content p { margin: 0 0 16px; }
.entry-content a { color: var(--accent); font-weight: 600; }
.entry-content a:hover { border-bottom: 2px solid var(--accent); }
.entry-content ul, .entry-content ol { margin: 0 0 16px; padding-inline-start: 24px; }
.entry-content li { margin-bottom: 6px; }
.entry-content img { border-radius: 14px; margin: 20px auto; height: auto; }
.entry-content figure { margin: 20px 0; }
.entry-content figcaption { font-size: 13px; color: var(--muted); text-align: center; }
.entry-content blockquote { border-inline-start: 3px solid var(--accent); padding-inline-start: 18px; color: var(--muted); margin: 20px 0; }
.entry-content iframe { max-width: 100%; border-radius: 14px; }
.entry-content table { border-collapse: collapse; width: 100%; margin: 20px 0; font-size: 15px; }
.entry-content th, .entry-content td { border: 1px solid var(--hairline); padding: 9px 12px; text-align: start; }
.entry-content th { background: #EFEBE3; }
@media (max-width: 700px) { .blog-item { grid-template-columns: 1fr; } }

/* project FAQ accordion */
.faq details { border: 1px solid var(--hairline); border-radius: 14px; background: var(--card); margin-bottom: 10px; padding: 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 16.5px; padding: 16px 20px; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; inset-inline-end: 20px; color: var(--proj, var(--accent)); font-size: 20px; font-weight: 400; }
.faq details[open] summary::after { content: "-"; }
.faq details p { padding: 0 20px 16px; color: var(--muted); font-size: 15.5px; line-height: 1.7; margin: 0; }
